cat.js 709 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158
  1. var e, pe, t = function () {
  2. return (t = Object.assign || function (e) {
  3. for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
  4. return e
  5. }).apply(this, arguments)
  6. }, n = {xml: !1, decodeEntities: !0}, r = {_useHtmlParser2: !0, xmlMode: !0};
  7. function i(e) {
  8. return null != e && e.xml ? "boolean" == typeof e.xml ? r : t(t({}, r), e.xml) : null != e ? e : void 0
  9. }
  10. !function (e) {
  11. e.Root = "root", e.Text = "text", e.Directive = "directive", e.Comment = "comment", e.Script = "script", e.Style = "style", e.Tag = "tag", e.CDATA = "cdata", e.Doctype = "doctype"
  12. }(e = e || {});
  13. const s = e.Root, a = e.Text, o = e.Directive, c = e.Comment, u = e.Script, l = e.Style, h = e.Tag, f = e.CDATA,
  14. p = e.Doctype;
  15. class d {
  16. constructor() {
  17. this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null
  18. }
  19. get parentNode() {
  20. return this.parent
  21. }
  22. set parentNode(e) {
  23. this.parent = e
  24. }
  25. get previousSibling() {
  26. return this.prev
  27. }
  28. set previousSibling(e) {
  29. this.prev = e
  30. }
  31. get nextSibling() {
  32. return this.next
  33. }
  34. set nextSibling(e) {
  35. this.next = e
  36. }
  37. cloneNode(e = !1) {
  38. return L(this, e)
  39. }
  40. }
  41. class m extends d {
  42. constructor(e) {
  43. super(), this.data = e
  44. }
  45. get nodeValue() {
  46. return this.data
  47. }
  48. set nodeValue(e) {
  49. this.data = e
  50. }
  51. }
  52. class _ extends m {
  53. constructor() {
  54. super(...arguments), this.type = e.Text
  55. }
  56. get nodeType() {
  57. return 3
  58. }
  59. }
  60. class E extends m {
  61. constructor() {
  62. super(...arguments), this.type = e.Comment
  63. }
  64. get nodeType() {
  65. return 8
  66. }
  67. }
  68. class T extends m {
  69. constructor(t, n) {
  70. super(n), this.name = t, this.type = e.Directive
  71. }
  72. get nodeType() {
  73. return 1
  74. }
  75. }
  76. class A extends d {
  77. constructor(e) {
  78. super(), this.children = e
  79. }
  80. get firstChild() {
  81. var e;
  82. return null != (e = this.children[0]) ? e : null
  83. }
  84. get lastChild() {
  85. return 0 < this.children.length ? this.children[this.children.length - 1] : null
  86. }
  87. get childNodes() {
  88. return this.children
  89. }
  90. set childNodes(e) {
  91. this.children = e
  92. }
  93. }
  94. class g extends A {
  95. constructor() {
  96. super(...arguments), this.type = e.CDATA
  97. }
  98. get nodeType() {
  99. return 4
  100. }
  101. }
  102. class v extends A {
  103. constructor() {
  104. super(...arguments), this.type = e.Root
  105. }
  106. get nodeType() {
  107. return 9
  108. }
  109. }
  110. class y extends A {
  111. constructor(t, n, r = [], i = "script" === t ? e.Script : "style" === t ? e.Style : e.Tag) {
  112. super(r), this.name = t, this.attribs = n, this.type = i
  113. }
  114. get nodeType() {
  115. return 1
  116. }
  117. get tagName() {
  118. return this.name
  119. }
  120. set tagName(e) {
  121. this.name = e
  122. }
  123. get attributes() {
  124. return Object.keys(this.attribs).map(e => {
  125. var t;
  126. return {
  127. name: e,
  128. value: this.attribs[e],
  129. namespace: null == (t = this["x-attribsNamespace"]) ? void 0 : t[e],
  130. prefix: null == (t = this["x-attribsPrefix"]) ? void 0 : t[e]
  131. }
  132. })
  133. }
  134. }
  135. function S(t) {
  136. return t.type === e.Tag || t.type === e.Script || t.type === e.Style
  137. }
  138. function C(t) {
  139. return t.type === e.CDATA
  140. }
  141. function N(t) {
  142. return t.type === e.Text
  143. }
  144. function b(t) {
  145. return t.type === e.Comment
  146. }
  147. function I(t) {
  148. return t.type === e.Directive
  149. }
  150. function O(t) {
  151. return t.type === e.Root
  152. }
  153. function k(e) {
  154. return Object.prototype.hasOwnProperty.call(e, "children")
  155. }
  156. function L(e, t = !1) {
  157. let n;
  158. if (N(e)) n = new _(e.data); else if (b(e)) n = new E(e.data); else if (S(e)) {
  159. const r = t ? D(e.children) : [], i = new y(e.name, {...e.attribs}, r);
  160. r.forEach(e => e.parent = i), null != e.namespace && (i.namespace = e.namespace), e["x-attribsNamespace"] && (i["x-attribsNamespace"] = {...e["x-attribsNamespace"]}), e["x-attribsPrefix"] && (i["x-attribsPrefix"] = {...e["x-attribsPrefix"]}), n = i
  161. } else if (C(e)) {
  162. const r = t ? D(e.children) : [], i = new g(r);
  163. r.forEach(e => e.parent = i), n = i
  164. } else if (O(e)) {
  165. const r = t ? D(e.children) : [], i = new v(r);
  166. r.forEach(e => e.parent = i), e["x-mode"] && (i["x-mode"] = e["x-mode"]), n = i
  167. } else {
  168. if (!I(e)) throw new Error("Not implemented yet: " + e.type);
  169. {
  170. const t = new T(e.name, e.data);
  171. null != e["x-name"] && (t["x-name"] = e["x-name"], t["x-publicId"] = e["x-publicId"], t["x-systemId"] = e["x-systemId"]), n = t
  172. }
  173. }
  174. return n.startIndex = e.startIndex, n.endIndex = e.endIndex, null != e.sourceCodeLocation && (n.sourceCodeLocation = e.sourceCodeLocation), n
  175. }
  176. function D(e) {
  177. var t = e.map(e => L(e, !0));
  178. for (let e = 1; e < t.length; e++) t[e].prev = t[e - 1], t[e - 1].next = t[e];
  179. return t
  180. }
  181. const R = {withStartIndices: !1, withEndIndices: !1, xmlMode: !1};
  182. class w {
  183. constructor(e, t, n) {
  184. this.dom = [], this.root = new v(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, "function" == typeof t && (n = t, t = R), "object" == typeof e && (t = e, e = void 0), this.callback = null != e ? e : null, this.options = null != t ? t : R, this.elementCB = null != n ? n : null
  185. }
  186. onparserinit(e) {
  187. this.parser = e
  188. }
  189. onreset() {
  190. this.dom = [], this.root = new v(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null
  191. }
  192. onend() {
  193. this.done || (this.done = !0, this.parser = null, this.handleCallback(null))
  194. }
  195. onerror(e) {
  196. this.handleCallback(e)
  197. }
  198. onclosetag() {
  199. this.lastNode = null;
  200. var e = this.tagStack.pop();
  201. this.options.withEndIndices && (e.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(e)
  202. }
  203. onopentag(t, n) {
  204. var r = this.options.xmlMode ? e.Tag : void 0, t = new y(t, n, void 0, r);
  205. this.addNode(t), this.tagStack.push(t)
  206. }
  207. ontext(t) {
  208. var n = this.lastNode;
  209. if (n && n.type === e.Text) n.data += t, this.options.withEndIndices && (n.endIndex = this.parser.endIndex); else {
  210. const e = new _(t);
  211. this.addNode(e), this.lastNode = e
  212. }
  213. }
  214. oncomment(t) {
  215. this.lastNode && this.lastNode.type === e.Comment ? this.lastNode.data += t : (t = new E(t), this.addNode(t), this.lastNode = t)
  216. }
  217. oncommentend() {
  218. this.lastNode = null
  219. }
  220. oncdatastart() {
  221. var e = new _(""), t = new g([e]);
  222. this.addNode(t), e.parent = t, this.lastNode = e
  223. }
  224. oncdataend() {
  225. this.lastNode = null
  226. }
  227. onprocessinginstruction(e, t) {
  228. e = new T(e, t), this.addNode(e)
  229. }
  230. handleCallback(e) {
  231. if ("function" == typeof this.callback) this.callback(e, this.dom); else if (e) throw e
  232. }
  233. addNode(e) {
  234. var t = this.tagStack[this.tagStack.length - 1], n = t.children[t.children.length - 1];
  235. this.options.withStartIndices && (e.startIndex = this.parser.startIndex), this.options.withEndIndices && (e.endIndex = this.parser.endIndex), t.children.push(e), n && ((e.prev = n).next = e), e.parent = t, this.lastNode = null
  236. }
  237. }
  238. const x = /["&'<>$\x80-\uFFFF]/g,
  239. M = new Map([[34, "&quot;"], [38, "&amp;"], [39, "&apos;"], [60, "&lt;"], [62, "&gt;"]]),
  240. P = null != String.prototype.codePointAt ? (e, t) => e.codePointAt(t) : (e, t) => 55296 == (64512 & e.charCodeAt(t)) ? 1024 * (e.charCodeAt(t) - 55296) + e.charCodeAt(t + 1) - 56320 + 65536 : e.charCodeAt(t);
  241. function B(e) {
  242. let t, n = "", r = 0;
  243. for (; null !== (t = x.exec(e));) {
  244. var i = t.index, s = e.charCodeAt(i), a = M.get(s);
  245. r = void 0 !== a ? (n += e.substring(r, i) + a, i + 1) : (n += `${e.substring(r, i)}&#x${P(e, i).toString(16)};`, x.lastIndex += Number(55296 == (64512 & s)))
  246. }
  247. return n + e.substr(r)
  248. }
  249. function F(e, t) {
  250. return function (n) {
  251. let r, i = 0, s = "";
  252. for (; r = e.exec(n);) i !== r.index && (s += n.substring(i, r.index)), s += t.get(r[0].charCodeAt(0)), i = r.index + 1;
  253. return s + n.substring(i)
  254. }
  255. }
  256. const U = F(/["&\u00A0]/g, new Map([[34, "&quot;"], [38, "&amp;"], [160, "&nbsp;"]])),
  257. H = F(/[&<>\u00A0]/g, new Map([[38, "&amp;"], [60, "&lt;"], [62, "&gt;"], [160, "&nbsp;"]])),
  258. G = new Map(["altGlyph", "altGlyphDef", "altGlyphItem", "animateColor", "animateMotion", "animateTransform", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "glyphRef", "linearGradient", "radialGradient", "textPath"].map(e => [e.toLowerCase(), e])),
  259. j = new Map(["definitionURL", "attributeName", "attributeType", "baseFrequency", "baseProfile", "calcMode", "clipPathUnits", "diffuseConstant", "edgeMode", "filterUnits", "glyphRef", "gradientTransform", "gradientUnits", "kernelMatrix", "kernelUnitLength", "keyPoints", "keySplines", "keyTimes", "lengthAdjust", "limitingConeAngle", "markerHeight", "markerUnits", "markerWidth", "maskContentUnits", "maskUnits", "numOctaves", "pathLength", "patternContentUnits", "patternTransform", "patternUnits", "pointsAtX", "pointsAtY", "pointsAtZ", "preserveAlpha", "preserveAspectRatio", "primitiveUnits", "refX", "refY", "repeatCount", "repeatDur", "requiredExtensions", "requiredFeatures", "specularConstant", "specularExponent", "spreadMethod", "startOffset", "stdDeviation", "stitchTiles", "surfaceScale", "systemLanguage", "tableValues", "targetX", "targetY", "textLength", "viewBox", "viewTarget", "xChannelSelector", "yChannelSelector", "zoomAndPan"].map(e => [e.toLowerCase(), e])),
  260. q = new Set(["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"]);
  261. function Y(e) {
  262. return e.replace(/"/g, "&quot;")
  263. }
  264. const K = new Set(["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "meta", "param", "source", "track", "wbr"]);
  265. function W(e, t = {}) {
  266. var n = "length" in e ? e : [e];
  267. let r = "";
  268. for (let e = 0; e < n.length; e++) r += V(n[e], t);
  269. return r
  270. }
  271. function V(e, t) {
  272. switch (e.type) {
  273. case s:
  274. return W(e.children, t);
  275. case p:
  276. case o:
  277. return `<${e.data}>`;
  278. case c:
  279. return `<!--${e.data}-->`;
  280. case f:
  281. return `<![CDATA[${e.children[0].data}]]>`;
  282. case u:
  283. case l:
  284. case h:
  285. return function (e, t) {
  286. !(t = "foreign" === t.xmlMode && (e.name = null != (n = G.get(e.name)) ? n : e.name, e.parent) && $.has(e.parent.name) ? {
  287. ...t,
  288. xmlMode: !1
  289. } : t).xmlMode && Q.has(e.name) && (t = {...t, xmlMode: "foreign"});
  290. let r = "<" + e.name;
  291. var n = function (e, t) {
  292. var n;
  293. if (e) {
  294. const r = !1 === (null != (n = t.encodeEntities) ? n : t.decodeEntities) ? Y : t.xmlMode || "utf8" !== t.encodeEntities ? B : U;
  295. return Object.keys(e).map(n => {
  296. var s, i = null != (i = e[n]) ? i : "";
  297. return "foreign" === t.xmlMode && (n = null != (s = j.get(n)) ? s : n), t.emptyAttrs || t.xmlMode || "" !== i ? `${n}="${r(i)}"` : n
  298. }).join(" ")
  299. }
  300. }(e.attribs, t);
  301. return n && (r += " " + n), 0 === e.children.length && (t.xmlMode ? !1 !== t.selfClosingTags : t.selfClosingTags && K.has(e.name)) ? (t.xmlMode || (r += " "), r += "/>") : (r += ">", 0 < e.children.length && (r += W(e.children, t)), !t.xmlMode && K.has(e.name) || (r += `</${e.name}>`)), r
  302. }(e, t);
  303. case a:
  304. return function (e, t) {
  305. var n, r = e.data || "";
  306. return !1 === (null != (n = t.encodeEntities) ? n : t.decodeEntities) || !t.xmlMode && e.parent && q.has(e.parent.name) ? r : (t.xmlMode || "utf8" !== t.encodeEntities ? B : H)(r)
  307. }(e, t)
  308. }
  309. }
  310. const $ = new Set(["mi", "mo", "mn", "ms", "mtext", "annotation-xml", "foreignObject", "desc", "title"]),
  311. Q = new Set(["svg", "math"]);
  312. function z(e, t) {
  313. return W(e, t)
  314. }
  315. function X(e) {
  316. return Array.isArray(e) ? e.map(X).join("") : k(e) && !b(e) ? X(e.children) : N(e) ? e.data : ""
  317. }
  318. function Z(t) {
  319. return Array.isArray(t) ? t.map(Z).join("") : k(t) && (t.type === e.Tag || C(t)) ? Z(t.children) : N(t) ? t.data : ""
  320. }
  321. function J(e) {
  322. return k(e) ? e.children : []
  323. }
  324. function ee(e) {
  325. return e.parent || null
  326. }
  327. function te(e) {
  328. var t = ee(e);
  329. if (null != t) return J(t);
  330. var n = [e];
  331. let {prev: r, next: i} = e;
  332. for (; null != r;) n.unshift(r), {prev: r} = r;
  333. for (; null != i;) n.push(i), {next: i} = i;
  334. return n
  335. }
  336. function ne(e) {
  337. let t = e.next;
  338. for (; null !== t && !S(t);) ({next: t} = t);
  339. return t
  340. }
  341. function re(e) {
  342. let t = e.prev;
  343. for (; null !== t && !S(t);) ({prev: t} = t);
  344. return t
  345. }
  346. function ie(e) {
  347. var t, n;
  348. e.prev && (e.prev.next = e.next), e.next && (e.next.prev = e.prev), e.parent && 0 <= (n = (t = e.parent.children).lastIndexOf(e)) && t.splice(n, 1), e.next = null, e.prev = null, e.parent = null
  349. }
  350. function se(e, t, n = !0, r = 1 / 0) {
  351. return ae(e, Array.isArray(t) ? t : [t], n, r)
  352. }
  353. function ae(e, t, n, r) {
  354. for (var i = [], s = [t], a = [0]; ;) if (a[0] >= s[0].length) {
  355. if (1 === a.length) return i;
  356. s.shift(), a.shift()
  357. } else {
  358. const t = s[0][a[0]++];
  359. if (e(t) && (i.push(t), --r <= 0)) return i;
  360. n && k(t) && 0 < t.children.length && (a.unshift(0), s.unshift(t.children))
  361. }
  362. }
  363. function oe(e, t, n = !0) {
  364. let r = null;
  365. for (let i = 0; i < t.length && !r; i++) {
  366. var s = t[i];
  367. S(s) && (e(s) ? r = s : n && 0 < s.children.length && (r = oe(e, s.children, !0)))
  368. }
  369. return r
  370. }
  371. const ce = {
  372. tag_name: e => "function" == typeof e ? t => S(t) && e(t.name) : "*" === e ? S : t => S(t) && t.name === e,
  373. tag_type: e => "function" == typeof e ? t => e(t.type) : t => t.type === e,
  374. tag_contains: e => "function" == typeof e ? t => N(t) && e(t.data) : t => N(t) && t.data === e
  375. };
  376. function ue(e, t) {
  377. return "function" == typeof t ? n => S(n) && t(n.attribs[e]) : n => S(n) && n.attribs[e] === t
  378. }
  379. function le(e, t) {
  380. return n => e(n) || t(n)
  381. }
  382. function he(e) {
  383. var t = Object.keys(e).map(t => {
  384. var n = e[t];
  385. return Object.prototype.hasOwnProperty.call(ce, t) ? ce[t](n) : ue(t, n)
  386. });
  387. return 0 === t.length ? null : t.reduce(le)
  388. }
  389. function fe(e, t, n = !0, r = 1 / 0) {
  390. return se(ce.tag_name(e), t, n, r)
  391. }
  392. function de(e, t) {
  393. var n = [], r = [];
  394. if (e === t) return 0;
  395. let i = k(e) ? e : e.parent;
  396. for (; i;) n.unshift(i), i = i.parent;
  397. for (i = k(t) ? t : t.parent; i;) r.unshift(i), i = i.parent;
  398. var o, c, u, l, s = Math.min(n.length, r.length);
  399. let a = 0;
  400. for (; a < s && n[a] === r[a];) a++;
  401. return 0 === a ? pe.DISCONNECTED : (c = (o = n[a - 1]).children, u = n[a], l = r[a], c.indexOf(u) > c.indexOf(l) ? o === t ? pe.FOLLOWING | pe.CONTAINED_BY : pe.FOLLOWING : o === e ? pe.PRECEDING | pe.CONTAINS : pe.PRECEDING)
  402. }
  403. function me(e) {
  404. return (e = e.filter((e, t, n) => !n.includes(e, t + 1))).sort((e, t) => (e = de(e, t)) & pe.PRECEDING ? -1 : e & pe.FOLLOWING ? 1 : 0), e
  405. }
  406. !function (e) {
  407. e[e.DISCONNECTED = 1] = "DISCONNECTED", e[e.PRECEDING = 2] = "PRECEDING", e[e.FOLLOWING = 4] = "FOLLOWING", e[e.CONTAINS = 8] = "CONTAINS", e[e.CONTAINED_BY = 16] = "CONTAINED_BY"
  408. }(pe = pe || {});
  409. const _e = ["url", "type", "lang"],
  410. Ee = ["fileSize", "bitrate", "framerate", "samplingrate", "channels", "duration", "height", "width"];
  411. function Te(e) {
  412. return fe("media:content", e).map(e => {
  413. var t = e.attribs, n = {medium: t.medium, isDefault: !!t.isDefault};
  414. for (const e of _e) t[e] && (n[e] = t[e]);
  415. for (const e of Ee) t[e] && (n[e] = parseInt(t[e], 10));
  416. return t.expression && (n.expression = t.expression), n
  417. })
  418. }
  419. function Ae(e, t) {
  420. return fe(e, t, !0, 1)[0]
  421. }
  422. function ge(e, t, n = !1) {
  423. return X(fe(e, t, n, 1)).trim()
  424. }
  425. function ve(e, t, n, r, i = !1) {
  426. (n = ge(n, r, i)) && (e[t] = n)
  427. }
  428. function ye(e) {
  429. return "rss" === e || "feed" === e || "rdf:RDF" === e
  430. }
  431. var Se = Object.freeze({
  432. __proto__: null,
  433. isTag: S,
  434. isCDATA: C,
  435. isText: N,
  436. isComment: b,
  437. isDocument: O,
  438. hasChildren: k,
  439. getOuterHTML: z,
  440. getInnerHTML: function (e, t) {
  441. return k(e) ? e.children.map(e => z(e, t)).join("") : ""
  442. },
  443. getText: function e(t) {
  444. return Array.isArray(t) ? t.map(e).join("") : S(t) ? "br" === t.name ? "\n" : e(t.children) : C(t) ? e(t.children) : N(t) ? t.data : ""
  445. },
  446. textContent: X,
  447. innerText: Z,
  448. getChildren: J,
  449. getParent: ee,
  450. getSiblings: te,
  451. getAttributeValue: function (e, t) {
  452. return null == (e = e.attribs) ? void 0 : e[t]
  453. },
  454. hasAttrib: function (e, t) {
  455. return null != e.attribs && Object.prototype.hasOwnProperty.call(e.attribs, t) && null != e.attribs[t]
  456. },
  457. getName: function (e) {
  458. return e.name
  459. },
  460. nextElementSibling: ne,
  461. prevElementSibling: re,
  462. removeElement: ie,
  463. replaceElement: function (e, t) {
  464. const n = t.prev = e.prev;
  465. n && (n.next = t);
  466. var r = t.next = e.next;
  467. if (r && (r.prev = t), r = t.parent = e.parent) {
  468. const n = r.children;
  469. n[n.lastIndexOf(e)] = t, e.parent = null
  470. }
  471. },
  472. appendChild: function (e, t) {
  473. ie(t), t.next = null, 1 < (t.parent = e).children.push(t) ? ((e = e.children[e.children.length - 2]).next = t).prev = e : t.prev = null
  474. },
  475. append: function (e, t) {
  476. ie(t);
  477. var n = e.parent, r = e.next;
  478. if (t.next = r, ((t.prev = e).next = t).parent = n, r) {
  479. if (r.prev = t, n) {
  480. const e = n.children;
  481. e.splice(e.lastIndexOf(r), 0, t)
  482. }
  483. } else n && n.children.push(t)
  484. },
  485. prependChild: function (e, t) {
  486. ie(t), t.parent = e, t.prev = null, 1 !== e.children.unshift(t) ? ((e = e.children[1]).prev = t).next = e : t.next = null
  487. },
  488. prepend: function (e, t) {
  489. ie(t);
  490. var r, n = e.parent;
  491. n && (r = n.children).splice(r.indexOf(e), 0, t), e.prev && (e.prev.next = t), t.parent = n, t.prev = e.prev, (t.next = e).prev = t
  492. },
  493. filter: se,
  494. find: ae,
  495. findOneChild: function (e, t) {
  496. return t.find(e)
  497. },
  498. findOne: oe,
  499. existsOne: function e(t, n) {
  500. return n.some(n => S(n) && (t(n) || e(t, n.children)))
  501. },
  502. findAll: function (e, t) {
  503. for (var n = [], r = [t], i = [0]; ;) if (i[0] >= r[0].length) {
  504. if (1 === r.length) return n;
  505. r.shift(), i.shift()
  506. } else {
  507. const t = r[0][i[0]++];
  508. S(t) && (e(t) && n.push(t), 0 < t.children.length) && (i.unshift(0), r.unshift(t.children))
  509. }
  510. },
  511. testElement: function (e, t) {
  512. return !(e = he(e)) || e(t)
  513. },
  514. getElements: function (e, t, n, r = 1 / 0) {
  515. return (e = he(e)) ? se(e, t, n, r) : []
  516. },
  517. getElementById: function (e, t, n = !0) {
  518. return Array.isArray(t) || (t = [t]), oe(ue("id", e), t, n)
  519. },
  520. getElementsByTagName: fe,
  521. getElementsByTagType: function (e, t, n = !0, r = 1 / 0) {
  522. return se(ce.tag_type(e), t, n, r)
  523. },
  524. removeSubsets: function (e) {
  525. let t = e.length;
  526. for (; 0 <= --t;) {
  527. var n = e[t];
  528. if (0 < t && 0 <= e.lastIndexOf(n, t - 1)) e.splice(t, 1); else for (let r = n.parent; r; r = r.parent) if (e.includes(r)) {
  529. e.splice(t, 1);
  530. break
  531. }
  532. }
  533. return e
  534. },
  535. get DocumentPosition() {
  536. return pe
  537. },
  538. compareDocumentPosition: de,
  539. uniqueSort: me,
  540. getFeed: function (e) {
  541. return (e = Ae(ye, e)) ? ("feed" === e.name ? function (e) {
  542. var r = {
  543. type: "atom", items: fe("entry", e = e.children).map(e => {
  544. var r = {media: Te(e = e.children)},
  545. t = (ve(r, "id", "id", e), ve(r, "title", "title", e), null == (t = Ae("link", e)) ? void 0 : t.attribs.href);
  546. return t && (r.link = t), (t = ge("summary", e) || ge("content", e)) && (r.description = t), (t = ge("updated", e)) && (r.pubDate = new Date(t)), r
  547. })
  548. },
  549. t = (ve(r, "id", "id", e), ve(r, "title", "title", e), null == (t = Ae("link", e)) ? void 0 : t.attribs.href);
  550. return t && (r.link = t), ve(r, "description", "subtitle", e), (t = ge("updated", e)) && (r.updated = new Date(t)), ve(r, "author", "email", e, !0), r
  551. } : function (e) {
  552. var t = null != (t = null == (t = Ae("channel", e.children)) ? void 0 : t.children) ? t : [], e = {
  553. type: e.name.substr(0, 3), id: "", items: fe("item", e.children).map(e => {
  554. var n = {media: Te(e = e.children)};
  555. return ve(n, "id", "guid", e), ve(n, "title", "title", e), ve(n, "link", "link", e), ve(n, "description", "description", e), (e = ge("pubDate", e) || ge("dc:date", e)) && (n.pubDate = new Date(e)), n
  556. })
  557. },
  558. s = (ve(e, "title", "title", t), ve(e, "link", "link", t), ve(e, "description", "description", t), ge("lastBuildDate", t));
  559. return s && (e.updated = new Date(s)), ve(e, "author", "managingEditor", t, !0), e
  560. })(e) : null
  561. }
  562. }), Ce = function () {
  563. return (Ce = Object.assign || function (e) {
  564. for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
  565. return e
  566. }).apply(this, arguments)
  567. };
  568. function Ne(e, t, n) {
  569. return e ? e(null != t ? t : e._root.children, null, void 0, n).toString() : ""
  570. }
  571. function be(e, t) {
  572. return Ne(this, function (e) {
  573. return !("object" != typeof e || null == e || "length" in e || "type" in e)
  574. }(e) ? void (t = e) : e, Ce(Ce(Ce({}, n), null == this ? void 0 : this._options), i(null != t ? t : {})))
  575. }
  576. function Ie(e) {
  577. return Ne(this, e, Ce(Ce({}, this._options), {xmlMode: !0}))
  578. }
  579. function Oe(e) {
  580. for (var t = e || (this ? this.root() : []), n = "", r = 0; r < t.length; r++) n += X(t[r]);
  581. return n
  582. }
  583. function ke(e, t, r) {
  584. return void 0 === r && (r = "boolean" == typeof t && t), e && "string" == typeof e ? ("boolean" == typeof t && (r = t), t = this.load(e, n, !1), r || t("script").remove(), t.root()[0].children.slice()) : null
  585. }
  586. function Le() {
  587. return this(this._root)
  588. }
  589. function De(e, t) {
  590. if (t !== e) for (var n = t; n && n !== n.parent;) if ((n = n.parent) === e) return !0;
  591. return !1
  592. }
  593. function Re(e, t) {
  594. if (we(e) && we(t)) {
  595. for (var n = e.length, r = +t.length, i = 0; i < r; i++) e[n++] = t[i];
  596. return e.length = n, e
  597. }
  598. }
  599. function we(e) {
  600. if (!Array.isArray(e)) {
  601. if ("object" != typeof e || !Object.prototype.hasOwnProperty.call(e, "length") || "number" != typeof e.length || e.length < 0) return !1;
  602. for (var t = 0; t < e.length; t++) if (!(t in e)) return !1
  603. }
  604. return !0
  605. }
  606. var xe, Me = Object.freeze({
  607. __proto__: null,
  608. html: be,
  609. xml: Ie,
  610. text: Oe,
  611. parseHTML: ke,
  612. root: Le,
  613. contains: De,
  614. merge: Re
  615. });
  616. function Pe(e) {
  617. return null != e.cheerio
  618. }
  619. function Be(e, t) {
  620. for (var n = e.length, r = 0; r < n; r++) t(e[r], r);
  621. return e
  622. }
  623. function Fe(e) {
  624. var e = "length" in e ? Array.prototype.map.call(e, function (e) {
  625. return L(e, !0)
  626. }) : [L(e, !0)], n = new v(e);
  627. return e.forEach(function (e) {
  628. e.parent = n
  629. }), e
  630. }
  631. function Ue(e) {
  632. var n, t = e.indexOf("<");
  633. return !(t < 0 || t > e.length - 3) && ((n = e.charCodeAt(t + 1)) >= xe.LowerA && n <= xe.LowerZ || n >= xe.UpperA && n <= xe.UpperZ || n === xe.Exclamation) && e.includes(">", t + 2)
  634. }
  635. !function (e) {
  636. e[e.LowerA = 97] = "LowerA", e[e.LowerZ = 122] = "LowerZ", e[e.UpperA = 65] = "UpperA", e[e.UpperZ = 90] = "UpperZ", e[e.Exclamation = 33] = "Exclamation"
  637. }(xe = xe || {});
  638. var He = Object.prototype.hasOwnProperty, Ge = /\s+/, je = "data-", qe = {null: null, true: !0, false: !1},
  639. Ye = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
  640. Ke = /^{[^]*}$|^\[[^]*]$/;
  641. function We(e, t, n) {
  642. if (e && S(e)) return null == e.attribs && (e.attribs = {}), t ? He.call(e.attribs, t) ? !n && Ye.test(t) ? t : e.attribs[t] : "option" === e.name && "value" === t ? Oe(e.children) : "input" !== e.name || "radio" !== e.attribs.type && "checkbox" !== e.attribs.type || "value" !== t ? void 0 : "on" : e.attribs
  643. }
  644. function Ve(e, t, n) {
  645. null === n ? Ze(e, t) : e.attribs[t] = "".concat(n)
  646. }
  647. function $e(e, t, n) {
  648. return t in e ? e[t] : !n && Ye.test(t) ? void 0 !== We(e, t, !1) : We(e, t, n)
  649. }
  650. function Qe(e, t, n, r) {
  651. t in e ? e[t] = n : Ve(e, t, !r && Ye.test(t) ? n ? "" : null : "".concat(n))
  652. }
  653. function ze(e, t, n) {
  654. null == e.data && (e.data = {}), "object" == typeof t ? Object.assign(e.data, t) : "string" == typeof t && void 0 !== n && (e.data[t] = n)
  655. }
  656. function Xe(e, t) {
  657. for (var n, i, r = null == t ? (n = Object.keys(e.attribs).filter(function (e) {
  658. return e.startsWith(je)
  659. })).map(function (e) {
  660. return e.slice(je.length).replace(/[_.-](\w|$)/g, function (e, t) {
  661. return t.toUpperCase()
  662. })
  663. }) : (n = [je + t.replace(/[A-Z]/g, "-$&").toLowerCase()], [t]), a = 0; a < n.length; ++a) {
  664. var o = n[a], c = r[a];
  665. if (He.call(e.attribs, o) && !He.call(e.data, c)) {
  666. if (i = e.attribs[o], He.call(qe, i)) i = qe[i]; else if (i === String(Number(i))) i = Number(i); else if (Ke.test(i)) try {
  667. i = JSON.parse(i)
  668. } catch (e) {
  669. }
  670. e.data[c] = i
  671. }
  672. }
  673. return null == t ? e.data : i
  674. }
  675. function Ze(e, t) {
  676. e.attribs && He.call(e.attribs, t) && delete e.attribs[t]
  677. }
  678. function Je(e) {
  679. return e ? e.trim().split(Ge) : []
  680. }
  681. var et, tt, nt = Object.freeze({
  682. __proto__: null, attr: function (e, t) {
  683. if ("object" != typeof e && void 0 === t) return 1 < arguments.length ? this : We(this[0], e, this.options.xmlMode);
  684. if ("function" != typeof t) return Be(this, function (n) {
  685. S(n) && ("object" == typeof e ? Object.keys(e).forEach(function (t) {
  686. var r = e[t];
  687. Ve(n, t, r)
  688. }) : Ve(n, e, t))
  689. });
  690. if ("string" != typeof e) throw new Error("Bad combination of arguments.");
  691. return Be(this, function (n, r) {
  692. S(n) && Ve(n, e, t.call(n, r, n.attribs[e]))
  693. })
  694. }, prop: function (e, t) {
  695. var r = this;
  696. if ("string" == typeof e && void 0 === t) {
  697. var i = this[0];
  698. if (!i || !S(i)) return;
  699. switch (e) {
  700. case"style":
  701. var s = this.css(), a = Object.keys(s);
  702. return a.forEach(function (e, t) {
  703. s[t] = e
  704. }), s.length = a.length, s;
  705. case"tagName":
  706. case"nodeName":
  707. return i.name.toUpperCase();
  708. case"href":
  709. case"src":
  710. return a = null == (a = i.attribs) ? void 0 : a[e], "undefined" == typeof URL || ("href" !== e || "a" !== i.tagName && "link" !== i.name) && ("src" !== e || "img" !== i.tagName && "iframe" !== i.tagName && "audio" !== i.tagName && "video" !== i.tagName && "source" !== i.tagName) || void 0 === a || !this.options.baseURI ? a : new URL(a, this.options.baseURI).href;
  711. case"innerText":
  712. return Z(i);
  713. case"textContent":
  714. return X(i);
  715. case"outerHTML":
  716. return this.clone().wrap("<container />").parent().html();
  717. case"innerHTML":
  718. return this.html();
  719. default:
  720. return $e(i, e, this.options.xmlMode)
  721. }
  722. }
  723. if ("object" == typeof e || void 0 !== t) {
  724. if ("function" != typeof t) return Be(this, function (n) {
  725. S(n) && ("object" == typeof e ? Object.keys(e).forEach(function (t) {
  726. var i = e[t];
  727. Qe(n, t, i, r.options.xmlMode)
  728. }) : Qe(n, e, t, r.options.xmlMode))
  729. });
  730. if ("object" == typeof e) throw new Error("Bad combination of arguments.");
  731. return Be(this, function (n, i) {
  732. S(n) && Qe(n, e, t.call(n, i, $e(n, e, r.options.xmlMode)), r.options.xmlMode)
  733. })
  734. }
  735. }, data: function (e, t) {
  736. var r = this[0];
  737. if (r && S(r)) return null == r.data && (r.data = {}), e ? "object" == typeof e || void 0 !== t ? (Be(this, function (n) {
  738. S(n) && ("object" == typeof e ? ze(n, e) : ze(n, e, t))
  739. }), this) : He.call(r.data, e) ? r.data[e] : Xe(r, e) : Xe(r)
  740. }, val: function (e) {
  741. var t = 0 === arguments.length, n = this[0];
  742. if (!n || !S(n)) return t ? void 0 : this;
  743. switch (n.name) {
  744. case"textarea":
  745. return this.text(e);
  746. case"select":
  747. var r = this.find("option:selected");
  748. if (t) return this.attr("multiple") ? r.toArray().map(function (e) {
  749. return Oe(e.children)
  750. }) : r.attr("value");
  751. if (null != this.attr("multiple") || "object" != typeof e) {
  752. this.find("option").removeAttr("selected");
  753. for (var i = "object" != typeof e ? [e] : e, s = 0; s < i.length; s++) this.find('option[value="'.concat(i[s], '"]')).attr("selected", "")
  754. }
  755. return this;
  756. case"input":
  757. case"option":
  758. return t ? this.attr("value") : this.attr("value", e)
  759. }
  760. }, removeAttr: function (e) {
  761. for (var t = Je(e), r = this, i = 0; i < t.length; i++) !function (e) {
  762. Be(r, function (n) {
  763. S(n) && Ze(n, t[e])
  764. })
  765. }(i);
  766. return this
  767. }, hasClass: function (e) {
  768. return this.toArray().some(function (t) {
  769. var n = S(t) && t.attribs.class, r = -1;
  770. if (n && e.length) for (; -1 < (r = n.indexOf(e, r + 1));) {
  771. var i = r + e.length;
  772. if ((0 === r || Ge.test(n[r - 1])) && (i === n.length || Ge.test(n[i]))) return !0
  773. }
  774. return !1
  775. })
  776. }, addClass: function e(t) {
  777. if ("function" == typeof t) return Be(this, function (n, r) {
  778. var i;
  779. S(n) && (i = n.attribs.class || "", e.call([n], t.call(n, r, i)))
  780. });
  781. if (t && "string" == typeof t) for (var n = t.split(Ge), r = this.length, i = 0; i < r; i++) {
  782. var s = this[i];
  783. if (S(s)) {
  784. var a = We(s, "class", !1);
  785. if (a) {
  786. for (var o = " ".concat(a, " "), c = 0; c < n.length; c++) {
  787. var u = "".concat(n[c], " ");
  788. o.includes(" ".concat(u)) || (o += u)
  789. }
  790. Ve(s, "class", o.trim())
  791. } else Ve(s, "class", n.join(" ").trim())
  792. }
  793. }
  794. return this
  795. }, removeClass: function e(t) {
  796. var n, r, i;
  797. return "function" == typeof t ? Be(this, function (n, r) {
  798. S(n) && e.call([n], t.call(n, r, n.attribs.class || ""))
  799. }) : (n = Je(t), r = n.length, i = 0 === arguments.length, Be(this, function (e) {
  800. if (S(e)) if (i) e.attribs.class = ""; else {
  801. for (var t = Je(e.attribs.class), s = !1, a = 0; a < r; a++) {
  802. var o = t.indexOf(n[a]);
  803. 0 <= o && (t.splice(o, 1), s = !0, a--)
  804. }
  805. s && (e.attribs.class = t.join(" "))
  806. }
  807. }))
  808. }, toggleClass: function e(t, n) {
  809. if ("function" == typeof t) return Be(this, function (r, i) {
  810. S(r) && e.call([r], t.call(r, i, r.attribs.class || "", n), n)
  811. });
  812. if (t && "string" == typeof t) for (var r = t.split(Ge), i = r.length, s = "boolean" == typeof n ? n ? 1 : -1 : 0, a = this.length, o = 0; o < a; o++) {
  813. var c = this[o];
  814. if (S(c)) {
  815. for (var u = Je(c.attribs.class), l = 0; l < i; l++) {
  816. var h = u.indexOf(r[l]);
  817. 0 <= s && h < 0 ? u.push(r[l]) : s <= 0 && 0 <= h && u.splice(h, 1)
  818. }
  819. c.attribs.class = u.join(" ")
  820. }
  821. }
  822. return this
  823. }
  824. });
  825. !function (e) {
  826. e.Attribute = "attribute", e.Pseudo = "pseudo", e.PseudoElement = "pseudo-element", e.Tag = "tag", e.Universal = "universal", e.Adjacent = "adjacent", e.Child = "child", e.Descendant = "descendant", e.Parent = "parent", e.Sibling = "sibling", e.ColumnCombinator = "column-combinator"
  827. }(et = et || {}), function (e) {
  828. e.Any = "any", e.Element = "element", e.End = "end", e.Equals = "equals", e.Exists = "exists", e.Hyphen = "hyphen", e.Not = "not", e.Start = "start"
  829. }(tt = tt || {});
  830. const rt = /^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/, it = /\\([\da-f]{1,6}\s?|(\s)|.)/gi,
  831. st = new Map([[126, tt.Element], [94, tt.Start], [36, tt.End], [42, tt.Any], [33, tt.Not], [124, tt.Hyphen]]),
  832. at = new Set(["has", "not", "matches", "is", "where", "host", "host-context"]);
  833. function ot(e) {
  834. switch (e.type) {
  835. case et.Adjacent:
  836. case et.Child:
  837. case et.Descendant:
  838. case et.Parent:
  839. case et.Sibling:
  840. case et.ColumnCombinator:
  841. return !0;
  842. default:
  843. return !1
  844. }
  845. }
  846. const ct = new Set(["contains", "icontains"]);
  847. function ut(e, t, n) {
  848. var r = parseInt(t, 16) - 65536;
  849. return r != r || n ? t : r < 0 ? String.fromCharCode(65536 + r) : String.fromCharCode(r >> 10 | 55296, 1023 & r | 56320)
  850. }
  851. function lt(e) {
  852. return e.replace(it, ut)
  853. }
  854. function ht(e) {
  855. return 39 === e || 34 === e
  856. }
  857. function ft(e) {
  858. return 32 === e || 9 === e || 10 === e || 12 === e || 13 === e
  859. }
  860. function pt(e) {
  861. var t = [], n = dt(t, "" + e, 0);
  862. if (n < e.length) throw new Error("Unmatched selector: " + e.slice(n));
  863. return t
  864. }
  865. function dt(e, t, n) {
  866. let r = [];
  867. function i(e) {
  868. var r = t.slice(n + e).match(rt);
  869. if (r) return [r] = r, n += e + r.length, lt(r);
  870. throw new Error("Expected name, found " + t.slice(n))
  871. }
  872. function s(e) {
  873. for (n += e; n < t.length && ft(t.charCodeAt(n));) n++
  874. }
  875. function a() {
  876. var e = n += 1;
  877. let r = 1;
  878. for (; 0 < r && n < t.length; n++) 40 !== t.charCodeAt(n) || o(n) ? 41 !== t.charCodeAt(n) || o(n) || r-- : r++;
  879. if (r) throw new Error("Parenthesis not matched");
  880. return lt(t.slice(e, n - 1))
  881. }
  882. function o(e) {
  883. let n = 0;
  884. for (; 92 === t.charCodeAt(--e);) n++;
  885. return 1 == (1 & n)
  886. }
  887. function c() {
  888. if (0 < r.length && ot(r[r.length - 1])) throw new Error("Did not expect successive traversals.")
  889. }
  890. function u(e) {
  891. 0 < r.length && r[r.length - 1].type === et.Descendant ? r[r.length - 1].type = e : (c(), r.push({type: e}))
  892. }
  893. function l(e, t) {
  894. r.push({type: et.Attribute, name: e, action: t, value: i(1), namespace: null, ignoreCase: "quirks"})
  895. }
  896. function h() {
  897. if (r.length && r[r.length - 1].type === et.Descendant && r.pop(), 0 === r.length) throw new Error("Empty sub-selector");
  898. e.push(r)
  899. }
  900. if (s(0), t.length !== n) {
  901. e:for (; n < t.length;) {
  902. const e = t.charCodeAt(n);
  903. switch (e) {
  904. case 32:
  905. case 9:
  906. case 10:
  907. case 12:
  908. case 13:
  909. 0 !== r.length && r[0].type === et.Descendant || (c(), r.push({type: et.Descendant})), s(1);
  910. break;
  911. case 62:
  912. u(et.Child), s(1);
  913. break;
  914. case 60:
  915. u(et.Parent), s(1);
  916. break;
  917. case 126:
  918. u(et.Sibling), s(1);
  919. break;
  920. case 43:
  921. u(et.Adjacent), s(1);
  922. break;
  923. case 46:
  924. l("class", tt.Element);
  925. break;
  926. case 35:
  927. l("id", tt.Equals);
  928. break;
  929. case 91: {
  930. let e, a = (s(1), null),
  931. c = (124 === t.charCodeAt(n) ? e = i(1) : t.startsWith("*|", n) ? (a = "*", e = i(2)) : (e = i(0), 124 === t.charCodeAt(n) && 61 !== t.charCodeAt(n + 1) && (a = e, e = i(1))), s(0), tt.Exists);
  932. const u = st.get(t.charCodeAt(n));
  933. if (u) {
  934. if (c = u, 61 !== t.charCodeAt(n + 1)) throw new Error("Expected `=`");
  935. s(2)
  936. } else 61 === t.charCodeAt(n) && (c = tt.Equals, s(1));
  937. let l = "", h = null;
  938. if ("exists" !== c) {
  939. if (ht(t.charCodeAt(n))) {
  940. const e = t.charCodeAt(n);
  941. let r = n + 1;
  942. for (; r < t.length && (t.charCodeAt(r) !== e || o(r));) r += 1;
  943. if (t.charCodeAt(r) !== e) throw new Error("Attribute value didn't end");
  944. l = lt(t.slice(n + 1, r)), n = r + 1
  945. } else {
  946. const e = n;
  947. for (; n < t.length && (!ft(t.charCodeAt(n)) && 93 !== t.charCodeAt(n) || o(n));) n += 1;
  948. l = lt(t.slice(e, n))
  949. }
  950. s(0);
  951. const e = 32 | t.charCodeAt(n);
  952. 115 == e ? (h = !1, s(1)) : 105 == e && (h = !0, s(1))
  953. }
  954. if (93 !== t.charCodeAt(n)) throw new Error("Attribute selector didn't terminate");
  955. n += 1;
  956. var f = {type: et.Attribute, name: e, action: c, value: l, namespace: a, ignoreCase: h};
  957. r.push(f);
  958. break
  959. }
  960. case 58: {
  961. if (58 === t.charCodeAt(n + 1)) {
  962. r.push({
  963. type: et.PseudoElement,
  964. name: i(2).toLowerCase(),
  965. data: 40 === t.charCodeAt(n) ? a() : null
  966. });
  967. continue
  968. }
  969. const e = i(1).toLowerCase();
  970. let s = null;
  971. if (40 === t.charCodeAt(n)) if (at.has(e)) {
  972. if (ht(t.charCodeAt(n + 1))) throw new Error(`Pseudo-selector ${e} cannot be quoted`);
  973. if (s = [], n = dt(s, t, n + 1), 41 !== t.charCodeAt(n)) throw new Error(`Missing closing parenthesis in :${e} (${t})`);
  974. n += 1
  975. } else {
  976. if (s = a(), ct.has(e)) {
  977. const e = s.charCodeAt(0);
  978. e === s.charCodeAt(s.length - 1) && ht(e) && (s = s.slice(1, -1))
  979. }
  980. s = lt(s)
  981. }
  982. r.push({type: et.Pseudo, name: e, data: s});
  983. break
  984. }
  985. case 44:
  986. h(), r = [], s(1);
  987. break;
  988. default:
  989. if (t.startsWith("/*", n)) {
  990. const e = t.indexOf("*/", n + 2);
  991. if (e < 0) throw new Error("Comment was not terminated");
  992. n = e + 2, 0 === r.length && s(0)
  993. } else {
  994. let a, o = null;
  995. if (42 === e) n += 1, a = "*"; else if (124 === e) {
  996. if (a = "", 124 === t.charCodeAt(n + 1)) {
  997. u(et.ColumnCombinator), s(2);
  998. break
  999. }
  1000. } else {
  1001. if (!rt.test(t.slice(n))) break e;
  1002. a = i(0)
  1003. }
  1004. 124 === t.charCodeAt(n) && 124 !== t.charCodeAt(n + 1) && (o = a, 42 === t.charCodeAt(n + 1) ? (a = "*", n += 2) : a = i(1)), r.push("*" === a ? {
  1005. type: et.Universal,
  1006. namespace: o
  1007. } : {type: et.Tag, name: a, namespace: o})
  1008. }
  1009. }
  1010. }
  1011. h()
  1012. }
  1013. return n
  1014. }
  1015. var Jt, mt = {
  1016. trueFunc: function () {
  1017. return !0
  1018. }, falseFunc: function () {
  1019. return !1
  1020. }
  1021. }, _t = mt.trueFunc;
  1022. const Et = new Map([[et.Universal, 50], [et.Tag, 30], [et.Attribute, 1], [et.Pseudo, 0]]);
  1023. function Tt(e) {
  1024. return !Et.has(e.type)
  1025. }
  1026. const At = new Map([[tt.Exists, 10], [tt.Equals, 8], [tt.Not, 7], [tt.Start, 6], [tt.End, 6], [tt.Any, 5]]);
  1027. function gt(e) {
  1028. var t = e.map(vt);
  1029. for (let n = 1; n < e.length; n++) {
  1030. var r = t[n];
  1031. if (!(r < 0)) for (let i = n - 1; 0 <= i && r < t[i]; i--) {
  1032. const n = e[i + 1];
  1033. e[i + 1] = e[i], e[i] = n, t[i + 1] = t[i], t[i] = r
  1034. }
  1035. }
  1036. }
  1037. function vt(e) {
  1038. var t;
  1039. let r = null != (t = Et.get(e.type)) ? t : -1;
  1040. return e.type === et.Attribute ? (r = null != (t = At.get(e.action)) ? t : 4, e.action === tt.Equals && "id" === e.name && (r = 9), e.ignoreCase && (r >>= 1)) : e.type === et.Pseudo && (e.data ? "has" === e.name || "contains" === e.name ? r = 0 : Array.isArray(e.data) ? (r = Math.min(...e.data.map(e => Math.min(...e.map(vt))))) < 0 && (r = 0) : r = 2 : r = 3), r
  1041. }
  1042. const yt = /[-[\]{}()*+?.,\\^$|#\s]/g;
  1043. function St(e) {
  1044. return e.replace(yt, "\\$&")
  1045. }
  1046. const Ct = new Set(["accept", "accept-charset", "align", "alink", "axis", "bgcolor", "charset", "checked", "clear", "codetype", "color", "compact", "declare", "defer", "dir", "direction", "disabled", "enctype", "face", "frame", "hreflang", "http-equiv", "lang", "language", "link", "media", "method", "multiple", "nohref", "noresize", "noshade", "nowrap", "readonly", "rel", "rev", "rules", "scope", "scrolling", "selected", "shape", "target", "text", "type", "valign", "valuetype", "vlink"]);
  1047. function Nt(e, t) {
  1048. return "boolean" == typeof e.ignoreCase ? e.ignoreCase : "quirks" === e.ignoreCase ? !!t.quirksMode : !t.xmlMode && Ct.has(e.name)
  1049. }
  1050. const bt = {
  1051. equals(e, t, n) {
  1052. const r = n.adapter, i = t.name;
  1053. let s = t.value;
  1054. return Nt(t, n) ? (s = s.toLowerCase(), t => {
  1055. var n = r.getAttributeValue(t, i);
  1056. return null != n && n.length === s.length && n.toLowerCase() === s && e(t)
  1057. }) : t => r.getAttributeValue(t, i) === s && e(t)
  1058. }, hyphen(e, t, n) {
  1059. const r = n.adapter, i = t.name;
  1060. let s = t.value;
  1061. const a = s.length;
  1062. return Nt(t, n) ? (s = s.toLowerCase(), function (t) {
  1063. var n = r.getAttributeValue(t, i);
  1064. return null != n && (n.length === a || "-" === n.charAt(a)) && n.substr(0, a).toLowerCase() === s && e(t)
  1065. }) : function (t) {
  1066. var n = r.getAttributeValue(t, i);
  1067. return null != n && (n.length === a || "-" === n.charAt(a)) && n.substr(0, a) === s && e(t)
  1068. }
  1069. }, element(e, t, n) {
  1070. const r = n.adapter, {name: i, value: s} = t;
  1071. if (/\s/.test(s)) return mt.falseFunc;
  1072. const a = new RegExp(`(?:^|\\s)${St(s)}(?:$|\\s)`, Nt(t, n) ? "i" : "");
  1073. return function (t) {
  1074. var n = r.getAttributeValue(t, i);
  1075. return null != n && n.length >= s.length && a.test(n) && e(t)
  1076. }
  1077. }, exists: (e, {name: t}, {adapter: n}) => r => n.hasAttrib(r, t) && e(r), start(e, t, n) {
  1078. const r = n.adapter, i = t.name;
  1079. let s = t.value;
  1080. const a = s.length;
  1081. return 0 === a ? mt.falseFunc : Nt(t, n) ? (s = s.toLowerCase(), t => {
  1082. var n = r.getAttributeValue(t, i);
  1083. return null != n && n.length >= a && n.substr(0, a).toLowerCase() === s && e(t)
  1084. }) : t => {
  1085. var n;
  1086. return !(null == (n = r.getAttributeValue(t, i)) || !n.startsWith(s)) && e(t)
  1087. }
  1088. }, end(e, t, n) {
  1089. const r = n.adapter, i = t.name;
  1090. let s = t.value;
  1091. const a = -s.length;
  1092. return 0 == a ? mt.falseFunc : Nt(t, n) ? (s = s.toLowerCase(), t => {
  1093. var n;
  1094. return (null == (n = r.getAttributeValue(t, i)) ? void 0 : n.substr(a).toLowerCase()) === s && e(t)
  1095. }) : t => {
  1096. var n;
  1097. return !(null == (n = r.getAttributeValue(t, i)) || !n.endsWith(s)) && e(t)
  1098. }
  1099. }, any(e, t, n) {
  1100. const r = n.adapter, {name: i, value: s} = t;
  1101. if ("" === s) return mt.falseFunc;
  1102. if (Nt(t, n)) {
  1103. const t = new RegExp(St(s), "i");
  1104. return function (n) {
  1105. var a = r.getAttributeValue(n, i);
  1106. return null != a && a.length >= s.length && t.test(a) && e(n)
  1107. }
  1108. }
  1109. return t => {
  1110. var n;
  1111. return !(null == (n = r.getAttributeValue(t, i)) || !n.includes(s)) && e(t)
  1112. }
  1113. }, not(e, t, n) {
  1114. const r = n.adapter, i = t.name;
  1115. let s = t.value;
  1116. return "" === s ? t => !!r.getAttributeValue(t, i) && e(t) : Nt(t, n) ? (s = s.toLowerCase(), t => {
  1117. var n = r.getAttributeValue(t, i);
  1118. return (null == n || n.length !== s.length || n.toLowerCase() !== s) && e(t)
  1119. }) : t => r.getAttributeValue(t, i) !== s && e(t)
  1120. }
  1121. }, It = new Set([9, 10, 12, 13, 32]), Ot = "0".charCodeAt(0), kt = "9".charCodeAt(0);
  1122. function Lt(e) {
  1123. return function (e) {
  1124. const t = e[0], n = e[1] - 1;
  1125. if (n < 0 && t <= 0) return mt.falseFunc;
  1126. if (-1 === t) return e => e <= n;
  1127. if (0 === t) return e => e === n;
  1128. if (1 === t) return n < 0 ? mt.trueFunc : e => e >= n;
  1129. const r = Math.abs(t), i = (n % r + r) % r;
  1130. return 1 < t ? e => e >= n && e % r == i : e => e <= n && e % r == i
  1131. }(function (e) {
  1132. if ("even" === (e = e.trim().toLowerCase())) return [2, 0];
  1133. if ("odd" === e) return [2, 1];
  1134. let t = 0, n = 0, r = s(), i = a();
  1135. if (t < e.length && "n" === e.charAt(t) && (t++, n = r * (null != i ? i : 1), o(), t < e.length ? (r = s(), o(), i = a()) : r = i = 0), null === i || t < e.length) throw new Error(`n-th rule couldn't be parsed ('${e}')`);
  1136. return [n, r * i];
  1137. function s() {
  1138. return "-" === e.charAt(t) ? (t++, -1) : ("+" === e.charAt(t) && t++, 1)
  1139. }
  1140. function a() {
  1141. var n = t;
  1142. let r = 0;
  1143. for (; t < e.length && e.charCodeAt(t) >= Ot && e.charCodeAt(t) <= kt;) r = 10 * r + (e.charCodeAt(t) - Ot), t++;
  1144. return t === n ? null : r
  1145. }
  1146. function o() {
  1147. for (; t < e.length && It.has(e.charCodeAt(t));) t++
  1148. }
  1149. }(e))
  1150. }
  1151. function Dt(e, t) {
  1152. return n => {
  1153. var r = t.getParent(n);
  1154. return null != r && t.isTag(r) && e(n)
  1155. }
  1156. }
  1157. const Rt = {
  1158. contains: (e, t, {adapter: n}) => function (r) {
  1159. return e(r) && n.getText(r).includes(t)
  1160. }, icontains(e, t, {adapter: n}) {
  1161. const r = t.toLowerCase();
  1162. return function (t) {
  1163. return e(t) && n.getText(t).toLowerCase().includes(r)
  1164. }
  1165. }, "nth-child"(e, t, {adapter: n, equals: r}) {
  1166. const i = Lt(t);
  1167. return i === mt.falseFunc ? mt.falseFunc : i === mt.trueFunc ? Dt(e, n) : function (t) {
  1168. var s = n.getSiblings(t);
  1169. let a = 0;
  1170. for (let e = 0; e < s.length && !r(t, s[e]); e++) n.isTag(s[e]) && a++;
  1171. return i(a) && e(t)
  1172. }
  1173. }, "nth-last-child"(e, t, {adapter: n, equals: r}) {
  1174. const i = Lt(t);
  1175. return i === mt.falseFunc ? mt.falseFunc : i === mt.trueFunc ? Dt(e, n) : function (t) {
  1176. var s = n.getSiblings(t);
  1177. let a = 0;
  1178. for (let e = s.length - 1; 0 <= e && !r(t, s[e]); e--) n.isTag(s[e]) && a++;
  1179. return i(a) && e(t)
  1180. }
  1181. }, "nth-of-type"(e, t, {adapter: n, equals: r}) {
  1182. const i = Lt(t);
  1183. return i === mt.falseFunc ? mt.falseFunc : i === mt.trueFunc ? Dt(e, n) : function (t) {
  1184. var s = n.getSiblings(t);
  1185. let a = 0;
  1186. for (let e = 0; e < s.length; e++) {
  1187. const i = s[e];
  1188. if (r(t, i)) break;
  1189. n.isTag(i) && n.getName(i) === n.getName(t) && a++
  1190. }
  1191. return i(a) && e(t)
  1192. }
  1193. }, "nth-last-of-type"(e, t, {adapter: n, equals: r}) {
  1194. const i = Lt(t);
  1195. return i === mt.falseFunc ? mt.falseFunc : i === mt.trueFunc ? Dt(e, n) : function (t) {
  1196. var s = n.getSiblings(t);
  1197. let a = 0;
  1198. for (let e = s.length - 1; 0 <= e; e--) {
  1199. const i = s[e];
  1200. if (r(t, i)) break;
  1201. n.isTag(i) && n.getName(i) === n.getName(t) && a++
  1202. }
  1203. return i(a) && e(t)
  1204. }
  1205. }, root: (e, t, {adapter: n}) => t => {
  1206. var r = n.getParent(t);
  1207. return (null == r || !n.isTag(r)) && e(t)
  1208. }, scope(e, t, n, r) {
  1209. const i = n.equals;
  1210. return r && 0 !== r.length ? 1 === r.length ? t => i(r[0], t) && e(t) : t => r.includes(t) && e(t) : Rt.root(e, t, n)
  1211. }, hover: wt("isHovered"), visited: wt("isVisited"), active: wt("isActive")
  1212. };
  1213. function wt(e) {
  1214. return function (t, n, {adapter: r}) {
  1215. const i = r[e];
  1216. return "function" != typeof i ? mt.falseFunc : function (e) {
  1217. return i(e) && t(e)
  1218. }
  1219. }
  1220. }
  1221. const xt = {
  1222. empty: (e, {adapter: t}) => !t.getChildren(e).some(e => t.isTag(e) || "" !== t.getText(e)),
  1223. "first-child"(e, {adapter: t, equals: n}) {
  1224. var r;
  1225. return t.prevElementSibling ? null == t.prevElementSibling(e) : null != (r = t.getSiblings(e).find(e => t.isTag(e))) && n(e, r)
  1226. },
  1227. "last-child"(e, {adapter: t, equals: n}) {
  1228. var r = t.getSiblings(e);
  1229. for (let i = r.length - 1; 0 <= i; i--) {
  1230. if (n(e, r[i])) return !0;
  1231. if (t.isTag(r[i])) break
  1232. }
  1233. return !1
  1234. },
  1235. "first-of-type"(e, {adapter: t, equals: n}) {
  1236. var r = t.getSiblings(e), i = t.getName(e);
  1237. for (let s = 0; s < r.length; s++) {
  1238. var a = r[s];
  1239. if (n(e, a)) return !0;
  1240. if (t.isTag(a) && t.getName(a) === i) break
  1241. }
  1242. return !1
  1243. },
  1244. "last-of-type"(e, {adapter: t, equals: n}) {
  1245. var r = t.getSiblings(e), i = t.getName(e);
  1246. for (let s = r.length - 1; 0 <= s; s--) {
  1247. var a = r[s];
  1248. if (n(e, a)) return !0;
  1249. if (t.isTag(a) && t.getName(a) === i) break
  1250. }
  1251. return !1
  1252. },
  1253. "only-of-type"(e, {adapter: t, equals: n}) {
  1254. const r = t.getName(e);
  1255. return t.getSiblings(e).every(i => n(e, i) || !t.isTag(i) || t.getName(i) !== r)
  1256. },
  1257. "only-child": (e, {adapter: t, equals: n}) => t.getSiblings(e).every(r => n(e, r) || !t.isTag(r))
  1258. };
  1259. function Mt(e, t, n, r) {
  1260. if (null === n) {
  1261. if (e.length > r) throw new Error(`Pseudo-class :${t} requires an argument`)
  1262. } else if (e.length === r) throw new Error(`Pseudo-class :${t} doesn't have any arguments`)
  1263. }
  1264. const Pt = {
  1265. "any-link": ":is(a, area, link)[href]",
  1266. link: ":any-link:not(:visited)",
  1267. disabled: ":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",
  1268. enabled: ":not(:disabled)",
  1269. checked: ":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",
  1270. required: ":is(input, select, textarea)[required]",
  1271. optional: ":is(input, select, textarea):not([required])",
  1272. selected: "option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",
  1273. checkbox: "[type=checkbox]",
  1274. file: "[type=file]",
  1275. password: "[type=password]",
  1276. radio: "[type=radio]",
  1277. reset: "[type=reset]",
  1278. image: "[type=image]",
  1279. submit: "[type=submit]",
  1280. parent: ":not(:empty)",
  1281. header: ":is(h1, h2, h3, h4, h5, h6)",
  1282. button: ":is(button, input[type=button])",
  1283. input: ":is(input, textarea, select, button)",
  1284. text: "input:is(:not([type!='']), [type=text])"
  1285. }, Bt = {};
  1286. function Ft(e, t) {
  1287. var n = t.getSiblings(e);
  1288. return n.length <= 1 || (e = n.indexOf(e)) < 0 || e === n.length - 1 ? [] : n.slice(e + 1).filter(t.isTag)
  1289. }
  1290. function Ut(e) {
  1291. return {
  1292. xmlMode: !!e.xmlMode,
  1293. lowerCaseAttributeNames: !!e.lowerCaseAttributeNames,
  1294. lowerCaseTags: !!e.lowerCaseTags,
  1295. quirksMode: !!e.quirksMode,
  1296. cacheResults: !!e.cacheResults,
  1297. pseudos: e.pseudos,
  1298. adapter: e.adapter,
  1299. equals: e.equals
  1300. }
  1301. }
  1302. const Ht = (e, t, n, r, i) => {
  1303. const s = i(t, Ut(n), r);
  1304. return s === mt.trueFunc ? e : s === mt.falseFunc ? mt.falseFunc : t => s(t) && e(t)
  1305. }, Gt = {
  1306. is: Ht, matches: Ht, where: Ht, not(e, t, n, r, i) {
  1307. const s = i(t, Ut(n), r);
  1308. return s === mt.falseFunc ? e : s === mt.trueFunc ? mt.falseFunc : t => !s(t) && e(t)
  1309. }, has(e, t, n, r, i) {
  1310. const s = n.adapter, a = Ut(n), o = (a.relativeSelector = !0, t.some(e => e.some(Tt)) ? [Bt] : void 0),
  1311. c = i(t, a, o);
  1312. if (c === mt.falseFunc) return mt.falseFunc;
  1313. const u = function (e, t) {
  1314. return e === mt.falseFunc ? mt.falseFunc : n => t.isTag(n) && e(n)
  1315. }(c, s);
  1316. if (o && c !== mt.trueFunc) {
  1317. const {shouldTestNextSiblings: t = !1} = c;
  1318. return n => {
  1319. if (!e(n)) return !1;
  1320. o[0] = n;
  1321. var r = s.getChildren(n), n = t ? [...r, ...Ft(n, s)] : r;
  1322. return s.existsOne(u, n)
  1323. }
  1324. }
  1325. return t => e(t) && s.existsOne(u, s.getChildren(t))
  1326. }
  1327. };
  1328. function jt(e, t) {
  1329. return (e = t.getParent(e)) && t.isTag(e) ? e : null
  1330. }
  1331. function qt(e, t, n, r, i) {
  1332. const {adapter: s, equals: a} = n;
  1333. switch (t.type) {
  1334. case et.PseudoElement:
  1335. throw new Error("Pseudo-elements are not supported by css-select");
  1336. case et.ColumnCombinator:
  1337. throw new Error("Column combinators are not yet supported by css-select");
  1338. case et.Attribute:
  1339. if (null != t.namespace) throw new Error("Namespaced attributes are not yet supported by css-select");
  1340. return n.xmlMode && !n.lowerCaseAttributeNames || (t.name = t.name.toLowerCase()), bt[t.action](e, t, n);
  1341. case et.Pseudo:
  1342. return function (e, t, n, r, i) {
  1343. const {name: a, data: o} = t;
  1344. if (Array.isArray(o)) {
  1345. if (a in Gt) return Gt[a](e, o, n, r, i);
  1346. throw new Error(`Unknown pseudo-class :${a}(${o})`)
  1347. }
  1348. const c = null == (t = n.pseudos) ? void 0 : t[a], u = "string" == typeof c ? c : Pt[a];
  1349. if ("string" == typeof u) {
  1350. if (null != o) throw new Error(`Pseudo ${a} doesn't have any arguments`);
  1351. const t = pt(u);
  1352. return Gt.is(e, t, n, r, i)
  1353. }
  1354. if ("function" == typeof c) return Mt(c, a, o, 1), t => c(t, o) && e(t);
  1355. if (a in Rt) return Rt[a](e, o, n, r);
  1356. if (a in xt) {
  1357. const t = xt[a];
  1358. return Mt(t, a, o, 2), r => t(r, n, o) && e(r)
  1359. }
  1360. throw new Error("Unknown pseudo-class :" + a)
  1361. }(e, t, n, r, i);
  1362. case et.Tag: {
  1363. if (null != t.namespace) throw new Error("Namespaced tag names are not yet supported by css-select");
  1364. let r = t.name;
  1365. return n.xmlMode && !n.lowerCaseTags || (r = r.toLowerCase()), function (t) {
  1366. return s.getName(t) === r && e(t)
  1367. }
  1368. }
  1369. case et.Descendant: {
  1370. if (!1 === n.cacheResults || "undefined" == typeof WeakSet) return function (t) {
  1371. let n = t;
  1372. for (; n = jt(n, s);) if (e(n)) return !0;
  1373. return !1
  1374. };
  1375. const t = new WeakSet;
  1376. return function (n) {
  1377. let r = n;
  1378. for (; r = jt(r, s);) if (!t.has(r)) {
  1379. if (s.isTag(r) && e(r)) return !0;
  1380. t.add(r)
  1381. }
  1382. return !1
  1383. }
  1384. }
  1385. case"_flexibleDescendant":
  1386. return function (t) {
  1387. let n = t;
  1388. do {
  1389. if (e(n)) return !0
  1390. } while (n = jt(n, s));
  1391. return !1
  1392. };
  1393. case et.Parent:
  1394. return function (t) {
  1395. return s.getChildren(t).some(t => s.isTag(t) && e(t))
  1396. };
  1397. case et.Child:
  1398. return function (t) {
  1399. return null != (t = s.getParent(t)) && s.isTag(t) && e(t)
  1400. };
  1401. case et.Sibling:
  1402. return function (t) {
  1403. var n = s.getSiblings(t);
  1404. for (let r = 0; r < n.length; r++) {
  1405. var i = n[r];
  1406. if (a(t, i)) break;
  1407. if (s.isTag(i) && e(i)) return !0
  1408. }
  1409. return !1
  1410. };
  1411. case et.Adjacent:
  1412. return s.prevElementSibling ? function (t) {
  1413. return null != (t = s.prevElementSibling(t)) && e(t)
  1414. } : function (t) {
  1415. var n = s.getSiblings(t);
  1416. let r;
  1417. for (let e = 0; e < n.length; e++) {
  1418. var i = n[e];
  1419. if (a(t, i)) break;
  1420. s.isTag(i) && (r = i)
  1421. }
  1422. return !!r && e(r)
  1423. };
  1424. case et.Universal:
  1425. if (null != t.namespace && "*" !== t.namespace) throw new Error("Namespaced universal selectors are not yet supported by css-select");
  1426. return e
  1427. }
  1428. }
  1429. function Yt(e) {
  1430. return e.type === et.Pseudo && ("scope" === e.name || Array.isArray(e.data) && e.data.some(e => e.some(Yt)))
  1431. }
  1432. const Kt = {type: et.Descendant}, Wt = {type: "_flexibleDescendant"}, Vt = {type: et.Pseudo, name: "scope", data: null};
  1433. function $t(e, t, n) {
  1434. e.forEach(gt), n = null != (r = t.context) ? r : n;
  1435. const i = Array.isArray(n), s = n && (Array.isArray(n) ? n : [n]);
  1436. if (!1 !== t.relativeSelector) !function (e, {adapter: t}, n) {
  1437. var r = !(null == n || !n.every(e => {
  1438. var n = t.isTag(e) && t.getParent(e);
  1439. return e === Bt || n && t.isTag(n)
  1440. }));
  1441. for (const t of e) {
  1442. if (!(0 < t.length && Tt(t[0]) && t[0].type !== et.Descendant)) {
  1443. if (!r || t.some(Yt)) continue;
  1444. t.unshift(Kt)
  1445. }
  1446. t.unshift(Vt)
  1447. }
  1448. }(e, t, s); else if (e.some(e => 0 < e.length && Tt(e[0]))) throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");
  1449. let a = !1;
  1450. var r = e.map(e => {
  1451. if (2 <= e.length) {
  1452. const [t, n] = e;
  1453. t.type === et.Pseudo && "scope" === t.name && (i && n.type === et.Descendant ? e[1] = Wt : n.type !== et.Adjacent && n.type !== et.Sibling || (a = !0))
  1454. }
  1455. return function (e, t, n) {
  1456. return e.reduce((e, r) => e === mt.falseFunc ? mt.falseFunc : qt(e, r, t, n, $t), null != (e = t.rootFunc) ? e : mt.trueFunc)
  1457. }(e, t, s)
  1458. }).reduce(Qt, mt.falseFunc);
  1459. return r.shouldTestNextSiblings = a, r
  1460. }
  1461. function Qt(e, t) {
  1462. return t === mt.falseFunc || e === mt.trueFunc ? e : e === mt.falseFunc || t === mt.trueFunc ? t : function (n) {
  1463. return e(n) || t(n)
  1464. }
  1465. }
  1466. const zt = (e, t) => e === t, Xt = {adapter: Se, equals: zt}, Zt = (Jt = $t, function (e, t, n) {
  1467. return t = function (e) {
  1468. var r;
  1469. return null == (e = null != e ? e : Xt).adapter && (e.adapter = Se), null == e.equals && (e.equals = null != (r = null == (r = e.adapter) ? void 0 : r.equals) ? r : zt), e
  1470. }(t), Jt(e, t, n)
  1471. });
  1472. function en(e, t, n = !1) {
  1473. return n && (e = function (e, t) {
  1474. const n = Array.isArray(e) ? e.slice(0) : [e], r = n.length;
  1475. for (let e = 0; e < r; e++) {
  1476. const r = Ft(n[e], t);
  1477. n.push(...r)
  1478. }
  1479. return n
  1480. }(e, t)), Array.isArray(e) ? t.removeSubsets(e) : t.getChildren(e)
  1481. }
  1482. const tn = new Set(["first", "last", "eq", "gt", "nth", "lt", "even", "odd"]);
  1483. function nn(e) {
  1484. return "pseudo" === e.type && (!!tn.has(e.name) || !("not" !== e.name || !Array.isArray(e.data)) && e.data.some(e => e.some(nn)))
  1485. }
  1486. function rn(e) {
  1487. var t = [], n = [];
  1488. for (const r of e) (r.some(nn) ? t : n).push(r);
  1489. return [n, t]
  1490. }
  1491. const sn = {type: et.Universal, namespace: null}, an = {type: et.Pseudo, name: "scope", data: null};
  1492. function on(e, t, n = {}) {
  1493. return cn([e], t, n)
  1494. }
  1495. function cn(e, t, n = {}) {
  1496. var i;
  1497. return "function" == typeof t ? e.some(t) : ([t, i] = rn(pt(t)), 0 < t.length && e.some(Zt(t, n)) || i.some(t => 0 < hn(t, e, n).length))
  1498. }
  1499. function un(e, t, n = {}) {
  1500. return ln(pt(e), t, n)
  1501. }
  1502. function ln(e, t, n) {
  1503. if (0 === t.length) return [];
  1504. const [r, i] = rn(e);
  1505. let s;
  1506. if (r.length) {
  1507. const e = mn(t, r, n);
  1508. if (0 === i.length) return e;
  1509. e.length && (s = new Set(e))
  1510. }
  1511. for (let e = 0; e < i.length && (null == s ? void 0 : s.size) !== t.length; e++) {
  1512. const r = i[e], a = s ? t.filter(e => S(e) && !s.has(e)) : t;
  1513. if (0 === a.length) break;
  1514. var o = hn(r, t, n);
  1515. if (o.length) if (s) o.forEach(e => s.add(e)); else {
  1516. if (e === i.length - 1) return o;
  1517. s = new Set(o)
  1518. }
  1519. }
  1520. return void 0 !== s ? s.size === t.length ? t : t.filter(e => s.has(e)) : []
  1521. }
  1522. function hn(e, t, n) {
  1523. var r, s;
  1524. return e.some(ot) ? (r = null != (r = n.root) ? r : function (e) {
  1525. for (; e.parent;) e = e.parent;
  1526. return e
  1527. }(t[0]), s = {
  1528. ...n,
  1529. context: t,
  1530. relativeSelector: !1
  1531. }, e.push(an), fn(r, e, s, !0, t.length)) : fn(t, e, n, !1, t.length)
  1532. }
  1533. function fn(e, t, n, r, i) {
  1534. var s = t.findIndex(nn), a = t.slice(0, s), o = t[s], c = t.length - 1 === s ? i : 1 / 0;
  1535. if (0 === (c = function (e, t, n) {
  1536. var r = null != t ? parseInt(t, 10) : NaN;
  1537. switch (e) {
  1538. case"first":
  1539. return 1;
  1540. case"nth":
  1541. case"eq":
  1542. return isFinite(r) ? 0 <= r ? r + 1 : 1 / 0 : 0;
  1543. case"lt":
  1544. return isFinite(r) ? 0 <= r ? Math.min(r, n) : 1 / 0 : 0;
  1545. case"gt":
  1546. return isFinite(r) ? 1 / 0 : 0;
  1547. case"odd":
  1548. return 2 * n;
  1549. case"even":
  1550. return 2 * n - 1;
  1551. case"last":
  1552. case"not":
  1553. return 1 / 0
  1554. }
  1555. }(o.name, o.data, c))) return [];
  1556. r = (0 !== a.length || Array.isArray(e) ? 0 === a.length ? (Array.isArray(e) ? e : [e]).filter(S) : r || a.some(ot) ? pn(e, [a], n, c) : mn(e, [a], n) : J(e).filter(S)).slice(0, c);
  1557. let h = function (e, t, n, r) {
  1558. var i = "string" == typeof n ? parseInt(n, 10) : NaN;
  1559. switch (e) {
  1560. case"first":
  1561. case"lt":
  1562. return t;
  1563. case"last":
  1564. return 0 < t.length ? [t[t.length - 1]] : t;
  1565. case"nth":
  1566. case"eq":
  1567. return isFinite(i) && Math.abs(i) < t.length ? [i < 0 ? t[t.length + i] : t[i]] : [];
  1568. case"gt":
  1569. return isFinite(i) ? t.slice(i + 1) : [];
  1570. case"even":
  1571. return t.filter((e, t) => t % 2 == 0);
  1572. case"odd":
  1573. return t.filter((e, t) => t % 2 == 1);
  1574. case"not": {
  1575. const e = new Set(ln(n, t, r));
  1576. return t.filter(t => !e.has(t))
  1577. }
  1578. }
  1579. }(o.name, r, o.data, n);
  1580. if (0 === h.length || t.length === s + 1) return h;
  1581. if (e = (a = t.slice(s + 1)).some(ot)) {
  1582. if (ot(a[0])) {
  1583. const e = a[0].type;
  1584. e !== et.Sibling && e !== et.Adjacent || (h = en(h, Se, !0)), a.unshift(sn)
  1585. }
  1586. n = {...n, relativeSelector: !1, rootFunc: e => h.includes(e)}
  1587. } else n.rootFunc && n.rootFunc !== _t && (n = {...n, rootFunc: _t});
  1588. return a.some(nn) ? fn(h, a, n, !1, i) : e ? pn(h, [a], n, i) : mn(h, [a], n)
  1589. }
  1590. function pn(e, t, n, r) {
  1591. return dn(e, Zt(t, n, e), r)
  1592. }
  1593. function dn(e, t, n = 1 / 0) {
  1594. return ae(e => S(e) && t(e), en(e, Se, t.shouldTestNextSiblings), !0, n)
  1595. }
  1596. function mn(e, t, n) {
  1597. return 0 === (e = (Array.isArray(e) ? e : [e]).filter(S)).length || (t = Zt(t, n)) === _t ? e : e.filter(t)
  1598. }
  1599. var _n = function (e, t, n) {
  1600. if (n || 2 === arguments.length) for (var r, i = 0, s = t.length; i < s; i++) !r && i in t || ((r = r || Array.prototype.slice.call(t, 0, i))[i] = t[i]);
  1601. return e.concat(r || Array.prototype.slice.call(t))
  1602. }, En = /^\s*[~+]/;
  1603. function Tn(e) {
  1604. return function (t) {
  1605. for (var n = [], r = 1; r < arguments.length; r++) n[r - 1] = arguments[r];
  1606. return function (r) {
  1607. var s = e(t, this);
  1608. return r && (s = Mn(s, r, this.options.xmlMode, null == (r = this._root) ? void 0 : r[0])), this._make(1 < this.length && 1 < s.length ? n.reduce(function (e, t) {
  1609. return t(e)
  1610. }, s) : s)
  1611. }
  1612. }
  1613. }
  1614. var An = Tn(function (e, t) {
  1615. for (var n, r = [], i = 0; i < t.length; i++) {
  1616. var s = e(t[i]);
  1617. r.push(s)
  1618. }
  1619. return (n = new Array).concat.apply(n, r)
  1620. }), gn = Tn(function (e, t) {
  1621. for (var n = [], r = 0; r < t.length; r++) {
  1622. var i = e(t[r]);
  1623. null !== i && n.push(i)
  1624. }
  1625. return n
  1626. });
  1627. function vn(e) {
  1628. for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
  1629. var r = null, i = Tn(function (e, t) {
  1630. var n = [];
  1631. return Be(t, function (t) {
  1632. for (var i; (i = e(t)) && (null == r || !r(i, n.length)); t = i) n.push(i)
  1633. }), n
  1634. }).apply(void 0, _n([e], t, !1));
  1635. return function (e, t) {
  1636. var n = this, t = (r = "string" == typeof e ? function (t) {
  1637. return on(t, e, n.options)
  1638. } : e ? xn(e) : null, i.call(this, t));
  1639. return r = null, t
  1640. }
  1641. }
  1642. function yn(e) {
  1643. return Array.from(new Set(e))
  1644. }
  1645. var Sn = gn(function (e) {
  1646. return (e = e.parent) && !O(e) ? e : null
  1647. }, yn), Cn = An(function (e) {
  1648. for (var t = []; e.parent && !O(e.parent);) t.push(e.parent), e = e.parent;
  1649. return t
  1650. }, me, function (e) {
  1651. return e.reverse()
  1652. }), Nn = vn(function (e) {
  1653. return (e = e.parent) && !O(e) ? e : null
  1654. }, me, function (e) {
  1655. return e.reverse()
  1656. }), bn = gn(function (e) {
  1657. return ne(e)
  1658. }), In = An(function (e) {
  1659. for (var t = []; e.next;) S(e = e.next) && t.push(e);
  1660. return t
  1661. }, yn), On = vn(function (e) {
  1662. return ne(e)
  1663. }, yn), kn = gn(function (e) {
  1664. return re(e)
  1665. }), Ln = An(function (e) {
  1666. for (var t = []; e.prev;) S(e = e.prev) && t.push(e);
  1667. return t
  1668. }, yn), Dn = vn(function (e) {
  1669. return re(e)
  1670. }, yn), Rn = An(function (e) {
  1671. return te(e).filter(function (t) {
  1672. return S(t) && t !== e
  1673. })
  1674. }, me), wn = An(function (e) {
  1675. return J(e).filter(S)
  1676. }, yn);
  1677. function xn(e) {
  1678. return "function" == typeof e ? function (t, n) {
  1679. return e.call(t, n, t)
  1680. } : Pe(e) ? function (t) {
  1681. return Array.prototype.includes.call(e, t)
  1682. } : function (t) {
  1683. return e === t
  1684. }
  1685. }
  1686. function Mn(e, t, n, r) {
  1687. return "string" == typeof t ? un(t, e, {xmlMode: n, root: r}) : e.filter(xn(t))
  1688. }
  1689. var Pn = Object.freeze({
  1690. __proto__: null,
  1691. find: function (e) {
  1692. var n, r, t;
  1693. return e ? (n = this.toArray(), "string" != typeof e ? (r = Pe(e) ? e.toArray() : [e], this._make(r.filter(function (e) {
  1694. return n.some(function (t) {
  1695. return De(t, e)
  1696. })
  1697. }))) : (r = En.test(e) ? n : this.children().toArray(), t = {
  1698. context: n,
  1699. root: null == (t = this._root) ? void 0 : t[0],
  1700. xmlMode: this.options.xmlMode,
  1701. lowerCaseTags: this.options.lowerCaseTags,
  1702. lowerCaseAttributeNames: this.options.lowerCaseAttributeNames,
  1703. pseudos: this.options.pseudos,
  1704. quirksMode: this.options.quirksMode
  1705. }, this._make(function (e, t, n) {
  1706. var s;
  1707. return "function" == typeof e ? dn(t, e) : ([e, s] = rn(pt(e)), s = s.map(e => fn(t, e, n, !0, 1 / 0)), e.length && s.push(pn(t, e, n, 1 / 0)), 0 === s.length ? [] : 1 === s.length ? s[0] : me(s.reduce((e, t) => [...e, ...t])))
  1708. }(e, r, t)))) : this._make([])
  1709. },
  1710. parent: Sn,
  1711. parents: Cn,
  1712. parentsUntil: Nn,
  1713. closest: function (e) {
  1714. var t, r, i, n = [];
  1715. return e && (r = {
  1716. xmlMode: this.options.xmlMode,
  1717. root: null == (t = this._root) ? void 0 : t[0]
  1718. }, i = "string" == typeof e ? function (t) {
  1719. return on(t, e, r)
  1720. } : xn(e), Be(this, function (e) {
  1721. for (; e && S(e);) {
  1722. if (i(e, 0)) {
  1723. n.includes(e) || n.push(e);
  1724. break
  1725. }
  1726. e = e.parent
  1727. }
  1728. })), this._make(n)
  1729. },
  1730. next: bn,
  1731. nextAll: In,
  1732. nextUntil: On,
  1733. prev: kn,
  1734. prevAll: Ln,
  1735. prevUntil: Dn,
  1736. siblings: Rn,
  1737. children: wn,
  1738. contents: function () {
  1739. var e = this.toArray().reduce(function (e, t) {
  1740. return k(t) ? e.concat(t.children) : e
  1741. }, []);
  1742. return this._make(e)
  1743. },
  1744. each: function (e) {
  1745. for (var t = 0, n = this.length; t < n && !1 !== e.call(this[t], t, this[t]);) ++t;
  1746. return this
  1747. },
  1748. map: function (e) {
  1749. for (var t = [], n = 0; n < this.length; n++) {
  1750. var r = this[n];
  1751. null != (r = e.call(r, n, r)) && (t = t.concat(r))
  1752. }
  1753. return this._make(t)
  1754. },
  1755. filter: function (e) {
  1756. return this._make(Mn(this.toArray(), e, this.options.xmlMode, null == (e = this._root) ? void 0 : e[0]))
  1757. },
  1758. filterArray: Mn,
  1759. is: function (e) {
  1760. var t = this.toArray();
  1761. return "string" == typeof e ? cn(t.filter(S), e, this.options) : !!e && t.some(xn(e))
  1762. },
  1763. not: function (e) {
  1764. var n, r, t = this.toArray(),
  1765. t = "string" == typeof e ? (n = new Set(un(e, t, this.options)), t.filter(function (e) {
  1766. return !n.has(e)
  1767. })) : (r = xn(e), t.filter(function (e, t) {
  1768. return !r(e, t)
  1769. }));
  1770. return this._make(t)
  1771. },
  1772. has: function (e) {
  1773. var t = this;
  1774. return this.filter("string" == typeof e ? ":has(".concat(e, ")") : function (n, r) {
  1775. return 0 < t._make(r).find(e).length
  1776. })
  1777. },
  1778. first: function () {
  1779. return 1 < this.length ? this._make(this[0]) : this
  1780. },
  1781. last: function () {
  1782. return 0 < this.length ? this._make(this[this.length - 1]) : this
  1783. },
  1784. eq: function (e) {
  1785. return 0 == (e = +e) && this.length <= 1 ? this : (e < 0 && (e = this.length + e), this._make(null != (e = this[e]) ? e : []))
  1786. },
  1787. get: function (e) {
  1788. return null == e ? this.toArray() : this[e < 0 ? this.length + e : e]
  1789. },
  1790. toArray: function () {
  1791. return Array.prototype.slice.call(this)
  1792. },
  1793. index: function (e) {
  1794. var t,
  1795. e = null == e ? (t = this.parent().children(), this[0]) : "string" == typeof e ? (t = this._make(e), this[0]) : (t = this, Pe(e) ? e[0] : e);
  1796. return Array.prototype.indexOf.call(t, e)
  1797. },
  1798. slice: function (e, t) {
  1799. return this._make(Array.prototype.slice.call(this, e, t))
  1800. },
  1801. end: function () {
  1802. var e;
  1803. return null != (e = this.prevObject) ? e : this._make([])
  1804. },
  1805. add: function (e, t) {
  1806. return e = this._make(e, t), t = me(_n(_n([], this.get(), !0), e.get(), !0)), this._make(t)
  1807. },
  1808. addBack: function (e) {
  1809. return this.prevObject ? this.add(e ? this.prevObject.filter(e) : this.prevObject) : this
  1810. }
  1811. });
  1812. function Bn(e, t) {
  1813. var n = Array.isArray(e) ? e : [e];
  1814. t ? t.children = n : t = null;
  1815. for (var r = 0; r < n.length; r++) {
  1816. var i = n[r];
  1817. i.parent && i.parent.children !== n && ie(i), t ? (i.prev = n[r - 1] || null, i.next = n[r + 1] || null) : i.prev = i.next = null, i.parent = t
  1818. }
  1819. return t
  1820. }
  1821. var Fn = function (e, t, n) {
  1822. if (n || 2 === arguments.length) for (var r, i = 0, s = t.length; i < s; i++) !r && i in t || ((r = r || Array.prototype.slice.call(t, 0, i))[i] = t[i]);
  1823. return e.concat(r || Array.prototype.slice.call(t))
  1824. };
  1825. function Un(e) {
  1826. return function () {
  1827. for (var t = this, n = [], r = 0; r < arguments.length; r++) n[r] = arguments[r];
  1828. var i = this.length - 1;
  1829. return Be(this, function (r, s) {
  1830. var a;
  1831. k(r) && (a = "function" == typeof n[0] ? n[0].call(r, s, t._render(r.children)) : n, a = t._makeDomArray(a, s < i), e(a, r.children, r))
  1832. })
  1833. }
  1834. }
  1835. function Hn(e, t, n, r, i) {
  1836. for (var o = Fn([t, n], r, !0), c = 0 === t ? null : e[t - 1], u = t + n >= e.length ? null : e[t + n], l = 0; l < r.length; ++l) {
  1837. var p, h = r[l], f = h.parent;
  1838. f && -1 < (p = f.children.indexOf(h)) && (f.children.splice(p, 1), i === f) && p < t && o[0]--, h.parent = i, h.prev && (h.prev.next = null != (f = h.next) ? f : null), h.next && (h.next.prev = null != (p = h.prev) ? p : null), h.prev = 0 === l ? c : r[l - 1], h.next = l === r.length - 1 ? u : r[l + 1]
  1839. }
  1840. return c && (c.next = r[0]), u && (u.prev = r[r.length - 1]), e.splice.apply(e, o)
  1841. }
  1842. var Gn = Un(function (e, t, n) {
  1843. Hn(t, t.length, 0, e, n)
  1844. }), jn = Un(function (e, t, n) {
  1845. Hn(t, 0, 0, e, n)
  1846. });
  1847. function qn(e) {
  1848. return function (t) {
  1849. for (var n = this.length - 1, r = this.parents().last(), i = 0; i < this.length; i++) {
  1850. var s = this[i],
  1851. a = "function" == typeof t ? t.call(s, i, s) : "string" != typeof t || Ue(t) ? t : r.find(t).clone();
  1852. if ((a = this._makeDomArray(a, i < n)[0]) && k(a)) {
  1853. for (var c = a, u = 0; u < c.children.length;) {
  1854. var l = c.children[u];
  1855. S(l) ? (c = l, u = 0) : u++
  1856. }
  1857. e(s, c, [a])
  1858. }
  1859. }
  1860. return this
  1861. }
  1862. }
  1863. var Yn = qn(function (e, t, n) {
  1864. var i, s, r = e.parent;
  1865. r && (s = (i = r.children).indexOf(e), Bn([e], t), Hn(i, s, 0, n, r))
  1866. }), Kn = qn(function (e, t, n) {
  1867. k(e) && (Bn(e.children, t), Bn(n, e))
  1868. }), Wn = Object.freeze({
  1869. __proto__: null, _makeDomArray: function (e, t) {
  1870. var n = this;
  1871. return null == e ? [] : Pe(e) ? t ? Fe(e.get()) : e.get() : Array.isArray(e) ? e.reduce(function (e, r) {
  1872. return e.concat(n._makeDomArray(r, t))
  1873. }, []) : "string" == typeof e ? this._parse(e, this.options, !1, null).children : t ? Fe([e]) : [e]
  1874. }, appendTo: function (e) {
  1875. return (Pe(e) ? e : this._make(e)).append(this), this
  1876. }, prependTo: function (e) {
  1877. return (Pe(e) ? e : this._make(e)).prepend(this), this
  1878. }, append: Gn, prepend: jn, wrap: Yn, wrapInner: Kn, unwrap: function (e) {
  1879. var t = this;
  1880. return this.parent(e).not("body").each(function (e, n) {
  1881. t._make(n).replaceWith(n.children)
  1882. }), this
  1883. }, wrapAll: function (e) {
  1884. var t = this[0];
  1885. if (t) {
  1886. for (var n = this._make("function" == typeof e ? e.call(t, 0, t) : e).insertBefore(t), r = void 0, i = 0; i < n.length; i++) "tag" === n[i].type && (r = n[i]);
  1887. for (var s = 0; r && s < r.children.length;) {
  1888. var a = r.children[s];
  1889. "tag" === a.type ? (r = a, s = 0) : s++
  1890. }
  1891. r && this._make(r).append(this)
  1892. }
  1893. return this
  1894. }, after: function () {
  1895. for (var e = this, t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
  1896. var r = this.length - 1;
  1897. return Be(this, function (n, i) {
  1898. var a, o, s = n.parent;
  1899. k(n) && s && ((o = (a = s.children).indexOf(n)) < 0 || (n = "function" == typeof t[0] ? t[0].call(n, i, e._render(n.children)) : t, Hn(a, o + 1, 0, e._makeDomArray(n, i < r), s)))
  1900. })
  1901. }, insertAfter: function (e) {
  1902. var t = this, n = ("string" == typeof e && (e = this._make(e)), this.remove(), []);
  1903. return this._makeDomArray(e).forEach(function (e) {
  1904. var s, r = t.clone().toArray(), i = e.parent;
  1905. !i || (e = (s = i.children).indexOf(e)) < 0 || (Hn(s, e + 1, 0, r, i), n.push.apply(n, r))
  1906. }), this._make(n)
  1907. }, before: function () {
  1908. for (var e = this, t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
  1909. var r = this.length - 1;
  1910. return Be(this, function (n, i) {
  1911. var a, o, s = n.parent;
  1912. k(n) && s && ((o = (a = s.children).indexOf(n)) < 0 || (n = "function" == typeof t[0] ? t[0].call(n, i, e._render(n.children)) : t, Hn(a, o, 0, e._makeDomArray(n, i < r), s)))
  1913. })
  1914. }, insertBefore: function (e) {
  1915. var t = this, e = this._make(e), r = (this.remove(), []);
  1916. return Be(e, function (e) {
  1917. var s, n = t.clone().toArray(), i = e.parent;
  1918. !i || (e = (s = i.children).indexOf(e)) < 0 || (Hn(s, e, 0, n, i), r.push.apply(r, n))
  1919. }), this._make(r)
  1920. }, remove: function (e) {
  1921. return Be(e ? this.filter(e) : this, function (e) {
  1922. ie(e), e.prev = e.next = e.parent = null
  1923. }), this
  1924. }, replaceWith: function (e) {
  1925. var t = this;
  1926. return Be(this, function (n, r) {
  1927. var s, c, i = n.parent;
  1928. i && (s = i.children, r = "function" == typeof e ? e.call(n, r, n) : e, Bn(r = t._makeDomArray(r), null), c = s.indexOf(n), Hn(s, c, 1, r, i), r.includes(n) || (n.parent = n.prev = n.next = null))
  1929. })
  1930. }, empty: function () {
  1931. return Be(this, function (e) {
  1932. k(e) && (e.children.forEach(function (e) {
  1933. e.next = e.prev = e.parent = null
  1934. }), e.children.length = 0)
  1935. })
  1936. }, html: function (e) {
  1937. var n, t = this;
  1938. return void 0 === e ? (n = this[0]) && k(n) ? this._render(n.children) : null : Be(this, function (n) {
  1939. k(n) && (n.children.forEach(function (e) {
  1940. e.next = e.prev = e.parent = null
  1941. }), Bn(Pe(e) ? e.toArray() : t._parse("".concat(e), t.options, !1, n).children, n))
  1942. })
  1943. }, toString: function () {
  1944. return this._render(this)
  1945. }, text: function (e) {
  1946. var t = this;
  1947. return void 0 === e ? Oe(this) : Be(this, "function" == typeof e ? function (n, r) {
  1948. return t._make(n).text(e.call(n, r, Oe([n])))
  1949. } : function (t) {
  1950. k(t) && (t.children.forEach(function (e) {
  1951. e.next = e.prev = e.parent = null
  1952. }), Bn(new _("".concat(e)), t))
  1953. })
  1954. }, clone: function () {
  1955. return this._make(Fe(this.get()))
  1956. }
  1957. });
  1958. function Vn(e, t, n, r) {
  1959. var i, a;
  1960. "string" == typeof t ? (i = $n(e), "" === (r = "function" == typeof n ? n.call(e, r, i[t]) : n) ? delete i[t] : null != r && (i[t] = r), e.attribs.style = (a = i, Object.keys(a).reduce(function (e, t) {
  1961. return "".concat(e).concat(e ? " " : "").concat(t, ": ").concat(a[t], ";")
  1962. }, ""))) : "object" == typeof t && Object.keys(t).forEach(function (n, r) {
  1963. Vn(e, n, t[n], r)
  1964. })
  1965. }
  1966. function $n(e, t) {
  1967. var n, r;
  1968. if (e && S(e)) return n = function (e) {
  1969. if (!(e = (e || "").trim())) return {};
  1970. for (var t, n = {}, r = 0, i = e.split(";"); r < i.length; r++) {
  1971. var o, s = i[r], a = s.indexOf(":");
  1972. a < 1 || a === s.length - 1 ? 0 < (o = s.trimEnd()).length && void 0 !== t && (n[t] += ";".concat(o)) : n[t = s.slice(0, a).trim()] = s.slice(a + 1).trim()
  1973. }
  1974. return n
  1975. }(e.attribs.style), "string" == typeof t ? n[t] : Array.isArray(t) ? (r = {}, t.forEach(function (e) {
  1976. null != n[e] && (r[e] = n[e])
  1977. }), r) : n
  1978. }
  1979. var tr, ar, _r, Tr, Qn = Object.freeze({
  1980. __proto__: null, css: function (e, t) {
  1981. return null != e && null != t || "object" == typeof e && !Array.isArray(e) ? Be(this, function (n, r) {
  1982. S(n) && Vn(n, e, t, r)
  1983. }) : 0 !== this.length ? $n(this[0], e) : void 0
  1984. }
  1985. }), zn = "input,select,textarea,keygen", Xn = /%20/g, Zn = /\r?\n/g, Jn = Object.freeze({
  1986. __proto__: null, serialize: function () {
  1987. return this.serializeArray().map(function (e) {
  1988. return "".concat(encodeURIComponent(e.name), "=").concat(encodeURIComponent(e.value))
  1989. }).join("&").replace(Xn, "+")
  1990. }, serializeArray: function () {
  1991. var e = this;
  1992. return this.map(function (t, n) {
  1993. var r = e._make(n);
  1994. return (S(n) && "form" === n.name ? r.find(zn) : r.filter(zn)).toArray()
  1995. }).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map(function (t, n) {
  1996. var s = (n = e._make(n)).attr("name"), n = null != (n = n.val()) ? n : "";
  1997. return Array.isArray(n) ? n.map(function (e) {
  1998. return {name: s, value: e.replace(Zn, "\r\n")}
  1999. }) : {name: s, value: n.replace(Zn, "\r\n")}
  2000. }).toArray()
  2001. }
  2002. }), er = function (e, t, n) {
  2003. if (this.length = 0, this.options = n, this._root = t, e) {
  2004. for (var r = 0; r < e.length; r++) this[r] = e[r];
  2005. this.length = e.length
  2006. }
  2007. },
  2008. tr = (er.prototype.cheerio = "[cheerio object]", er.prototype.splice = Array.prototype.splice, er.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator], Object.assign(er.prototype, nt, Pn, Wn, Qn, Jn), function (e, t) {
  2009. return (tr = Object.setPrototypeOf || ({__proto__: []} instanceof Array ? function (e, t) {
  2010. e.__proto__ = t
  2011. } : function (e, t) {
  2012. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
  2013. }))(e, t)
  2014. }), nr = function (e, t) {
  2015. if ("function" != typeof t && null !== t) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
  2016. function n() {
  2017. this.constructor = e
  2018. }
  2019. tr(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
  2020. }, rr = function () {
  2021. return (rr = Object.assign || function (e) {
  2022. for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
  2023. return e
  2024. }).apply(this, arguments)
  2025. };
  2026. const ir = new Set([65534, 65535, 131070, 131071, 196606, 196607, 262142, 262143, 327678, 327679, 393214, 393215, 458750, 458751, 524286, 524287, 589822, 589823, 655358, 655359, 720894, 720895, 786430, 786431, 851966, 851967, 917502, 917503, 983038, 983039, 1048574, 1048575, 1114110, 1114111]),
  2027. sr = "�", or = (function (e) {
  2028. e[e.EOF = -1] = "EOF", e[e.NULL = 0] = "NULL", e[e.TABULATION = 9] = "TABULATION", e[e.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", e[e.LINE_FEED = 10] = "LINE_FEED", e[e.FORM_FEED = 12] = "FORM_FEED", e[e.SPACE = 32] = "SPACE", e[e.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", e[e.QUOTATION_MARK = 34] = "QUOTATION_MARK", e[e.NUMBER_SIGN = 35] = "NUMBER_SIGN", e[e.AMPERSAND = 38] = "AMPERSAND", e[e.APOSTROPHE = 39] = "APOSTROPHE", e[e.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", e[e.SOLIDUS = 47] = "SOLIDUS", e[e.DIGIT_0 = 48] = "DIGIT_0", e[e.DIGIT_9 = 57] = "DIGIT_9", e[e.SEMICOLON = 59] = "SEMICOLON", e[e.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", e[e.EQUALS_SIGN = 61] = "EQUALS_SIGN", e[e.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", e[e.QUESTION_MARK = 63] = "QUESTION_MARK", e[e.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", e[e.LATIN_CAPITAL_F = 70] = "LATIN_CAPITAL_F", e[e.LATIN_CAPITAL_X = 88] = "LATIN_CAPITAL_X", e[e.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", e[e.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", e[e.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", e[e.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", e[e.LATIN_SMALL_F = 102] = "LATIN_SMALL_F", e[e.LATIN_SMALL_X = 120] = "LATIN_SMALL_X", e[e.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z", e[e.REPLACEMENT_CHARACTER = 65533] = "REPLACEMENT_CHARACTER"
  2029. }(ar = ar || {}), "--"), cr = "[CDATA[", ur = "doctype", lr = "script", hr = "public", fr = "system";
  2030. function pr(e) {
  2031. return 55296 <= e && e <= 57343
  2032. }
  2033. function dr(e) {
  2034. return 32 !== e && 10 !== e && 13 !== e && 9 !== e && 12 !== e && 1 <= e && e <= 31 || 127 <= e && e <= 159
  2035. }
  2036. function mr(e) {
  2037. return 64976 <= e && e <= 65007 || ir.has(e)
  2038. }
  2039. !function (e) {
  2040. e.controlCharacterInInputStream = "control-character-in-input-stream", e.noncharacterInInputStream = "noncharacter-in-input-stream", e.surrogateInInputStream = "surrogate-in-input-stream", e.nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus", e.endTagWithAttributes = "end-tag-with-attributes", e.endTagWithTrailingSolidus = "end-tag-with-trailing-solidus", e.unexpectedSolidusInTag = "unexpected-solidus-in-tag", e.unexpectedNullCharacter = "unexpected-null-character", e.unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name", e.invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name", e.unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name", e.missingEndTagName = "missing-end-tag-name", e.unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name", e.unknownNamedCharacterReference = "unknown-named-character-reference", e.missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference", e.unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier", e.unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value", e.eofBeforeTagName = "eof-before-tag-name", e.eofInTag = "eof-in-tag", e.missingAttributeValue = "missing-attribute-value", e.missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes", e.missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword", e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers", e.missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword", e.missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier", e.missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier", e.missingDoctypePublicIdentifier = "missing-doctype-public-identifier", e.missingDoctypeSystemIdentifier = "missing-doctype-system-identifier", e.abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier", e.abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier", e.cdataInHtmlContent = "cdata-in-html-content", e.incorrectlyOpenedComment = "incorrectly-opened-comment", e.eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text", e.eofInDoctype = "eof-in-doctype", e.nestedComment = "nested-comment", e.abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment", e.eofInComment = "eof-in-comment", e.incorrectlyClosedComment = "incorrectly-closed-comment", e.eofInCdata = "eof-in-cdata", e.absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference", e.nullCharacterReference = "null-character-reference", e.surrogateCharacterReference = "surrogate-character-reference", e.characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range", e.controlCharacterReference = "control-character-reference", e.noncharacterCharacterReference = "noncharacter-character-reference", e.missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name", e.missingDoctypeName = "missing-doctype-name", e.invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name", e.duplicateAttribute = "duplicate-attribute", e.nonConformingDoctype = "non-conforming-doctype", e.missingDoctype = "missing-doctype", e.misplacedDoctype = "misplaced-doctype", e.endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element", e.closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements", e.disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head", e.openElementsLeftAfterEof = "open-elements-left-after-eof", e.abandonedHeadElementChild = "abandoned-head-element-child", e.misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element", e.nestedNoscriptInHead = "nested-noscript-in-head", e.eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text"
  2041. }(_r = _r || {});
  2042. class Er {
  2043. constructor(e) {
  2044. this.handler = e, this.html = "", this.pos = -1, this.lastGapPos = -2, this.gapStack = [], this.skipNextNewLine = !1, this.lastChunkWritten = !1, this.endOfChunkHit = !1, this.bufferWaterline = 65536, this.isEol = !1, this.lineStartPos = 0, this.droppedBufferSize = 0, this.line = 1, this.lastErrOffset = -1
  2045. }
  2046. get col() {
  2047. return this.pos - this.lineStartPos + Number(this.lastGapPos !== this.pos)
  2048. }
  2049. get offset() {
  2050. return this.droppedBufferSize + this.pos
  2051. }
  2052. getError(e) {
  2053. var {line: t, col: n, offset: r} = this;
  2054. return {code: e, startLine: t, endLine: t, startCol: n, endCol: n, startOffset: r, endOffset: r}
  2055. }
  2056. _err(e) {
  2057. this.handler.onParseError && this.lastErrOffset !== this.offset && (this.lastErrOffset = this.offset, this.handler.onParseError(this.getError(e)))
  2058. }
  2059. _addGap() {
  2060. this.gapStack.push(this.lastGapPos), this.lastGapPos = this.pos
  2061. }
  2062. _processSurrogate(e) {
  2063. if (this.pos !== this.html.length - 1) {
  2064. var t = this.html.charCodeAt(this.pos + 1);
  2065. if (56320 <= t && t <= 57343) return this.pos++, this._addGap(), 1024 * (e - 55296) + 9216 + t
  2066. } else if (!this.lastChunkWritten) return this.endOfChunkHit = !0, ar.EOF;
  2067. return this._err(_r.surrogateInInputStream), e
  2068. }
  2069. willDropParsedChunk() {
  2070. return this.pos > this.bufferWaterline
  2071. }
  2072. dropParsedChunk() {
  2073. this.willDropParsedChunk() && (this.html = this.html.substring(this.pos), this.lineStartPos -= this.pos, this.droppedBufferSize += this.pos, this.pos = 0, this.lastGapPos = -2, this.gapStack.length = 0)
  2074. }
  2075. write(e, t) {
  2076. 0 < this.html.length ? this.html += e : this.html = e, this.endOfChunkHit = !1, this.lastChunkWritten = t
  2077. }
  2078. insertHtmlAtCurrentPos(e) {
  2079. this.html = this.html.substring(0, this.pos + 1) + e + this.html.substring(this.pos + 1), this.endOfChunkHit = !1
  2080. }
  2081. startsWith(e, t) {
  2082. if (this.pos + e.length > this.html.length) return this.endOfChunkHit = !this.lastChunkWritten, !1;
  2083. if (t) return this.html.startsWith(e, this.pos);
  2084. for (let t = 0; t < e.length; t++) if ((32 | this.html.charCodeAt(this.pos + t)) !== e.charCodeAt(t)) return !1;
  2085. return !0
  2086. }
  2087. peek(e) {
  2088. return (e = this.pos + e) >= this.html.length ? (this.endOfChunkHit = !this.lastChunkWritten, ar.EOF) : (e = this.html.charCodeAt(e)) === ar.CARRIAGE_RETURN ? ar.LINE_FEED : e
  2089. }
  2090. advance() {
  2091. if (this.pos++, this.isEol && (this.isEol = !1, this.line++, this.lineStartPos = this.pos), this.pos >= this.html.length) return this.endOfChunkHit = !this.lastChunkWritten, ar.EOF;
  2092. let e = this.html.charCodeAt(this.pos);
  2093. return e === ar.CARRIAGE_RETURN ? (this.isEol = !0, this.skipNextNewLine = !0, ar.LINE_FEED) : e === ar.LINE_FEED && (this.isEol = !0, this.skipNextNewLine) ? (this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance()) : (this.skipNextNewLine = !1, pr(e) && (e = this._processSurrogate(e)), null === this.handler.onParseError || 31 < e && e < 127 || e === ar.LINE_FEED || e === ar.CARRIAGE_RETURN || 159 < e && e < 64976 || this._checkForProblematicCharacters(e), e)
  2094. }
  2095. _checkForProblematicCharacters(e) {
  2096. dr(e) ? this._err(_r.controlCharacterInInputStream) : mr(e) && this._err(_r.noncharacterInInputStream)
  2097. }
  2098. retreat(e) {
  2099. for (this.pos -= e; this.pos < this.lastGapPos;) this.lastGapPos = this.gapStack.pop(), this.pos--;
  2100. this.isEol = !1
  2101. }
  2102. }
  2103. function Ar(e, t) {
  2104. for (let n = e.attrs.length - 1; 0 <= n; n--) if (e.attrs[n].name === t) return e.attrs[n].value;
  2105. return null
  2106. }
  2107. !function (e) {
  2108. e[e.CHARACTER = 0] = "CHARACTER", e[e.NULL_CHARACTER = 1] = "NULL_CHARACTER", e[e.WHITESPACE_CHARACTER = 2] = "WHITESPACE_CHARACTER", e[e.START_TAG = 3] = "START_TAG", e[e.END_TAG = 4] = "END_TAG", e[e.COMMENT = 5] = "COMMENT", e[e.DOCTYPE = 6] = "DOCTYPE", e[e.EOF = 7] = "EOF", e[e.HIBERNATION = 8] = "HIBERNATION"
  2109. }(Tr = Tr || {});
  2110. var gr = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
  2111. function vr() {
  2112. throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")
  2113. }
  2114. function yr(e) {
  2115. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e
  2116. }
  2117. function Sr(e, t) {
  2118. return e(t = {exports: {}}, t.exports), t.exports
  2119. }
  2120. var Cr = Sr(function (e, t) {
  2121. Object.defineProperty(t, "__esModule", {value: !0}), t.default = new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function (e) {
  2122. return e.charCodeAt(0)
  2123. }))
  2124. }), Nr = (yr(Cr), Sr(function (e, t) {
  2125. Object.defineProperty(t, "__esModule", {value: !0}), t.default = new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function (e) {
  2126. return e.charCodeAt(0)
  2127. }))
  2128. })), br = (yr(Nr), Sr(function (e, t) {
  2129. Object.defineProperty(t, "__esModule", {value: !0}), t.replaceCodePoint = t.fromCodePoint = void 0;
  2130. var n,
  2131. r = new Map([[0, 65533], [128, 8364], [130, 8218], [131, 402], [132, 8222], [133, 8230], [134, 8224], [135, 8225], [136, 710], [137, 8240], [138, 352], [139, 8249], [140, 338], [142, 381], [145, 8216], [146, 8217], [147, 8220], [148, 8221], [149, 8226], [150, 8211], [151, 8212], [152, 732], [153, 8482], [154, 353], [155, 8250], [156, 339], [158, 382], [159, 376]]);
  2132. function i(e) {
  2133. var t;
  2134. return 55296 <= e && e <= 57343 || 1114111 < e ? 65533 : null != (t = r.get(e)) ? t : e
  2135. }
  2136. t.fromCodePoint = null != (n = String.fromCodePoint) ? n : function (e) {
  2137. var t = "";
  2138. return 65535 < e && (e -= 65536, t += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | 1023 & e), t + String.fromCharCode(e)
  2139. }, t.replaceCodePoint = i, t.default = function (e) {
  2140. return (0, t.fromCodePoint)(i(e))
  2141. }
  2142. })), Ir = (yr(br), br.replaceCodePoint, br.fromCodePoint, Cr), Or = Nr, kr = br, Lr = Sr(function (e, t) {
  2143. var n = gr && gr.__createBinding || (Object.create ? function (e, t, n, r) {
  2144. void 0 === r && (r = n);
  2145. var i = Object.getOwnPropertyDescriptor(t, n);
  2146. i && !("get" in i ? !t.__esModule : i.writable || i.configurable) || (i = {
  2147. enumerable: !0, get: function () {
  2148. return t[n]
  2149. }
  2150. }), Object.defineProperty(e, r, i)
  2151. } : function (e, t, n, r) {
  2152. e[r = void 0 === r ? n : r] = t[n]
  2153. }), r = gr && gr.__setModuleDefault || (Object.create ? function (e, t) {
  2154. Object.defineProperty(e, "default", {enumerable: !0, value: t})
  2155. } : function (e, t) {
  2156. e.default = t
  2157. }), i = gr && gr.__importStar || function (e) {
  2158. if (e && e.__esModule) return e;
  2159. var t = {};
  2160. if (null != e) for (var i in e) "default" !== i && Object.prototype.hasOwnProperty.call(e, i) && n(t, e, i);
  2161. return r(t, e), t
  2162. }, s = gr && gr.__importDefault || function (e) {
  2163. return e && e.__esModule ? e : {default: e}
  2164. },
  2165. a = (Object.defineProperty(t, "__esModule", {value: !0}), t.decodeXML = t.decodeHTMLStrict = t.decodeHTMLAttribute = t.decodeHTML = t.determineBranch = t.EntityDecoder = t.DecodingMode = t.BinTrieFlags = t.fromCodePoint = t.replaceCodePoint = t.decodeCodePoint = t.xmlDecodeTree = t.htmlDecodeTree = void 0, s(Ir)),
  2166. s = (t.htmlDecodeTree = a.default, s(Or)), c = (t.xmlDecodeTree = s.default, i(kr));
  2167. t.decodeCodePoint = c.default;
  2168. var u, h, f, p, l = kr;
  2169. function d(e) {
  2170. return e >= u.ZERO && e <= u.NINE
  2171. }
  2172. Object.defineProperty(t, "replaceCodePoint", {
  2173. enumerable: !0, get: function () {
  2174. return l.replaceCodePoint
  2175. }
  2176. }), Object.defineProperty(t, "fromCodePoint", {
  2177. enumerable: !0, get: function () {
  2178. return l.fromCodePoint
  2179. }
  2180. }), function (e) {
  2181. e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z"
  2182. }(u = {}), function (e) {
  2183. e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE"
  2184. }(h = t.BinTrieFlags || (t.BinTrieFlags = {})), function (e) {
  2185. e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity"
  2186. }(f = {}), function (e) {
  2187. e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute"
  2188. }(p = t.DecodingMode || (t.DecodingMode = {}));
  2189. var _ = function () {
  2190. function e(e, t, n) {
  2191. this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = f.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = p.Strict
  2192. }
  2193. return e.prototype.startEntity = function (e) {
  2194. this.decodeMode = e, this.state = f.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1
  2195. }, e.prototype.write = function (e, t) {
  2196. switch (this.state) {
  2197. case f.EntityStart:
  2198. return e.charCodeAt(t) === u.NUM ? (this.state = f.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = f.NamedEntity, this.stateNamedEntity(e, t));
  2199. case f.NumericStart:
  2200. return this.stateNumericStart(e, t);
  2201. case f.NumericDecimal:
  2202. return this.stateNumericDecimal(e, t);
  2203. case f.NumericHex:
  2204. return this.stateNumericHex(e, t);
  2205. case f.NamedEntity:
  2206. return this.stateNamedEntity(e, t)
  2207. }
  2208. }, e.prototype.stateNumericStart = function (e, t) {
  2209. return t >= e.length ? -1 : (32 | e.charCodeAt(t)) === u.LOWER_X ? (this.state = f.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = f.NumericDecimal, this.stateNumericDecimal(e, t))
  2210. }, e.prototype.addToNumericResult = function (e, t, n, r) {
  2211. t !== n && (n -= t, this.result = this.result * Math.pow(r, n) + parseInt(e.substr(t, n), r), this.consumed += n)
  2212. }, e.prototype.stateNumericHex = function (e, t) {
  2213. for (var r = t; t < e.length;) {
  2214. var i = e.charCodeAt(t);
  2215. if (!(d(i) || i >= u.UPPER_A && i <= u.UPPER_F || u.LOWER_A <= i && i <= u.LOWER_F)) return this.addToNumericResult(e, r, t, 16), this.emitNumericEntity(i, 3);
  2216. t += 1
  2217. }
  2218. return this.addToNumericResult(e, r, t, 16), -1
  2219. }, e.prototype.stateNumericDecimal = function (e, t) {
  2220. for (var n = t; t < e.length;) {
  2221. var r = e.charCodeAt(t);
  2222. if (!d(r)) return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
  2223. t += 1
  2224. }
  2225. return this.addToNumericResult(e, n, t, 10), -1
  2226. }, e.prototype.emitNumericEntity = function (e, t) {
  2227. if (this.consumed <= t) return null != (t = this.errors) && t.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
  2228. if (e === u.SEMI) this.consumed += 1; else if (this.decodeMode === p.Strict) return 0;
  2229. return this.emitCodePoint((0, c.replaceCodePoint)(this.result), this.consumed), this.errors && (e !== u.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed
  2230. }, e.prototype.stateNamedEntity = function (e, t) {
  2231. for (var n = this.decodeTree, r = n[this.treeIndex], i = (r & h.VALUE_LENGTH) >> 14; t < e.length; t++, this.excess++) {
  2232. var s = e.charCodeAt(t);
  2233. if (this.treeIndex = T(n, r, this.treeIndex + Math.max(1, i), s), this.treeIndex < 0) return 0 === this.result || this.decodeMode === p.Attribute && (0 === i || s === u.EQUALS || function (e) {
  2234. return u.UPPER_A <= e && e <= u.UPPER_Z || u.LOWER_A <= e && e <= u.LOWER_Z || d(e)
  2235. }(s)) ? 0 : this.emitNotTerminatedNamedEntity();
  2236. if (0 != (i = ((r = n[this.treeIndex]) & h.VALUE_LENGTH) >> 14)) {
  2237. if (s === u.SEMI) return this.emitNamedEntityData(this.treeIndex, i, this.consumed + this.excess);
  2238. this.decodeMode !== p.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0)
  2239. }
  2240. }
  2241. return -1
  2242. }, e.prototype.emitNotTerminatedNamedEntity = function () {
  2243. var t = this.result, n = (this.decodeTree[t] & h.VALUE_LENGTH) >> 14;
  2244. return this.emitNamedEntityData(t, n, this.consumed), null != (t = this.errors) && t.missingSemicolonAfterCharacterReference(), this.consumed
  2245. }, e.prototype.emitNamedEntityData = function (e, t, n) {
  2246. var r = this.decodeTree;
  2247. return this.emitCodePoint(1 === t ? r[e] & ~h.VALUE_LENGTH : r[e + 1], n), 3 === t && this.emitCodePoint(r[e + 2], n), n
  2248. }, e.prototype.end = function () {
  2249. var e;
  2250. switch (this.state) {
  2251. case f.NamedEntity:
  2252. return 0 === this.result || this.decodeMode === p.Attribute && this.result !== this.treeIndex ? 0 : this.emitNotTerminatedNamedEntity();
  2253. case f.NumericDecimal:
  2254. return this.emitNumericEntity(0, 2);
  2255. case f.NumericHex:
  2256. return this.emitNumericEntity(0, 3);
  2257. case f.NumericStart:
  2258. return null != (e = this.errors) && e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
  2259. case f.EntityStart:
  2260. return 0
  2261. }
  2262. }, e
  2263. }();
  2264. function E(e) {
  2265. var t = "", n = new _(e, function (e) {
  2266. return t += (0, c.fromCodePoint)(e)
  2267. });
  2268. return function (e, r) {
  2269. for (var i = 0, s = 0; 0 <= (s = e.indexOf("&", s));) {
  2270. t += e.slice(i, s), n.startEntity(r);
  2271. var a = n.write(e, s + 1);
  2272. if (a < 0) {
  2273. i = s + n.end();
  2274. break
  2275. }
  2276. i = s + a, s = 0 === a ? i + 1 : i
  2277. }
  2278. var o = t + e.slice(i);
  2279. return t = "", o
  2280. }
  2281. }
  2282. function T(e, t, n, r) {
  2283. var i = (t & h.BRANCH_LENGTH) >> 7, t = t & h.JUMP_TABLE;
  2284. if (0 == i) return 0 != t && r === t ? n : -1;
  2285. if (t) return (t = r - t) < 0 || i <= t ? -1 : e[n + t] - 1;
  2286. for (var o = n, c = o + i - 1; o <= c;) {
  2287. var u = o + c >>> 1, l = e[u];
  2288. if (l < r) o = 1 + u; else {
  2289. if (!(r < l)) return e[u + i];
  2290. c = u - 1
  2291. }
  2292. }
  2293. return -1
  2294. }
  2295. t.EntityDecoder = _, t.determineBranch = T;
  2296. var A = E(a.default), g = E(s.default);
  2297. t.decodeHTML = function (e, t) {
  2298. return void 0 === t && (t = p.Legacy), A(e, t)
  2299. }, t.decodeHTMLAttribute = function (e) {
  2300. return A(e, p.Attribute)
  2301. }, t.decodeHTMLStrict = function (e) {
  2302. return A(e, p.Strict)
  2303. }, t.decodeXML = function (e) {
  2304. return g(e, p.Strict)
  2305. }
  2306. }), Dr = (yr(Lr), Lr.decodeXML, Lr.decodeHTMLStrict, Lr.decodeHTMLAttribute, Lr.decodeHTML, Lr.determineBranch),
  2307. Rr = (Lr.EntityDecoder, Lr.DecodingMode, Lr.BinTrieFlags), wr = Lr.fromCodePoint, xr = Lr.replaceCodePoint;
  2308. Lr.decodeCodePoint;
  2309. var Mr, Pr, Br, Fr, Ur, Qr, _i, Yi, Hr = Lr.xmlDecodeTree, Gr = Lr.htmlDecodeTree;
  2310. !function (e) {
  2311. e.HTML = "http://www.w3.org/1999/xhtml", e.MATHML = "http://www.w3.org/1998/Math/MathML", e.SVG = "http://www.w3.org/2000/svg", e.XLINK = "http://www.w3.org/1999/xlink", e.XML = "http://www.w3.org/XML/1998/namespace", e.XMLNS = "http://www.w3.org/2000/xmlns/"
  2312. }(Mr = Mr || {}), function (e) {
  2313. e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size"
  2314. }(Pr = Pr || {}), function (e) {
  2315. e.NO_QUIRKS = "no-quirks", e.QUIRKS = "quirks", e.LIMITED_QUIRKS = "limited-quirks"
  2316. }(Br = Br || {}), function (e) {
  2317. e.A = "a", e.ADDRESS = "address", e.ANNOTATION_XML = "annotation-xml", e.APPLET = "applet", e.AREA = "area", e.ARTICLE = "article", e.ASIDE = "aside", e.B = "b", e.BASE = "base", e.BASEFONT = "basefont", e.BGSOUND = "bgsound", e.BIG = "big", e.BLOCKQUOTE = "blockquote", e.BODY = "body", e.BR = "br", e.BUTTON = "button", e.CAPTION = "caption", e.CENTER = "center", e.CODE = "code", e.COL = "col", e.COLGROUP = "colgroup", e.DD = "dd", e.DESC = "desc", e.DETAILS = "details", e.DIALOG = "dialog", e.DIR = "dir", e.DIV = "div", e.DL = "dl", e.DT = "dt", e.EM = "em", e.EMBED = "embed", e.FIELDSET = "fieldset", e.FIGCAPTION = "figcaption", e.FIGURE = "figure", e.FONT = "font", e.FOOTER = "footer", e.FOREIGN_OBJECT = "foreignObject", e.FORM = "form", e.FRAME = "frame", e.FRAMESET = "frameset", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.HEAD = "head", e.HEADER = "header", e.HGROUP = "hgroup", e.HR = "hr", e.HTML = "html", e.I = "i", e.IMG = "img", e.IMAGE = "image", e.INPUT = "input", e.IFRAME = "iframe", e.KEYGEN = "keygen", e.LABEL = "label", e.LI = "li", e.LINK = "link", e.LISTING = "listing", e.MAIN = "main", e.MALIGNMARK = "malignmark", e.MARQUEE = "marquee", e.MATH = "math", e.MENU = "menu", e.META = "meta", e.MGLYPH = "mglyph", e.MI = "mi", e.MO = "mo", e.MN = "mn", e.MS = "ms", e.MTEXT = "mtext", e.NAV = "nav", e.NOBR = "nobr", e.NOFRAMES = "noframes", e.NOEMBED = "noembed", e.NOSCRIPT = "noscript", e.OBJECT = "object", e.OL = "ol", e.OPTGROUP = "optgroup", e.OPTION = "option", e.P = "p", e.PARAM = "param", e.PLAINTEXT = "plaintext", e.PRE = "pre", e.RB = "rb", e.RP = "rp", e.RT = "rt", e.RTC = "rtc", e.RUBY = "ruby", e.S = "s", e.SCRIPT = "script", e.SECTION = "section", e.SELECT = "select", e.SOURCE = "source", e.SMALL = "small", e.SPAN = "span", e.STRIKE = "strike", e.STRONG = "strong", e.STYLE = "style",e.SUB = "sub",e.SUMMARY = "summary",e.SUP = "sup",e.TABLE = "table",e.TBODY = "tbody",e.TEMPLATE = "template",e.TEXTAREA = "textarea",e.TFOOT = "tfoot",e.TD = "td",e.TH = "th",e.THEAD = "thead",e.TITLE = "title",e.TR = "tr",e.TRACK = "track",e.TT = "tt",e.U = "u",e.UL = "ul",e.SVG = "svg",e.VAR = "var",e.WBR = "wbr",e.XMP = "xmp"
  2318. }(Fr = Fr || {}), function (e) {
  2319. e[e.UNKNOWN = 0] = "UNKNOWN", e[e.A = 1] = "A", e[e.ADDRESS = 2] = "ADDRESS", e[e.ANNOTATION_XML = 3] = "ANNOTATION_XML", e[e.APPLET = 4] = "APPLET", e[e.AREA = 5] = "AREA", e[e.ARTICLE = 6] = "ARTICLE", e[e.ASIDE = 7] = "ASIDE", e[e.B = 8] = "B", e[e.BASE = 9] = "BASE", e[e.BASEFONT = 10] = "BASEFONT", e[e.BGSOUND = 11] = "BGSOUND", e[e.BIG = 12] = "BIG", e[e.BLOCKQUOTE = 13] = "BLOCKQUOTE", e[e.BODY = 14] = "BODY", e[e.BR = 15] = "BR", e[e.BUTTON = 16] = "BUTTON", e[e.CAPTION = 17] = "CAPTION", e[e.CENTER = 18] = "CENTER", e[e.CODE = 19] = "CODE", e[e.COL = 20] = "COL", e[e.COLGROUP = 21] = "COLGROUP", e[e.DD = 22] = "DD", e[e.DESC = 23] = "DESC", e[e.DETAILS = 24] = "DETAILS", e[e.DIALOG = 25] = "DIALOG", e[e.DIR = 26] = "DIR", e[e.DIV = 27] = "DIV", e[e.DL = 28] = "DL", e[e.DT = 29] = "DT", e[e.EM = 30] = "EM", e[e.EMBED = 31] = "EMBED", e[e.FIELDSET = 32] = "FIELDSET", e[e.FIGCAPTION = 33] = "FIGCAPTION", e[e.FIGURE = 34] = "FIGURE", e[e.FONT = 35] = "FONT", e[e.FOOTER = 36] = "FOOTER", e[e.FOREIGN_OBJECT = 37] = "FOREIGN_OBJECT", e[e.FORM = 38] = "FORM", e[e.FRAME = 39] = "FRAME", e[e.FRAMESET = 40] = "FRAMESET", e[e.H1 = 41] = "H1", e[e.H2 = 42] = "H2", e[e.H3 = 43] = "H3", e[e.H4 = 44] = "H4", e[e.H5 = 45] = "H5", e[e.H6 = 46] = "H6", e[e.HEAD = 47] = "HEAD", e[e.HEADER = 48] = "HEADER", e[e.HGROUP = 49] = "HGROUP", e[e.HR = 50] = "HR", e[e.HTML = 51] = "HTML", e[e.I = 52] = "I", e[e.IMG = 53] = "IMG", e[e.IMAGE = 54] = "IMAGE", e[e.INPUT = 55] = "INPUT", e[e.IFRAME = 56] = "IFRAME", e[e.KEYGEN = 57] = "KEYGEN", e[e.LABEL = 58] = "LABEL", e[e.LI = 59] = "LI", e[e.LINK = 60] = "LINK", e[e.LISTING = 61] = "LISTING", e[e.MAIN = 62] = "MAIN", e[e.MALIGNMARK = 63] = "MALIGNMARK", e[e.MARQUEE = 64] = "MARQUEE", e[e.MATH = 65] = "MATH", e[e.MENU = 66] = "MENU", e[e.META = 67] = "META", e[e.MGLYPH = 68] = "MGLYPH", e[e.MI = 69] = "MI", e[e.MO = 70] = "MO", e[e.MN = 71] = "MN", e[e.MS = 72] = "MS", e[e.MTEXT = 73] = "MTEXT", e[e.NAV = 74] = "NAV", e[e.NOBR = 75] = "NOBR", e[e.NOFRAMES = 76] = "NOFRAMES", e[e.NOEMBED = 77] = "NOEMBED", e[e.NOSCRIPT = 78] = "NOSCRIPT", e[e.OBJECT = 79] = "OBJECT", e[e.OL = 80] = "OL", e[e.OPTGROUP = 81] = "OPTGROUP", e[e.OPTION = 82] = "OPTION", e[e.P = 83] = "P", e[e.PARAM = 84] = "PARAM", e[e.PLAINTEXT = 85] = "PLAINTEXT", e[e.PRE = 86] = "PRE", e[e.RB = 87] = "RB", e[e.RP = 88] = "RP", e[e.RT = 89] = "RT", e[e.RTC = 90] = "RTC", e[e.RUBY = 91] = "RUBY", e[e.S = 92] = "S", e[e.SCRIPT = 93] = "SCRIPT", e[e.SECTION = 94] = "SECTION", e[e.SELECT = 95] = "SELECT", e[e.SOURCE = 96] = "SOURCE", e[e.SMALL = 97] = "SMALL", e[e.SPAN = 98] = "SPAN", e[e.STRIKE = 99] = "STRIKE", e[e.STRONG = 100] = "STRONG",e[e.STYLE = 101] = "STYLE",e[e.SUB = 102] = "SUB",e[e.SUMMARY = 103] = "SUMMARY",e[e.SUP = 104] = "SUP",e[e.TABLE = 105] = "TABLE",e[e.TBODY = 106] = "TBODY",e[e.TEMPLATE = 107] = "TEMPLATE",e[e.TEXTAREA = 108] = "TEXTAREA",e[e.TFOOT = 109] = "TFOOT",e[e.TD = 110] = "TD",e[e.TH = 111] = "TH",e[e.THEAD = 112] = "THEAD",e[e.TITLE = 113] = "TITLE",e[e.TR = 114] = "TR",e[e.TRACK = 115] = "TRACK",e[e.TT = 116] = "TT",e[e.U = 117] = "U",e[e.UL = 118] = "UL",e[e.SVG = 119] = "SVG",e[e.VAR = 120] = "VAR",e[e.WBR = 121] = "WBR",e[e.XMP = 122] = "XMP"
  2320. }(Ur = Ur || {});
  2321. const jr = new Map([[Fr.A, Ur.A], [Fr.ADDRESS, Ur.ADDRESS], [Fr.ANNOTATION_XML, Ur.ANNOTATION_XML], [Fr.APPLET, Ur.APPLET], [Fr.AREA, Ur.AREA], [Fr.ARTICLE, Ur.ARTICLE], [Fr.ASIDE, Ur.ASIDE], [Fr.B, Ur.B], [Fr.BASE, Ur.BASE], [Fr.BASEFONT, Ur.BASEFONT], [Fr.BGSOUND, Ur.BGSOUND], [Fr.BIG, Ur.BIG], [Fr.BLOCKQUOTE, Ur.BLOCKQUOTE], [Fr.BODY, Ur.BODY], [Fr.BR, Ur.BR], [Fr.BUTTON, Ur.BUTTON], [Fr.CAPTION, Ur.CAPTION], [Fr.CENTER, Ur.CENTER], [Fr.CODE, Ur.CODE], [Fr.COL, Ur.COL], [Fr.COLGROUP, Ur.COLGROUP], [Fr.DD, Ur.DD], [Fr.DESC, Ur.DESC], [Fr.DETAILS, Ur.DETAILS], [Fr.DIALOG, Ur.DIALOG], [Fr.DIR, Ur.DIR], [Fr.DIV, Ur.DIV], [Fr.DL, Ur.DL], [Fr.DT, Ur.DT], [Fr.EM, Ur.EM], [Fr.EMBED, Ur.EMBED], [Fr.FIELDSET, Ur.FIELDSET], [Fr.FIGCAPTION, Ur.FIGCAPTION], [Fr.FIGURE, Ur.FIGURE], [Fr.FONT, Ur.FONT], [Fr.FOOTER, Ur.FOOTER], [Fr.FOREIGN_OBJECT, Ur.FOREIGN_OBJECT], [Fr.FORM, Ur.FORM], [Fr.FRAME, Ur.FRAME], [Fr.FRAMESET, Ur.FRAMESET], [Fr.H1, Ur.H1], [Fr.H2, Ur.H2], [Fr.H3, Ur.H3], [Fr.H4, Ur.H4], [Fr.H5, Ur.H5], [Fr.H6, Ur.H6], [Fr.HEAD, Ur.HEAD], [Fr.HEADER, Ur.HEADER], [Fr.HGROUP, Ur.HGROUP], [Fr.HR, Ur.HR], [Fr.HTML, Ur.HTML], [Fr.I, Ur.I], [Fr.IMG, Ur.IMG], [Fr.IMAGE, Ur.IMAGE], [Fr.INPUT, Ur.INPUT], [Fr.IFRAME, Ur.IFRAME], [Fr.KEYGEN, Ur.KEYGEN], [Fr.LABEL, Ur.LABEL], [Fr.LI, Ur.LI], [Fr.LINK, Ur.LINK], [Fr.LISTING, Ur.LISTING], [Fr.MAIN, Ur.MAIN], [Fr.MALIGNMARK, Ur.MALIGNMARK], [Fr.MARQUEE, Ur.MARQUEE], [Fr.MATH, Ur.MATH], [Fr.MENU, Ur.MENU], [Fr.META, Ur.META], [Fr.MGLYPH, Ur.MGLYPH], [Fr.MI, Ur.MI], [Fr.MO, Ur.MO], [Fr.MN, Ur.MN], [Fr.MS, Ur.MS], [Fr.MTEXT, Ur.MTEXT], [Fr.NAV, Ur.NAV], [Fr.NOBR, Ur.NOBR], [Fr.NOFRAMES, Ur.NOFRAMES], [Fr.NOEMBED, Ur.NOEMBED], [Fr.NOSCRIPT, Ur.NOSCRIPT], [Fr.OBJECT, Ur.OBJECT], [Fr.OL, Ur.OL], [Fr.OPTGROUP, Ur.OPTGROUP], [Fr.OPTION, Ur.OPTION], [Fr.P, Ur.P], [Fr.PARAM, Ur.PARAM], [Fr.PLAINTEXT, Ur.PLAINTEXT], [Fr.PRE, Ur.PRE], [Fr.RB, Ur.RB], [Fr.RP, Ur.RP], [Fr.RT, Ur.RT], [Fr.RTC, Ur.RTC], [Fr.RUBY, Ur.RUBY], [Fr.S, Ur.S], [Fr.SCRIPT, Ur.SCRIPT], [Fr.SECTION, Ur.SECTION], [Fr.SELECT, Ur.SELECT], [Fr.SOURCE, Ur.SOURCE], [Fr.SMALL, Ur.SMALL], [Fr.SPAN, Ur.SPAN], [Fr.STRIKE, Ur.STRIKE], [Fr.STRONG, Ur.STRONG], [Fr.STYLE, Ur.STYLE], [Fr.SUB, Ur.SUB], [Fr.SUMMARY, Ur.SUMMARY], [Fr.SUP, Ur.SUP], [Fr.TABLE, Ur.TABLE], [Fr.TBODY, Ur.TBODY], [Fr.TEMPLATE, Ur.TEMPLATE], [Fr.TEXTAREA, Ur.TEXTAREA], [Fr.TFOOT, Ur.TFOOT], [Fr.TD, Ur.TD], [Fr.TH, Ur.TH], [Fr.THEAD, Ur.THEAD], [Fr.TITLE, Ur.TITLE], [Fr.TR, Ur.TR], [Fr.TRACK, Ur.TRACK], [Fr.TT, Ur.TT], [Fr.U, Ur.U], [Fr.UL, Ur.UL], [Fr.SVG, Ur.SVG], [Fr.VAR, Ur.VAR], [Fr.WBR, Ur.WBR], [Fr.XMP, Ur.XMP]]);
  2322. function qr(e) {
  2323. return null != (e = jr.get(e)) ? e : Ur.UNKNOWN
  2324. }
  2325. const Yr = Ur, Kr = {
  2326. [Mr.HTML]: new Set([Yr.ADDRESS, Yr.APPLET, Yr.AREA, Yr.ARTICLE, Yr.ASIDE, Yr.BASE, Yr.BASEFONT, Yr.BGSOUND, Yr.BLOCKQUOTE, Yr.BODY, Yr.BR, Yr.BUTTON, Yr.CAPTION, Yr.CENTER, Yr.COL, Yr.COLGROUP, Yr.DD, Yr.DETAILS, Yr.DIR, Yr.DIV, Yr.DL, Yr.DT, Yr.EMBED, Yr.FIELDSET, Yr.FIGCAPTION, Yr.FIGURE, Yr.FOOTER, Yr.FORM, Yr.FRAME, Yr.FRAMESET, Yr.H1, Yr.H2, Yr.H3, Yr.H4, Yr.H5, Yr.H6, Yr.HEAD, Yr.HEADER, Yr.HGROUP, Yr.HR, Yr.HTML, Yr.IFRAME, Yr.IMG, Yr.INPUT, Yr.LI, Yr.LINK, Yr.LISTING, Yr.MAIN, Yr.MARQUEE, Yr.MENU, Yr.META, Yr.NAV, Yr.NOEMBED, Yr.NOFRAMES, Yr.NOSCRIPT, Yr.OBJECT, Yr.OL, Yr.P, Yr.PARAM, Yr.PLAINTEXT, Yr.PRE, Yr.SCRIPT, Yr.SECTION, Yr.SELECT, Yr.SOURCE, Yr.STYLE, Yr.SUMMARY, Yr.TABLE, Yr.TBODY, Yr.TD, Yr.TEMPLATE, Yr.TEXTAREA, Yr.TFOOT, Yr.TH, Yr.THEAD, Yr.TITLE, Yr.TR, Yr.TRACK, Yr.UL, Yr.WBR, Yr.XMP]),
  2327. [Mr.MATHML]: new Set([Yr.MI, Yr.MO, Yr.MN, Yr.MS, Yr.MTEXT, Yr.ANNOTATION_XML]),
  2328. [Mr.SVG]: new Set([Yr.TITLE, Yr.FOREIGN_OBJECT, Yr.DESC]),
  2329. [Mr.XLINK]: new Set,
  2330. [Mr.XML]: new Set,
  2331. [Mr.XMLNS]: new Set
  2332. };
  2333. function Wr(e) {
  2334. return e === Yr.H1 || e === Yr.H2 || e === Yr.H3 || e === Yr.H4 || e === Yr.H5 || e === Yr.H6
  2335. }
  2336. const Vr = new Set([Fr.STYLE, Fr.SCRIPT, Fr.XMP, Fr.IFRAME, Fr.NOEMBED, Fr.NOFRAMES, Fr.PLAINTEXT]),
  2337. $r = new Map([[128, 8364], [130, 8218], [131, 402], [132, 8222], [133, 8230], [134, 8224], [135, 8225], [136, 710], [137, 8240], [138, 352], [139, 8249], [140, 338], [142, 381], [145, 8216], [146, 8217], [147, 8220], [148, 8221], [149, 8226], [150, 8211], [151, 8212], [152, 732], [153, 8482], [154, 353], [155, 8250], [156, 339], [158, 382], [159, 376]]),
  2338. zr = (function (e) {
  2339. e[e.DATA = 0] = "DATA", e[e.RCDATA = 1] = "RCDATA", e[e.RAWTEXT = 2] = "RAWTEXT", e[e.SCRIPT_DATA = 3] = "SCRIPT_DATA", e[e.PLAINTEXT = 4] = "PLAINTEXT", e[e.TAG_OPEN = 5] = "TAG_OPEN", e[e.END_TAG_OPEN = 6] = "END_TAG_OPEN", e[e.TAG_NAME = 7] = "TAG_NAME", e[e.RCDATA_LESS_THAN_SIGN = 8] = "RCDATA_LESS_THAN_SIGN", e[e.RCDATA_END_TAG_OPEN = 9] = "RCDATA_END_TAG_OPEN", e[e.RCDATA_END_TAG_NAME = 10] = "RCDATA_END_TAG_NAME", e[e.RAWTEXT_LESS_THAN_SIGN = 11] = "RAWTEXT_LESS_THAN_SIGN", e[e.RAWTEXT_END_TAG_OPEN = 12] = "RAWTEXT_END_TAG_OPEN", e[e.RAWTEXT_END_TAG_NAME = 13] = "RAWTEXT_END_TAG_NAME", e[e.SCRIPT_DATA_LESS_THAN_SIGN = 14] = "SCRIPT_DATA_LESS_THAN_SIGN", e[e.SCRIPT_DATA_END_TAG_OPEN = 15] = "SCRIPT_DATA_END_TAG_OPEN", e[e.SCRIPT_DATA_END_TAG_NAME = 16] = "SCRIPT_DATA_END_TAG_NAME", e[e.SCRIPT_DATA_ESCAPE_START = 17] = "SCRIPT_DATA_ESCAPE_START", e[e.SCRIPT_DATA_ESCAPE_START_DASH = 18] = "SCRIPT_DATA_ESCAPE_START_DASH", e[e.SCRIPT_DATA_ESCAPED = 19] = "SCRIPT_DATA_ESCAPED", e[e.SCRIPT_DATA_ESCAPED_DASH = 20] = "SCRIPT_DATA_ESCAPED_DASH", e[e.SCRIPT_DATA_ESCAPED_DASH_DASH = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START", e[e.SCRIPT_DATA_DOUBLE_ESCAPED = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END", e[e.BEFORE_ATTRIBUTE_NAME = 31] = "BEFORE_ATTRIBUTE_NAME", e[e.ATTRIBUTE_NAME = 32] = "ATTRIBUTE_NAME", e[e.AFTER_ATTRIBUTE_NAME = 33] = "AFTER_ATTRIBUTE_NAME", e[e.BEFORE_ATTRIBUTE_VALUE = 34] = "BEFORE_ATTRIBUTE_VALUE", e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED", e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED", e[e.ATTRIBUTE_VALUE_UNQUOTED = 37] = "ATTRIBUTE_VALUE_UNQUOTED", e[e.AFTER_ATTRIBUTE_VALUE_QUOTED = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED", e[e.SELF_CLOSING_START_TAG = 39] = "SELF_CLOSING_START_TAG", e[e.BOGUS_COMMENT = 40] = "BOGUS_COMMENT", e[e.MARKUP_DECLARATION_OPEN = 41] = "MARKUP_DECLARATION_OPEN", e[e.COMMENT_START = 42] = "COMMENT_START", e[e.COMMENT_START_DASH = 43] = "COMMENT_START_DASH", e[e.COMMENT = 44] = "COMMENT", e[e.COMMENT_LESS_THAN_SIGN = 45] = "COMMENT_LESS_THAN_SIGN", e[e.COMMENT_LESS_THAN_SIGN_BANG = 46] = "COMMENT_LESS_THAN_SIGN_BANG", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", e[e.COMMENT_END_DASH = 49] = "COMMENT_END_DASH", e[e.COMMENT_END = 50] = "COMMENT_END", e[e.COMMENT_END_BANG = 51] = "COMMENT_END_BANG", e[e.DOCTYPE = 52] = "DOCTYPE", e[e.BEFORE_DOCTYPE_NAME = 53] = "BEFORE_DOCTYPE_NAME", e[e.DOCTYPE_NAME = 54] = "DOCTYPE_NAME", e[e.AFTER_DOCTYPE_NAME = 55] = "AFTER_DOCTYPE_NAME", e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD", e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER", e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD", e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER", e[e.BOGUS_DOCTYPE = 67] = "BOGUS_DOCTYPE", e[e.CDATA_SECTION = 68] = "CDATA_SECTION", e[e.CDATA_SECTION_BRACKET = 69] = "CDATA_SECTION_BRACKET", e[e.CDATA_SECTION_END = 70] = "CDATA_SECTION_END", e[e.CHARACTER_REFERENCE = 71] = "CHARACTER_REFERENCE", e[e.NAMED_CHARACTER_REFERENCE = 72] = "NAMED_CHARACTER_REFERENCE", e[e.AMBIGUOUS_AMPERSAND = 73] = "AMBIGUOUS_AMPERSAND", e[e.NUMERIC_CHARACTER_REFERENCE = 74] = "NUMERIC_CHARACTER_REFERENCE", e[e.HEXADEMICAL_CHARACTER_REFERENCE_START = 75] = "HEXADEMICAL_CHARACTER_REFERENCE_START", e[e.HEXADEMICAL_CHARACTER_REFERENCE = 76] = "HEXADEMICAL_CHARACTER_REFERENCE", e[e.DECIMAL_CHARACTER_REFERENCE = 77] = "DECIMAL_CHARACTER_REFERENCE", e[e.NUMERIC_CHARACTER_REFERENCE_END = 78] = "NUMERIC_CHARACTER_REFERENCE_END"
  2340. }(Qr = Qr || {}), {
  2341. DATA: Qr.DATA,
  2342. RCDATA: Qr.RCDATA,
  2343. RAWTEXT: Qr.RAWTEXT,
  2344. SCRIPT_DATA: Qr.SCRIPT_DATA,
  2345. PLAINTEXT: Qr.PLAINTEXT,
  2346. CDATA_SECTION: Qr.CDATA_SECTION
  2347. });
  2348. function Xr(e) {
  2349. return e >= ar.DIGIT_0 && e <= ar.DIGIT_9
  2350. }
  2351. function Zr(e) {
  2352. return e >= ar.LATIN_CAPITAL_A && e <= ar.LATIN_CAPITAL_Z
  2353. }
  2354. function Jr(e) {
  2355. return function (e) {
  2356. return e >= ar.LATIN_SMALL_A && e <= ar.LATIN_SMALL_Z
  2357. }(e) || Zr(e)
  2358. }
  2359. function ei(e) {
  2360. return Jr(e) || Xr(e)
  2361. }
  2362. function ti(e) {
  2363. return e >= ar.LATIN_CAPITAL_A && e <= ar.LATIN_CAPITAL_F
  2364. }
  2365. function ni(e) {
  2366. return e >= ar.LATIN_SMALL_A && e <= ar.LATIN_SMALL_F
  2367. }
  2368. function ri(e) {
  2369. return e + 32
  2370. }
  2371. function ii(e) {
  2372. return e === ar.SPACE || e === ar.LINE_FEED || e === ar.TABULATION || e === ar.FORM_FEED
  2373. }
  2374. function si(e) {
  2375. return ii(e) || e === ar.SOLIDUS || e === ar.GREATER_THAN_SIGN
  2376. }
  2377. class ai {
  2378. constructor(e, t) {
  2379. this.options = e, this.handler = t, this.paused = !1, this.inLoop = !1, this.inForeignNode = !1, this.lastStartTagName = "", this.active = !1, this.state = Qr.DATA, this.returnState = Qr.DATA, this.charRefCode = -1, this.consumedAfterSnapshot = -1, this.currentCharacterToken = null, this.currentToken = null, this.currentAttr = {
  2380. name: "",
  2381. value: ""
  2382. }, this.preprocessor = new Er(t), this.currentLocation = this.getCurrentLocation(-1)
  2383. }
  2384. _err(e) {
  2385. var t, n;
  2386. null != (n = (t = this.handler).onParseError) && n.call(t, this.preprocessor.getError(e))
  2387. }
  2388. getCurrentLocation(e) {
  2389. return this.options.sourceCodeLocationInfo ? {
  2390. startLine: this.preprocessor.line,
  2391. startCol: this.preprocessor.col - e,
  2392. startOffset: this.preprocessor.offset - e,
  2393. endLine: -1,
  2394. endCol: -1,
  2395. endOffset: -1
  2396. } : null
  2397. }
  2398. _runParsingLoop() {
  2399. if (!this.inLoop) {
  2400. for (this.inLoop = !0; this.active && !this.paused;) {
  2401. this.consumedAfterSnapshot = 0;
  2402. var e = this._consume();
  2403. this._ensureHibernation() || this._callState(e)
  2404. }
  2405. this.inLoop = !1
  2406. }
  2407. }
  2408. pause() {
  2409. this.paused = !0
  2410. }
  2411. resume(e) {
  2412. if (!this.paused) throw new Error("Parser was already resumed");
  2413. this.paused = !1, this.inLoop || (this._runParsingLoop(), this.paused) || null == e || e()
  2414. }
  2415. write(e, t, n) {
  2416. this.active = !0, this.preprocessor.write(e, t), this._runParsingLoop(), this.paused || null == n || n()
  2417. }
  2418. insertHtmlAtCurrentPos(e) {
  2419. this.active = !0, this.preprocessor.insertHtmlAtCurrentPos(e), this._runParsingLoop()
  2420. }
  2421. _ensureHibernation() {
  2422. return !(!this.preprocessor.endOfChunkHit || (this._unconsume(this.consumedAfterSnapshot), this.active = !1))
  2423. }
  2424. _consume() {
  2425. return this.consumedAfterSnapshot++, this.preprocessor.advance()
  2426. }
  2427. _unconsume(e) {
  2428. this.consumedAfterSnapshot -= e, this.preprocessor.retreat(e)
  2429. }
  2430. _reconsumeInState(e, t) {
  2431. this.state = e, this._callState(t)
  2432. }
  2433. _advanceBy(e) {
  2434. this.consumedAfterSnapshot += e;
  2435. for (let t = 0; t < e; t++) this.preprocessor.advance()
  2436. }
  2437. _consumeSequenceIfMatch(e, t) {
  2438. return !!this.preprocessor.startsWith(e, t) && (this._advanceBy(e.length - 1), !0)
  2439. }
  2440. _createStartTagToken() {
  2441. this.currentToken = {
  2442. type: Tr.START_TAG,
  2443. tagName: "",
  2444. tagID: Ur.UNKNOWN,
  2445. selfClosing: !1,
  2446. ackSelfClosing: !1,
  2447. attrs: [],
  2448. location: this.getCurrentLocation(1)
  2449. }
  2450. }
  2451. _createEndTagToken() {
  2452. this.currentToken = {
  2453. type: Tr.END_TAG,
  2454. tagName: "",
  2455. tagID: Ur.UNKNOWN,
  2456. selfClosing: !1,
  2457. ackSelfClosing: !1,
  2458. attrs: [],
  2459. location: this.getCurrentLocation(2)
  2460. }
  2461. }
  2462. _createCommentToken(e) {
  2463. this.currentToken = {type: Tr.COMMENT, data: "", location: this.getCurrentLocation(e)}
  2464. }
  2465. _createDoctypeToken(e) {
  2466. this.currentToken = {
  2467. type: Tr.DOCTYPE,
  2468. name: e,
  2469. forceQuirks: !1,
  2470. publicId: null,
  2471. systemId: null,
  2472. location: this.currentLocation
  2473. }
  2474. }
  2475. _createCharacterToken(e, t) {
  2476. this.currentCharacterToken = {type: e, chars: t, location: this.currentLocation}
  2477. }
  2478. _createAttr(e) {
  2479. this.currentAttr = {name: e, value: ""}, this.currentLocation = this.getCurrentLocation(0)
  2480. }
  2481. _leaveAttrName() {
  2482. var e, n = this.currentToken;
  2483. null === Ar(n, this.currentAttr.name) ? (n.attrs.push(this.currentAttr), n.location && this.currentLocation && ((null != (e = (n = n.location).attrs) ? e : n.attrs = Object.create(null))[this.currentAttr.name] = this.currentLocation, this._leaveAttrValue())) : this._err(_r.duplicateAttribute)
  2484. }
  2485. _leaveAttrValue() {
  2486. this.currentLocation && (this.currentLocation.endLine = this.preprocessor.line, this.currentLocation.endCol = this.preprocessor.col, this.currentLocation.endOffset = this.preprocessor.offset)
  2487. }
  2488. prepareToken(e) {
  2489. this._emitCurrentCharacterToken(e.location), this.currentToken = null, e.location && (e.location.endLine = this.preprocessor.line, e.location.endCol = this.preprocessor.col + 1, e.location.endOffset = this.preprocessor.offset + 1), this.currentLocation = this.getCurrentLocation(-1)
  2490. }
  2491. emitCurrentTagToken() {
  2492. var e = this.currentToken;
  2493. this.prepareToken(e), e.tagID = qr(e.tagName), e.type === Tr.START_TAG ? (this.lastStartTagName = e.tagName, this.handler.onStartTag(e)) : (0 < e.attrs.length && this._err(_r.endTagWithAttributes), e.selfClosing && this._err(_r.endTagWithTrailingSolidus), this.handler.onEndTag(e)), this.preprocessor.dropParsedChunk()
  2494. }
  2495. emitCurrentComment(e) {
  2496. this.prepareToken(e), this.handler.onComment(e), this.preprocessor.dropParsedChunk()
  2497. }
  2498. emitCurrentDoctype(e) {
  2499. this.prepareToken(e), this.handler.onDoctype(e), this.preprocessor.dropParsedChunk()
  2500. }
  2501. _emitCurrentCharacterToken(e) {
  2502. if (this.currentCharacterToken) {
  2503. switch (e && this.currentCharacterToken.location && (this.currentCharacterToken.location.endLine = e.startLine, this.currentCharacterToken.location.endCol = e.startCol, this.currentCharacterToken.location.endOffset = e.startOffset), this.currentCharacterToken.type) {
  2504. case Tr.CHARACTER:
  2505. this.handler.onCharacter(this.currentCharacterToken);
  2506. break;
  2507. case Tr.NULL_CHARACTER:
  2508. this.handler.onNullCharacter(this.currentCharacterToken);
  2509. break;
  2510. case Tr.WHITESPACE_CHARACTER:
  2511. this.handler.onWhitespaceCharacter(this.currentCharacterToken)
  2512. }
  2513. this.currentCharacterToken = null
  2514. }
  2515. }
  2516. _emitEOFToken() {
  2517. var e = this.getCurrentLocation(0);
  2518. e && (e.endLine = e.startLine, e.endCol = e.startCol, e.endOffset = e.startOffset), this._emitCurrentCharacterToken(e), this.handler.onEof({
  2519. type: Tr.EOF,
  2520. location: e
  2521. }), this.active = !1
  2522. }
  2523. _appendCharToCurrentCharacterToken(e, t) {
  2524. if (this.currentCharacterToken) {
  2525. if (this.currentCharacterToken.type === e) return void (this.currentCharacterToken.chars += t);
  2526. this.currentLocation = this.getCurrentLocation(0), this._emitCurrentCharacterToken(this.currentLocation), this.preprocessor.dropParsedChunk()
  2527. }
  2528. this._createCharacterToken(e, t)
  2529. }
  2530. _emitCodePoint(e) {
  2531. var t = ii(e) ? Tr.WHITESPACE_CHARACTER : e === ar.NULL ? Tr.NULL_CHARACTER : Tr.CHARACTER;
  2532. this._appendCharToCurrentCharacterToken(t, String.fromCodePoint(e))
  2533. }
  2534. _emitChars(e) {
  2535. this._appendCharToCurrentCharacterToken(Tr.CHARACTER, e)
  2536. }
  2537. _matchNamedCharacterReference(e) {
  2538. let t = null, n = 0, r = !1;
  2539. for (let s = 0, a = Gr[0]; 0 <= s && !((s = Dr(Gr, a, s + 1, e)) < 0); e = this._consume()) {
  2540. n += 1;
  2541. var o = (a = Gr[s]) & Rr.VALUE_LENGTH;
  2542. if (o) {
  2543. const a = (o >> 14) - 1;
  2544. if (e !== ar.SEMICOLON && this._isCharacterReferenceInAttribute() && ((o = this.preprocessor.peek(1)) === ar.EQUALS_SIGN || ei(o)) ? (t = [ar.AMPERSAND], s += a) : (t = 0 == a ? [Gr[s] & ~Rr.VALUE_LENGTH] : 1 == a ? [Gr[++s]] : [Gr[++s], Gr[++s]], n = 0, r = e !== ar.SEMICOLON), 0 == a) {
  2545. this._consume();
  2546. break
  2547. }
  2548. }
  2549. }
  2550. return this._unconsume(n), r && !this.preprocessor.endOfChunkHit && this._err(_r.missingSemicolonAfterCharacterReference), this._unconsume(1), t
  2551. }
  2552. _isCharacterReferenceInAttribute() {
  2553. return this.returnState === Qr.ATTRIBUTE_VALUE_DOUBLE_QUOTED || this.returnState === Qr.ATTRIBUTE_VALUE_SINGLE_QUOTED || this.returnState === Qr.ATTRIBUTE_VALUE_UNQUOTED
  2554. }
  2555. _flushCodePointConsumedAsCharacterReference(e) {
  2556. this._isCharacterReferenceInAttribute() ? this.currentAttr.value += String.fromCodePoint(e) : this._emitCodePoint(e)
  2557. }
  2558. _callState(e) {
  2559. switch (this.state) {
  2560. case Qr.DATA:
  2561. this._stateData(e);
  2562. break;
  2563. case Qr.RCDATA:
  2564. this._stateRcdata(e);
  2565. break;
  2566. case Qr.RAWTEXT:
  2567. this._stateRawtext(e);
  2568. break;
  2569. case Qr.SCRIPT_DATA:
  2570. this._stateScriptData(e);
  2571. break;
  2572. case Qr.PLAINTEXT:
  2573. this._statePlaintext(e);
  2574. break;
  2575. case Qr.TAG_OPEN:
  2576. this._stateTagOpen(e);
  2577. break;
  2578. case Qr.END_TAG_OPEN:
  2579. this._stateEndTagOpen(e);
  2580. break;
  2581. case Qr.TAG_NAME:
  2582. this._stateTagName(e);
  2583. break;
  2584. case Qr.RCDATA_LESS_THAN_SIGN:
  2585. this._stateRcdataLessThanSign(e);
  2586. break;
  2587. case Qr.RCDATA_END_TAG_OPEN:
  2588. this._stateRcdataEndTagOpen(e);
  2589. break;
  2590. case Qr.RCDATA_END_TAG_NAME:
  2591. this._stateRcdataEndTagName(e);
  2592. break;
  2593. case Qr.RAWTEXT_LESS_THAN_SIGN:
  2594. this._stateRawtextLessThanSign(e);
  2595. break;
  2596. case Qr.RAWTEXT_END_TAG_OPEN:
  2597. this._stateRawtextEndTagOpen(e);
  2598. break;
  2599. case Qr.RAWTEXT_END_TAG_NAME:
  2600. this._stateRawtextEndTagName(e);
  2601. break;
  2602. case Qr.SCRIPT_DATA_LESS_THAN_SIGN:
  2603. this._stateScriptDataLessThanSign(e);
  2604. break;
  2605. case Qr.SCRIPT_DATA_END_TAG_OPEN:
  2606. this._stateScriptDataEndTagOpen(e);
  2607. break;
  2608. case Qr.SCRIPT_DATA_END_TAG_NAME:
  2609. this._stateScriptDataEndTagName(e);
  2610. break;
  2611. case Qr.SCRIPT_DATA_ESCAPE_START:
  2612. this._stateScriptDataEscapeStart(e);
  2613. break;
  2614. case Qr.SCRIPT_DATA_ESCAPE_START_DASH:
  2615. this._stateScriptDataEscapeStartDash(e);
  2616. break;
  2617. case Qr.SCRIPT_DATA_ESCAPED:
  2618. this._stateScriptDataEscaped(e);
  2619. break;
  2620. case Qr.SCRIPT_DATA_ESCAPED_DASH:
  2621. this._stateScriptDataEscapedDash(e);
  2622. break;
  2623. case Qr.SCRIPT_DATA_ESCAPED_DASH_DASH:
  2624. this._stateScriptDataEscapedDashDash(e);
  2625. break;
  2626. case Qr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:
  2627. this._stateScriptDataEscapedLessThanSign(e);
  2628. break;
  2629. case Qr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:
  2630. this._stateScriptDataEscapedEndTagOpen(e);
  2631. break;
  2632. case Qr.SCRIPT_DATA_ESCAPED_END_TAG_NAME:
  2633. this._stateScriptDataEscapedEndTagName(e);
  2634. break;
  2635. case Qr.SCRIPT_DATA_DOUBLE_ESCAPE_START:
  2636. this._stateScriptDataDoubleEscapeStart(e);
  2637. break;
  2638. case Qr.SCRIPT_DATA_DOUBLE_ESCAPED:
  2639. this._stateScriptDataDoubleEscaped(e);
  2640. break;
  2641. case Qr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:
  2642. this._stateScriptDataDoubleEscapedDash(e);
  2643. break;
  2644. case Qr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:
  2645. this._stateScriptDataDoubleEscapedDashDash(e);
  2646. break;
  2647. case Qr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:
  2648. this._stateScriptDataDoubleEscapedLessThanSign(e);
  2649. break;
  2650. case Qr.SCRIPT_DATA_DOUBLE_ESCAPE_END:
  2651. this._stateScriptDataDoubleEscapeEnd(e);
  2652. break;
  2653. case Qr.BEFORE_ATTRIBUTE_NAME:
  2654. this._stateBeforeAttributeName(e);
  2655. break;
  2656. case Qr.ATTRIBUTE_NAME:
  2657. this._stateAttributeName(e);
  2658. break;
  2659. case Qr.AFTER_ATTRIBUTE_NAME:
  2660. this._stateAfterAttributeName(e);
  2661. break;
  2662. case Qr.BEFORE_ATTRIBUTE_VALUE:
  2663. this._stateBeforeAttributeValue(e);
  2664. break;
  2665. case Qr.ATTRIBUTE_VALUE_DOUBLE_QUOTED:
  2666. this._stateAttributeValueDoubleQuoted(e);
  2667. break;
  2668. case Qr.ATTRIBUTE_VALUE_SINGLE_QUOTED:
  2669. this._stateAttributeValueSingleQuoted(e);
  2670. break;
  2671. case Qr.ATTRIBUTE_VALUE_UNQUOTED:
  2672. this._stateAttributeValueUnquoted(e);
  2673. break;
  2674. case Qr.AFTER_ATTRIBUTE_VALUE_QUOTED:
  2675. this._stateAfterAttributeValueQuoted(e);
  2676. break;
  2677. case Qr.SELF_CLOSING_START_TAG:
  2678. this._stateSelfClosingStartTag(e);
  2679. break;
  2680. case Qr.BOGUS_COMMENT:
  2681. this._stateBogusComment(e);
  2682. break;
  2683. case Qr.MARKUP_DECLARATION_OPEN:
  2684. this._stateMarkupDeclarationOpen(e);
  2685. break;
  2686. case Qr.COMMENT_START:
  2687. this._stateCommentStart(e);
  2688. break;
  2689. case Qr.COMMENT_START_DASH:
  2690. this._stateCommentStartDash(e);
  2691. break;
  2692. case Qr.COMMENT:
  2693. this._stateComment(e);
  2694. break;
  2695. case Qr.COMMENT_LESS_THAN_SIGN:
  2696. this._stateCommentLessThanSign(e);
  2697. break;
  2698. case Qr.COMMENT_LESS_THAN_SIGN_BANG:
  2699. this._stateCommentLessThanSignBang(e);
  2700. break;
  2701. case Qr.COMMENT_LESS_THAN_SIGN_BANG_DASH:
  2702. this._stateCommentLessThanSignBangDash(e);
  2703. break;
  2704. case Qr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:
  2705. this._stateCommentLessThanSignBangDashDash(e);
  2706. break;
  2707. case Qr.COMMENT_END_DASH:
  2708. this._stateCommentEndDash(e);
  2709. break;
  2710. case Qr.COMMENT_END:
  2711. this._stateCommentEnd(e);
  2712. break;
  2713. case Qr.COMMENT_END_BANG:
  2714. this._stateCommentEndBang(e);
  2715. break;
  2716. case Qr.DOCTYPE:
  2717. this._stateDoctype(e);
  2718. break;
  2719. case Qr.BEFORE_DOCTYPE_NAME:
  2720. this._stateBeforeDoctypeName(e);
  2721. break;
  2722. case Qr.DOCTYPE_NAME:
  2723. this._stateDoctypeName(e);
  2724. break;
  2725. case Qr.AFTER_DOCTYPE_NAME:
  2726. this._stateAfterDoctypeName(e);
  2727. break;
  2728. case Qr.AFTER_DOCTYPE_PUBLIC_KEYWORD:
  2729. this._stateAfterDoctypePublicKeyword(e);
  2730. break;
  2731. case Qr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:
  2732. this._stateBeforeDoctypePublicIdentifier(e);
  2733. break;
  2734. case Qr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:
  2735. this._stateDoctypePublicIdentifierDoubleQuoted(e);
  2736. break;
  2737. case Qr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:
  2738. this._stateDoctypePublicIdentifierSingleQuoted(e);
  2739. break;
  2740. case Qr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:
  2741. this._stateAfterDoctypePublicIdentifier(e);
  2742. break;
  2743. case Qr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:
  2744. this._stateBetweenDoctypePublicAndSystemIdentifiers(e);
  2745. break;
  2746. case Qr.AFTER_DOCTYPE_SYSTEM_KEYWORD:
  2747. this._stateAfterDoctypeSystemKeyword(e);
  2748. break;
  2749. case Qr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:
  2750. this._stateBeforeDoctypeSystemIdentifier(e);
  2751. break;
  2752. case Qr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:
  2753. this._stateDoctypeSystemIdentifierDoubleQuoted(e);
  2754. break;
  2755. case Qr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:
  2756. this._stateDoctypeSystemIdentifierSingleQuoted(e);
  2757. break;
  2758. case Qr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:
  2759. this._stateAfterDoctypeSystemIdentifier(e);
  2760. break;
  2761. case Qr.BOGUS_DOCTYPE:
  2762. this._stateBogusDoctype(e);
  2763. break;
  2764. case Qr.CDATA_SECTION:
  2765. this._stateCdataSection(e);
  2766. break;
  2767. case Qr.CDATA_SECTION_BRACKET:
  2768. this._stateCdataSectionBracket(e);
  2769. break;
  2770. case Qr.CDATA_SECTION_END:
  2771. this._stateCdataSectionEnd(e);
  2772. break;
  2773. case Qr.CHARACTER_REFERENCE:
  2774. this._stateCharacterReference(e);
  2775. break;
  2776. case Qr.NAMED_CHARACTER_REFERENCE:
  2777. this._stateNamedCharacterReference(e);
  2778. break;
  2779. case Qr.AMBIGUOUS_AMPERSAND:
  2780. this._stateAmbiguousAmpersand(e);
  2781. break;
  2782. case Qr.NUMERIC_CHARACTER_REFERENCE:
  2783. this._stateNumericCharacterReference(e);
  2784. break;
  2785. case Qr.HEXADEMICAL_CHARACTER_REFERENCE_START:
  2786. this._stateHexademicalCharacterReferenceStart(e);
  2787. break;
  2788. case Qr.HEXADEMICAL_CHARACTER_REFERENCE:
  2789. this._stateHexademicalCharacterReference(e);
  2790. break;
  2791. case Qr.DECIMAL_CHARACTER_REFERENCE:
  2792. this._stateDecimalCharacterReference(e);
  2793. break;
  2794. case Qr.NUMERIC_CHARACTER_REFERENCE_END:
  2795. this._stateNumericCharacterReferenceEnd(e);
  2796. break;
  2797. default:
  2798. throw new Error("Unknown state")
  2799. }
  2800. }
  2801. _stateData(e) {
  2802. switch (e) {
  2803. case ar.LESS_THAN_SIGN:
  2804. this.state = Qr.TAG_OPEN;
  2805. break;
  2806. case ar.AMPERSAND:
  2807. this.returnState = Qr.DATA, this.state = Qr.CHARACTER_REFERENCE;
  2808. break;
  2809. case ar.NULL:
  2810. this._err(_r.unexpectedNullCharacter), this._emitCodePoint(e);
  2811. break;
  2812. case ar.EOF:
  2813. this._emitEOFToken();
  2814. break;
  2815. default:
  2816. this._emitCodePoint(e)
  2817. }
  2818. }
  2819. _stateRcdata(e) {
  2820. switch (e) {
  2821. case ar.AMPERSAND:
  2822. this.returnState = Qr.RCDATA, this.state = Qr.CHARACTER_REFERENCE;
  2823. break;
  2824. case ar.LESS_THAN_SIGN:
  2825. this.state = Qr.RCDATA_LESS_THAN_SIGN;
  2826. break;
  2827. case ar.NULL:
  2828. this._err(_r.unexpectedNullCharacter), this._emitChars(sr);
  2829. break;
  2830. case ar.EOF:
  2831. this._emitEOFToken();
  2832. break;
  2833. default:
  2834. this._emitCodePoint(e)
  2835. }
  2836. }
  2837. _stateRawtext(e) {
  2838. switch (e) {
  2839. case ar.LESS_THAN_SIGN:
  2840. this.state = Qr.RAWTEXT_LESS_THAN_SIGN;
  2841. break;
  2842. case ar.NULL:
  2843. this._err(_r.unexpectedNullCharacter), this._emitChars(sr);
  2844. break;
  2845. case ar.EOF:
  2846. this._emitEOFToken();
  2847. break;
  2848. default:
  2849. this._emitCodePoint(e)
  2850. }
  2851. }
  2852. _stateScriptData(e) {
  2853. switch (e) {
  2854. case ar.LESS_THAN_SIGN:
  2855. this.state = Qr.SCRIPT_DATA_LESS_THAN_SIGN;
  2856. break;
  2857. case ar.NULL:
  2858. this._err(_r.unexpectedNullCharacter), this._emitChars(sr);
  2859. break;
  2860. case ar.EOF:
  2861. this._emitEOFToken();
  2862. break;
  2863. default:
  2864. this._emitCodePoint(e)
  2865. }
  2866. }
  2867. _statePlaintext(e) {
  2868. switch (e) {
  2869. case ar.NULL:
  2870. this._err(_r.unexpectedNullCharacter), this._emitChars(sr);
  2871. break;
  2872. case ar.EOF:
  2873. this._emitEOFToken();
  2874. break;
  2875. default:
  2876. this._emitCodePoint(e)
  2877. }
  2878. }
  2879. _stateTagOpen(e) {
  2880. if (Jr(e)) this._createStartTagToken(), this.state = Qr.TAG_NAME, this._stateTagName(e); else switch (e) {
  2881. case ar.EXCLAMATION_MARK:
  2882. this.state = Qr.MARKUP_DECLARATION_OPEN;
  2883. break;
  2884. case ar.SOLIDUS:
  2885. this.state = Qr.END_TAG_OPEN;
  2886. break;
  2887. case ar.QUESTION_MARK:
  2888. this._err(_r.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = Qr.BOGUS_COMMENT, this._stateBogusComment(e);
  2889. break;
  2890. case ar.EOF:
  2891. this._err(_r.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
  2892. break;
  2893. default:
  2894. this._err(_r.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = Qr.DATA, this._stateData(e)
  2895. }
  2896. }
  2897. _stateEndTagOpen(e) {
  2898. if (Jr(e)) this._createEndTagToken(), this.state = Qr.TAG_NAME, this._stateTagName(e); else switch (e) {
  2899. case ar.GREATER_THAN_SIGN:
  2900. this._err(_r.missingEndTagName), this.state = Qr.DATA;
  2901. break;
  2902. case ar.EOF:
  2903. this._err(_r.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
  2904. break;
  2905. default:
  2906. this._err(_r.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = Qr.BOGUS_COMMENT, this._stateBogusComment(e)
  2907. }
  2908. }
  2909. _stateTagName(e) {
  2910. var t = this.currentToken;
  2911. switch (e) {
  2912. case ar.SPACE:
  2913. case ar.LINE_FEED:
  2914. case ar.TABULATION:
  2915. case ar.FORM_FEED:
  2916. this.state = Qr.BEFORE_ATTRIBUTE_NAME;
  2917. break;
  2918. case ar.SOLIDUS:
  2919. this.state = Qr.SELF_CLOSING_START_TAG;
  2920. break;
  2921. case ar.GREATER_THAN_SIGN:
  2922. this.state = Qr.DATA, this.emitCurrentTagToken();
  2923. break;
  2924. case ar.NULL:
  2925. this._err(_r.unexpectedNullCharacter), t.tagName += sr;
  2926. break;
  2927. case ar.EOF:
  2928. this._err(_r.eofInTag), this._emitEOFToken();
  2929. break;
  2930. default:
  2931. t.tagName += String.fromCodePoint(Zr(e) ? ri(e) : e)
  2932. }
  2933. }
  2934. _stateRcdataLessThanSign(e) {
  2935. e === ar.SOLIDUS ? this.state = Qr.RCDATA_END_TAG_OPEN : (this._emitChars("<"), this.state = Qr.RCDATA, this._stateRcdata(e))
  2936. }
  2937. _stateRcdataEndTagOpen(e) {
  2938. Jr(e) ? (this.state = Qr.RCDATA_END_TAG_NAME, this._stateRcdataEndTagName(e)) : (this._emitChars("</"), this.state = Qr.RCDATA, this._stateRcdata(e))
  2939. }
  2940. handleSpecialEndTag(e) {
  2941. if (!this.preprocessor.startsWith(this.lastStartTagName, !1)) return !this._ensureHibernation();
  2942. switch (this._createEndTagToken(), this.currentToken.tagName = this.lastStartTagName, this.preprocessor.peek(this.lastStartTagName.length)) {
  2943. case ar.SPACE:
  2944. case ar.LINE_FEED:
  2945. case ar.TABULATION:
  2946. case ar.FORM_FEED:
  2947. return this._advanceBy(this.lastStartTagName.length), this.state = Qr.BEFORE_ATTRIBUTE_NAME, !1;
  2948. case ar.SOLIDUS:
  2949. return this._advanceBy(this.lastStartTagName.length), this.state = Qr.SELF_CLOSING_START_TAG, !1;
  2950. case ar.GREATER_THAN_SIGN:
  2951. return this._advanceBy(this.lastStartTagName.length), this.emitCurrentTagToken(), this.state = Qr.DATA, !1;
  2952. default:
  2953. return !this._ensureHibernation()
  2954. }
  2955. }
  2956. _stateRcdataEndTagName(e) {
  2957. this.handleSpecialEndTag(e) && (this._emitChars("</"), this.state = Qr.RCDATA, this._stateRcdata(e))
  2958. }
  2959. _stateRawtextLessThanSign(e) {
  2960. e === ar.SOLIDUS ? this.state = Qr.RAWTEXT_END_TAG_OPEN : (this._emitChars("<"), this.state = Qr.RAWTEXT, this._stateRawtext(e))
  2961. }
  2962. _stateRawtextEndTagOpen(e) {
  2963. Jr(e) ? (this.state = Qr.RAWTEXT_END_TAG_NAME, this._stateRawtextEndTagName(e)) : (this._emitChars("</"), this.state = Qr.RAWTEXT, this._stateRawtext(e))
  2964. }
  2965. _stateRawtextEndTagName(e) {
  2966. this.handleSpecialEndTag(e) && (this._emitChars("</"), this.state = Qr.RAWTEXT, this._stateRawtext(e))
  2967. }
  2968. _stateScriptDataLessThanSign(e) {
  2969. switch (e) {
  2970. case ar.SOLIDUS:
  2971. this.state = Qr.SCRIPT_DATA_END_TAG_OPEN;
  2972. break;
  2973. case ar.EXCLAMATION_MARK:
  2974. this.state = Qr.SCRIPT_DATA_ESCAPE_START, this._emitChars("<!");
  2975. break;
  2976. default:
  2977. this._emitChars("<"), this.state = Qr.SCRIPT_DATA, this._stateScriptData(e)
  2978. }
  2979. }
  2980. _stateScriptDataEndTagOpen(e) {
  2981. Jr(e) ? (this.state = Qr.SCRIPT_DATA_END_TAG_NAME, this._stateScriptDataEndTagName(e)) : (this._emitChars("</"), this.state = Qr.SCRIPT_DATA, this._stateScriptData(e))
  2982. }
  2983. _stateScriptDataEndTagName(e) {
  2984. this.handleSpecialEndTag(e) && (this._emitChars("</"), this.state = Qr.SCRIPT_DATA, this._stateScriptData(e))
  2985. }
  2986. _stateScriptDataEscapeStart(e) {
  2987. e === ar.HYPHEN_MINUS ? (this.state = Qr.SCRIPT_DATA_ESCAPE_START_DASH, this._emitChars("-")) : (this.state = Qr.SCRIPT_DATA, this._stateScriptData(e))
  2988. }
  2989. _stateScriptDataEscapeStartDash(e) {
  2990. e === ar.HYPHEN_MINUS ? (this.state = Qr.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-")) : (this.state = Qr.SCRIPT_DATA, this._stateScriptData(e))
  2991. }
  2992. _stateScriptDataEscaped(e) {
  2993. switch (e) {
  2994. case ar.HYPHEN_MINUS:
  2995. this.state = Qr.SCRIPT_DATA_ESCAPED_DASH, this._emitChars("-");
  2996. break;
  2997. case ar.LESS_THAN_SIGN:
  2998. this.state = Qr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
  2999. break;
  3000. case ar.NULL:
  3001. this._err(_r.unexpectedNullCharacter), this._emitChars(sr);
  3002. break;
  3003. case ar.EOF:
  3004. this._err(_r.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
  3005. break;
  3006. default:
  3007. this._emitCodePoint(e)
  3008. }
  3009. }
  3010. _stateScriptDataEscapedDash(e) {
  3011. switch (e) {
  3012. case ar.HYPHEN_MINUS:
  3013. this.state = Qr.SCRIPT_DATA_ESCAPED_DASH_DASH, this._emitChars("-");
  3014. break;
  3015. case ar.LESS_THAN_SIGN:
  3016. this.state = Qr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
  3017. break;
  3018. case ar.NULL:
  3019. this._err(_r.unexpectedNullCharacter), this.state = Qr.SCRIPT_DATA_ESCAPED, this._emitChars(sr);
  3020. break;
  3021. case ar.EOF:
  3022. this._err(_r.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
  3023. break;
  3024. default:
  3025. this.state = Qr.SCRIPT_DATA_ESCAPED, this._emitCodePoint(e)
  3026. }
  3027. }
  3028. _stateScriptDataEscapedDashDash(e) {
  3029. switch (e) {
  3030. case ar.HYPHEN_MINUS:
  3031. this._emitChars("-");
  3032. break;
  3033. case ar.LESS_THAN_SIGN:
  3034. this.state = Qr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;
  3035. break;
  3036. case ar.GREATER_THAN_SIGN:
  3037. this.state = Qr.SCRIPT_DATA, this._emitChars(">");
  3038. break;
  3039. case ar.NULL:
  3040. this._err(_r.unexpectedNullCharacter), this.state = Qr.SCRIPT_DATA_ESCAPED, this._emitChars(sr);
  3041. break;
  3042. case ar.EOF:
  3043. this._err(_r.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
  3044. break;
  3045. default:
  3046. this.state = Qr.SCRIPT_DATA_ESCAPED, this._emitCodePoint(e)
  3047. }
  3048. }
  3049. _stateScriptDataEscapedLessThanSign(e) {
  3050. e === ar.SOLIDUS ? this.state = Qr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN : Jr(e) ? (this._emitChars("<"), this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPE_START, this._stateScriptDataDoubleEscapeStart(e)) : (this._emitChars("<"), this.state = Qr.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(e))
  3051. }
  3052. _stateScriptDataEscapedEndTagOpen(e) {
  3053. Jr(e) ? (this.state = Qr.SCRIPT_DATA_ESCAPED_END_TAG_NAME, this._stateScriptDataEscapedEndTagName(e)) : (this._emitChars("</"), this.state = Qr.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(e))
  3054. }
  3055. _stateScriptDataEscapedEndTagName(e) {
  3056. this.handleSpecialEndTag(e) && (this._emitChars("</"), this.state = Qr.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(e))
  3057. }
  3058. _stateScriptDataDoubleEscapeStart(e) {
  3059. if (this.preprocessor.startsWith(lr, !1) && si(this.preprocessor.peek(lr.length))) {
  3060. this._emitCodePoint(e);
  3061. for (let e = 0; e < lr.length; e++) this._emitCodePoint(this._consume());
  3062. this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED
  3063. } else this._ensureHibernation() || (this.state = Qr.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(e))
  3064. }
  3065. _stateScriptDataDoubleEscaped(e) {
  3066. switch (e) {
  3067. case ar.HYPHEN_MINUS:
  3068. this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH, this._emitChars("-");
  3069. break;
  3070. case ar.LESS_THAN_SIGN:
  3071. this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
  3072. break;
  3073. case ar.NULL:
  3074. this._err(_r.unexpectedNullCharacter), this._emitChars(sr);
  3075. break;
  3076. case ar.EOF:
  3077. this._err(_r.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
  3078. break;
  3079. default:
  3080. this._emitCodePoint(e)
  3081. }
  3082. }
  3083. _stateScriptDataDoubleEscapedDash(e) {
  3084. switch (e) {
  3085. case ar.HYPHEN_MINUS:
  3086. this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH, this._emitChars("-");
  3087. break;
  3088. case ar.LESS_THAN_SIGN:
  3089. this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
  3090. break;
  3091. case ar.NULL:
  3092. this._err(_r.unexpectedNullCharacter), this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(sr);
  3093. break;
  3094. case ar.EOF:
  3095. this._err(_r.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
  3096. break;
  3097. default:
  3098. this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(e)
  3099. }
  3100. }
  3101. _stateScriptDataDoubleEscapedDashDash(e) {
  3102. switch (e) {
  3103. case ar.HYPHEN_MINUS:
  3104. this._emitChars("-");
  3105. break;
  3106. case ar.LESS_THAN_SIGN:
  3107. this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
  3108. break;
  3109. case ar.GREATER_THAN_SIGN:
  3110. this.state = Qr.SCRIPT_DATA, this._emitChars(">");
  3111. break;
  3112. case ar.NULL:
  3113. this._err(_r.unexpectedNullCharacter), this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(sr);
  3114. break;
  3115. case ar.EOF:
  3116. this._err(_r.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
  3117. break;
  3118. default:
  3119. this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(e)
  3120. }
  3121. }
  3122. _stateScriptDataDoubleEscapedLessThanSign(e) {
  3123. e === ar.SOLIDUS ? (this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPE_END, this._emitChars("/")) : (this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(e))
  3124. }
  3125. _stateScriptDataDoubleEscapeEnd(e) {
  3126. if (this.preprocessor.startsWith(lr, !1) && si(this.preprocessor.peek(lr.length))) {
  3127. this._emitCodePoint(e);
  3128. for (let e = 0; e < lr.length; e++) this._emitCodePoint(this._consume());
  3129. this.state = Qr.SCRIPT_DATA_ESCAPED
  3130. } else this._ensureHibernation() || (this.state = Qr.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(e))
  3131. }
  3132. _stateBeforeAttributeName(e) {
  3133. switch (e) {
  3134. case ar.SPACE:
  3135. case ar.LINE_FEED:
  3136. case ar.TABULATION:
  3137. case ar.FORM_FEED:
  3138. break;
  3139. case ar.SOLIDUS:
  3140. case ar.GREATER_THAN_SIGN:
  3141. case ar.EOF:
  3142. this.state = Qr.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(e);
  3143. break;
  3144. case ar.EQUALS_SIGN:
  3145. this._err(_r.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = Qr.ATTRIBUTE_NAME;
  3146. break;
  3147. default:
  3148. this._createAttr(""), this.state = Qr.ATTRIBUTE_NAME, this._stateAttributeName(e)
  3149. }
  3150. }
  3151. _stateAttributeName(e) {
  3152. switch (e) {
  3153. case ar.SPACE:
  3154. case ar.LINE_FEED:
  3155. case ar.TABULATION:
  3156. case ar.FORM_FEED:
  3157. case ar.SOLIDUS:
  3158. case ar.GREATER_THAN_SIGN:
  3159. case ar.EOF:
  3160. this._leaveAttrName(), this.state = Qr.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(e);
  3161. break;
  3162. case ar.EQUALS_SIGN:
  3163. this._leaveAttrName(), this.state = Qr.BEFORE_ATTRIBUTE_VALUE;
  3164. break;
  3165. case ar.QUOTATION_MARK:
  3166. case ar.APOSTROPHE:
  3167. case ar.LESS_THAN_SIGN:
  3168. this._err(_r.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(e);
  3169. break;
  3170. case ar.NULL:
  3171. this._err(_r.unexpectedNullCharacter), this.currentAttr.name += sr;
  3172. break;
  3173. default:
  3174. this.currentAttr.name += String.fromCodePoint(Zr(e) ? ri(e) : e)
  3175. }
  3176. }
  3177. _stateAfterAttributeName(e) {
  3178. switch (e) {
  3179. case ar.SPACE:
  3180. case ar.LINE_FEED:
  3181. case ar.TABULATION:
  3182. case ar.FORM_FEED:
  3183. break;
  3184. case ar.SOLIDUS:
  3185. this.state = Qr.SELF_CLOSING_START_TAG;
  3186. break;
  3187. case ar.EQUALS_SIGN:
  3188. this.state = Qr.BEFORE_ATTRIBUTE_VALUE;
  3189. break;
  3190. case ar.GREATER_THAN_SIGN:
  3191. this.state = Qr.DATA, this.emitCurrentTagToken();
  3192. break;
  3193. case ar.EOF:
  3194. this._err(_r.eofInTag), this._emitEOFToken();
  3195. break;
  3196. default:
  3197. this._createAttr(""), this.state = Qr.ATTRIBUTE_NAME, this._stateAttributeName(e)
  3198. }
  3199. }
  3200. _stateBeforeAttributeValue(e) {
  3201. switch (e) {
  3202. case ar.SPACE:
  3203. case ar.LINE_FEED:
  3204. case ar.TABULATION:
  3205. case ar.FORM_FEED:
  3206. break;
  3207. case ar.QUOTATION_MARK:
  3208. this.state = Qr.ATTRIBUTE_VALUE_DOUBLE_QUOTED;
  3209. break;
  3210. case ar.APOSTROPHE:
  3211. this.state = Qr.ATTRIBUTE_VALUE_SINGLE_QUOTED;
  3212. break;
  3213. case ar.GREATER_THAN_SIGN:
  3214. this._err(_r.missingAttributeValue), this.state = Qr.DATA, this.emitCurrentTagToken();
  3215. break;
  3216. default:
  3217. this.state = Qr.ATTRIBUTE_VALUE_UNQUOTED, this._stateAttributeValueUnquoted(e)
  3218. }
  3219. }
  3220. _stateAttributeValueDoubleQuoted(e) {
  3221. switch (e) {
  3222. case ar.QUOTATION_MARK:
  3223. this.state = Qr.AFTER_ATTRIBUTE_VALUE_QUOTED;
  3224. break;
  3225. case ar.AMPERSAND:
  3226. this.returnState = Qr.ATTRIBUTE_VALUE_DOUBLE_QUOTED, this.state = Qr.CHARACTER_REFERENCE;
  3227. break;
  3228. case ar.NULL:
  3229. this._err(_r.unexpectedNullCharacter), this.currentAttr.value += sr;
  3230. break;
  3231. case ar.EOF:
  3232. this._err(_r.eofInTag), this._emitEOFToken();
  3233. break;
  3234. default:
  3235. this.currentAttr.value += String.fromCodePoint(e)
  3236. }
  3237. }
  3238. _stateAttributeValueSingleQuoted(e) {
  3239. switch (e) {
  3240. case ar.APOSTROPHE:
  3241. this.state = Qr.AFTER_ATTRIBUTE_VALUE_QUOTED;
  3242. break;
  3243. case ar.AMPERSAND:
  3244. this.returnState = Qr.ATTRIBUTE_VALUE_SINGLE_QUOTED, this.state = Qr.CHARACTER_REFERENCE;
  3245. break;
  3246. case ar.NULL:
  3247. this._err(_r.unexpectedNullCharacter), this.currentAttr.value += sr;
  3248. break;
  3249. case ar.EOF:
  3250. this._err(_r.eofInTag), this._emitEOFToken();
  3251. break;
  3252. default:
  3253. this.currentAttr.value += String.fromCodePoint(e)
  3254. }
  3255. }
  3256. _stateAttributeValueUnquoted(e) {
  3257. switch (e) {
  3258. case ar.SPACE:
  3259. case ar.LINE_FEED:
  3260. case ar.TABULATION:
  3261. case ar.FORM_FEED:
  3262. this._leaveAttrValue(), this.state = Qr.BEFORE_ATTRIBUTE_NAME;
  3263. break;
  3264. case ar.AMPERSAND:
  3265. this.returnState = Qr.ATTRIBUTE_VALUE_UNQUOTED, this.state = Qr.CHARACTER_REFERENCE;
  3266. break;
  3267. case ar.GREATER_THAN_SIGN:
  3268. this._leaveAttrValue(), this.state = Qr.DATA, this.emitCurrentTagToken();
  3269. break;
  3270. case ar.NULL:
  3271. this._err(_r.unexpectedNullCharacter), this.currentAttr.value += sr;
  3272. break;
  3273. case ar.QUOTATION_MARK:
  3274. case ar.APOSTROPHE:
  3275. case ar.LESS_THAN_SIGN:
  3276. case ar.EQUALS_SIGN:
  3277. case ar.GRAVE_ACCENT:
  3278. this._err(_r.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(e);
  3279. break;
  3280. case ar.EOF:
  3281. this._err(_r.eofInTag), this._emitEOFToken();
  3282. break;
  3283. default:
  3284. this.currentAttr.value += String.fromCodePoint(e)
  3285. }
  3286. }
  3287. _stateAfterAttributeValueQuoted(e) {
  3288. switch (e) {
  3289. case ar.SPACE:
  3290. case ar.LINE_FEED:
  3291. case ar.TABULATION:
  3292. case ar.FORM_FEED:
  3293. this._leaveAttrValue(), this.state = Qr.BEFORE_ATTRIBUTE_NAME;
  3294. break;
  3295. case ar.SOLIDUS:
  3296. this._leaveAttrValue(), this.state = Qr.SELF_CLOSING_START_TAG;
  3297. break;
  3298. case ar.GREATER_THAN_SIGN:
  3299. this._leaveAttrValue(), this.state = Qr.DATA, this.emitCurrentTagToken();
  3300. break;
  3301. case ar.EOF:
  3302. this._err(_r.eofInTag), this._emitEOFToken();
  3303. break;
  3304. default:
  3305. this._err(_r.missingWhitespaceBetweenAttributes), this.state = Qr.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(e)
  3306. }
  3307. }
  3308. _stateSelfClosingStartTag(e) {
  3309. switch (e) {
  3310. case ar.GREATER_THAN_SIGN:
  3311. this.currentToken.selfClosing = !0, this.state = Qr.DATA, this.emitCurrentTagToken();
  3312. break;
  3313. case ar.EOF:
  3314. this._err(_r.eofInTag), this._emitEOFToken();
  3315. break;
  3316. default:
  3317. this._err(_r.unexpectedSolidusInTag), this.state = Qr.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(e)
  3318. }
  3319. }
  3320. _stateBogusComment(e) {
  3321. var t = this.currentToken;
  3322. switch (e) {
  3323. case ar.GREATER_THAN_SIGN:
  3324. this.state = Qr.DATA, this.emitCurrentComment(t);
  3325. break;
  3326. case ar.EOF:
  3327. this.emitCurrentComment(t), this._emitEOFToken();
  3328. break;
  3329. case ar.NULL:
  3330. this._err(_r.unexpectedNullCharacter), t.data += sr;
  3331. break;
  3332. default:
  3333. t.data += String.fromCodePoint(e)
  3334. }
  3335. }
  3336. _stateMarkupDeclarationOpen(e) {
  3337. this._consumeSequenceIfMatch(or, !0) ? (this._createCommentToken(or.length + 1), this.state = Qr.COMMENT_START) : this._consumeSequenceIfMatch(ur, !1) ? (this.currentLocation = this.getCurrentLocation(ur.length + 1), this.state = Qr.DOCTYPE) : this._consumeSequenceIfMatch(cr, !0) ? this.inForeignNode ? this.state = Qr.CDATA_SECTION : (this._err(_r.cdataInHtmlContent), this._createCommentToken(cr.length + 1), this.currentToken.data = "[CDATA[", this.state = Qr.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(_r.incorrectlyOpenedComment), this._createCommentToken(2), this.state = Qr.BOGUS_COMMENT, this._stateBogusComment(e))
  3338. }
  3339. _stateCommentStart(e) {
  3340. switch (e) {
  3341. case ar.HYPHEN_MINUS:
  3342. this.state = Qr.COMMENT_START_DASH;
  3343. break;
  3344. case ar.GREATER_THAN_SIGN: {
  3345. this._err(_r.abruptClosingOfEmptyComment), this.state = Qr.DATA;
  3346. const e = this.currentToken;
  3347. this.emitCurrentComment(e);
  3348. break
  3349. }
  3350. default:
  3351. this.state = Qr.COMMENT, this._stateComment(e)
  3352. }
  3353. }
  3354. _stateCommentStartDash(e) {
  3355. var t = this.currentToken;
  3356. switch (e) {
  3357. case ar.HYPHEN_MINUS:
  3358. this.state = Qr.COMMENT_END;
  3359. break;
  3360. case ar.GREATER_THAN_SIGN:
  3361. this._err(_r.abruptClosingOfEmptyComment), this.state = Qr.DATA, this.emitCurrentComment(t);
  3362. break;
  3363. case ar.EOF:
  3364. this._err(_r.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
  3365. break;
  3366. default:
  3367. t.data += "-", this.state = Qr.COMMENT, this._stateComment(e)
  3368. }
  3369. }
  3370. _stateComment(e) {
  3371. var t = this.currentToken;
  3372. switch (e) {
  3373. case ar.HYPHEN_MINUS:
  3374. this.state = Qr.COMMENT_END_DASH;
  3375. break;
  3376. case ar.LESS_THAN_SIGN:
  3377. t.data += "<", this.state = Qr.COMMENT_LESS_THAN_SIGN;
  3378. break;
  3379. case ar.NULL:
  3380. this._err(_r.unexpectedNullCharacter), t.data += sr;
  3381. break;
  3382. case ar.EOF:
  3383. this._err(_r.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
  3384. break;
  3385. default:
  3386. t.data += String.fromCodePoint(e)
  3387. }
  3388. }
  3389. _stateCommentLessThanSign(e) {
  3390. var t = this.currentToken;
  3391. switch (e) {
  3392. case ar.EXCLAMATION_MARK:
  3393. t.data += "!", this.state = Qr.COMMENT_LESS_THAN_SIGN_BANG;
  3394. break;
  3395. case ar.LESS_THAN_SIGN:
  3396. t.data += "<";
  3397. break;
  3398. default:
  3399. this.state = Qr.COMMENT, this._stateComment(e)
  3400. }
  3401. }
  3402. _stateCommentLessThanSignBang(e) {
  3403. e === ar.HYPHEN_MINUS ? this.state = Qr.COMMENT_LESS_THAN_SIGN_BANG_DASH : (this.state = Qr.COMMENT, this._stateComment(e))
  3404. }
  3405. _stateCommentLessThanSignBangDash(e) {
  3406. e === ar.HYPHEN_MINUS ? this.state = Qr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH : (this.state = Qr.COMMENT_END_DASH, this._stateCommentEndDash(e))
  3407. }
  3408. _stateCommentLessThanSignBangDashDash(e) {
  3409. e !== ar.GREATER_THAN_SIGN && e !== ar.EOF && this._err(_r.nestedComment), this.state = Qr.COMMENT_END, this._stateCommentEnd(e)
  3410. }
  3411. _stateCommentEndDash(e) {
  3412. var t = this.currentToken;
  3413. switch (e) {
  3414. case ar.HYPHEN_MINUS:
  3415. this.state = Qr.COMMENT_END;
  3416. break;
  3417. case ar.EOF:
  3418. this._err(_r.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
  3419. break;
  3420. default:
  3421. t.data += "-", this.state = Qr.COMMENT, this._stateComment(e)
  3422. }
  3423. }
  3424. _stateCommentEnd(e) {
  3425. var t = this.currentToken;
  3426. switch (e) {
  3427. case ar.GREATER_THAN_SIGN:
  3428. this.state = Qr.DATA, this.emitCurrentComment(t);
  3429. break;
  3430. case ar.EXCLAMATION_MARK:
  3431. this.state = Qr.COMMENT_END_BANG;
  3432. break;
  3433. case ar.HYPHEN_MINUS:
  3434. t.data += "-";
  3435. break;
  3436. case ar.EOF:
  3437. this._err(_r.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
  3438. break;
  3439. default:
  3440. t.data += "--", this.state = Qr.COMMENT, this._stateComment(e)
  3441. }
  3442. }
  3443. _stateCommentEndBang(e) {
  3444. var t = this.currentToken;
  3445. switch (e) {
  3446. case ar.HYPHEN_MINUS:
  3447. t.data += "--!", this.state = Qr.COMMENT_END_DASH;
  3448. break;
  3449. case ar.GREATER_THAN_SIGN:
  3450. this._err(_r.incorrectlyClosedComment), this.state = Qr.DATA, this.emitCurrentComment(t);
  3451. break;
  3452. case ar.EOF:
  3453. this._err(_r.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
  3454. break;
  3455. default:
  3456. t.data += "--!", this.state = Qr.COMMENT, this._stateComment(e)
  3457. }
  3458. }
  3459. _stateDoctype(e) {
  3460. switch (e) {
  3461. case ar.SPACE:
  3462. case ar.LINE_FEED:
  3463. case ar.TABULATION:
  3464. case ar.FORM_FEED:
  3465. this.state = Qr.BEFORE_DOCTYPE_NAME;
  3466. break;
  3467. case ar.GREATER_THAN_SIGN:
  3468. this.state = Qr.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(e);
  3469. break;
  3470. case ar.EOF: {
  3471. this._err(_r.eofInDoctype), this._createDoctypeToken(null);
  3472. const e = this.currentToken;
  3473. e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
  3474. break
  3475. }
  3476. default:
  3477. this._err(_r.missingWhitespaceBeforeDoctypeName), this.state = Qr.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(e)
  3478. }
  3479. }
  3480. _stateBeforeDoctypeName(e) {
  3481. if (Zr(e)) this._createDoctypeToken(String.fromCharCode(ri(e))), this.state = Qr.DOCTYPE_NAME; else switch (e) {
  3482. case ar.SPACE:
  3483. case ar.LINE_FEED:
  3484. case ar.TABULATION:
  3485. case ar.FORM_FEED:
  3486. break;
  3487. case ar.NULL:
  3488. this._err(_r.unexpectedNullCharacter), this._createDoctypeToken(sr), this.state = Qr.DOCTYPE_NAME;
  3489. break;
  3490. case ar.GREATER_THAN_SIGN: {
  3491. this._err(_r.missingDoctypeName), this._createDoctypeToken(null);
  3492. const e = this.currentToken;
  3493. e.forceQuirks = !0, this.emitCurrentDoctype(e), this.state = Qr.DATA;
  3494. break
  3495. }
  3496. case ar.EOF: {
  3497. this._err(_r.eofInDoctype), this._createDoctypeToken(null);
  3498. const e = this.currentToken;
  3499. e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
  3500. break
  3501. }
  3502. default:
  3503. this._createDoctypeToken(String.fromCodePoint(e)), this.state = Qr.DOCTYPE_NAME
  3504. }
  3505. }
  3506. _stateDoctypeName(e) {
  3507. var t = this.currentToken;
  3508. switch (e) {
  3509. case ar.SPACE:
  3510. case ar.LINE_FEED:
  3511. case ar.TABULATION:
  3512. case ar.FORM_FEED:
  3513. this.state = Qr.AFTER_DOCTYPE_NAME;
  3514. break;
  3515. case ar.GREATER_THAN_SIGN:
  3516. this.state = Qr.DATA, this.emitCurrentDoctype(t);
  3517. break;
  3518. case ar.NULL:
  3519. this._err(_r.unexpectedNullCharacter), t.name += sr;
  3520. break;
  3521. case ar.EOF:
  3522. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3523. break;
  3524. default:
  3525. t.name += String.fromCodePoint(Zr(e) ? ri(e) : e)
  3526. }
  3527. }
  3528. _stateAfterDoctypeName(e) {
  3529. var t = this.currentToken;
  3530. switch (e) {
  3531. case ar.SPACE:
  3532. case ar.LINE_FEED:
  3533. case ar.TABULATION:
  3534. case ar.FORM_FEED:
  3535. break;
  3536. case ar.GREATER_THAN_SIGN:
  3537. this.state = Qr.DATA, this.emitCurrentDoctype(t);
  3538. break;
  3539. case ar.EOF:
  3540. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3541. break;
  3542. default:
  3543. this._consumeSequenceIfMatch(hr, !1) ? this.state = Qr.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(fr, !1) ? this.state = Qr.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(_r.invalidCharacterSequenceAfterDoctypeName), t.forceQuirks = !0, this.state = Qr.BOGUS_DOCTYPE, this._stateBogusDoctype(e))
  3544. }
  3545. }
  3546. _stateAfterDoctypePublicKeyword(e) {
  3547. var t = this.currentToken;
  3548. switch (e) {
  3549. case ar.SPACE:
  3550. case ar.LINE_FEED:
  3551. case ar.TABULATION:
  3552. case ar.FORM_FEED:
  3553. this.state = Qr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;
  3554. break;
  3555. case ar.QUOTATION_MARK:
  3556. this._err(_r.missingWhitespaceAfterDoctypePublicKeyword), t.publicId = "", this.state = Qr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
  3557. break;
  3558. case ar.APOSTROPHE:
  3559. this._err(_r.missingWhitespaceAfterDoctypePublicKeyword), t.publicId = "", this.state = Qr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
  3560. break;
  3561. case ar.GREATER_THAN_SIGN:
  3562. this._err(_r.missingDoctypePublicIdentifier), t.forceQuirks = !0, this.state = Qr.DATA, this.emitCurrentDoctype(t);
  3563. break;
  3564. case ar.EOF:
  3565. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3566. break;
  3567. default:
  3568. this._err(_r.missingQuoteBeforeDoctypePublicIdentifier), t.forceQuirks = !0, this.state = Qr.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
  3569. }
  3570. }
  3571. _stateBeforeDoctypePublicIdentifier(e) {
  3572. var t = this.currentToken;
  3573. switch (e) {
  3574. case ar.SPACE:
  3575. case ar.LINE_FEED:
  3576. case ar.TABULATION:
  3577. case ar.FORM_FEED:
  3578. break;
  3579. case ar.QUOTATION_MARK:
  3580. t.publicId = "", this.state = Qr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
  3581. break;
  3582. case ar.APOSTROPHE:
  3583. t.publicId = "", this.state = Qr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
  3584. break;
  3585. case ar.GREATER_THAN_SIGN:
  3586. this._err(_r.missingDoctypePublicIdentifier), t.forceQuirks = !0, this.state = Qr.DATA, this.emitCurrentDoctype(t);
  3587. break;
  3588. case ar.EOF:
  3589. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3590. break;
  3591. default:
  3592. this._err(_r.missingQuoteBeforeDoctypePublicIdentifier), t.forceQuirks = !0, this.state = Qr.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
  3593. }
  3594. }
  3595. _stateDoctypePublicIdentifierDoubleQuoted(e) {
  3596. var t = this.currentToken;
  3597. switch (e) {
  3598. case ar.QUOTATION_MARK:
  3599. this.state = Qr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
  3600. break;
  3601. case ar.NULL:
  3602. this._err(_r.unexpectedNullCharacter), t.publicId += sr;
  3603. break;
  3604. case ar.GREATER_THAN_SIGN:
  3605. this._err(_r.abruptDoctypePublicIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = Qr.DATA;
  3606. break;
  3607. case ar.EOF:
  3608. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3609. break;
  3610. default:
  3611. t.publicId += String.fromCodePoint(e)
  3612. }
  3613. }
  3614. _stateDoctypePublicIdentifierSingleQuoted(e) {
  3615. var t = this.currentToken;
  3616. switch (e) {
  3617. case ar.APOSTROPHE:
  3618. this.state = Qr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
  3619. break;
  3620. case ar.NULL:
  3621. this._err(_r.unexpectedNullCharacter), t.publicId += sr;
  3622. break;
  3623. case ar.GREATER_THAN_SIGN:
  3624. this._err(_r.abruptDoctypePublicIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = Qr.DATA;
  3625. break;
  3626. case ar.EOF:
  3627. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3628. break;
  3629. default:
  3630. t.publicId += String.fromCodePoint(e)
  3631. }
  3632. }
  3633. _stateAfterDoctypePublicIdentifier(e) {
  3634. var t = this.currentToken;
  3635. switch (e) {
  3636. case ar.SPACE:
  3637. case ar.LINE_FEED:
  3638. case ar.TABULATION:
  3639. case ar.FORM_FEED:
  3640. this.state = Qr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
  3641. break;
  3642. case ar.GREATER_THAN_SIGN:
  3643. this.state = Qr.DATA, this.emitCurrentDoctype(t);
  3644. break;
  3645. case ar.QUOTATION_MARK:
  3646. this._err(_r.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), t.systemId = "", this.state = Qr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
  3647. break;
  3648. case ar.APOSTROPHE:
  3649. this._err(_r.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), t.systemId = "", this.state = Qr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
  3650. break;
  3651. case ar.EOF:
  3652. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3653. break;
  3654. default:
  3655. this._err(_r.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Qr.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
  3656. }
  3657. }
  3658. _stateBetweenDoctypePublicAndSystemIdentifiers(e) {
  3659. var t = this.currentToken;
  3660. switch (e) {
  3661. case ar.SPACE:
  3662. case ar.LINE_FEED:
  3663. case ar.TABULATION:
  3664. case ar.FORM_FEED:
  3665. break;
  3666. case ar.GREATER_THAN_SIGN:
  3667. this.emitCurrentDoctype(t), this.state = Qr.DATA;
  3668. break;
  3669. case ar.QUOTATION_MARK:
  3670. t.systemId = "", this.state = Qr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
  3671. break;
  3672. case ar.APOSTROPHE:
  3673. t.systemId = "", this.state = Qr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
  3674. break;
  3675. case ar.EOF:
  3676. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3677. break;
  3678. default:
  3679. this._err(_r.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Qr.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
  3680. }
  3681. }
  3682. _stateAfterDoctypeSystemKeyword(e) {
  3683. var t = this.currentToken;
  3684. switch (e) {
  3685. case ar.SPACE:
  3686. case ar.LINE_FEED:
  3687. case ar.TABULATION:
  3688. case ar.FORM_FEED:
  3689. this.state = Qr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;
  3690. break;
  3691. case ar.QUOTATION_MARK:
  3692. this._err(_r.missingWhitespaceAfterDoctypeSystemKeyword), t.systemId = "", this.state = Qr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
  3693. break;
  3694. case ar.APOSTROPHE:
  3695. this._err(_r.missingWhitespaceAfterDoctypeSystemKeyword), t.systemId = "", this.state = Qr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
  3696. break;
  3697. case ar.GREATER_THAN_SIGN:
  3698. this._err(_r.missingDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Qr.DATA, this.emitCurrentDoctype(t);
  3699. break;
  3700. case ar.EOF:
  3701. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3702. break;
  3703. default:
  3704. this._err(_r.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Qr.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
  3705. }
  3706. }
  3707. _stateBeforeDoctypeSystemIdentifier(e) {
  3708. var t = this.currentToken;
  3709. switch (e) {
  3710. case ar.SPACE:
  3711. case ar.LINE_FEED:
  3712. case ar.TABULATION:
  3713. case ar.FORM_FEED:
  3714. break;
  3715. case ar.QUOTATION_MARK:
  3716. t.systemId = "", this.state = Qr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
  3717. break;
  3718. case ar.APOSTROPHE:
  3719. t.systemId = "", this.state = Qr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
  3720. break;
  3721. case ar.GREATER_THAN_SIGN:
  3722. this._err(_r.missingDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Qr.DATA, this.emitCurrentDoctype(t);
  3723. break;
  3724. case ar.EOF:
  3725. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3726. break;
  3727. default:
  3728. this._err(_r.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Qr.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
  3729. }
  3730. }
  3731. _stateDoctypeSystemIdentifierDoubleQuoted(e) {
  3732. var t = this.currentToken;
  3733. switch (e) {
  3734. case ar.QUOTATION_MARK:
  3735. this.state = Qr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
  3736. break;
  3737. case ar.NULL:
  3738. this._err(_r.unexpectedNullCharacter), t.systemId += sr;
  3739. break;
  3740. case ar.GREATER_THAN_SIGN:
  3741. this._err(_r.abruptDoctypeSystemIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = Qr.DATA;
  3742. break;
  3743. case ar.EOF:
  3744. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3745. break;
  3746. default:
  3747. t.systemId += String.fromCodePoint(e)
  3748. }
  3749. }
  3750. _stateDoctypeSystemIdentifierSingleQuoted(e) {
  3751. var t = this.currentToken;
  3752. switch (e) {
  3753. case ar.APOSTROPHE:
  3754. this.state = Qr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
  3755. break;
  3756. case ar.NULL:
  3757. this._err(_r.unexpectedNullCharacter), t.systemId += sr;
  3758. break;
  3759. case ar.GREATER_THAN_SIGN:
  3760. this._err(_r.abruptDoctypeSystemIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = Qr.DATA;
  3761. break;
  3762. case ar.EOF:
  3763. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3764. break;
  3765. default:
  3766. t.systemId += String.fromCodePoint(e)
  3767. }
  3768. }
  3769. _stateAfterDoctypeSystemIdentifier(e) {
  3770. var t = this.currentToken;
  3771. switch (e) {
  3772. case ar.SPACE:
  3773. case ar.LINE_FEED:
  3774. case ar.TABULATION:
  3775. case ar.FORM_FEED:
  3776. break;
  3777. case ar.GREATER_THAN_SIGN:
  3778. this.emitCurrentDoctype(t), this.state = Qr.DATA;
  3779. break;
  3780. case ar.EOF:
  3781. this._err(_r.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
  3782. break;
  3783. default:
  3784. this._err(_r.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = Qr.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
  3785. }
  3786. }
  3787. _stateBogusDoctype(e) {
  3788. var t = this.currentToken;
  3789. switch (e) {
  3790. case ar.GREATER_THAN_SIGN:
  3791. this.emitCurrentDoctype(t), this.state = Qr.DATA;
  3792. break;
  3793. case ar.NULL:
  3794. this._err(_r.unexpectedNullCharacter);
  3795. break;
  3796. case ar.EOF:
  3797. this.emitCurrentDoctype(t), this._emitEOFToken()
  3798. }
  3799. }
  3800. _stateCdataSection(e) {
  3801. switch (e) {
  3802. case ar.RIGHT_SQUARE_BRACKET:
  3803. this.state = Qr.CDATA_SECTION_BRACKET;
  3804. break;
  3805. case ar.EOF:
  3806. this._err(_r.eofInCdata), this._emitEOFToken();
  3807. break;
  3808. default:
  3809. this._emitCodePoint(e)
  3810. }
  3811. }
  3812. _stateCdataSectionBracket(e) {
  3813. e === ar.RIGHT_SQUARE_BRACKET ? this.state = Qr.CDATA_SECTION_END : (this._emitChars("]"), this.state = Qr.CDATA_SECTION, this._stateCdataSection(e))
  3814. }
  3815. _stateCdataSectionEnd(e) {
  3816. switch (e) {
  3817. case ar.GREATER_THAN_SIGN:
  3818. this.state = Qr.DATA;
  3819. break;
  3820. case ar.RIGHT_SQUARE_BRACKET:
  3821. this._emitChars("]");
  3822. break;
  3823. default:
  3824. this._emitChars("]]"), this.state = Qr.CDATA_SECTION, this._stateCdataSection(e)
  3825. }
  3826. }
  3827. _stateCharacterReference(e) {
  3828. e === ar.NUMBER_SIGN ? this.state = Qr.NUMERIC_CHARACTER_REFERENCE : ei(e) ? (this.state = Qr.NAMED_CHARACTER_REFERENCE, this._stateNamedCharacterReference(e)) : (this._flushCodePointConsumedAsCharacterReference(ar.AMPERSAND), this._reconsumeInState(this.returnState, e))
  3829. }
  3830. _stateNamedCharacterReference(e) {
  3831. var t = this._matchNamedCharacterReference(e);
  3832. if (!this._ensureHibernation()) if (t) {
  3833. for (let e = 0; e < t.length; e++) this._flushCodePointConsumedAsCharacterReference(t[e]);
  3834. this.state = this.returnState
  3835. } else this._flushCodePointConsumedAsCharacterReference(ar.AMPERSAND), this.state = Qr.AMBIGUOUS_AMPERSAND
  3836. }
  3837. _stateAmbiguousAmpersand(e) {
  3838. ei(e) ? this._flushCodePointConsumedAsCharacterReference(e) : (e === ar.SEMICOLON && this._err(_r.unknownNamedCharacterReference), this._reconsumeInState(this.returnState, e))
  3839. }
  3840. _stateNumericCharacterReference(e) {
  3841. this.charRefCode = 0, e === ar.LATIN_SMALL_X || e === ar.LATIN_CAPITAL_X ? this.state = Qr.HEXADEMICAL_CHARACTER_REFERENCE_START : Xr(e) ? (this.state = Qr.DECIMAL_CHARACTER_REFERENCE, this._stateDecimalCharacterReference(e)) : (this._err(_r.absenceOfDigitsInNumericCharacterReference), this._flushCodePointConsumedAsCharacterReference(ar.AMPERSAND), this._flushCodePointConsumedAsCharacterReference(ar.NUMBER_SIGN), this._reconsumeInState(this.returnState, e))
  3842. }
  3843. _stateHexademicalCharacterReferenceStart(e) {
  3844. !function (e) {
  3845. return Xr(e) || ti(e) || ni(e)
  3846. }(e) ? (this._err(_r.absenceOfDigitsInNumericCharacterReference), this._flushCodePointConsumedAsCharacterReference(ar.AMPERSAND), this._flushCodePointConsumedAsCharacterReference(ar.NUMBER_SIGN), this._unconsume(2), this.state = this.returnState) : (this.state = Qr.HEXADEMICAL_CHARACTER_REFERENCE, this._stateHexademicalCharacterReference(e))
  3847. }
  3848. _stateHexademicalCharacterReference(e) {
  3849. ti(e) ? this.charRefCode = 16 * this.charRefCode + e - 55 : ni(e) ? this.charRefCode = 16 * this.charRefCode + e - 87 : Xr(e) ? this.charRefCode = 16 * this.charRefCode + e - 48 : e === ar.SEMICOLON ? this.state = Qr.NUMERIC_CHARACTER_REFERENCE_END : (this._err(_r.missingSemicolonAfterCharacterReference), this.state = Qr.NUMERIC_CHARACTER_REFERENCE_END, this._stateNumericCharacterReferenceEnd(e))
  3850. }
  3851. _stateDecimalCharacterReference(e) {
  3852. Xr(e) ? this.charRefCode = 10 * this.charRefCode + e - 48 : e === ar.SEMICOLON ? this.state = Qr.NUMERIC_CHARACTER_REFERENCE_END : (this._err(_r.missingSemicolonAfterCharacterReference), this.state = Qr.NUMERIC_CHARACTER_REFERENCE_END, this._stateNumericCharacterReferenceEnd(e))
  3853. }
  3854. _stateNumericCharacterReferenceEnd(e) {
  3855. if (this.charRefCode === ar.NULL) this._err(_r.nullCharacterReference), this.charRefCode = ar.REPLACEMENT_CHARACTER; else if (1114111 < this.charRefCode) this._err(_r.characterReferenceOutsideUnicodeRange), this.charRefCode = ar.REPLACEMENT_CHARACTER; else if (pr(this.charRefCode)) this._err(_r.surrogateCharacterReference), this.charRefCode = ar.REPLACEMENT_CHARACTER; else if (mr(this.charRefCode)) this._err(_r.noncharacterCharacterReference); else if (dr(this.charRefCode) || this.charRefCode === ar.CARRIAGE_RETURN) {
  3856. this._err(_r.controlCharacterReference);
  3857. const e = $r.get(this.charRefCode);
  3858. void 0 !== e && (this.charRefCode = e)
  3859. }
  3860. this._flushCodePointConsumedAsCharacterReference(this.charRefCode), this._reconsumeInState(this.returnState, e)
  3861. }
  3862. }
  3863. const oi = new Set([Ur.DD, Ur.DT, Ur.LI, Ur.OPTGROUP, Ur.OPTION, Ur.P, Ur.RB, Ur.RP, Ur.RT, Ur.RTC]),
  3864. ci = new Set([...oi, Ur.CAPTION, Ur.COLGROUP, Ur.TBODY, Ur.TD, Ur.TFOOT, Ur.TH, Ur.THEAD, Ur.TR]),
  3865. ui = new Map([[Ur.APPLET, Mr.HTML], [Ur.CAPTION, Mr.HTML], [Ur.HTML, Mr.HTML], [Ur.MARQUEE, Mr.HTML], [Ur.OBJECT, Mr.HTML], [Ur.TABLE, Mr.HTML], [Ur.TD, Mr.HTML], [Ur.TEMPLATE, Mr.HTML], [Ur.TH, Mr.HTML], [Ur.ANNOTATION_XML, Mr.MATHML], [Ur.MI, Mr.MATHML], [Ur.MN, Mr.MATHML], [Ur.MO, Mr.MATHML], [Ur.MS, Mr.MATHML], [Ur.MTEXT, Mr.MATHML], [Ur.DESC, Mr.SVG], [Ur.FOREIGN_OBJECT, Mr.SVG], [Ur.TITLE, Mr.SVG]]),
  3866. li = [Ur.H1, Ur.H2, Ur.H3, Ur.H4, Ur.H5, Ur.H6], hi = [Ur.TR, Ur.TEMPLATE, Ur.HTML],
  3867. fi = [Ur.TBODY, Ur.TFOOT, Ur.THEAD, Ur.TEMPLATE, Ur.HTML], pi = [Ur.TABLE, Ur.TEMPLATE, Ur.HTML],
  3868. di = [Ur.TD, Ur.TH];
  3869. class mi {
  3870. get currentTmplContentOrNode() {
  3871. return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current
  3872. }
  3873. constructor(e, t, n) {
  3874. this.treeAdapter = t, this.handler = n, this.items = [], this.tagIDs = [], this.stackTop = -1, this.tmplCount = 0, this.currentTagId = Ur.UNKNOWN, this.current = e
  3875. }
  3876. _indexOf(e) {
  3877. return this.items.lastIndexOf(e, this.stackTop)
  3878. }
  3879. _isInTemplate() {
  3880. return this.currentTagId === Ur.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === Mr.HTML
  3881. }
  3882. _updateCurrentElement() {
  3883. this.current = this.items[this.stackTop], this.currentTagId = this.tagIDs[this.stackTop]
  3884. }
  3885. push(e, t) {
  3886. this.stackTop++, this.items[this.stackTop] = e, this.current = e, this.tagIDs[this.stackTop] = t, this.currentTagId = t, this._isInTemplate() && this.tmplCount++, this.handler.onItemPush(e, t, !0)
  3887. }
  3888. pop() {
  3889. var e = this.current;
  3890. 0 < this.tmplCount && this._isInTemplate() && this.tmplCount--, this.stackTop--, this._updateCurrentElement(), this.handler.onItemPop(e, !0)
  3891. }
  3892. replace(e, t) {
  3893. e = this._indexOf(e), this.items[e] = t, e === this.stackTop && (this.current = t)
  3894. }
  3895. insertAfter(e, t, n) {
  3896. e = this._indexOf(e) + 1, this.items.splice(e, 0, t), this.tagIDs.splice(e, 0, n), this.stackTop++, e === this.stackTop && this._updateCurrentElement(), this.handler.onItemPush(this.current, this.currentTagId, e === this.stackTop)
  3897. }
  3898. popUntilTagNamePopped(e) {
  3899. let t = this.stackTop + 1;
  3900. for (; 0 < (t = this.tagIDs.lastIndexOf(e, t - 1)) && this.treeAdapter.getNamespaceURI(this.items[t]) !== Mr.HTML;) ;
  3901. this.shortenToLength(t < 0 ? 0 : t)
  3902. }
  3903. shortenToLength(e) {
  3904. for (; this.stackTop >= e;) {
  3905. var t = this.current;
  3906. 0 < this.tmplCount && this._isInTemplate() && --this.tmplCount, this.stackTop--, this._updateCurrentElement(), this.handler.onItemPop(t, this.stackTop < e)
  3907. }
  3908. }
  3909. popUntilElementPopped(e) {
  3910. e = this._indexOf(e), this.shortenToLength(e < 0 ? 0 : e)
  3911. }
  3912. popUntilPopped(e, t) {
  3913. e = this._indexOfTagNames(e, t), this.shortenToLength(e < 0 ? 0 : e)
  3914. }
  3915. popUntilNumberedHeaderPopped() {
  3916. this.popUntilPopped(li, Mr.HTML)
  3917. }
  3918. popUntilTableCellPopped() {
  3919. this.popUntilPopped(di, Mr.HTML)
  3920. }
  3921. popAllUpToHtmlElement() {
  3922. this.tmplCount = 0, this.shortenToLength(1)
  3923. }
  3924. _indexOfTagNames(e, t) {
  3925. for (let n = this.stackTop; 0 <= n; n--) if (e.includes(this.tagIDs[n]) && this.treeAdapter.getNamespaceURI(this.items[n]) === t) return n;
  3926. return -1
  3927. }
  3928. clearBackTo(e, t) {
  3929. e = this._indexOfTagNames(e, t), this.shortenToLength(e + 1)
  3930. }
  3931. clearBackToTableContext() {
  3932. this.clearBackTo(pi, Mr.HTML)
  3933. }
  3934. clearBackToTableBodyContext() {
  3935. this.clearBackTo(fi, Mr.HTML)
  3936. }
  3937. clearBackToTableRowContext() {
  3938. this.clearBackTo(hi, Mr.HTML)
  3939. }
  3940. remove(e) {
  3941. var t = this._indexOf(e);
  3942. 0 <= t && (t === this.stackTop ? this.pop() : (this.items.splice(t, 1), this.tagIDs.splice(t, 1), this.stackTop--, this._updateCurrentElement(), this.handler.onItemPop(e, !1)))
  3943. }
  3944. tryPeekProperlyNestedBodyElement() {
  3945. return 1 <= this.stackTop && this.tagIDs[1] === Ur.BODY ? this.items[1] : null
  3946. }
  3947. contains(e) {
  3948. return -1 < this._indexOf(e)
  3949. }
  3950. getCommonAncestor(e) {
  3951. return 0 <= (e = this._indexOf(e) - 1) ? this.items[e] : null
  3952. }
  3953. isRootHtmlElementCurrent() {
  3954. return 0 === this.stackTop && this.tagIDs[0] === Ur.HTML
  3955. }
  3956. hasInScope(e) {
  3957. for (let t = this.stackTop; 0 <= t; t--) {
  3958. var n = this.tagIDs[t], r = this.treeAdapter.getNamespaceURI(this.items[t]);
  3959. if (n === e && r === Mr.HTML) return !0;
  3960. if (ui.get(n) === r) return !1
  3961. }
  3962. return !0
  3963. }
  3964. hasNumberedHeaderInScope() {
  3965. for (let e = this.stackTop; 0 <= e; e--) {
  3966. var t = this.tagIDs[e], n = this.treeAdapter.getNamespaceURI(this.items[e]);
  3967. if (Wr(t) && n === Mr.HTML) return !0;
  3968. if (ui.get(t) === n) return !1
  3969. }
  3970. return !0
  3971. }
  3972. hasInListItemScope(e) {
  3973. for (let t = this.stackTop; 0 <= t; t--) {
  3974. var n = this.tagIDs[t], r = this.treeAdapter.getNamespaceURI(this.items[t]);
  3975. if (n === e && r === Mr.HTML) return !0;
  3976. if ((n === Ur.UL || n === Ur.OL) && r === Mr.HTML || ui.get(n) === r) return !1
  3977. }
  3978. return !0
  3979. }
  3980. hasInButtonScope(e) {
  3981. for (let t = this.stackTop; 0 <= t; t--) {
  3982. var n = this.tagIDs[t], r = this.treeAdapter.getNamespaceURI(this.items[t]);
  3983. if (n === e && r === Mr.HTML) return !0;
  3984. if (n === Ur.BUTTON && r === Mr.HTML || ui.get(n) === r) return !1
  3985. }
  3986. return !0
  3987. }
  3988. hasInTableScope(e) {
  3989. for (let t = this.stackTop; 0 <= t; t--) {
  3990. var n = this.tagIDs[t];
  3991. if (this.treeAdapter.getNamespaceURI(this.items[t]) === Mr.HTML) {
  3992. if (n === e) return !0;
  3993. if (n === Ur.TABLE || n === Ur.TEMPLATE || n === Ur.HTML) return !1
  3994. }
  3995. }
  3996. return !0
  3997. }
  3998. hasTableBodyContextInTableScope() {
  3999. for (let e = this.stackTop; 0 <= e; e--) {
  4000. var t = this.tagIDs[e];
  4001. if (this.treeAdapter.getNamespaceURI(this.items[e]) === Mr.HTML) {
  4002. if (t === Ur.TBODY || t === Ur.THEAD || t === Ur.TFOOT) return !0;
  4003. if (t === Ur.TABLE || t === Ur.HTML) return !1
  4004. }
  4005. }
  4006. return !0
  4007. }
  4008. hasInSelectScope(e) {
  4009. for (let t = this.stackTop; 0 <= t; t--) {
  4010. var n = this.tagIDs[t];
  4011. if (this.treeAdapter.getNamespaceURI(this.items[t]) === Mr.HTML) {
  4012. if (n === e) return !0;
  4013. if (n !== Ur.OPTION && n !== Ur.OPTGROUP) return !1
  4014. }
  4015. }
  4016. return !0
  4017. }
  4018. generateImpliedEndTags() {
  4019. for (; oi.has(this.currentTagId);) this.pop()
  4020. }
  4021. generateImpliedEndTagsThoroughly() {
  4022. for (; ci.has(this.currentTagId);) this.pop()
  4023. }
  4024. generateImpliedEndTagsWithExclusion(e) {
  4025. for (; this.currentTagId !== e && ci.has(this.currentTagId);) this.pop()
  4026. }
  4027. }
  4028. !function (e) {
  4029. e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element"
  4030. }(_i = _i || {});
  4031. const Ei = {type: _i.Marker};
  4032. class Ti {
  4033. constructor(e) {
  4034. this.treeAdapter = e, this.entries = [], this.bookmark = null
  4035. }
  4036. _getNoahArkConditionCandidates(e, t) {
  4037. var n = [], r = t.length, i = this.treeAdapter.getTagName(e), s = this.treeAdapter.getNamespaceURI(e);
  4038. for (let e = 0; e < this.entries.length; e++) {
  4039. const t = this.entries[e];
  4040. if (t.type === _i.Marker) break;
  4041. var a = t.element;
  4042. if (this.treeAdapter.getTagName(a) === i && this.treeAdapter.getNamespaceURI(a) === s) {
  4043. const t = this.treeAdapter.getAttrList(a);
  4044. t.length === r && n.push({idx: e, attrs: t})
  4045. }
  4046. }
  4047. return n
  4048. }
  4049. _ensureNoahArkCondition(e) {
  4050. if (!(this.entries.length < 3)) {
  4051. var t = this.treeAdapter.getAttrList(e), n = this._getNoahArkConditionCandidates(e, t);
  4052. if (!(n.length < 3)) {
  4053. const r = new Map(t.map(e => [e.name, e.value]));
  4054. let i = 0;
  4055. for (let e = 0; e < n.length; e++) {
  4056. const t = n[e];
  4057. t.attrs.every(e => r.get(e.name) === e.value) && 3 <= (i += 1) && this.entries.splice(t.idx, 1)
  4058. }
  4059. }
  4060. }
  4061. }
  4062. insertMarker() {
  4063. this.entries.unshift(Ei)
  4064. }
  4065. pushElement(e, t) {
  4066. this._ensureNoahArkCondition(e), this.entries.unshift({type: _i.Element, element: e, token: t})
  4067. }
  4068. insertElementAfterBookmark(e, t) {
  4069. var n = this.entries.indexOf(this.bookmark);
  4070. this.entries.splice(n, 0, {type: _i.Element, element: e, token: t})
  4071. }
  4072. removeEntry(e) {
  4073. 0 <= (e = this.entries.indexOf(e)) && this.entries.splice(e, 1)
  4074. }
  4075. clearToLastMarker() {
  4076. var e = this.entries.indexOf(Ei);
  4077. 0 <= e ? this.entries.splice(0, e + 1) : this.entries.length = 0
  4078. }
  4079. getElementEntryInScopeWithTagName(e) {
  4080. var t = this.entries.find(t => t.type === _i.Marker || this.treeAdapter.getTagName(t.element) === e);
  4081. return t && t.type === _i.Element ? t : null
  4082. }
  4083. getElementEntry(e) {
  4084. return this.entries.find(t => t.type === _i.Element && t.element === e)
  4085. }
  4086. }
  4087. function Ai(e) {
  4088. return {nodeName: "#text", value: e, parentNode: null}
  4089. }
  4090. const gi = {
  4091. createDocument: () => ({nodeName: "#document", mode: Br.NO_QUIRKS, childNodes: []}),
  4092. createDocumentFragment: () => ({nodeName: "#document-fragment", childNodes: []}),
  4093. createElement: (e, t, n) => ({
  4094. nodeName: e,
  4095. tagName: e,
  4096. attrs: n,
  4097. namespaceURI: t,
  4098. childNodes: [],
  4099. parentNode: null
  4100. }),
  4101. createCommentNode: e => ({nodeName: "#comment", data: e, parentNode: null}),
  4102. appendChild(e, t) {
  4103. e.childNodes.push(t), t.parentNode = e
  4104. },
  4105. insertBefore(e, t, n) {
  4106. n = e.childNodes.indexOf(n), e.childNodes.splice(n, 0, t), t.parentNode = e
  4107. },
  4108. setTemplateContent(e, t) {
  4109. e.content = t
  4110. },
  4111. getTemplateContent: e => e.content,
  4112. setDocumentType(e, t, n, r) {
  4113. const i = e.childNodes.find(e => "#documentType" === e.nodeName);
  4114. if (i) i.name = t, i.publicId = n, i.systemId = r; else {
  4115. const i = {nodeName: "#documentType", name: t, publicId: n, systemId: r, parentNode: null};
  4116. gi.appendChild(e, i)
  4117. }
  4118. },
  4119. setDocumentMode(e, t) {
  4120. e.mode = t
  4121. },
  4122. getDocumentMode: e => e.mode,
  4123. detachNode(e) {
  4124. var t;
  4125. e.parentNode && (t = e.parentNode.childNodes.indexOf(e), e.parentNode.childNodes.splice(t, 1), e.parentNode = null)
  4126. },
  4127. insertText(e, t) {
  4128. if (0 < e.childNodes.length) {
  4129. var n = e.childNodes[e.childNodes.length - 1];
  4130. if (gi.isTextNode(n)) return void (n.value += t)
  4131. }
  4132. gi.appendChild(e, Ai(t))
  4133. },
  4134. insertTextBefore(e, t, n) {
  4135. var r = e.childNodes[e.childNodes.indexOf(n) - 1];
  4136. r && gi.isTextNode(r) ? r.value += t : gi.insertBefore(e, Ai(t), n)
  4137. },
  4138. adoptAttributes(e, t) {
  4139. var n = new Set(e.attrs.map(e => e.name));
  4140. for (let r = 0; r < t.length; r++) n.has(t[r].name) || e.attrs.push(t[r])
  4141. },
  4142. getFirstChild: e => e.childNodes[0],
  4143. getChildNodes: e => e.childNodes,
  4144. getParentNode: e => e.parentNode,
  4145. getAttrList: e => e.attrs,
  4146. getTagName: e => e.tagName,
  4147. getNamespaceURI: e => e.namespaceURI,
  4148. getTextNodeContent: e => e.value,
  4149. getCommentNodeContent: e => e.data,
  4150. getDocumentTypeNodeName: e => e.name,
  4151. getDocumentTypeNodePublicId: e => e.publicId,
  4152. getDocumentTypeNodeSystemId: e => e.systemId,
  4153. isTextNode: e => "#text" === e.nodeName,
  4154. isCommentNode: e => "#comment" === e.nodeName,
  4155. isDocumentTypeNode: e => "#documentType" === e.nodeName,
  4156. isElementNode: e => Object.prototype.hasOwnProperty.call(e, "tagName"),
  4157. setNodeSourceCodeLocation(e, t) {
  4158. e.sourceCodeLocation = t
  4159. },
  4160. getNodeSourceCodeLocation: e => e.sourceCodeLocation,
  4161. updateNodeSourceCodeLocation(e, t) {
  4162. e.sourceCodeLocation = {...e.sourceCodeLocation, ...t}
  4163. }
  4164. }, vi = "html", yi = "about:legacy-compat", Si = "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",
  4165. Ci = ["+//silmaril//dtd html pro v0r11 19970101//", "-//as//dtd html 3.0 aswedit + extensions//", "-//advasoft ltd//dtd html 3.0 aswedit + extensions//", "-//ietf//dtd html 2.0 level 1//", "-//ietf//dtd html 2.0 level 2//", "-//ietf//dtd html 2.0 strict level 1//", "-//ietf//dtd html 2.0 strict level 2//", "-//ietf//dtd html 2.0 strict//", "-//ietf//dtd html 2.0//", "-//ietf//dtd html 2.1e//", "-//ietf//dtd html 3.0//", "-//ietf//dtd html 3.2 final//", "-//ietf//dtd html 3.2//", "-//ietf//dtd html 3//", "-//ietf//dtd html level 0//", "-//ietf//dtd html level 1//", "-//ietf//dtd html level 2//", "-//ietf//dtd html level 3//", "-//ietf//dtd html strict level 0//", "-//ietf//dtd html strict level 1//", "-//ietf//dtd html strict level 2//", "-//ietf//dtd html strict level 3//", "-//ietf//dtd html strict//", "-//ietf//dtd html//", "-//metrius//dtd metrius presentational//", "-//microsoft//dtd internet explorer 2.0 html strict//", "-//microsoft//dtd internet explorer 2.0 html//", "-//microsoft//dtd internet explorer 2.0 tables//", "-//microsoft//dtd internet explorer 3.0 html strict//", "-//microsoft//dtd internet explorer 3.0 html//", "-//microsoft//dtd internet explorer 3.0 tables//", "-//netscape comm. corp.//dtd html//", "-//netscape comm. corp.//dtd strict html//", "-//o'reilly and associates//dtd html 2.0//", "-//o'reilly and associates//dtd html extended 1.0//", "-//o'reilly and associates//dtd html extended relaxed 1.0//", "-//sq//dtd html 2.0 hotmetal + extensions//", "-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//", "-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//", "-//spyglass//dtd html 2.0 extended//", "-//sun microsystems corp.//dtd hotjava html//", "-//sun microsystems corp.//dtd hotjava strict html//", "-//w3c//dtd html 3 1995-03-24//", "-//w3c//dtd html 3.2 draft//", "-//w3c//dtd html 3.2 final//", "-//w3c//dtd html 3.2//", "-//w3c//dtd html 3.2s draft//", "-//w3c//dtd html 4.0 frameset//", "-//w3c//dtd html 4.0 transitional//", "-//w3c//dtd html experimental 19960712//", "-//w3c//dtd html experimental 970421//", "-//w3c//dtd w3 html//", "-//w3o//dtd w3 html 3.0//", "-//webtechs//dtd mozilla html 2.0//", "-//webtechs//dtd mozilla html//"],
  4166. Ni = [...Ci, "-//w3c//dtd html 4.01 frameset//", "-//w3c//dtd html 4.01 transitional//"],
  4167. bi = new Set(["-//w3o//dtd w3 html strict 3.0//en//", "-/w3c/dtd html 4.0 transitional/en", "html"]),
  4168. Ii = ["-//w3c//dtd xhtml 1.0 frameset//", "-//w3c//dtd xhtml 1.0 transitional//"],
  4169. Oi = [...Ii, "-//w3c//dtd html 4.01 frameset//", "-//w3c//dtd html 4.01 transitional//"];
  4170. function ki(e, t) {
  4171. return t.some(t => e.startsWith(t))
  4172. }
  4173. const Li = {TEXT_HTML: "text/html", APPLICATION_XML: "application/xhtml+xml"}, Di = "definitionurl",
  4174. Ri = "definitionURL",
  4175. wi = new Map(["attributeName", "attributeType", "baseFrequency", "baseProfile", "calcMode", "clipPathUnits", "diffuseConstant", "edgeMode", "filterUnits", "glyphRef", "gradientTransform", "gradientUnits", "kernelMatrix", "kernelUnitLength", "keyPoints", "keySplines", "keyTimes", "lengthAdjust", "limitingConeAngle", "markerHeight", "markerUnits", "markerWidth", "maskContentUnits", "maskUnits", "numOctaves", "pathLength", "patternContentUnits", "patternTransform", "patternUnits", "pointsAtX", "pointsAtY", "pointsAtZ", "preserveAlpha", "preserveAspectRatio", "primitiveUnits", "refX", "refY", "repeatCount", "repeatDur", "requiredExtensions", "requiredFeatures", "specularConstant", "specularExponent", "spreadMethod", "startOffset", "stdDeviation", "stitchTiles", "surfaceScale", "systemLanguage", "tableValues", "targetX", "targetY", "textLength", "viewBox", "viewTarget", "xChannelSelector", "yChannelSelector", "zoomAndPan"].map(e => [e.toLowerCase(), e])),
  4176. xi = new Map([["xlink:actuate", {
  4177. prefix: "xlink",
  4178. name: "actuate",
  4179. namespace: Mr.XLINK
  4180. }], ["xlink:arcrole", {prefix: "xlink", name: "arcrole", namespace: Mr.XLINK}], ["xlink:href", {
  4181. prefix: "xlink",
  4182. name: "href",
  4183. namespace: Mr.XLINK
  4184. }], ["xlink:role", {prefix: "xlink", name: "role", namespace: Mr.XLINK}], ["xlink:show", {
  4185. prefix: "xlink",
  4186. name: "show",
  4187. namespace: Mr.XLINK
  4188. }], ["xlink:title", {prefix: "xlink", name: "title", namespace: Mr.XLINK}], ["xlink:type", {
  4189. prefix: "xlink",
  4190. name: "type",
  4191. namespace: Mr.XLINK
  4192. }], ["xml:base", {prefix: "xml", name: "base", namespace: Mr.XML}], ["xml:lang", {
  4193. prefix: "xml",
  4194. name: "lang",
  4195. namespace: Mr.XML
  4196. }], ["xml:space", {prefix: "xml", name: "space", namespace: Mr.XML}], ["xmlns", {
  4197. prefix: "",
  4198. name: "xmlns",
  4199. namespace: Mr.XMLNS
  4200. }], ["xmlns:xlink", {prefix: "xmlns", name: "xlink", namespace: Mr.XMLNS}]]),
  4201. Mi = new Map(["altGlyph", "altGlyphDef", "altGlyphItem", "animateColor", "animateMotion", "animateTransform", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "glyphRef", "linearGradient", "radialGradient", "textPath"].map(e => [e.toLowerCase(), e])),
  4202. Pi = new Set([Ur.B, Ur.BIG, Ur.BLOCKQUOTE, Ur.BODY, Ur.BR, Ur.CENTER, Ur.CODE, Ur.DD, Ur.DIV, Ur.DL, Ur.DT, Ur.EM, Ur.EMBED, Ur.H1, Ur.H2, Ur.H3, Ur.H4, Ur.H5, Ur.H6, Ur.HEAD, Ur.HR, Ur.I, Ur.IMG, Ur.LI, Ur.LISTING, Ur.MENU, Ur.META, Ur.NOBR, Ur.OL, Ur.P, Ur.PRE, Ur.RUBY, Ur.S, Ur.SMALL, Ur.SPAN, Ur.STRONG, Ur.STRIKE, Ur.SUB, Ur.SUP, Ur.TABLE, Ur.TT, Ur.U, Ur.UL, Ur.VAR]);
  4203. function Bi(e) {
  4204. for (let t = 0; t < e.attrs.length; t++) if (e.attrs[t].name === Di) {
  4205. e.attrs[t].name = Ri;
  4206. break
  4207. }
  4208. }
  4209. function Fi(e) {
  4210. for (let t = 0; t < e.attrs.length; t++) {
  4211. var n = wi.get(e.attrs[t].name);
  4212. null != n && (e.attrs[t].name = n)
  4213. }
  4214. }
  4215. function Ui(e) {
  4216. for (let t = 0; t < e.attrs.length; t++) {
  4217. var n = xi.get(e.attrs[t].name);
  4218. n && (e.attrs[t].prefix = n.prefix, e.attrs[t].name = n.name, e.attrs[t].namespace = n.namespace)
  4219. }
  4220. }
  4221. function Hi(e, t, n, r) {
  4222. return (!r || r === Mr.HTML) && function (e, t, n) {
  4223. if (t === Mr.MATHML && e === Ur.ANNOTATION_XML) for (let e = 0; e < n.length; e++) if (n[e].name === Pr.ENCODING) {
  4224. const t = n[e].value.toLowerCase();
  4225. return t === Li.TEXT_HTML || t === Li.APPLICATION_XML
  4226. }
  4227. return t === Mr.SVG && (e === Ur.FOREIGN_OBJECT || e === Ur.DESC || e === Ur.TITLE)
  4228. }(e, t, n) || (!r || r === Mr.MATHML) && function (e, t) {
  4229. return t === Mr.MATHML && (e === Ur.MI || e === Ur.MO || e === Ur.MN || e === Ur.MS || e === Ur.MTEXT)
  4230. }(e, t)
  4231. }
  4232. const Gi = "hidden", ji = 8, qi = 3, Ki = (function (e) {
  4233. e[e.INITIAL = 0] = "INITIAL", e[e.BEFORE_HTML = 1] = "BEFORE_HTML", e[e.BEFORE_HEAD = 2] = "BEFORE_HEAD", e[e.IN_HEAD = 3] = "IN_HEAD", e[e.IN_HEAD_NO_SCRIPT = 4] = "IN_HEAD_NO_SCRIPT", e[e.AFTER_HEAD = 5] = "AFTER_HEAD", e[e.IN_BODY = 6] = "IN_BODY", e[e.TEXT = 7] = "TEXT", e[e.IN_TABLE = 8] = "IN_TABLE", e[e.IN_TABLE_TEXT = 9] = "IN_TABLE_TEXT", e[e.IN_CAPTION = 10] = "IN_CAPTION", e[e.IN_COLUMN_GROUP = 11] = "IN_COLUMN_GROUP", e[e.IN_TABLE_BODY = 12] = "IN_TABLE_BODY", e[e.IN_ROW = 13] = "IN_ROW", e[e.IN_CELL = 14] = "IN_CELL", e[e.IN_SELECT = 15] = "IN_SELECT", e[e.IN_SELECT_IN_TABLE = 16] = "IN_SELECT_IN_TABLE", e[e.IN_TEMPLATE = 17] = "IN_TEMPLATE", e[e.AFTER_BODY = 18] = "AFTER_BODY", e[e.IN_FRAMESET = 19] = "IN_FRAMESET", e[e.AFTER_FRAMESET = 20] = "AFTER_FRAMESET", e[e.AFTER_AFTER_BODY = 21] = "AFTER_AFTER_BODY", e[e.AFTER_AFTER_FRAMESET = 22] = "AFTER_AFTER_FRAMESET"
  4234. }(Yi = Yi || {}), {startLine: -1, startCol: -1, startOffset: -1, endLine: -1, endCol: -1, endOffset: -1}),
  4235. Wi = new Set([Ur.TABLE, Ur.TBODY, Ur.TFOOT, Ur.THEAD, Ur.TR]),
  4236. Vi = {scriptingEnabled: !0, sourceCodeLocationInfo: !1, treeAdapter: gi, onParseError: null};
  4237. class $i {
  4238. constructor(e, t, n = null, r = null) {
  4239. this.fragmentContext = n, this.scriptHandler = r, this.currentToken = null, this.stopped = !1, this.insertionMode = Yi.INITIAL, this.originalInsertionMode = Yi.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {...Vi, ...e}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = null != t ? t : this.treeAdapter.createDocument(), this.tokenizer = new ai(this.options, this), this.activeFormattingElements = new Ti(this.treeAdapter), this.fragmentContextID = n ? qr(this.treeAdapter.getTagName(n)) : Ur.UNKNOWN, this._setContextModes(null != n ? n : this.document, this.fragmentContextID), this.openElements = new mi(this.document, this.treeAdapter, this)
  4240. }
  4241. static parse(e, t) {
  4242. return (t = new this(t)).tokenizer.write(e, !0), t.document
  4243. }
  4244. static getFragmentParser(e, t) {
  4245. var t = {...Vi, ...t},
  4246. r = (null == e && (e = t.treeAdapter.createElement(Fr.TEMPLATE, Mr.HTML, [])), t.treeAdapter.createElement("documentmock", Mr.HTML, []));
  4247. return (t = new this(t, r, e)).fragmentContextID === Ur.TEMPLATE && t.tmplInsertionModeStack.unshift(Yi.IN_TEMPLATE), t._initTokenizerForFragmentParsing(), t._insertFakeRootElement(), t._resetInsertionMode(), t._findFormInFragmentContext(), t
  4248. }
  4249. getFragment() {
  4250. var e = this.treeAdapter.getFirstChild(this.document), t = this.treeAdapter.createDocumentFragment();
  4251. return this._adoptNodes(e, t), t
  4252. }
  4253. _err(e, t, n) {
  4254. this.onParseError && (t = {
  4255. code: t,
  4256. startLine: (e = null != (t = e.location) ? t : Ki).startLine,
  4257. startCol: e.startCol,
  4258. startOffset: e.startOffset,
  4259. endLine: n ? e.startLine : e.endLine,
  4260. endCol: n ? e.startCol : e.endCol,
  4261. endOffset: n ? e.startOffset : e.endOffset
  4262. }, this.onParseError(t))
  4263. }
  4264. onItemPush(e, t, n) {
  4265. var r, i;
  4266. null != (i = (r = this.treeAdapter).onItemPush) && i.call(r, e), n && 0 < this.openElements.stackTop && this._setContextModes(e, t)
  4267. }
  4268. onItemPop(e, t) {
  4269. var n, r;
  4270. if (this.options.sourceCodeLocationInfo && this._setEndLocation(e, this.currentToken), null != (r = (n = this.treeAdapter).onItemPop) && r.call(n, e, this.openElements.current), t) {
  4271. let e, t;
  4272. 0 === this.openElements.stackTop && this.fragmentContext ? (e = this.fragmentContext, t = this.fragmentContextID) : {
  4273. current: e,
  4274. currentTagId: t
  4275. } = this.openElements, this._setContextModes(e, t)
  4276. }
  4277. }
  4278. _setContextModes(e, t) {
  4279. var n = e === this.document || this.treeAdapter.getNamespaceURI(e) === Mr.HTML;
  4280. this.currentNotInHTML = !n, this.tokenizer.inForeignNode = !n && !this._isIntegrationPoint(t, e)
  4281. }
  4282. _switchToTextParsing(e, t) {
  4283. this._insertElement(e, Mr.HTML), this.tokenizer.state = t, this.originalInsertionMode = this.insertionMode, this.insertionMode = Yi.TEXT
  4284. }
  4285. switchToPlaintextParsing() {
  4286. this.insertionMode = Yi.TEXT, this.originalInsertionMode = Yi.IN_BODY, this.tokenizer.state = zr.PLAINTEXT
  4287. }
  4288. _getAdjustedCurrentElement() {
  4289. return 0 === this.openElements.stackTop && this.fragmentContext ? this.fragmentContext : this.openElements.current
  4290. }
  4291. _findFormInFragmentContext() {
  4292. let e = this.fragmentContext;
  4293. for (; e;) {
  4294. if (this.treeAdapter.getTagName(e) === Fr.FORM) {
  4295. this.formElement = e;
  4296. break
  4297. }
  4298. e = this.treeAdapter.getParentNode(e)
  4299. }
  4300. }
  4301. _initTokenizerForFragmentParsing() {
  4302. if (this.fragmentContext && this.treeAdapter.getNamespaceURI(this.fragmentContext) === Mr.HTML) switch (this.fragmentContextID) {
  4303. case Ur.TITLE:
  4304. case Ur.TEXTAREA:
  4305. this.tokenizer.state = zr.RCDATA;
  4306. break;
  4307. case Ur.STYLE:
  4308. case Ur.XMP:
  4309. case Ur.IFRAME:
  4310. case Ur.NOEMBED:
  4311. case Ur.NOFRAMES:
  4312. case Ur.NOSCRIPT:
  4313. this.tokenizer.state = zr.RAWTEXT;
  4314. break;
  4315. case Ur.SCRIPT:
  4316. this.tokenizer.state = zr.SCRIPT_DATA;
  4317. break;
  4318. case Ur.PLAINTEXT:
  4319. this.tokenizer.state = zr.PLAINTEXT
  4320. }
  4321. }
  4322. _setDocumentType(e) {
  4323. const t = e.name || "", n = e.publicId || "", r = e.systemId || "";
  4324. if (this.treeAdapter.setDocumentType(this.document, t, n, r), e.location) {
  4325. const t = this.treeAdapter.getChildNodes(this.document).find(e => this.treeAdapter.isDocumentTypeNode(e));
  4326. t && this.treeAdapter.setNodeSourceCodeLocation(t, e.location)
  4327. }
  4328. }
  4329. _attachElementToTree(e, t) {
  4330. if (this.options.sourceCodeLocationInfo && (t = t && {
  4331. ...t,
  4332. startTag: t
  4333. }, this.treeAdapter.setNodeSourceCodeLocation(e, t)), this._shouldFosterParentOnInsertion()) this._fosterParentElement(e); else {
  4334. const t = this.openElements.currentTmplContentOrNode;
  4335. this.treeAdapter.appendChild(t, e)
  4336. }
  4337. }
  4338. _appendElement(e, t) {
  4339. t = this.treeAdapter.createElement(e.tagName, t, e.attrs), this._attachElementToTree(t, e.location)
  4340. }
  4341. _insertElement(e, t) {
  4342. t = this.treeAdapter.createElement(e.tagName, t, e.attrs), this._attachElementToTree(t, e.location), this.openElements.push(t, e.tagID)
  4343. }
  4344. _insertFakeElement(e, t) {
  4345. e = this.treeAdapter.createElement(e, Mr.HTML, []), this._attachElementToTree(e, null), this.openElements.push(e, t)
  4346. }
  4347. _insertTemplate(e) {
  4348. var t = this.treeAdapter.createElement(e.tagName, Mr.HTML, e.attrs),
  4349. n = this.treeAdapter.createDocumentFragment();
  4350. this.treeAdapter.setTemplateContent(t, n), this._attachElementToTree(t, e.location), this.openElements.push(t, e.tagID), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(n, null)
  4351. }
  4352. _insertFakeRootElement() {
  4353. var e = this.treeAdapter.createElement(Fr.HTML, Mr.HTML, []);
  4354. this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(e, null), this.treeAdapter.appendChild(this.openElements.current, e), this.openElements.push(e, Ur.HTML)
  4355. }
  4356. _appendCommentNode(e, t) {
  4357. var n = this.treeAdapter.createCommentNode(e.data);
  4358. this.treeAdapter.appendChild(t, n), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(n, e.location)
  4359. }
  4360. _insertCharacters(e) {
  4361. let t, n;
  4362. if (this._shouldFosterParentOnInsertion() ? ({
  4363. parent: t,
  4364. beforeElement: n
  4365. } = this._findFosterParentingLocation(), n ? this.treeAdapter.insertTextBefore(t, e.chars, n) : this.treeAdapter.insertText(t, e.chars)) : (t = this.openElements.currentTmplContentOrNode, this.treeAdapter.insertText(t, e.chars)), e.location) {
  4366. var r = this.treeAdapter.getChildNodes(t), i = n ? r.lastIndexOf(n) : r.length, i = r[i - 1];
  4367. if (this.treeAdapter.getNodeSourceCodeLocation(i)) {
  4368. const {endLine: t, endCol: n, endOffset: r} = e.location;
  4369. this.treeAdapter.updateNodeSourceCodeLocation(i, {endLine: t, endCol: n, endOffset: r})
  4370. } else this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(i, e.location)
  4371. }
  4372. }
  4373. _adoptNodes(e, t) {
  4374. for (let n = this.treeAdapter.getFirstChild(e); n; n = this.treeAdapter.getFirstChild(e)) this.treeAdapter.detachNode(n), this.treeAdapter.appendChild(t, n)
  4375. }
  4376. _setEndLocation(e, t) {
  4377. var n, r;
  4378. this.treeAdapter.getNodeSourceCodeLocation(e) && t.location && (n = t.location, r = this.treeAdapter.getTagName(e), r = t.type === Tr.END_TAG && r === t.tagName ? {
  4379. endTag: {...n},
  4380. endLine: n.endLine,
  4381. endCol: n.endCol,
  4382. endOffset: n.endOffset
  4383. } : {
  4384. endLine: n.startLine,
  4385. endCol: n.startCol,
  4386. endOffset: n.startOffset
  4387. }, this.treeAdapter.updateNodeSourceCodeLocation(e, r))
  4388. }
  4389. shouldProcessStartTagTokenInForeignContent(e) {
  4390. if (!this.currentNotInHTML) return !1;
  4391. let t, n;
  4392. return 0 === this.openElements.stackTop && this.fragmentContext ? (t = this.fragmentContext, n = this.fragmentContextID) : {
  4393. current: t,
  4394. currentTagId: n
  4395. } = this.openElements, (e.tagID !== Ur.SVG || this.treeAdapter.getTagName(t) !== Fr.ANNOTATION_XML || this.treeAdapter.getNamespaceURI(t) !== Mr.MATHML) && (this.tokenizer.inForeignNode || (e.tagID === Ur.MGLYPH || e.tagID === Ur.MALIGNMARK) && !this._isIntegrationPoint(n, t, Mr.HTML))
  4396. }
  4397. _processToken(e) {
  4398. switch (e.type) {
  4399. case Tr.CHARACTER:
  4400. this.onCharacter(e);
  4401. break;
  4402. case Tr.NULL_CHARACTER:
  4403. this.onNullCharacter(e);
  4404. break;
  4405. case Tr.COMMENT:
  4406. this.onComment(e);
  4407. break;
  4408. case Tr.DOCTYPE:
  4409. this.onDoctype(e);
  4410. break;
  4411. case Tr.START_TAG:
  4412. this._processStartTag(e);
  4413. break;
  4414. case Tr.END_TAG:
  4415. this.onEndTag(e);
  4416. break;
  4417. case Tr.EOF:
  4418. this.onEof(e);
  4419. break;
  4420. case Tr.WHITESPACE_CHARACTER:
  4421. this.onWhitespaceCharacter(e)
  4422. }
  4423. }
  4424. _isIntegrationPoint(e, t, n) {
  4425. return Hi(e, this.treeAdapter.getNamespaceURI(t), this.treeAdapter.getAttrList(t), n)
  4426. }
  4427. _reconstructActiveFormattingElements() {
  4428. const e = this.activeFormattingElements.entries.length;
  4429. if (e) {
  4430. var t = this.activeFormattingElements.entries.findIndex(e => e.type === _i.Marker || this.openElements.contains(e.element));
  4431. for (let n = t < 0 ? e - 1 : t - 1; 0 <= n; n--) {
  4432. const e = this.activeFormattingElements.entries[n];
  4433. this._insertElement(e.token, this.treeAdapter.getNamespaceURI(e.element)), e.element = this.openElements.current
  4434. }
  4435. }
  4436. }
  4437. _closeTableCell() {
  4438. this.openElements.generateImpliedEndTags(), this.openElements.popUntilTableCellPopped(), this.activeFormattingElements.clearToLastMarker(), this.insertionMode = Yi.IN_ROW
  4439. }
  4440. _closePElement() {
  4441. this.openElements.generateImpliedEndTagsWithExclusion(Ur.P), this.openElements.popUntilTagNamePopped(Ur.P)
  4442. }
  4443. _resetInsertionMode() {
  4444. for (let e = this.openElements.stackTop; 0 <= e; e--) switch (0 === e && this.fragmentContext ? this.fragmentContextID : this.openElements.tagIDs[e]) {
  4445. case Ur.TR:
  4446. return void (this.insertionMode = Yi.IN_ROW);
  4447. case Ur.TBODY:
  4448. case Ur.THEAD:
  4449. case Ur.TFOOT:
  4450. return void (this.insertionMode = Yi.IN_TABLE_BODY);
  4451. case Ur.CAPTION:
  4452. return void (this.insertionMode = Yi.IN_CAPTION);
  4453. case Ur.COLGROUP:
  4454. return void (this.insertionMode = Yi.IN_COLUMN_GROUP);
  4455. case Ur.TABLE:
  4456. return void (this.insertionMode = Yi.IN_TABLE);
  4457. case Ur.BODY:
  4458. return void (this.insertionMode = Yi.IN_BODY);
  4459. case Ur.FRAMESET:
  4460. return void (this.insertionMode = Yi.IN_FRAMESET);
  4461. case Ur.SELECT:
  4462. return void this._resetInsertionModeForSelect(e);
  4463. case Ur.TEMPLATE:
  4464. return void (this.insertionMode = this.tmplInsertionModeStack[0]);
  4465. case Ur.HTML:
  4466. return void (this.insertionMode = this.headElement ? Yi.AFTER_HEAD : Yi.BEFORE_HEAD);
  4467. case Ur.TD:
  4468. case Ur.TH:
  4469. if (0 < e) return void (this.insertionMode = Yi.IN_CELL);
  4470. break;
  4471. case Ur.HEAD:
  4472. if (0 < e) return void (this.insertionMode = Yi.IN_HEAD)
  4473. }
  4474. this.insertionMode = Yi.IN_BODY
  4475. }
  4476. _resetInsertionModeForSelect(e) {
  4477. if (0 < e) for (let t = e - 1; 0 < t; t--) {
  4478. const e = this.openElements.tagIDs[t];
  4479. if (e === Ur.TEMPLATE) break;
  4480. if (e === Ur.TABLE) return void (this.insertionMode = Yi.IN_SELECT_IN_TABLE)
  4481. }
  4482. this.insertionMode = Yi.IN_SELECT
  4483. }
  4484. _isElementCausesFosterParenting(e) {
  4485. return Wi.has(e)
  4486. }
  4487. _shouldFosterParentOnInsertion() {
  4488. return this.fosterParentingEnabled && this._isElementCausesFosterParenting(this.openElements.currentTagId)
  4489. }
  4490. _findFosterParentingLocation() {
  4491. for (let e = this.openElements.stackTop; 0 <= e; e--) {
  4492. var t = this.openElements.items[e];
  4493. switch (this.openElements.tagIDs[e]) {
  4494. case Ur.TEMPLATE:
  4495. if (this.treeAdapter.getNamespaceURI(t) === Mr.HTML) return {
  4496. parent: this.treeAdapter.getTemplateContent(t),
  4497. beforeElement: null
  4498. };
  4499. break;
  4500. case Ur.TABLE:
  4501. var n = this.treeAdapter.getParentNode(t);
  4502. return n ? {parent: n, beforeElement: t} : {
  4503. parent: this.openElements.items[e - 1],
  4504. beforeElement: null
  4505. }
  4506. }
  4507. }
  4508. return {parent: this.openElements.items[0], beforeElement: null}
  4509. }
  4510. _fosterParentElement(e) {
  4511. var t = this._findFosterParentingLocation();
  4512. t.beforeElement ? this.treeAdapter.insertBefore(t.parent, e, t.beforeElement) : this.treeAdapter.appendChild(t.parent, e)
  4513. }
  4514. _isSpecialElement(e, t) {
  4515. return e = this.treeAdapter.getNamespaceURI(e), Kr[e].has(t)
  4516. }
  4517. onCharacter(e) {
  4518. if (this.skipNextNewLine = !1, this.tokenizer.inForeignNode) !function (e, t) {
  4519. e._insertCharacters(t), e.framesetOk = !1
  4520. }(this, e); else switch (this.insertionMode) {
  4521. case Yi.INITIAL:
  4522. is(this, e);
  4523. break;
  4524. case Yi.BEFORE_HTML:
  4525. ss(this, e);
  4526. break;
  4527. case Yi.BEFORE_HEAD:
  4528. as(this, e);
  4529. break;
  4530. case Yi.IN_HEAD:
  4531. us(this, e);
  4532. break;
  4533. case Yi.IN_HEAD_NO_SCRIPT:
  4534. ls(this, e);
  4535. break;
  4536. case Yi.AFTER_HEAD:
  4537. hs(this, e);
  4538. break;
  4539. case Yi.IN_BODY:
  4540. case Yi.IN_CAPTION:
  4541. case Yi.IN_CELL:
  4542. case Yi.IN_TEMPLATE:
  4543. ds(this, e);
  4544. break;
  4545. case Yi.TEXT:
  4546. case Yi.IN_SELECT:
  4547. case Yi.IN_SELECT_IN_TABLE:
  4548. this._insertCharacters(e);
  4549. break;
  4550. case Yi.IN_TABLE:
  4551. case Yi.IN_TABLE_BODY:
  4552. case Yi.IN_ROW:
  4553. Ss(this, e);
  4554. break;
  4555. case Yi.IN_TABLE_TEXT:
  4556. Os(this, e);
  4557. break;
  4558. case Yi.IN_COLUMN_GROUP:
  4559. Rs(this, e);
  4560. break;
  4561. case Yi.AFTER_BODY:
  4562. Gs(this, e);
  4563. break;
  4564. case Yi.AFTER_AFTER_BODY:
  4565. js(this, e)
  4566. }
  4567. }
  4568. onNullCharacter(e) {
  4569. if (this.skipNextNewLine = !1, this.tokenizer.inForeignNode) !function (e, t) {
  4570. t.chars = sr, e._insertCharacters(t)
  4571. }(this, e); else switch (this.insertionMode) {
  4572. case Yi.INITIAL:
  4573. is(this, e);
  4574. break;
  4575. case Yi.BEFORE_HTML:
  4576. ss(this, e);
  4577. break;
  4578. case Yi.BEFORE_HEAD:
  4579. as(this, e);
  4580. break;
  4581. case Yi.IN_HEAD:
  4582. us(this, e);
  4583. break;
  4584. case Yi.IN_HEAD_NO_SCRIPT:
  4585. ls(this, e);
  4586. break;
  4587. case Yi.AFTER_HEAD:
  4588. hs(this, e);
  4589. break;
  4590. case Yi.TEXT:
  4591. this._insertCharacters(e);
  4592. break;
  4593. case Yi.IN_TABLE:
  4594. case Yi.IN_TABLE_BODY:
  4595. case Yi.IN_ROW:
  4596. Ss(this, e);
  4597. break;
  4598. case Yi.IN_COLUMN_GROUP:
  4599. Rs(this, e);
  4600. break;
  4601. case Yi.AFTER_BODY:
  4602. Gs(this, e);
  4603. break;
  4604. case Yi.AFTER_AFTER_BODY:
  4605. js(this, e)
  4606. }
  4607. }
  4608. onComment(e) {
  4609. if (this.skipNextNewLine = !1, this.currentNotInHTML) ns(this, e); else switch (this.insertionMode) {
  4610. case Yi.INITIAL:
  4611. case Yi.BEFORE_HTML:
  4612. case Yi.BEFORE_HEAD:
  4613. case Yi.IN_HEAD:
  4614. case Yi.IN_HEAD_NO_SCRIPT:
  4615. case Yi.AFTER_HEAD:
  4616. case Yi.IN_BODY:
  4617. case Yi.IN_TABLE:
  4618. case Yi.IN_CAPTION:
  4619. case Yi.IN_COLUMN_GROUP:
  4620. case Yi.IN_TABLE_BODY:
  4621. case Yi.IN_ROW:
  4622. case Yi.IN_CELL:
  4623. case Yi.IN_SELECT:
  4624. case Yi.IN_SELECT_IN_TABLE:
  4625. case Yi.IN_TEMPLATE:
  4626. case Yi.IN_FRAMESET:
  4627. case Yi.AFTER_FRAMESET:
  4628. ns(this, e);
  4629. break;
  4630. case Yi.IN_TABLE_TEXT:
  4631. ks(this, e);
  4632. break;
  4633. case Yi.AFTER_BODY:
  4634. !function (e, t) {
  4635. e._appendCommentNode(t, e.openElements.items[0])
  4636. }(this, e);
  4637. break;
  4638. case Yi.AFTER_AFTER_BODY:
  4639. case Yi.AFTER_AFTER_FRAMESET:
  4640. !function (e, t) {
  4641. e._appendCommentNode(t, e.document)
  4642. }(this, e)
  4643. }
  4644. }
  4645. onDoctype(e) {
  4646. switch (this.skipNextNewLine = !1, this.insertionMode) {
  4647. case Yi.INITIAL:
  4648. !function (e, t) {
  4649. e._setDocumentType(t);
  4650. var n = t.forceQuirks ? Br.QUIRKS : function (e) {
  4651. if (e.name !== vi) return Br.QUIRKS;
  4652. var t = e.systemId;
  4653. if (t && t.toLowerCase() === Si) return Br.QUIRKS;
  4654. let n = e.publicId;
  4655. if (null !== n) {
  4656. if (n = n.toLowerCase(), bi.has(n)) return Br.QUIRKS;
  4657. let e = null === t ? Ni : Ci;
  4658. if (ki(n, e)) return Br.QUIRKS;
  4659. if (e = null === t ? Ii : Oi, ki(n, e)) return Br.LIMITED_QUIRKS
  4660. }
  4661. return Br.NO_QUIRKS
  4662. }(t);
  4663. !function (e) {
  4664. return e.name === vi && null === e.publicId && (null === e.systemId || e.systemId === yi)
  4665. }(t) && e._err(t, _r.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = Yi.BEFORE_HTML
  4666. }(this, e);
  4667. break;
  4668. case Yi.BEFORE_HEAD:
  4669. case Yi.IN_HEAD:
  4670. case Yi.IN_HEAD_NO_SCRIPT:
  4671. case Yi.AFTER_HEAD:
  4672. this._err(e, _r.misplacedDoctype);
  4673. break;
  4674. case Yi.IN_TABLE_TEXT:
  4675. ks(this, e)
  4676. }
  4677. }
  4678. onStartTag(e) {
  4679. this.skipNextNewLine = !1, this.currentToken = e, this._processStartTag(e), e.selfClosing && !e.ackSelfClosing && this._err(e, _r.nonVoidHtmlElementStartTagWithTrailingSolidus)
  4680. }
  4681. _processStartTag(e) {
  4682. this.shouldProcessStartTagTokenInForeignContent(e) ? function (e, t) {
  4683. var n;
  4684. !function (e) {
  4685. var t = e.tagID;
  4686. return t === Ur.FONT && e.attrs.some(({name: e}) => e === Pr.COLOR || e === Pr.SIZE || e === Pr.FACE) || Pi.has(t)
  4687. }(t) ? (n = e._getAdjustedCurrentElement(), (n = e.treeAdapter.getNamespaceURI(n)) === Mr.MATHML ? Bi(t) : n === Mr.SVG && (function (e) {
  4688. var t = Mi.get(e.tagName);
  4689. null != t && (e.tagName = t, e.tagID = qr(e.tagName))
  4690. }(t), Fi(t)), Ui(t), t.selfClosing ? e._appendElement(t, n) : e._insertElement(t, n), t.ackSelfClosing = !0) : (qs(e), e._startTagOutsideForeignContent(t))
  4691. }(this, e) : this._startTagOutsideForeignContent(e)
  4692. }
  4693. _startTagOutsideForeignContent(e) {
  4694. switch (this.insertionMode) {
  4695. case Yi.INITIAL:
  4696. is(this, e);
  4697. break;
  4698. case Yi.BEFORE_HTML:
  4699. !function (e, t) {
  4700. t.tagID === Ur.HTML ? (e._insertElement(t, Mr.HTML), e.insertionMode = Yi.BEFORE_HEAD) : ss(e, t)
  4701. }(this, e);
  4702. break;
  4703. case Yi.BEFORE_HEAD:
  4704. !function (e, t) {
  4705. switch (t.tagID) {
  4706. case Ur.HTML:
  4707. As(e, t);
  4708. break;
  4709. case Ur.HEAD:
  4710. e._insertElement(t, Mr.HTML), e.headElement = e.openElements.current, e.insertionMode = Yi.IN_HEAD;
  4711. break;
  4712. default:
  4713. as(e, t)
  4714. }
  4715. }(this, e);
  4716. break;
  4717. case Yi.IN_HEAD:
  4718. os(this, e);
  4719. break;
  4720. case Yi.IN_HEAD_NO_SCRIPT:
  4721. !function (e, t) {
  4722. switch (t.tagID) {
  4723. case Ur.HTML:
  4724. As(e, t);
  4725. break;
  4726. case Ur.BASEFONT:
  4727. case Ur.BGSOUND:
  4728. case Ur.HEAD:
  4729. case Ur.LINK:
  4730. case Ur.META:
  4731. case Ur.NOFRAMES:
  4732. case Ur.STYLE:
  4733. os(e, t);
  4734. break;
  4735. case Ur.NOSCRIPT:
  4736. e._err(t, _r.nestedNoscriptInHead);
  4737. break;
  4738. default:
  4739. ls(e, t)
  4740. }
  4741. }(this, e);
  4742. break;
  4743. case Yi.AFTER_HEAD:
  4744. !function (e, t) {
  4745. switch (t.tagID) {
  4746. case Ur.HTML:
  4747. As(e, t);
  4748. break;
  4749. case Ur.BODY:
  4750. e._insertElement(t, Mr.HTML), e.framesetOk = !1, e.insertionMode = Yi.IN_BODY;
  4751. break;
  4752. case Ur.FRAMESET:
  4753. e._insertElement(t, Mr.HTML), e.insertionMode = Yi.IN_FRAMESET;
  4754. break;
  4755. case Ur.BASE:
  4756. case Ur.BASEFONT:
  4757. case Ur.BGSOUND:
  4758. case Ur.LINK:
  4759. case Ur.META:
  4760. case Ur.NOFRAMES:
  4761. case Ur.SCRIPT:
  4762. case Ur.STYLE:
  4763. case Ur.TEMPLATE:
  4764. case Ur.TITLE:
  4765. e._err(t, _r.abandonedHeadElementChild), e.openElements.push(e.headElement, Ur.HEAD), os(e, t), e.openElements.remove(e.headElement);
  4766. break;
  4767. case Ur.HEAD:
  4768. e._err(t, _r.misplacedStartTagForHeadElement);
  4769. break;
  4770. default:
  4771. hs(e, t)
  4772. }
  4773. }(this, e);
  4774. break;
  4775. case Yi.IN_BODY:
  4776. As(this, e);
  4777. break;
  4778. case Yi.IN_TABLE:
  4779. Cs(this, e);
  4780. break;
  4781. case Yi.IN_TABLE_TEXT:
  4782. ks(this, e);
  4783. break;
  4784. case Yi.IN_CAPTION:
  4785. !function (e, t) {
  4786. var n = t.tagID;
  4787. Ls.has(n) ? e.openElements.hasInTableScope(Ur.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(Ur.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = Yi.IN_TABLE, Cs(e, t)) : As(e, t)
  4788. }(this, e);
  4789. break;
  4790. case Yi.IN_COLUMN_GROUP:
  4791. Ds(this, e);
  4792. break;
  4793. case Yi.IN_TABLE_BODY:
  4794. ws(this, e);
  4795. break;
  4796. case Yi.IN_ROW:
  4797. Ms(this, e);
  4798. break;
  4799. case Yi.IN_CELL:
  4800. !function (e, t) {
  4801. var n = t.tagID;
  4802. Ls.has(n) ? (e.openElements.hasInTableScope(Ur.TD) || e.openElements.hasInTableScope(Ur.TH)) && (e._closeTableCell(), Ms(e, t)) : As(e, t)
  4803. }(this, e);
  4804. break;
  4805. case Yi.IN_SELECT:
  4806. Bs(this, e);
  4807. break;
  4808. case Yi.IN_SELECT_IN_TABLE:
  4809. !function (e, t) {
  4810. var n = t.tagID;
  4811. n === Ur.CAPTION || n === Ur.TABLE || n === Ur.TBODY || n === Ur.TFOOT || n === Ur.THEAD || n === Ur.TR || n === Ur.TD || n === Ur.TH ? (e.openElements.popUntilTagNamePopped(Ur.SELECT), e._resetInsertionMode(), e._processStartTag(t)) : Bs(e, t)
  4812. }(this, e);
  4813. break;
  4814. case Yi.IN_TEMPLATE:
  4815. !function (e, t) {
  4816. switch (t.tagID) {
  4817. case Ur.BASE:
  4818. case Ur.BASEFONT:
  4819. case Ur.BGSOUND:
  4820. case Ur.LINK:
  4821. case Ur.META:
  4822. case Ur.NOFRAMES:
  4823. case Ur.SCRIPT:
  4824. case Ur.STYLE:
  4825. case Ur.TEMPLATE:
  4826. case Ur.TITLE:
  4827. os(e, t);
  4828. break;
  4829. case Ur.CAPTION:
  4830. case Ur.COLGROUP:
  4831. case Ur.TBODY:
  4832. case Ur.TFOOT:
  4833. case Ur.THEAD:
  4834. e.tmplInsertionModeStack[0] = Yi.IN_TABLE, e.insertionMode = Yi.IN_TABLE, Cs(e, t);
  4835. break;
  4836. case Ur.COL:
  4837. e.tmplInsertionModeStack[0] = Yi.IN_COLUMN_GROUP, e.insertionMode = Yi.IN_COLUMN_GROUP, Ds(e, t);
  4838. break;
  4839. case Ur.TR:
  4840. e.tmplInsertionModeStack[0] = Yi.IN_TABLE_BODY, e.insertionMode = Yi.IN_TABLE_BODY, ws(e, t);
  4841. break;
  4842. case Ur.TD:
  4843. case Ur.TH:
  4844. e.tmplInsertionModeStack[0] = Yi.IN_ROW, e.insertionMode = Yi.IN_ROW, Ms(e, t);
  4845. break;
  4846. default:
  4847. e.tmplInsertionModeStack[0] = Yi.IN_BODY, e.insertionMode = Yi.IN_BODY, As(e, t)
  4848. }
  4849. }(this, e);
  4850. break;
  4851. case Yi.AFTER_BODY:
  4852. !function (e, t) {
  4853. (t.tagID === Ur.HTML ? As : Gs)(e, t)
  4854. }(this, e);
  4855. break;
  4856. case Yi.IN_FRAMESET:
  4857. !function (e, t) {
  4858. switch (t.tagID) {
  4859. case Ur.HTML:
  4860. As(e, t);
  4861. break;
  4862. case Ur.FRAMESET:
  4863. e._insertElement(t, Mr.HTML);
  4864. break;
  4865. case Ur.FRAME:
  4866. e._appendElement(t, Mr.HTML), t.ackSelfClosing = !0;
  4867. break;
  4868. case Ur.NOFRAMES:
  4869. os(e, t)
  4870. }
  4871. }(this, e);
  4872. break;
  4873. case Yi.AFTER_FRAMESET:
  4874. !function (e, t) {
  4875. switch (t.tagID) {
  4876. case Ur.HTML:
  4877. As(e, t);
  4878. break;
  4879. case Ur.NOFRAMES:
  4880. os(e, t)
  4881. }
  4882. }(this, e);
  4883. break;
  4884. case Yi.AFTER_AFTER_BODY:
  4885. !function (e, t) {
  4886. (t.tagID === Ur.HTML ? As : js)(e, t)
  4887. }(this, e);
  4888. break;
  4889. case Yi.AFTER_AFTER_FRAMESET:
  4890. !function (e, t) {
  4891. switch (t.tagID) {
  4892. case Ur.HTML:
  4893. As(e, t);
  4894. break;
  4895. case Ur.NOFRAMES:
  4896. os(e, t)
  4897. }
  4898. }(this, e)
  4899. }
  4900. }
  4901. onEndTag(e) {
  4902. this.skipNextNewLine = !1, this.currentToken = e, this.currentNotInHTML ? function (e, t) {
  4903. if (t.tagID === Ur.P || t.tagID === Ur.BR) return qs(e), e._endTagOutsideForeignContent(t);
  4904. for (let n = e.openElements.stackTop; 0 < n; n--) {
  4905. var r = e.openElements.items[n];
  4906. if (e.treeAdapter.getNamespaceURI(r) === Mr.HTML) {
  4907. e._endTagOutsideForeignContent(t);
  4908. break
  4909. }
  4910. if ((r = e.treeAdapter.getTagName(r)).toLowerCase() === t.tagName) {
  4911. t.tagName = r, e.openElements.shortenToLength(n);
  4912. break
  4913. }
  4914. }
  4915. }(this, e) : this._endTagOutsideForeignContent(e)
  4916. }
  4917. _endTagOutsideForeignContent(e) {
  4918. switch (this.insertionMode) {
  4919. case Yi.INITIAL:
  4920. is(this, e);
  4921. break;
  4922. case Yi.BEFORE_HTML:
  4923. !function (e, t) {
  4924. var n = t.tagID;
  4925. n !== Ur.HTML && n !== Ur.HEAD && n !== Ur.BODY && n !== Ur.BR || ss(e, t)
  4926. }(this, e);
  4927. break;
  4928. case Yi.BEFORE_HEAD:
  4929. !function (e, t) {
  4930. var n = t.tagID;
  4931. n === Ur.HEAD || n === Ur.BODY || n === Ur.HTML || n === Ur.BR ? as(e, t) : e._err(t, _r.endTagWithoutMatchingOpenElement)
  4932. }(this, e);
  4933. break;
  4934. case Yi.IN_HEAD:
  4935. !function (e, t) {
  4936. switch (t.tagID) {
  4937. case Ur.HEAD:
  4938. e.openElements.pop(), e.insertionMode = Yi.AFTER_HEAD;
  4939. break;
  4940. case Ur.BODY:
  4941. case Ur.BR:
  4942. case Ur.HTML:
  4943. us(e, t);
  4944. break;
  4945. case Ur.TEMPLATE:
  4946. cs(e, t);
  4947. break;
  4948. default:
  4949. e._err(t, _r.endTagWithoutMatchingOpenElement)
  4950. }
  4951. }(this, e);
  4952. break;
  4953. case Yi.IN_HEAD_NO_SCRIPT:
  4954. !function (e, t) {
  4955. switch (t.tagID) {
  4956. case Ur.NOSCRIPT:
  4957. e.openElements.pop(), e.insertionMode = Yi.IN_HEAD;
  4958. break;
  4959. case Ur.BR:
  4960. ls(e, t);
  4961. break;
  4962. default:
  4963. e._err(t, _r.endTagWithoutMatchingOpenElement)
  4964. }
  4965. }(this, e);
  4966. break;
  4967. case Yi.AFTER_HEAD:
  4968. !function (e, t) {
  4969. switch (t.tagID) {
  4970. case Ur.BODY:
  4971. case Ur.HTML:
  4972. case Ur.BR:
  4973. hs(e, t);
  4974. break;
  4975. case Ur.TEMPLATE:
  4976. cs(e, t);
  4977. break;
  4978. default:
  4979. e._err(t, _r.endTagWithoutMatchingOpenElement)
  4980. }
  4981. }(this, e);
  4982. break;
  4983. case Yi.IN_BODY:
  4984. vs(this, e);
  4985. break;
  4986. case Yi.TEXT:
  4987. !function (e, t) {
  4988. t.tagID === Ur.SCRIPT && null != (t = e.scriptHandler) && t.call(e, e.openElements.current), e.openElements.pop(), e.insertionMode = e.originalInsertionMode
  4989. }(this, e);
  4990. break;
  4991. case Yi.IN_TABLE:
  4992. Ns(this, e);
  4993. break;
  4994. case Yi.IN_TABLE_TEXT:
  4995. ks(this, e);
  4996. break;
  4997. case Yi.IN_CAPTION:
  4998. !function (e, t) {
  4999. var n = t.tagID;
  5000. switch (n) {
  5001. case Ur.CAPTION:
  5002. case Ur.TABLE:
  5003. e.openElements.hasInTableScope(Ur.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(Ur.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = Yi.IN_TABLE, n === Ur.TABLE) && Ns(e, t);
  5004. break;
  5005. case Ur.BODY:
  5006. case Ur.COL:
  5007. case Ur.COLGROUP:
  5008. case Ur.HTML:
  5009. case Ur.TBODY:
  5010. case Ur.TD:
  5011. case Ur.TFOOT:
  5012. case Ur.TH:
  5013. case Ur.THEAD:
  5014. case Ur.TR:
  5015. break;
  5016. default:
  5017. vs(e, t)
  5018. }
  5019. }(this, e);
  5020. break;
  5021. case Yi.IN_COLUMN_GROUP:
  5022. !function (e, t) {
  5023. switch (t.tagID) {
  5024. case Ur.COLGROUP:
  5025. e.openElements.currentTagId === Ur.COLGROUP && (e.openElements.pop(), e.insertionMode = Yi.IN_TABLE);
  5026. break;
  5027. case Ur.TEMPLATE:
  5028. cs(e, t);
  5029. break;
  5030. case Ur.COL:
  5031. break;
  5032. default:
  5033. Rs(e, t)
  5034. }
  5035. }(this, e);
  5036. break;
  5037. case Yi.IN_TABLE_BODY:
  5038. xs(this, e);
  5039. break;
  5040. case Yi.IN_ROW:
  5041. Ps(this, e);
  5042. break;
  5043. case Yi.IN_CELL:
  5044. !function (e, t) {
  5045. var n = t.tagID;
  5046. switch (n) {
  5047. case Ur.TD:
  5048. case Ur.TH:
  5049. e.openElements.hasInTableScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = Yi.IN_ROW);
  5050. break;
  5051. case Ur.TABLE:
  5052. case Ur.TBODY:
  5053. case Ur.TFOOT:
  5054. case Ur.THEAD:
  5055. case Ur.TR:
  5056. e.openElements.hasInTableScope(n) && (e._closeTableCell(), Ps(e, t));
  5057. break;
  5058. case Ur.BODY:
  5059. case Ur.CAPTION:
  5060. case Ur.COL:
  5061. case Ur.COLGROUP:
  5062. case Ur.HTML:
  5063. break;
  5064. default:
  5065. vs(e, t)
  5066. }
  5067. }(this, e);
  5068. break;
  5069. case Yi.IN_SELECT:
  5070. Fs(this, e);
  5071. break;
  5072. case Yi.IN_SELECT_IN_TABLE:
  5073. !function (e, t) {
  5074. var n = t.tagID;
  5075. n === Ur.CAPTION || n === Ur.TABLE || n === Ur.TBODY || n === Ur.TFOOT || n === Ur.THEAD || n === Ur.TR || n === Ur.TD || n === Ur.TH ? e.openElements.hasInTableScope(n) && (e.openElements.popUntilTagNamePopped(Ur.SELECT), e._resetInsertionMode(), e.onEndTag(t)) : Fs(e, t)
  5076. }(this, e);
  5077. break;
  5078. case Yi.IN_TEMPLATE:
  5079. !function (e, t) {
  5080. t.tagID === Ur.TEMPLATE && cs(e, t)
  5081. }(this, e);
  5082. break;
  5083. case Yi.AFTER_BODY:
  5084. Hs(this, e);
  5085. break;
  5086. case Yi.IN_FRAMESET:
  5087. !function (e, t) {
  5088. t.tagID !== Ur.FRAMESET || e.openElements.isRootHtmlElementCurrent() || (e.openElements.pop(), e.fragmentContext) || e.openElements.currentTagId === Ur.FRAMESET || (e.insertionMode = Yi.AFTER_FRAMESET)
  5089. }(this, e);
  5090. break;
  5091. case Yi.AFTER_FRAMESET:
  5092. !function (e, t) {
  5093. t.tagID === Ur.HTML && (e.insertionMode = Yi.AFTER_AFTER_FRAMESET)
  5094. }(this, e);
  5095. break;
  5096. case Yi.AFTER_AFTER_BODY:
  5097. js(this, e)
  5098. }
  5099. }
  5100. onEof(e) {
  5101. switch (this.insertionMode) {
  5102. case Yi.INITIAL:
  5103. is(this, e);
  5104. break;
  5105. case Yi.BEFORE_HTML:
  5106. ss(this, e);
  5107. break;
  5108. case Yi.BEFORE_HEAD:
  5109. as(this, e);
  5110. break;
  5111. case Yi.IN_HEAD:
  5112. us(this, e);
  5113. break;
  5114. case Yi.IN_HEAD_NO_SCRIPT:
  5115. ls(this, e);
  5116. break;
  5117. case Yi.AFTER_HEAD:
  5118. hs(this, e);
  5119. break;
  5120. case Yi.IN_BODY:
  5121. case Yi.IN_TABLE:
  5122. case Yi.IN_CAPTION:
  5123. case Yi.IN_COLUMN_GROUP:
  5124. case Yi.IN_TABLE_BODY:
  5125. case Yi.IN_ROW:
  5126. case Yi.IN_CELL:
  5127. case Yi.IN_SELECT:
  5128. case Yi.IN_SELECT_IN_TABLE:
  5129. ys(this, e);
  5130. break;
  5131. case Yi.TEXT:
  5132. !function (e, t) {
  5133. e._err(t, _r.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t)
  5134. }(this, e);
  5135. break;
  5136. case Yi.IN_TABLE_TEXT:
  5137. ks(this, e);
  5138. break;
  5139. case Yi.IN_TEMPLATE:
  5140. Us(this, e);
  5141. break;
  5142. case Yi.AFTER_BODY:
  5143. case Yi.IN_FRAMESET:
  5144. case Yi.AFTER_FRAMESET:
  5145. case Yi.AFTER_AFTER_BODY:
  5146. case Yi.AFTER_AFTER_FRAMESET:
  5147. rs(this, e)
  5148. }
  5149. }
  5150. onWhitespaceCharacter(e) {
  5151. if (this.skipNextNewLine && (this.skipNextNewLine = !1, e.chars.charCodeAt(0) === ar.LINE_FEED)) {
  5152. if (1 === e.chars.length) return;
  5153. e.chars = e.chars.substr(1)
  5154. }
  5155. if (this.tokenizer.inForeignNode) this._insertCharacters(e); else switch (this.insertionMode) {
  5156. case Yi.IN_HEAD:
  5157. case Yi.IN_HEAD_NO_SCRIPT:
  5158. case Yi.AFTER_HEAD:
  5159. case Yi.TEXT:
  5160. case Yi.IN_COLUMN_GROUP:
  5161. case Yi.IN_SELECT:
  5162. case Yi.IN_SELECT_IN_TABLE:
  5163. case Yi.IN_FRAMESET:
  5164. case Yi.AFTER_FRAMESET:
  5165. this._insertCharacters(e);
  5166. break;
  5167. case Yi.IN_BODY:
  5168. case Yi.IN_CAPTION:
  5169. case Yi.IN_CELL:
  5170. case Yi.IN_TEMPLATE:
  5171. case Yi.AFTER_BODY:
  5172. case Yi.AFTER_AFTER_BODY:
  5173. case Yi.AFTER_AFTER_FRAMESET:
  5174. ps(this, e);
  5175. break;
  5176. case Yi.IN_TABLE:
  5177. case Yi.IN_TABLE_BODY:
  5178. case Yi.IN_ROW:
  5179. Ss(this, e);
  5180. break;
  5181. case Yi.IN_TABLE_TEXT:
  5182. Is(this, e)
  5183. }
  5184. }
  5185. }
  5186. function Qi(e, t) {
  5187. let n = e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);
  5188. return n ? e.openElements.contains(n.element) ? e.openElements.hasInScope(t.tagID) || (n = null) : (e.activeFormattingElements.removeEntry(n), n = null) : gs(e, t), n
  5189. }
  5190. function zi(e, t) {
  5191. let n = null, r = e.openElements.stackTop;
  5192. for (; 0 <= r; r--) {
  5193. var i = e.openElements.items[r];
  5194. if (i === t.element) break;
  5195. e._isSpecialElement(i, e.openElements.tagIDs[r]) && (n = i)
  5196. }
  5197. return n || (e.openElements.shortenToLength(r < 0 ? 0 : r), e.activeFormattingElements.removeEntry(t)), n
  5198. }
  5199. function Xi(e, t, n) {
  5200. let r = t, i = e.openElements.getCommonAncestor(t);
  5201. for (let s = 0, a = i; a !== n; s++, a = i) {
  5202. i = e.openElements.getCommonAncestor(a);
  5203. const n = e.activeFormattingElements.getElementEntry(a), o = n && s >= qi;
  5204. !n || o ? (o && e.activeFormattingElements.removeEntry(n), e.openElements.remove(a)) : (a = Zi(e, n), r === t && (e.activeFormattingElements.bookmark = n), e.treeAdapter.detachNode(r), e.treeAdapter.appendChild(a, r), r = a)
  5205. }
  5206. return r
  5207. }
  5208. function Zi(e, t) {
  5209. var n = e.treeAdapter.getNamespaceURI(t.element),
  5210. n = e.treeAdapter.createElement(t.token.tagName, n, t.token.attrs);
  5211. return e.openElements.replace(t.element, n), t.element = n
  5212. }
  5213. function Ji(e, t, n) {
  5214. var i, r = qr(e.treeAdapter.getTagName(t));
  5215. e._isElementCausesFosterParenting(r) ? e._fosterParentElement(n) : (i = e.treeAdapter.getNamespaceURI(t), r === Ur.TEMPLATE && i === Mr.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n))
  5216. }
  5217. function es(e, t, n) {
  5218. var r = e.treeAdapter.getNamespaceURI(n.element), i = n.token,
  5219. r = e.treeAdapter.createElement(i.tagName, r, i.attrs);
  5220. e._adoptNodes(t, r), e.treeAdapter.appendChild(t, r), e.activeFormattingElements.insertElementAfterBookmark(r, i), e.activeFormattingElements.removeEntry(n), e.openElements.remove(n.element), e.openElements.insertAfter(t, r, i.tagID)
  5221. }
  5222. function ts(e, t) {
  5223. for (let n = 0; n < ji; n++) {
  5224. const n = Qi(e, t);
  5225. if (!n) break;
  5226. var r = zi(e, n);
  5227. if (!r) break;
  5228. e.activeFormattingElements.bookmark = n;
  5229. var i = Xi(e, r, n.element), s = e.openElements.getCommonAncestor(n.element);
  5230. e.treeAdapter.detachNode(i), s && Ji(e, s, i), es(e, r, n)
  5231. }
  5232. }
  5233. function ns(e, t) {
  5234. e._appendCommentNode(t, e.openElements.currentTmplContentOrNode)
  5235. }
  5236. function rs(e, t) {
  5237. if (e.stopped = !0, t.location) {
  5238. var n = e.fragmentContext ? 0 : 2;
  5239. for (let r = e.openElements.stackTop; r >= n; r--) e._setEndLocation(e.openElements.items[r], t);
  5240. if (!e.fragmentContext && 0 <= e.openElements.stackTop) {
  5241. const n = e.openElements.items[0], r = e.treeAdapter.getNodeSourceCodeLocation(n);
  5242. if (r && !r.endTag && (e._setEndLocation(n, t), 1 <= e.openElements.stackTop)) {
  5243. const n = e.openElements.items[1], r = e.treeAdapter.getNodeSourceCodeLocation(n);
  5244. r && !r.endTag && e._setEndLocation(n, t)
  5245. }
  5246. }
  5247. }
  5248. }
  5249. function is(e, t) {
  5250. e._err(t, _r.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Br.QUIRKS), e.insertionMode = Yi.BEFORE_HTML, e._processToken(t)
  5251. }
  5252. function ss(e, t) {
  5253. e._insertFakeRootElement(), e.insertionMode = Yi.BEFORE_HEAD, e._processToken(t)
  5254. }
  5255. function as(e, t) {
  5256. e._insertFakeElement(Fr.HEAD, Ur.HEAD), e.headElement = e.openElements.current, e.insertionMode = Yi.IN_HEAD, e._processToken(t)
  5257. }
  5258. function os(e, t) {
  5259. switch (t.tagID) {
  5260. case Ur.HTML:
  5261. As(e, t);
  5262. break;
  5263. case Ur.BASE:
  5264. case Ur.BASEFONT:
  5265. case Ur.BGSOUND:
  5266. case Ur.LINK:
  5267. case Ur.META:
  5268. e._appendElement(t, Mr.HTML), t.ackSelfClosing = !0;
  5269. break;
  5270. case Ur.TITLE:
  5271. e._switchToTextParsing(t, zr.RCDATA);
  5272. break;
  5273. case Ur.NOSCRIPT:
  5274. e.options.scriptingEnabled ? e._switchToTextParsing(t, zr.RAWTEXT) : (e._insertElement(t, Mr.HTML), e.insertionMode = Yi.IN_HEAD_NO_SCRIPT);
  5275. break;
  5276. case Ur.NOFRAMES:
  5277. case Ur.STYLE:
  5278. e._switchToTextParsing(t, zr.RAWTEXT);
  5279. break;
  5280. case Ur.SCRIPT:
  5281. e._switchToTextParsing(t, zr.SCRIPT_DATA);
  5282. break;
  5283. case Ur.TEMPLATE:
  5284. e._insertTemplate(t), e.activeFormattingElements.insertMarker(), e.framesetOk = !1, e.insertionMode = Yi.IN_TEMPLATE, e.tmplInsertionModeStack.unshift(Yi.IN_TEMPLATE);
  5285. break;
  5286. case Ur.HEAD:
  5287. e._err(t, _r.misplacedStartTagForHeadElement);
  5288. break;
  5289. default:
  5290. us(e, t)
  5291. }
  5292. }
  5293. function cs(e, t) {
  5294. 0 < e.openElements.tmplCount ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== Ur.TEMPLATE && e._err(t, _r.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(Ur.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, _r.endTagWithoutMatchingOpenElement)
  5295. }
  5296. function us(e, t) {
  5297. e.openElements.pop(), e.insertionMode = Yi.AFTER_HEAD, e._processToken(t)
  5298. }
  5299. function ls(e, t) {
  5300. var n = t.type === Tr.EOF ? _r.openElementsLeftAfterEof : _r.disallowedContentInNoscriptInHead;
  5301. e._err(t, n), e.openElements.pop(), e.insertionMode = Yi.IN_HEAD, e._processToken(t)
  5302. }
  5303. function hs(e, t) {
  5304. e._insertFakeElement(Fr.BODY, Ur.BODY), e.insertionMode = Yi.IN_BODY, fs(e, t)
  5305. }
  5306. function fs(e, t) {
  5307. switch (t.type) {
  5308. case Tr.CHARACTER:
  5309. ds(e, t);
  5310. break;
  5311. case Tr.WHITESPACE_CHARACTER:
  5312. ps(e, t);
  5313. break;
  5314. case Tr.COMMENT:
  5315. ns(e, t);
  5316. break;
  5317. case Tr.START_TAG:
  5318. As(e, t);
  5319. break;
  5320. case Tr.END_TAG:
  5321. vs(e, t);
  5322. break;
  5323. case Tr.EOF:
  5324. ys(e, t)
  5325. }
  5326. }
  5327. function ps(e, t) {
  5328. e._reconstructActiveFormattingElements(), e._insertCharacters(t)
  5329. }
  5330. function ds(e, t) {
  5331. e._reconstructActiveFormattingElements(), e._insertCharacters(t), e.framesetOk = !1
  5332. }
  5333. function ms(e, t) {
  5334. e._reconstructActiveFormattingElements(), e._appendElement(t, Mr.HTML), e.framesetOk = !1, t.ackSelfClosing = !0
  5335. }
  5336. function _s(e) {
  5337. return null != (e = Ar(e, Pr.TYPE)) && e.toLowerCase() === Gi
  5338. }
  5339. function Es(e, t) {
  5340. e._switchToTextParsing(t, zr.RAWTEXT)
  5341. }
  5342. function Ts(e, t) {
  5343. e._reconstructActiveFormattingElements(), e._insertElement(t, Mr.HTML)
  5344. }
  5345. function As(e, t) {
  5346. switch (t.tagID) {
  5347. case Ur.I:
  5348. case Ur.S:
  5349. case Ur.B:
  5350. case Ur.U:
  5351. case Ur.EM:
  5352. case Ur.TT:
  5353. case Ur.BIG:
  5354. case Ur.CODE:
  5355. case Ur.FONT:
  5356. case Ur.SMALL:
  5357. case Ur.STRIKE:
  5358. case Ur.STRONG:
  5359. !function (e, t) {
  5360. e._reconstructActiveFormattingElements(), e._insertElement(t, Mr.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t)
  5361. }(e, t);
  5362. break;
  5363. case Ur.A:
  5364. !function (e, t) {
  5365. var n = e.activeFormattingElements.getElementEntryInScopeWithTagName(Fr.A);
  5366. n && (ts(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, Mr.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t)
  5367. }(e, t);
  5368. break;
  5369. case Ur.H1:
  5370. case Ur.H2:
  5371. case Ur.H3:
  5372. case Ur.H4:
  5373. case Ur.H5:
  5374. case Ur.H6:
  5375. !function (e, t) {
  5376. e.openElements.hasInButtonScope(Ur.P) && e._closePElement(), Wr(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, Mr.HTML)
  5377. }(e, t);
  5378. break;
  5379. case Ur.P:
  5380. case Ur.DL:
  5381. case Ur.OL:
  5382. case Ur.UL:
  5383. case Ur.DIV:
  5384. case Ur.DIR:
  5385. case Ur.NAV:
  5386. case Ur.MAIN:
  5387. case Ur.MENU:
  5388. case Ur.ASIDE:
  5389. case Ur.CENTER:
  5390. case Ur.FIGURE:
  5391. case Ur.FOOTER:
  5392. case Ur.HEADER:
  5393. case Ur.HGROUP:
  5394. case Ur.DIALOG:
  5395. case Ur.DETAILS:
  5396. case Ur.ADDRESS:
  5397. case Ur.ARTICLE:
  5398. case Ur.SECTION:
  5399. case Ur.SUMMARY:
  5400. case Ur.FIELDSET:
  5401. case Ur.BLOCKQUOTE:
  5402. case Ur.FIGCAPTION:
  5403. !function (e, t) {
  5404. e.openElements.hasInButtonScope(Ur.P) && e._closePElement(), e._insertElement(t, Mr.HTML)
  5405. }(e, t);
  5406. break;
  5407. case Ur.LI:
  5408. case Ur.DD:
  5409. case Ur.DT:
  5410. !function (e, t) {
  5411. e.framesetOk = !1;
  5412. var n = t.tagID;
  5413. for (let t = e.openElements.stackTop; 0 <= t; t--) {
  5414. var r = e.openElements.tagIDs[t];
  5415. if (n === Ur.LI && r === Ur.LI || (n === Ur.DD || n === Ur.DT) && (r === Ur.DD || r === Ur.DT)) {
  5416. e.openElements.generateImpliedEndTagsWithExclusion(r), e.openElements.popUntilTagNamePopped(r);
  5417. break
  5418. }
  5419. if (r !== Ur.ADDRESS && r !== Ur.DIV && r !== Ur.P && e._isSpecialElement(e.openElements.items[t], r)) break
  5420. }
  5421. e.openElements.hasInButtonScope(Ur.P) && e._closePElement(), e._insertElement(t, Mr.HTML)
  5422. }(e, t);
  5423. break;
  5424. case Ur.BR:
  5425. case Ur.IMG:
  5426. case Ur.WBR:
  5427. case Ur.AREA:
  5428. case Ur.EMBED:
  5429. case Ur.KEYGEN:
  5430. ms(e, t);
  5431. break;
  5432. case Ur.HR:
  5433. !function (e, t) {
  5434. e.openElements.hasInButtonScope(Ur.P) && e._closePElement(), e._appendElement(t, Mr.HTML), e.framesetOk = !1, t.ackSelfClosing = !0
  5435. }(e, t);
  5436. break;
  5437. case Ur.RB:
  5438. case Ur.RTC:
  5439. !function (e, t) {
  5440. e.openElements.hasInScope(Ur.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, Mr.HTML)
  5441. }(e, t);
  5442. break;
  5443. case Ur.RT:
  5444. case Ur.RP:
  5445. !function (e, t) {
  5446. e.openElements.hasInScope(Ur.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(Ur.RTC), e._insertElement(t, Mr.HTML)
  5447. }(e, t);
  5448. break;
  5449. case Ur.PRE:
  5450. case Ur.LISTING:
  5451. !function (e, t) {
  5452. e.openElements.hasInButtonScope(Ur.P) && e._closePElement(), e._insertElement(t, Mr.HTML), e.skipNextNewLine = !0, e.framesetOk = !1
  5453. }(e, t);
  5454. break;
  5455. case Ur.XMP:
  5456. !function (e, t) {
  5457. e.openElements.hasInButtonScope(Ur.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, zr.RAWTEXT)
  5458. }(e, t);
  5459. break;
  5460. case Ur.SVG:
  5461. !function (e, t) {
  5462. e._reconstructActiveFormattingElements(), Fi(t), Ui(t), t.selfClosing ? e._appendElement(t, Mr.SVG) : e._insertElement(t, Mr.SVG), t.ackSelfClosing = !0
  5463. }(e, t);
  5464. break;
  5465. case Ur.HTML:
  5466. !function (e, t) {
  5467. 0 === e.openElements.tmplCount && e.treeAdapter.adoptAttributes(e.openElements.items[0], t.attrs)
  5468. }(e, t);
  5469. break;
  5470. case Ur.BASE:
  5471. case Ur.LINK:
  5472. case Ur.META:
  5473. case Ur.STYLE:
  5474. case Ur.TITLE:
  5475. case Ur.SCRIPT:
  5476. case Ur.BGSOUND:
  5477. case Ur.BASEFONT:
  5478. case Ur.TEMPLATE:
  5479. os(e, t);
  5480. break;
  5481. case Ur.BODY:
  5482. !function (e, t) {
  5483. var n = e.openElements.tryPeekProperlyNestedBodyElement();
  5484. n && 0 === e.openElements.tmplCount && (e.framesetOk = !1, e.treeAdapter.adoptAttributes(n, t.attrs))
  5485. }(e, t);
  5486. break;
  5487. case Ur.FORM:
  5488. !function (e, t) {
  5489. var n = 0 < e.openElements.tmplCount;
  5490. e.formElement && !n || (e.openElements.hasInButtonScope(Ur.P) && e._closePElement(), e._insertElement(t, Mr.HTML), n) || (e.formElement = e.openElements.current)
  5491. }(e, t);
  5492. break;
  5493. case Ur.NOBR:
  5494. !function (e, t) {
  5495. e._reconstructActiveFormattingElements(), e.openElements.hasInScope(Ur.NOBR) && (ts(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, Mr.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t)
  5496. }(e, t);
  5497. break;
  5498. case Ur.MATH:
  5499. !function (e, t) {
  5500. e._reconstructActiveFormattingElements(), Bi(t), Ui(t), t.selfClosing ? e._appendElement(t, Mr.MATHML) : e._insertElement(t, Mr.MATHML), t.ackSelfClosing = !0
  5501. }(e, t);
  5502. break;
  5503. case Ur.TABLE:
  5504. !function (e, t) {
  5505. e.treeAdapter.getDocumentMode(e.document) !== Br.QUIRKS && e.openElements.hasInButtonScope(Ur.P) && e._closePElement(), e._insertElement(t, Mr.HTML), e.framesetOk = !1, e.insertionMode = Yi.IN_TABLE
  5506. }(e, t);
  5507. break;
  5508. case Ur.INPUT:
  5509. !function (e, t) {
  5510. e._reconstructActiveFormattingElements(), e._appendElement(t, Mr.HTML), _s(t) || (e.framesetOk = !1), t.ackSelfClosing = !0
  5511. }(e, t);
  5512. break;
  5513. case Ur.PARAM:
  5514. case Ur.TRACK:
  5515. case Ur.SOURCE:
  5516. !function (e, t) {
  5517. e._appendElement(t, Mr.HTML), t.ackSelfClosing = !0
  5518. }(e, t);
  5519. break;
  5520. case Ur.IMAGE:
  5521. !function (e, t) {
  5522. t.tagName = Fr.IMG, t.tagID = Ur.IMG, ms(e, t)
  5523. }(e, t);
  5524. break;
  5525. case Ur.BUTTON:
  5526. !function (e, t) {
  5527. e.openElements.hasInScope(Ur.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(Ur.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, Mr.HTML), e.framesetOk = !1
  5528. }(e, t);
  5529. break;
  5530. case Ur.APPLET:
  5531. case Ur.OBJECT:
  5532. case Ur.MARQUEE:
  5533. !function (e, t) {
  5534. e._reconstructActiveFormattingElements(), e._insertElement(t, Mr.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1
  5535. }(e, t);
  5536. break;
  5537. case Ur.IFRAME:
  5538. !function (e, t) {
  5539. e.framesetOk = !1, e._switchToTextParsing(t, zr.RAWTEXT)
  5540. }(e, t);
  5541. break;
  5542. case Ur.SELECT:
  5543. !function (e, t) {
  5544. e._reconstructActiveFormattingElements(), e._insertElement(t, Mr.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === Yi.IN_TABLE || e.insertionMode === Yi.IN_CAPTION || e.insertionMode === Yi.IN_TABLE_BODY || e.insertionMode === Yi.IN_ROW || e.insertionMode === Yi.IN_CELL ? Yi.IN_SELECT_IN_TABLE : Yi.IN_SELECT
  5545. }(e, t);
  5546. break;
  5547. case Ur.OPTION:
  5548. case Ur.OPTGROUP:
  5549. !function (e, t) {
  5550. e.openElements.currentTagId === Ur.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, Mr.HTML)
  5551. }(e, t);
  5552. break;
  5553. case Ur.NOEMBED:
  5554. Es(e, t);
  5555. break;
  5556. case Ur.FRAMESET:
  5557. !function (e, t) {
  5558. var n = e.openElements.tryPeekProperlyNestedBodyElement();
  5559. e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, Mr.HTML), e.insertionMode = Yi.IN_FRAMESET)
  5560. }(e, t);
  5561. break;
  5562. case Ur.TEXTAREA:
  5563. !function (e, t) {
  5564. e._insertElement(t, Mr.HTML), e.skipNextNewLine = !0, e.tokenizer.state = zr.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = Yi.TEXT
  5565. }(e, t);
  5566. break;
  5567. case Ur.NOSCRIPT:
  5568. (e.options.scriptingEnabled ? Es : Ts)(e, t);
  5569. break;
  5570. case Ur.PLAINTEXT:
  5571. !function (e, t) {
  5572. e.openElements.hasInButtonScope(Ur.P) && e._closePElement(), e._insertElement(t, Mr.HTML), e.tokenizer.state = zr.PLAINTEXT
  5573. }(e, t);
  5574. break;
  5575. case Ur.COL:
  5576. case Ur.TH:
  5577. case Ur.TD:
  5578. case Ur.TR:
  5579. case Ur.HEAD:
  5580. case Ur.FRAME:
  5581. case Ur.TBODY:
  5582. case Ur.TFOOT:
  5583. case Ur.THEAD:
  5584. case Ur.CAPTION:
  5585. case Ur.COLGROUP:
  5586. break;
  5587. default:
  5588. Ts(e, t)
  5589. }
  5590. }
  5591. function gs(e, t) {
  5592. var n = t.tagName, r = t.tagID;
  5593. for (let t = e.openElements.stackTop; 0 < t; t--) {
  5594. var i = e.openElements.items[t], s = e.openElements.tagIDs[t];
  5595. if (r === s && (r !== Ur.UNKNOWN || e.treeAdapter.getTagName(i) === n)) {
  5596. e.openElements.generateImpliedEndTagsWithExclusion(r), e.openElements.stackTop >= t && e.openElements.shortenToLength(t);
  5597. break
  5598. }
  5599. if (e._isSpecialElement(i, s)) break
  5600. }
  5601. }
  5602. function vs(e, t) {
  5603. switch (t.tagID) {
  5604. case Ur.A:
  5605. case Ur.B:
  5606. case Ur.I:
  5607. case Ur.S:
  5608. case Ur.U:
  5609. case Ur.EM:
  5610. case Ur.TT:
  5611. case Ur.BIG:
  5612. case Ur.CODE:
  5613. case Ur.FONT:
  5614. case Ur.NOBR:
  5615. case Ur.SMALL:
  5616. case Ur.STRIKE:
  5617. case Ur.STRONG:
  5618. ts(e, t);
  5619. break;
  5620. case Ur.P:
  5621. !function (e) {
  5622. e.openElements.hasInButtonScope(Ur.P) || e._insertFakeElement(Fr.P, Ur.P), e._closePElement()
  5623. }(e);
  5624. break;
  5625. case Ur.DL:
  5626. case Ur.UL:
  5627. case Ur.OL:
  5628. case Ur.DIR:
  5629. case Ur.DIV:
  5630. case Ur.NAV:
  5631. case Ur.PRE:
  5632. case Ur.MAIN:
  5633. case Ur.MENU:
  5634. case Ur.ASIDE:
  5635. case Ur.BUTTON:
  5636. case Ur.CENTER:
  5637. case Ur.FIGURE:
  5638. case Ur.FOOTER:
  5639. case Ur.HEADER:
  5640. case Ur.HGROUP:
  5641. case Ur.DIALOG:
  5642. case Ur.ADDRESS:
  5643. case Ur.ARTICLE:
  5644. case Ur.DETAILS:
  5645. case Ur.SECTION:
  5646. case Ur.SUMMARY:
  5647. case Ur.LISTING:
  5648. case Ur.FIELDSET:
  5649. case Ur.BLOCKQUOTE:
  5650. case Ur.FIGCAPTION:
  5651. !function (e, t) {
  5652. t = t.tagID, e.openElements.hasInScope(t) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(t))
  5653. }(e, t);
  5654. break;
  5655. case Ur.LI:
  5656. !function (e) {
  5657. e.openElements.hasInListItemScope(Ur.LI) && (e.openElements.generateImpliedEndTagsWithExclusion(Ur.LI), e.openElements.popUntilTagNamePopped(Ur.LI))
  5658. }(e);
  5659. break;
  5660. case Ur.DD:
  5661. case Ur.DT:
  5662. !function (e, t) {
  5663. t = t.tagID, e.openElements.hasInScope(t) && (e.openElements.generateImpliedEndTagsWithExclusion(t), e.openElements.popUntilTagNamePopped(t))
  5664. }(e, t);
  5665. break;
  5666. case Ur.H1:
  5667. case Ur.H2:
  5668. case Ur.H3:
  5669. case Ur.H4:
  5670. case Ur.H5:
  5671. case Ur.H6:
  5672. !function (e) {
  5673. e.openElements.hasNumberedHeaderInScope() && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilNumberedHeaderPopped())
  5674. }(e);
  5675. break;
  5676. case Ur.BR:
  5677. !function (e) {
  5678. e._reconstructActiveFormattingElements(), e._insertFakeElement(Fr.BR, Ur.BR), e.openElements.pop(), e.framesetOk = !1
  5679. }(e);
  5680. break;
  5681. case Ur.BODY:
  5682. !function (e, t) {
  5683. var n;
  5684. e.openElements.hasInScope(Ur.BODY) && (e.insertionMode = Yi.AFTER_BODY, e.options.sourceCodeLocationInfo) && ((n = e.openElements.tryPeekProperlyNestedBodyElement()) && e._setEndLocation(n, t))
  5685. }(e, t);
  5686. break;
  5687. case Ur.HTML:
  5688. !function (e, t) {
  5689. e.openElements.hasInScope(Ur.BODY) && (e.insertionMode = Yi.AFTER_BODY, Hs(e, t))
  5690. }(e, t);
  5691. break;
  5692. case Ur.FORM:
  5693. !function (e) {
  5694. var t = 0 < e.openElements.tmplCount, n = e.formElement;
  5695. t || (e.formElement = null), (n || t) && e.openElements.hasInScope(Ur.FORM) && (e.openElements.generateImpliedEndTags(), t ? e.openElements.popUntilTagNamePopped(Ur.FORM) : n && e.openElements.remove(n))
  5696. }(e);
  5697. break;
  5698. case Ur.APPLET:
  5699. case Ur.OBJECT:
  5700. case Ur.MARQUEE:
  5701. !function (e, t) {
  5702. t = t.tagID, e.openElements.hasInScope(t) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(t), e.activeFormattingElements.clearToLastMarker())
  5703. }(e, t);
  5704. break;
  5705. case Ur.TEMPLATE:
  5706. cs(e, t);
  5707. break;
  5708. default:
  5709. gs(e, t)
  5710. }
  5711. }
  5712. function ys(e, t) {
  5713. (0 < e.tmplInsertionModeStack.length ? Us : rs)(e, t)
  5714. }
  5715. function Ss(e, t) {
  5716. if (Wi.has(e.openElements.currentTagId)) switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = Yi.IN_TABLE_TEXT, t.type) {
  5717. case Tr.CHARACTER:
  5718. Os(e, t);
  5719. break;
  5720. case Tr.WHITESPACE_CHARACTER:
  5721. Is(e, t)
  5722. } else bs(e, t)
  5723. }
  5724. function Cs(e, t) {
  5725. switch (t.tagID) {
  5726. case Ur.TD:
  5727. case Ur.TH:
  5728. case Ur.TR:
  5729. !function (e, t) {
  5730. e.openElements.clearBackToTableContext(), e._insertFakeElement(Fr.TBODY, Ur.TBODY), e.insertionMode = Yi.IN_TABLE_BODY, ws(e, t)
  5731. }(e, t);
  5732. break;
  5733. case Ur.STYLE:
  5734. case Ur.SCRIPT:
  5735. case Ur.TEMPLATE:
  5736. os(e, t);
  5737. break;
  5738. case Ur.COL:
  5739. !function (e, t) {
  5740. e.openElements.clearBackToTableContext(), e._insertFakeElement(Fr.COLGROUP, Ur.COLGROUP), e.insertionMode = Yi.IN_COLUMN_GROUP, Ds(e, t)
  5741. }(e, t);
  5742. break;
  5743. case Ur.FORM:
  5744. !function (e, t) {
  5745. e.formElement || 0 !== e.openElements.tmplCount || (e._insertElement(t, Mr.HTML), e.formElement = e.openElements.current, e.openElements.pop())
  5746. }(e, t);
  5747. break;
  5748. case Ur.TABLE:
  5749. !function (e, t) {
  5750. e.openElements.hasInTableScope(Ur.TABLE) && (e.openElements.popUntilTagNamePopped(Ur.TABLE), e._resetInsertionMode(), e._processStartTag(t))
  5751. }(e, t);
  5752. break;
  5753. case Ur.TBODY:
  5754. case Ur.TFOOT:
  5755. case Ur.THEAD:
  5756. !function (e, t) {
  5757. e.openElements.clearBackToTableContext(), e._insertElement(t, Mr.HTML), e.insertionMode = Yi.IN_TABLE_BODY
  5758. }(e, t);
  5759. break;
  5760. case Ur.INPUT:
  5761. !function (e, t) {
  5762. _s(t) ? e._appendElement(t, Mr.HTML) : bs(e, t), t.ackSelfClosing = !0
  5763. }(e, t);
  5764. break;
  5765. case Ur.CAPTION:
  5766. !function (e, t) {
  5767. e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, Mr.HTML), e.insertionMode = Yi.IN_CAPTION
  5768. }(e, t);
  5769. break;
  5770. case Ur.COLGROUP:
  5771. !function (e, t) {
  5772. e.openElements.clearBackToTableContext(), e._insertElement(t, Mr.HTML), e.insertionMode = Yi.IN_COLUMN_GROUP
  5773. }(e, t);
  5774. break;
  5775. default:
  5776. bs(e, t)
  5777. }
  5778. }
  5779. function Ns(e, t) {
  5780. switch (t.tagID) {
  5781. case Ur.TABLE:
  5782. e.openElements.hasInTableScope(Ur.TABLE) && (e.openElements.popUntilTagNamePopped(Ur.TABLE), e._resetInsertionMode());
  5783. break;
  5784. case Ur.TEMPLATE:
  5785. cs(e, t);
  5786. break;
  5787. case Ur.BODY:
  5788. case Ur.CAPTION:
  5789. case Ur.COL:
  5790. case Ur.COLGROUP:
  5791. case Ur.HTML:
  5792. case Ur.TBODY:
  5793. case Ur.TD:
  5794. case Ur.TFOOT:
  5795. case Ur.TH:
  5796. case Ur.THEAD:
  5797. case Ur.TR:
  5798. break;
  5799. default:
  5800. bs(e, t)
  5801. }
  5802. }
  5803. function bs(e, t) {
  5804. var n = e.fosterParentingEnabled;
  5805. e.fosterParentingEnabled = !0, fs(e, t), e.fosterParentingEnabled = n
  5806. }
  5807. function Is(e, t) {
  5808. e.pendingCharacterTokens.push(t)
  5809. }
  5810. function Os(e, t) {
  5811. e.pendingCharacterTokens.push(t), e.hasNonWhitespacePendingCharacterToken = !0
  5812. }
  5813. function ks(e, t) {
  5814. let n = 0;
  5815. if (e.hasNonWhitespacePendingCharacterToken) for (; n < e.pendingCharacterTokens.length; n++) bs(e, e.pendingCharacterTokens[n]); else for (; n < e.pendingCharacterTokens.length; n++) e._insertCharacters(e.pendingCharacterTokens[n]);
  5816. e.insertionMode = e.originalInsertionMode, e._processToken(t)
  5817. }
  5818. const Ls = new Set([Ur.CAPTION, Ur.COL, Ur.COLGROUP, Ur.TBODY, Ur.TD, Ur.TFOOT, Ur.TH, Ur.THEAD, Ur.TR]);
  5819. function Ds(e, t) {
  5820. switch (t.tagID) {
  5821. case Ur.HTML:
  5822. As(e, t);
  5823. break;
  5824. case Ur.COL:
  5825. e._appendElement(t, Mr.HTML), t.ackSelfClosing = !0;
  5826. break;
  5827. case Ur.TEMPLATE:
  5828. os(e, t);
  5829. break;
  5830. default:
  5831. Rs(e, t)
  5832. }
  5833. }
  5834. function Rs(e, t) {
  5835. e.openElements.currentTagId === Ur.COLGROUP && (e.openElements.pop(), e.insertionMode = Yi.IN_TABLE, e._processToken(t))
  5836. }
  5837. function ws(e, t) {
  5838. switch (t.tagID) {
  5839. case Ur.TR:
  5840. e.openElements.clearBackToTableBodyContext(), e._insertElement(t, Mr.HTML), e.insertionMode = Yi.IN_ROW;
  5841. break;
  5842. case Ur.TH:
  5843. case Ur.TD:
  5844. e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(Fr.TR, Ur.TR), e.insertionMode = Yi.IN_ROW, Ms(e, t);
  5845. break;
  5846. case Ur.CAPTION:
  5847. case Ur.COL:
  5848. case Ur.COLGROUP:
  5849. case Ur.TBODY:
  5850. case Ur.TFOOT:
  5851. case Ur.THEAD:
  5852. e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = Yi.IN_TABLE, Cs(e, t));
  5853. break;
  5854. default:
  5855. Cs(e, t)
  5856. }
  5857. }
  5858. function xs(e, t) {
  5859. var n = t.tagID;
  5860. switch (t.tagID) {
  5861. case Ur.TBODY:
  5862. case Ur.TFOOT:
  5863. case Ur.THEAD:
  5864. e.openElements.hasInTableScope(n) && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = Yi.IN_TABLE);
  5865. break;
  5866. case Ur.TABLE:
  5867. e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = Yi.IN_TABLE, Ns(e, t));
  5868. break;
  5869. case Ur.BODY:
  5870. case Ur.CAPTION:
  5871. case Ur.COL:
  5872. case Ur.COLGROUP:
  5873. case Ur.HTML:
  5874. case Ur.TD:
  5875. case Ur.TH:
  5876. case Ur.TR:
  5877. break;
  5878. default:
  5879. Ns(e, t)
  5880. }
  5881. }
  5882. function Ms(e, t) {
  5883. switch (t.tagID) {
  5884. case Ur.TH:
  5885. case Ur.TD:
  5886. e.openElements.clearBackToTableRowContext(), e._insertElement(t, Mr.HTML), e.insertionMode = Yi.IN_CELL, e.activeFormattingElements.insertMarker();
  5887. break;
  5888. case Ur.CAPTION:
  5889. case Ur.COL:
  5890. case Ur.COLGROUP:
  5891. case Ur.TBODY:
  5892. case Ur.TFOOT:
  5893. case Ur.THEAD:
  5894. case Ur.TR:
  5895. e.openElements.hasInTableScope(Ur.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = Yi.IN_TABLE_BODY, ws(e, t));
  5896. break;
  5897. default:
  5898. Cs(e, t)
  5899. }
  5900. }
  5901. function Ps(e, t) {
  5902. switch (t.tagID) {
  5903. case Ur.TR:
  5904. e.openElements.hasInTableScope(Ur.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = Yi.IN_TABLE_BODY);
  5905. break;
  5906. case Ur.TABLE:
  5907. e.openElements.hasInTableScope(Ur.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = Yi.IN_TABLE_BODY, xs(e, t));
  5908. break;
  5909. case Ur.TBODY:
  5910. case Ur.TFOOT:
  5911. case Ur.THEAD:
  5912. (e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(Ur.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = Yi.IN_TABLE_BODY, xs(e, t));
  5913. break;
  5914. case Ur.BODY:
  5915. case Ur.CAPTION:
  5916. case Ur.COL:
  5917. case Ur.COLGROUP:
  5918. case Ur.HTML:
  5919. case Ur.TD:
  5920. case Ur.TH:
  5921. break;
  5922. default:
  5923. Ns(e, t)
  5924. }
  5925. }
  5926. function Bs(e, t) {
  5927. switch (t.tagID) {
  5928. case Ur.HTML:
  5929. As(e, t);
  5930. break;
  5931. case Ur.OPTION:
  5932. e.openElements.currentTagId === Ur.OPTION && e.openElements.pop(), e._insertElement(t, Mr.HTML);
  5933. break;
  5934. case Ur.OPTGROUP:
  5935. e.openElements.currentTagId === Ur.OPTION && e.openElements.pop(), e.openElements.currentTagId === Ur.OPTGROUP && e.openElements.pop(), e._insertElement(t, Mr.HTML);
  5936. break;
  5937. case Ur.INPUT:
  5938. case Ur.KEYGEN:
  5939. case Ur.TEXTAREA:
  5940. case Ur.SELECT:
  5941. e.openElements.hasInSelectScope(Ur.SELECT) && (e.openElements.popUntilTagNamePopped(Ur.SELECT), e._resetInsertionMode(), t.tagID !== Ur.SELECT) && e._processStartTag(t);
  5942. break;
  5943. case Ur.SCRIPT:
  5944. case Ur.TEMPLATE:
  5945. os(e, t)
  5946. }
  5947. }
  5948. function Fs(e, t) {
  5949. switch (t.tagID) {
  5950. case Ur.OPTGROUP:
  5951. 0 < e.openElements.stackTop && e.openElements.currentTagId === Ur.OPTION && e.openElements.tagIDs[e.openElements.stackTop - 1] === Ur.OPTGROUP && e.openElements.pop(), e.openElements.currentTagId === Ur.OPTGROUP && e.openElements.pop();
  5952. break;
  5953. case Ur.OPTION:
  5954. e.openElements.currentTagId === Ur.OPTION && e.openElements.pop();
  5955. break;
  5956. case Ur.SELECT:
  5957. e.openElements.hasInSelectScope(Ur.SELECT) && (e.openElements.popUntilTagNamePopped(Ur.SELECT), e._resetInsertionMode());
  5958. break;
  5959. case Ur.TEMPLATE:
  5960. cs(e, t)
  5961. }
  5962. }
  5963. function Us(e, t) {
  5964. 0 < e.openElements.tmplCount ? (e.openElements.popUntilTagNamePopped(Ur.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : rs(e, t)
  5965. }
  5966. function Hs(e, t) {
  5967. var n, r;
  5968. t.tagID === Ur.HTML ? (e.fragmentContext || (e.insertionMode = Yi.AFTER_AFTER_BODY), e.options.sourceCodeLocationInfo && e.openElements.tagIDs[0] === Ur.HTML && (e._setEndLocation(e.openElements.items[0], t), !(r = e.openElements.items[1]) || null != (n = e.treeAdapter.getNodeSourceCodeLocation(r)) && n.endTag || e._setEndLocation(r, t))) : Gs(e, t)
  5969. }
  5970. function Gs(e, t) {
  5971. e.insertionMode = Yi.IN_BODY, fs(e, t)
  5972. }
  5973. function js(e, t) {
  5974. e.insertionMode = Yi.IN_BODY, fs(e, t)
  5975. }
  5976. function qs(e) {
  5977. for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== Mr.HTML && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current);) e.openElements.pop()
  5978. }
  5979. var Ys = Sr(function (e, t) {
  5980. Object.defineProperty(t, "__esModule", {value: !0}), t.escapeText = t.escapeAttribute = t.escapeUTF8 = t.escape = t.encodeXML = t.getCodePoint = t.xmlReplacer = void 0, t.xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
  5981. var n = new Map([[34, "&quot;"], [38, "&amp;"], [39, "&apos;"], [60, "&lt;"], [62, "&gt;"]]);
  5982. function r(e) {
  5983. for (var i = "", s = 0; null !== (r = t.xmlReplacer.exec(e));) var r = r.index, o = e.charCodeAt(r), c = n.get(o), s = void 0 !== c ? (i += e.substring(s, r) + c, r + 1) : (i += "".concat(e.substring(s, r), "&#x").concat((0, t.getCodePoint)(e, r).toString(16), ";"), t.xmlReplacer.lastIndex += Number(55296 == (64512 & o)));
  5984. return i + e.substr(s)
  5985. }
  5986. function i(e, t) {
  5987. return function (n) {
  5988. for (var r, i = 0, s = ""; r = e.exec(n);) i !== r.index && (s += n.substring(i, r.index)), s += t.get(r[0].charCodeAt(0)), i = r.index + 1;
  5989. return s + n.substring(i)
  5990. }
  5991. }
  5992. t.getCodePoint = null != String.prototype.codePointAt ? function (e, t) {
  5993. return e.codePointAt(t)
  5994. } : function (e, t) {
  5995. return 55296 == (64512 & e.charCodeAt(t)) ? 1024 * (e.charCodeAt(t) - 55296) + e.charCodeAt(t + 1) - 56320 + 65536 : e.charCodeAt(t)
  5996. }, t.encodeXML = r, t.escape = r, t.escapeUTF8 = i(/[&<>'"]/g, n), t.escapeAttribute = i(/["&\u00A0]/g, new Map([[34, "&quot;"], [38, "&amp;"], [160, "&nbsp;"]])), t.escapeText = i(/[&<>\u00A0]/g, new Map([[38, "&amp;"], [60, "&lt;"], [62, "&gt;"], [160, "&nbsp;"]]))
  5997. }), Ks = (yr(Ys), Ys.escapeText), Ws = Ys.escapeAttribute;
  5998. Ys.escapeUTF8, Ys.escape, Ys.encodeXML, Ys.getCodePoint, Ys.xmlReplacer;
  5999. const Vs = new Set([Fr.AREA, Fr.BASE, Fr.BASEFONT, Fr.BGSOUND, Fr.BR, Fr.COL, Fr.EMBED, Fr.FRAME, Fr.HR, Fr.IMG, Fr.INPUT, Fr.KEYGEN, Fr.LINK, Fr.META, Fr.PARAM, Fr.SOURCE, Fr.TRACK, Fr.WBR]),
  6000. $s = {treeAdapter: gi, scriptingEnabled: !0};
  6001. function Qs(e, t) {
  6002. return zs(e, {...$s, ...t})
  6003. }
  6004. function zs(e, t) {
  6005. return t.treeAdapter.isElementNode(e) ? function (e, t) {
  6006. var n = t.treeAdapter.getTagName(e);
  6007. return `<${n}${function (e, {treeAdapter: t}) {
  6008. let n = "";
  6009. for (const r of t.getAttrList(e)) {
  6010. if (n += " ", r.namespace) switch (r.namespace) {
  6011. case Mr.XML:
  6012. n += "xml:" + r.name;
  6013. break;
  6014. case Mr.XMLNS:
  6015. "xmlns" !== r.name && (n += "xmlns:"), n += r.name;
  6016. break;
  6017. case Mr.XLINK:
  6018. n += "xlink:" + r.name;
  6019. break;
  6020. default:
  6021. n += r.prefix + ":" + r.name
  6022. } else n += r.name;
  6023. n += `="${Ws(r.value)}"`
  6024. }
  6025. return n
  6026. }(e, t)}>` + (function (e, t) {
  6027. return t.treeAdapter.isElementNode(e) && t.treeAdapter.getNamespaceURI(e) === Mr.HTML && Vs.has(t.treeAdapter.getTagName(e))
  6028. }(e, t) ? "" : function (e, t) {
  6029. let n = "";
  6030. var e = t.treeAdapter.isElementNode(e) && t.treeAdapter.getTagName(e) === Fr.TEMPLATE && t.treeAdapter.getNamespaceURI(e) === Mr.HTML ? t.treeAdapter.getTemplateContent(e) : e,
  6031. i = t.treeAdapter.getChildNodes(e);
  6032. if (i) for (const e of i) n += zs(e, t);
  6033. return n
  6034. }(e, t) + `</${n}>`)
  6035. }(e, t) : t.treeAdapter.isTextNode(e) ? function (e, t) {
  6036. var n = t.treeAdapter, r = n.getTextNodeContent(e),
  6037. s = (e = n.getParentNode(e)) && n.isElementNode(e) && n.getTagName(e);
  6038. return s && n.getNamespaceURI(e) === Mr.HTML && (n = s, e = t.scriptingEnabled, Vr.has(n) || e && n === Fr.NOSCRIPT) ? r : Ks(r)
  6039. }(e, t) : t.treeAdapter.isCommentNode(e) ? function (e, {treeAdapter: t}) {
  6040. return `<!--${t.getCommentNodeContent(e)}-->`
  6041. }(e, t) : t.treeAdapter.isDocumentTypeNode(e) ? function (e, {treeAdapter: t}) {
  6042. return `<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`
  6043. }(e, t) : ""
  6044. }
  6045. function Xs(e) {
  6046. return new _(e)
  6047. }
  6048. function Zs(e) {
  6049. var t = e.includes('"') ? "'" : '"';
  6050. return t + e + t
  6051. }
  6052. const Js = {
  6053. isCommentNode: b,
  6054. isElementNode: S,
  6055. isTextNode: N,
  6056. createDocument() {
  6057. var e = new v([]);
  6058. return e["x-mode"] = Br.NO_QUIRKS, e
  6059. },
  6060. createDocumentFragment: () => new v([]),
  6061. createElement(e, t, n) {
  6062. var r = Object.create(null), i = Object.create(null), s = Object.create(null);
  6063. for (let e = 0; e < n.length; e++) {
  6064. const t = n[e].name;
  6065. r[t] = n[e].value, i[t] = n[e].namespace, s[t] = n[e].prefix
  6066. }
  6067. return (e = new y(e, r, [])).namespace = t, e["x-attribsNamespace"] = i, e["x-attribsPrefix"] = s, e
  6068. },
  6069. createCommentNode: e => new E(e),
  6070. appendChild(e, t) {
  6071. var n = e.children[e.children.length - 1];
  6072. n && ((n.next = t).prev = n), e.children.push(t), t.parent = e
  6073. },
  6074. insertBefore(e, t, n) {
  6075. var r = e.children.indexOf(n), i = n.prev;
  6076. i && ((i.next = t).prev = i), (n.prev = t).next = n, e.children.splice(r, 0, t), t.parent = e
  6077. },
  6078. setTemplateContent(e, t) {
  6079. Js.appendChild(e, t)
  6080. },
  6081. getTemplateContent: e => e.children[0],
  6082. setDocumentType(e, t, n, r) {
  6083. var i = function (e, t, n) {
  6084. let r = "!DOCTYPE ";
  6085. return e && (r += e), t ? r += " PUBLIC " + Zs(t) : n && (r += " SYSTEM"), n && (r += " " + Zs(n)), r
  6086. }(t, n, r);
  6087. let s = e.children.find(e => I(e) && "!doctype" === e.name);
  6088. s ? s.data = null != i ? i : null : (s = new T("!doctype", i), Js.appendChild(e, s)), s["x-name"] = null != t ? t : void 0, s["x-publicId"] = null != n ? n : void 0, s["x-systemId"] = null != r ? r : void 0
  6089. },
  6090. setDocumentMode(e, t) {
  6091. e["x-mode"] = t
  6092. },
  6093. getDocumentMode: e => e["x-mode"],
  6094. detachNode(e) {
  6095. var t, n, r;
  6096. e.parent && (t = e.parent.children.indexOf(e), {
  6097. prev: n,
  6098. next: r
  6099. } = e, e.prev = null, e.next = null, n && (n.next = r), r && (r.prev = n), e.parent.children.splice(t, 1), e.parent = null)
  6100. },
  6101. insertText(e, t) {
  6102. var n = e.children[e.children.length - 1];
  6103. n && N(n) ? n.data += t : Js.appendChild(e, Xs(t))
  6104. },
  6105. insertTextBefore(e, t, n) {
  6106. var r = e.children[e.children.indexOf(n) - 1];
  6107. r && N(r) ? r.data += t : Js.insertBefore(e, Xs(t), n)
  6108. },
  6109. adoptAttributes(e, t) {
  6110. for (let n = 0; n < t.length; n++) {
  6111. var r = t[n].name;
  6112. void 0 === e.attribs[r] && (e.attribs[r] = t[n].value, e["x-attribsNamespace"][r] = t[n].namespace, e["x-attribsPrefix"][r] = t[n].prefix)
  6113. }
  6114. },
  6115. getFirstChild: e => e.children[0],
  6116. getChildNodes: e => e.children,
  6117. getParentNode: e => e.parent,
  6118. getAttrList: e => e.attributes,
  6119. getTagName: e => e.name,
  6120. getNamespaceURI: e => e.namespace,
  6121. getTextNodeContent: e => e.data,
  6122. getCommentNodeContent: e => e.data,
  6123. getDocumentTypeNodeName(e) {
  6124. return null != (e = e["x-name"]) ? e : ""
  6125. },
  6126. getDocumentTypeNodePublicId(e) {
  6127. return null != (e = e["x-publicId"]) ? e : ""
  6128. },
  6129. getDocumentTypeNodeSystemId(e) {
  6130. return null != (e = e["x-systemId"]) ? e : ""
  6131. },
  6132. isDocumentTypeNode: e => I(e) && "!doctype" === e.name,
  6133. setNodeSourceCodeLocation(e, t) {
  6134. t && (e.startIndex = t.startOffset, e.endIndex = t.endOffset), e.sourceCodeLocation = t
  6135. },
  6136. getNodeSourceCodeLocation: e => e.sourceCodeLocation,
  6137. updateNodeSourceCodeLocation(e, t) {
  6138. null != t.endOffset && (e.endIndex = t.endOffset), e.sourceCodeLocation = {...e.sourceCodeLocation, ...t}
  6139. }
  6140. };
  6141. var ea = function (e, t, n) {
  6142. if (n || 2 === arguments.length) for (var r, i = 0, s = t.length; i < s; i++) !r && i in t || ((r = r || Array.prototype.slice.call(t, 0, i))[i] = t[i]);
  6143. return e.concat(r || Array.prototype.slice.call(t))
  6144. };
  6145. function ta(e, t, n, r) {
  6146. return t = {
  6147. scriptingEnabled: "boolean" != typeof t.scriptingEnabled || t.scriptingEnabled,
  6148. treeAdapter: Js,
  6149. sourceCodeLocationInfo: t.sourceCodeLocationInfo
  6150. }, n ? function (e, t) {
  6151. return $i.parse(e, t)
  6152. }(e, t) : function (e, t, n) {
  6153. return "string" == typeof e && (n = t, t = e, e = null), (e = $i.getFragmentParser(e, n)).tokenizer.write(t, !0), e.getFragment()
  6154. }(r, e, t)
  6155. }
  6156. var na, ra, ia, sa = {treeAdapter: Js};
  6157. function aa(e) {
  6158. return e === na.Space || e === na.NewLine || e === na.Tab || e === na.FormFeed || e === na.CarriageReturn
  6159. }
  6160. function oa(e) {
  6161. return e === na.Slash || e === na.Gt || aa(e)
  6162. }
  6163. function ca(e) {
  6164. return e >= na.Zero && e <= na.Nine
  6165. }
  6166. !function (e) {
  6167. e[e.Tab = 9] = "Tab", e[e.NewLine = 10] = "NewLine", e[e.FormFeed = 12] = "FormFeed", e[e.CarriageReturn = 13] = "CarriageReturn", e[e.Space = 32] = "Space", e[e.ExclamationMark = 33] = "ExclamationMark", e[e.Number = 35] = "Number", e[e.Amp = 38] = "Amp", e[e.SingleQuote = 39] = "SingleQuote", e[e.DoubleQuote = 34] = "DoubleQuote", e[e.Dash = 45] = "Dash", e[e.Slash = 47] = "Slash", e[e.Zero = 48] = "Zero", e[e.Nine = 57] = "Nine", e[e.Semi = 59] = "Semi", e[e.Lt = 60] = "Lt", e[e.Eq = 61] = "Eq", e[e.Gt = 62] = "Gt", e[e.Questionmark = 63] = "Questionmark", e[e.UpperA = 65] = "UpperA", e[e.LowerA = 97] = "LowerA", e[e.UpperF = 70] = "UpperF", e[e.LowerF = 102] = "LowerF", e[e.UpperZ = 90] = "UpperZ", e[e.LowerZ = 122] = "LowerZ", e[e.LowerX = 120] = "LowerX", e[e.OpeningSquareBracket = 91] = "OpeningSquareBracket"
  6168. }(na = na || {}), function (e) {
  6169. e[e.Text = 1] = "Text", e[e.BeforeTagName = 2] = "BeforeTagName", e[e.InTagName = 3] = "InTagName", e[e.InSelfClosingTag = 4] = "InSelfClosingTag", e[e.BeforeClosingTagName = 5] = "BeforeClosingTagName", e[e.InClosingTagName = 6] = "InClosingTagName", e[e.AfterClosingTagName = 7] = "AfterClosingTagName", e[e.BeforeAttributeName = 8] = "BeforeAttributeName", e[e.InAttributeName = 9] = "InAttributeName", e[e.AfterAttributeName = 10] = "AfterAttributeName", e[e.BeforeAttributeValue = 11] = "BeforeAttributeValue", e[e.InAttributeValueDq = 12] = "InAttributeValueDq", e[e.InAttributeValueSq = 13] = "InAttributeValueSq", e[e.InAttributeValueNq = 14] = "InAttributeValueNq", e[e.BeforeDeclaration = 15] = "BeforeDeclaration", e[e.InDeclaration = 16] = "InDeclaration", e[e.InProcessingInstruction = 17] = "InProcessingInstruction", e[e.BeforeComment = 18] = "BeforeComment", e[e.CDATASequence = 19] = "CDATASequence", e[e.InSpecialComment = 20] = "InSpecialComment", e[e.InCommentLike = 21] = "InCommentLike", e[e.BeforeSpecialS = 22] = "BeforeSpecialS", e[e.SpecialStartSequence = 23] = "SpecialStartSequence", e[e.InSpecialTag = 24] = "InSpecialTag", e[e.BeforeEntity = 25] = "BeforeEntity", e[e.BeforeNumericEntity = 26] = "BeforeNumericEntity", e[e.InNamedEntity = 27] = "InNamedEntity", e[e.InNumericEntity = 28] = "InNumericEntity", e[e.InHexEntity = 29] = "InHexEntity"
  6170. }(ra = ra || {}), function (e) {
  6171. e[e.NoValue = 0] = "NoValue", e[e.Unquoted = 1] = "Unquoted", e[e.Single = 2] = "Single", e[e.Double = 3] = "Double"
  6172. }(ia = ia || {});
  6173. const ua = {
  6174. Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]),
  6175. CdataEnd: new Uint8Array([93, 93, 62]),
  6176. CommentEnd: new Uint8Array([45, 45, 62]),
  6177. ScriptEnd: new Uint8Array([60, 47, 115, 99, 114, 105, 112, 116]),
  6178. StyleEnd: new Uint8Array([60, 47, 115, 116, 121, 108, 101]),
  6179. TitleEnd: new Uint8Array([60, 47, 116, 105, 116, 108, 101])
  6180. };
  6181. class la {
  6182. constructor({xmlMode: e = !1, decodeEntities: t = !0}, n) {
  6183. this.cbs = n, this.state = ra.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = ra.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.trieIndex = 0, this.trieCurrent = 0, this.entityResult = 0, this.entityExcess = 0, this.xmlMode = e, this.decodeEntities = t, this.entityTrie = e ? Hr : Gr
  6184. }
  6185. reset() {
  6186. this.state = ra.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = ra.Text, this.currentSequence = void 0, this.running = !0, this.offset = 0
  6187. }
  6188. write(e) {
  6189. this.offset += this.buffer.length, this.buffer = e, this.parse()
  6190. }
  6191. end() {
  6192. this.running && this.finish()
  6193. }
  6194. pause() {
  6195. this.running = !1
  6196. }
  6197. resume() {
  6198. this.running = !0, this.index < this.buffer.length + this.offset && this.parse()
  6199. }
  6200. getIndex() {
  6201. return this.index
  6202. }
  6203. getSectionStart() {
  6204. return this.sectionStart
  6205. }
  6206. stateText(e) {
  6207. e === na.Lt || !this.decodeEntities && this.fastForwardTo(na.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = ra.BeforeTagName, this.sectionStart = this.index) : this.decodeEntities && e === na.Amp && (this.state = ra.BeforeEntity)
  6208. }
  6209. stateSpecialStartSequence(e) {
  6210. var t = this.sequenceIndex === this.currentSequence.length;
  6211. if (t ? oa(e) : (32 | e) === this.currentSequence[this.sequenceIndex]) {
  6212. if (!t) return void this.sequenceIndex++
  6213. } else this.isSpecial = !1;
  6214. this.sequenceIndex = 0, this.state = ra.InTagName, this.stateInTagName(e)
  6215. }
  6216. stateInSpecialTag(e) {
  6217. if (this.sequenceIndex === this.currentSequence.length) {
  6218. if (e === na.Gt || aa(e)) {
  6219. var t = this.index - this.currentSequence.length;
  6220. if (this.sectionStart < t) {
  6221. const e = this.index;
  6222. this.index = t, this.cbs.ontext(this.sectionStart, t), this.index = e
  6223. }
  6224. return this.isSpecial = !1, this.sectionStart = 2 + t, void this.stateInClosingTagName(e)
  6225. }
  6226. this.sequenceIndex = 0
  6227. }
  6228. (32 | e) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : 0 === this.sequenceIndex ? this.currentSequence === ua.TitleEnd ? this.decodeEntities && e === na.Amp && (this.state = ra.BeforeEntity) : this.fastForwardTo(na.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = Number(e === na.Lt)
  6229. }
  6230. stateCDATASequence(e) {
  6231. e === ua.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === ua.Cdata.length && (this.state = ra.InCommentLike, this.currentSequence = ua.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = ra.InDeclaration, this.stateInDeclaration(e))
  6232. }
  6233. fastForwardTo(e) {
  6234. for (; ++this.index < this.buffer.length + this.offset;) if (this.buffer.charCodeAt(this.index - this.offset) === e) return !0;
  6235. return this.index = this.buffer.length + this.offset - 1, !1
  6236. }
  6237. stateInCommentLike(e) {
  6238. e === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === ua.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index, 2) : this.cbs.oncomment(this.sectionStart, this.index, 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = ra.Text) : 0 === this.sequenceIndex ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : e !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0)
  6239. }
  6240. isTagStartChar(e) {
  6241. return this.xmlMode ? !oa(e) : function (e) {
  6242. return e >= na.LowerA && e <= na.LowerZ || e >= na.UpperA && e <= na.UpperZ
  6243. }(e)
  6244. }
  6245. startSpecial(e, t) {
  6246. this.isSpecial = !0, this.currentSequence = e, this.sequenceIndex = t, this.state = ra.SpecialStartSequence
  6247. }
  6248. stateBeforeTagName(e) {
  6249. var t;
  6250. e === na.ExclamationMark ? (this.state = ra.BeforeDeclaration, this.sectionStart = this.index + 1) : e === na.Questionmark ? (this.state = ra.InProcessingInstruction, this.sectionStart = this.index + 1) : this.isTagStartChar(e) ? (t = 32 | e, this.sectionStart = this.index, this.xmlMode || t !== ua.TitleEnd[2] ? this.state = this.xmlMode || t !== ua.ScriptEnd[2] ? ra.InTagName : ra.BeforeSpecialS : this.startSpecial(ua.TitleEnd, 3)) : e === na.Slash ? this.state = ra.BeforeClosingTagName : (this.state = ra.Text, this.stateText(e))
  6251. }
  6252. stateInTagName(e) {
  6253. oa(e) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = ra.BeforeAttributeName, this.stateBeforeAttributeName(e))
  6254. }
  6255. stateBeforeClosingTagName(e) {
  6256. aa(e) || (e === na.Gt ? this.state = ra.Text : (this.state = this.isTagStartChar(e) ? ra.InClosingTagName : ra.InSpecialComment, this.sectionStart = this.index))
  6257. }
  6258. stateInClosingTagName(e) {
  6259. e !== na.Gt && !aa(e) || (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = ra.AfterClosingTagName, this.stateAfterClosingTagName(e))
  6260. }
  6261. stateAfterClosingTagName(e) {
  6262. e !== na.Gt && !this.fastForwardTo(na.Gt) || (this.state = ra.Text, this.baseState = ra.Text, this.sectionStart = this.index + 1)
  6263. }
  6264. stateBeforeAttributeName(e) {
  6265. e === na.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = ra.InSpecialTag, this.sequenceIndex = 0) : this.state = ra.Text, this.baseState = this.state, this.sectionStart = this.index + 1) : e === na.Slash ? this.state = ra.InSelfClosingTag : aa(e) || (this.state = ra.InAttributeName, this.sectionStart = this.index)
  6266. }
  6267. stateInSelfClosingTag(e) {
  6268. e === na.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = ra.Text, this.baseState = ra.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) : aa(e) || (this.state = ra.BeforeAttributeName, this.stateBeforeAttributeName(e))
  6269. }
  6270. stateInAttributeName(e) {
  6271. e !== na.Eq && !oa(e) || (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = -1, this.state = ra.AfterAttributeName, this.stateAfterAttributeName(e))
  6272. }
  6273. stateAfterAttributeName(e) {
  6274. e === na.Eq ? this.state = ra.BeforeAttributeValue : e === na.Slash || e === na.Gt ? (this.cbs.onattribend(ia.NoValue, this.index), this.state = ra.BeforeAttributeName, this.stateBeforeAttributeName(e)) : aa(e) || (this.cbs.onattribend(ia.NoValue, this.index), this.state = ra.InAttributeName, this.sectionStart = this.index)
  6275. }
  6276. stateBeforeAttributeValue(e) {
  6277. e === na.DoubleQuote ? (this.state = ra.InAttributeValueDq, this.sectionStart = this.index + 1) : e === na.SingleQuote ? (this.state = ra.InAttributeValueSq, this.sectionStart = this.index + 1) : aa(e) || (this.sectionStart = this.index, this.state = ra.InAttributeValueNq, this.stateInAttributeValueNoQuotes(e))
  6278. }
  6279. handleInAttributeValue(e, t) {
  6280. e === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t === na.DoubleQuote ? ia.Double : ia.Single, this.index), this.state = ra.BeforeAttributeName) : this.decodeEntities && e === na.Amp && (this.baseState = this.state, this.state = ra.BeforeEntity)
  6281. }
  6282. stateInAttributeValueDoubleQuotes(e) {
  6283. this.handleInAttributeValue(e, na.DoubleQuote)
  6284. }
  6285. stateInAttributeValueSingleQuotes(e) {
  6286. this.handleInAttributeValue(e, na.SingleQuote)
  6287. }
  6288. stateInAttributeValueNoQuotes(e) {
  6289. aa(e) || e === na.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(ia.Unquoted, this.index), this.state = ra.BeforeAttributeName, this.stateBeforeAttributeName(e)) : this.decodeEntities && e === na.Amp && (this.baseState = this.state, this.state = ra.BeforeEntity)
  6290. }
  6291. stateBeforeDeclaration(e) {
  6292. e === na.OpeningSquareBracket ? (this.state = ra.CDATASequence, this.sequenceIndex = 0) : this.state = e === na.Dash ? ra.BeforeComment : ra.InDeclaration
  6293. }
  6294. stateInDeclaration(e) {
  6295. e !== na.Gt && !this.fastForwardTo(na.Gt) || (this.cbs.ondeclaration(this.sectionStart, this.index), this.state = ra.Text, this.sectionStart = this.index + 1)
  6296. }
  6297. stateInProcessingInstruction(e) {
  6298. e !== na.Gt && !this.fastForwardTo(na.Gt) || (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = ra.Text, this.sectionStart = this.index + 1)
  6299. }
  6300. stateBeforeComment(e) {
  6301. e === na.Dash ? (this.state = ra.InCommentLike, this.currentSequence = ua.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = ra.InDeclaration
  6302. }
  6303. stateInSpecialComment(e) {
  6304. e !== na.Gt && !this.fastForwardTo(na.Gt) || (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = ra.Text, this.sectionStart = this.index + 1)
  6305. }
  6306. stateBeforeSpecialS(e) {
  6307. var t = 32 | e;
  6308. t === ua.ScriptEnd[3] ? this.startSpecial(ua.ScriptEnd, 4) : t === ua.StyleEnd[3] ? this.startSpecial(ua.StyleEnd, 4) : (this.state = ra.InTagName, this.stateInTagName(e))
  6309. }
  6310. stateBeforeEntity(e) {
  6311. this.entityExcess = 1, this.entityResult = 0, e === na.Number ? this.state = ra.BeforeNumericEntity : e !== na.Amp && (this.trieIndex = 0, this.trieCurrent = this.entityTrie[0], this.state = ra.InNamedEntity, this.stateInNamedEntity(e))
  6312. }
  6313. stateInNamedEntity(e) {
  6314. if (this.entityExcess += 1, this.trieIndex = Dr(this.entityTrie, this.trieCurrent, this.trieIndex + 1, e), this.trieIndex < 0) this.emitNamedEntity(), this.index--; else {
  6315. this.trieCurrent = this.entityTrie[this.trieIndex];
  6316. var t = this.trieCurrent & Rr.VALUE_LENGTH;
  6317. if (t) if (t = (t >> 14) - 1, this.allowLegacyEntity() || e === na.Semi) {
  6318. const e = this.index - this.entityExcess + 1;
  6319. e > this.sectionStart && this.emitPartial(this.sectionStart, e), this.entityResult = this.trieIndex, this.trieIndex += t, this.entityExcess = 0, this.sectionStart = this.index + 1, 0 == t && this.emitNamedEntity()
  6320. } else this.trieIndex += t
  6321. }
  6322. }
  6323. emitNamedEntity() {
  6324. if (this.state = this.baseState, 0 !== this.entityResult) switch ((this.entityTrie[this.entityResult] & Rr.VALUE_LENGTH) >> 14) {
  6325. case 1:
  6326. this.emitCodePoint(this.entityTrie[this.entityResult] & ~Rr.VALUE_LENGTH);
  6327. break;
  6328. case 2:
  6329. this.emitCodePoint(this.entityTrie[this.entityResult + 1]);
  6330. break;
  6331. case 3:
  6332. this.emitCodePoint(this.entityTrie[this.entityResult + 1]), this.emitCodePoint(this.entityTrie[this.entityResult + 2])
  6333. }
  6334. }
  6335. stateBeforeNumericEntity(e) {
  6336. (32 | e) === na.LowerX ? (this.entityExcess++, this.state = ra.InHexEntity) : (this.state = ra.InNumericEntity, this.stateInNumericEntity(e))
  6337. }
  6338. emitNumericEntity(e) {
  6339. var t = this.index - this.entityExcess - 1;
  6340. 2 + t + Number(this.state === ra.InHexEntity) !== this.index && (t > this.sectionStart && this.emitPartial(this.sectionStart, t), this.sectionStart = this.index + Number(e), this.emitCodePoint(xr(this.entityResult))), this.state = this.baseState
  6341. }
  6342. stateInNumericEntity(e) {
  6343. e === na.Semi ? this.emitNumericEntity(!0) : ca(e) ? (this.entityResult = 10 * this.entityResult + (e - na.Zero), this.entityExcess++) : (this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state = this.baseState, this.index--)
  6344. }
  6345. stateInHexEntity(e) {
  6346. e === na.Semi ? this.emitNumericEntity(!0) : ca(e) ? (this.entityResult = 16 * this.entityResult + (e - na.Zero), this.entityExcess++) : function (e) {
  6347. return e >= na.UpperA && e <= na.UpperF || e >= na.LowerA && e <= na.LowerF
  6348. }(e) ? (this.entityResult = 16 * this.entityResult + ((32 | e) - na.LowerA + 10), this.entityExcess++) : (this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state = this.baseState, this.index--)
  6349. }
  6350. allowLegacyEntity() {
  6351. return !this.xmlMode && (this.baseState === ra.Text || this.baseState === ra.InSpecialTag)
  6352. }
  6353. cleanup() {
  6354. this.running && this.sectionStart !== this.index && (this.state === ra.Text || this.state === ra.InSpecialTag && 0 === this.sequenceIndex ? (this.cbs.ontext(this.sectionStart, this.index), this.sectionStart = this.index) : this.state !== ra.InAttributeValueDq && this.state !== ra.InAttributeValueSq && this.state !== ra.InAttributeValueNq || (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = this.index))
  6355. }
  6356. shouldContinue() {
  6357. return this.index < this.buffer.length + this.offset && this.running
  6358. }
  6359. parse() {
  6360. for (; this.shouldContinue();) {
  6361. var e = this.buffer.charCodeAt(this.index - this.offset);
  6362. switch (this.state) {
  6363. case ra.Text:
  6364. this.stateText(e);
  6365. break;
  6366. case ra.SpecialStartSequence:
  6367. this.stateSpecialStartSequence(e);
  6368. break;
  6369. case ra.InSpecialTag:
  6370. this.stateInSpecialTag(e);
  6371. break;
  6372. case ra.CDATASequence:
  6373. this.stateCDATASequence(e);
  6374. break;
  6375. case ra.InAttributeValueDq:
  6376. this.stateInAttributeValueDoubleQuotes(e);
  6377. break;
  6378. case ra.InAttributeName:
  6379. this.stateInAttributeName(e);
  6380. break;
  6381. case ra.InCommentLike:
  6382. this.stateInCommentLike(e);
  6383. break;
  6384. case ra.InSpecialComment:
  6385. this.stateInSpecialComment(e);
  6386. break;
  6387. case ra.BeforeAttributeName:
  6388. this.stateBeforeAttributeName(e);
  6389. break;
  6390. case ra.InTagName:
  6391. this.stateInTagName(e);
  6392. break;
  6393. case ra.InClosingTagName:
  6394. this.stateInClosingTagName(e);
  6395. break;
  6396. case ra.BeforeTagName:
  6397. this.stateBeforeTagName(e);
  6398. break;
  6399. case ra.AfterAttributeName:
  6400. this.stateAfterAttributeName(e);
  6401. break;
  6402. case ra.InAttributeValueSq:
  6403. this.stateInAttributeValueSingleQuotes(e);
  6404. break;
  6405. case ra.BeforeAttributeValue:
  6406. this.stateBeforeAttributeValue(e);
  6407. break;
  6408. case ra.BeforeClosingTagName:
  6409. this.stateBeforeClosingTagName(e);
  6410. break;
  6411. case ra.AfterClosingTagName:
  6412. this.stateAfterClosingTagName(e);
  6413. break;
  6414. case ra.BeforeSpecialS:
  6415. this.stateBeforeSpecialS(e);
  6416. break;
  6417. case ra.InAttributeValueNq:
  6418. this.stateInAttributeValueNoQuotes(e);
  6419. break;
  6420. case ra.InSelfClosingTag:
  6421. this.stateInSelfClosingTag(e);
  6422. break;
  6423. case ra.InDeclaration:
  6424. this.stateInDeclaration(e);
  6425. break;
  6426. case ra.BeforeDeclaration:
  6427. this.stateBeforeDeclaration(e);
  6428. break;
  6429. case ra.BeforeComment:
  6430. this.stateBeforeComment(e);
  6431. break;
  6432. case ra.InProcessingInstruction:
  6433. this.stateInProcessingInstruction(e);
  6434. break;
  6435. case ra.InNamedEntity:
  6436. this.stateInNamedEntity(e);
  6437. break;
  6438. case ra.BeforeEntity:
  6439. this.stateBeforeEntity(e);
  6440. break;
  6441. case ra.InHexEntity:
  6442. this.stateInHexEntity(e);
  6443. break;
  6444. case ra.InNumericEntity:
  6445. this.stateInNumericEntity(e);
  6446. break;
  6447. default:
  6448. this.stateBeforeNumericEntity(e)
  6449. }
  6450. this.index++
  6451. }
  6452. this.cleanup()
  6453. }
  6454. finish() {
  6455. this.state === ra.InNamedEntity && this.emitNamedEntity(), this.sectionStart < this.index && this.handleTrailingData(), this.cbs.onend()
  6456. }
  6457. handleTrailingData() {
  6458. var e = this.buffer.length + this.offset;
  6459. this.state === ra.InCommentLike ? this.currentSequence === ua.CdataEnd ? this.cbs.oncdata(this.sectionStart, e, 0) : this.cbs.oncomment(this.sectionStart, e, 0) : this.state === ra.InNumericEntity && this.allowLegacyEntity() || this.state === ra.InHexEntity && this.allowLegacyEntity() ? this.emitNumericEntity(!1) : this.state !== ra.InTagName && this.state !== ra.BeforeAttributeName && this.state !== ra.BeforeAttributeValue && this.state !== ra.AfterAttributeName && this.state !== ra.InAttributeName && this.state !== ra.InAttributeValueSq && this.state !== ra.InAttributeValueDq && this.state !== ra.InAttributeValueNq && this.state !== ra.InClosingTagName && this.cbs.ontext(this.sectionStart, e)
  6460. }
  6461. emitPartial(e, t) {
  6462. this.baseState !== ra.Text && this.baseState !== ra.InSpecialTag ? this.cbs.onattribdata(e, t) : this.cbs.ontext(e, t)
  6463. }
  6464. emitCodePoint(e) {
  6465. this.baseState !== ra.Text && this.baseState !== ra.InSpecialTag ? this.cbs.onattribentity(e) : this.cbs.ontextentity(e)
  6466. }
  6467. }
  6468. const ha = new Set(["input", "option", "optgroup", "select", "button", "datalist", "textarea"]), fa = new Set(["p"]),
  6469. pa = new Set(["thead", "tbody"]), da = new Set(["dd", "dt"]), ma = new Set(["rt", "rp"]),
  6470. _a = new Map([["tr", new Set(["tr", "th", "td"])], ["th", new Set(["th"])], ["td", new Set(["thead", "th", "td"])], ["body", new Set(["head", "link", "script"])], ["li", new Set(["li"])], ["p", fa], ["h1", fa], ["h2", fa], ["h3", fa], ["h4", fa], ["h5", fa], ["h6", fa], ["select", ha], ["input", ha], ["output", ha], ["button", ha], ["datalist", ha], ["textarea", ha], ["option", new Set(["option"])], ["optgroup", new Set(["optgroup", "option"])], ["dd", da], ["dt", da], ["address", fa], ["article", fa], ["aside", fa], ["blockquote", fa], ["details", fa], ["div", fa], ["dl", fa], ["fieldset", fa], ["figcaption", fa], ["figure", fa], ["footer", fa], ["form", fa], ["header", fa], ["hr", fa], ["main", fa], ["nav", fa], ["ol", fa], ["pre", fa], ["section", fa], ["table", fa], ["ul", fa], ["rt", ma], ["rp", ma], ["tbody", pa], ["tfoot", pa]]),
  6471. Ea = new Set(["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "meta", "param", "source", "track", "wbr"]),
  6472. Ta = new Set(["math", "svg"]),
  6473. Aa = new Set(["mi", "mo", "mn", "ms", "mtext", "annotation-xml", "foreignobject", "desc", "title"]), ga = /\s|\//;
  6474. class va {
  6475. constructor(e, t = {}) {
  6476. this.options = t, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.foreignContext = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = null != e ? e : {}, this.lowerCaseTagNames = null != (e = t.lowerCaseTags) ? e : !t.xmlMode, this.lowerCaseAttributeNames = null != (e = t.lowerCaseAttributeNames) ? e : !t.xmlMode, this.tokenizer = new (null != (e = t.Tokenizer) ? e : la)(this.options, this), null != (e = (t = this.cbs).onparserinit) && e.call(t, this)
  6477. }
  6478. ontext(e, t) {
  6479. var n, r, e = this.getSlice(e, t);
  6480. this.endIndex = t - 1, null != (r = (n = this.cbs).ontext) && r.call(n, e), this.startIndex = t
  6481. }
  6482. ontextentity(e) {
  6483. var t, n, r = this.tokenizer.getSectionStart();
  6484. this.endIndex = r - 1, null != (n = (t = this.cbs).ontext) && n.call(t, wr(e)), this.startIndex = r
  6485. }
  6486. isVoidElement(e) {
  6487. return !this.options.xmlMode && Ea.has(e)
  6488. }
  6489. onopentagname(e, t) {
  6490. this.endIndex = t;
  6491. let n = this.getSlice(e, t);
  6492. this.lowerCaseTagNames && (n = n.toLowerCase()), this.emitOpenTag(n)
  6493. }
  6494. emitOpenTag(e) {
  6495. this.openTagStart = this.startIndex, this.tagname = e;
  6496. var t, n, r, i, s = !this.options.xmlMode && _a.get(e);
  6497. if (s) for (; 0 < this.stack.length && s.has(this.stack[this.stack.length - 1]);) {
  6498. const e = this.stack.pop();
  6499. null != (n = (t = this.cbs).onclosetag) && n.call(t, e, !0)
  6500. }
  6501. this.isVoidElement(e) || (this.stack.push(e), Ta.has(e) ? this.foreignContext.push(!0) : Aa.has(e) && this.foreignContext.push(!1)), null != (i = (r = this.cbs).onopentagname) && i.call(r, e), this.cbs.onopentag && (this.attribs = {})
  6502. }
  6503. endOpenTag(e) {
  6504. var t, n;
  6505. this.startIndex = this.openTagStart, this.attribs && (null != (n = (t = this.cbs).onopentag) && n.call(t, this.tagname, this.attribs, e), this.attribs = null), this.cbs.onclosetag && this.isVoidElement(this.tagname) && this.cbs.onclosetag(this.tagname, !0), this.tagname = ""
  6506. }
  6507. onopentagend(e) {
  6508. this.endIndex = e, this.endOpenTag(!1), this.startIndex = e + 1
  6509. }
  6510. onclosetag(e, t) {
  6511. var r;
  6512. this.endIndex = t;
  6513. let c = this.getSlice(e, t);
  6514. if (this.lowerCaseTagNames && (c = c.toLowerCase()), (Ta.has(c) || Aa.has(c)) && this.foreignContext.pop(), this.isVoidElement(c)) this.options.xmlMode || "br" !== c || (null != (r = (e = this.cbs).onopentagname) && r.call(e, "br"), null != (e = (r = this.cbs).onopentag) && e.call(r, "br", {}, !0), null == (r = (e = this.cbs).onclosetag)) || r.call(e, "br", !1); else {
  6515. const e = this.stack.lastIndexOf(c);
  6516. if (-1 !== e) if (this.cbs.onclosetag) {
  6517. let t = this.stack.length - e;
  6518. for (; t--;) this.cbs.onclosetag(this.stack.pop(), 0 !== t)
  6519. } else this.stack.length = e; else this.options.xmlMode || "p" !== c || (this.emitOpenTag("p"), this.closeCurrentTag(!0))
  6520. }
  6521. this.startIndex = t + 1
  6522. }
  6523. onselfclosingtag(e) {
  6524. this.endIndex = e, this.options.xmlMode || this.options.recognizeSelfClosing || this.foreignContext[this.foreignContext.length - 1] ? (this.closeCurrentTag(!1), this.startIndex = e + 1) : this.onopentagend(e)
  6525. }
  6526. closeCurrentTag(e) {
  6527. var t, n, r = this.tagname;
  6528. this.endOpenTag(e), this.stack[this.stack.length - 1] === r && (null != (n = (t = this.cbs).onclosetag) && n.call(t, r, !e), this.stack.pop())
  6529. }
  6530. onattribname(e, t) {
  6531. this.startIndex = e, e = this.getSlice(e, t), this.attribname = this.lowerCaseAttributeNames ? e.toLowerCase() : e
  6532. }
  6533. onattribdata(e, t) {
  6534. this.attribvalue += this.getSlice(e, t)
  6535. }
  6536. onattribentity(e) {
  6537. this.attribvalue += wr(e)
  6538. }
  6539. onattribend(e, t) {
  6540. var r;
  6541. this.endIndex = t, null != (r = (t = this.cbs).onattribute) && r.call(t, this.attribname, this.attribvalue, e === ia.Double ? '"' : e === ia.Single ? "'" : e === ia.NoValue ? void 0 : null), this.attribs && !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname) && (this.attribs[this.attribname] = this.attribvalue), this.attribvalue = ""
  6542. }
  6543. getInstructionName(e) {
  6544. var t = e.search(ga);
  6545. let n = t < 0 ? e : e.substr(0, t);
  6546. return n = this.lowerCaseTagNames ? n.toLowerCase() : n
  6547. }
  6548. ondeclaration(e, t) {
  6549. this.endIndex = t;
  6550. var n = this.getSlice(e, t);
  6551. if (this.cbs.onprocessinginstruction) {
  6552. const e = this.getInstructionName(n);
  6553. this.cbs.onprocessinginstruction("!" + e, "!" + n)
  6554. }
  6555. this.startIndex = t + 1
  6556. }
  6557. onprocessinginstruction(e, t) {
  6558. this.endIndex = t;
  6559. var n = this.getSlice(e, t);
  6560. if (this.cbs.onprocessinginstruction) {
  6561. const e = this.getInstructionName(n);
  6562. this.cbs.onprocessinginstruction("?" + e, "?" + n)
  6563. }
  6564. this.startIndex = t + 1
  6565. }
  6566. oncomment(e, t, n) {
  6567. var i, r;
  6568. this.endIndex = t, null != (i = (r = this.cbs).oncomment) && i.call(r, this.getSlice(e, t - n)), null != (r = (i = this.cbs).oncommentend) && r.call(i), this.startIndex = t + 1
  6569. }
  6570. oncdata(e, t, n) {
  6571. this.endIndex = t;
  6572. var i, e = this.getSlice(e, t - n);
  6573. this.options.xmlMode || this.options.recognizeCDATA ? (null != (i = (n = this.cbs).oncdatastart) && i.call(n), null != (n = (i = this.cbs).ontext) && n.call(i, e), null != (i = (n = this.cbs).oncdataend) && i.call(n)) : (null != (n = (i = this.cbs).oncomment) && n.call(i, `[CDATA[${e}]]`), null != (i = (n = this.cbs).oncommentend) && i.call(n)), this.startIndex = t + 1
  6574. }
  6575. onend() {
  6576. var e, t;
  6577. if (this.cbs.onclosetag) {
  6578. this.endIndex = this.startIndex;
  6579. for (let e = this.stack.length; 0 < e; this.cbs.onclosetag(this.stack[--e], !0)) ;
  6580. }
  6581. null != (t = (e = this.cbs).onend) && t.call(e)
  6582. }
  6583. reset() {
  6584. var t, e;
  6585. null != (t = (e = this.cbs).onreset) && t.call(e), this.tokenizer.reset(), this.tagname = "", this.attribname = "", this.attribs = null, this.stack.length = 0, this.startIndex = 0, this.endIndex = 0, null != (e = (t = this.cbs).onparserinit) && e.call(t, this), this.buffers.length = 0, this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1
  6586. }
  6587. parseComplete(e) {
  6588. this.reset(), this.end(e)
  6589. }
  6590. getSlice(e, t) {
  6591. for (; e - this.bufferOffset >= this.buffers[0].length;) this.shiftBuffer();
  6592. let n = this.buffers[0].slice(e - this.bufferOffset, t - this.bufferOffset);
  6593. for (; t - this.bufferOffset > this.buffers[0].length;) this.shiftBuffer(), n += this.buffers[0].slice(0, t - this.bufferOffset);
  6594. return n
  6595. }
  6596. shiftBuffer() {
  6597. this.bufferOffset += this.buffers[0].length, this.writeIndex--, this.buffers.shift()
  6598. }
  6599. write(e) {
  6600. var t, n;
  6601. this.ended ? null != (n = (t = this.cbs).onerror) && n.call(t, new Error(".write() after done!")) : (this.buffers.push(e), this.tokenizer.running && (this.tokenizer.write(e), this.writeIndex++))
  6602. }
  6603. end(e) {
  6604. var t, n;
  6605. this.ended ? null != (n = (t = this.cbs).onerror) && n.call(t, new Error(".end() after done!")) : (e && this.write(e), this.ended = !0, this.tokenizer.end())
  6606. }
  6607. pause() {
  6608. this.tokenizer.pause()
  6609. }
  6610. resume() {
  6611. for (this.tokenizer.resume(); this.tokenizer.running && this.writeIndex < this.buffers.length;) this.tokenizer.write(this.buffers[this.writeIndex++]);
  6612. this.ended && this.tokenizer.end()
  6613. }
  6614. parseChunk(e) {
  6615. this.write(e)
  6616. }
  6617. done(e) {
  6618. this.end(e)
  6619. }
  6620. }
  6621. var ya,
  6622. Sa = "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {};
  6623. function Ca(e) {
  6624. if (Object.keys) return Object.keys(e);
  6625. var n, t = [];
  6626. for (n in e) t.push(n);
  6627. return t
  6628. }
  6629. function Na(e, t) {
  6630. if (e.forEach) return e.forEach(t);
  6631. for (var n = 0; n < e.length; n++) t(e[n], n, e)
  6632. }
  6633. function ba() {
  6634. try {
  6635. return Object.defineProperty({}, "_", {}), function (e, t, n) {
  6636. Object.defineProperty(e, t, {writable: !0, enumerable: !1, configurable: !0, value: n})
  6637. }
  6638. } catch (e) {
  6639. return function (e, t, n) {
  6640. e[t] = n
  6641. }
  6642. }
  6643. }
  6644. var Ia = ["Array", "Boolean", "Date", "Error", "EvalError", "Function", "Infinity", "JSON", "Math", "NaN", "Number", "Object", "RangeError", "ReferenceError", "RegExp", "String", "SyntaxError", "TypeError", "URIError", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "undefined", "unescape"];
  6645. function Oa() {
  6646. }
  6647. function ka(e) {
  6648. if (!(this instanceof ka)) return new ka(e);
  6649. this.code = e
  6650. }
  6651. function La(e) {
  6652. var t;
  6653. return Da(e) ? e : (t = new Oa, "object" == typeof e && Na(Ca(e), function (n) {
  6654. t[n] = e[n]
  6655. }), t)
  6656. }
  6657. function Da(e) {
  6658. return e instanceof Oa
  6659. }
  6660. Oa.prototype = {}, ka.prototype.runInContext = function (e) {
  6661. var t, n, r, s, i;
  6662. if (e instanceof Oa) return Sa.document ? ((t = Sa.document.createElement("iframe")).style || (t.style = {}), t.style.display = "none", Sa.document.body.appendChild(t), r = (n = t.contentWindow).eval, i = n.execScript, !r && i && (i.call(n, "null"), r = n.eval), Na(Ca(e), function (t) {
  6663. n[t] = e[t]
  6664. }), Na(Ia, function (t) {
  6665. e[t] && (n[t] = e[t])
  6666. }), s = Ca(n), i = r.call(n, this.code), Na(Ca(n), function (t) {
  6667. (t in e || -1 === function (e, t) {
  6668. if (wa) return e.indexOf(t);
  6669. for (var n = 0; n < e.length; ++n) if (e[n] === t) return n;
  6670. return -1
  6671. }(s, t)) && (e[t] = n[t])
  6672. }), Na(Ia, function (t) {
  6673. var s;
  6674. t in e || (s = n[t], (ya = "function" != typeof ya ? ba : ya)(e, t, s))
  6675. }), Sa.document.body.removeChild(t), i) : function (e, t) {
  6676. var n = Ca(Sa);
  6677. return n.push("with (this.__ctx__){return eval(this.__code__)}"), Function.apply(null, n).apply({
  6678. __code__: e,
  6679. __ctx__: t
  6680. })
  6681. }(this.code, e);
  6682. throw new TypeError("needs a 'context' argument.")
  6683. }, ka.prototype.runInThisContext = function () {
  6684. return new Function("code", "return eval(code);").call(Sa, this.code)
  6685. }, ka.prototype.runInNewContext = function (e) {
  6686. var t = La(e), n = this.runInContext(t);
  6687. return e && Na(Ca(t), function (n) {
  6688. e[n] = t[n]
  6689. }), n
  6690. };
  6691. var Ra = {
  6692. runInContext: function (e, t, n) {
  6693. return new ka(e).runInContext(t, n)
  6694. }, isContext: Da, createContext: La, createScript: function (e) {
  6695. return new ka(e)
  6696. }, Script: ka, runInThisContext: function (e, t) {
  6697. return new ka(e).runInThisContext(t)
  6698. }, runInNewContext: function (e, t, n) {
  6699. return new ka(e).runInNewContext(t, n)
  6700. }
  6701. }, wa = [].indexOf;
  6702. const xa = Object.prototype.hasOwnProperty;
  6703. function Ma(e, t) {
  6704. return (e = e.slice()).push(t), e
  6705. }
  6706. function Pa(e, t) {
  6707. return (t = t.slice()).unshift(e), t
  6708. }
  6709. class Ba extends Error {
  6710. constructor(e) {
  6711. super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'), this.avoidNew = !0, this.value = e, this.name = "NewError"
  6712. }
  6713. }
  6714. function Fa(e, t, n, r, i) {
  6715. if (!(this instanceof Fa)) try {
  6716. return new Fa(e, t, n, r, i)
  6717. } catch (e) {
  6718. if (e.avoidNew) return e.value;
  6719. throw e
  6720. }
  6721. "string" == typeof e && (i = r, r = n, n = t, t = e, e = null);
  6722. var s = e && "object" == typeof e;
  6723. if (this.json = (e = e || {}).json || n, this.path = e.path || t, this.resultType = e.resultType || "value", this.flatten = e.flatten || !1, this.wrap = !xa.call(e, "wrap") || e.wrap, this.sandbox = e.sandbox || {}, this.preventEval = e.preventEval || !1, this.parent = e.parent || null, this.parentProperty = e.parentProperty || null, this.callback = e.callback || r || null, this.otherTypeCallback = e.otherTypeCallback || i || function () {
  6724. throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")
  6725. }, !1 !== e.autostart) {
  6726. const r = {path: s ? e.path : t}, i = (s ? "json" in e && (r.json = e.json) : r.json = n, this.evaluate(r));
  6727. if (i && "object" == typeof i) return i;
  6728. throw new Ba(i)
  6729. }
  6730. }
  6731. Fa.prototype.evaluate = function (e, t, n, r) {
  6732. let i = this.parent, s = this.parentProperty, {flatten: a, wrap: o} = this;
  6733. if (this.currResultType = this.resultType, this.currPreventEval = this.preventEval, this.currSandbox = this.sandbox, n = n || this.callback, this.currOtherTypeCallback = r || this.otherTypeCallback, t = t || this.json, (e = e || this.path) && "object" == typeof e && !Array.isArray(e)) {
  6734. if (!e.path && "" !== e.path) throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');
  6735. if (!xa.call(e, "json")) throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');
  6736. t = e.json, a = xa.call(e, "flatten") ? e.flatten : a, this.currResultType = xa.call(e, "resultType") ? e.resultType : this.currResultType, this.currSandbox = xa.call(e, "sandbox") ? e.sandbox : this.currSandbox, o = xa.call(e, "wrap") ? e.wrap : o, this.currPreventEval = xa.call(e, "preventEval") ? e.preventEval : this.currPreventEval, n = xa.call(e, "callback") ? e.callback : n, this.currOtherTypeCallback = xa.call(e, "otherTypeCallback") ? e.otherTypeCallback : this.currOtherTypeCallback, i = xa.call(e, "parent") ? e.parent : i, s = xa.call(e, "parentProperty") ? e.parentProperty : s, e = e.path
  6737. }
  6738. if (i = i || null, s = s || null, ((e = Array.isArray(e) ? Fa.toPathString(e) : e) || "" === e) && t) return "$" === (r = Fa.toPathArray(e))[0] && 1 < r.length && r.shift(), this._hasParentSelector = null, (e = this._trace(r, t, ["$"], i, s, n).filter(function (e) {
  6739. return e && !e.isParentSelector
  6740. })).length ? o || 1 !== e.length || e[0].hasArrExpr ? e.reduce((e, t) => (t = this._getPreferredOutput(t), a && Array.isArray(t) ? e = e.concat(t) : e.push(t), e), []) : this._getPreferredOutput(e[0]) : o ? [] : void 0
  6741. }, Fa.prototype._getPreferredOutput = function (e) {
  6742. const t = this.currResultType;
  6743. switch (t) {
  6744. case"all": {
  6745. const t = Array.isArray(e.path) ? e.path : Fa.toPathArray(e.path);
  6746. return e.pointer = Fa.toPointer(t), e.path = "string" == typeof e.path ? e.path : Fa.toPathString(e.path), e
  6747. }
  6748. case"value":
  6749. case"parent":
  6750. case"parentProperty":
  6751. return e[t];
  6752. case"path":
  6753. return Fa.toPathString(e[t]);
  6754. case"pointer":
  6755. return Fa.toPointer(e.path);
  6756. default:
  6757. throw new TypeError("Unknown result type")
  6758. }
  6759. }, Fa.prototype._handleCallback = function (e, t, n) {
  6760. var r;
  6761. t && (r = this._getPreferredOutput(e), e.path = "string" == typeof e.path ? e.path : Fa.toPathString(e.path), t(r, n, e))
  6762. }, Fa.prototype._trace = function (e, t, n, r, i, s, a, o) {
  6763. let c;
  6764. if (!e.length) return c = {
  6765. path: n,
  6766. value: t,
  6767. parent: r,
  6768. parentProperty: i,
  6769. hasArrExpr: a
  6770. }, this._handleCallback(c, s, "value"), c;
  6771. const u = e[0], l = e.slice(1), h = [];
  6772. function f(e) {
  6773. Array.isArray(e) ? e.forEach(e => {
  6774. h.push(e)
  6775. }) : h.push(e)
  6776. }
  6777. if (("string" != typeof u || o) && t && xa.call(t, u)) f(this._trace(l, t[u], Ma(n, u), t, u, s, a)); else if ("*" === u) this._walk(t, e => {
  6778. f(this._trace(l, t[e], Ma(n, e), t, e, s, !0, !0))
  6779. }); else if (".." === u) f(this._trace(l, t, n, r, i, s, a)), this._walk(t, r => {
  6780. "object" == typeof t[r] && f(this._trace(e.slice(), t[r], Ma(n, r), t, r, s, !0))
  6781. }); else {
  6782. if ("^" === u) return this._hasParentSelector = !0, {path: n.slice(0, -1), expr: l, isParentSelector: !0};
  6783. if ("~" === u) return c = {
  6784. path: Ma(n, u),
  6785. value: i,
  6786. parent: r,
  6787. parentProperty: null
  6788. }, this._handleCallback(c, s, "property"), c;
  6789. if ("$" === u) f(this._trace(l, t, n, null, null, s, a)); else if (/^(-?\d*):(-?\d*):?(\d*)$/u.test(u)) f(this._slice(u, l, t, n, r, i, s)); else if (0 === u.indexOf("?(")) {
  6790. if (this.currPreventEval) throw new Error("Eval [?(expr)] prevented in JSONPath expression.");
  6791. const e = u.replace(/^\?\((.*?)\)$/u, "$1");
  6792. this._walk(t, a => {
  6793. this._eval(e, t[a], a, n, r, i) && f(this._trace(l, t[a], Ma(n, a), t, a, s, !0))
  6794. })
  6795. } else if ("(" === u[0]) {
  6796. if (this.currPreventEval) throw new Error("Eval [(expr)] prevented in JSONPath expression.");
  6797. f(this._trace(Pa(this._eval(u, t, n[n.length - 1], n.slice(0, -1), r, i), l), t, n, r, i, s, a))
  6798. } else if ("@" === u[0]) {
  6799. let e = !1;
  6800. const a = u.slice(1, -2);
  6801. switch (a) {
  6802. case"scalar":
  6803. t && ["object", "function"].includes(typeof t) || (e = !0);
  6804. break;
  6805. case"boolean":
  6806. case"string":
  6807. case"undefined":
  6808. case"function":
  6809. typeof t === a && (e = !0);
  6810. break;
  6811. case"integer":
  6812. !Number.isFinite(t) || t % 1 || (e = !0);
  6813. break;
  6814. case"number":
  6815. Number.isFinite(t) && (e = !0);
  6816. break;
  6817. case"nonFinite":
  6818. "number" != typeof t || Number.isFinite(t) || (e = !0);
  6819. break;
  6820. case"object":
  6821. t && typeof t === a && (e = !0);
  6822. break;
  6823. case"array":
  6824. Array.isArray(t) && (e = !0);
  6825. break;
  6826. case"other":
  6827. e = this.currOtherTypeCallback(t, n, r, i);
  6828. break;
  6829. case"null":
  6830. null === t && (e = !0);
  6831. break;
  6832. default:
  6833. throw new TypeError("Unknown value type " + a)
  6834. }
  6835. if (e) return c = {path: n, value: t, parent: r, parentProperty: i}, this._handleCallback(c, s, "value"), c
  6836. } else if ("`" === u[0] && t && xa.call(t, u.slice(1))) {
  6837. const e = u.slice(1);
  6838. f(this._trace(l, t[e], Ma(n, e), t, e, s, a, !0))
  6839. } else if (u.includes(",")) {
  6840. const e = u.split(",");
  6841. for (const a of e) f(this._trace(Pa(a, l), t, n, r, i, s, !0))
  6842. } else !o && t && xa.call(t, u) && f(this._trace(l, t[u], Ma(n, u), t, u, s, a, !0))
  6843. }
  6844. if (this._hasParentSelector) for (let e = 0; e < h.length; e++) {
  6845. const n = h[e];
  6846. if (n && n.isParentSelector) {
  6847. const o = this._trace(n.expr, t, n.path, r, i, s, a);
  6848. if (Array.isArray(o)) {
  6849. h[e] = o[0];
  6850. const t = o.length;
  6851. for (let n = 1; n < t; n++) e++, h.splice(e, 0, o[n])
  6852. } else h[e] = o
  6853. }
  6854. }
  6855. return h
  6856. }, Fa.prototype._walk = function (e, t) {
  6857. if (Array.isArray(e)) {
  6858. var n = e.length;
  6859. for (let e = 0; e < n; e++) t(e)
  6860. } else e && "object" == typeof e && Object.keys(e).forEach(e => {
  6861. t(e)
  6862. })
  6863. }, Fa.prototype._slice = function (e, t, n, r, i, s, a) {
  6864. if (Array.isArray(n)) {
  6865. var o = n.length, u = (e = e.split(":"))[2] && Number.parseInt(e[2]) || 1,
  6866. l = e[0] && Number.parseInt(e[0]) || 0, h = e[1] && Number.parseInt(e[1]) || o,
  6867. l = l < 0 ? Math.max(0, l + o) : Math.min(o, l), h = h < 0 ? Math.max(0, h + o) : Math.min(o, h);
  6868. const f = [];
  6869. for (let e = l; e < h; e += u) this._trace(Pa(e, t), n, r, i, s, a, !0).forEach(e => {
  6870. f.push(e)
  6871. });
  6872. return f
  6873. }
  6874. }, Fa.prototype._eval = function (e, t, n, r, i, s) {
  6875. if (this.currSandbox._$_parentProperty = s, this.currSandbox._$_parent = i, this.currSandbox._$_property = n, this.currSandbox._$_root = this.json, this.currSandbox._$_v = t, (s = e.includes("@path")) && (this.currSandbox._$_path = Fa.toPathString(r.concat([n]))), !Fa.cache[i = "script:" + e]) {
  6876. let t = e.replace(/@parentProperty/gu, "_$_parentProperty").replace(/@parent/gu, "_$_parent").replace(/@property/gu, "_$_property").replace(/@root/gu, "_$_root").replace(/@([.\s)[])/gu, "_$_v$1");
  6877. s && (t = t.replace(/@path/gu, "_$_path")), Fa.cache[i] = new this.vm.Script(t)
  6878. }
  6879. try {
  6880. return Fa.cache[i].runInNewContext(this.currSandbox)
  6881. } catch (t) {
  6882. throw new Error("jsonPath: " + t.message + ": " + e)
  6883. }
  6884. }, Fa.cache = {}, Fa.toPathString = function (e) {
  6885. var t = e, n = t.length;
  6886. let r = "$";
  6887. for (let e = 1; e < n; e++) /^(~|\^|@.*?\(\))$/u.test(t[e]) || (r += /^[0-9*]+$/u.test(t[e]) ? "[" + t[e] + "]" : "['" + t[e] + "']");
  6888. return r
  6889. }, Fa.toPointer = function (e) {
  6890. var t = e, n = t.length;
  6891. let r = "";
  6892. for (let e = 1; e < n; e++) /^(~|\^|@.*?\(\))$/u.test(t[e]) || (r += "/" + t[e].toString().replace(/~/gu, "~0").replace(/\//gu, "~1"));
  6893. return r
  6894. }, Fa.toPathArray = function (e) {
  6895. var t = Fa.cache;
  6896. if (!t[e]) {
  6897. const n = [],
  6898. r = e.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/gu, ";$&;").replace(/[['](\??\(.*?\))[\]']/gu, function (e, t) {
  6899. return "[#" + (n.push(t) - 1) + "]"
  6900. }).replace(/\[['"]([^'\]]*)['"]\]/gu, function (e, t) {
  6901. return "['" + t.replace(/\./gu, "%@%").replace(/~/gu, "%%@@%%") + "']"
  6902. }).replace(/~/gu, ";~;").replace(/['"]?\.['"]?(?![^[]*\])|\[['"]?/gu, ";").replace(/%@%/gu, ".").replace(/%%@@%%/gu, "~").replace(/(?:;)?(\^+)(?:;)?/gu, function (e, t) {
  6903. return ";" + t.split("").join(";") + ";"
  6904. }).replace(/;;;|;;/gu, ";..;").replace(/;$|'?\]|'$/gu, ""), i = r.split(";").map(function (e) {
  6905. var t = e.match(/#(\d+)/u);
  6906. return t && t[1] ? n[t[1]] : e
  6907. });
  6908. t[e] = i
  6909. }
  6910. return t[e].concat()
  6911. }, Fa.prototype.vm = Ra;
  6912. var Ua = Sr(function (e) {
  6913. var t = Array.prototype, n = Object.prototype,
  6914. r = {"&": "&amp;", '"': "&quot;", "'": "&#39;", "<": "&lt;", ">": "&gt;"}, i = /[&"'<>]/g, s = e.exports = {};
  6915. function a(e, t) {
  6916. return n.hasOwnProperty.call(e, t)
  6917. }
  6918. function o(e) {
  6919. return r[e]
  6920. }
  6921. function c(e, t, n) {
  6922. var r, i, a, s, o;
  6923. return e instanceof Error && (e = (i = e).name + ": " + i.message), Object.setPrototypeOf ? (r = new Error(e), Object.setPrototypeOf(r, c.prototype)) : (r = this, Object.defineProperty(r, "message", {
  6924. enumerable: !1,
  6925. writable: !0,
  6926. value: e
  6927. })), Object.defineProperty(r, "name", {value: "Template render error"}), Error.captureStackTrace && Error.captureStackTrace(r, this.constructor), s = i ? (a = Object.getOwnPropertyDescriptor(i, "stack")) && (a.get || function () {
  6928. return a.value
  6929. }) || function () {
  6930. return i.stack
  6931. } : (o = new Error(e).stack, function () {
  6932. return o
  6933. }), Object.defineProperty(r, "stack", {
  6934. get: function () {
  6935. return s.call(r)
  6936. }
  6937. }), Object.defineProperty(r, "cause", {value: i}), r.lineno = t, r.colno = n, r.firstUpdate = !0, r.Update = function (e) {
  6938. return e = "(" + (e || "unknown path") + ")", this.firstUpdate && (this.lineno && this.colno ? e += " [Line " + this.lineno + ", Column " + this.colno + "]" : this.lineno && (e += " [Line " + this.lineno + "]")), e += "\n ", this.firstUpdate && (e += " "), this.message = e + (this.message || ""), this.firstUpdate = !1, this
  6939. }, r
  6940. }
  6941. function u(e) {
  6942. return "[object Function]" === n.toString.call(e)
  6943. }
  6944. function l(e) {
  6945. return "[object Array]" === n.toString.call(e)
  6946. }
  6947. function h(e) {
  6948. return "[object String]" === n.toString.call(e)
  6949. }
  6950. function f(e) {
  6951. return "[object Object]" === n.toString.call(e)
  6952. }
  6953. function p(e) {
  6954. var t = function (e) {
  6955. return e ? "string" == typeof e ? e.split(".") : [e] : []
  6956. }(e);
  6957. return function (e) {
  6958. for (var n = e, r = 0; r < t.length; r++) {
  6959. var i = t[r];
  6960. if (!a(n, i)) return;
  6961. n = n[i]
  6962. }
  6963. return n
  6964. }
  6965. }
  6966. function d(e) {
  6967. return Array.prototype.slice.call(e)
  6968. }
  6969. function m(e, t, n) {
  6970. return Array.prototype.indexOf.call(e || [], t, n)
  6971. }
  6972. function _(e) {
  6973. var n, t = [];
  6974. for (n in e) a(e, n) && t.push(n);
  6975. return t
  6976. }
  6977. s.hasOwnProp = a, s._prettifyError = function (e, t, n) {
  6978. return (n = n.Update ? n : new s.TemplateError(n)).Update(e), t || (e = n, (n = new Error(e.message)).name = e.name), n
  6979. }, Object.setPrototypeOf ? Object.setPrototypeOf(c.prototype, Error.prototype) : c.prototype = Object.create(Error.prototype, {constructor: {value: c}}), s.TemplateError = c, s.escape = function (e) {
  6980. return e.replace(i, o)
  6981. }, s.isFunction = u, s.isArray = l, s.isString = h, s.isObject = f, s.getAttrGetter = p, s.groupBy = function (e, t, n) {
  6982. for (var r = {}, i = u(t) ? t : p(t), s = 0; s < e.length; s++) {
  6983. var a = e[s], o = i(a, s);
  6984. if (void 0 === o && !0 === n) throw new TypeError('groupby: attribute "' + t + '" resolved to undefined');
  6985. (r[o] || (r[o] = [])).push(a)
  6986. }
  6987. return r
  6988. }, s.toArray = d, s.without = function (e) {
  6989. var t = [];
  6990. if (e) for (var n = e.length, r = d(arguments).slice(1), i = -1; ++i < n;) -1 === m(r, e[i]) && t.push(e[i]);
  6991. return t
  6992. }, s.repeat = function (e, t) {
  6993. for (var n = "", r = 0; r < t; r++) n += e;
  6994. return n
  6995. }, s.each = function (e, n, r) {
  6996. if (null != e) if (t.forEach && e.forEach === t.forEach) e.forEach(n, r); else if (e.length === +e.length) for (var i = 0, s = e.length; i < s; i++) n.call(r, e[i], i, e)
  6997. }, s.map = function (e, n) {
  6998. var r = [];
  6999. if (null != e) {
  7000. if (t.map && e.map === t.map) return e.map(n);
  7001. for (var i = 0; i < e.length; i++) r[r.length] = n(e[i], i);
  7002. e.length === +e.length && (r.length = e.length)
  7003. }
  7004. return r
  7005. }, s.asyncIter = function (e, t, n) {
  7006. var r = -1;
  7007. !function i() {
  7008. ++r < e.length ? t(e[r], r, i, n) : n()
  7009. }()
  7010. }, s.asyncFor = function (e, t, n) {
  7011. var r = _(e || {}), i = r.length, s = -1;
  7012. !function a() {
  7013. var o = r[++s];
  7014. s < i ? t(o, e[o], s, i, a) : n()
  7015. }()
  7016. }, s.indexOf = m, s.keys = _, s._entries = function (e) {
  7017. return _(e).map(function (t) {
  7018. return [t, e[t]]
  7019. })
  7020. }, s._values = function (e) {
  7021. return _(e).map(function (t) {
  7022. return e[t]
  7023. })
  7024. }, s._assign = s.extend = function (e, t) {
  7025. return e = e || {}, _(t).forEach(function (n) {
  7026. e[n] = t[n]
  7027. }), e
  7028. }, s.inOperator = function (e, t) {
  7029. if (l(t) || h(t)) return -1 !== t.indexOf(e);
  7030. if (f(t)) return e in t;
  7031. throw new Error('Cannot use "in" operator to search for "' + e + '" in unexpected types.')
  7032. }
  7033. });
  7034. function Ha() {
  7035. throw new Error("setTimeout has not been defined")
  7036. }
  7037. function Ga() {
  7038. throw new Error("clearTimeout has not been defined")
  7039. }
  7040. var ja = Ha, qa = Ga;
  7041. function Ya(e) {
  7042. if (ja === setTimeout) return setTimeout(e, 0);
  7043. if ((ja === Ha || !ja) && setTimeout) return (ja = setTimeout)(e, 0);
  7044. try {
  7045. return ja(e, 0)
  7046. } catch (t) {
  7047. try {
  7048. return ja.call(null, e, 0)
  7049. } catch (t) {
  7050. return ja.call(this, e, 0)
  7051. }
  7052. }
  7053. }
  7054. "function" == typeof Sa.setTimeout && (ja = setTimeout), "function" == typeof Sa.clearTimeout && (qa = clearTimeout);
  7055. var Ka, Wa = [], Va = !1, $a = -1;
  7056. function Qa() {
  7057. Va && Ka && (Va = !1, Ka.length ? Wa = Ka.concat(Wa) : $a = -1, Wa.length) && za()
  7058. }
  7059. function za() {
  7060. if (!Va) {
  7061. var e = Ya(Qa);
  7062. Va = !0;
  7063. for (var t = Wa.length; t;) {
  7064. for (Ka = Wa, Wa = []; ++$a < t;) Ka && Ka[$a].run();
  7065. $a = -1, t = Wa.length
  7066. }
  7067. Ka = null, Va = !1, function (e) {
  7068. if (qa === clearTimeout) return clearTimeout(e);
  7069. if ((qa === Ga || !qa) && clearTimeout) return (qa = clearTimeout)(e);
  7070. try {
  7071. qa(e)
  7072. } catch (t) {
  7073. try {
  7074. return qa.call(null, e)
  7075. } catch (t) {
  7076. return qa.call(this, e)
  7077. }
  7078. }
  7079. }(e)
  7080. }
  7081. }
  7082. function Xa(e, t) {
  7083. this.fun = e, this.array = t
  7084. }
  7085. function Za() {
  7086. }
  7087. Xa.prototype.run = function () {
  7088. this.fun.apply(null, this.array)
  7089. };
  7090. var Ja = Za, eo = Za, to = Za, no = Za, ro = Za, io = Za, so = Za, ao = Sa.performance || {},
  7091. oo = ao.now || ao.mozNow || ao.msNow || ao.oNow || ao.webkitNow || function () {
  7092. return (new Date).getTime()
  7093. }, co = new Date, uo = {
  7094. nextTick: function (e) {
  7095. var t = new Array(arguments.length - 1);
  7096. if (1 < arguments.length) for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
  7097. Wa.push(new Xa(e, t)), 1 !== Wa.length || Va || Ya(za)
  7098. },
  7099. title: "browser",
  7100. browser: !0,
  7101. env: {},
  7102. argv: [],
  7103. version: "",
  7104. versions: {},
  7105. on: Ja,
  7106. addListener: eo,
  7107. once: to,
  7108. off: no,
  7109. removeListener: ro,
  7110. removeAllListeners: io,
  7111. emit: so,
  7112. binding: function (e) {
  7113. throw new Error("process.binding is not supported")
  7114. },
  7115. cwd: function () {
  7116. return "/"
  7117. },
  7118. chdir: function (e) {
  7119. throw new Error("process.chdir is not supported")
  7120. },
  7121. umask: function () {
  7122. return 0
  7123. },
  7124. hrtime: function (e) {
  7125. var t = .001 * oo.call(ao), n = Math.floor(t), t = Math.floor(t % 1 * 1e9);
  7126. return e && (n -= e[0], (t -= e[1]) < 0) && (n--, t += 1e9), [n, t]
  7127. },
  7128. platform: "browser",
  7129. release: {},
  7130. config: {},
  7131. uptime: function () {
  7132. return (new Date - co) / 1e3
  7133. }
  7134. };
  7135. function lo() {
  7136. }
  7137. function ho() {
  7138. ho.init.call(this)
  7139. }
  7140. function fo(e) {
  7141. return void 0 === e._maxListeners ? ho.defaultMaxListeners : e._maxListeners
  7142. }
  7143. function po(e, t, n, r) {
  7144. var s, a;
  7145. if ("function" != typeof n) throw new TypeError('"listener" argument must be a function');
  7146. return (s = e._events) ? (s.newListener && (e.emit("newListener", t, n.listener || n), s = e._events), a = s[t]) : (s = e._events = new lo, e._eventsCount = 0), a ? ("function" == typeof a ? a = s[t] = r ? [n, a] : [a, n] : r ? a.unshift(n) : a.push(n), !a.warned && (r = fo(e)) && 0 < r && a.length > r && (a.warned = !0, (r = new Error("Possible EventEmitter memory leak detected. " + a.length + " " + t + " listeners added. Use emitter.setMaxListeners() to increase limit")).name = "MaxListenersExceededWarning", r.emitter = e, r.type = t, r.count = a.length, function (e) {
  7147. "function" == typeof console.warn ? console.warn(e) : console.log(e)
  7148. }(r))) : (a = s[t] = n, ++e._eventsCount), e
  7149. }
  7150. function mo(e, t, n) {
  7151. var r = !1;
  7152. function i() {
  7153. e.removeListener(t, i), r || (r = !0, n.apply(e, arguments))
  7154. }
  7155. return i.listener = n, i
  7156. }
  7157. function _o(e) {
  7158. var t = this._events;
  7159. if (t) {
  7160. if ("function" == typeof (t = t[e])) return 1;
  7161. if (t) return t.length
  7162. }
  7163. return 0
  7164. }
  7165. function Eo(e, t) {
  7166. for (var n = new Array(t); t--;) n[t] = e[t];
  7167. return n
  7168. }
  7169. function To() {
  7170. var e;
  7171. ho.call(this), this.__emitError = (e = this, function (t) {
  7172. e.emit("error", t)
  7173. })
  7174. }
  7175. function Ao() {
  7176. return new To
  7177. }
  7178. lo.prototype = Object.create(null), (ho.EventEmitter = ho).usingDomains = !1, ho.prototype.domain = void 0, ho.prototype._events = void 0, ho.prototype._maxListeners = void 0, ho.defaultMaxListeners = 10, ho.init = function () {
  7179. this.domain = null, ho.usingDomains && (void 0).active, this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new lo, this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0
  7180. }, ho.prototype.setMaxListeners = function (e) {
  7181. if ("number" != typeof e || e < 0 || isNaN(e)) throw new TypeError('"n" argument must be a positive number');
  7182. return this._maxListeners = e, this
  7183. }, ho.prototype.getMaxListeners = function () {
  7184. return fo(this)
  7185. }, ho.prototype.emit = function (e) {
  7186. var n, r, i, s, a, c = "error" === e;
  7187. if (a = this._events) c = c && null == a.error; else if (!c) return !1;
  7188. if (o = this.domain, c) {
  7189. if (c = arguments[1], o) return (c = c || new Error('Uncaught, unspecified "error" event')).domainEmitter = this, c.domain = o, c.domainThrown = !1, o.emit("error", c), !1;
  7190. if (c instanceof Error) throw c;
  7191. var o = new Error('Uncaught, unspecified "error" event. (' + c + ")");
  7192. throw o.context = c, o
  7193. }
  7194. if (!(n = a[e])) return !1;
  7195. var l = "function" == typeof n;
  7196. switch (r = arguments.length) {
  7197. case 1:
  7198. !function (e, n) {
  7199. if (l) e.call(n); else for (var r = e.length, i = Eo(e, r), s = 0; s < r; ++s) i[s].call(n)
  7200. }(n, this);
  7201. break;
  7202. case 2:
  7203. !function (e, t, n, r) {
  7204. if (t) e.call(n, r); else for (var i = e.length, s = Eo(e, i), a = 0; a < i; ++a) s[a].call(n, r)
  7205. }(n, l, this, arguments[1]);
  7206. break;
  7207. case 3:
  7208. !function (e, t, n, r, i) {
  7209. if (t) e.call(n, r, i); else for (var s = e.length, a = Eo(e, s), o = 0; o < s; ++o) a[o].call(n, r, i)
  7210. }(n, l, this, arguments[1], arguments[2]);
  7211. break;
  7212. case 4:
  7213. !function (e, t, n, r, i, s) {
  7214. if (t) e.call(n, r, i, s); else for (var a = e.length, o = Eo(e, a), c = 0; c < a; ++c) o[c].call(n, r, i, s)
  7215. }(n, l, this, arguments[1], arguments[2], arguments[3]);
  7216. break;
  7217. default:
  7218. for (i = new Array(r - 1), s = 1; s < r; s++) i[s - 1] = arguments[s];
  7219. !function (e, n, r) {
  7220. if (l) e.apply(n, r); else for (var i = e.length, s = Eo(e, i), a = 0; a < i; ++a) s[a].apply(n, r)
  7221. }(n, this, i)
  7222. }
  7223. return !0
  7224. }, ho.prototype.addListener = function (e, t) {
  7225. return po(this, e, t, !1)
  7226. }, ho.prototype.on = ho.prototype.addListener, ho.prototype.prependListener = function (e, t) {
  7227. return po(this, e, t, !0)
  7228. }, ho.prototype.once = function (e, t) {
  7229. if ("function" != typeof t) throw new TypeError('"listener" argument must be a function');
  7230. return this.on(e, mo(this, e, t)), this
  7231. }, ho.prototype.prependOnceListener = function (e, t) {
  7232. if ("function" != typeof t) throw new TypeError('"listener" argument must be a function');
  7233. return this.prependListener(e, mo(this, e, t)), this
  7234. }, ho.prototype.removeListener = function (e, t) {
  7235. var n, r, i, s, a;
  7236. if ("function" != typeof t) throw new TypeError('"listener" argument must be a function');
  7237. if ((r = this._events) && (n = r[e])) if (n === t || n.listener && n.listener === t) 0 == --this._eventsCount ? this._events = new lo : (delete r[e], r.removeListener && this.emit("removeListener", e, n.listener || t)); else if ("function" != typeof n) {
  7238. for (i = -1, s = n.length; 0 < s--;) if (n[s] === t || n[s].listener && n[s].listener === t) {
  7239. a = n[s].listener, i = s;
  7240. break
  7241. }
  7242. if (i < 0) return this;
  7243. if (1 === n.length) {
  7244. if (n[0] = void 0, 0 == --this._eventsCount) return this._events = new lo, this;
  7245. delete r[e]
  7246. } else !function (e, t) {
  7247. for (var n = t, r = n + 1, i = e.length; r < i; n += 1, r += 1) e[n] = e[r];
  7248. e.pop()
  7249. }(n, i);
  7250. r.removeListener && this.emit("removeListener", e, a || t)
  7251. }
  7252. return this
  7253. }, ho.prototype.removeAllListeners = function (e) {
  7254. var t, n;
  7255. if (n = this._events) if (n.removeListener) {
  7256. if (0 === arguments.length) {
  7257. for (var r, i = Object.keys(n), s = 0; s < i.length; ++s) "removeListener" !== (r = i[s]) && this.removeAllListeners(r);
  7258. this.removeAllListeners("removeListener"), this._events = new lo, this._eventsCount = 0
  7259. } else if ("function" == typeof (t = n[e])) this.removeListener(e, t); else if (t) for (; this.removeListener(e, t[t.length - 1]), t[0];) ;
  7260. } else 0 === arguments.length ? (this._events = new lo, this._eventsCount = 0) : n[e] && (0 == --this._eventsCount ? this._events = new lo : delete n[e]);
  7261. return this
  7262. }, ho.prototype.listeners = function (e) {
  7263. var n = this._events;
  7264. return (n = n && n[e]) ? "function" == typeof n ? [n.listener || n] : function (e) {
  7265. for (var t = new Array(e.length), n = 0; n < t.length; ++n) t[n] = e[n].listener || e[n];
  7266. return t
  7267. }(n) : []
  7268. }, ho.listenerCount = function (e, t) {
  7269. return "function" == typeof e.listenerCount ? e.listenerCount(t) : _o.call(e, t)
  7270. }, ho.prototype.listenerCount = _o, ho.prototype.eventNames = function () {
  7271. return 0 < this._eventsCount ? Reflect.ownKeys(this._events) : []
  7272. }, ("function" == typeof Object.create ? function (e, t) {
  7273. e.super_ = t, e.prototype = Object.create(t.prototype, {
  7274. constructor: {
  7275. value: e,
  7276. enumerable: !1,
  7277. writable: !0,
  7278. configurable: !0
  7279. }
  7280. })
  7281. } : function (e, t) {
  7282. function n() {
  7283. }
  7284. e.super_ = t, n.prototype = t.prototype, e.prototype = new n, e.prototype.constructor = e
  7285. })(To, ho), To.prototype.add = function (e) {
  7286. e.on("error", this.__emitError)
  7287. }, To.prototype.remove = function (e) {
  7288. e.removeListener("error", this.__emitError)
  7289. }, To.prototype.bind = function (e) {
  7290. var t = this.__emitError;
  7291. return function () {
  7292. var n = Array.prototype.slice.call(arguments);
  7293. try {
  7294. e.apply(null, n)
  7295. } catch (e) {
  7296. t(e)
  7297. }
  7298. }
  7299. }, To.prototype.intercept = function (e) {
  7300. var t = this.__emitError;
  7301. return function (n) {
  7302. if (n) t(n); else {
  7303. var r = Array.prototype.slice.call(arguments, 1);
  7304. try {
  7305. e.apply(null, r)
  7306. } catch (n) {
  7307. t(n)
  7308. }
  7309. }
  7310. }
  7311. }, To.prototype.run = function (e) {
  7312. var t = this.__emitError;
  7313. try {
  7314. e()
  7315. } catch (e) {
  7316. t(e)
  7317. }
  7318. return this
  7319. }, To.prototype.dispose = function () {
  7320. return this.removeAllListeners(), this
  7321. }, To.prototype.enter = To.prototype.exit = function () {
  7322. return this
  7323. };
  7324. var go, vo = {Domain: To, createDomain: Ao, create: Ao}, yo = "function" == typeof setImmediate, So = Co;
  7325. function Co(e) {
  7326. No.length || (Lo(), bo = !0), No[No.length] = e
  7327. }
  7328. var No = [], bo = !1, Io = 0, Oo = 1024;
  7329. function ko() {
  7330. for (; Io < No.length;) {
  7331. var e = Io;
  7332. if (Io += 1, No[e].call(), Oo < Io) {
  7333. for (var t = 0, n = No.length - Io; t < n; t++) No[t] = No[t + Io];
  7334. No.length -= Io, Io = 0
  7335. }
  7336. }
  7337. No.length = 0, Io = 0, bo = !1
  7338. }
  7339. function Lo() {
  7340. var e = uo.domain;
  7341. e && ((go = go || vo).active = uo.domain = null), bo && yo ? setImmediate(ko) : uo.nextTick(ko), e && (go.active = uo.domain = e)
  7342. }
  7343. Co.requestFlush = Lo;
  7344. var Do = [], Ro = function (e) {
  7345. var t = Do.length ? Do.pop() : new wo;
  7346. t.task = e, t.domain = uo.domain, So(t)
  7347. };
  7348. function wo() {
  7349. this.task = null, this.domain = null
  7350. }
  7351. wo.prototype.call = function () {
  7352. this.domain && this.domain.enter();
  7353. var e = !0;
  7354. try {
  7355. this.task.call(), e = !1, this.domain && this.domain.exit()
  7356. } finally {
  7357. e && So.requestFlush(), this.task = null, this.domain = null, Do.push(this)
  7358. }
  7359. };
  7360. var xo = Sr(function (e) {
  7361. function n() {
  7362. var e = Array.prototype.slice.call(arguments);
  7363. "function" == typeof e[0] && e[0].apply(null, e.splice(1))
  7364. }
  7365. function r(e) {
  7366. "function" == typeof setImmediate ? setImmediate(e) : void 0 !== uo && uo.nextTick ? uo.nextTick(e) : setTimeout(e, 0)
  7367. }
  7368. function s(e, t, s) {
  7369. var c, a = s ? r : n;
  7370. return t = t || function () {
  7371. }, i(e) ? e.length ? void (c = function (e) {
  7372. return function (n) {
  7373. var r, i;
  7374. n ? (t.apply(null, arguments), t = function () {
  7375. }) : (r = Array.prototype.slice.call(arguments, 1), (i = e.next()) ? r.push(c(i)) : r.push(t), a(function () {
  7376. e.apply(null, r)
  7377. }))
  7378. }
  7379. })(function (e) {
  7380. var t = function (n) {
  7381. function r() {
  7382. return e.length && e[n].apply(null, arguments), r.next()
  7383. }
  7384. return r.next = function () {
  7385. return n < e.length - 1 ? t(n + 1) : null
  7386. }, r
  7387. };
  7388. return t(0)
  7389. }(e))() : t() : (s = new Error("First argument to waterfall must be an array of functions"), t(s))
  7390. }
  7391. var t = gr, i = Array.isArray || function (e) {
  7392. return "[object Array]" === Object.prototype.toString.call(e)
  7393. };
  7394. e.exports ? e.exports = s : t.waterfall = s
  7395. }), Mo = " \n\t\r ", Po = "()[]{}%*-+~/#,:|.<>=!", Bo = "string", Fo = "whitespace", Uo = "data", Ho = "block-start",
  7396. Go = "block-end", jo = "variable-start", qo = "variable-end", Yo = "comment", Ko = "left-paren", Wo = "right-paren",
  7397. Vo = "left-bracket", $o = "right-bracket", Qo = "left-curly", zo = "right-curly", Xo = "operator", Zo = "comma",
  7398. Jo = "colon", ec = "tilde", tc = "pipe", nc = "float", rc = "boolean", ic = "none", sc = "symbol", ac = "regex";
  7399. function oc(e, t, n, r) {
  7400. return {type: e, value: t, lineno: n, colno: r}
  7401. }
  7402. var cc = function () {
  7403. function e(e, t) {
  7404. this.str = e, this.index = 0, this.len = e.length, this.lineno = 0, this.colno = 0, this.in_code = !1, e = (t = t || {}).tags || {}, this.tags = {
  7405. BLOCK_START: e.blockStart || "{%",
  7406. BLOCK_END: e.blockEnd || "%}",
  7407. VARIABLE_START: e.variableStart || "{{",
  7408. VARIABLE_END: e.variableEnd || "}}",
  7409. COMMENT_START: e.commentStart || "{#",
  7410. COMMENT_END: e.commentEnd || "#}"
  7411. }, this.trimBlocks = !!t.trimBlocks, this.lstripBlocks = !!t.lstripBlocks
  7412. }
  7413. var t = e.prototype;
  7414. return t.nextToken = function () {
  7415. var t = this.lineno, n = this.colno;
  7416. if (this.in_code) {
  7417. var r = this.current();
  7418. if (this.isFinished()) return null;
  7419. if ('"' === r || "'" === r) return oc(Bo, this._parseString(r), t, n);
  7420. if (e = this._extract(Mo)) return oc(Fo, e, t, n);
  7421. if (e = (e = this._extractString(this.tags.BLOCK_END)) || this._extractString("-" + this.tags.BLOCK_END)) return this.in_code = !1, this.trimBlocks && ("\n" === (r = this.current()) ? this.forward() : "\r" === r && (this.forward(), "\n" === (r = this.current()) ? this.forward() : this.back())), oc(Go, e, t, n);
  7422. if (e = (e = this._extractString(this.tags.VARIABLE_END)) || this._extractString("-" + this.tags.VARIABLE_END)) return this.in_code = !1, oc(qo, e, t, n);
  7423. if ("r" === r && "/" === this.str.charAt(this.index + 1)) {
  7424. this.forwardN(2);
  7425. for (var i = ""; !this.isFinished();) {
  7426. if ("/" === this.current() && "\\" !== this.previous()) {
  7427. this.forward();
  7428. break
  7429. }
  7430. i += this.current(), this.forward()
  7431. }
  7432. for (var s = ["g", "i", "m", "y"], a = ""; !this.isFinished() && -1 !== s.indexOf(this.current());) a += this.current(), this.forward();
  7433. return oc(ac, {body: i, flags: a}, t, n)
  7434. }
  7435. if (-1 !== Po.indexOf(r)) {
  7436. this.forward();
  7437. var o, c = ["==", "===", "!=", "!==", "<=", ">=", "//", "**"], u = r + this.current();
  7438. switch (-1 !== Ua.indexOf(c, u) && (this.forward(), -1 !== Ua.indexOf(c, (r = u) + this.current())) && (r = u + this.current(), this.forward()), r) {
  7439. case"(":
  7440. o = Ko;
  7441. break;
  7442. case")":
  7443. o = Wo;
  7444. break;
  7445. case"[":
  7446. o = Vo;
  7447. break;
  7448. case"]":
  7449. o = $o;
  7450. break;
  7451. case"{":
  7452. o = Qo;
  7453. break;
  7454. case"}":
  7455. o = zo;
  7456. break;
  7457. case",":
  7458. o = Zo;
  7459. break;
  7460. case":":
  7461. o = Jo;
  7462. break;
  7463. case"~":
  7464. o = ec;
  7465. break;
  7466. case"|":
  7467. o = tc;
  7468. break;
  7469. default:
  7470. o = Xo
  7471. }
  7472. return oc(o, r, t, n)
  7473. }
  7474. if ((e = this._extractUntil(Mo + Po)).match(/^[-+]?[0-9]+$/)) return "." === this.current() ? (this.forward(), c = this._extract("0123456789"), oc(nc, e + "." + c, t, n)) : oc("int", e, t, n);
  7475. if (e.match(/^(true|false)$/)) return oc(rc, e, t, n);
  7476. if ("none" === e) return oc(ic, e, t, n);
  7477. if ("null" === e) return oc(ic, e, t, n);
  7478. if (e) return oc(sc, e, t, n);
  7479. throw new Error("Unexpected value while parsing: " + e)
  7480. }
  7481. var h,
  7482. f = this.tags.BLOCK_START.charAt(0) + this.tags.VARIABLE_START.charAt(0) + this.tags.COMMENT_START.charAt(0) + this.tags.COMMENT_END.charAt(0);
  7483. if (this.isFinished()) return null;
  7484. if (e = (e = this._extractString(this.tags.BLOCK_START + "-")) || this._extractString(this.tags.BLOCK_START)) return this.in_code = !0, oc(Ho, e, t, n);
  7485. if (e = (e = this._extractString(this.tags.VARIABLE_START + "-")) || this._extractString(this.tags.VARIABLE_START)) return this.in_code = !0, oc(jo, e, t, n);
  7486. var e = "", p = !1;
  7487. for (this._matches(this.tags.COMMENT_START) && (p = !0, e = this._extractString(this.tags.COMMENT_START)); null !== (h = this._extractUntil(f));) {
  7488. if (e += h, (this._matches(this.tags.BLOCK_START) || this._matches(this.tags.VARIABLE_START) || this._matches(this.tags.COMMENT_START)) && !p) {
  7489. if (this.lstripBlocks && this._matches(this.tags.BLOCK_START) && 0 < this.colno && this.colno <= e.length) {
  7490. var d = e.slice(-this.colno);
  7491. if (/^\s+$/.test(d) && !(e = e.slice(0, -this.colno)).length) return this.nextToken()
  7492. }
  7493. break
  7494. }
  7495. if (this._matches(this.tags.COMMENT_END)) {
  7496. if (!p) throw new Error("unexpected end of comment");
  7497. e += this._extractString(this.tags.COMMENT_END);
  7498. break
  7499. }
  7500. e += this.current(), this.forward()
  7501. }
  7502. if (null === h && p) throw new Error("expected end of comment, got end of file");
  7503. return oc(p ? Yo : Uo, e, t, n)
  7504. }, t._parseString = function (e) {
  7505. this.forward();
  7506. for (var t = ""; !this.isFinished() && this.current() !== e;) {
  7507. var n = this.current();
  7508. if ("\\" === n) switch (this.forward(), this.current()) {
  7509. case"n":
  7510. t += "\n";
  7511. break;
  7512. case"t":
  7513. t += "\t";
  7514. break;
  7515. case"r":
  7516. t += "\r";
  7517. break;
  7518. default:
  7519. t += this.current()
  7520. } else t += n;
  7521. this.forward()
  7522. }
  7523. return this.forward(), t
  7524. }, t._matches = function (e) {
  7525. return this.index + e.length > this.len ? null : this.str.slice(this.index, this.index + e.length) === e
  7526. }, t._extractString = function (e) {
  7527. return this._matches(e) ? (this.forwardN(e.length), e) : null
  7528. }, t._extractUntil = function (e) {
  7529. return this._extractMatching(!0, e || "")
  7530. }, t._extract = function (e) {
  7531. return this._extractMatching(!1, e)
  7532. }, t._extractMatching = function (e, t) {
  7533. if (this.isFinished()) return null;
  7534. var n = t.indexOf(this.current());
  7535. if (e && -1 === n || !e && -1 !== n) {
  7536. var r = this.current();
  7537. this.forward();
  7538. for (var i = t.indexOf(this.current()); (e && -1 === i || !e && -1 !== i) && !this.isFinished();) r += this.current(), this.forward(), i = t.indexOf(this.current());
  7539. return r
  7540. }
  7541. return ""
  7542. }, t._extractRegex = function (e) {
  7543. return (e = this.currentStr().match(e)) ? (this.forwardN(e[0].length), e) : null
  7544. }, t.isFinished = function () {
  7545. return this.index >= this.len
  7546. }, t.forwardN = function (e) {
  7547. for (var t = 0; t < e; t++) this.forward()
  7548. }, t.forward = function () {
  7549. this.index++, "\n" === this.previous() ? (this.lineno++, this.colno = 0) : this.colno++
  7550. }, t.backN = function (e) {
  7551. for (var t = 0; t < e; t++) this.back()
  7552. }, t.back = function () {
  7553. var e;
  7554. this.index--, "\n" === this.current() ? (this.lineno--, e = this.src.lastIndexOf("\n", this.index - 1), this.colno = -1 === e ? this.index : this.index - e) : this.colno--
  7555. }, t.current = function () {
  7556. return this.isFinished() ? "" : this.str.charAt(this.index)
  7557. }, t.currentStr = function () {
  7558. return this.isFinished() ? "" : this.str.substr(this.index)
  7559. }, t.previous = function () {
  7560. return this.str.charAt(this.index - 1)
  7561. }, e
  7562. }(), uc = {
  7563. lex: function (e, t) {
  7564. return new cc(e, t)
  7565. },
  7566. TOKEN_STRING: Bo,
  7567. TOKEN_WHITESPACE: Fo,
  7568. TOKEN_DATA: Uo,
  7569. TOKEN_BLOCK_START: Ho,
  7570. TOKEN_BLOCK_END: Go,
  7571. TOKEN_VARIABLE_START: jo,
  7572. TOKEN_VARIABLE_END: qo,
  7573. TOKEN_COMMENT: Yo,
  7574. TOKEN_LEFT_PAREN: Ko,
  7575. TOKEN_RIGHT_PAREN: Wo,
  7576. TOKEN_LEFT_BRACKET: Vo,
  7577. TOKEN_RIGHT_BRACKET: $o,
  7578. TOKEN_LEFT_CURLY: Qo,
  7579. TOKEN_RIGHT_CURLY: zo,
  7580. TOKEN_OPERATOR: Xo,
  7581. TOKEN_COMMA: Zo,
  7582. TOKEN_COLON: Jo,
  7583. TOKEN_TILDE: ec,
  7584. TOKEN_PIPE: tc,
  7585. TOKEN_INT: "int",
  7586. TOKEN_FLOAT: nc,
  7587. TOKEN_BOOLEAN: rc,
  7588. TOKEN_NONE: ic,
  7589. TOKEN_SYMBOL: sc,
  7590. TOKEN_SPECIAL: "special",
  7591. TOKEN_REGEX: ac
  7592. };
  7593. function lc(e, t) {
  7594. for (var s, n = 0; n < t.length; n++) {
  7595. var r = t[n];
  7596. r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, "symbol" == typeof (s = function (e) {
  7597. if ("object" != typeof e || null === e) return e;
  7598. var n = e[Symbol.toPrimitive];
  7599. if (void 0 === n) return String(e);
  7600. if ("object" != typeof (n = n.call(e, "string"))) return n;
  7601. throw new TypeError("@@toPrimitive must return a primitive value.")
  7602. }(r.key)) ? s : String(s), r)
  7603. }
  7604. }
  7605. function hc(e, t, n) {
  7606. return t && lc(e.prototype, t), n && lc(e, n), Object.defineProperty(e, "prototype", {writable: !1}), e
  7607. }
  7608. function fc(e, t) {
  7609. e.prototype = Object.create(t.prototype), pc(e.prototype.constructor = e, t)
  7610. }
  7611. function pc(e, t) {
  7612. return (pc = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
  7613. return e.__proto__ = t, e
  7614. })(e, t)
  7615. }
  7616. function dc(e, t, n) {
  7617. n = n || {}, Ua.keys(n).forEach(function (t) {
  7618. n[t] = function (e, t) {
  7619. return "function" != typeof e || "function" != typeof t ? t : function () {
  7620. var n = this.parent, r = (this.parent = e, t.apply(this, arguments));
  7621. return this.parent = n, r
  7622. }
  7623. }(e.prototype[t], n[t])
  7624. });
  7625. var r = function (e) {
  7626. function n() {
  7627. return e.apply(this, arguments) || this
  7628. }
  7629. return fc(n, e), hc(n, [{
  7630. key: "typename", get: function () {
  7631. return t
  7632. }
  7633. }]), n
  7634. }(e);
  7635. return Ua._assign(r.prototype, n), r
  7636. }
  7637. var mc = function () {
  7638. function e() {
  7639. this.init.apply(this, arguments)
  7640. }
  7641. return e.prototype.init = function () {
  7642. }, e.extend = function (e, t) {
  7643. return "object" == typeof e && (t = e, e = "anonymous"), dc(this, e, t)
  7644. }, hc(e, [{
  7645. key: "typename", get: function () {
  7646. return this.constructor.name
  7647. }
  7648. }]), e
  7649. }(), _c = function (e) {
  7650. function t() {
  7651. var n;
  7652. return (n = e.call(this) || this).init.apply(n, arguments), n
  7653. }
  7654. return fc(t, e), t.prototype.init = function () {
  7655. }, t.extend = function (e, t) {
  7656. return "object" == typeof e && (t = e, e = "anonymous"), dc(this, e, t)
  7657. }, hc(t, [{
  7658. key: "typename", get: function () {
  7659. return this.constructor.name
  7660. }
  7661. }]), t
  7662. }(ho), Ec = {Obj: mc, EmitterObj: _c};
  7663. function Tc(e, t) {
  7664. for (var s, n = 0; n < t.length; n++) {
  7665. var r = t[n];
  7666. r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, "symbol" == typeof (s = function (e) {
  7667. if ("object" != typeof e || null === e) return e;
  7668. var n = e[Symbol.toPrimitive];
  7669. if (void 0 === n) return String(e);
  7670. if ("object" != typeof (n = n.call(e, "string"))) return n;
  7671. throw new TypeError("@@toPrimitive must return a primitive value.")
  7672. }(r.key)) ? s : String(s), r)
  7673. }
  7674. }
  7675. function Ac(e, t, n) {
  7676. return t && Tc(e.prototype, t), n && Tc(e, n), Object.defineProperty(e, "prototype", {writable: !1}), e
  7677. }
  7678. function gc(e, t) {
  7679. e.prototype = Object.create(t.prototype), vc(e.prototype.constructor = e, t)
  7680. }
  7681. function vc(e, t) {
  7682. return (vc = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
  7683. return e.__proto__ = t, e
  7684. })(e, t)
  7685. }
  7686. function yc(e, t, n) {
  7687. e instanceof t && n.push(e), e instanceof Sc && e.findAll(t, n)
  7688. }
  7689. var Sc = function (e) {
  7690. function t() {
  7691. return e.apply(this, arguments) || this
  7692. }
  7693. gc(t, e);
  7694. var n = t.prototype;
  7695. return n.init = function (e, t) {
  7696. for (var n = arguments, r = this, i = arguments.length, s = new Array(2 < i ? i - 2 : 0), a = 2; a < i; a++) s[a - 2] = arguments[a];
  7697. this.lineno = e, this.colno = t, this.fields.forEach(function (e, t) {
  7698. r[e] = t = void 0 === (t = n[t + 2]) ? null : t
  7699. })
  7700. }, n.findAll = function (e, t) {
  7701. var n = this;
  7702. return t = t || [], this instanceof Nc ? this.children.forEach(function (n) {
  7703. return yc(n, e, t)
  7704. }) : this.fields.forEach(function (r) {
  7705. return yc(n[r], e, t)
  7706. }), t
  7707. }, n.iterFields = function (e) {
  7708. var t = this;
  7709. this.fields.forEach(function (n) {
  7710. e(t[n], n)
  7711. })
  7712. }, t
  7713. }(Ec.Obj), Cc = function (e) {
  7714. function t() {
  7715. return e.apply(this, arguments) || this
  7716. }
  7717. return gc(t, e), Ac(t, [{
  7718. key: "typename", get: function () {
  7719. return "Value"
  7720. }
  7721. }, {
  7722. key: "fields", get: function () {
  7723. return ["value"]
  7724. }
  7725. }]), t
  7726. }(Sc), Nc = function (e) {
  7727. function t() {
  7728. return e.apply(this, arguments) || this
  7729. }
  7730. gc(t, e);
  7731. var n = t.prototype;
  7732. return n.init = function (t, n, r) {
  7733. e.prototype.init.call(this, t, n, r || [])
  7734. }, n.addChild = function (e) {
  7735. this.children.push(e)
  7736. }, Ac(t, [{
  7737. key: "typename", get: function () {
  7738. return "NodeList"
  7739. }
  7740. }, {
  7741. key: "fields", get: function () {
  7742. return ["children"]
  7743. }
  7744. }]), t
  7745. }(Sc), bc = Nc.extend("Root"), Ic = Cc.extend("Literal"), Oc = Cc.extend("Symbol"), kc = Nc.extend("Group"),
  7746. Lc = Nc.extend("Array"), Dc = Sc.extend("Pair", {fields: ["key", "value"]}), Rc = Nc.extend("Dict"),
  7747. wc = Sc.extend("LookupVal", {fields: ["target", "val"]}), xc = Sc.extend("If", {fields: ["cond", "body", "else_"]}),
  7748. Mc = xc.extend("IfAsync"), Pc = Sc.extend("InlineIf", {fields: ["cond", "body", "else_"]}),
  7749. Bc = Sc.extend("For", {fields: ["arr", "name", "body", "else_"]}), Fc = Bc.extend("AsyncEach"),
  7750. Uc = Bc.extend("AsyncAll"), Hc = Sc.extend("Macro", {fields: ["name", "args", "body"]}), Gc = Hc.extend("Caller"),
  7751. jc = Sc.extend("Import", {fields: ["template", "target", "withContext"]}), qc = function (e) {
  7752. function t() {
  7753. return e.apply(this, arguments) || this
  7754. }
  7755. return gc(t, e), t.prototype.init = function (t, n, r, i, s) {
  7756. e.prototype.init.call(this, t, n, r, i || new Nc, s)
  7757. }, Ac(t, [{
  7758. key: "typename", get: function () {
  7759. return "FromImport"
  7760. }
  7761. }, {
  7762. key: "fields", get: function () {
  7763. return ["template", "names", "withContext"]
  7764. }
  7765. }]), t
  7766. }(Sc), Yc = Sc.extend("FunCall", {fields: ["name", "args"]}), Kc = Yc.extend("Filter"),
  7767. Wc = Kc.extend("FilterAsync", {fields: ["name", "args", "symbol"]}), Vc = Rc.extend("KeywordArgs"),
  7768. $c = Sc.extend("Block", {fields: ["name", "body"]}), Qc = Sc.extend("Super", {fields: ["blockName", "symbol"]}),
  7769. zc = Sc.extend("TemplateRef", {fields: ["template"]}).extend("Extends"),
  7770. Xc = Sc.extend("Include", {fields: ["template", "ignoreMissing"]}),
  7771. Zc = Sc.extend("Set", {fields: ["targets", "value"]}),
  7772. Jc = Sc.extend("Switch", {fields: ["expr", "cases", "default"]}),
  7773. eu = Sc.extend("Case", {fields: ["cond", "body"]}), tu = Nc.extend("Output"),
  7774. nu = Sc.extend("Capture", {fields: ["body"]}), ru = Ic.extend("TemplateData"),
  7775. iu = Sc.extend("UnaryOp", {fields: ["target"]}), su = Sc.extend("BinOp", {fields: ["left", "right"]}),
  7776. au = su.extend("In"), ou = su.extend("Is"), cu = su.extend("Or"), uu = su.extend("And"), lu = iu.extend("Not"),
  7777. hu = su.extend("Add"), fu = su.extend("Concat"), pu = su.extend("Sub"), du = su.extend("Mul"),
  7778. mu = su.extend("Div"), _u = su.extend("FloorDiv"), Eu = su.extend("Mod"), Tu = su.extend("Pow"),
  7779. Au = iu.extend("Neg"), gu = iu.extend("Pos"), vu = Sc.extend("Compare", {fields: ["expr", "ops"]}),
  7780. yu = Sc.extend("CompareOperand", {fields: ["expr", "type"]}), Su = Sc.extend("CallExtension", {
  7781. init: function (e, t, n, r) {
  7782. this.parent(), this.extName = e.__name || e, this.prop = t, this.args = n || new Nc, this.contentArgs = r || [], this.autoescape = e.autoescape
  7783. }, fields: ["extName", "prop", "args", "contentArgs"]
  7784. }), Cu = Su.extend("CallExtensionAsync");
  7785. function Nu(e, t, n) {
  7786. var r = e.split("\n");
  7787. r.forEach(function (e, i) {
  7788. e && (n && 0 < i || !n) && process.stdout.write(" ".repeat(t)), i = i === r.length - 1 ? "" : "\n", process.stdout.write(e + i)
  7789. })
  7790. }
  7791. var bu = {
  7792. Node: Sc,
  7793. Root: bc,
  7794. NodeList: Nc,
  7795. Value: Cc,
  7796. Literal: Ic,
  7797. Symbol: Oc,
  7798. Group: kc,
  7799. Array: Lc,
  7800. Pair: Dc,
  7801. Dict: Rc,
  7802. Output: tu,
  7803. Capture: nu,
  7804. TemplateData: ru,
  7805. If: xc,
  7806. IfAsync: Mc,
  7807. InlineIf: Pc,
  7808. For: Bc,
  7809. AsyncEach: Fc,
  7810. AsyncAll: Uc,
  7811. Macro: Hc,
  7812. Caller: Gc,
  7813. Import: jc,
  7814. FromImport: qc,
  7815. FunCall: Yc,
  7816. Filter: Kc,
  7817. FilterAsync: Wc,
  7818. KeywordArgs: Vc,
  7819. Block: $c,
  7820. Super: Qc,
  7821. Extends: zc,
  7822. Include: Xc,
  7823. Set: Zc,
  7824. Switch: Jc,
  7825. Case: eu,
  7826. LookupVal: wc,
  7827. BinOp: su,
  7828. In: au,
  7829. Is: ou,
  7830. Or: cu,
  7831. And: uu,
  7832. Not: lu,
  7833. Add: hu,
  7834. Concat: fu,
  7835. Sub: pu,
  7836. Mul: du,
  7837. Div: mu,
  7838. FloorDiv: _u,
  7839. Mod: Eu,
  7840. Pow: Tu,
  7841. Neg: Au,
  7842. Pos: gu,
  7843. Compare: vu,
  7844. CompareOperand: yu,
  7845. CallExtension: Su,
  7846. CallExtensionAsync: Cu,
  7847. printNodes: function e(t, n) {
  7848. var r, i;
  7849. n = n || 0, Nu(t.typename + ": ", n), t instanceof Nc ? (Nu("\n"), t.children.forEach(function (t) {
  7850. e(t, n + 2)
  7851. })) : t instanceof Su ? (Nu(t.extName + "." + t.prop + "\n"), t.args && e(t.args, n + 2), t.contentArgs && t.contentArgs.forEach(function (t) {
  7852. e(t, n + 2)
  7853. })) : (r = [], i = null, t.iterFields(function (e, t) {
  7854. e instanceof Sc ? r.push([t, e]) : (i = i || {})[t] = e
  7855. }), i ? Nu(JSON.stringify(i, null, 2) + "\n", null, !0) : Nu("\n"), r.forEach(function (t) {
  7856. var r = t[0], t = t[1];
  7857. Nu("[" + r + "] =>", n + 2), e(t, n + 4)
  7858. }))
  7859. }
  7860. };
  7861. function Iu(e, t) {
  7862. return (Iu = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
  7863. return e.__proto__ = t, e
  7864. })(e, t)
  7865. }
  7866. bu.Node, bu.Root, bu.NodeList, bu.Value, bu.Literal, bu.Group, bu.Pair, bu.Dict, bu.Output, bu.Capture, bu.TemplateData, bu.If, bu.IfAsync, bu.InlineIf, bu.For, bu.AsyncEach, bu.AsyncAll, bu.Macro, bu.Caller, bu.Import, bu.FromImport, bu.FunCall, bu.Filter, bu.FilterAsync, bu.KeywordArgs, bu.Block, bu.Super, bu.Extends, bu.Include, bu.Switch, bu.Case, bu.LookupVal, bu.BinOp, bu.In, bu.Is, bu.Or, bu.And, bu.Not, bu.Add, bu.Concat, bu.Sub, bu.Mul, bu.Div, bu.FloorDiv, bu.Mod, bu.Pow, bu.Neg, bu.Pos, bu.Compare, bu.CompareOperand, bu.CallExtension, bu.CallExtensionAsync, bu.printNodes;
  7867. var Ou = function (e) {
  7868. var n;
  7869. function r() {
  7870. return e.apply(this, arguments) || this
  7871. }
  7872. n = e, (t = r).prototype = Object.create(n.prototype), Iu(t.prototype.constructor = t, n);
  7873. var t = r.prototype;
  7874. return t.init = function (e) {
  7875. this.tokens = e, this.peeked = null, this.breakOnBlocks = null, this.dropLeadingWhitespace = !1, this.extensions = []
  7876. }, t.nextToken = function (e) {
  7877. var t;
  7878. if (this.peeked) {
  7879. if (e || this.peeked.type !== uc.TOKEN_WHITESPACE) return t = this.peeked, this.peeked = null, t;
  7880. this.peeked = null
  7881. }
  7882. if (t = this.tokens.nextToken(), !e) for (; t && t.type === uc.TOKEN_WHITESPACE;) t = this.tokens.nextToken();
  7883. return t
  7884. }, t.peekToken = function () {
  7885. return this.peeked = this.peeked || this.nextToken(), this.peeked
  7886. }, t.pushToken = function (e) {
  7887. if (this.peeked) throw new Error("pushToken: can only push one token on between reads");
  7888. this.peeked = e
  7889. }, t.error = function (e, t, n) {
  7890. var r;
  7891. return void 0 !== t && void 0 !== n || (t = (r = this.peekToken() || {}).lineno, n = r.colno), void 0 !== t && (t += 1), void 0 !== n && (n += 1), new Ua.TemplateError(e, t, n)
  7892. }, t.fail = function (e, t, n) {
  7893. throw this.error(e, t, n)
  7894. }, t.skip = function (e) {
  7895. var t = this.nextToken();
  7896. return !(!t || t.type !== e) || (this.pushToken(t), !1)
  7897. }, t.expect = function (e) {
  7898. var t = this.nextToken();
  7899. return t.type !== e && this.fail("expected " + e + ", got " + t.type, t.lineno, t.colno), t
  7900. }, t.skipValue = function (e, t) {
  7901. var n = this.nextToken();
  7902. return !(!n || n.type !== e || n.value !== t) || (this.pushToken(n), !1)
  7903. }, t.skipSymbol = function (e) {
  7904. return this.skipValue(uc.TOKEN_SYMBOL, e)
  7905. }, t.advanceAfterBlockEnd = function (e) {
  7906. var t;
  7907. return e || ((t = this.peekToken()) || this.fail("unexpected end of file"), t.type !== uc.TOKEN_SYMBOL && this.fail("advanceAfterBlockEnd: expected symbol token or explicit name to be passed"), e = this.nextToken().value), (t = this.nextToken()) && t.type === uc.TOKEN_BLOCK_END ? "-" === t.value.charAt(0) && (this.dropLeadingWhitespace = !0) : this.fail("expected block end in " + e + " statement"), t
  7908. }, t.advanceAfterVariableEnd = function () {
  7909. var e = this.nextToken();
  7910. e && e.type === uc.TOKEN_VARIABLE_END ? this.dropLeadingWhitespace = "-" === e.value.charAt(e.value.length - this.tokens.tags.VARIABLE_END.length - 1) : (this.pushToken(e), this.fail("expected variable end"))
  7911. }, t.parseFor = function () {
  7912. var e, t, n = this.peekToken();
  7913. if (this.skipSymbol("for") ? (e = new bu.For(n.lineno, n.colno), t = "endfor") : this.skipSymbol("asyncEach") ? (e = new bu.AsyncEach(n.lineno, n.colno), t = "endeach") : this.skipSymbol("asyncAll") ? (e = new bu.AsyncAll(n.lineno, n.colno), t = "endall") : this.fail("parseFor: expected for{Async}", n.lineno, n.colno), e.name = this.parsePrimary(), e.name instanceof bu.Symbol || this.fail("parseFor: variable name expected for loop"), this.peekToken().type === uc.TOKEN_COMMA) {
  7914. var r = e.name;
  7915. for (e.name = new bu.Array(r.lineno, r.colno), e.name.addChild(r); this.skip(uc.TOKEN_COMMA);) {
  7916. var i = this.parsePrimary();
  7917. e.name.addChild(i)
  7918. }
  7919. }
  7920. return this.skipSymbol("in") || this.fail('parseFor: expected "in" keyword for loop', n.lineno, n.colno), e.arr = this.parseExpression(), this.advanceAfterBlockEnd(n.value), e.body = this.parseUntilBlocks(t, "else"), this.skipSymbol("else") && (this.advanceAfterBlockEnd("else"), e.else_ = this.parseUntilBlocks(t)), this.advanceAfterBlockEnd(), e
  7921. }, t.parseMacro = function () {
  7922. var e = this.peekToken(), t = (this.skipSymbol("macro") || this.fail("expected macro"), this.parsePrimary(!0)),
  7923. n = this.parseSignature(), t = new bu.Macro(e.lineno, e.colno, t, n);
  7924. return this.advanceAfterBlockEnd(e.value), t.body = this.parseUntilBlocks("endmacro"), this.advanceAfterBlockEnd(), t
  7925. }, t.parseCall = function () {
  7926. var e = this.peekToken(),
  7927. t = (this.skipSymbol("call") || this.fail("expected call"), this.parseSignature(!0) || new bu.NodeList),
  7928. n = this.parsePrimary(), r = (this.advanceAfterBlockEnd(e.value), this.parseUntilBlocks("endcall")),
  7929. i = (this.advanceAfterBlockEnd(), new bu.Symbol(e.lineno, e.colno, "caller")),
  7930. t = new bu.Caller(e.lineno, e.colno, i, t, r);
  7931. return (r = n.args.children)[r.length - 1] instanceof bu.KeywordArgs || r.push(new bu.KeywordArgs), r[r.length - 1].addChild(new bu.Pair(e.lineno, e.colno, i, t)), new bu.Output(e.lineno, e.colno, [n])
  7932. }, t.parseWithContext = function () {
  7933. var e = this.peekToken(), t = null;
  7934. return this.skipSymbol("with") ? t = !0 : this.skipSymbol("without") && (t = !1), null === t || this.skipSymbol("context") || this.fail("parseFrom: expected context after with/without", e.lineno, e.colno), t
  7935. }, t.parseImport = function () {
  7936. var e = this.peekToken(),
  7937. t = (this.skipSymbol("import") || this.fail("parseImport: expected import", e.lineno, e.colno), this.parseExpression()),
  7938. n = (this.skipSymbol("as") || this.fail('parseImport: expected "as" keyword', e.lineno, e.colno), this.parseExpression()),
  7939. r = this.parseWithContext(), t = new bu.Import(e.lineno, e.colno, t, n, r);
  7940. return this.advanceAfterBlockEnd(e.value), t
  7941. }, t.parseFrom = function () {
  7942. var e = this.peekToken(),
  7943. t = (this.skipSymbol("from") || this.fail("parseFrom: expected from"), this.parseExpression());
  7944. this.skipSymbol("import") || this.fail("parseFrom: expected import", e.lineno, e.colno);
  7945. for (var n, r = new bu.NodeList; ;) {
  7946. var a, i = this.peekToken();
  7947. if (i.type === uc.TOKEN_BLOCK_END) {
  7948. r.children.length || this.fail("parseFrom: Expected at least one import name", e.lineno, e.colno), "-" === i.value.charAt(0) && (this.dropLeadingWhitespace = !0), this.nextToken();
  7949. break
  7950. }
  7951. 0 < r.children.length && !this.skip(uc.TOKEN_COMMA) && this.fail("parseFrom: expected comma", e.lineno, e.colno), "_" === (i = this.parsePrimary()).value.charAt(0) && this.fail("parseFrom: names starting with an underscore cannot be imported", i.lineno, i.colno), this.skipSymbol("as") ? (a = this.parsePrimary(), r.addChild(new bu.Pair(i.lineno, i.colno, i, a))) : r.addChild(i), n = this.parseWithContext()
  7952. }
  7953. return new bu.FromImport(e.lineno, e.colno, t, r, n)
  7954. }, t.parseBlock = function () {
  7955. var e = this.peekToken(),
  7956. t = (this.skipSymbol("block") || this.fail("parseBlock: expected block", e.lineno, e.colno), new bu.Block(e.lineno, e.colno));
  7957. return t.name = this.parsePrimary(), t.name instanceof bu.Symbol || this.fail("parseBlock: variable name expected", e.lineno, e.colno), this.advanceAfterBlockEnd(e.value), t.body = this.parseUntilBlocks("endblock"), this.skipSymbol("endblock"), this.skipSymbol(t.name.value), (e = this.peekToken()) || this.fail("parseBlock: expected endblock, got end of file"), this.advanceAfterBlockEnd(e.value), t
  7958. }, t.parseExtends = function () {
  7959. var e = "extends", t = this.peekToken();
  7960. return this.skipSymbol(e) || this.fail("parseTemplateRef: expected " + e), (e = new bu.Extends(t.lineno, t.colno)).template = this.parseExpression(), this.advanceAfterBlockEnd(t.value), e
  7961. }, t.parseInclude = function () {
  7962. var e = "include", t = this.peekToken();
  7963. return this.skipSymbol(e) || this.fail("parseInclude: expected " + e), (e = new bu.Include(t.lineno, t.colno)).template = this.parseExpression(), this.skipSymbol("ignore") && this.skipSymbol("missing") && (e.ignoreMissing = !0), this.advanceAfterBlockEnd(t.value), e
  7964. }, t.parseIf = function () {
  7965. var e, t = this.peekToken();
  7966. switch (this.skipSymbol("if") || this.skipSymbol("elif") || this.skipSymbol("elseif") ? e = new bu.If(t.lineno, t.colno) : this.skipSymbol("ifAsync") ? e = new bu.IfAsync(t.lineno, t.colno) : this.fail("parseIf: expected if, elif, or elseif", t.lineno, t.colno), e.cond = this.parseExpression(), this.advanceAfterBlockEnd(t.value), e.body = this.parseUntilBlocks("elif", "elseif", "else", "endif"), (t = this.peekToken()) && t.value) {
  7967. case"elseif":
  7968. case"elif":
  7969. e.else_ = this.parseIf();
  7970. break;
  7971. case"else":
  7972. this.advanceAfterBlockEnd(), e.else_ = this.parseUntilBlocks("endif"), this.advanceAfterBlockEnd();
  7973. break;
  7974. case"endif":
  7975. e.else_ = null, this.advanceAfterBlockEnd();
  7976. break;
  7977. default:
  7978. this.fail("parseIf: expected elif, else, or endif, got end of file")
  7979. }
  7980. return e
  7981. }, t.parseSet = function () {
  7982. var e = this.peekToken();
  7983. this.skipSymbol("set") || this.fail("parseSet: expected set", e.lineno, e.colno);
  7984. for (var t, n = new bu.Set(e.lineno, e.colno, []); (t = this.parsePrimary()) && (n.targets.push(t), this.skip(uc.TOKEN_COMMA));) ;
  7985. return this.skipValue(uc.TOKEN_OPERATOR, "=") ? (n.value = this.parseExpression(), this.advanceAfterBlockEnd(e.value)) : this.skip(uc.TOKEN_BLOCK_END) ? (n.body = new bu.Capture(e.lineno, e.colno, this.parseUntilBlocks("endset")), n.value = null, this.advanceAfterBlockEnd()) : this.fail("parseSet: expected = or block end in set tag", e.lineno, e.colno), n
  7986. }, t.parseSwitch = function () {
  7987. var e = "switch", t = "endswitch", n = "case", r = "default", i = this.peekToken(),
  7988. s = (this.skipSymbol(e) || this.skipSymbol(n) || this.skipSymbol(r) || this.fail('parseSwitch: expected "switch," "case" or "default"', i.lineno, i.colno), this.parseExpression());
  7989. this.advanceAfterBlockEnd(e), this.parseUntilBlocks(n, r, t);
  7990. var a, o = this.peekToken(), c = [];
  7991. do {
  7992. this.skipSymbol(n);
  7993. var u = this.parseExpression(), l = (this.advanceAfterBlockEnd(e), this.parseUntilBlocks(n, r, t))
  7994. } while (c.push(new bu.Case(o.line, o.col, u, l)), (o = this.peekToken()) && o.value === n);
  7995. switch (o.value) {
  7996. case r:
  7997. this.advanceAfterBlockEnd(), a = this.parseUntilBlocks(t), this.advanceAfterBlockEnd();
  7998. break;
  7999. case t:
  8000. this.advanceAfterBlockEnd();
  8001. break;
  8002. default:
  8003. this.fail('parseSwitch: expected "case," "default" or "endswitch," got EOF.')
  8004. }
  8005. return new bu.Switch(i.lineno, i.colno, s, c, a)
  8006. }, t.parseStatement = function () {
  8007. var e = this.peekToken();
  8008. if (e.type !== uc.TOKEN_SYMBOL && this.fail("tag name expected", e.lineno, e.colno), this.breakOnBlocks && -1 !== Ua.indexOf(this.breakOnBlocks, e.value)) return null;
  8009. switch (e.value) {
  8010. case"raw":
  8011. return this.parseRaw();
  8012. case"verbatim":
  8013. return this.parseRaw("verbatim");
  8014. case"if":
  8015. case"ifAsync":
  8016. return this.parseIf();
  8017. case"for":
  8018. case"asyncEach":
  8019. case"asyncAll":
  8020. return this.parseFor();
  8021. case"block":
  8022. return this.parseBlock();
  8023. case"extends":
  8024. return this.parseExtends();
  8025. case"include":
  8026. return this.parseInclude();
  8027. case"set":
  8028. return this.parseSet();
  8029. case"macro":
  8030. return this.parseMacro();
  8031. case"call":
  8032. return this.parseCall();
  8033. case"import":
  8034. return this.parseImport();
  8035. case"from":
  8036. return this.parseFrom();
  8037. case"filter":
  8038. return this.parseFilterStatement();
  8039. case"switch":
  8040. return this.parseSwitch();
  8041. default:
  8042. if (this.extensions.length) for (var t = 0; t < this.extensions.length; t++) {
  8043. var n = this.extensions[t];
  8044. if (-1 !== Ua.indexOf(n.tags || [], e.value)) return n.parse(this, bu, uc)
  8045. }
  8046. this.fail("unknown block tag: " + e.value, e.lineno, e.colno)
  8047. }
  8048. }, t.parseRaw = function (e) {
  8049. for (var t = "end" + (e = e || "raw"), n = new RegExp("([\\s\\S]*?){%\\s*(" + e + "|" + t + ")\\s*(?=%})%}"), r = 1, i = "", a = this.advanceAfterBlockEnd(); (s = this.tokens._extractRegex(n)) && 0 < r;) {
  8050. var o = s[0], c = s[1], s = s[2];
  8051. s === e ? r += 1 : s === t && --r, 0 === r ? (i += c, this.tokens.backN(o.length - c.length)) : i += o
  8052. }
  8053. return new bu.Output(a.lineno, a.colno, [new bu.TemplateData(a.lineno, a.colno, i)])
  8054. }, t.parsePostfix = function (e) {
  8055. for (var t, n = this.peekToken(); n;) {
  8056. if (n.type === uc.TOKEN_LEFT_PAREN) e = new bu.FunCall(n.lineno, n.colno, e, this.parseSignature()); else if (n.type === uc.TOKEN_LEFT_BRACKET) 1 < (t = this.parseAggregate()).children.length && this.fail("invalid index"), e = new bu.LookupVal(n.lineno, n.colno, e, t.children[0]); else {
  8057. if (n.type !== uc.TOKEN_OPERATOR || "." !== n.value) break;
  8058. this.nextToken();
  8059. var r = this.nextToken();
  8060. r.type !== uc.TOKEN_SYMBOL && this.fail("expected name as lookup value, got " + r.value, r.lineno, r.colno), t = new bu.Literal(r.lineno, r.colno, r.value), e = new bu.LookupVal(n.lineno, n.colno, e, t)
  8061. }
  8062. n = this.peekToken()
  8063. }
  8064. return e
  8065. }, t.parseExpression = function () {
  8066. return this.parseInlineIf()
  8067. }, t.parseInlineIf = function () {
  8068. var t, n, e = this.parseOr();
  8069. return this.skipSymbol("if") && (t = this.parseOr(), n = e, (e = new bu.InlineIf(e.lineno, e.colno)).body = n, e.cond = t, this.skipSymbol("else") ? e.else_ = this.parseOr() : e.else_ = null), e
  8070. }, t.parseOr = function () {
  8071. for (var e = this.parseAnd(); this.skipSymbol("or");) var t = this.parseAnd(), e = new bu.Or(e.lineno, e.colno, e, t);
  8072. return e
  8073. }, t.parseAnd = function () {
  8074. for (var e = this.parseNot(); this.skipSymbol("and");) var t = this.parseNot(), e = new bu.And(e.lineno, e.colno, e, t);
  8075. return e
  8076. }, t.parseNot = function () {
  8077. var e = this.peekToken();
  8078. return this.skipSymbol("not") ? new bu.Not(e.lineno, e.colno, this.parseNot()) : this.parseIn()
  8079. }, t.parseIn = function () {
  8080. for (var e = this.parseIs(); ;) {
  8081. var t = this.nextToken();
  8082. if (!t) break;
  8083. var n = t.type === uc.TOKEN_SYMBOL && "not" === t.value;
  8084. if (n || this.pushToken(t), !this.skipSymbol("in")) {
  8085. n && this.pushToken(t);
  8086. break
  8087. }
  8088. t = this.parseIs(), e = new bu.In(e.lineno, e.colno, e, t), n && (e = new bu.Not(e.lineno, e.colno, e))
  8089. }
  8090. return e
  8091. }, t.parseIs = function () {
  8092. var t, n, e = this.parseCompare();
  8093. return this.skipSymbol("is") && (t = this.skipSymbol("not"), n = this.parseCompare(), e = new bu.Is(e.lineno, e.colno, e, n), t) ? new bu.Not(e.lineno, e.colno, e) : e
  8094. }, t.parseCompare = function () {
  8095. for (var e = ["==", "===", "!=", "!==", "<", ">", "<=", ">="], t = this.parseConcat(), n = []; ;) {
  8096. var r = this.nextToken();
  8097. if (!r) break;
  8098. if (-1 === e.indexOf(r.value)) {
  8099. this.pushToken(r);
  8100. break
  8101. }
  8102. n.push(new bu.CompareOperand(r.lineno, r.colno, this.parseConcat(), r.value))
  8103. }
  8104. return n.length ? new bu.Compare(n[0].lineno, n[0].colno, t, n) : t
  8105. }, t.parseConcat = function () {
  8106. for (var e = this.parseAdd(); this.skipValue(uc.TOKEN_TILDE, "~");) var t = this.parseAdd(), e = new bu.Concat(e.lineno, e.colno, e, t);
  8107. return e
  8108. }, t.parseAdd = function () {
  8109. for (var e = this.parseSub(); this.skipValue(uc.TOKEN_OPERATOR, "+");) var t = this.parseSub(), e = new bu.Add(e.lineno, e.colno, e, t);
  8110. return e
  8111. }, t.parseSub = function () {
  8112. for (var e = this.parseMul(); this.skipValue(uc.TOKEN_OPERATOR, "-");) var t = this.parseMul(), e = new bu.Sub(e.lineno, e.colno, e, t);
  8113. return e
  8114. }, t.parseMul = function () {
  8115. for (var e = this.parseDiv(); this.skipValue(uc.TOKEN_OPERATOR, "*");) var t = this.parseDiv(), e = new bu.Mul(e.lineno, e.colno, e, t);
  8116. return e
  8117. }, t.parseDiv = function () {
  8118. for (var e = this.parseFloorDiv(); this.skipValue(uc.TOKEN_OPERATOR, "/");) var t = this.parseFloorDiv(), e = new bu.Div(e.lineno, e.colno, e, t);
  8119. return e
  8120. }, t.parseFloorDiv = function () {
  8121. for (var e = this.parseMod(); this.skipValue(uc.TOKEN_OPERATOR, "//");) var t = this.parseMod(), e = new bu.FloorDiv(e.lineno, e.colno, e, t);
  8122. return e
  8123. }, t.parseMod = function () {
  8124. for (var e = this.parsePow(); this.skipValue(uc.TOKEN_OPERATOR, "%");) var t = this.parsePow(), e = new bu.Mod(e.lineno, e.colno, e, t);
  8125. return e
  8126. }, t.parsePow = function () {
  8127. for (var e = this.parseUnary(); this.skipValue(uc.TOKEN_OPERATOR, "**");) var t = this.parseUnary(), e = new bu.Pow(e.lineno, e.colno, e, t);
  8128. return e
  8129. }, t.parseUnary = function (e) {
  8130. var n = this.peekToken(),
  8131. n = this.skipValue(uc.TOKEN_OPERATOR, "-") ? new bu.Neg(n.lineno, n.colno, this.parseUnary(!0)) : this.skipValue(uc.TOKEN_OPERATOR, "+") ? new bu.Pos(n.lineno, n.colno, this.parseUnary(!0)) : this.parsePrimary();
  8132. return e ? n : this.parseFilter(n)
  8133. }, t.parsePrimary = function (e) {
  8134. var t, n = this.nextToken();
  8135. if (n ? n.type === uc.TOKEN_STRING ? t = n.value : n.type === uc.TOKEN_INT ? t = parseInt(n.value, 10) : n.type === uc.TOKEN_FLOAT ? t = parseFloat(n.value) : n.type === uc.TOKEN_BOOLEAN ? "true" === n.value ? t = !0 : "false" === n.value ? t = !1 : this.fail("invalid boolean: " + n.value, n.lineno, n.colno) : n.type === uc.TOKEN_NONE ? t = null : n.type === uc.TOKEN_REGEX && (t = new RegExp(n.value.body, n.value.flags)) : this.fail("expected expression, got end of file"), t = void 0 !== t ? new bu.Literal(n.lineno, n.colno, t) : n.type === uc.TOKEN_SYMBOL ? new bu.Symbol(n.lineno, n.colno, n.value) : (this.pushToken(n), this.parseAggregate()), t = e ? t : this.parsePostfix(t)) return t;
  8136. throw this.error("unexpected token: " + n.value, n.lineno, n.colno)
  8137. }, t.parseFilterName = function () {
  8138. for (var e = this.expect(uc.TOKEN_SYMBOL), t = e.value; this.skipValue(uc.TOKEN_OPERATOR, ".");) t += "." + this.expect(uc.TOKEN_SYMBOL).value;
  8139. return new bu.Symbol(e.lineno, e.colno, t)
  8140. }, t.parseFilterArgs = function (e) {
  8141. return this.peekToken().type === uc.TOKEN_LEFT_PAREN ? this.parsePostfix(e).args.children : []
  8142. }, t.parseFilter = function (e) {
  8143. for (; this.skip(uc.TOKEN_PIPE);) {
  8144. var t = this.parseFilterName();
  8145. e = new bu.Filter(t.lineno, t.colno, t, new bu.NodeList(t.lineno, t.colno, [e].concat(this.parseFilterArgs(e))))
  8146. }
  8147. return e
  8148. }, t.parseFilterStatement = function () {
  8149. var e = this.peekToken(),
  8150. t = (this.skipSymbol("filter") || this.fail("parseFilterStatement: expected filter"), this.parseFilterName()),
  8151. n = this.parseFilterArgs(t),
  8152. e = (this.advanceAfterBlockEnd(e.value), new bu.Capture(t.lineno, t.colno, this.parseUntilBlocks("endfilter"))),
  8153. e = (this.advanceAfterBlockEnd(), new bu.Filter(t.lineno, t.colno, t, new bu.NodeList(t.lineno, t.colno, [e].concat(n))));
  8154. return new bu.Output(t.lineno, t.colno, [e])
  8155. }, t.parseAggregate = function () {
  8156. var e, t = this.nextToken();
  8157. switch (t.type) {
  8158. case uc.TOKEN_LEFT_PAREN:
  8159. e = new bu.Group(t.lineno, t.colno);
  8160. break;
  8161. case uc.TOKEN_LEFT_BRACKET:
  8162. e = new bu.Array(t.lineno, t.colno);
  8163. break;
  8164. case uc.TOKEN_LEFT_CURLY:
  8165. e = new bu.Dict(t.lineno, t.colno);
  8166. break;
  8167. default:
  8168. return null
  8169. }
  8170. for (; ;) {
  8171. var i, n = this.peekToken().type;
  8172. if (n === uc.TOKEN_RIGHT_PAREN || n === uc.TOKEN_RIGHT_BRACKET || n === uc.TOKEN_RIGHT_CURLY) {
  8173. this.nextToken();
  8174. break
  8175. }
  8176. 0 < e.children.length && (this.skip(uc.TOKEN_COMMA) || this.fail("parseAggregate: expected comma after expression", t.lineno, t.colno)), e instanceof bu.Dict ? (n = this.parsePrimary(), this.skip(uc.TOKEN_COLON) || this.fail("parseAggregate: expected colon after dict key", t.lineno, t.colno), i = this.parseExpression(), e.addChild(new bu.Pair(n.lineno, n.colno, n, i))) : (n = this.parseExpression(), e.addChild(n))
  8177. }
  8178. return e
  8179. }, t.parseSignature = function (e, t) {
  8180. var n = this.peekToken();
  8181. if (!t && n.type !== uc.TOKEN_LEFT_PAREN) {
  8182. if (e) return null;
  8183. this.fail("expected arguments", n.lineno, n.colno)
  8184. }
  8185. n.type === uc.TOKEN_LEFT_PAREN && (n = this.nextToken());
  8186. for (var a, r = new bu.NodeList(n.lineno, n.colno), i = new bu.KeywordArgs(n.lineno, n.colno), s = !1; ;) {
  8187. if (n = this.peekToken(), !t && n.type === uc.TOKEN_RIGHT_PAREN) {
  8188. this.nextToken();
  8189. break
  8190. }
  8191. if (t && n.type === uc.TOKEN_BLOCK_END) break;
  8192. s && !this.skip(uc.TOKEN_COMMA) ? this.fail("parseSignature: expected comma after expression", n.lineno, n.colno) : (a = this.parseExpression(), this.skipValue(uc.TOKEN_OPERATOR, "=") ? i.addChild(new bu.Pair(a.lineno, a.colno, a, this.parseExpression())) : r.addChild(a)), s = !0
  8193. }
  8194. return i.children.length && r.addChild(i), r
  8195. }, t.parseUntilBlocks = function () {
  8196. for (var e = this.breakOnBlocks, t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
  8197. this.breakOnBlocks = n;
  8198. var i = this.parse();
  8199. return this.breakOnBlocks = e, i
  8200. }, t.parseNodes = function () {
  8201. for (var e, t = []; e = this.nextToken();) if (e.type === uc.TOKEN_DATA) {
  8202. var n = e.value, r = this.peekToken(), i = r && r.value;
  8203. this.dropLeadingWhitespace && (n = n.replace(/^\s*/, ""), this.dropLeadingWhitespace = !1), r && (r.type === uc.TOKEN_BLOCK_START && "-" === i.charAt(i.length - 1) || r.type === uc.TOKEN_VARIABLE_START && "-" === i.charAt(this.tokens.tags.VARIABLE_START.length) || r.type === uc.TOKEN_COMMENT && "-" === i.charAt(this.tokens.tags.COMMENT_START.length)) && (n = n.replace(/\s*$/, "")), t.push(new bu.Output(e.lineno, e.colno, [new bu.TemplateData(e.lineno, e.colno, n)]))
  8204. } else if (e.type === uc.TOKEN_BLOCK_START) {
  8205. if (this.dropLeadingWhitespace = !1, !(r = this.parseStatement())) break;
  8206. t.push(r)
  8207. } else e.type === uc.TOKEN_VARIABLE_START ? (i = this.parseExpression(), this.dropLeadingWhitespace = !1, this.advanceAfterVariableEnd(), t.push(new bu.Output(e.lineno, e.colno, [i]))) : e.type === uc.TOKEN_COMMENT ? this.dropLeadingWhitespace = "-" === e.value.charAt(e.value.length - this.tokens.tags.COMMENT_END.length - 1) : this.fail("Unexpected token at top-level: " + e.type, e.lineno, e.colno);
  8208. return t
  8209. }, t.parse = function () {
  8210. return new bu.NodeList(0, 0, this.parseNodes())
  8211. }, t.parseAsRoot = function () {
  8212. return new bu.Root(0, 0, this.parseNodes())
  8213. }, r
  8214. }(Ec.Obj), ku = {
  8215. parse: function (e, t, n) {
  8216. return e = new Ou(uc.lex(e, n)), void 0 !== t && (e.extensions = t), e.parseAsRoot()
  8217. }, Parser: Ou
  8218. }, Lu = 0;
  8219. function Du() {
  8220. return "hole_" + Lu++
  8221. }
  8222. function Ru(e, t) {
  8223. for (var n = null, r = 0; r < e.length; r++) {
  8224. var i = t(e[r]);
  8225. i !== e[r] && ((n = n || e.slice())[r] = i)
  8226. }
  8227. return n || e
  8228. }
  8229. function wu(e, t, n) {
  8230. if (!(e instanceof bu.Node)) return e;
  8231. if (!n) {
  8232. var r = t(e);
  8233. if (r && r !== e) return r
  8234. }
  8235. var a;
  8236. return e instanceof bu.NodeList ? (r = Ru(e.children, function (e) {
  8237. return wu(e, t, n)
  8238. })) !== e.children && (e = new bu[e.typename](e.lineno, e.colno, r)) : e instanceof bu.CallExtension ? (r = wu(e.args, t, n), a = Ru(e.contentArgs, function (e) {
  8239. return wu(e, t, n)
  8240. }), r === e.args && a === e.contentArgs || (e = new bu[e.typename](e.extName, e.prop, r, a))) : (a = Ru(r = e.fields.map(function (t) {
  8241. return e[t]
  8242. }), function (e) {
  8243. return wu(e, t, n)
  8244. })) !== r && (e = new bu[e.typename](e.lineno, e.colno), a.forEach(function (t, n) {
  8245. e[e.fields[n]] = t
  8246. })), n && t(e) || e
  8247. }
  8248. function xu(e, t) {
  8249. return wu(e, t, !0)
  8250. }
  8251. function Mu(e, t, n) {
  8252. var r = [], i = xu(n ? e[n] : e, function (e) {
  8253. var n;
  8254. return e instanceof bu.Block ? e : ((e instanceof bu.Filter && -1 !== Ua.indexOf(t, e.name.value) || e instanceof bu.CallExtensionAsync) && (n = new bu.Symbol(e.lineno, e.colno, Du()), r.push(new bu.FilterAsync(e.lineno, e.colno, e.name, e.args, n))), n)
  8255. });
  8256. return n ? e[n] = i : e = i, r.length ? (r.push(e), new bu.NodeList(e.lineno, e.colno, r)) : e
  8257. }
  8258. function Pu(e, t) {
  8259. return function (e) {
  8260. return xu(e, function (e) {
  8261. if (e instanceof bu.If || e instanceof bu.For) {
  8262. var t = !1;
  8263. if (wu(e, function (e) {
  8264. if (e instanceof bu.FilterAsync || e instanceof bu.IfAsync || e instanceof bu.AsyncEach || e instanceof bu.AsyncAll || e instanceof bu.CallExtensionAsync) return t = !0, e
  8265. }), t) return e instanceof bu.If ? new bu.IfAsync(e.lineno, e.colno, e.cond, e.body, e.else_) : e instanceof bu.For && !(e instanceof bu.AsyncAll) ? new bu.AsyncEach(e.lineno, e.colno, e.arr, e.name, e.body, e.else_) : void 0
  8266. }
  8267. })
  8268. }(function (e) {
  8269. return wu(e, function (e) {
  8270. var t, n;
  8271. e instanceof bu.Block && (t = !1, n = Du(), e.body = wu(e.body, function (e) {
  8272. if (e instanceof bu.FunCall && "super" === e.name.value) return t = !0, new bu.Symbol(e.lineno, e.colno, n)
  8273. }), t) && e.body.children.unshift(new bu.Super(0, 0, e.name, new bu.Symbol(0, 0, n)))
  8274. })
  8275. }(function (e, t) {
  8276. return xu(e, function (e) {
  8277. return e instanceof bu.Output ? Mu(e, t) : e instanceof bu.Set ? Mu(e, t, "value") : e instanceof bu.For ? Mu(e, t, "arr") : e instanceof bu.If ? Mu(e, t, "cond") : e instanceof bu.CallExtension ? Mu(e, t, "args") : void 0
  8278. })
  8279. }(e, t)))
  8280. }
  8281. var Bu = {
  8282. transform: function (e, t) {
  8283. return Pu(e, t || [])
  8284. }
  8285. }, Fu = Array.from, Uu = "function" == typeof Symbol && Symbol.iterator && "function" == typeof Fu, Hu = function () {
  8286. function e(e, t) {
  8287. this.variables = Object.create(null), this.parent = e, this.topLevel = !1, this.isolateWrites = t
  8288. }
  8289. var t = e.prototype;
  8290. return t.set = function (e, t, n) {
  8291. var r = e.split("."), i = this.variables, s = this;
  8292. if (n && (s = this.resolve(r[0], !0))) s.set(e, t); else {
  8293. for (var a = 0; a < r.length - 1; a++) {
  8294. var o = r[a];
  8295. i[o] || (i[o] = {}), i = i[o]
  8296. }
  8297. i[r[r.length - 1]] = t
  8298. }
  8299. }, t.get = function (e) {
  8300. return void 0 !== (e = this.variables[e]) ? e : null
  8301. }, t.lookup = function (e) {
  8302. var t = this.parent, n = this.variables[e];
  8303. return void 0 !== n ? n : t && t.lookup(e)
  8304. }, t.resolve = function (e, t) {
  8305. return t = t && this.isolateWrites ? void 0 : this.parent, void 0 !== this.variables[e] ? this : t && t.resolve(e)
  8306. }, t.push = function (t) {
  8307. return new e(this, t)
  8308. }, t.pop = function () {
  8309. return this.parent
  8310. }, e
  8311. }();
  8312. function Gu(e) {
  8313. return e && Object.prototype.hasOwnProperty.call(e, "__keywords")
  8314. }
  8315. function ju(e) {
  8316. var t = e.length;
  8317. return 0 === t ? 0 : Gu(e[t - 1]) ? t - 1 : t
  8318. }
  8319. function qu(e) {
  8320. if ("string" != typeof e) return e;
  8321. this.val = e, this.val = e, Object.defineProperty(this, "length", {writable: !0, configurable: !0, value: e.length})
  8322. }
  8323. qu.prototype = Object.create(String.prototype, {
  8324. length: {
  8325. writable: !0,
  8326. configurable: !0,
  8327. value: 0
  8328. }
  8329. }), qu.prototype.valueOf = function () {
  8330. return this.val
  8331. }, qu.prototype.toString = function () {
  8332. return this.val
  8333. };
  8334. var Yu = {
  8335. Frame: Hu, makeMacro: function (e, t, n) {
  8336. return function () {
  8337. for (var r = arguments.length, i = new Array(r), s = 0; s < r; s++) i[s] = arguments[s];
  8338. var o = ju(i), c = function () {
  8339. var t = i.length;
  8340. return t && Gu(t = i[t - 1]) ? t : {}
  8341. }();
  8342. if (o > e.length) a = i.slice(0, e.length), i.slice(a.length, o).forEach(function (e, n) {
  8343. n < t.length && (c[t[n]] = e)
  8344. }), a.push(c); else if (o < e.length) {
  8345. for (var a = i.slice(0, o), u = o; u < e.length; u++) {
  8346. var l = e[u];
  8347. a.push(c[l]), delete c[l]
  8348. }
  8349. a.push(c)
  8350. } else a = i;
  8351. return n.apply(this, a)
  8352. }
  8353. }, makeKeywordArgs: function (e) {
  8354. return e.__keywords = !0, e
  8355. }, numArgs: ju, suppressValue: function (e, t) {
  8356. return e = null != e ? e : "", !t || e instanceof qu ? e : Ua.escape(e.toString())
  8357. }, ensureDefined: function (e, t, n) {
  8358. if (null == e) throw new Ua.TemplateError("attempted to output null or undefined value", t + 1, n + 1);
  8359. return e
  8360. }, memberLookup: function (e, t) {
  8361. if (null != e) return "function" == typeof e[t] ? function () {
  8362. for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i];
  8363. return e[t].apply(e, r)
  8364. } : e[t]
  8365. }, contextOrFrameLookup: function (e, t, n) {
  8366. return void 0 !== (t = t.lookup(n)) ? t : e.lookup(n)
  8367. }, callWrap: function (e, t, n, r) {
  8368. if (!e) throw new Error("Unable to call `" + t + "`, which is undefined or falsey");
  8369. if ("function" != typeof e) throw new Error("Unable to call `" + t + "`, which is not a function");
  8370. return e.apply(n, r)
  8371. }, handleError: function (e, t, n) {
  8372. return e.lineno ? e : new Ua.TemplateError(e, t, n)
  8373. }, isArray: Ua.isArray, keys: Ua.keys, SafeString: qu, copySafeness: function (e, t) {
  8374. return e instanceof qu ? new qu(t) : t.toString()
  8375. }, markSafe: function (e) {
  8376. var t = typeof e;
  8377. return "string" == t ? new qu(e) : "function" != t ? e : function (t) {
  8378. var n = e.apply(this, arguments);
  8379. return "string" == typeof n ? new qu(n) : n
  8380. }
  8381. }, asyncEach: function (e, t, n, r) {
  8382. var i;
  8383. Ua.isArray(e) ? (i = e.length, Ua.asyncIter(e, function (e, r, s) {
  8384. switch (t) {
  8385. case 1:
  8386. n(e, r, i, s);
  8387. break;
  8388. case 2:
  8389. n(e[0], e[1], r, i, s);
  8390. break;
  8391. case 3:
  8392. n(e[0], e[1], e[2], r, i, s);
  8393. break;
  8394. default:
  8395. e.push(r, i, s), n.apply(this, e)
  8396. }
  8397. }, r)) : Ua.asyncFor(e, function (e, t, r, i, s) {
  8398. n(e, t, r, i, s)
  8399. }, r)
  8400. }, asyncAll: function (e, t, n, r) {
  8401. var a = 0;
  8402. function o(e, t) {
  8403. a++, s[e] = t, a === i && r(null, s.join(""))
  8404. }
  8405. if (Ua.isArray(e)) if (i = e.length, s = new Array(i), 0 === i) r(null, ""); else for (var c = 0; c < e.length; c++) {
  8406. var u = e[c];
  8407. switch (t) {
  8408. case 1:
  8409. n(u, c, i, o);
  8410. break;
  8411. case 2:
  8412. n(u[0], u[1], c, i, o);
  8413. break;
  8414. case 3:
  8415. n(u[0], u[1], u[2], c, i, o);
  8416. break;
  8417. default:
  8418. u.push(c, i, o), n.apply(this, u)
  8419. }
  8420. } else {
  8421. var l = Ua.keys(e || {}), i = l.length, s = new Array(i);
  8422. if (0 === i) r(null, ""); else for (var h = 0; h < l.length; h++) {
  8423. var f = l[h];
  8424. n(f, e[f], h, i, o)
  8425. }
  8426. }
  8427. }, inOperator: Ua.inOperator, fromIterator: function (e) {
  8428. return "object" == typeof e && null !== e && !Ua.isArray(e) && Uu && Symbol.iterator in e ? Fu(e) : e
  8429. }
  8430. };
  8431. function Ku(e, t) {
  8432. return (Ku = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
  8433. return e.__proto__ = t, e
  8434. })(e, t)
  8435. }
  8436. Yu.Frame, Yu.makeMacro, Yu.makeKeywordArgs, Yu.numArgs, Yu.suppressValue, Yu.ensureDefined, Yu.memberLookup, Yu.contextOrFrameLookup, Yu.callWrap, Yu.handleError, Yu.isArray, Yu.keys, Yu.SafeString, Yu.copySafeness, Yu.markSafe, Yu.asyncEach, Yu.asyncAll, Yu.inOperator, Yu.fromIterator;
  8437. var Wu = Ua.TemplateError, Vu = Yu.Frame,
  8438. $u = {"==": "==", "===": "===", "!=": "!=", "!==": "!==", "<": "<", ">": ">", "<=": "<=", ">=": ">="},
  8439. Qu = function (e) {
  8440. var n;
  8441. function r() {
  8442. return e.apply(this, arguments) || this
  8443. }
  8444. n = e, (t = r).prototype = Object.create(n.prototype), Ku(t.prototype.constructor = t, n);
  8445. var t = r.prototype;
  8446. return t.init = function (e, t) {
  8447. this.templateName = e, this.codebuf = [], this.lastId = 0, this.buffer = null, this.bufferStack = [], this._scopeClosers = "", this.inBlock = !1, this.throwOnUndefined = t
  8448. }, t.fail = function (e, t, n) {
  8449. throw void 0 !== t && (t += 1), void 0 !== n && (n += 1), new Wu(e, t, n)
  8450. }, t._pushBuffer = function () {
  8451. var e = this._tmpid();
  8452. return this.bufferStack.push(this.buffer), this.buffer = e, this._emit("var " + this.buffer + ' = "";'), e
  8453. }, t._popBuffer = function () {
  8454. this.buffer = this.bufferStack.pop()
  8455. }, t._emit = function (e) {
  8456. this.codebuf.push(e)
  8457. }, t._emitLine = function (e) {
  8458. this._emit(e + "\n")
  8459. }, t._emitLines = function () {
  8460. for (var e = this, t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
  8461. n.forEach(function (t) {
  8462. return e._emitLine(t)
  8463. })
  8464. }, t._emitFuncBegin = function (e, t) {
  8465. this.buffer = "output", this._scopeClosers = "", this._emitLine("function " + t + "(env, context, frame, runtime, cb) {"), this._emitLine("var lineno = " + e.lineno + ";"), this._emitLine("var colno = " + e.colno + ";"), this._emitLine("var " + this.buffer + ' = "";'), this._emitLine("try {")
  8466. }, t._emitFuncEnd = function (e) {
  8467. e || this._emitLine("cb(null, " + this.buffer + ");"), this._closeScopeLevels(), this._emitLine("} catch (e) {"), this._emitLine(" cb(runtime.handleError(e, lineno, colno));"), this._emitLine("}"), this._emitLine("}"), this.buffer = null
  8468. }, t._addScopeLevel = function () {
  8469. this._scopeClosers += "})"
  8470. }, t._closeScopeLevels = function () {
  8471. this._emitLine(this._scopeClosers + ";"), this._scopeClosers = ""
  8472. }, t._withScopedSyntax = function (e) {
  8473. var t = this._scopeClosers;
  8474. this._scopeClosers = "", e.call(this), this._closeScopeLevels(), this._scopeClosers = t
  8475. }, t._makeCallback = function (e) {
  8476. var t = this._tmpid();
  8477. return "function(" + t + (e ? "," + e : "") + ") {\nif(" + t + ") { cb(" + t + "); return; }"
  8478. }, t._tmpid = function () {
  8479. return this.lastId++, "t_" + this.lastId
  8480. }, t._templateName = function () {
  8481. return null == this.templateName ? "undefined" : JSON.stringify(this.templateName)
  8482. }, t._compileChildren = function (e, t) {
  8483. var n = this;
  8484. e.children.forEach(function (e) {
  8485. n.compile(e, t)
  8486. })
  8487. }, t._compileAggregate = function (e, t, n, r) {
  8488. var i = this;
  8489. n && this._emit(n), e.children.forEach(function (e, n) {
  8490. 0 < n && i._emit(","), i.compile(e, t)
  8491. }), r && this._emit(r)
  8492. }, t._compileExpression = function (e, t) {
  8493. this.assertType(e, bu.Literal, bu.Symbol, bu.Group, bu.Array, bu.Dict, bu.FunCall, bu.Caller, bu.Filter, bu.LookupVal, bu.Compare, bu.InlineIf, bu.In, bu.Is, bu.And, bu.Or, bu.Not, bu.Add, bu.Concat, bu.Sub, bu.Mul, bu.Div, bu.FloorDiv, bu.Mod, bu.Pow, bu.Neg, bu.Pos, bu.Compare, bu.NodeList), this.compile(e, t)
  8494. }, t.assertType = function (e) {
  8495. for (var t = arguments.length, n = new Array(1 < t ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
  8496. n.some(function (t) {
  8497. return e instanceof t
  8498. }) || this.fail("assertType: invalid type: " + e.typename, e.lineno, e.colno)
  8499. }, t.compileCallExtension = function (e, t, n) {
  8500. var r = this, i = e.args, s = e.contentArgs, a = "boolean" != typeof e.autoescape || e.autoescape;
  8501. n || this._emit(this.buffer + " += runtime.suppressValue("), this._emit('env.getExtension("' + e.extName + '")["' + e.prop + '"]('), this._emit("context"), (i || s) && this._emit(","), i && (i instanceof bu.NodeList || this.fail("compileCallExtension: arguments must be a NodeList, use `parser.parseSignature`"), i.children.forEach(function (e, n) {
  8502. r._compileExpression(e, t), n === i.children.length - 1 && !s.length || r._emit(",")
  8503. })), s.length && s.forEach(function (e, n) {
  8504. var i;
  8505. 0 < n && r._emit(","), e ? (r._emitLine("function(cb) {"), r._emitLine("if(!cb) { cb = function(err) { if(err) { throw err; }}}"), i = r._pushBuffer(), r._withScopedSyntax(function () {
  8506. r.compile(e, t), r._emitLine("cb(null, " + i + ");")
  8507. }), r._popBuffer(), r._emitLine("return " + i + ";"), r._emitLine("}")) : r._emit("null")
  8508. }), n ? (e = this._tmpid(), this._emitLine(", " + this._makeCallback(e)), this._emitLine(this.buffer + " += runtime.suppressValue(" + e + ", " + a + " && env.opts.autoescape);"), this._addScopeLevel()) : (this._emit(")"), this._emit(", " + a + " && env.opts.autoescape);\n"))
  8509. }, t.compileCallExtensionAsync = function (e, t) {
  8510. this.compileCallExtension(e, t, !0)
  8511. }, t.compileNodeList = function (e, t) {
  8512. this._compileChildren(e, t)
  8513. }, t.compileLiteral = function (e) {
  8514. var t;
  8515. "string" == typeof e.value ? (t = (t = (t = (t = (t = (t = e.value.replace(/\\/g, "\\\\")).replace(/"/g, '\\"')).replace(/\n/g, "\\n")).replace(/\r/g, "\\r")).replace(/\t/g, "\\t")).replace(/\u2028/g, "\\u2028"), this._emit('"' + t + '"')) : null === e.value ? this._emit("null") : this._emit(e.value.toString())
  8516. }, t.compileSymbol = function (e, t) {
  8517. e = e.value, (t = t.lookup(e)) ? this._emit(t) : this._emit('runtime.contextOrFrameLookup(context, frame, "' + e + '")')
  8518. }, t.compileGroup = function (e, t) {
  8519. this._compileAggregate(e, t, "(", ")")
  8520. }, t.compileArray = function (e, t) {
  8521. this._compileAggregate(e, t, "[", "]")
  8522. }, t.compileDict = function (e, t) {
  8523. this._compileAggregate(e, t, "{", "}")
  8524. }, t.compilePair = function (e, t) {
  8525. var n = e.key, e = e.value;
  8526. n instanceof bu.Symbol ? n = new bu.Literal(n.lineno, n.colno, n.value) : n instanceof bu.Literal && "string" == typeof n.value || this.fail("compilePair: Dict keys must be strings or names", n.lineno, n.colno), this.compile(n, t), this._emit(": "), this._compileExpression(e, t)
  8527. }, t.compileInlineIf = function (e, t) {
  8528. this._emit("("), this.compile(e.cond, t), this._emit("?"), this.compile(e.body, t), this._emit(":"), null !== e.else_ ? this.compile(e.else_, t) : this._emit('""'), this._emit(")")
  8529. }, t.compileIn = function (e, t) {
  8530. this._emit("runtime.inOperator("), this.compile(e.left, t), this._emit(","), this.compile(e.right, t), this._emit(")")
  8531. }, t.compileIs = function (e, t) {
  8532. var n = (e.right.name || e.right).value;
  8533. this._emit('env.getTest("' + n + '").call(context, '), this.compile(e.left, t), e.right.args && (this._emit(","), this.compile(e.right.args, t)), this._emit(") === true")
  8534. }, t._binOpEmitter = function (e, t, n) {
  8535. this.compile(e.left, t), this._emit(n), this.compile(e.right, t)
  8536. }, t.compileOr = function (e, t) {
  8537. return this._binOpEmitter(e, t, " || ")
  8538. }, t.compileAnd = function (e, t) {
  8539. return this._binOpEmitter(e, t, " && ")
  8540. }, t.compileAdd = function (e, t) {
  8541. return this._binOpEmitter(e, t, " + ")
  8542. }, t.compileConcat = function (e, t) {
  8543. return this._binOpEmitter(e, t, ' + "" + ')
  8544. }, t.compileSub = function (e, t) {
  8545. return this._binOpEmitter(e, t, " - ")
  8546. }, t.compileMul = function (e, t) {
  8547. return this._binOpEmitter(e, t, " * ")
  8548. }, t.compileDiv = function (e, t) {
  8549. return this._binOpEmitter(e, t, " / ")
  8550. }, t.compileMod = function (e, t) {
  8551. return this._binOpEmitter(e, t, " % ")
  8552. }, t.compileNot = function (e, t) {
  8553. this._emit("!"), this.compile(e.target, t)
  8554. }, t.compileFloorDiv = function (e, t) {
  8555. this._emit("Math.floor("), this.compile(e.left, t), this._emit(" / "), this.compile(e.right, t), this._emit(")")
  8556. }, t.compilePow = function (e, t) {
  8557. this._emit("Math.pow("), this.compile(e.left, t), this._emit(", "), this.compile(e.right, t), this._emit(")")
  8558. }, t.compileNeg = function (e, t) {
  8559. this._emit("-"), this.compile(e.target, t)
  8560. }, t.compilePos = function (e, t) {
  8561. this._emit("+"), this.compile(e.target, t)
  8562. }, t.compileCompare = function (e, t) {
  8563. var n = this;
  8564. this.compile(e.expr, t), e.ops.forEach(function (e) {
  8565. n._emit(" " + $u[e.type] + " "), n.compile(e.expr, t)
  8566. })
  8567. }, t.compileLookupVal = function (e, t) {
  8568. this._emit("runtime.memberLookup(("), this._compileExpression(e.target, t), this._emit("),"), this._compileExpression(e.val, t), this._emit(")")
  8569. }, t._getNodeName = function (e) {
  8570. switch (e.typename) {
  8571. case"Symbol":
  8572. return e.value;
  8573. case"FunCall":
  8574. return "the return value of (" + this._getNodeName(e.name) + ")";
  8575. case"LookupVal":
  8576. return this._getNodeName(e.target) + '["' + this._getNodeName(e.val) + '"]';
  8577. case"Literal":
  8578. return e.value.toString();
  8579. default:
  8580. return "--expression--"
  8581. }
  8582. }, t.compileFunCall = function (e, t) {
  8583. this._emit("(lineno = " + e.lineno + ", colno = " + e.colno + ", "), this._emit("runtime.callWrap("), this._compileExpression(e.name, t), this._emit(', "' + this._getNodeName(e.name).replace(/"/g, '\\"') + '", context, '), this._compileAggregate(e.args, t, "[", "])"), this._emit(")")
  8584. }, t.compileFilter = function (e, t) {
  8585. var n = e.name;
  8586. this.assertType(n, bu.Symbol), this._emit('env.getFilter("' + n.value + '").call(context, '), this._compileAggregate(e.args, t), this._emit(")")
  8587. }, t.compileFilterAsync = function (e, t) {
  8588. var n = e.name, r = e.symbol.value;
  8589. this.assertType(n, bu.Symbol), t.set(r, r), this._emit('env.getFilter("' + n.value + '").call(context, '), this._compileAggregate(e.args, t), this._emitLine(", " + this._makeCallback(r)), this._addScopeLevel()
  8590. }, t.compileKeywordArgs = function (e, t) {
  8591. this._emit("runtime.makeKeywordArgs("), this.compileDict(e, t), this._emit(")")
  8592. }, t.compileSet = function (e, t) {
  8593. var n = this, r = [];
  8594. e.targets.forEach(function (e) {
  8595. e = e.value, null == (e = t.lookup(e)) && (e = n._tmpid(), n._emitLine("var " + e + ";")), r.push(e)
  8596. }), e.value ? (this._emit(r.join(" = ") + " = "), this._compileExpression(e.value, t)) : (this._emit(r.join(" = ") + " = "), this.compile(e.body, t)), this._emitLine(";"), e.targets.forEach(function (e, t) {
  8597. e = e.value, n._emitLine('frame.set("' + e + '", ' + (t = r[t]) + ", true);"), n._emitLine("if(frame.topLevel) {"), n._emitLine('context.setVariable("' + e + '", ' + t + ");"), n._emitLine("}"), "_" !== e.charAt(0) && (n._emitLine("if(frame.topLevel) {"), n._emitLine('context.addExport("' + e + '", ' + t + ");"), n._emitLine("}"))
  8598. })
  8599. }, t.compileSwitch = function (e, t) {
  8600. var n = this;
  8601. this._emit("switch ("), this.compile(e.expr, t), this._emit(") {"), e.cases.forEach(function (e, r) {
  8602. n._emit("case "), n.compile(e.cond, t), n._emit(": "), n.compile(e.body, t), e.body.children.length && n._emitLine("break;")
  8603. }), e.default && (this._emit("default:"), this.compile(e.default, t)), this._emit("}")
  8604. }, t.compileIf = function (e, t, n) {
  8605. var r = this;
  8606. this._emit("if("), this._compileExpression(e.cond, t), this._emitLine(") {"), this._withScopedSyntax(function () {
  8607. r.compile(e.body, t), n && r._emit("cb()")
  8608. }), e.else_ ? (this._emitLine("}\nelse {"), this._withScopedSyntax(function () {
  8609. r.compile(e.else_, t), n && r._emit("cb()")
  8610. })) : n && (this._emitLine("}\nelse {"), this._emit("cb()")), this._emitLine("}")
  8611. }, t.compileIfAsync = function (e, t) {
  8612. this._emit("(function(cb) {"), this.compileIf(e, t, !0), this._emit("})(" + this._makeCallback()), this._addScopeLevel()
  8613. }, t._emitLoopBindings = function (e, t, n, r) {
  8614. var i = this;
  8615. [{name: "index", val: n + " + 1"}, {name: "index0", val: n}, {
  8616. name: "revindex",
  8617. val: r + " - " + n
  8618. }, {name: "revindex0", val: r + " - " + n + " - 1"}, {name: "first", val: n + " === 0"}, {
  8619. name: "last",
  8620. val: n + " === " + r + " - 1"
  8621. }, {name: "length", val: r}].forEach(function (e) {
  8622. i._emitLine('frame.set("loop.' + e.name + '", ' + e.val + ");")
  8623. })
  8624. }, t.compileFor = function (e, t) {
  8625. var a, u, l, o, n = this, r = this._tmpid(), i = this._tmpid(), s = this._tmpid();
  8626. t = t.push(), this._emitLine("frame = frame.push();"), this._emit("var " + s + " = "), this._compileExpression(e.arr, t), this._emitLine(";"), this._emit("if(" + s + ") {"), this._emitLine(s + " = runtime.fromIterator(" + s + ");"), e.name instanceof bu.Array ? (this._emitLine("var " + r + ";"), this._emitLine("if(runtime.isArray(" + s + ")) {"), this._emitLine("var " + i + " = " + s + ".length;"), this._emitLine("for(" + r + "=0; " + r + " < " + s + ".length; " + r + "++) {"), e.name.children.forEach(function (i, a) {
  8627. var o = n._tmpid();
  8628. n._emitLine("var " + o + " = " + s + "[" + r + "][" + a + "];"), n._emitLine('frame.set("' + i + '", ' + s + "[" + r + "][" + a + "]);"), t.set(e.name.children[a].value, o)
  8629. }), this._emitLoopBindings(e, s, r, i), this._withScopedSyntax(function () {
  8630. n.compile(e.body, t)
  8631. }), this._emitLine("}"), this._emitLine("} else {"), o = (a = e.name.children)[0], a = a[1], u = this._tmpid(), l = this._tmpid(), t.set(o.value, u), t.set(a.value, l), this._emitLine(r + " = -1;"), this._emitLine("var " + i + " = runtime.keys(" + s + ").length;"), this._emitLine("for(var " + u + " in " + s + ") {"), this._emitLine(r + "++;"), this._emitLine("var " + l + " = " + s + "[" + u + "];"), this._emitLine('frame.set("' + o.value + '", ' + u + ");"), this._emitLine('frame.set("' + a.value + '", ' + l + ");"), this._emitLoopBindings(e, s, r, i), this._withScopedSyntax(function () {
  8632. n.compile(e.body, t)
  8633. }), this._emitLine("}")) : (o = this._tmpid(), t.set(e.name.value, o), this._emitLine("var " + i + " = " + s + ".length;"), this._emitLine("for(var " + r + "=0; " + r + " < " + s + ".length; " + r + "++) {"), this._emitLine("var " + o + " = " + s + "[" + r + "];"), this._emitLine('frame.set("' + e.name.value + '", ' + o + ");"), this._emitLoopBindings(e, s, r, i), this._withScopedSyntax(function () {
  8634. n.compile(e.body, t)
  8635. })), this._emitLine("}"), this._emitLine("}"), e.else_ && (this._emitLine("if (!" + i + ") {"), this.compile(e.else_, t), this._emitLine("}")), this._emitLine("frame = frame.pop();")
  8636. }, t._compileAsyncLoop = function (e, t, n) {
  8637. var c, r = this, i = this._tmpid(), s = this._tmpid(), a = this._tmpid(), o = n ? "asyncAll" : "asyncEach",
  8638. o = (t = t.push(), this._emitLine("frame = frame.push();"), this._emit("var " + a + " = runtime.fromIterator("), this._compileExpression(e.arr, t), this._emitLine(");"), e.name instanceof bu.Array ? (c = e.name.children.length, this._emit("runtime." + o + "(" + a + ", " + c + ", function("), e.name.children.forEach(function (e) {
  8639. r._emit(e.value + ",")
  8640. }), this._emit(i + "," + s + ",next) {"), e.name.children.forEach(function (e) {
  8641. e = e.value, t.set(e, e), r._emitLine('frame.set("' + e + '", ' + e + ");")
  8642. })) : (c = e.name.value, this._emitLine("runtime." + o + "(" + a + ", 1, function(" + c + ", " + i + ", " + s + ",next) {"), this._emitLine('frame.set("' + c + '", ' + c + ");"), t.set(c, c)), this._emitLoopBindings(e, a, i, s), this._withScopedSyntax(function () {
  8643. var s;
  8644. n && (s = r._pushBuffer()), r.compile(e.body, t), r._emitLine("next(" + i + (s ? "," + s : "") + ");"), n && r._popBuffer()
  8645. }), this._tmpid());
  8646. this._emitLine("}, " + this._makeCallback(o)), this._addScopeLevel(), n && this._emitLine(this.buffer + " += " + o + ";"), e.else_ && (this._emitLine("if (!" + a + ".length) {"), this.compile(e.else_, t), this._emitLine("}")), this._emitLine("frame = frame.pop();")
  8647. }, t.compileAsyncEach = function (e, t) {
  8648. this._compileAsyncLoop(e, t)
  8649. }, t.compileAsyncAll = function (e, t) {
  8650. this._compileAsyncLoop(e, t, !0)
  8651. }, t._compileMacro = function (e, t) {
  8652. var n = this, r = [], i = null, s = "macro_" + this._tmpid(), a = void 0 !== t,
  8653. c = (e.args.children.forEach(function (t, s) {
  8654. s === e.args.children.length - 1 && t instanceof bu.Dict ? i = t : (n.assertType(t, bu.Symbol), r.push(t))
  8655. }), [].concat(r.map(function (e) {
  8656. return "l_" + e.value
  8657. }), ["kwargs"])), u = r.map(function (e) {
  8658. return '"' + e.value + '"'
  8659. }), l = (i && i.children || []).map(function (e) {
  8660. return '"' + e.key.value + '"'
  8661. }), o = a ? t.push(!0) : new Vu,
  8662. t = (this._emitLines("var " + s + " = runtime.makeMacro(", "[" + u.join(", ") + "], ", "[" + l.join(", ") + "], ", "function (" + c.join(", ") + ") {", "var callerFrame = frame;", "frame = " + (a ? "frame.push(true);" : "new runtime.Frame();"), "kwargs = kwargs || {};", 'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {', 'frame.set("caller", kwargs.caller); }'), r.forEach(function (e) {
  8663. n._emitLine('frame.set("' + e.value + '", l_' + e.value + ");"), o.set(e.value, "l_" + e.value)
  8664. }), i && i.children.forEach(function (e) {
  8665. var t = e.key.value;
  8666. n._emit('frame.set("' + t + '", '), n._emit('Object.prototype.hasOwnProperty.call(kwargs, "' + t + '")'), n._emit(' ? kwargs["' + t + '"] : '), n._compileExpression(e.value, o), n._emit(");")
  8667. }), this._pushBuffer());
  8668. return this._withScopedSyntax(function () {
  8669. n.compile(e.body, o)
  8670. }), this._emitLine("frame = " + (a ? "frame.pop();" : "callerFrame;")), this._emitLine("return new runtime.SafeString(" + t + ");"), this._emitLine("});"), this._popBuffer(), s
  8671. }, t.compileMacro = function (e, t) {
  8672. var n = this._compileMacro(e), r = e.name.value;
  8673. t.set(r, n), t.parent ? this._emitLine('frame.set("' + r + '", ' + n + ");") : ("_" !== e.name.value.charAt(0) && this._emitLine('context.addExport("' + r + '");'), this._emitLine('context.setVariable("' + r + '", ' + n + ");"))
  8674. }, t.compileCaller = function (e, t) {
  8675. this._emit("(function (){"), e = this._compileMacro(e, t), this._emit("return " + e + ";})()")
  8676. }, t._compileGetTemplate = function (e, t, n, r) {
  8677. var i = this._tmpid(), s = this._templateName(), a = this._makeCallback(i), n = n ? "true" : "false",
  8678. r = r ? "true" : "false";
  8679. return this._emit("env.getTemplate("), this._compileExpression(e.template, t), this._emitLine(", " + n + ", " + s + ", " + r + ", " + a), i
  8680. }, t.compileImport = function (e, t) {
  8681. var n = e.target.value, r = this._compileGetTemplate(e, t, !1, !1);
  8682. this._addScopeLevel(), this._emitLine(r + ".getExported(" + (e.withContext ? "context.getVariables(), frame, " : "") + this._makeCallback(r)), this._addScopeLevel(), t.set(n, r), t.parent ? this._emitLine('frame.set("' + n + '", ' + r + ");") : this._emitLine('context.setVariable("' + n + '", ' + r + ");")
  8683. }, t.compileFromImport = function (e, t) {
  8684. var n = this, r = this._compileGetTemplate(e, t, !1, !1);
  8685. this._addScopeLevel(), this._emitLine(r + ".getExported(" + (e.withContext ? "context.getVariables(), frame, " : "") + this._makeCallback(r)), this._addScopeLevel(), e.names.children.forEach(function (e) {
  8686. var i, a = n._tmpid(), e = e instanceof bu.Pair ? (i = e.key.value, e.value.value) : i = e.value;
  8687. n._emitLine("if(Object.prototype.hasOwnProperty.call(" + r + ', "' + i + '")) {'), n._emitLine("var " + a + " = " + r + "." + i + ";"), n._emitLine("} else {"), n._emitLine("cb(new Error(\"cannot import '" + i + "'\")); return;"), n._emitLine("}"), t.set(e, a), t.parent ? n._emitLine('frame.set("' + e + '", ' + a + ");") : n._emitLine('context.setVariable("' + e + '", ' + a + ");")
  8688. })
  8689. }, t.compileBlock = function (e) {
  8690. var t = this._tmpid();
  8691. this.inBlock || this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(""); } : '), this._emit('context.getBlock("' + e.name.value + '")'), this.inBlock || this._emit(")"), this._emitLine("(env, context, frame, runtime, " + this._makeCallback(t)), this._emitLine(this.buffer + " += " + t + ";"), this._addScopeLevel()
  8692. }, t.compileSuper = function (e, t) {
  8693. var n = e.blockName.value, e = e.symbol.value, i = this._makeCallback(e);
  8694. this._emitLine('context.getSuper(env, "' + n + '", b_' + n + ", frame, runtime, " + i), this._emitLine(e + " = runtime.markSafe(" + e + ");"), this._addScopeLevel(), t.set(e, e)
  8695. }, t.compileExtends = function (e, t) {
  8696. var n = this._tmpid(), e = this._compileGetTemplate(e, t, !0, !1);
  8697. this._emitLine("parentTemplate = " + e), this._emitLine("for(var " + n + " in parentTemplate.blocks) {"), this._emitLine("context.addBlock(" + n + ", parentTemplate.blocks[" + n + "]);"), this._emitLine("}"), this._addScopeLevel()
  8698. }, t.compileInclude = function (e, t) {
  8699. this._emitLine("var tasks = [];"), this._emitLine("tasks.push("), this._emitLine("function(callback) {"), t = this._compileGetTemplate(e, t, !1, e.ignoreMissing), this._emitLine("callback(null," + t + ");});"), this._emitLine("});"), e = this._tmpid(), this._emitLine("tasks.push("), this._emitLine("function(template, callback){"), this._emitLine("template.render(context.getVariables(), frame, " + this._makeCallback(e)), this._emitLine("callback(null," + e + ");});"), this._emitLine("});"), this._emitLine("tasks.push("), this._emitLine("function(result, callback){"), this._emitLine(this.buffer + " += result;"), this._emitLine("callback(null);"), this._emitLine("});"), this._emitLine("env.waterfall(tasks, function(){"), this._addScopeLevel()
  8700. }, t.compileTemplateData = function (e, t) {
  8701. this.compileLiteral(e, t)
  8702. }, t.compileCapture = function (e, t) {
  8703. var n = this, r = this.buffer;
  8704. this.buffer = "output", this._emitLine("(function() {"), this._emitLine('var output = "";'), this._withScopedSyntax(function () {
  8705. n.compile(e.body, t)
  8706. }), this._emitLine("return output;"), this._emitLine("})()"), this.buffer = r
  8707. }, t.compileOutput = function (e, t) {
  8708. var n = this;
  8709. e.children.forEach(function (r) {
  8710. r instanceof bu.TemplateData ? r.value && (n._emit(n.buffer + " += "), n.compileLiteral(r, t), n._emitLine(";")) : (n._emit(n.buffer + " += runtime.suppressValue("), n.throwOnUndefined && n._emit("runtime.ensureDefined("), n.compile(r, t), n.throwOnUndefined && n._emit("," + e.lineno + "," + e.colno + ")"), n._emit(", env.opts.autoescape);\n"))
  8711. })
  8712. }, t.compileRoot = function (e, t) {
  8713. var n = this,
  8714. r = (t && this.fail("compileRoot: root node can't have frame"), t = new Vu, this._emitFuncBegin(e, "root"), this._emitLine("var parentTemplate = null;"), this._compileChildren(e, t), this._emitLine("if(parentTemplate) {"), this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"), this._emitLine("} else {"), this._emitLine("cb(null, " + this.buffer + ");"), this._emitLine("}"), this._emitFuncEnd(!0), this.inBlock = !0, []);
  8715. (t = e.findAll(bu.Block)).forEach(function (e, t) {
  8716. var i = e.name.value;
  8717. if (-1 !== r.indexOf(i)) throw new Error('Block "' + i + '" defined more than once.');
  8718. r.push(i), n._emitFuncBegin(e, "b_" + i), i = new Vu, n._emitLine("var frame = frame.push(true);"), n.compile(e.body, i), n._emitFuncEnd()
  8719. }), this._emitLine("return {"), t.forEach(function (e, t) {
  8720. e = "b_" + e.name.value, n._emitLine(e + ": " + e + ",")
  8721. }), this._emitLine("root: root\n};")
  8722. }, t.compile = function (e, t) {
  8723. var n = this["compile" + e.typename];
  8724. n ? n.call(this, e, t) : this.fail("compile: Cannot compile node: " + e.typename, e.lineno, e.colno)
  8725. }, t.getCode = function () {
  8726. return this.codebuf.join("")
  8727. }, r
  8728. }(Ec.Obj), zu = {
  8729. compile: function (e, t, n, r, i) {
  8730. var s = new Qu(r, (i = void 0 === i ? {} : i).throwOnUndefined), e = (n || []).map(function (e) {
  8731. return e.preprocess
  8732. }).filter(function (e) {
  8733. return !!e
  8734. }).reduce(function (e, t) {
  8735. return t(e)
  8736. }, e);
  8737. return s.compile(Bu.transform(ku.parse(e, n, i), t, r)), s.getCode()
  8738. }, Compiler: Qu
  8739. }, Xu = Sr(function (e) {
  8740. function n(e, t) {
  8741. return null == e || !1 === e ? t : e
  8742. }
  8743. function r(e) {
  8744. return e != e
  8745. }
  8746. function i(e) {
  8747. var t = (e = n(e, "")).toLowerCase();
  8748. return Yu.copySafeness(e, t.charAt(0).toUpperCase() + t.slice(1))
  8749. }
  8750. function s(e) {
  8751. if (Ua.isString(e)) return e.split("");
  8752. if (Ua.isObject(e)) return Ua._entries(e || {}).map(function (e) {
  8753. return {key: e[0], value: e[1]}
  8754. });
  8755. if (Ua.isArray(e)) return e;
  8756. throw new Ua.TemplateError("list filter: type not iterable")
  8757. }
  8758. function a(e) {
  8759. return function (t, n, r) {
  8760. var i = this, s = i.env.getTest(n = void 0 === n ? "truthy" : n);
  8761. return Ua.toArray(t).filter(function (t) {
  8762. return s.call(i, t, r) === e
  8763. })
  8764. }
  8765. }
  8766. function o(e) {
  8767. return Yu.copySafeness(e, e.replace(/^\s*|\s*$/g, ""))
  8768. }
  8769. (e = e.exports = {}).abs = Math.abs, e.batch = function (e, t, n) {
  8770. for (var i = [], s = [], r = 0; r < e.length; r++) r % t == 0 && s.length && (i.push(s), s = []), s.push(e[r]);
  8771. if (s.length) {
  8772. if (n) for (r = s.length; r < t; r++) s.push(n);
  8773. i.push(s)
  8774. }
  8775. return i
  8776. }, e.capitalize = i, e.center = function (e, t) {
  8777. var i;
  8778. return (e = n(e, "")).length >= (t = t || 80) ? e : (t -= e.length, i = Ua.repeat(" ", t / 2 - t % 2), t = Ua.repeat(" ", t / 2), Yu.copySafeness(e, i + e + t))
  8779. }, e.default = function (e, t, n) {
  8780. return n ? e || t : void 0 !== e ? e : t
  8781. }, e.dictsort = function (e, t, n) {
  8782. if (!Ua.isObject(e)) throw new Ua.TemplateError("dictsort filter: val must be an object");
  8783. var r, s, i = [];
  8784. for (s in e) i.push([s, e[s]]);
  8785. if (void 0 === n || "key" === n) r = 0; else {
  8786. if ("value" !== n) throw new Ua.TemplateError("dictsort filter: You can only sort by either key or value");
  8787. r = 1
  8788. }
  8789. return i.sort(function (e, n) {
  8790. return e = e[r], n = n[r], t || (Ua.isString(e) && (e = e.toUpperCase()), Ua.isString(n) && (n = n.toUpperCase())), n < e ? 1 : e === n ? 0 : -1
  8791. }), i
  8792. }, e.dump = function (e, t) {
  8793. return JSON.stringify(e, null, t)
  8794. }, e.escape = function (e) {
  8795. return e instanceof Yu.SafeString ? e : Yu.markSafe(Ua.escape((e = null == e ? "" : e).toString()))
  8796. }, e.safe = function (e) {
  8797. return e instanceof Yu.SafeString ? e : Yu.markSafe((e = null == e ? "" : e).toString())
  8798. }, e.first = function (e) {
  8799. return e[0]
  8800. }, e.forceescape = function (e) {
  8801. return Yu.markSafe(Ua.escape((e = null == e ? "" : e).toString()))
  8802. }, e.groupby = function (e, t) {
  8803. return Ua.groupBy(e, t, this.env.opts.throwOnUndefined)
  8804. }, e.indent = function (e, t, r) {
  8805. if ("" === (e = n(e, ""))) return "";
  8806. t = t || 4;
  8807. var i = e.split("\n"), s = Ua.repeat(" ", t), t = i.map(function (e, t) {
  8808. return 0 !== t || r ? "" + s + e : e
  8809. }).join("\n");
  8810. return Yu.copySafeness(e, t)
  8811. }, e.join = function (e, t, n) {
  8812. return t = t || "", (e = n ? Ua.map(e, function (e) {
  8813. return e[n]
  8814. }) : e).join(t)
  8815. }, e.last = function (e) {
  8816. return e[e.length - 1]
  8817. }, e.length = function (e) {
  8818. return void 0 !== (e = n(e, "")) ? "function" == typeof Map && e instanceof Map || "function" == typeof Set && e instanceof Set ? e.size : (!Ua.isObject(e) || e instanceof Yu.SafeString ? e : Ua.keys(e)).length : 0
  8819. }, e.list = s, e.lower = function (e) {
  8820. return (e = n(e, "")).toLowerCase()
  8821. }, e.nl2br = function (e) {
  8822. return null == e ? "" : Yu.copySafeness(e, e.replace(/\r\n|\n/g, "<br />\n"))
  8823. }, e.random = function (e) {
  8824. return e[Math.floor(Math.random() * e.length)]
  8825. }, e.reject = a(!1), e.rejectattr = function (e, t) {
  8826. return e.filter(function (e) {
  8827. return !e[t]
  8828. })
  8829. }, e.select = a(!0), e.selectattr = function (e, t) {
  8830. return e.filter(function (e) {
  8831. return !!e[t]
  8832. })
  8833. }, e.replace = function (e, t, n, r) {
  8834. var i = e;
  8835. if (t instanceof RegExp) return e.replace(t, n);
  8836. void 0 === r && (r = -1);
  8837. var s = "";
  8838. if ("number" == typeof t) t = "" + t; else if ("string" != typeof t) return e;
  8839. if ("string" != typeof (e = "number" == typeof e ? "" + e : e) && !(e instanceof Yu.SafeString)) return e;
  8840. if ("" === t) return s = n + e.split("").join(n) + n, Yu.copySafeness(e, s);
  8841. var a = e.indexOf(t);
  8842. if (0 === r || -1 === a) return e;
  8843. for (var o = 0, c = 0; -1 < a && (-1 === r || c < r);) s += e.substring(o, a) + n, o = a + t.length, c++, a = e.indexOf(t, o);
  8844. return o < e.length && (s += e.substring(o)), Yu.copySafeness(i, s)
  8845. }, e.reverse = function (e) {
  8846. var t;
  8847. return (t = Ua.isString(e) ? s(e) : Ua.map(e, function (e) {
  8848. return e
  8849. })).reverse(), Ua.isString(e) ? Yu.copySafeness(e, t.join("")) : t
  8850. }, e.round = function (e, t, n) {
  8851. return t = t || 0, t = Math.pow(10, t), ("ceil" === n ? Math.ceil : "floor" === n ? Math.floor : Math.round)(e * t) / t
  8852. }, e.slice = function (e, t, n) {
  8853. for (var r = Math.floor(e.length / t), i = e.length % t, s = [], a = 0, o = 0; o < t; o++) {
  8854. var c = a + o * r;
  8855. o < i && a++, c = e.slice(c, a + (o + 1) * r), n && i <= o && c.push(n), s.push(c)
  8856. }
  8857. return s
  8858. }, e.sum = function (e, t, n) {
  8859. return (n = void 0 === n ? 0 : n) + (e = t ? Ua.map(e, function (e) {
  8860. return e[t]
  8861. }) : e).reduce(function (e, t) {
  8862. return e + t
  8863. }, 0)
  8864. }, e.sort = Yu.makeMacro(["value", "reverse", "case_sensitive", "attribute"], [], function (e, t, n, r) {
  8865. var i = this, e = Ua.map(e, function (e) {
  8866. return e
  8867. }), a = Ua.getAttrGetter(r);
  8868. return e.sort(function (e, s) {
  8869. if (e = r ? a(e) : e, s = r ? a(s) : s, i.env.opts.throwOnUndefined && r && (void 0 === e || void 0 === s)) throw new TypeError('sort: attribute "' + r + '" resolved to undefined');
  8870. return !n && Ua.isString(e) && Ua.isString(s) && (e = e.toLowerCase(), s = s.toLowerCase()), e < s ? t ? 1 : -1 : s < e ? t ? -1 : 1 : 0
  8871. }), e
  8872. }), e.string = function (e) {
  8873. return Yu.copySafeness(e, e)
  8874. }, e.striptags = function (e, t) {
  8875. var r = o((e = n(e, "")).replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>|<!--[\s\S]*?-->/gi, "")),
  8876. t = t ? r.replace(/^ +| +$/gm, "").replace(/ +/g, " ").replace(/(\r\n)/g, "\n").replace(/\n\n\n+/g, "\n\n") : r.replace(/\s+/gi, " ");
  8877. return Yu.copySafeness(e, t)
  8878. }, e.title = function (e) {
  8879. var t = (e = n(e, "")).split(" ").map(i);
  8880. return Yu.copySafeness(e, t.join(" "))
  8881. }, e.trim = o, e.truncate = function (e, t, r, i) {
  8882. var s = e;
  8883. return (e = n(e, "")).length <= (t = t || 255) ? e : (e = r ? e.substring(0, t) : (-1 === (r = e.lastIndexOf(" ", t)) && (r = t), e.substring(0, r)), Yu.copySafeness(s, e += null != i ? i : "..."))
  8884. }, e.upper = function (e) {
  8885. return (e = n(e, "")).toUpperCase()
  8886. }, e.urlencode = function (e) {
  8887. var t = encodeURIComponent;
  8888. return Ua.isString(e) ? t(e) : (Ua.isArray(e) ? e : Ua._entries(e)).map(function (e) {
  8889. var n = e[0], e = e[1];
  8890. return t(n) + "=" + t(e)
  8891. }).join("&")
  8892. };
  8893. var c = /^(?:\(|<|&lt;)?(.*?)(?:\.|,|\)|\n|&gt;)?$/, u = /^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,
  8894. l = /^https?:\/\/.*$/, h = /^www\./, f = /\.(?:org|net|com)(?:\:|\/|$)/, p = (e.urlize = function (e, t, n) {
  8895. r(t) && (t = 1 / 0);
  8896. var i = !0 === n ? ' rel="nofollow"' : "";
  8897. return e.split(/(\s+)/).filter(function (e) {
  8898. return e && e.length
  8899. }).map(function (e) {
  8900. var n = e.match(c), s = (n = n ? n[1] : e).substr(0, t);
  8901. return l.test(n) ? '<a href="' + n + '"' + i + ">" + s + "</a>" : h.test(n) ? '<a href="http://' + n + '"' + i + ">" + s + "</a>" : u.test(n) ? '<a href="mailto:' + n + '">' + n + "</a>" : f.test(n) ? '<a href="http://' + n + '"' + i + ">" + s + "</a>" : e
  8902. }).join("")
  8903. }, e.wordcount = function (e) {
  8904. return (e = (e = n(e, "")) ? e.match(/\w+/g) : null) ? e.length : null
  8905. }, e.float = function (e, t) {
  8906. return r(e = parseFloat(e)) ? t : e
  8907. }, Yu.makeMacro(["value", "default", "base"], [], function (e, t, n) {
  8908. return void 0 === n && (n = 10), r(e = parseInt(e, n)) ? t : e
  8909. }));
  8910. e.int = p, e.d = e.default, e.e = e.escape
  8911. }), Zu = {};
  8912. function Ju(e, t) {
  8913. for (var n = 0, r = e.length - 1; 0 <= r; r--) {
  8914. var i = e[r];
  8915. "." === i ? e.splice(r, 1) : ".." === i ? (e.splice(r, 1), n++) : n && (e.splice(r, 1), n--)
  8916. }
  8917. if (t) for (; n--;) e.unshift("..");
  8918. return e
  8919. }
  8920. var el = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/, tl = function (e) {
  8921. return el.exec(e).slice(1)
  8922. };
  8923. function nl() {
  8924. for (var e = "", t = !1, n = arguments.length - 1; -1 <= n && !t; n--) {
  8925. var r = 0 <= n ? arguments[n] : "/";
  8926. if ("string" != typeof r) throw new TypeError("Arguments to path.resolve must be strings");
  8927. r && (e = r + "/" + e, t = "/" === r.charAt(0))
  8928. }
  8929. return (t ? "/" : "") + Ju(al(e.split("/"), function (e) {
  8930. return !!e
  8931. }), !t).join("/") || "."
  8932. }
  8933. function rl(e) {
  8934. var t = il(e), n = "/" === ol(e, -1);
  8935. return (e = (e = Ju(al(e.split("/"), function (e) {
  8936. return !!e
  8937. }), !t).join("/")) || t ? e : ".") && n && (e += "/"), (t ? "/" : "") + e
  8938. }
  8939. function il(e) {
  8940. return "/" === e.charAt(0)
  8941. }
  8942. var sl = {
  8943. extname: function (e) {
  8944. return tl(e)[3]
  8945. }, basename: function (e, t) {
  8946. return e = tl(e)[2], t && e.substr(-1 * t.length) === t ? e.substr(0, e.length - t.length) : e
  8947. }, dirname: function (e) {
  8948. var n = (e = tl(e))[0], e = e[1];
  8949. return n || e ? n + (e && e.substr(0, e.length - 1)) : "."
  8950. }, sep: "/", delimiter: ":", relative: function (e, t) {
  8951. function n(e) {
  8952. for (var t = 0; t < e.length && "" === e[t]; t++) ;
  8953. for (var n = e.length - 1; 0 <= n && "" === e[n]; n--) ;
  8954. return n < t ? [] : e.slice(t, n - t + 1)
  8955. }
  8956. e = nl(e).substr(1), t = nl(t).substr(1);
  8957. for (var r = n(e.split("/")), i = n(t.split("/")), s = Math.min(r.length, i.length), a = s, o = 0; o < s; o++) if (r[o] !== i[o]) {
  8958. a = o;
  8959. break
  8960. }
  8961. for (var c = [], o = a; o < r.length; o++) c.push("..");
  8962. return (c = c.concat(i.slice(a))).join("/")
  8963. }, join: function () {
  8964. return rl(al(Array.prototype.slice.call(arguments, 0), function (e, t) {
  8965. if ("string" != typeof e) throw new TypeError("Arguments to path.join must be strings");
  8966. return e
  8967. }).join("/"))
  8968. }, isAbsolute: il, normalize: rl, resolve: nl
  8969. };
  8970. function al(e, t) {
  8971. if (e.filter) return e.filter(t);
  8972. for (var n = [], r = 0; r < e.length; r++) t(e[r], r, e) && n.push(e[r]);
  8973. return n
  8974. }
  8975. var ol = "b" === "ab".substr(-1) ? function (e, t, n) {
  8976. return e.substr(t, n)
  8977. } : function (e, t, n) {
  8978. return t < 0 && (t = e.length + t), e.substr(t, n)
  8979. };
  8980. function cl(e, t) {
  8981. return (cl = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
  8982. return e.__proto__ = t, e
  8983. })(e, t)
  8984. }
  8985. var ul = function (e) {
  8986. var n;
  8987. function r() {
  8988. return e.apply(this, arguments) || this
  8989. }
  8990. n = e, (t = r).prototype = Object.create(n.prototype), cl(t.prototype.constructor = t, n);
  8991. var t = r.prototype;
  8992. return t.resolve = function (e, t) {
  8993. return sl.resolve(sl.dirname(e), t)
  8994. }, t.isRelative = function (e) {
  8995. return 0 === e.indexOf("./") || 0 === e.indexOf("../")
  8996. }, r
  8997. }(Ec.EmitterObj);
  8998. function ll(e, t) {
  8999. return (ll = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
  9000. return e.__proto__ = t, e
  9001. })(e, t)
  9002. }
  9003. var hl = function (e) {
  9004. var t, n;
  9005. function r(t) {
  9006. var n;
  9007. return (n = e.call(this) || this).precompiled = t || {}, n
  9008. }
  9009. return n = e, (t = r).prototype = Object.create(n.prototype), ll(t.prototype.constructor = t, n), r.prototype.getSource = function (e) {
  9010. return this.precompiled[e] ? {src: {type: "code", obj: this.precompiled[e]}, path: e} : null
  9011. }, r
  9012. }(ul);
  9013. function fl(e, t) {
  9014. e.prototype = Object.create(t.prototype), pl(e.prototype.constructor = e, t)
  9015. }
  9016. function pl(e, t) {
  9017. return (pl = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
  9018. return e.__proto__ = t, e
  9019. })(e, t)
  9020. }
  9021. var dl = hl, ml = function (e) {
  9022. function t(t, n) {
  9023. var r = e.call(this) || this;
  9024. return "boolean" == typeof n && console.log("[nunjucks] Warning: you passed a boolean as the second argument to FileSystemLoader, but it now takes an options object. See http://mozilla.github.io/nunjucks/api.html#filesystemloader"), n = n || {}, r.pathsToNames = {}, r.noCache = !!n.noCache, t ? (t = Array.isArray(t) ? t : [t], r.searchPaths = t.map(sl.normalize)) : r.searchPaths = ["."], n.watch, r
  9025. }
  9026. return fl(t, e), t.prototype.getSource = function (e) {
  9027. for (var t = null, n = this.searchPaths, r = 0; r < n.length; r++) {
  9028. var i = sl.resolve(n[r]), s = sl.resolve(n[r], e);
  9029. if (0 === s.indexOf(i) && Zu.existsSync(s)) {
  9030. t = s;
  9031. break
  9032. }
  9033. }
  9034. if (!t) return null;
  9035. this.pathsToNames[t] = e;
  9036. var a = {src: Zu.readFileSync(t, "utf-8"), path: t, noCache: this.noCache};
  9037. return this.emit("load", e, a), a
  9038. }, t
  9039. }(ul), _l = {
  9040. FileSystemLoader: ml, PrecompiledLoader: dl, NodeResolveLoader: function (e) {
  9041. function t(t) {
  9042. var n;
  9043. return t = t || {}, (n = e.call(this) || this).pathsToNames = {}, n.noCache = !!t.noCache, t.watch, n
  9044. }
  9045. return fl(t, e), t.prototype.getSource = function (e) {
  9046. if (/^\.?\.?(\/|\\)/.test(e)) return null;
  9047. if (/^[A-Z]:/.test(e)) return null;
  9048. try {
  9049. t = vr.resolve(e)
  9050. } catch (e) {
  9051. return null
  9052. }
  9053. this.pathsToNames[t] = e;
  9054. var t = {src: Zu.readFileSync(t, "utf-8"), path: t, noCache: this.noCache};
  9055. return this.emit("load", e, t), t
  9056. }, t
  9057. }(ul)
  9058. }, El = Sr(function (e, t) {
  9059. var n = Yu.SafeString;
  9060. t.callable = function (e) {
  9061. return "function" == typeof e
  9062. }, t.defined = function (e) {
  9063. return void 0 !== e
  9064. }, t.divisibleby = function (e, t) {
  9065. return e % t == 0
  9066. }, t.escaped = function (e) {
  9067. return e instanceof n
  9068. }, t.equalto = function (e, t) {
  9069. return e === t
  9070. }, t.eq = t.equalto, t.sameas = t.equalto, t.even = function (e) {
  9071. return e % 2 == 0
  9072. }, t.falsy = function (e) {
  9073. return !e
  9074. }, t.ge = function (e, t) {
  9075. return t <= e
  9076. }, t.greaterthan = function (e, t) {
  9077. return t < e
  9078. }, t.gt = t.greaterthan, t.le = function (e, t) {
  9079. return e <= t
  9080. }, t.lessthan = function (e, t) {
  9081. return e < t
  9082. }, t.lt = t.lessthan, t.lower = function (e) {
  9083. return e.toLowerCase() === e
  9084. }, t.ne = function (e, t) {
  9085. return e !== t
  9086. }, t.null = function (e) {
  9087. return null === e
  9088. }, t.number = function (e) {
  9089. return "number" == typeof e
  9090. }, t.odd = function (e) {
  9091. return e % 2 == 1
  9092. }, t.string = function (e) {
  9093. return "string" == typeof e
  9094. }, t.truthy = function (e) {
  9095. return !!e
  9096. }, t.undefined = function (e) {
  9097. return void 0 === e
  9098. }, t.upper = function (e) {
  9099. return e.toUpperCase() === e
  9100. }, t.iterable = function (e) {
  9101. return "undefined" != typeof Symbol ? !!e[Symbol.iterator] : Array.isArray(e) || "string" == typeof e
  9102. }, t.mapping = function (e) {
  9103. var t = null != e && "object" == typeof e && !Array.isArray(e);
  9104. return Set ? t && !(e instanceof Set) : t
  9105. }
  9106. }),
  9107. Tl = (El.callable, El.defined, El.divisibleby, El.escaped, El.equalto, El.eq, El.sameas, El.even, El.falsy, El.ge, El.greaterthan, El.gt, El.le, El.lessthan, El.lt, El.lower, El.ne, El.number, El.odd, El.string, El.truthy, El.undefined, El.upper, El.iterable, El.mapping, function () {
  9108. return {
  9109. range: function (e, t, n) {
  9110. var r = [];
  9111. if (0 < (n = void 0 === t ? (t = e, e = 0, 1) : n || 1)) for (var i = e; i < t; i += n) r.push(i); else for (var s = e; t < s; s += n) r.push(s);
  9112. return r
  9113. }, cycler: function () {
  9114. return e = Array.prototype.slice.call(arguments), t = -1, {
  9115. current: null, reset: function () {
  9116. t = -1, this.current = null
  9117. }, next: function () {
  9118. return ++t >= e.length && (t = 0), this.current = e[t], this.current
  9119. }
  9120. };
  9121. var e, t
  9122. }, joiner: function (e) {
  9123. e = e || ",";
  9124. var t = !0;
  9125. return function () {
  9126. var n = t ? "" : e;
  9127. return t = !1, n
  9128. }
  9129. }
  9130. }
  9131. });
  9132. function Al(e, t) {
  9133. e.prototype = Object.create(t.prototype), gl(e.prototype.constructor = e, t)
  9134. }
  9135. function gl(e, t) {
  9136. return (gl = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
  9137. return e.__proto__ = t, e
  9138. })(e, t)
  9139. }
  9140. var vl = _l.FileSystemLoader, yl = _l.WebLoader, Sl = _l.PrecompiledLoader, Cl = Ec.Obj, Nl = Ec.EmitterObj,
  9141. bl = Yu.handleError, Il = Yu.Frame;
  9142. function Ol(e, t, n) {
  9143. Ro(function () {
  9144. e(t, n)
  9145. })
  9146. }
  9147. var kl = {
  9148. type: "code", obj: {
  9149. root: function (e, t, n, r, i) {
  9150. try {
  9151. i(null, "")
  9152. } catch (e) {
  9153. i(bl(e, null, null))
  9154. }
  9155. }
  9156. }
  9157. }, Ll = function (e) {
  9158. function t() {
  9159. return e.apply(this, arguments) || this
  9160. }
  9161. Al(t, e);
  9162. var n = t.prototype;
  9163. return n.init = function (e, t) {
  9164. var n = this;
  9165. t = this.opts = t || {}, this.opts.dev = !!t.dev, this.opts.autoescape = null == t.autoescape || t.autoescape, this.opts.throwOnUndefined = !!t.throwOnUndefined, this.opts.trimBlocks = !!t.trimBlocks, this.opts.lstripBlocks = !!t.lstripBlocks, this.loaders = [], e ? this.loaders = Ua.isArray(e) ? e : [e] : vl ? this.loaders = [new vl("views")] : yl && (this.loaders = [new yl("/views")]), "undefined" != typeof window && window.nunjucksPrecompiled && this.loaders.unshift(new Sl(window.nunjucksPrecompiled)), this._initLoaders(), this.globals = Tl(), this.filters = {}, this.tests = {}, this.asyncFilters = [], this.extensions = {}, this.extensionsList = [], Ua._entries(Xu).forEach(function (e) {
  9166. var t = e[0], e = e[1];
  9167. return n.addFilter(t, e)
  9168. }), Ua._entries(El).forEach(function (e) {
  9169. var t = e[0], e = e[1];
  9170. return n.addTest(t, e)
  9171. })
  9172. }, n._initLoaders = function () {
  9173. var e = this;
  9174. this.loaders.forEach(function (t) {
  9175. t.cache = {}, "function" == typeof t.on && (t.on("update", function (n, r) {
  9176. t.cache[n] = null, e.emit("update", n, r, t)
  9177. }), t.on("load", function (n, r) {
  9178. e.emit("load", n, r, t)
  9179. }))
  9180. })
  9181. }, n.invalidateCache = function () {
  9182. this.loaders.forEach(function (e) {
  9183. e.cache = {}
  9184. })
  9185. }, n.addExtension = function (e, t) {
  9186. return t.__name = e, this.extensions[e] = t, this.extensionsList.push(t), this
  9187. }, n.removeExtension = function (e) {
  9188. var t = this.getExtension(e);
  9189. t && (this.extensionsList = Ua.without(this.extensionsList, t), delete this.extensions[e])
  9190. }, n.getExtension = function (e) {
  9191. return this.extensions[e]
  9192. }, n.hasExtension = function (e) {
  9193. return !!this.extensions[e]
  9194. }, n.addGlobal = function (e, t) {
  9195. return this.globals[e] = t, this
  9196. }, n.getGlobal = function (e) {
  9197. if (void 0 === this.globals[e]) throw new Error("global not found: " + e);
  9198. return this.globals[e]
  9199. }, n.addFilter = function (e, t, n) {
  9200. return n && this.asyncFilters.push(e), this.filters[e] = t, this
  9201. }, n.getFilter = function (e) {
  9202. if (this.filters[e]) return this.filters[e];
  9203. throw new Error("filter not found: " + e)
  9204. }, n.addTest = function (e, t) {
  9205. return this.tests[e] = t, this
  9206. }, n.getTest = function (e) {
  9207. if (this.tests[e]) return this.tests[e];
  9208. throw new Error("test not found: " + e)
  9209. }, n.resolveTemplate = function (e, t, n) {
  9210. return e.isRelative && t && e.isRelative(n) && e.resolve ? e.resolve(t, n) : n
  9211. }, n.getTemplate = function (e, t, n, r, i) {
  9212. var s, a = this, o = this, c = null;
  9213. if (e && e.raw && (e = e.raw), Ua.isFunction(n) && (i = n, n = null, t = t || !1), Ua.isFunction(t) && (i = t, t = !1), e instanceof Rl) c = e; else {
  9214. if ("string" != typeof e) throw new Error("template names must be a string: " + e);
  9215. for (var u = 0; u < this.loaders.length; u++) {
  9216. var l = this.loaders[u];
  9217. if (c = l.cache[this.resolveTemplate(l, n, e)]) break
  9218. }
  9219. }
  9220. return c ? (t && c.compile(), i ? void i(null, c) : c) : (Ua.asyncIter(this.loaders, function (t, r, i, s) {
  9221. function a(e, n) {
  9222. e ? s(e) : n ? (n.loader = t, s(null, n)) : i()
  9223. }
  9224. e = o.resolveTemplate(t, n, e), t.async ? t.getSource(e, a) : a(null, t.getSource(e))
  9225. }, function (n, o) {
  9226. if (n = o || n || r ? n : new Error("template not found: " + e)) {
  9227. if (i) return void i(n);
  9228. throw n
  9229. }
  9230. var c;
  9231. o ? (c = new Rl(o.src, a, o.path, t), o.noCache || (o.loader.cache[e] = c)) : c = new Rl(kl, a, "", t), i ? i(null, c) : s = c
  9232. }), s)
  9233. }, n.express = function (e) {
  9234. return function (e, t) {
  9235. function n(e, t) {
  9236. if (this.name = e, this.path = e, this.defaultEngine = t.defaultEngine, this.ext = sl.extname(e), !this.ext && !this.defaultEngine) throw new Error("No default engine was specified and no extension was provided.");
  9237. this.ext || (this.name += this.ext = ("." !== this.defaultEngine[0] ? "." : "") + this.defaultEngine)
  9238. }
  9239. return n.prototype.render = function (t, n) {
  9240. e.render(this.name, t, n)
  9241. }, t.set("view", n), t.set("nunjucksEnv", e), e
  9242. }(this, e)
  9243. }, n.render = function (e, t, n) {
  9244. Ua.isFunction(t) && (n = t, t = null);
  9245. var r = null;
  9246. return this.getTemplate(e, function (e, i) {
  9247. if (e && n) Ol(n, e); else {
  9248. if (e) throw e;
  9249. r = i.render(t, n)
  9250. }
  9251. }), r
  9252. }, n.renderString = function (e, t, n, r) {
  9253. return Ua.isFunction(n) && (r = n, n = {}), new Rl(e, this, (n = n || {}).path).render(t, r)
  9254. }, n.waterfall = function (e, t, n) {
  9255. return xo(e, t, n)
  9256. }, t
  9257. }(Nl), Dl = function (e) {
  9258. function t() {
  9259. return e.apply(this, arguments) || this
  9260. }
  9261. Al(t, e);
  9262. var n = t.prototype;
  9263. return n.init = function (e, t, n) {
  9264. var r = this;
  9265. this.env = n || new Ll, this.ctx = Ua.extend({}, e), this.blocks = {}, this.exported = [], Ua.keys(t).forEach(function (e) {
  9266. r.addBlock(e, t[e])
  9267. })
  9268. }, n.lookup = function (e) {
  9269. return (e in this.env.globals && !(e in this.ctx) ? this.env.globals : this.ctx)[e]
  9270. }, n.setVariable = function (e, t) {
  9271. this.ctx[e] = t
  9272. }, n.getVariables = function () {
  9273. return this.ctx
  9274. }, n.addBlock = function (e, t) {
  9275. return this.blocks[e] = this.blocks[e] || [], this.blocks[e].push(t), this
  9276. }, n.getBlock = function (e) {
  9277. if (this.blocks[e]) return this.blocks[e][0];
  9278. throw new Error('unknown block "' + e + '"')
  9279. }, n.getSuper = function (e, t, n, r, i, s) {
  9280. var n = Ua.indexOf(this.blocks[t] || [], n), o = this.blocks[t][n + 1];
  9281. if (-1 === n || !o) throw new Error('no super block available for "' + t + '"');
  9282. o(e, this, r, i, s)
  9283. }, n.addExport = function (e) {
  9284. this.exported.push(e)
  9285. }, n.getExported = function () {
  9286. var e = this, t = {};
  9287. return this.exported.forEach(function (n) {
  9288. t[n] = e.ctx[n]
  9289. }), t
  9290. }, t
  9291. }(Cl), Rl = function (e) {
  9292. function t() {
  9293. return e.apply(this, arguments) || this
  9294. }
  9295. Al(t, e);
  9296. var n = t.prototype;
  9297. return n.init = function (e, t, n, r) {
  9298. if (this.env = t || new Ll, Ua.isObject(e)) switch (e.type) {
  9299. case"code":
  9300. this.tmplProps = e.obj;
  9301. break;
  9302. case"string":
  9303. this.tmplStr = e.obj;
  9304. break;
  9305. default:
  9306. throw new Error("Unexpected template object type " + e.type + "; expected 'code', or 'string'")
  9307. } else {
  9308. if (!Ua.isString(e)) throw new Error("src must be a string or an object describing the source");
  9309. this.tmplStr = e
  9310. }
  9311. if (this.path = n, r) try {
  9312. this._compile()
  9313. } catch (e) {
  9314. throw Ua._prettifyError(this.path, this.env.opts.dev, e)
  9315. } else this.compiled = !1
  9316. }, n.render = function (e, t, n) {
  9317. var r = this, i = ("function" == typeof e ? (n = e, e = {}) : "function" == typeof t && (n = t, t = null), !t);
  9318. try {
  9319. this.compile()
  9320. } catch (e) {
  9321. var s = Ua._prettifyError(this.path, this.env.opts.dev, e);
  9322. if (n) return Ol(n, s);
  9323. throw s
  9324. }
  9325. var s = new Dl(e || {}, this.blocks, this.env), c = ((t = t ? t.push(!0) : new Il).topLevel = !0, null), u = !1;
  9326. return this.rootRenderFunc(this.env, s, t, Yu, function (e, t) {
  9327. if (!u || !n || void 0 === t) if (e && (e = Ua._prettifyError(r.path, r.env.opts.dev, e), u = !0), n) i ? Ol(n, e, t) : n(e, t); else {
  9328. if (e) throw e;
  9329. c = t
  9330. }
  9331. }), c
  9332. }, n.getExported = function (e, t, n) {
  9333. "function" == typeof e && (n = e, e = {}), "function" == typeof t && (n = t, t = null);
  9334. try {
  9335. this.compile()
  9336. } catch (e) {
  9337. if (n) return n(e);
  9338. throw e
  9339. }
  9340. (t = t ? t.push() : new Il).topLevel = !0;
  9341. var i = new Dl(e || {}, this.blocks, this.env);
  9342. this.rootRenderFunc(this.env, i, t, Yu, function (e) {
  9343. e ? n(e, null) : n(null, i.getExported())
  9344. })
  9345. }, n.compile = function () {
  9346. this.compiled || this._compile()
  9347. }, n._compile = function () {
  9348. var t = this.tmplProps || (t = zu.compile(this.tmplStr, this.env.asyncFilters, this.env.extensionsList, this.path, this.env.opts), new Function(t)());
  9349. this.blocks = this._getBlocks(t), this.rootRenderFunc = t.root, this.compiled = !0
  9350. }, n._getBlocks = function (e) {
  9351. var t = {};
  9352. return Ua.keys(e).forEach(function (n) {
  9353. "b_" === n.slice(0, 2) && (t[n.slice(2)] = e[n])
  9354. }), t
  9355. }, t
  9356. }(Cl), wl = {Environment: Ll, Template: Rl};
  9357. Ua._prettifyError;
  9358. var xl, Ml = wl.Environment;
  9359. function Pl(e, t) {
  9360. var n;
  9361. return t = t || {}, Ua.isObject(e) && (t = e, e = null), _l.FileSystemLoader ? n = new _l.FileSystemLoader(e, {
  9362. watch: t.watch,
  9363. noCache: t.noCache
  9364. }) : _l.WebLoader && (n = new _l.WebLoader(e, {
  9365. useCache: t.web && t.web.useCache,
  9366. async: t.web && t.web.async
  9367. })), xl = new Ml(n, t), t && t.express && xl.express(t.express), xl
  9368. }
  9369. _l.FileSystemLoader, _l.NodeResolveLoader, _l.PrecompiledLoader, _l.WebLoader;
  9370. var Bl = function (e, t, n) {
  9371. return xl || Pl(), xl.renderString(e, t, n)
  9372. };
  9373. const Fl = 1e3, Ul = 6e4, Hl = 36e5, Gl = "millisecond", jl = "second", ql = "minute", Yl = "hour", Kl = "day",
  9374. Wl = "week", Vl = "month", $l = "quarter", Ql = "year", zl = "date", Xl = "Invalid Date",
  9375. Zl = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
  9376. Jl = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
  9377. var eh = {
  9378. name: "en",
  9379. weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  9380. months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
  9381. ordinal: e => {
  9382. var t = ["th", "st", "nd", "rd"], n = e % 100;
  9383. return `[${e}${t[(n - 20) % 10] || t[n] || t[0]}]`
  9384. }
  9385. };
  9386. const th = (e, t, n) => {
  9387. var r = String(e);
  9388. return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e
  9389. }, nh = (e, t) => {
  9390. var n, r, i;
  9391. return e.date() < t.date() ? -nh(t, e) : (n = 12 * (t.year() - e.year()) + (t.month() - e.month()), i = t - (r = e.clone().add(n, Vl)) < 0, e = e.clone().add(n + (i ? -1 : 1), Vl), +(-(n + (t - r) / (i ? r - e : e - r)) || 0))
  9392. };
  9393. var rh = {
  9394. s: th,
  9395. z: e => {
  9396. var e = -e.utcOffset(), n = Math.abs(e), r = Math.floor(n / 60), n = n % 60;
  9397. return (e <= 0 ? "+" : "-") + th(r, 2, "0") + ":" + th(n, 2, "0")
  9398. },
  9399. m: nh,
  9400. a: e => e < 0 ? Math.ceil(e) || 0 : Math.floor(e),
  9401. p: e => ({
  9402. M: Vl,
  9403. y: Ql,
  9404. w: Wl,
  9405. d: Kl,
  9406. D: zl,
  9407. h: Yl,
  9408. m: ql,
  9409. s: jl,
  9410. ms: Gl,
  9411. Q: $l
  9412. })[e] || String(e || "").toLowerCase().replace(/s$/, ""),
  9413. u: e => void 0 === e
  9414. };
  9415. let ih = "en";
  9416. const sh = {}, ah = (sh[ih] = eh, e => e instanceof lh), oh = (e, t, n) => {
  9417. let r;
  9418. if (!e) return ih;
  9419. if ("string" == typeof e) {
  9420. const n = e.toLowerCase();
  9421. if (sh[n] && (r = n), t && (sh[n] = t, r = n), t = e.split("-"), !r && 1 < t.length) return oh(t[0])
  9422. } else {
  9423. const t = e.name;
  9424. sh[t] = e, r = t
  9425. }
  9426. return !n && r && (ih = r), r || !n && ih
  9427. }, ch = function (e, t) {
  9428. var n;
  9429. return ah(e) ? e.clone() : ((n = "object" == typeof t ? t : {}).date = e, n.args = arguments, new lh(n))
  9430. }, uh = rh;
  9431. uh.l = oh, uh.i = ah, uh.w = (e, t) => ch(e, {locale: t.$L, utc: t.$u, x: t.$x, $offset: t.$offset});
  9432. class lh {
  9433. constructor(e) {
  9434. this.$L = oh(e.locale, null, !0), this.parse(e)
  9435. }
  9436. parse(e) {
  9437. this.$d = (e => {
  9438. const {date: t, utc: n} = e;
  9439. if (null === t) return new Date(NaN);
  9440. if (uh.u(t)) return new Date;
  9441. if (!(t instanceof Date || "string" != typeof t || /Z$/i.test(t))) {
  9442. const e = t.match(Zl);
  9443. if (e) {
  9444. const t = e[2] - 1 || 0, r = (e[7] || "0").substring(0, 3);
  9445. return n ? new Date(Date.UTC(e[1], t, e[3] || 1, e[4] || 0, e[5] || 0, e[6] || 0, r)) : new Date(e[1], t, e[3] || 1, e[4] || 0, e[5] || 0, e[6] || 0, r)
  9446. }
  9447. }
  9448. return new Date(t)
  9449. })(e), this.$x = e.x || {}, this.init()
  9450. }
  9451. init() {
  9452. var e = this.$d;
  9453. this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds()
  9454. }
  9455. $utils() {
  9456. return uh
  9457. }
  9458. isValid() {
  9459. return !(this.$d.toString() === Xl)
  9460. }
  9461. isSame(e, t) {
  9462. return e = ch(e), this.startOf(t) <= e && e <= this.endOf(t)
  9463. }
  9464. isAfter(e, t) {
  9465. return ch(e) < this.startOf(t)
  9466. }
  9467. isBefore(e, t) {
  9468. return this.endOf(t) < ch(e)
  9469. }
  9470. $g(e, t, n) {
  9471. return uh.u(e) ? this[t] : this.set(n, e)
  9472. }
  9473. unix() {
  9474. return Math.floor(this.valueOf() / 1e3)
  9475. }
  9476. valueOf() {
  9477. return this.$d.getTime()
  9478. }
  9479. startOf(e, t) {
  9480. const n = !!uh.u(t) || t, r = uh.p(e),
  9481. i = (e, t) => (t = uh.w(this.$u ? Date.UTC(this.$y, t, e) : new Date(this.$y, t, e), this), n ? t : t.endOf(Kl)),
  9482. s = (e, t) => uh.w(this.toDate()[e].apply(this.toDate("s"), (n ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(t)), this), {
  9483. $W: a,
  9484. $M: o,
  9485. $D: c
  9486. } = this, u = "set" + (this.$u ? "UTC" : "");
  9487. switch (r) {
  9488. case Ql:
  9489. return n ? i(1, 0) : i(31, 11);
  9490. case Vl:
  9491. return n ? i(1, o) : i(0, o + 1);
  9492. case Wl: {
  9493. const e = this.$locale().weekStart || 0, t = (a < e ? a + 7 : a) - e;
  9494. return i(n ? c - t : c + (6 - t), o)
  9495. }
  9496. case Kl:
  9497. case zl:
  9498. return s(u + "Hours", 0);
  9499. case Yl:
  9500. return s(u + "Minutes", 1);
  9501. case ql:
  9502. return s(u + "Seconds", 2);
  9503. case jl:
  9504. return s(u + "Milliseconds", 3);
  9505. default:
  9506. return this.clone()
  9507. }
  9508. }
  9509. endOf(e) {
  9510. return this.startOf(e, !1)
  9511. }
  9512. $set(e, t) {
  9513. var e = uh.p(e), r = "set" + (this.$u ? "UTC" : ""), r = {
  9514. [Kl]: r + "Date",
  9515. [zl]: r + "Date",
  9516. [Vl]: r + "Month",
  9517. [Ql]: r + "FullYear",
  9518. [Yl]: r + "Hours",
  9519. [ql]: r + "Minutes",
  9520. [jl]: r + "Seconds",
  9521. [Gl]: r + "Milliseconds"
  9522. }[e], t = e === Kl ? this.$D + (t - this.$W) : t;
  9523. if (e === Vl || e === Ql) {
  9524. const e = this.clone().set(zl, 1);
  9525. e.$d[r](t), e.init(), this.$d = e.set(zl, Math.min(this.$D, e.daysInMonth())).$d
  9526. } else r && this.$d[r](t);
  9527. return this.init(), this
  9528. }
  9529. set(e, t) {
  9530. return this.clone().$set(e, t)
  9531. }
  9532. get(e) {
  9533. return this[uh.p(e)]()
  9534. }
  9535. add(e, t) {
  9536. e = Number(e);
  9537. var r = t => {
  9538. var n = ch(this);
  9539. return uh.w(n.date(n.date() + Math.round(t * e)), this)
  9540. };
  9541. return (t = uh.p(t)) === Vl ? this.set(Vl, this.$M + e) : t === Ql ? this.set(Ql, this.$y + e) : t === Kl ? r(1) : t === Wl ? r(7) : (r = {
  9542. [ql]: Ul,
  9543. [Yl]: Hl,
  9544. [jl]: Fl
  9545. }[t] || 1, t = this.$d.getTime() + e * r, uh.w(t, this))
  9546. }
  9547. subtract(e, t) {
  9548. return this.add(-1 * e, t)
  9549. }
  9550. format(e) {
  9551. var t = this.$locale();
  9552. if (!this.isValid()) return t.invalidDate || Xl;
  9553. const n = e || "YYYY-MM-DDTHH:mm:ssZ", r = uh.z(this), {$H: i, $m: s, $M: a} = this, {
  9554. weekdays: o,
  9555. months: c,
  9556. meridiem: u
  9557. } = t, l = (e, t, r, i) => e && (e[t] || e(this, n)) || r[t].slice(0, i), h = e => uh.s(i % 12 || 12, e, "0"),
  9558. f = u || ((e, t, n) => (e = e < 12 ? "AM" : "PM", n ? e.toLowerCase() : e)), p = {
  9559. YY: String(this.$y).slice(-2),
  9560. YYYY: this.$y,
  9561. M: a + 1,
  9562. MM: uh.s(a + 1, 2, "0"),
  9563. MMM: l(t.monthsShort, a, c, 3),
  9564. MMMM: l(c, a),
  9565. D: this.$D,
  9566. DD: uh.s(this.$D, 2, "0"),
  9567. d: String(this.$W),
  9568. dd: l(t.weekdaysMin, this.$W, o, 2),
  9569. ddd: l(t.weekdaysShort, this.$W, o, 3),
  9570. dddd: o[this.$W],
  9571. H: String(i),
  9572. HH: uh.s(i, 2, "0"),
  9573. h: h(1),
  9574. hh: h(2),
  9575. a: f(i, s, !0),
  9576. A: f(i, s, !1),
  9577. m: String(s),
  9578. mm: uh.s(s, 2, "0"),
  9579. s: String(this.$s),
  9580. ss: uh.s(this.$s, 2, "0"),
  9581. SSS: uh.s(this.$ms, 3, "0"),
  9582. Z: r
  9583. };
  9584. return n.replace(Jl, (e, t) => t || p[e] || r.replace(":", ""))
  9585. }
  9586. utcOffset() {
  9587. return 15 * -Math.round(this.$d.getTimezoneOffset() / 15)
  9588. }
  9589. diff(e, t, n) {
  9590. var t = uh.p(t), s = ((e = ch(e)).utcOffset() - this.utcOffset()) * Ul, a = this - e, e = uh.m(this, e), e = {
  9591. [Ql]: e / 12,
  9592. [Vl]: e,
  9593. [$l]: e / 3,
  9594. [Wl]: (a - s) / 6048e5,
  9595. [Kl]: (a - s) / 864e5,
  9596. [Yl]: a / Hl,
  9597. [ql]: a / Ul,
  9598. [jl]: a / Fl
  9599. }[t] || a;
  9600. return n ? e : uh.a(e)
  9601. }
  9602. daysInMonth() {
  9603. return this.endOf(Vl).$D
  9604. }
  9605. $locale() {
  9606. return sh[this.$L]
  9607. }
  9608. locale(e, t) {
  9609. var n;
  9610. return e ? (n = this.clone(), (e = oh(e, t, !0)) && (n.$L = e), n) : this.$L
  9611. }
  9612. clone() {
  9613. return uh.w(this.$d, this)
  9614. }
  9615. toDate() {
  9616. return new Date(this.valueOf())
  9617. }
  9618. toJSON() {
  9619. return this.isValid() ? this.toISOString() : null
  9620. }
  9621. toISOString() {
  9622. return this.$d.toISOString()
  9623. }
  9624. toString() {
  9625. return this.$d.toUTCString()
  9626. }
  9627. }
  9628. const hh = lh.prototype;
  9629. ch.prototype = hh, [["$ms", Gl], ["$s", jl], ["$m", ql], ["$H", Yl], ["$W", Kl], ["$M", Vl], ["$y", Ql], ["$D", zl]].forEach(e => {
  9630. hh[e[1]] = function (t) {
  9631. return this.$g(t, e[0], e[1])
  9632. }
  9633. }), ch.extend = (e, t) => (e.$i || (e(t, lh, ch), e.$i = !0), ch), ch.locale = oh, ch.isDayjs = ah, ch.unix = e => ch(1e3 * e), ch.en = sh[ih], ch.Ls = sh, ch.p = {};
  9634. var fh = Sr(function (e) {
  9635. function r(e) {
  9636. return e && (e = e.toString().replace(n.pluses, "%20"), e = decodeURIComponent(e)), e
  9637. }
  9638. function i(e) {
  9639. var t, i, s, a, o, c, u, l = [];
  9640. if (null != e && "" !== e) for (u = (i = (e = (t = 0) === e.indexOf("?") ? e.substring(1) : e).toString().split(n.query_separator)).length; t < u; t++) 0 !== (a = (s = i[t]).indexOf("=")) && (o = r(s.substring(0, a)), c = r(s.substring(a + 1)), l.push(-1 === a ? [s, null] : [o, c]));
  9641. return l
  9642. }
  9643. function s(e) {
  9644. this.uriParts = function (e) {
  9645. var t = n.uri_parser.exec(e || ""), r = {};
  9646. return ["source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "isColonUri", "relative", "path", "directory", "file", "query", "anchor"].forEach(function (e, n) {
  9647. r[e] = t[n] || ""
  9648. }), r
  9649. }(e), this.queryPairs = i(this.uriParts.query), this.hasAuthorityPrefixUserPref = null
  9650. }
  9651. var n = {
  9652. starts_with_slashes: /^\/+/,
  9653. ends_with_slashes: /\/+$/,
  9654. pluses: /\+/g,
  9655. query_separator: /[&;]/,
  9656. uri_parser: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@\/]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
  9657. };
  9658. Array.prototype.forEach || (Array.prototype.forEach = function (e, t) {
  9659. var n, r;
  9660. if (null == this) throw new TypeError(" this is null or not defined");
  9661. var a, i = Object(this), s = i.length >>> 0;
  9662. if ("function" != typeof e) throw new TypeError(e + " is not a function");
  9663. for (1 < arguments.length && (n = t), r = 0; r < s;) r in i && (a = i[r], e.call(n, a, r, i)), r++
  9664. }), ["protocol", "userInfo", "host", "port", "path", "anchor"].forEach(function (e) {
  9665. s.prototype[e] = function (t) {
  9666. return void 0 !== t && (this.uriParts[e] = t), this.uriParts[e]
  9667. }
  9668. }), s.prototype.hasAuthorityPrefix = function (e) {
  9669. return void 0 !== e && (this.hasAuthorityPrefixUserPref = e), null === this.hasAuthorityPrefixUserPref ? -1 !== this.uriParts.source.indexOf("//") : this.hasAuthorityPrefixUserPref
  9670. }, s.prototype.isColonUri = function (e) {
  9671. if (void 0 === e) return !!this.uriParts.isColonUri;
  9672. this.uriParts.isColonUri = !!e
  9673. }, s.prototype.query = function (e, t) {
  9674. var n, r, s, a = "", o = void 0 === t || t;
  9675. for (void 0 !== e && (this.queryPairs = i(e)), n = 0, s = this.queryPairs.length; n < s; n++) r = this.queryPairs[n], 0 < a.length && (a += "&"), null === r[1] ? a += r[0] : (a = a + r[0] + "=", void 0 !== r[1] && (a += o ? encodeURIComponent(r[1]) : r[1]));
  9676. return 0 < a.length ? "?" + a : a
  9677. }, s.prototype.getQueryParamValue = function (e) {
  9678. for (var t, n = 0, r = this.queryPairs.length; n < r; n++) if (e === (t = this.queryPairs[n])[0]) return t[1]
  9679. }, s.prototype.getQueryParamValues = function (e) {
  9680. for (var n, i = [], t = 0, r = this.queryPairs.length; t < r; t++) e === (n = this.queryPairs[t])[0] && i.push(n[1]);
  9681. return i
  9682. }, s.prototype.deleteQueryParam = function (e, t) {
  9683. for (var i, s, a, c = [], n = 0, o = this.queryPairs.length; n < o; n++) s = r((i = this.queryPairs[n])[0]) === r(e), a = i[1] === t, (1 !== arguments.length || s) && (2 !== arguments.length || s && a) || c.push(i);
  9684. return this.queryPairs = c, this
  9685. }, s.prototype.addQueryParam = function (e, t, n) {
  9686. return 3 === arguments.length && -1 !== n ? (n = Math.min(n, this.queryPairs.length), this.queryPairs.splice(n, 0, [e, t])) : 0 < arguments.length && this.queryPairs.push([e, t]), this
  9687. }, s.prototype.hasQueryParam = function (e) {
  9688. for (var n = this.queryPairs.length, t = 0; t < n; t++) if (this.queryPairs[t][0] == e) return !0;
  9689. return !1
  9690. }, s.prototype.replaceQueryParam = function (e, t, n) {
  9691. var i, s, a = -1, o = this.queryPairs.length;
  9692. if (3 === arguments.length) {
  9693. for (i = 0; i < o; i++) if (r((s = this.queryPairs[i])[0]) === r(e) && decodeURIComponent(s[1]) === r(n)) {
  9694. a = i;
  9695. break
  9696. }
  9697. 0 <= a && this.deleteQueryParam(e, r(n)).addQueryParam(e, t, a)
  9698. } else {
  9699. for (i = 0; i < o; i++) if (r((s = this.queryPairs[i])[0]) === r(e)) {
  9700. a = i;
  9701. break
  9702. }
  9703. this.deleteQueryParam(e), this.addQueryParam(e, t, a)
  9704. }
  9705. return this
  9706. }, ["protocol", "hasAuthorityPrefix", "isColonUri", "userInfo", "host", "port", "path", "query", "anchor"].forEach(function (e) {
  9707. var t = "set" + e.charAt(0).toUpperCase() + e.slice(1);
  9708. s.prototype[t] = function (t) {
  9709. return this[e](t), this
  9710. }
  9711. }), s.prototype.scheme = function () {
  9712. var e = "";
  9713. return this.protocol() ? (e += this.protocol(), this.protocol().indexOf(":") !== this.protocol().length - 1 && (e += ":"), e += "//") : this.hasAuthorityPrefix() && this.host() && (e += "//"), e
  9714. }, s.prototype.origin = function () {
  9715. var e = this.scheme();
  9716. return this.userInfo() && this.host() && (e += this.userInfo(), this.userInfo().indexOf("@") !== this.userInfo().length - 1) && (e += "@"), this.host() && (e += this.host(), this.port() || this.path() && this.path().substr(0, 1).match(/[0-9]/)) && (e += ":" + this.port()), e
  9717. }, s.prototype.addTrailingSlash = function () {
  9718. var e = this.path() || "";
  9719. return "/" !== e.substr(-1) && this.path(e + "/"), this
  9720. }, s.prototype.toString = function (e) {
  9721. var t, r = this.origin();
  9722. return this.isColonUri() ? this.path() && (r += ":" + this.path()) : this.path() ? (t = this.path(), n.ends_with_slashes.test(r) || n.starts_with_slashes.test(t) ? (r && r.replace(n.ends_with_slashes, "/"), t = t.replace(n.starts_with_slashes, "/")) : r += "/", r += t) : this.host() && (this.query(void 0, e).toString() || this.anchor()) && (r += "/"), this.query(void 0, e).toString() && (r += this.query(void 0, e).toString()), this.anchor() && (0 !== this.anchor().indexOf("#") && (r += "#"), r += this.anchor()), r
  9723. }, s.prototype.clone = function () {
  9724. return new s(this.toString())
  9725. }, e.exports = s
  9726. }), ph = Sr(function (e, t) {
  9727. !function () {
  9728. var n, r = "Expected a function", i = "__lodash_hash_undefined__", s = "__lodash_placeholder__", o = 32,
  9729. u = 128, h = 1 / 0, f = 9007199254740991, p = NaN, d = 4294967295,
  9730. m = [["ary", u], ["bind", 1], ["bindKey", 2], ["curry", 8], ["curryRight", 16], ["flip", 512], ["partial", o], ["partialRight", 64], ["rearg", 256]],
  9731. _ = "[object Arguments]", E = "[object Array]", T = "[object Boolean]", A = "[object Date]",
  9732. g = "[object Error]", v = "[object Function]", y = "[object GeneratorFunction]", S = "[object Map]",
  9733. C = "[object Number]", N = "[object Object]", b = "[object Promise]", I = "[object RegExp]",
  9734. O = "[object Set]", k = "[object String]", L = "[object Symbol]", D = "[object WeakMap]",
  9735. R = "[object ArrayBuffer]", w = "[object DataView]", x = "[object Float32Array]",
  9736. M = "[object Float64Array]", P = "[object Int8Array]", B = "[object Int16Array]", F = "[object Int32Array]",
  9737. U = "[object Uint8Array]", H = "[object Uint8ClampedArray]", G = "[object Uint16Array]",
  9738. j = "[object Uint32Array]", q = /\b__p \+= '';/g, Y = /\b(__p \+=) '' \+/g,
  9739. K = /(__e\(.*?\)|\b__t\)) \+\n'';/g, W = /&(?:amp|lt|gt|quot|#39);/g, V = /[&<>"']/g, $ = RegExp(W.source),
  9740. Q = RegExp(V.source), z = /<%-([\s\S]+?)%>/g, X = /<%([\s\S]+?)%>/g, Z = /<%=([\s\S]+?)%>/g,
  9741. J = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ee = /^\w*$/,
  9742. te = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
  9743. ne = /[\\^$.*+?()[\]{}|]/g, re = RegExp(ne.source), ie = /^\s+/, se = /\s/,
  9744. ae = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, oe = /\{\n\/\* \[wrapped with (.+)\] \*/, ce = /,? & /,
  9745. ue = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, le = /[()=,{}\[\]\/\s]/, he = /\\(\\)?/g,
  9746. fe = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, pe = /\w*$/, de = /^[-+]0x[0-9a-f]+$/i, me = /^0b[01]+$/i,
  9747. _e = /^\[object .+?Constructor\]$/, Ee = /^0o[0-7]+$/i, Te = /^(?:0|[1-9]\d*)$/,
  9748. Ae = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ge = /($^)/, ve = /['\n\r\u2028\u2029\\]/g,
  9749. ye = "\\ud800-\\udfff", Se = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", Ce = "\\u2700-\\u27bf",
  9750. be = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ie = "\\ufe0e\\ufe0f", Le = "[" + ye + "]",
  9751. De = "[" + (Oe = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000") + "]",
  9752. Re = "[" + Se + "]", xe = "[" + Ce + "]", Me = "[" + (Ne = "a-z\\xdf-\\xf6\\xf8-\\xff") + "]",
  9753. He = "[\\ud800-\\udbff][\\udc00-\\udfff]", je = "\\u200d",
  9754. qe = "(?:" + Me + "|" + (Oe = "[^" + ye + Oe + "\\d+" + Ce + Ne + be + "]") + ")",
  9755. Oe = "(?:" + (be = "[" + be + "]") + "|" + Oe + ")", Ke = "(?:['’](?:d|ll|m|re|s|t|ve))?",
  9756. We = "(?:['’](?:D|LL|M|RE|S|T|VE))?",
  9757. $e = ($e = "[" + Ie + "]?") + (Ve = "(?:" + Re + "|" + (Ce = "\\ud83c[\\udffb-\\udfff]") + ")?") + "(?:" + je + "(?:" + [Ne = "[^" + ye + "]", Ue = "(?:\\ud83c[\\udde6-\\uddff]){2}", He].join("|") + ")" + $e + Ve + ")*",
  9758. Ve = "(?:" + [xe, Ue, He].join("|") + ")" + $e,
  9759. xe = "(?:" + [Ne + Re + "?", Re, Ue, He, Le].join("|") + ")", Ze = RegExp("['’]", "g"),
  9760. Je = RegExp(Re, "g"), et = RegExp(Ce + "(?=" + Ce + ")|" + xe + $e, "g"),
  9761. tt = RegExp([be + "?" + Me + "+" + Ke + "(?=" + [De, be, "$"].join("|") + ")", Oe + "+" + We + "(?=" + [De, be + qe, "$"].join("|") + ")", be + "?" + qe + "+" + Ke, be + "+" + We, "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", "\\d+", Ve].join("|"), "g"),
  9762. nt = RegExp("[" + je + ye + Se + Ie + "]"),
  9763. rt = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,
  9764. it = ["Array", "Buffer", "DataView", "Date", "Error", "Float32Array", "Float64Array", "Function", "Int8Array", "Int16Array", "Int32Array", "Map", "Math", "Object", "Promise", "RegExp", "Set", "String", "Symbol", "TypeError", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "WeakMap", "_", "clearTimeout", "isFinite", "parseInt", "setTimeout"],
  9765. st = -1, at = {},
  9766. ot = (at[x] = at[M] = at[P] = at[B] = at[F] = at[U] = at[H] = at[G] = at[j] = !0, at[_] = at[E] = at[R] = at[T] = at[w] = at[A] = at[g] = at[v] = at[S] = at[C] = at[N] = at[I] = at[O] = at[k] = at[D] = !1, {}),
  9767. ct = (ot[_] = ot[E] = ot[R] = ot[w] = ot[T] = ot[A] = ot[x] = ot[M] = ot[P] = ot[B] = ot[F] = ot[S] = ot[C] = ot[N] = ot[I] = ot[O] = ot[k] = ot[L] = ot[U] = ot[H] = ot[G] = ot[j] = !0, ot[g] = ot[v] = ot[D] = !1, {
  9768. "\\": "\\",
  9769. "'": "'",
  9770. "\n": "n",
  9771. "\r": "r",
  9772. "\u2028": "u2028",
  9773. "\u2029": "u2029"
  9774. }), ut = parseFloat, lt = parseInt, Ne = "object" == typeof gr && gr && gr.Object === Object && gr,
  9775. Ue = "object" == typeof self && self && self.Object === Object && self,
  9776. pt = Ne || Ue || Function("return this")(), mt = (He = t && !t.nodeType && t) && e && !e.nodeType && e,
  9777. _t = mt && mt.exports === He, Et = _t && Ne.process, At = (Le = function () {
  9778. try {
  9779. return mt && mt.require && mt.require("util").types || Et && Et.binding && Et.binding("util")
  9780. } catch (e) {
  9781. }
  9782. }()) && Le.isArrayBuffer, gt = Le && Le.isDate, vt = Le && Le.isMap, yt = Le && Le.isRegExp,
  9783. St = Le && Le.isSet, Ct = Le && Le.isTypedArray;
  9784. function Nt(e, t, n) {
  9785. switch (n.length) {
  9786. case 0:
  9787. return e.call(t);
  9788. case 1:
  9789. return e.call(t, n[0]);
  9790. case 2:
  9791. return e.call(t, n[0], n[1]);
  9792. case 3:
  9793. return e.call(t, n[0], n[1], n[2])
  9794. }
  9795. return e.apply(t, n)
  9796. }
  9797. function bt(e, t, n, r) {
  9798. for (var i = -1, s = null == e ? 0 : e.length; ++i < s;) {
  9799. var a = e[i];
  9800. t(r, a, n(a), e)
  9801. }
  9802. return r
  9803. }
  9804. function It(e, t) {
  9805. for (var n = -1, r = null == e ? 0 : e.length; ++n < r && !1 !== t(e[n], n, e);) ;
  9806. return e
  9807. }
  9808. function kt(e, t) {
  9809. for (var n = -1, r = null == e ? 0 : e.length; ++n < r;) if (!t(e[n], n, e)) return !1;
  9810. return !0
  9811. }
  9812. function Lt(e, t) {
  9813. for (var n = -1, r = null == e ? 0 : e.length, i = 0, s = []; ++n < r;) {
  9814. var a = e[n];
  9815. t(a, n, e) && (s[i++] = a)
  9816. }
  9817. return s
  9818. }
  9819. function Dt(e, t) {
  9820. return !(null == e || !e.length) && -1 < Gt(e, t, 0)
  9821. }
  9822. function Rt(e, t, n) {
  9823. for (var r = -1, i = null == e ? 0 : e.length; ++r < i;) if (n(t, e[r])) return !0;
  9824. return !1
  9825. }
  9826. function wt(e, t) {
  9827. for (var n = -1, r = null == e ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
  9828. return i
  9829. }
  9830. function xt(e, t) {
  9831. for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
  9832. return e
  9833. }
  9834. function Mt(e, t, n, r) {
  9835. var i = -1, s = null == e ? 0 : e.length;
  9836. for (r && s && (n = e[++i]); ++i < s;) n = t(n, e[i], i, e);
  9837. return n
  9838. }
  9839. function Pt(e, t, n, r) {
  9840. var i = null == e ? 0 : e.length;
  9841. for (r && i && (n = e[--i]); i--;) n = t(n, e[i], i, e);
  9842. return n
  9843. }
  9844. function Bt(e, t) {
  9845. for (var n = -1, r = null == e ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
  9846. return !1
  9847. }
  9848. var Ft = Kt("length");
  9849. function Ut(e, t, n) {
  9850. var r;
  9851. return n(e, function (e, n, i) {
  9852. if (t(e, n, i)) return r = n, !1
  9853. }), r
  9854. }
  9855. function Ht(e, t, n, r) {
  9856. for (var i = e.length, s = n + (r ? 1 : -1); r ? s-- : ++s < i;) if (t(e[s], s, e)) return s;
  9857. return -1
  9858. }
  9859. function Gt(e, t, n) {
  9860. return t == t ? function (e, t, n) {
  9861. for (var r = n - 1, i = e.length; ++r < i;) if (e[r] === t) return r;
  9862. return -1
  9863. }(e, t, n) : Ht(e, qt, n)
  9864. }
  9865. function jt(e, t, n, r) {
  9866. for (var i = n - 1, s = e.length; ++i < s;) if (r(e[i], t)) return i;
  9867. return -1
  9868. }
  9869. function qt(e) {
  9870. return e != e
  9871. }
  9872. function Yt(e, t) {
  9873. var n = null == e ? 0 : e.length;
  9874. return n ? $t(e, t) / n : p
  9875. }
  9876. function Kt(e) {
  9877. return function (t) {
  9878. return null == t ? n : t[e]
  9879. }
  9880. }
  9881. function Wt(e) {
  9882. return function (t) {
  9883. return null == e ? n : e[t]
  9884. }
  9885. }
  9886. function Vt(e, t, n, r, i) {
  9887. return i(e, function (e, i, s) {
  9888. n = r ? (r = !1, e) : t(n, e, i, s)
  9889. }), n
  9890. }
  9891. function $t(e, t) {
  9892. for (var r, i = -1, s = e.length; ++i < s;) {
  9893. var a = t(e[i]);
  9894. a !== n && (r = r === n ? a : r + a)
  9895. }
  9896. return r
  9897. }
  9898. function Qt(e, t) {
  9899. for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
  9900. return r
  9901. }
  9902. function zt(e) {
  9903. return e && e.slice(0, dn(e) + 1).replace(ie, "")
  9904. }
  9905. function Xt(e) {
  9906. return function (t) {
  9907. return e(t)
  9908. }
  9909. }
  9910. function Zt(e, t) {
  9911. return wt(t, function (t) {
  9912. return e[t]
  9913. })
  9914. }
  9915. function Jt(e, t) {
  9916. return e.has(t)
  9917. }
  9918. function en(e, t) {
  9919. for (var n = -1, r = e.length; ++n < r && -1 < Gt(t, e[n], 0);) ;
  9920. return n
  9921. }
  9922. function tn(e, t) {
  9923. for (var n = e.length; n-- && -1 < Gt(t, e[n], 0);) ;
  9924. return n
  9925. }
  9926. var nn = Wt({
  9927. "À": "A",
  9928. "Á": "A",
  9929. "Â": "A",
  9930. "Ã": "A",
  9931. "Ä": "A",
  9932. "Å": "A",
  9933. "à": "a",
  9934. "á": "a",
  9935. "â": "a",
  9936. "ã": "a",
  9937. "ä": "a",
  9938. "å": "a",
  9939. "Ç": "C",
  9940. "ç": "c",
  9941. "Ð": "D",
  9942. "ð": "d",
  9943. "È": "E",
  9944. "É": "E",
  9945. "Ê": "E",
  9946. "Ë": "E",
  9947. "è": "e",
  9948. "é": "e",
  9949. "ê": "e",
  9950. "ë": "e",
  9951. "Ì": "I",
  9952. "Í": "I",
  9953. "Î": "I",
  9954. "Ï": "I",
  9955. "ì": "i",
  9956. "í": "i",
  9957. "î": "i",
  9958. "ï": "i",
  9959. "Ñ": "N",
  9960. "ñ": "n",
  9961. "Ò": "O",
  9962. "Ó": "O",
  9963. "Ô": "O",
  9964. "Õ": "O",
  9965. "Ö": "O",
  9966. "Ø": "O",
  9967. "ò": "o",
  9968. "ó": "o",
  9969. "ô": "o",
  9970. "õ": "o",
  9971. "ö": "o",
  9972. "ø": "o",
  9973. "Ù": "U",
  9974. "Ú": "U",
  9975. "Û": "U",
  9976. "Ü": "U",
  9977. "ù": "u",
  9978. "ú": "u",
  9979. "û": "u",
  9980. "ü": "u",
  9981. "Ý": "Y",
  9982. "ý": "y",
  9983. "ÿ": "y",
  9984. "Æ": "Ae",
  9985. "æ": "ae",
  9986. "Þ": "Th",
  9987. "þ": "th",
  9988. "ß": "ss",
  9989. "Ā": "A",
  9990. "Ă": "A",
  9991. "Ą": "A",
  9992. "ā": "a",
  9993. "ă": "a",
  9994. "ą": "a",
  9995. "Ć": "C",
  9996. "Ĉ": "C",
  9997. "Ċ": "C",
  9998. "Č": "C",
  9999. "ć": "c",
  10000. "ĉ": "c",
  10001. "ċ": "c",
  10002. "č": "c",
  10003. "Ď": "D",
  10004. "Đ": "D",
  10005. "ď": "d",
  10006. "đ": "d",
  10007. "Ē": "E",
  10008. "Ĕ": "E",
  10009. "Ė": "E",
  10010. "Ę": "E",
  10011. "Ě": "E",
  10012. "ē": "e",
  10013. "ĕ": "e",
  10014. "ė": "e",
  10015. "ę": "e",
  10016. "ě": "e",
  10017. "Ĝ": "G",
  10018. "Ğ": "G",
  10019. "Ġ": "G",
  10020. "Ģ": "G",
  10021. "ĝ": "g",
  10022. "ğ": "g",
  10023. "ġ": "g",
  10024. "ģ": "g",
  10025. "Ĥ": "H",
  10026. "Ħ": "H",
  10027. "ĥ": "h",
  10028. "ħ": "h",
  10029. "Ĩ": "I",
  10030. "Ī": "I",
  10031. "Ĭ": "I",
  10032. "Į": "I",
  10033. "İ": "I",
  10034. "ĩ": "i",
  10035. "ī": "i",
  10036. "ĭ": "i",
  10037. "į": "i",
  10038. "ı": "i",
  10039. "Ĵ": "J",
  10040. "ĵ": "j",
  10041. "Ķ": "K",
  10042. "ķ": "k",
  10043. "ĸ": "k",
  10044. "Ĺ": "L",
  10045. "Ļ": "L",
  10046. "Ľ": "L",
  10047. "Ŀ": "L",
  10048. "Ł": "L",
  10049. "ĺ": "l",
  10050. "ļ": "l",
  10051. "ľ": "l",
  10052. "ŀ": "l",
  10053. "ł": "l",
  10054. "Ń": "N",
  10055. "Ņ": "N",
  10056. "Ň": "N",
  10057. "Ŋ": "N",
  10058. "ń": "n",
  10059. "ņ": "n",
  10060. "ň": "n",
  10061. "ŋ": "n",
  10062. "Ō": "O",
  10063. "Ŏ": "O",
  10064. "Ő": "O",
  10065. "ō": "o",
  10066. "ŏ": "o",
  10067. "ő": "o",
  10068. "Ŕ": "R",
  10069. "Ŗ": "R",
  10070. "Ř": "R",
  10071. "ŕ": "r",
  10072. "ŗ": "r",
  10073. "ř": "r",
  10074. "Ś": "S",
  10075. "Ŝ": "S",
  10076. "Ş": "S",
  10077. "Š": "S",
  10078. "ś": "s",
  10079. "ŝ": "s",
  10080. "ş": "s",
  10081. "š": "s",
  10082. "Ţ": "T",
  10083. "Ť": "T",
  10084. "Ŧ": "T",
  10085. "ţ": "t",
  10086. "ť": "t",
  10087. "ŧ": "t",
  10088. "Ũ": "U",
  10089. "Ū": "U",
  10090. "Ŭ": "U",
  10091. "Ů": "U",
  10092. "Ű": "U",
  10093. "Ų": "U",
  10094. "ũ": "u",
  10095. "ū": "u",
  10096. "ŭ": "u",
  10097. "ů": "u",
  10098. "ű": "u",
  10099. "ų": "u",
  10100. "Ŵ": "W",
  10101. "ŵ": "w",
  10102. "Ŷ": "Y",
  10103. "ŷ": "y",
  10104. "Ÿ": "Y",
  10105. "Ź": "Z",
  10106. "Ż": "Z",
  10107. "Ž": "Z",
  10108. "ź": "z",
  10109. "ż": "z",
  10110. "ž": "z",
  10111. "IJ": "IJ",
  10112. "ij": "ij",
  10113. "Œ": "Oe",
  10114. "œ": "oe",
  10115. "ʼn": "'n",
  10116. "ſ": "s"
  10117. }), rn = Wt({"&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;"});
  10118. function sn(e) {
  10119. return "\\" + ct[e]
  10120. }
  10121. function an(e) {
  10122. return nt.test(e)
  10123. }
  10124. function on(e) {
  10125. var t = -1, n = Array(e.size);
  10126. return e.forEach(function (e, r) {
  10127. n[++t] = [r, e]
  10128. }), n
  10129. }
  10130. function cn(e, t) {
  10131. return function (n) {
  10132. return e(t(n))
  10133. }
  10134. }
  10135. function un(e, t) {
  10136. for (var n = -1, r = e.length, i = 0, a = []; ++n < r;) {
  10137. var o = e[n];
  10138. o !== t && o !== s || (e[n] = s, a[i++] = n)
  10139. }
  10140. return a
  10141. }
  10142. function ln(e) {
  10143. var t = -1, n = Array(e.size);
  10144. return e.forEach(function (e) {
  10145. n[++t] = e
  10146. }), n
  10147. }
  10148. function fn(e) {
  10149. return (an(e) ? function (e) {
  10150. for (var t = et.lastIndex = 0; et.test(e);) ++t;
  10151. return t
  10152. } : Ft)(e)
  10153. }
  10154. function pn(e) {
  10155. return an(e) ? function (e) {
  10156. return e.match(et) || []
  10157. }(e) : e.split("")
  10158. }
  10159. function dn(e) {
  10160. for (var t = e.length; t-- && se.test(e.charAt(t));) ;
  10161. return t
  10162. }
  10163. var mn = Wt({"&amp;": "&", "&lt;": "<", "&gt;": ">", "&quot;": '"', "&#39;": "'"}), _n = function e(t) {
  10164. var ye = (t = null == t ? pt : _n.defaults(pt.Object(), t, _n.pick(pt, it))).Array, Se = t.Date,
  10165. Ce = t.Error, Ne = t.Function, be = t.Math, Ie = t.Object, Oe = t.RegExp, ke = t.String,
  10166. Le = t.TypeError, De = ye.prototype, Re = Ne.prototype, we = Ie.prototype, xe = t["__core-js_shared__"],
  10167. Me = Re.toString, Pe = we.hasOwnProperty, Be = 0,
  10168. Fe = (Re = /[^.]+$/.exec(xe && xe.keys && xe.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Re : "",
  10169. Ue = we.toString, He = Me.call(Ie), Ge = pt._,
  10170. je = Oe("^" + Me.call(Pe).replace(ne, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"),
  10171. Re = _t ? t.Buffer : n, Ye = t.Symbol, Ke = t.Uint8Array, We = Re ? Re.allocUnsafe : n,
  10172. Ve = cn(Ie.getPrototypeOf, Ie), $e = Ie.create, Qe = we.propertyIsEnumerable, ze = De.splice,
  10173. Xe = Ye ? Ye.isConcatSpreadable : n, et = Ye ? Ye.iterator : n, nt = Ye ? Ye.toStringTag : n,
  10174. ct = function () {
  10175. try {
  10176. var e = fs(Ie, "defineProperty");
  10177. return e({}, "", {}), e
  10178. } catch (e) {
  10179. }
  10180. }(), ht = t.clearTimeout !== pt.clearTimeout && t.clearTimeout,
  10181. ft = Se && Se.now !== pt.Date.now && Se.now, dt = t.setTimeout !== pt.setTimeout && t.setTimeout,
  10182. mt = be.ceil, Et = be.floor, Tt = Ie.getOwnPropertySymbols, Re = Re ? Re.isBuffer : n, Wt = t.isFinite,
  10183. En = De.join, Tn = cn(Ie.keys, Ie), An = be.max, gn = be.min, vn = Se.now, yn = t.parseInt,
  10184. Sn = be.random, Cn = De.reverse, Se = fs(t, "DataView"), bn = fs(t, "Map"), In = fs(t, "Promise"),
  10185. On = fs(t, "Set"), t = fs(t, "WeakMap"), Ln = fs(Ie, "create"), Dn = t && new t, Rn = {}, wn = Fs(Se),
  10186. xn = Fs(bn), Mn = Fs(In), Pn = Fs(On), Bn = Fs(t), Un = (Ye = Ye ? Ye.prototype : n) ? Ye.valueOf : n,
  10187. Hn = Ye ? Ye.toString : n;
  10188. function Gn(e) {
  10189. if (to(e) && !Ya(e) && !(e instanceof Kn)) {
  10190. if (e instanceof Yn) return e;
  10191. if (Pe.call(e, "__wrapped__")) return Us(e)
  10192. }
  10193. return new Yn(e)
  10194. }
  10195. var jn = function () {
  10196. function e() {
  10197. }
  10198. return function (t) {
  10199. return eo(t) ? $e ? $e(t) : (e.prototype = t, t = new e, e.prototype = n, t) : {}
  10200. }
  10201. }();
  10202. function qn() {
  10203. }
  10204. function Yn(e, t) {
  10205. this.__wrapped__ = e, this.__actions__ = [], this.__chain__ = !!t, this.__index__ = 0, this.__values__ = n
  10206. }
  10207. function Kn(e) {
  10208. this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = d, this.__views__ = []
  10209. }
  10210. function Wn(e) {
  10211. var t = -1, n = null == e ? 0 : e.length;
  10212. for (this.clear(); ++t < n;) {
  10213. var r = e[t];
  10214. this.set(r[0], r[1])
  10215. }
  10216. }
  10217. function Vn(e) {
  10218. var t = -1, n = null == e ? 0 : e.length;
  10219. for (this.clear(); ++t < n;) {
  10220. var r = e[t];
  10221. this.set(r[0], r[1])
  10222. }
  10223. }
  10224. function $n(e) {
  10225. var t = -1, n = null == e ? 0 : e.length;
  10226. for (this.clear(); ++t < n;) {
  10227. var r = e[t];
  10228. this.set(r[0], r[1])
  10229. }
  10230. }
  10231. function Qn(e) {
  10232. var t = -1, n = null == e ? 0 : e.length;
  10233. for (this.__data__ = new $n; ++t < n;) this.add(e[t])
  10234. }
  10235. function zn(e) {
  10236. e = this.__data__ = new Vn(e), this.size = e.size
  10237. }
  10238. function Xn(e, t) {
  10239. var u, n = Ya(e), r = !n && qa(e), i = !n && !r && $a(e), s = !n && !r && !i && uo(e),
  10240. a = n || r || i || s, o = a ? Qt(e.length, ke) : [], c = o.length;
  10241. for (u in e) !t && !Pe.call(e, u) || a && ("length" == u || i && ("offset" == u || "parent" == u) || s && ("buffer" == u || "byteLength" == u || "byteOffset" == u) || As(u, c)) || o.push(u);
  10242. return o
  10243. }
  10244. function Zn(e) {
  10245. var t = e.length;
  10246. return t ? e[Qr(0, t - 1)] : n
  10247. }
  10248. function tr(e, t, r) {
  10249. (r === n || Ha(e[t], r)) && (r !== n || t in e) || ar(e, t, r)
  10250. }
  10251. function nr(e, t, r) {
  10252. var i = e[t];
  10253. Pe.call(e, t) && Ha(i, r) && (r !== n || t in e) || ar(e, t, r)
  10254. }
  10255. function rr(e, t) {
  10256. for (var n = e.length; n--;) if (Ha(e[n][0], t)) return n;
  10257. return -1
  10258. }
  10259. function ir(e, t, n, r) {
  10260. return pr(e, function (e, i, s) {
  10261. t(r, e, n(e), s)
  10262. }), r
  10263. }
  10264. function sr(e, t) {
  10265. return e && Di(t, Ro(t), e)
  10266. }
  10267. function ar(e, t, n) {
  10268. "__proto__" == t && ct ? ct(e, t, {configurable: !0, enumerable: !0, value: n, writable: !0}) : e[t] = n
  10269. }
  10270. function or(e, t) {
  10271. for (var r = -1, i = t.length, s = ye(i), a = null == e; ++r < i;) s[r] = a ? n : Io(e, t[r]);
  10272. return s
  10273. }
  10274. function cr(e, t, r) {
  10275. return e != e || (r !== n && (e = e <= r ? e : r), t === n) || t <= e ? e : t
  10276. }
  10277. function ur(e, t, r, i, s, a) {
  10278. var o, c = 1 & t, u = 2 & t, l = 4 & t;
  10279. if ((o = r ? s ? r(e, i, s, a) : r(e) : o) === n) {
  10280. if (!eo(e)) return e;
  10281. if (i = Ya(e)) {
  10282. if (o = function (e) {
  10283. var t = e.length, n = new e.constructor(t);
  10284. return t && "string" == typeof e[0] && Pe.call(e, "index") && (n.index = e.index, n.input = e.input), n
  10285. }(e), !c) return Li(e, o)
  10286. } else {
  10287. var f = ms(e), p = f == v || f == y;
  10288. if ($a(e)) return Ci(e, c);
  10289. if (f == N || f == _ || p && !s) {
  10290. if (o = u || p ? {} : Es(e), !c) return u ? function (e, t) {
  10291. return Di(e, ds(e), t)
  10292. }(e, function (e, t) {
  10293. return e && Di(t, wo(t), e)
  10294. }(o, e)) : function (e, t) {
  10295. return Di(e, ps(e), t)
  10296. }(e, sr(o, e))
  10297. } else {
  10298. if (!ot[f]) return s ? e : {};
  10299. o = function (e, n) {
  10300. var r = e.constructor;
  10301. switch (f) {
  10302. case R:
  10303. return Ni(e);
  10304. case T:
  10305. case A:
  10306. return new r(+e);
  10307. case w:
  10308. return function (e, t) {
  10309. return t = n ? Ni(e.buffer) : e.buffer, new e.constructor(t, e.byteOffset, e.byteLength)
  10310. }(e);
  10311. case x:
  10312. case M:
  10313. case P:
  10314. case B:
  10315. case F:
  10316. case U:
  10317. case H:
  10318. case G:
  10319. case j:
  10320. return bi(e, n);
  10321. case S:
  10322. return new r;
  10323. case C:
  10324. case k:
  10325. return new r(e);
  10326. case I:
  10327. return function (e) {
  10328. var t = new e.constructor(e.source, pe.exec(e));
  10329. return t.lastIndex = e.lastIndex, t
  10330. }(e);
  10331. case O:
  10332. return new r;
  10333. case L:
  10334. return Un ? Ie(Un.call(e)) : {}
  10335. }
  10336. }(e, c)
  10337. }
  10338. }
  10339. if (p = (a = a || new zn).get(e)) return p;
  10340. a.set(e, o), ao(e) ? e.forEach(function (n) {
  10341. o.add(ur(n, t, r, n, e, a))
  10342. }) : no(e) && e.forEach(function (n, i) {
  10343. o.set(i, ur(n, t, r, i, e, a))
  10344. });
  10345. var m = i ? n : (l ? u ? ss : is : u ? wo : Ro)(e);
  10346. It(m || e, function (n, i) {
  10347. m && (n = e[i = n]), nr(o, i, ur(n, t, r, i, e, a))
  10348. })
  10349. }
  10350. return o
  10351. }
  10352. function lr(e, t, r) {
  10353. var i = r.length;
  10354. if (null == e) return !i;
  10355. for (e = Ie(e); i--;) {
  10356. var s = r[i], a = t[s], o = e[s];
  10357. if (o === n && !(s in e) || !a(o)) return !1
  10358. }
  10359. return !0
  10360. }
  10361. function hr(e, t, i) {
  10362. if ("function" != typeof e) throw new Le(r);
  10363. return Ds(function () {
  10364. e.apply(n, i)
  10365. }, t)
  10366. }
  10367. function fr(e, t, n, r) {
  10368. var i = -1, s = Dt, a = !0, o = e.length, c = [], u = t.length;
  10369. if (o) {
  10370. n && (t = wt(t, Xt(n))), r ? (s = Rt, a = !1) : 200 <= t.length && (s = Jt, a = !1, t = new Qn(t));
  10371. e:for (; ++i < o;) {
  10372. var l = e[i], h = null == n ? l : n(l), l = r || 0 !== l ? l : 0;
  10373. if (a && h == h) {
  10374. for (var f = u; f--;) if (t[f] === h) continue e;
  10375. c.push(l)
  10376. } else s(t, h, r) || c.push(l)
  10377. }
  10378. }
  10379. return c
  10380. }
  10381. Gn.templateSettings = {
  10382. escape: z,
  10383. evaluate: X,
  10384. interpolate: Z,
  10385. variable: "",
  10386. imports: {_: Gn}
  10387. }, (Gn.prototype = qn.prototype).constructor = Gn, (Yn.prototype = jn(qn.prototype)).constructor = Yn, (Kn.prototype = jn(qn.prototype)).constructor = Kn, Wn.prototype.clear = function () {
  10388. this.__data__ = Ln ? Ln(null) : {}, this.size = 0
  10389. }, Wn.prototype.delete = function (e) {
  10390. return e = this.has(e) && delete this.__data__[e], this.size -= e ? 1 : 0, e
  10391. }, Wn.prototype.get = function (e) {
  10392. var r, t = this.__data__;
  10393. return Ln ? (r = t[e]) === i ? n : r : Pe.call(t, e) ? t[e] : n
  10394. }, Wn.prototype.has = function (e) {
  10395. var t = this.__data__;
  10396. return Ln ? t[e] !== n : Pe.call(t, e)
  10397. }, Wn.prototype.set = function (e, t) {
  10398. var r = this.__data__;
  10399. return this.size += this.has(e) ? 0 : 1, r[e] = Ln && t === n ? i : t, this
  10400. }, Vn.prototype.clear = function () {
  10401. this.__data__ = [], this.size = 0
  10402. }, Vn.prototype.delete = function (e) {
  10403. var t = this.__data__;
  10404. return !((e = rr(t, e)) < 0 || (e == t.length - 1 ? t.pop() : ze.call(t, e, 1), --this.size, 0))
  10405. }, Vn.prototype.get = function (e) {
  10406. var t = this.__data__;
  10407. return (e = rr(t, e)) < 0 ? n : t[e][1]
  10408. }, Vn.prototype.has = function (e) {
  10409. return -1 < rr(this.__data__, e)
  10410. }, Vn.prototype.set = function (e, t) {
  10411. var n = this.__data__, r = rr(n, e);
  10412. return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this
  10413. }, $n.prototype.clear = function () {
  10414. this.size = 0, this.__data__ = {hash: new Wn, map: new (bn || Vn), string: new Wn}
  10415. }, $n.prototype.delete = function (e) {
  10416. return e = ls(this, e).delete(e), this.size -= e ? 1 : 0, e
  10417. }, $n.prototype.get = function (e) {
  10418. return ls(this, e).get(e)
  10419. }, $n.prototype.has = function (e) {
  10420. return ls(this, e).has(e)
  10421. }, $n.prototype.set = function (e, t) {
  10422. var n = ls(this, e), r = n.size;
  10423. return n.set(e, t), this.size += n.size == r ? 0 : 1, this
  10424. }, Qn.prototype.add = Qn.prototype.push = function (e) {
  10425. return this.__data__.set(e, i), this
  10426. }, Qn.prototype.has = function (e) {
  10427. return this.__data__.has(e)
  10428. }, zn.prototype.clear = function () {
  10429. this.__data__ = new Vn, this.size = 0
  10430. }, zn.prototype.delete = function (e) {
  10431. var t = this.__data__, e = t.delete(e);
  10432. return this.size = t.size, e
  10433. }, zn.prototype.get = function (e) {
  10434. return this.__data__.get(e)
  10435. }, zn.prototype.has = function (e) {
  10436. return this.__data__.has(e)
  10437. }, zn.prototype.set = function (e, t) {
  10438. var n = this.__data__;
  10439. if (n instanceof Vn) {
  10440. var r = n.__data__;
  10441. if (!bn || r.length < 199) return r.push([e, t]), this.size = ++n.size, this;
  10442. n = this.__data__ = new $n(r)
  10443. }
  10444. return n.set(e, t), this.size = n.size, this
  10445. };
  10446. var pr = xi(vr), dr = xi(yr, !0);
  10447. function _r(e, t, r) {
  10448. for (var i = -1, s = e.length; ++i < s;) {
  10449. var c, u, a = e[i], o = t(a);
  10450. null != o && (c === n ? o == o && !co(o) : r(o, c)) && (c = o, u = a)
  10451. }
  10452. return u
  10453. }
  10454. function Er(e, t) {
  10455. var n = [];
  10456. return pr(e, function (e, r, i) {
  10457. t(e, r, i) && n.push(e)
  10458. }), n
  10459. }
  10460. function Tr(e, t, n, r, i) {
  10461. var s = -1, a = e.length;
  10462. for (n = n || Ts, i = i || []; ++s < a;) {
  10463. var o = e[s];
  10464. 0 < t && n(o) ? 1 < t ? Tr(o, t - 1, n, r, i) : xt(i, o) : r || (i[i.length] = o)
  10465. }
  10466. return i
  10467. }
  10468. var Ar = Mi(), gr = Mi(!0);
  10469. function vr(e, t) {
  10470. return e && Ar(e, t, Ro)
  10471. }
  10472. function yr(e, t) {
  10473. return e && gr(e, t, Ro)
  10474. }
  10475. function Sr(e, t) {
  10476. return Lt(t, function (t) {
  10477. return Xa(e[t])
  10478. })
  10479. }
  10480. function Cr(e, t) {
  10481. for (var r = 0, i = (t = gi(t, e)).length; null != e && r < i;) e = e[Bs(t[r++])];
  10482. return r && r == i ? e : n
  10483. }
  10484. function Nr(e, t, n) {
  10485. return t = t(e), Ya(e) ? t : xt(t, n(e))
  10486. }
  10487. function br(e) {
  10488. return null == e ? e === n ? "[object Undefined]" : "[object Null]" : (nt && nt in Ie(e) ? function (e) {
  10489. var t = Pe.call(e, nt), r = e[nt];
  10490. try {
  10491. e[nt] = n;
  10492. var i = !0
  10493. } catch (e) {
  10494. }
  10495. var s = Ue.call(e);
  10496. return i && (t ? e[nt] = r : delete e[nt]), s
  10497. } : function (e) {
  10498. return Ue.call(e)
  10499. })(e)
  10500. }
  10501. function Ir(e, t) {
  10502. return t < e
  10503. }
  10504. function Or(e, t) {
  10505. return null != e && Pe.call(e, t)
  10506. }
  10507. function kr(e, t) {
  10508. return null != e && t in Ie(e)
  10509. }
  10510. function Lr(e, t, r) {
  10511. for (var i = r ? Rt : Dt, s = e[0].length, a = e.length, o = a, c = ye(a), u = 1 / 0, l = []; o--;) {
  10512. var h = e[o];
  10513. o && t && (h = wt(h, Xt(t))), u = gn(h.length, u), c[o] = !r && (t || 120 <= s && 120 <= h.length) ? new Qn(o && h) : n
  10514. }
  10515. var h = e[0], f = -1, p = c[0];
  10516. e:for (; ++f < s && l.length < u;) {
  10517. var d = h[f], m = t ? t(d) : d, d = r || 0 !== d ? d : 0;
  10518. if (!(p ? Jt(p, m) : i(l, m, r))) {
  10519. for (o = a; --o;) {
  10520. var _ = c[o];
  10521. if (!(_ ? Jt(_, m) : i(e[o], m, r))) continue e
  10522. }
  10523. p && p.push(m), l.push(d)
  10524. }
  10525. }
  10526. return l
  10527. }
  10528. function Dr(e, t, r) {
  10529. return null == (t = null == (e = Os(e, t = gi(t, e))) ? e : e[Bs(zs(t))]) ? n : Nt(t, e, r)
  10530. }
  10531. function Rr(e) {
  10532. return to(e) && br(e) == _
  10533. }
  10534. function wr(e, t, r, i, s) {
  10535. return e === t || (null == e || null == t || !to(e) && !to(t) ? e != e && t != t : function (e, t, r, i, s, a) {
  10536. var o = Ya(e), c = Ya(t), u = o ? E : ms(e), c = c ? E : ms(t), h = (u = u == _ ? N : u) == N,
  10537. f = (c = c == _ ? N : c) == N;
  10538. if ((c = u == c) && $a(e)) {
  10539. if (!$a(t)) return !1;
  10540. h = !(o = !0)
  10541. }
  10542. return c && !h ? (a = a || new zn, o || uo(e) ? ns(e, t, r, i, s, a) : function (e, t, n, r, i, s, a) {
  10543. switch (n) {
  10544. case w:
  10545. if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
  10546. e = e.buffer, t = t.buffer;
  10547. case R:
  10548. return !(e.byteLength != t.byteLength || !s(new Ke(e), new Ke(t)));
  10549. case T:
  10550. case A:
  10551. case C:
  10552. return Ha(+e, +t);
  10553. case g:
  10554. return e.name == t.name && e.message == t.message;
  10555. case I:
  10556. case k:
  10557. return e == t + "";
  10558. case S:
  10559. var o = on;
  10560. case O:
  10561. var u, o = o || ln;
  10562. return e.size == t.size || 1 & r ? (u = a.get(e)) ? u == t : (r |= 2, a.set(e, t), u = ns(o(e), o(t), r, i, s, a), a.delete(e), u) : !1;
  10563. case L:
  10564. if (Un) return Un.call(e) == Un.call(t)
  10565. }
  10566. return !1
  10567. }(e, t, u, r, i, s, a)) : 1 & r || (o = h && Pe.call(e, "__wrapped__"), u = f && Pe.call(t, "__wrapped__"), !o && !u) ? c && function (e, t, r, i, s, a) {
  10568. var o = 1 & r, c = is(e), u = c.length;
  10569. if (u != is(t).length && !o) return !1;
  10570. for (var f = u; f--;) {
  10571. var p = c[f];
  10572. if (!(o ? p in t : Pe.call(t, p))) return !1
  10573. }
  10574. var d = a.get(e), m = a.get(t);
  10575. if (d && m) return d == t && m == e;
  10576. for (var _ = !0, E = (a.set(e, t), a.set(t, e), o); ++f < u;) {
  10577. var g, T = e[p = c[f]], A = t[p];
  10578. if (!((g = i ? o ? i(A, T, p, t, e, a) : i(T, A, p, e, t, a) : g) === n ? T === A || s(T, A, r, i, a) : g)) {
  10579. _ = !1;
  10580. break
  10581. }
  10582. E = E || "constructor" == p
  10583. }
  10584. return _ && !E && (d = e.constructor) != (m = t.constructor) && "constructor" in e && "constructor" in t && !("function" == typeof d && d instanceof d && "function" == typeof m && m instanceof m) && (_ = !1), a.delete(e), a.delete(t), _
  10585. }(e, t, r, i, s, a = a || new zn) : s(o ? e.value() : e, u ? t.value() : t, r, i, a = a || new zn)
  10586. }(e, t, r, i, wr, s))
  10587. }
  10588. function xr(e, t, r, i) {
  10589. var s = r.length, a = s, o = !i;
  10590. if (null == e) return !a;
  10591. for (e = Ie(e); s--;) {
  10592. var c = r[s];
  10593. if (o && c[2] ? c[1] !== e[c[0]] : !(c[0] in e)) return !1
  10594. }
  10595. for (; ++s < a;) {
  10596. var u = (c = r[s])[0], l = e[u], h = c[1];
  10597. if (o && c[2]) {
  10598. if (l === n && !(u in e)) return !1
  10599. } else {
  10600. var p, f = new zn;
  10601. if (!((p = i ? i(l, h, u, e, t, f) : p) === n ? wr(h, l, 3, i, f) : p)) return !1
  10602. }
  10603. }
  10604. return !0
  10605. }
  10606. function Mr(e) {
  10607. return !(!eo(e) || function (e) {
  10608. return Fe && Fe in e
  10609. }(e)) && (Xa(e) ? je : _e).test(Fs(e))
  10610. }
  10611. function Pr(e) {
  10612. return "function" == typeof e ? e : null == e ? ic : "object" == typeof e ? Ya(e) ? jr(e[0], e[1]) : Gr(e) : pc(e)
  10613. }
  10614. function Br(e) {
  10615. if (!Cs(e)) return Tn(e);
  10616. var n, t = [];
  10617. for (n in Ie(e)) Pe.call(e, n) && "constructor" != n && t.push(n);
  10618. return t
  10619. }
  10620. function Ur(e, t) {
  10621. return e < t
  10622. }
  10623. function Hr(e, t) {
  10624. var n = -1, r = Wa(e) ? ye(e.length) : [];
  10625. return pr(e, function (e, i, s) {
  10626. r[++n] = t(e, i, s)
  10627. }), r
  10628. }
  10629. function Gr(e) {
  10630. var t = hs(e);
  10631. return 1 == t.length && t[0][2] ? bs(t[0][0], t[0][1]) : function (n) {
  10632. return n === e || xr(n, e, t)
  10633. }
  10634. }
  10635. function jr(e, t) {
  10636. return vs(e) && Ns(t) ? bs(Bs(e), t) : function (r) {
  10637. var i = Io(r, e);
  10638. return i === n && i === t ? Oo(r, e) : wr(t, i, 3)
  10639. }
  10640. }
  10641. function qr(e, t, r, i, s) {
  10642. e !== t && Ar(t, function (a, o) {
  10643. var c;
  10644. s = s || new zn, eo(a) ? function (e, t, r, i, s, a, o) {
  10645. var p, d, m, c = ks(e, r), u = ks(t, r), l = o.get(u);
  10646. l || ((t = (l = a ? a(c, u, r + "", e, t, o) : n) === n) && (d = !(p = Ya(u)) && $a(u), m = !p && !d && uo(u), l = u, p || d || m ? l = Ya(c) ? c : Va(c) ? Li(c) : d ? Ci(u, !(t = !1)) : m ? bi(u, !(t = !1)) : [] : io(u) || qa(u) ? qa(l = c) ? l = To(c) : eo(c) && !Xa(c) || (l = Es(u)) : t = !1), t && (o.set(u, l), s(l, u, i, a, o), o.delete(u))), tr(e, r, l)
  10647. }(e, t, o, r, qr, i, s) : (c = i ? i(ks(e, o), a, o + "", e, t, s) : n, tr(e, o, c === n ? a : c))
  10648. }, wo)
  10649. }
  10650. function Yr(e, t) {
  10651. var r = e.length;
  10652. if (r) return As(t += t < 0 ? r : 0, r) ? e[t] : n
  10653. }
  10654. function Kr(e, t, n) {
  10655. t = t.length ? wt(t, function (e) {
  10656. return Ya(e) ? function (t) {
  10657. return Cr(t, 1 === e.length ? e[0] : e)
  10658. } : e
  10659. }) : [ic];
  10660. var r = -1;
  10661. return t = wt(t, Xt(us())), function (e, t) {
  10662. var n = e.length;
  10663. for (e.sort(t); n--;) e[n] = e[n].value;
  10664. return e
  10665. }(Hr(e, function (e, n, i) {
  10666. return {
  10667. criteria: wt(t, function (t) {
  10668. return t(e)
  10669. }), index: ++r, value: e
  10670. }
  10671. }), function (e, t) {
  10672. return function (e, t, n) {
  10673. for (var r = -1, i = e.criteria, s = t.criteria, a = i.length, o = n.length; ++r < a;) {
  10674. var c = Ii(i[r], s[r]);
  10675. if (c) return o <= r ? c : c * ("desc" == n[r] ? -1 : 1)
  10676. }
  10677. return e.index - t.index
  10678. }(e, t, n)
  10679. })
  10680. }
  10681. function Wr(e, t, n) {
  10682. for (var r = -1, i = t.length, s = {}; ++r < i;) {
  10683. var a = t[r], o = Cr(e, a);
  10684. n(o, a) && ei(s, gi(a, e), o)
  10685. }
  10686. return s
  10687. }
  10688. function Vr(e, t, n, r) {
  10689. var i = r ? jt : Gt, s = -1, a = t.length, o = e;
  10690. for (e === t && (t = Li(t)), n && (o = wt(e, Xt(n))); ++s < a;) for (var c = 0, u = t[s], l = n ? n(u) : u; -1 < (c = i(o, l, c, r));) o !== e && ze.call(o, c, 1), ze.call(e, c, 1);
  10691. return e
  10692. }
  10693. function $r(e, t) {
  10694. for (var n = e ? t.length : 0, r = n - 1; n--;) {
  10695. var s, i = t[n];
  10696. n != r && i === s || (As(s = i) ? ze.call(e, i, 1) : fi(e, i))
  10697. }
  10698. }
  10699. function Qr(e, t) {
  10700. return e + Et(Sn() * (t - e + 1))
  10701. }
  10702. function zr(e, t) {
  10703. var n = "";
  10704. if (!(!e || t < 1 || f < t)) for (; t % 2 && (n += e), (t = Et(t / 2)) && (e += e), t;) ;
  10705. return n
  10706. }
  10707. function Xr(e, t) {
  10708. return Rs(Is(e, t, ic), e + "")
  10709. }
  10710. function ei(e, t, r, i) {
  10711. if (eo(e)) for (var s = -1, a = (t = gi(t, e)).length, o = a - 1, c = e; null != c && ++s < a;) {
  10712. var h, u = Bs(t[s]), l = r;
  10713. if ("__proto__" === u || "constructor" === u || "prototype" === u) return e;
  10714. nr(c, u, l = s != o && (h = c[u], (l = i ? i(h, u, c) : n) === n) ? eo(h) ? h : As(t[s + 1]) ? [] : {} : l), c = c[u]
  10715. }
  10716. return e
  10717. }
  10718. var ti = Dn ? function (e, t) {
  10719. return Dn.set(e, t), e
  10720. } : ic, Ye = ct ? function (e, t) {
  10721. return ct(e, "toString", {configurable: !0, enumerable: !1, value: tc(t), writable: !0})
  10722. } : ic;
  10723. function ii(e, t, n) {
  10724. var r = -1, i = e.length;
  10725. (n = i < n ? i : n) < 0 && (n += i), i = n < (t = t < 0 ? i < -t ? 0 : i + t : t) ? 0 : n - t >>> 0, t >>>= 0;
  10726. for (var s = ye(i); ++r < i;) s[r] = e[r + t];
  10727. return s
  10728. }
  10729. function ai(e, t, n) {
  10730. var r = 0, i = null == e ? r : e.length;
  10731. if ("number" == typeof t && t == t && i <= 2147483647) {
  10732. for (; r < i;) {
  10733. var s = r + i >>> 1, a = e[s];
  10734. null !== a && !co(a) && (n ? a <= t : a < t) ? r = 1 + s : i = s
  10735. }
  10736. return i
  10737. }
  10738. return oi(e, t, ic, n)
  10739. }
  10740. function oi(e, t, r, i) {
  10741. var s = 0, a = null == e ? 0 : e.length;
  10742. if (0 === a) return 0;
  10743. for (var o = (t = r(t)) != t, c = null === t, u = co(t), l = t === n; s < a;) {
  10744. var h = Et((s + a) / 2), f = r(e[h]), p = f !== n, d = null === f, m = f == f, _ = co(f);
  10745. (o ? i || m : l ? m && (i || p) : c ? m && p && (i || !d) : u ? m && p && !d && (i || !_) : !d && !_ && (i ? f <= t : f < t)) ? s = h + 1 : a = h
  10746. }
  10747. return gn(a, 4294967294)
  10748. }
  10749. function ci(e, t) {
  10750. for (var n = -1, r = e.length, i = 0, s = []; ++n < r;) {
  10751. var c, a = e[n], o = t ? t(a) : a;
  10752. n && Ha(o, c) || (c = o, s[i++] = 0 === a ? 0 : a)
  10753. }
  10754. return s
  10755. }
  10756. function ui(e) {
  10757. return "number" == typeof e ? e : co(e) ? p : +e
  10758. }
  10759. function li(e) {
  10760. var t;
  10761. return "string" == typeof e ? e : Ya(e) ? wt(e, li) + "" : co(e) ? Hn ? Hn.call(e) : "" : "0" == (t = e + "") && 1 / e == -1 / 0 ? "-0" : t
  10762. }
  10763. function hi(e, t, n) {
  10764. var r = -1, i = Dt, s = e.length, a = !0, o = [], c = o;
  10765. if (n) a = !1, i = Rt; else if (200 <= s) {
  10766. var u = t ? null : zi(e);
  10767. if (u) return ln(u);
  10768. a = !1, i = Jt, c = new Qn
  10769. } else c = t ? [] : o;
  10770. e:for (; ++r < s;) {
  10771. var l = e[r], h = t ? t(l) : l, l = n || 0 !== l ? l : 0;
  10772. if (a && h == h) {
  10773. for (var f = c.length; f--;) if (c[f] === h) continue e;
  10774. t && c.push(h), o.push(l)
  10775. } else i(c, h, n) || (c !== o && c.push(h), o.push(l))
  10776. }
  10777. return o
  10778. }
  10779. function fi(e, t) {
  10780. return null == (e = Os(e, t = gi(t, e))) || delete e[Bs(zs(t))]
  10781. }
  10782. function pi(e, t, n, r) {
  10783. return ei(e, t, n(Cr(e, t)), r)
  10784. }
  10785. function di(e, t, n, r) {
  10786. for (var i = e.length, s = r ? i : -1; (r ? s-- : ++s < i) && t(e[s], s, e);) ;
  10787. return n ? ii(e, r ? 0 : s, r ? s + 1 : i) : ii(e, r ? s + 1 : 0, r ? i : s)
  10788. }
  10789. function mi(e, t) {
  10790. var n = e;
  10791. return Mt(t, function (e, t) {
  10792. return t.func.apply(t.thisArg, xt([e], t.args))
  10793. }, e instanceof Kn ? e.value() : n)
  10794. }
  10795. function _i(e, t, n) {
  10796. var r = e.length;
  10797. if (r < 2) return r ? hi(e[0]) : [];
  10798. for (var i = -1, s = ye(r); ++i < r;) for (var a = e[i], o = -1; ++o < r;) o != i && (s[i] = fr(s[i] || a, e[o], t, n));
  10799. return hi(Tr(s, 1), t, n)
  10800. }
  10801. function Ei(e, t, r) {
  10802. for (var i = -1, s = e.length, a = t.length, o = {}; ++i < s;) {
  10803. var c = i < a ? t[i] : n;
  10804. r(o, e[i], c)
  10805. }
  10806. return o
  10807. }
  10808. function Ti(e) {
  10809. return Va(e) ? e : []
  10810. }
  10811. function Ai(e) {
  10812. return "function" == typeof e ? e : ic
  10813. }
  10814. function gi(e, t) {
  10815. return Ya(e) ? e : vs(e, t) ? [e] : Ps(Ao(e))
  10816. }
  10817. var vi = Xr;
  10818. function yi(e, t, r) {
  10819. var i = e.length;
  10820. return r = r === n ? i : r, !t && i <= r ? e : ii(e, t, r)
  10821. }
  10822. var Si = ht || function (e) {
  10823. return pt.clearTimeout(e)
  10824. };
  10825. function Ci(e, t) {
  10826. return t ? e.slice() : (t = e.length, t = We ? We(t) : new e.constructor(t), e.copy(t), t)
  10827. }
  10828. function Ni(e) {
  10829. var t = new e.constructor(e.byteLength);
  10830. return new Ke(t).set(new Ke(e)), t
  10831. }
  10832. function bi(e, t) {
  10833. return t = t ? Ni(e.buffer) : e.buffer, new e.constructor(t, e.byteOffset, e.length)
  10834. }
  10835. function Ii(e, t) {
  10836. if (e !== t) {
  10837. var r = e !== n, i = null === e, s = e == e, a = co(e), o = t !== n, c = null === t, u = t == t,
  10838. l = co(t);
  10839. if (!c && !l && !a && t < e || a && o && u && !c && !l || i && o && u || !r && u || !s) return 1;
  10840. if (!i && !a && !l && e < t || l && r && s && !i && !a || c && r && s || !o && s || !u) return -1
  10841. }
  10842. return 0
  10843. }
  10844. function Oi(e, t, n, r) {
  10845. for (var i = -1, s = e.length, a = n.length, o = -1, c = t.length, u = An(s - a, 0), l = ye(c + u), h = !r; ++o < c;) l[o] = t[o];
  10846. for (; ++i < a;) (h || i < s) && (l[n[i]] = e[i]);
  10847. for (; u--;) l[o++] = e[i++];
  10848. return l
  10849. }
  10850. function ki(e, t, n, r) {
  10851. for (var i = -1, s = e.length, a = -1, o = n.length, c = -1, u = t.length, l = An(s - o, 0), h = ye(l + u), f = !r; ++i < l;) h[i] = e[i];
  10852. for (var p = i; ++c < u;) h[p + c] = t[c];
  10853. for (; ++a < o;) (f || i < s) && (h[p + n[a]] = e[i++]);
  10854. return h
  10855. }
  10856. function Li(e, t) {
  10857. var n = -1, r = e.length;
  10858. for (t = t || ye(r); ++n < r;) t[n] = e[n];
  10859. return t
  10860. }
  10861. function Di(e, t, r, i) {
  10862. var s = !r;
  10863. r = r || {};
  10864. for (var a = -1, o = t.length; ++a < o;) {
  10865. var c = t[a], u = i ? i(r[c], e[c], c, r, e) : n;
  10866. (s ? ar : nr)(r, c, u === n ? e[c] : u)
  10867. }
  10868. return r
  10869. }
  10870. function Ri(e, t) {
  10871. return function (n, r) {
  10872. var i = Ya(n) ? bt : ir, s = t ? t() : {};
  10873. return i(n, e, us(r, 2), s)
  10874. }
  10875. }
  10876. function wi(e) {
  10877. return Xr(function (t, r) {
  10878. var i = -1, s = r.length, a = 1 < s ? r[s - 1] : n, o = 2 < s ? r[2] : n,
  10879. a = 3 < e.length && "function" == typeof a ? (s--, a) : n;
  10880. for (o && gs(r[0], r[1], o) && (a = s < 3 ? n : a, s = 1), t = Ie(t); ++i < s;) {
  10881. var c = r[i];
  10882. c && e(t, c, i, a)
  10883. }
  10884. return t
  10885. })
  10886. }
  10887. function xi(e, t) {
  10888. return function (n, r) {
  10889. if (null != n) {
  10890. if (!Wa(n)) return e(n, r);
  10891. for (var i = n.length, s = t ? i : -1, a = Ie(n); (t ? s-- : ++s < i) && !1 !== r(a[s], s, a);) ;
  10892. }
  10893. return n
  10894. }
  10895. }
  10896. function Mi(e) {
  10897. return function (t, n, r) {
  10898. for (var i = -1, s = Ie(t), a = r(t), o = a.length; o--;) {
  10899. var c = a[e ? o : ++i];
  10900. if (!1 === n(s[c], c, s)) break
  10901. }
  10902. return t
  10903. }
  10904. }
  10905. function Pi(e) {
  10906. return function (t) {
  10907. var i = (r = an(t = Ao(t)) ? pn(t) : n) ? r[0] : t.charAt(0),
  10908. r = r ? yi(r, 1).join("") : t.slice(1);
  10909. return i[e]() + r
  10910. }
  10911. }
  10912. function Bi(e) {
  10913. return function (t) {
  10914. return Mt(Zo(Yo(t).replace(Ze, "")), e, "")
  10915. }
  10916. }
  10917. function Fi(e) {
  10918. return function () {
  10919. var t = arguments;
  10920. switch (t.length) {
  10921. case 0:
  10922. return new e;
  10923. case 1:
  10924. return new e(t[0]);
  10925. case 2:
  10926. return new e(t[0], t[1]);
  10927. case 3:
  10928. return new e(t[0], t[1], t[2]);
  10929. case 4:
  10930. return new e(t[0], t[1], t[2], t[3]);
  10931. case 5:
  10932. return new e(t[0], t[1], t[2], t[3], t[4]);
  10933. case 6:
  10934. return new e(t[0], t[1], t[2], t[3], t[4], t[5]);
  10935. case 7:
  10936. return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6])
  10937. }
  10938. var n = jn(e.prototype), r = e.apply(n, t);
  10939. return eo(r) ? r : n
  10940. }
  10941. }
  10942. function Ui(e) {
  10943. return function (t, r, i) {
  10944. var a, s = Ie(t);
  10945. return Wa(t) || (a = us(r, 3), t = Ro(t), r = function (e) {
  10946. return a(s[e], e, s)
  10947. }), -1 < (r = e(t, r, i)) ? s[a ? t[r] : r] : n
  10948. }
  10949. }
  10950. function Hi(e) {
  10951. return rs(function (t) {
  10952. var i = t.length, s = i, a = Yn.prototype.thru;
  10953. for (e && t.reverse(); s--;) {
  10954. var o = t[s];
  10955. if ("function" != typeof o) throw new Le(r);
  10956. a && !c && "wrapper" == os(o) && (c = new Yn([], !0))
  10957. }
  10958. for (s = c ? s : i; ++s < i;) var u = os(o = t[s]), l = "wrapper" == u ? as(o) : n, c = l && ys(l[0]) && 424 == l[1] && !l[4].length && 1 == l[9] ? c[os(l[0])].apply(c, l[3]) : 1 == o.length && ys(o) ? c[u]() : c.thru(o);
  10959. return function () {
  10960. var e = arguments, n = e[0];
  10961. if (c && 1 == e.length && Ya(n)) return c.plant(n).value();
  10962. for (var r = 0, s = i ? t[r].apply(this, e) : n; ++r < i;) s = t[r].call(this, s);
  10963. return s
  10964. }
  10965. })
  10966. }
  10967. function Gi(e, t, r, i, s, a, o, c, l, h) {
  10968. var f = t & u, p = 1 & t, d = 2 & t, m = 24 & t, _ = 512 & t, E = d ? n : Fi(e);
  10969. return function u() {
  10970. for (var v, y, T = arguments.length, A = ye(T), g = T; g--;) A[g] = arguments[g];
  10971. return m && (y = function (e, t) {
  10972. for (var n = e.length, r = 0; n--;) e[n] === t && ++r;
  10973. return r
  10974. }(A, v = cs(u))), i && (A = Oi(A, i, s, m)), a && (A = ki(A, a, o, m)), T -= y, m && T < h ? (y = un(A, v), $i(e, t, Gi, u.placeholder, r, A, y, c, l, h - T)) : (v = p ? r : this, y = d ? v[e] : e, T = A.length, c ? A = function (e, t) {
  10975. for (var r = e.length, i = gn(t.length, r), s = Li(e); i--;) {
  10976. var a = t[i];
  10977. e[i] = As(a, r) ? s[a] : n
  10978. }
  10979. return e
  10980. }(A, c) : _ && 1 < T && A.reverse(), f && l < T && (A.length = l), (y = this && this !== pt && this instanceof u ? E || Fi(y) : y).apply(v, A))
  10981. }
  10982. }
  10983. function ji(e, t) {
  10984. return function (n, r) {
  10985. return function (e, t, n, r) {
  10986. return vr(e, function (e, i, s) {
  10987. t(r, n(e), i, s)
  10988. }), r
  10989. }(n, e, t(r), {})
  10990. }
  10991. }
  10992. function qi(e, t) {
  10993. return function (r, i) {
  10994. var s;
  10995. if (r === n && i === n) return t;
  10996. if (r !== n && (s = r), i !== n) {
  10997. if (s === n) return i;
  10998. i = ("string" == typeof r || "string" == typeof i ? (r = li(r), li) : (r = ui(r), ui))(i), s = e(r, i)
  10999. }
  11000. return s
  11001. }
  11002. }
  11003. function Yi(e) {
  11004. return rs(function (t) {
  11005. return t = wt(t, Xt(us())), Xr(function (n) {
  11006. var r = this;
  11007. return e(t, function (e) {
  11008. return Nt(e, r, n)
  11009. })
  11010. })
  11011. })
  11012. }
  11013. function Ki(e, t) {
  11014. var r = (t = t === n ? " " : li(t)).length;
  11015. return r < 2 ? r ? zr(t, e) : t : (r = zr(t, mt(e / fn(t))), an(t) ? yi(pn(r), 0, e).join("") : r.slice(0, e))
  11016. }
  11017. function Wi(e) {
  11018. return function (t, r, i) {
  11019. return i && "number" != typeof i && gs(t, r, i) && (r = i = n), t = po(t), r === n ? (r = t, t = 0) : r = po(r), function (e, t, n, r) {
  11020. for (var i = -1, s = An(mt((t - e) / (n || 1)), 0), a = ye(s); s--;) a[r ? s : ++i] = e, e += n;
  11021. return a
  11022. }(t, r, i = i === n ? t < r ? 1 : -1 : po(i), e)
  11023. }
  11024. }
  11025. function Vi(e) {
  11026. return function (t, n) {
  11027. return "string" == typeof t && "string" == typeof n || (t = Eo(t), n = Eo(n)), e(t, n)
  11028. }
  11029. }
  11030. function $i(e, t, r, i, s, a, u, l, h, f) {
  11031. var p = 8 & t,
  11032. s = (4 & (t = (t | (p ? o : 64)) & ~(p ? 64 : o)) || (t &= -4), [e, t, s, p ? a : n, p ? u : n, p ? n : a, p ? n : u, l, h, f]),
  11033. a = r.apply(n, s);
  11034. return ys(e) && Ls(a, s), a.placeholder = i, ws(a, e, t)
  11035. }
  11036. function Qi(e) {
  11037. var t = be[e];
  11038. return function (e, n) {
  11039. var r;
  11040. return e = Eo(e), (n = null == n ? 0 : gn(mo(n), 292)) && Wt(e) ? (r = (Ao(e) + "e").split("e"), +((r = (Ao(t(r[0] + "e" + (+r[1] + n))) + "e").split("e"))[0] + "e" + (+r[1] - n))) : t(e)
  11041. }
  11042. }
  11043. var zi = On && 1 / ln(new On([, -0]))[1] == h ? function (e) {
  11044. return new On(e)
  11045. } : uc;
  11046. function Xi(e) {
  11047. return function (t) {
  11048. var n = ms(t);
  11049. return n == S ? on(t) : n == O ? function (e) {
  11050. var t = -1, n = Array(e.size);
  11051. return e.forEach(function (e) {
  11052. n[++t] = [e, e]
  11053. }), n
  11054. }(t) : function (e, t) {
  11055. return wt(t, function (t) {
  11056. return [t, e[t]]
  11057. })
  11058. }(t, e(t))
  11059. }
  11060. }
  11061. function Zi(e, t, i, h, f, p, d, m) {
  11062. var E, A, T, _ = 2 & t;
  11063. if (_ || "function" == typeof e) return (E = h ? h.length : 0) || (t &= -97, h = f = n), d = d === n ? d : An(mo(d), 0), m = m === n ? m : mo(m), E -= f ? f.length : 0, 64 & t && (T = h, A = f, h = f = n), T = [e, t, i, h, f, T, A, p, d, m], (A = _ ? n : as(e)) && function (e, t) {
  11064. var h, n = e[1], r = t[1], i = n | r,
  11065. o = r == u && 8 == n || r == u && 256 == n && e[7].length <= t[8] || 384 == r && t[7].length <= t[8] && 8 == n;
  11066. (i < 131 || o) && (1 & r && (e[2] = t[2], i |= 1 & n ? 0 : 4), (o = t[3]) && (h = e[3], e[3] = h ? Oi(h, o, t[4]) : o, e[4] = h ? un(e[3], s) : t[4]), (o = t[5]) && (h = e[5], e[5] = h ? ki(h, o, t[6]) : o, e[6] = h ? un(e[5], s) : t[6]), (o = t[7]) && (e[7] = o), r & u && (e[8] = null == e[8] ? t[8] : gn(e[8], t[8])), null == e[9] && (e[9] = t[9]), e[0] = t[0], e[1] = i)
  11067. }(T, A), e = T[0], t = T[1], i = T[2], h = T[3], f = T[4], !(m = T[9] = T[9] === n ? _ ? 0 : e.length : An(T[9] - E, 0)) && 24 & t && (t &= -25), p = t && 1 != t ? 8 == t || 16 == t ? function (e, t, r) {
  11068. var i = Fi(e);
  11069. return function s() {
  11070. for (var a = arguments.length, o = ye(a), c = a, u = cs(s); c--;) o[c] = arguments[c];
  11071. return (a -= (u = a < 3 && o[0] !== u && o[a - 1] !== u ? [] : un(o, u)).length) < r ? $i(e, t, Gi, s.placeholder, n, o, u, n, n, r - a) : Nt(this && this !== pt && this instanceof s ? i : e, this, o)
  11072. }
  11073. }(e, t, m) : t != o && 33 != t || f.length ? Gi.apply(n, T) : function (e, t, n, r) {
  11074. var i = 1 & t, s = Fi(e);
  11075. return function t() {
  11076. for (var a = -1, o = arguments.length, c = -1, u = r.length, l = ye(u + o), h = this && this !== pt && this instanceof t ? s : e; ++c < u;) l[c] = r[c];
  11077. for (; o--;) l[c++] = arguments[++a];
  11078. return Nt(h, i ? n : this, l)
  11079. }
  11080. }(e, t, i, h) : function (e, t, n) {
  11081. var r = 1 & t, i = Fi(e);
  11082. return function t() {
  11083. return (this && this !== pt && this instanceof t ? i : e).apply(r ? n : this, arguments)
  11084. }
  11085. }(e, t, i), ws((A ? ti : Ls)(p, T), e, t);
  11086. throw new Le(r)
  11087. }
  11088. function Ji(e, t, r, i) {
  11089. return e === n || Ha(e, we[r]) && !Pe.call(i, r) ? t : e
  11090. }
  11091. function es(e, t, r, i, s, a) {
  11092. return eo(e) && eo(t) && (a.set(t, e), qr(e, t, n, es, a), a.delete(t)), e
  11093. }
  11094. function ts(e) {
  11095. return io(e) ? n : e
  11096. }
  11097. function ns(e, t, r, i, s, a) {
  11098. var o = 1 & r, c = e.length;
  11099. if (c != (u = t.length) && !(o && c < u)) return !1;
  11100. var u = a.get(e), h = a.get(t);
  11101. if (u && h) return u == t && h == e;
  11102. var f = -1, p = !0, d = 2 & r ? new Qn : n;
  11103. for (a.set(e, t), a.set(t, e); ++f < c;) {
  11104. var E, m = e[f], _ = t[f];
  11105. if ((E = i ? o ? i(_, m, f, t, e, a) : i(m, _, f, e, t, a) : E) !== n) {
  11106. if (E) continue;
  11107. p = !1;
  11108. break
  11109. }
  11110. if (d) {
  11111. if (!Bt(t, function (e, t) {
  11112. return !Jt(d, t) && (m === e || s(m, e, r, i, a)) && d.push(t)
  11113. })) {
  11114. p = !1;
  11115. break
  11116. }
  11117. } else if (m !== _ && !s(m, _, r, i, a)) {
  11118. p = !1;
  11119. break
  11120. }
  11121. }
  11122. return a.delete(e), a.delete(t), p
  11123. }
  11124. function rs(e) {
  11125. return Rs(Is(e, n, Ks), e + "")
  11126. }
  11127. function is(e) {
  11128. return Nr(e, Ro, ps)
  11129. }
  11130. function ss(e) {
  11131. return Nr(e, wo, ds)
  11132. }
  11133. var as = Dn ? function (e) {
  11134. return Dn.get(e)
  11135. } : uc;
  11136. function os(e) {
  11137. for (var t = e.name + "", n = Rn[t], r = Pe.call(Rn, t) ? n.length : 0; r--;) {
  11138. var i = n[r], s = i.func;
  11139. if (null == s || s == e) return i.name
  11140. }
  11141. return t
  11142. }
  11143. function cs(e) {
  11144. return (Pe.call(Gn, "placeholder") ? Gn : e).placeholder
  11145. }
  11146. function us() {
  11147. var e = (e = Gn.iteratee || sc) === sc ? Pr : e;
  11148. return arguments.length ? e(arguments[0], arguments[1]) : e
  11149. }
  11150. function ls(e, t) {
  11151. var r, e = e.__data__;
  11152. return ("string" == (r = typeof t) || "number" == r || "symbol" == r || "boolean" == r ? "__proto__" !== t : null === t) ? e["string" == typeof t ? "string" : "hash"] : e.map
  11153. }
  11154. function hs(e) {
  11155. for (var t = Ro(e), n = t.length; n--;) {
  11156. var r = t[n], i = e[r];
  11157. t[n] = [r, i, Ns(i)]
  11158. }
  11159. return t
  11160. }
  11161. function fs(e, t) {
  11162. return Mr(e = function (e, t) {
  11163. return null == e ? n : e[t]
  11164. }(e, t)) ? e : n
  11165. }
  11166. var ps = Tt ? function (e) {
  11167. return null == e ? [] : (e = Ie(e), Lt(Tt(e), function (t) {
  11168. return Qe.call(e, t)
  11169. }))
  11170. } : _c, ds = Tt ? function (e) {
  11171. for (var t = []; e;) xt(t, ps(e)), e = Ve(e);
  11172. return t
  11173. } : _c, ms = br;
  11174. function _s(e, t, n) {
  11175. for (var r = -1, i = (t = gi(t, e)).length, s = !1; ++r < i;) {
  11176. var a = Bs(t[r]);
  11177. if (!(s = null != e && n(e, a))) break;
  11178. e = e[a]
  11179. }
  11180. return s || ++r != i ? s : !!(i = null == e ? 0 : e.length) && Ja(i) && As(a, i) && (Ya(e) || qa(e))
  11181. }
  11182. function Es(e) {
  11183. return "function" != typeof e.constructor || Cs(e) ? {} : jn(Ve(e))
  11184. }
  11185. function Ts(e) {
  11186. return Ya(e) || qa(e) || !!(Xe && e && e[Xe])
  11187. }
  11188. function As(e, t) {
  11189. var n = typeof e;
  11190. return !!(t = null == t ? f : t) && ("number" == n || "symbol" != n && Te.test(e)) && -1 < e && e % 1 == 0 && e < t
  11191. }
  11192. function gs(e, t, n) {
  11193. var r;
  11194. return !!eo(n) && !!("number" == (r = typeof t) ? Wa(n) && As(t, n.length) : "string" == r && t in n) && Ha(n[t], e)
  11195. }
  11196. function vs(e, t) {
  11197. var n;
  11198. return !Ya(e) && ("number" == (n = typeof e) || "symbol" == n || "boolean" == n || null == e || co(e) || ee.test(e) || !J.test(e) || null != t && e in Ie(t))
  11199. }
  11200. function ys(e) {
  11201. var t = os(e), n = Gn[t];
  11202. return "function" == typeof n && t in Kn.prototype && (e === n || (t = as(n)) && e === t[0])
  11203. }
  11204. (Se && ms(new Se(new ArrayBuffer(1))) != w || bn && ms(new bn) != S || In && ms(In.resolve()) != b || On && ms(new On) != O || t && ms(new t) != D) && (ms = function (e) {
  11205. var t = br(e);
  11206. if (e = (e = t == N ? e.constructor : n) ? Fs(e) : "") switch (e) {
  11207. case wn:
  11208. return w;
  11209. case xn:
  11210. return S;
  11211. case Mn:
  11212. return b;
  11213. case Pn:
  11214. return O;
  11215. case Bn:
  11216. return D
  11217. }
  11218. return t
  11219. });
  11220. var Ss = xe ? Xa : Ec;
  11221. function Cs(e) {
  11222. var t = e && e.constructor;
  11223. return e === ("function" == typeof t && t.prototype || we)
  11224. }
  11225. function Ns(e) {
  11226. return e == e && !eo(e)
  11227. }
  11228. function bs(e, t) {
  11229. return function (r) {
  11230. return null != r && r[e] === t && (t !== n || e in Ie(r))
  11231. }
  11232. }
  11233. function Is(e, t, r) {
  11234. return t = An(t === n ? e.length - 1 : t, 0), function () {
  11235. for (var n = arguments, i = -1, s = An(n.length - t, 0), a = ye(s); ++i < s;) a[i] = n[t + i];
  11236. for (var i = -1, o = ye(t + 1); ++i < t;) o[i] = n[i];
  11237. return o[t] = r(a), Nt(e, this, o)
  11238. }
  11239. }
  11240. function Os(e, t) {
  11241. return t.length < 2 ? e : Cr(e, ii(t, 0, -1))
  11242. }
  11243. function ks(e, t) {
  11244. if (("constructor" !== t || "function" != typeof e[t]) && "__proto__" != t) return e[t]
  11245. }
  11246. var Ls = xs(ti), Ds = dt || function (e, t) {
  11247. return pt.setTimeout(e, t)
  11248. }, Rs = xs(Ye);
  11249. function ws(e, t, n) {
  11250. var r = t + "";
  11251. return Rs(e, function (e, t) {
  11252. var r, n = t.length;
  11253. return n ? (t[r = n - 1] = (1 < n ? "& " : "") + t[r], t = t.join(2 < n ? ", " : " "), e.replace(ae, "{\n/* [wrapped with " + t + "] */\n")) : e
  11254. }(r, function (e, t) {
  11255. return It(m, function (n) {
  11256. var r = "_." + n[0];
  11257. t & n[1] && !Dt(e, r) && e.push(r)
  11258. }), e.sort()
  11259. }(function () {
  11260. var t = r.match(oe);
  11261. return t ? t[1].split(ce) : []
  11262. }(), n)))
  11263. }
  11264. function xs(e) {
  11265. var t = 0, r = 0;
  11266. return function () {
  11267. var i = vn(), s = 16 - (i - r);
  11268. if (r = i, 0 < s) {
  11269. if (800 <= ++t) return arguments[0]
  11270. } else t = 0;
  11271. return e.apply(n, arguments)
  11272. }
  11273. }
  11274. function Ms(e, t) {
  11275. var r = -1, i = e.length, s = i - 1;
  11276. for (t = t === n ? i : t; ++r < t;) {
  11277. var a = Qr(r, s), o = e[a];
  11278. e[a] = e[r], e[r] = o
  11279. }
  11280. return e.length = t, e
  11281. }
  11282. var Ps = function () {
  11283. var t = xa(function (e) {
  11284. var t = [];
  11285. return 46 === e.charCodeAt(0) && t.push(""), e.replace(te, function (e, n, r, i) {
  11286. t.push(r ? i.replace(he, "$1") : n || e)
  11287. }), t
  11288. }, function (e) {
  11289. return 500 === n.size && n.clear(), e
  11290. }), n = t.cache;
  11291. return t
  11292. }();
  11293. function Bs(e) {
  11294. var t;
  11295. return "string" == typeof e || co(e) ? e : "0" == (t = e + "") && 1 / e == -1 / 0 ? "-0" : t
  11296. }
  11297. function Fs(e) {
  11298. if (null != e) {
  11299. try {
  11300. return Me.call(e)
  11301. } catch (e) {
  11302. }
  11303. try {
  11304. return e + ""
  11305. } catch (e) {
  11306. }
  11307. }
  11308. return ""
  11309. }
  11310. function Us(e) {
  11311. var t;
  11312. return e instanceof Kn ? e.clone() : ((t = new Yn(e.__wrapped__, e.__chain__)).__actions__ = Li(e.__actions__), t.__index__ = e.__index__, t.__values__ = e.__values__, t)
  11313. }
  11314. function qs(e, t, n) {
  11315. var r = null == e ? 0 : e.length;
  11316. return r ? ((n = null == n ? 0 : mo(n)) < 0 && (n = An(r + n, 0)), Ht(e, us(t, 3), n)) : -1
  11317. }
  11318. function Ys(e, t, r) {
  11319. var s, i = null == e ? 0 : e.length;
  11320. return i ? (s = i - 1, r !== n && (s = mo(r), s = r < 0 ? An(i + s, 0) : gn(s, i - 1)), Ht(e, us(t, 3), s, !0)) : -1
  11321. }
  11322. function Ks(e) {
  11323. return null != e && e.length ? Tr(e, 1) : []
  11324. }
  11325. function Ws(e) {
  11326. return e && e.length ? e[0] : n
  11327. }
  11328. function zs(e) {
  11329. var t = null == e ? 0 : e.length;
  11330. return t ? e[t - 1] : n
  11331. }
  11332. function Zs(e, t) {
  11333. return e && e.length && t && t.length ? Vr(e, t) : e
  11334. }
  11335. ht = Xr(function (e, t) {
  11336. return Va(e) ? fr(e, Tr(t, 1, Va, !0)) : []
  11337. }), Se = Xr(function (e, t) {
  11338. var r = zs(t);
  11339. return Va(r) && (r = n), Va(e) ? fr(e, Tr(t, 1, Va, !0), us(r, 2)) : []
  11340. }), In = Xr(function (e, t) {
  11341. var r = zs(t);
  11342. return Va(r) && (r = n), Va(e) ? fr(e, Tr(t, 1, Va, !0), n, r) : []
  11343. }), t = Xr(function (e) {
  11344. var t = wt(e, Ti);
  11345. return t.length && t[0] === e[0] ? Lr(t) : []
  11346. }), xe = Xr(function (e) {
  11347. var t = zs(e), r = wt(e, Ti);
  11348. return t === zs(r) ? t = n : r.pop(), r.length && r[0] === e[0] ? Lr(r, us(t, 2)) : []
  11349. }), dt = Xr(function (e) {
  11350. var t = zs(e), r = wt(e, Ti);
  11351. return (t = "function" == typeof t ? t : n) && r.pop(), r.length && r[0] === e[0] ? Lr(r, n, t) : []
  11352. }), Ye = Xr(Zs);
  11353. var Js = rs(function (e, t) {
  11354. var n = null == e ? 0 : e.length, r = or(e, t);
  11355. return $r(e, wt(t, function (e) {
  11356. return As(e, n) ? +e : e
  11357. }).sort(Ii)), r
  11358. });
  11359. function ea(e) {
  11360. return null == e ? e : Cn.call(e)
  11361. }
  11362. var ta = Xr(function (e) {
  11363. return hi(Tr(e, 1, Va, !0))
  11364. }), na = Xr(function (e) {
  11365. var t = zs(e);
  11366. return Va(t) && (t = n), hi(Tr(e, 1, Va, !0), us(t, 2))
  11367. }), ra = Xr(function (e) {
  11368. var t = "function" == typeof (t = zs(e)) ? t : n;
  11369. return hi(Tr(e, 1, Va, !0), n, t)
  11370. });
  11371. function ia(e) {
  11372. var t;
  11373. return e && e.length ? (t = 0, e = Lt(e, function (e) {
  11374. if (Va(e)) return t = An(e.length, t), !0
  11375. }), Qt(t, function (t) {
  11376. return wt(e, Kt(t))
  11377. })) : []
  11378. }
  11379. function sa(e, t) {
  11380. return e && e.length ? (e = ia(e), null == t ? e : wt(e, function (e) {
  11381. return Nt(t, n, e)
  11382. })) : []
  11383. }
  11384. var aa = Xr(function (e, t) {
  11385. return Va(e) ? fr(e, t) : []
  11386. }), oa = Xr(function (e) {
  11387. return _i(Lt(e, Va))
  11388. }), ca = Xr(function (e) {
  11389. var t = zs(e);
  11390. return Va(t) && (t = n), _i(Lt(e, Va), us(t, 2))
  11391. }), ua = Xr(function (e) {
  11392. var t = "function" == typeof (t = zs(e)) ? t : n;
  11393. return _i(Lt(e, Va), n, t)
  11394. }), la = Xr(ia), ha = Xr(function (e) {
  11395. var t = "function" == typeof (t = 1 < (t = e.length) ? e[t - 1] : n) ? (e.pop(), t) : n;
  11396. return sa(e, t)
  11397. });
  11398. function fa(e) {
  11399. return (e = Gn(e)).__chain__ = !0, e
  11400. }
  11401. function pa(e, t) {
  11402. return t(e)
  11403. }
  11404. var da = rs(function (e) {
  11405. function s(t) {
  11406. return or(t, e)
  11407. }
  11408. var t = e.length, r = t ? e[0] : 0, i = this.__wrapped__;
  11409. return !(1 < t || this.__actions__.length) && i instanceof Kn && As(r) ? ((i = i.slice(r, +r + (t ? 1 : 0))).__actions__.push({
  11410. func: pa,
  11411. args: [s],
  11412. thisArg: n
  11413. }), new Yn(i, this.__chain__).thru(function (e) {
  11414. return t && !e.length && e.push(n), e
  11415. })) : this.thru(s)
  11416. }), ma = Ri(function (e, t, n) {
  11417. Pe.call(e, n) ? ++e[n] : ar(e, n, 1)
  11418. }), _a = Ui(qs), Ea = Ui(Ys);
  11419. function Ta(e, t) {
  11420. return (Ya(e) ? It : pr)(e, us(t, 3))
  11421. }
  11422. function Aa(e, t) {
  11423. return (Ya(e) ? function (e, t) {
  11424. for (var n = null == e ? 0 : e.length; n-- && !1 !== t(e[n], n, e);) ;
  11425. return e
  11426. } : dr)(e, us(t, 3))
  11427. }
  11428. var ga = Ri(function (e, t, n) {
  11429. Pe.call(e, n) ? e[n].push(t) : ar(e, n, [t])
  11430. }), va = Xr(function (e, t, n) {
  11431. var r = -1, i = "function" == typeof t, s = Wa(e) ? ye(e.length) : [];
  11432. return pr(e, function (e) {
  11433. s[++r] = i ? Nt(t, e, n) : Dr(e, t, n)
  11434. }), s
  11435. }), ya = Ri(function (e, t, n) {
  11436. ar(e, n, t)
  11437. });
  11438. function Sa(e, t) {
  11439. return (Ya(e) ? wt : Hr)(e, us(t, 3))
  11440. }
  11441. var Ca = Ri(function (e, t, n) {
  11442. e[n ? 0 : 1].push(t)
  11443. }, function () {
  11444. return [[], []]
  11445. }), Na = Xr(function (e, t) {
  11446. var n;
  11447. return null == e ? [] : (1 < (n = t.length) && gs(e, t[0], t[1]) ? t = [] : 2 < n && gs(t[0], t[1], t[2]) && (t = [t[0]]), Kr(e, Tr(t, 1), []))
  11448. }), ba = ft || function () {
  11449. return pt.Date.now()
  11450. };
  11451. function Ia(e, t, r) {
  11452. return t = r ? n : t, t = e && null == t ? e.length : t, Zi(e, u, n, n, n, n, t)
  11453. }
  11454. function Oa(e, t) {
  11455. var i;
  11456. if ("function" != typeof t) throw new Le(r);
  11457. return e = mo(e), function () {
  11458. return 0 < --e && (i = t.apply(this, arguments)), e <= 1 && (t = n), i
  11459. }
  11460. }
  11461. var ka = Xr(function (e, t, n) {
  11462. var i, r = 1;
  11463. return n.length && (i = un(n, cs(ka)), r |= o), Zi(e, r, t, n, i)
  11464. }), La = Xr(function (e, t, n) {
  11465. var i, r = 3;
  11466. return n.length && (i = un(n, cs(La)), r |= o), Zi(t, r, e, n, i)
  11467. });
  11468. function Da(e, t, i) {
  11469. var s, a, o, c, u, l, h = 0, f = !1, p = !1, d = !0;
  11470. if ("function" != typeof e) throw new Le(r);
  11471. function m(t) {
  11472. var r = s, i = a;
  11473. return s = a = n, h = t, c = e.apply(i, r)
  11474. }
  11475. function _(e) {
  11476. var r = e - l;
  11477. return l === n || t <= r || r < 0 || p && o <= e - h
  11478. }
  11479. function E() {
  11480. var e = ba();
  11481. if (_(e)) return T(e);
  11482. u = Ds(E, function (e) {
  11483. var n = t - (e - l);
  11484. return p ? gn(n, o - (e - h)) : n
  11485. }(e))
  11486. }
  11487. function T(e) {
  11488. return u = n, d && s ? m(e) : (s = a = n, c)
  11489. }
  11490. function A() {
  11491. var e = ba(), r = _(e);
  11492. if (s = arguments, a = this, l = e, r) {
  11493. if (u === n) return function (e) {
  11494. return h = e, u = Ds(E, t), f ? m(e) : c
  11495. }(l);
  11496. if (p) return Si(u), u = Ds(E, t), m(l)
  11497. }
  11498. return u === n && (u = Ds(E, t)), c
  11499. }
  11500. return t = Eo(t) || 0, eo(i) && (f = !!i.leading, o = (p = "maxWait" in i) ? An(Eo(i.maxWait) || 0, t) : o, d = "trailing" in i ? !!i.trailing : d), A.cancel = function () {
  11501. u !== n && Si(u), h = 0, s = l = a = u = n
  11502. }, A.flush = function () {
  11503. return u === n ? c : T(ba())
  11504. }, A
  11505. }
  11506. var ft = Xr(function (e, t) {
  11507. return hr(e, 1, t)
  11508. }), wa = Xr(function (e, t, n) {
  11509. return hr(e, Eo(t) || 0, n)
  11510. });
  11511. function xa(e, t) {
  11512. if ("function" != typeof e || null != t && "function" != typeof t) throw new Le(r);
  11513. function n() {
  11514. var r = arguments, i = t ? t.apply(this, r) : r[0], s = n.cache;
  11515. return s.has(i) ? s.get(i) : (r = e.apply(this, r), n.cache = s.set(i, r) || s, r)
  11516. }
  11517. return n.cache = new (xa.Cache || $n), n
  11518. }
  11519. function Ma(e) {
  11520. if ("function" != typeof e) throw new Le(r);
  11521. return function () {
  11522. var t = arguments;
  11523. switch (t.length) {
  11524. case 0:
  11525. return !e.call(this);
  11526. case 1:
  11527. return !e.call(this, t[0]);
  11528. case 2:
  11529. return !e.call(this, t[0], t[1]);
  11530. case 3:
  11531. return !e.call(this, t[0], t[1], t[2])
  11532. }
  11533. return !e.apply(this, t)
  11534. }
  11535. }
  11536. xa.Cache = $n;
  11537. var vi = vi(function (e, t) {
  11538. var n = (t = 1 == t.length && Ya(t[0]) ? wt(t[0], Xt(us())) : wt(Tr(t, 1), Xt(us()))).length;
  11539. return Xr(function (r) {
  11540. for (var i = -1, s = gn(r.length, n); ++i < s;) r[i] = t[i].call(this, r[i]);
  11541. return Nt(e, this, r)
  11542. })
  11543. }), Ba = Xr(function (e, t) {
  11544. var r = un(t, cs(Ba));
  11545. return Zi(e, o, n, t, r)
  11546. }), Fa = Xr(function (e, t) {
  11547. var r = un(t, cs(Fa));
  11548. return Zi(e, 64, n, t, r)
  11549. }), Ua = rs(function (e, t) {
  11550. return Zi(e, 256, n, n, n, t)
  11551. });
  11552. function Ha(e, t) {
  11553. return e === t || e != e && t != t
  11554. }
  11555. var Ga = Vi(Ir), ja = Vi(function (e, t) {
  11556. return t <= e
  11557. }), qa = Rr(function () {
  11558. return arguments
  11559. }()) ? Rr : function (e) {
  11560. return to(e) && Pe.call(e, "callee") && !Qe.call(e, "callee")
  11561. }, Ya = ye.isArray, Ka = At ? Xt(At) : function (e) {
  11562. return to(e) && br(e) == R
  11563. };
  11564. function Wa(e) {
  11565. return null != e && Ja(e.length) && !Xa(e)
  11566. }
  11567. function Va(e) {
  11568. return to(e) && Wa(e)
  11569. }
  11570. var $a = Re || Ec, Re = gt ? Xt(gt) : function (e) {
  11571. return to(e) && br(e) == A
  11572. };
  11573. function za(e) {
  11574. var t;
  11575. return !!to(e) && ((t = br(e)) == g || "[object DOMException]" == t || "string" == typeof e.message && "string" == typeof e.name && !io(e))
  11576. }
  11577. function Xa(e) {
  11578. return !!eo(e) && ((e = br(e)) == v || e == y || "[object AsyncFunction]" == e || "[object Proxy]" == e)
  11579. }
  11580. function Za(e) {
  11581. return "number" == typeof e && e == mo(e)
  11582. }
  11583. function Ja(e) {
  11584. return "number" == typeof e && -1 < e && e % 1 == 0 && e <= f
  11585. }
  11586. function eo(e) {
  11587. var t = typeof e;
  11588. return null != e && ("object" == t || "function" == t)
  11589. }
  11590. function to(e) {
  11591. return null != e && "object" == typeof e
  11592. }
  11593. var no = vt ? Xt(vt) : function (e) {
  11594. return to(e) && ms(e) == S
  11595. };
  11596. function ro(e) {
  11597. return "number" == typeof e || to(e) && br(e) == C
  11598. }
  11599. function io(e) {
  11600. return !(!to(e) || br(e) != N) && (null === (e = Ve(e)) || "function" == typeof (e = Pe.call(e, "constructor") && e.constructor) && e instanceof e && Me.call(e) == He)
  11601. }
  11602. var so = yt ? Xt(yt) : function (e) {
  11603. return to(e) && br(e) == I
  11604. }, ao = St ? Xt(St) : function (e) {
  11605. return to(e) && ms(e) == O
  11606. };
  11607. function oo(e) {
  11608. return "string" == typeof e || !Ya(e) && to(e) && br(e) == k
  11609. }
  11610. function co(e) {
  11611. return "symbol" == typeof e || to(e) && br(e) == L
  11612. }
  11613. var uo = Ct ? Xt(Ct) : function (e) {
  11614. return to(e) && Ja(e.length) && !!at[br(e)]
  11615. }, lo = Vi(Ur), ho = Vi(function (e, t) {
  11616. return e <= t
  11617. });
  11618. function fo(e) {
  11619. var t;
  11620. return e ? Wa(e) ? (oo(e) ? pn : Li)(e) : et && e[et] ? function (e) {
  11621. for (var t, n = []; !(t = e.next()).done;) n.push(t.value);
  11622. return n
  11623. }(e[et]()) : ((t = ms(e)) == S ? on : t == O ? ln : Go)(e) : []
  11624. }
  11625. function po(e) {
  11626. return e ? (e = Eo(e)) === h || e === -1 / 0 ? 17976931348623157e292 * (e < 0 ? -1 : 1) : e == e ? e : 0 : 0 === e ? e : 0
  11627. }
  11628. function mo(e) {
  11629. var n = (e = po(e)) % 1;
  11630. return e == e ? n ? e - n : e : 0
  11631. }
  11632. function _o(e) {
  11633. return e ? cr(mo(e), 0, d) : 0
  11634. }
  11635. function Eo(e) {
  11636. if ("number" == typeof e) return e;
  11637. if (co(e)) return p;
  11638. if ("string" != typeof (e = eo(e) ? eo(t = "function" == typeof e.valueOf ? e.valueOf() : e) ? t + "" : t : e)) return 0 === e ? e : +e;
  11639. e = zt(e);
  11640. var t = me.test(e);
  11641. return t || Ee.test(e) ? lt(e.slice(2), t ? 2 : 8) : de.test(e) ? p : +e
  11642. }
  11643. function To(e) {
  11644. return Di(e, wo(e))
  11645. }
  11646. function Ao(e) {
  11647. return null == e ? "" : li(e)
  11648. }
  11649. var go = wi(function (e, t) {
  11650. if (Cs(t) || Wa(t)) Di(t, Ro(t), e); else for (var n in t) Pe.call(t, n) && nr(e, n, t[n])
  11651. }), vo = wi(function (e, t) {
  11652. Di(t, wo(t), e)
  11653. }), yo = wi(function (e, t, n, r) {
  11654. Di(t, wo(t), e, r)
  11655. }), So = wi(function (e, t, n, r) {
  11656. Di(t, Ro(t), e, r)
  11657. }), Co = rs(or), No = Xr(function (e, t) {
  11658. e = Ie(e);
  11659. var r = -1, i = t.length, s = 2 < i ? t[2] : n;
  11660. for (s && gs(t[0], t[1], s) && (i = 1); ++r < i;) for (var a = t[r], o = wo(a), c = -1, u = o.length; ++c < u;) {
  11661. var l = o[c], h = e[l];
  11662. (h === n || Ha(h, we[l]) && !Pe.call(e, l)) && (e[l] = a[l])
  11663. }
  11664. return e
  11665. }), bo = Xr(function (e) {
  11666. return e.push(n, es), Nt(Mo, n, e)
  11667. });
  11668. function Io(e, t, r) {
  11669. return (e = null == e ? n : Cr(e, t)) === n ? r : e
  11670. }
  11671. function Oo(e, t) {
  11672. return null != e && _s(e, t, kr)
  11673. }
  11674. var ko = ji(function (e, t, n) {
  11675. e[t = null != t && "function" != typeof t.toString ? Ue.call(t) : t] = n
  11676. }, tc(ic)), Lo = ji(function (e, t, n) {
  11677. null != t && "function" != typeof t.toString && (t = Ue.call(t)), Pe.call(e, t) ? e[t].push(n) : e[t] = [n]
  11678. }, us), Do = Xr(Dr);
  11679. function Ro(e) {
  11680. return (Wa(e) ? Xn : Br)(e)
  11681. }
  11682. function wo(e) {
  11683. return Wa(e) ? Xn(e, !0) : function (e) {
  11684. if (!eo(e)) return function (e) {
  11685. var t = [];
  11686. if (null != e) for (var n in Ie(e)) t.push(n);
  11687. return t
  11688. }(e);
  11689. var r, t = Cs(e), n = [];
  11690. for (r in e) ("constructor" != r || !t && Pe.call(e, r)) && n.push(r);
  11691. return n
  11692. }(e)
  11693. }
  11694. var xo = wi(function (e, t, n) {
  11695. qr(e, t, n)
  11696. }), Mo = wi(function (e, t, n, r) {
  11697. qr(e, t, n, r)
  11698. }), Po = rs(function (e, t) {
  11699. var n = {};
  11700. if (null != e) {
  11701. var r = !1;
  11702. t = wt(t, function (t) {
  11703. return t = gi(t, e), r = r || 1 < t.length, t
  11704. }), Di(e, ss(e), n), r && (n = ur(n, 7, ts));
  11705. for (var i = t.length; i--;) fi(n, t[i])
  11706. }
  11707. return n
  11708. }), Bo = rs(function (e, t) {
  11709. return null == e ? {} : function (e, t) {
  11710. return Wr(e, t, function (t, n) {
  11711. return Oo(e, n)
  11712. })
  11713. }(e, t)
  11714. });
  11715. function Fo(e, t) {
  11716. var n;
  11717. return null == e ? {} : (n = wt(ss(e), function (e) {
  11718. return [e]
  11719. }), t = us(t), Wr(e, n, function (e, n) {
  11720. return t(e, n[0])
  11721. }))
  11722. }
  11723. var Uo = Xi(Ro), Ho = Xi(wo);
  11724. function Go(e) {
  11725. return null == e ? [] : Zt(e, Ro(e))
  11726. }
  11727. var jo = Bi(function (e, t, n) {
  11728. return t = t.toLowerCase(), e + (n ? qo(t) : t)
  11729. });
  11730. function qo(e) {
  11731. return Xo(Ao(e).toLowerCase())
  11732. }
  11733. function Yo(e) {
  11734. return (e = Ao(e)) && e.replace(Ae, nn).replace(Je, "")
  11735. }
  11736. var Ko = Bi(function (e, t, n) {
  11737. return e + (n ? "-" : "") + t.toLowerCase()
  11738. }), Wo = Bi(function (e, t, n) {
  11739. return e + (n ? " " : "") + t.toLowerCase()
  11740. }), Vo = Pi("toLowerCase"), $o = Bi(function (e, t, n) {
  11741. return e + (n ? "_" : "") + t.toLowerCase()
  11742. }), Qo = Bi(function (e, t, n) {
  11743. return e + (n ? " " : "") + Xo(t)
  11744. }), zo = Bi(function (e, t, n) {
  11745. return e + (n ? " " : "") + t.toUpperCase()
  11746. }), Xo = Pi("toUpperCase");
  11747. function Zo(e, t, r) {
  11748. return e = Ao(e), (t = r ? n : t) === n ? (function (e) {
  11749. return rt.test(e)
  11750. }(e) ? function (e) {
  11751. return e.match(tt) || []
  11752. } : function (e) {
  11753. return e.match(ue) || []
  11754. })(e) : e.match(t) || []
  11755. }
  11756. var Jo = Xr(function (e, t) {
  11757. try {
  11758. return Nt(e, n, t)
  11759. } catch (e) {
  11760. return za(e) ? e : new Ce(e)
  11761. }
  11762. }), ec = rs(function (e, t) {
  11763. return It(t, function (t) {
  11764. t = Bs(t), ar(e, t, ka(e[t], e))
  11765. }), e
  11766. });
  11767. function tc(e) {
  11768. return function () {
  11769. return e
  11770. }
  11771. }
  11772. var nc = Hi(), rc = Hi(!0);
  11773. function ic(e) {
  11774. return e
  11775. }
  11776. function sc(e) {
  11777. return Pr("function" == typeof e ? e : ur(e, 1))
  11778. }
  11779. var ac = Xr(function (e, t) {
  11780. return function (n) {
  11781. return Dr(n, e, t)
  11782. }
  11783. }), oc = Xr(function (e, t) {
  11784. return function (n) {
  11785. return Dr(e, n, t)
  11786. }
  11787. });
  11788. function cc(e, t, n) {
  11789. var r = Ro(t), i = Sr(t, r),
  11790. s = (null != n || eo(t) && (i.length || !r.length) || (n = t, t = e, e = this, i = Sr(t, Ro(t))), !(eo(n) && "chain" in n && !n.chain)),
  11791. a = Xa(e);
  11792. return It(i, function (n) {
  11793. var r = t[n];
  11794. e[n] = r, a && (e.prototype[n] = function () {
  11795. var n, t = this.__chain__;
  11796. return s || t ? (((n = e(this.__wrapped__)).__actions__ = Li(this.__actions__)).push({
  11797. func: r,
  11798. args: arguments,
  11799. thisArg: e
  11800. }), n.__chain__ = t, n) : r.apply(e, xt([this.value()], arguments))
  11801. })
  11802. }), e
  11803. }
  11804. function uc() {
  11805. }
  11806. var lc = Yi(wt), hc = Yi(kt), fc = Yi(Bt);
  11807. function pc(e) {
  11808. return vs(e) ? Kt(Bs(e)) : function (e) {
  11809. return function (t) {
  11810. return Cr(t, e)
  11811. }
  11812. }(e)
  11813. }
  11814. var dc = Wi(), mc = Wi(!0);
  11815. function _c() {
  11816. return []
  11817. }
  11818. function Ec() {
  11819. return !1
  11820. }
  11821. var yc, Tc = qi(function (e, t) {
  11822. return e + t
  11823. }, 0), Ac = Qi("ceil"), gc = qi(function (e, t) {
  11824. return e / t
  11825. }, 1), vc = Qi("floor"), Sc = qi(function (e, t) {
  11826. return e * t
  11827. }, 1), Cc = Qi("round"), Nc = qi(function (e, t) {
  11828. return e - t
  11829. }, 0);
  11830. return Gn.after = function (e, t) {
  11831. if ("function" != typeof t) throw new Le(r);
  11832. return e = mo(e), function () {
  11833. if (--e < 1) return t.apply(this, arguments)
  11834. }
  11835. }, Gn.ary = Ia, Gn.assign = go, Gn.assignIn = vo, Gn.assignInWith = yo, Gn.assignWith = So, Gn.at = Co, Gn.before = Oa, Gn.bind = ka, Gn.bindAll = ec, Gn.bindKey = La, Gn.castArray = function () {
  11836. var e;
  11837. return arguments.length ? Ya(e = arguments[0]) ? e : [e] : []
  11838. }, Gn.chain = fa, Gn.chunk = function (e, t, r) {
  11839. t = (r ? gs(e, t, r) : t === n) ? 1 : An(mo(t), 0);
  11840. var i = null == e ? 0 : e.length;
  11841. if (!i || t < 1) return [];
  11842. for (var s = 0, a = 0, o = ye(mt(i / t)); s < i;) o[a++] = ii(e, s, s += t);
  11843. return o
  11844. }, Gn.compact = function (e) {
  11845. for (var t = -1, n = null == e ? 0 : e.length, r = 0, i = []; ++t < n;) {
  11846. var s = e[t];
  11847. s && (i[r++] = s)
  11848. }
  11849. return i
  11850. }, Gn.concat = function () {
  11851. var e = arguments.length;
  11852. if (!e) return [];
  11853. for (var t = ye(e - 1), n = arguments[0], r = e; r--;) t[r - 1] = arguments[r];
  11854. return xt(Ya(n) ? Li(n) : [n], Tr(t, 1))
  11855. }, Gn.cond = function (e) {
  11856. var t = null == e ? 0 : e.length, n = us();
  11857. return e = t ? wt(e, function (e) {
  11858. if ("function" != typeof e[1]) throw new Le(r);
  11859. return [n(e[0]), e[1]]
  11860. }) : [], Xr(function (n) {
  11861. for (var r = -1; ++r < t;) {
  11862. var i = e[r];
  11863. if (Nt(i[0], this, n)) return Nt(i[1], this, n)
  11864. }
  11865. })
  11866. }, Gn.conforms = function (e) {
  11867. return function (e) {
  11868. var t = Ro(e);
  11869. return function (n) {
  11870. return lr(n, e, t)
  11871. }
  11872. }(ur(e, 1))
  11873. }, Gn.constant = tc, Gn.countBy = ma, Gn.create = function (e, t) {
  11874. return e = jn(e), null == t ? e : sr(e, t)
  11875. }, Gn.curry = function e(t, r, i) {
  11876. return (t = Zi(t, 8, n, n, n, n, n, r = i ? n : r)).placeholder = e.placeholder, t
  11877. }, Gn.curryRight = function e(t, r, i) {
  11878. return (t = Zi(t, 16, n, n, n, n, n, r = i ? n : r)).placeholder = e.placeholder, t
  11879. }, Gn.debounce = Da, Gn.defaults = No, Gn.defaultsDeep = bo, Gn.defer = ft, Gn.delay = wa, Gn.difference = ht, Gn.differenceBy = Se, Gn.differenceWith = In, Gn.drop = function (e, t, r) {
  11880. var i = null == e ? 0 : e.length;
  11881. return i ? ii(e, (t = r || t === n ? 1 : mo(t)) < 0 ? 0 : t, i) : []
  11882. }, Gn.dropRight = function (e, t, r) {
  11883. var i = null == e ? 0 : e.length;
  11884. return i ? ii(e, 0, (t = i - (r || t === n ? 1 : mo(t))) < 0 ? 0 : t) : []
  11885. }, Gn.dropRightWhile = function (e, t) {
  11886. return e && e.length ? di(e, us(t, 3), !0, !0) : []
  11887. }, Gn.dropWhile = function (e, t) {
  11888. return e && e.length ? di(e, us(t, 3), !0) : []
  11889. }, Gn.fill = function (e, t, r, i) {
  11890. var s = null == e ? 0 : e.length;
  11891. return s ? (r && "number" != typeof r && gs(e, t, r) && (r = 0, i = s), function (e, t, r, i) {
  11892. var s = e.length;
  11893. for ((r = mo(r)) < 0 && (r = s < -r ? 0 : s + r), (i = i === n || s < i ? s : mo(i)) < 0 && (i += s), i = i < r ? 0 : _o(i); r < i;) e[r++] = t;
  11894. return e
  11895. }(e, t, r, i)) : []
  11896. }, Gn.filter = function (e, t) {
  11897. return (Ya(e) ? Lt : Er)(e, us(t, 3))
  11898. }, Gn.flatMap = function (e, t) {
  11899. return Tr(Sa(e, t), 1)
  11900. }, Gn.flatMapDeep = function (e, t) {
  11901. return Tr(Sa(e, t), h)
  11902. }, Gn.flatMapDepth = function (e, t, r) {
  11903. return r = r === n ? 1 : mo(r), Tr(Sa(e, t), r)
  11904. }, Gn.flatten = Ks, Gn.flattenDeep = function (e) {
  11905. return null != e && e.length ? Tr(e, h) : []
  11906. }, Gn.flattenDepth = function (e, t) {
  11907. return null != e && e.length ? Tr(e, t = t === n ? 1 : mo(t)) : []
  11908. }, Gn.flip = function (e) {
  11909. return Zi(e, 512)
  11910. }, Gn.flow = nc, Gn.flowRight = rc, Gn.fromPairs = function (e) {
  11911. for (var t = -1, n = null == e ? 0 : e.length, r = {}; ++t < n;) {
  11912. var i = e[t];
  11913. r[i[0]] = i[1]
  11914. }
  11915. return r
  11916. }, Gn.functions = function (e) {
  11917. return null == e ? [] : Sr(e, Ro(e))
  11918. }, Gn.functionsIn = function (e) {
  11919. return null == e ? [] : Sr(e, wo(e))
  11920. }, Gn.groupBy = ga, Gn.initial = function (e) {
  11921. return null != e && e.length ? ii(e, 0, -1) : []
  11922. }, Gn.intersection = t, Gn.intersectionBy = xe, Gn.intersectionWith = dt, Gn.invert = ko, Gn.invertBy = Lo, Gn.invokeMap = va, Gn.iteratee = sc, Gn.keyBy = ya, Gn.keys = Ro, Gn.keysIn = wo, Gn.map = Sa, Gn.mapKeys = function (e, t) {
  11923. var n = {};
  11924. return t = us(t, 3), vr(e, function (e, r, i) {
  11925. ar(n, t(e, r, i), e)
  11926. }), n
  11927. }, Gn.mapValues = function (e, t) {
  11928. var n = {};
  11929. return t = us(t, 3), vr(e, function (e, r, i) {
  11930. ar(n, r, t(e, r, i))
  11931. }), n
  11932. }, Gn.matches = function (e) {
  11933. return Gr(ur(e, 1))
  11934. }, Gn.matchesProperty = function (e, t) {
  11935. return jr(e, ur(t, 1))
  11936. }, Gn.memoize = xa, Gn.merge = xo, Gn.mergeWith = Mo, Gn.method = ac, Gn.methodOf = oc, Gn.mixin = cc, Gn.negate = Ma, Gn.nthArg = function (e) {
  11937. return e = mo(e), Xr(function (t) {
  11938. return Yr(t, e)
  11939. })
  11940. }, Gn.omit = Po, Gn.omitBy = function (e, t) {
  11941. return Fo(e, Ma(us(t)))
  11942. }, Gn.once = function (e) {
  11943. return Oa(2, e)
  11944. }, Gn.orderBy = function (e, t, r, i) {
  11945. return null == e ? [] : Kr(e, t = Ya(t) ? t : null == t ? [] : [t], r = Ya(r = i ? n : r) ? r : null == r ? [] : [r])
  11946. }, Gn.over = lc, Gn.overArgs = vi, Gn.overEvery = hc, Gn.overSome = fc, Gn.partial = Ba, Gn.partialRight = Fa, Gn.partition = Ca, Gn.pick = Bo, Gn.pickBy = Fo, Gn.property = pc, Gn.propertyOf = function (e) {
  11947. return function (t) {
  11948. return null == e ? n : Cr(e, t)
  11949. }
  11950. }, Gn.pull = Ye, Gn.pullAll = Zs, Gn.pullAllBy = function (e, t, n) {
  11951. return e && e.length && t && t.length ? Vr(e, t, us(n, 2)) : e
  11952. }, Gn.pullAllWith = function (e, t, r) {
  11953. return e && e.length && t && t.length ? Vr(e, t, n, r) : e
  11954. }, Gn.pullAt = Js, Gn.range = dc, Gn.rangeRight = mc, Gn.rearg = Ua, Gn.reject = function (e, t) {
  11955. return (Ya(e) ? Lt : Er)(e, Ma(us(t, 3)))
  11956. }, Gn.remove = function (e, t) {
  11957. var n = [];
  11958. if (e && e.length) {
  11959. var r = -1, i = [], s = e.length;
  11960. for (t = us(t, 3); ++r < s;) {
  11961. var a = e[r];
  11962. t(a, r, e) && (n.push(a), i.push(r))
  11963. }
  11964. $r(e, i)
  11965. }
  11966. return n
  11967. }, Gn.rest = function (e, t) {
  11968. if ("function" != typeof e) throw new Le(r);
  11969. return Xr(e, t = t === n ? t : mo(t))
  11970. }, Gn.reverse = ea,Gn.sampleSize = function (e, t, r) {
  11971. return t = (r ? gs(e, t, r) : t === n) ? 1 : mo(t), (Ya(e) ? function (e, t) {
  11972. return Ms(Li(e), cr(t, 0, e.length))
  11973. } : function (e, t) {
  11974. return Ms(e = Go(e), cr(t, 0, e.length))
  11975. })(e, t)
  11976. },Gn.set = function (e, t, n) {
  11977. return null == e ? e : ei(e, t, n)
  11978. },Gn.setWith = function (e, t, r, i) {
  11979. return i = "function" == typeof i ? i : n, null == e ? e : ei(e, t, r, i)
  11980. },Gn.shuffle = function (e) {
  11981. return (Ya(e) ? function (e) {
  11982. return Ms(Li(e))
  11983. } : function (e) {
  11984. return Ms(Go(e))
  11985. })(e)
  11986. },Gn.slice = function (e, t, r) {
  11987. var i = null == e ? 0 : e.length;
  11988. return i ? (r = r && "number" != typeof r && gs(e, t, r) ? (t = 0, i) : (t = null == t ? 0 : mo(t), r === n ? i : mo(r)), ii(e, t, r)) : []
  11989. },Gn.sortBy = Na,Gn.sortedUniq = function (e) {
  11990. return e && e.length ? ci(e) : []
  11991. },Gn.sortedUniqBy = function (e, t) {
  11992. return e && e.length ? ci(e, us(t, 2)) : []
  11993. },Gn.split = function (e, t, r) {
  11994. return r && "number" != typeof r && gs(e, t, r) && (t = r = n), (r = r === n ? d : r >>> 0) ? (e = Ao(e)) && ("string" == typeof t || null != t && !so(t)) && !(t = li(t)) && an(e) ? yi(pn(e), 0, r) : e.split(t, r) : []
  11995. },Gn.spread = function (e, t) {
  11996. if ("function" != typeof e) throw new Le(r);
  11997. return t = null == t ? 0 : An(mo(t), 0), Xr(function (n) {
  11998. var r = n[t], n = yi(n, 0, t);
  11999. return r && xt(n, r), Nt(e, this, n)
  12000. })
  12001. },Gn.tail = function (e) {
  12002. var t = null == e ? 0 : e.length;
  12003. return t ? ii(e, 1, t) : []
  12004. },Gn.take = function (e, t, r) {
  12005. return e && e.length ? ii(e, 0, (t = r || t === n ? 1 : mo(t)) < 0 ? 0 : t) : []
  12006. },Gn.takeRight = function (e, t, r) {
  12007. var i = null == e ? 0 : e.length;
  12008. return i ? ii(e, (t = i - (r || t === n ? 1 : mo(t))) < 0 ? 0 : t, i) : []
  12009. },Gn.takeRightWhile = function (e, t) {
  12010. return e && e.length ? di(e, us(t, 3), !1, !0) : []
  12011. },Gn.takeWhile = function (e, t) {
  12012. return e && e.length ? di(e, us(t, 3)) : []
  12013. },Gn.tap = function (e, t) {
  12014. return t(e), e
  12015. },Gn.throttle = function (e, t, n) {
  12016. var i = !0, s = !0;
  12017. if ("function" != typeof e) throw new Le(r);
  12018. return eo(n) && (i = "leading" in n ? !!n.leading : i, s = "trailing" in n ? !!n.trailing : s), Da(e, t, {
  12019. leading: i,
  12020. maxWait: t,
  12021. trailing: s
  12022. })
  12023. },Gn.thru = pa,Gn.toArray = fo,Gn.toPairs = Uo,Gn.toPairsIn = Ho,Gn.toPath = function (e) {
  12024. return Ya(e) ? wt(e, Bs) : co(e) ? [e] : Li(Ps(Ao(e)))
  12025. },Gn.toPlainObject = To,Gn.transform = function (e, t, n) {
  12026. var s, r = Ya(e), i = r || $a(e) || uo(e);
  12027. return t = us(t, 4), null == n && (s = e && e.constructor, n = i ? r ? new s : [] : eo(e) && Xa(s) ? jn(Ve(e)) : {}), (i ? It : vr)(e, function (e, r, i) {
  12028. return t(n, e, r, i)
  12029. }), n
  12030. },Gn.unary = function (e) {
  12031. return Ia(e, 1)
  12032. },Gn.union = ta,Gn.unionBy = na,Gn.unionWith = ra,Gn.uniq = function (e) {
  12033. return e && e.length ? hi(e) : []
  12034. },Gn.uniqBy = function (e, t) {
  12035. return e && e.length ? hi(e, us(t, 2)) : []
  12036. },Gn.uniqWith = function (e, t) {
  12037. return t = "function" == typeof t ? t : n, e && e.length ? hi(e, n, t) : []
  12038. },Gn.unset = function (e, t) {
  12039. return null == e || fi(e, t)
  12040. },Gn.unzip = ia,Gn.unzipWith = sa,Gn.update = function (e, t, n) {
  12041. return null == e ? e : pi(e, t, Ai(n))
  12042. },Gn.updateWith = function (e, t, r, i) {
  12043. return i = "function" == typeof i ? i : n, null == e ? e : pi(e, t, Ai(r), i)
  12044. },Gn.values = Go,Gn.valuesIn = function (e) {
  12045. return null == e ? [] : Zt(e, wo(e))
  12046. },Gn.without = aa,Gn.words = Zo,Gn.wrap = function (e, t) {
  12047. return Ba(Ai(t), e)
  12048. },Gn.xor = oa,Gn.xorBy = ca,Gn.xorWith = ua,Gn.zip = la,Gn.zipObject = function (e, t) {
  12049. return Ei(e || [], t || [], nr)
  12050. },Gn.zipObjectDeep = function (e, t) {
  12051. return Ei(e || [], t || [], ei)
  12052. },Gn.zipWith = ha,Gn.entries = Uo,Gn.entriesIn = Ho,Gn.extend = vo,Gn.extendWith = yo,cc(Gn, Gn),Gn.add = Tc,Gn.attempt = Jo,Gn.camelCase = jo,Gn.capitalize = qo,Gn.ceil = Ac,Gn.clamp = function (e, t, r) {
  12053. return r === n && (r = t, t = n), r !== n && (r = (r = Eo(r)) == r ? r : 0), t !== n && (t = (t = Eo(t)) == t ? t : 0), cr(Eo(e), t, r)
  12054. },Gn.clone = function (e) {
  12055. return ur(e, 4)
  12056. },Gn.cloneDeep = function (e) {
  12057. return ur(e, 5)
  12058. },Gn.cloneDeepWith = function (e, t) {
  12059. return ur(e, 5, t = "function" == typeof t ? t : n)
  12060. },Gn.cloneWith = function (e, t) {
  12061. return ur(e, 4, t = "function" == typeof t ? t : n)
  12062. },Gn.conformsTo = function (e, t) {
  12063. return null == t || lr(e, t, Ro(t))
  12064. },Gn.deburr = Yo,Gn.defaultTo = function (e, t) {
  12065. return null == e || e != e ? t : e
  12066. },Gn.divide = gc,Gn.endsWith = function (e, t, r) {
  12067. e = Ao(e), t = li(t);
  12068. var i = e.length, i = r = r === n ? i : cr(mo(r), 0, i);
  12069. return 0 <= (r -= t.length) && e.slice(r, i) == t
  12070. },Gn.eq = Ha,Gn.escape = function (e) {
  12071. return (e = Ao(e)) && Q.test(e) ? e.replace(V, rn) : e
  12072. },Gn.escapeRegExp = function (e) {
  12073. return (e = Ao(e)) && re.test(e) ? e.replace(ne, "\\$&") : e
  12074. },Gn.every = function (e, t, r) {
  12075. return (Ya(e) ? kt : function (e, t) {
  12076. var n = !0;
  12077. return pr(e, function (e, r, i) {
  12078. return n = !!t(e, r, i)
  12079. }), n
  12080. })(e, us(t = r && gs(e, t, r) ? n : t, 3))
  12081. },Gn.find = _a,Gn.findIndex = qs,Gn.findKey = function (e, t) {
  12082. return Ut(e, us(t, 3), vr)
  12083. },Gn.findLast = Ea,Gn.findLastIndex = Ys,Gn.findLastKey = function (e, t) {
  12084. return Ut(e, us(t, 3), yr)
  12085. },Gn.floor = vc,Gn.forEach = Ta,Gn.forEachRight = Aa,Gn.forIn = function (e, t) {
  12086. return null == e ? e : Ar(e, us(t, 3), wo)
  12087. },Gn.forInRight = function (e, t) {
  12088. return null == e ? e : gr(e, us(t, 3), wo)
  12089. },Gn.forOwn = function (e, t) {
  12090. return e && vr(e, us(t, 3))
  12091. },Gn.forOwnRight = function (e, t) {
  12092. return e && yr(e, us(t, 3))
  12093. },Gn.get = Io,Gn.gt = Ga,Gn.gte = ja,Gn.has = function (e, t) {
  12094. return null != e && _s(e, t, Or)
  12095. },Gn.hasIn = Oo,Gn.head = Ws,Gn.identity = ic,Gn.includes = function (e, t, n, r) {
  12096. return e = Wa(e) ? e : Go(e), n = n && !r ? mo(n) : 0, r = e.length, n < 0 && (n = An(r + n, 0)), oo(e) ? n <= r && -1 < e.indexOf(t, n) : !!r && -1 < Gt(e, t, n)
  12097. },Gn.indexOf = function (e, t, n) {
  12098. var r = null == e ? 0 : e.length;
  12099. return r ? Gt(e, t, e = (e = null == n ? 0 : mo(n)) < 0 ? An(r + e, 0) : e) : -1
  12100. },Gn.inRange = function (e, t, r) {
  12101. return t = po(t), r === n ? (r = t, t = 0) : r = po(r), function (e, t, n) {
  12102. return e >= gn(t, n) && e < An(t, n)
  12103. }(e = Eo(e), t, r)
  12104. },Gn.invoke = Do,Gn.isArguments = qa,Gn.isArray = Ya,Gn.isArrayBuffer = Ka,Gn.isArrayLike = Wa,Gn.isArrayLikeObject = Va,Gn.isBoolean = function (e) {
  12105. return !0 === e || !1 === e || to(e) && br(e) == T
  12106. },Gn.isBuffer = $a,Gn.isDate = Re,Gn.isElement = function (e) {
  12107. return to(e) && 1 === e.nodeType && !io(e)
  12108. },Gn.isEmpty = function (e) {
  12109. if (null != e) {
  12110. if (Wa(e) && (Ya(e) || "string" == typeof e || "function" == typeof e.splice || $a(e) || uo(e) || qa(e))) return !e.length;
  12111. var n, t = ms(e);
  12112. if (t == S || t == O) return !e.size;
  12113. if (Cs(e)) return !Br(e).length;
  12114. for (n in e) if (Pe.call(e, n)) return !1
  12115. }
  12116. return !0
  12117. },Gn.isEqual = function (e, t) {
  12118. return wr(e, t)
  12119. },Gn.isEqualWith = function (e, t, r) {
  12120. var i = (r = "function" == typeof r ? r : n) ? r(e, t) : n;
  12121. return i === n ? wr(e, t, n, r) : !!i
  12122. },Gn.isError = za,Gn.isFinite = function (e) {
  12123. return "number" == typeof e && Wt(e)
  12124. },Gn.isFunction = Xa,Gn.isInteger = Za,Gn.isLength = Ja,Gn.isMap = no,Gn.isMatch = function (e, t) {
  12125. return e === t || xr(e, t, hs(t))
  12126. },Gn.isMatchWith = function (e, t, r) {
  12127. return r = "function" == typeof r ? r : n, xr(e, t, hs(t), r)
  12128. },Gn.isNaN = function (e) {
  12129. return ro(e) && e != +e
  12130. },Gn.isNative = function (e) {
  12131. if (Ss(e)) throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");
  12132. return Mr(e)
  12133. },Gn.isNil = function (e) {
  12134. return null == e
  12135. },Gn.isNull = function (e) {
  12136. return null === e
  12137. },Gn.isNumber = ro,Gn.isObject = eo,Gn.isObjectLike = to,Gn.isPlainObject = io,Gn.isRegExp = so,Gn.isSafeInteger = function (e) {
  12138. return Za(e) && -9007199254740991 <= e && e <= f
  12139. },Gn.isSet = ao,Gn.isString = oo,Gn.isSymbol = co,Gn.isTypedArray = uo,Gn.isUndefined = function (e) {
  12140. return e === n
  12141. },Gn.isWeakMap = function (e) {
  12142. return to(e) && ms(e) == D
  12143. },Gn.isWeakSet = function (e) {
  12144. return to(e) && "[object WeakSet]" == br(e)
  12145. },Gn.join = function (e, t) {
  12146. return null == e ? "" : En.call(e, t)
  12147. },Gn.kebabCase = Ko,Gn.last = zs,Gn.lastIndexOf = function (e, t, r) {
  12148. var s, i = null == e ? 0 : e.length;
  12149. return i ? (s = i, r !== n && (s = (s = mo(r)) < 0 ? An(i + s, 0) : gn(s, i - 1)), t == t ? function (e, t) {
  12150. for (var r = s + 1; r--;) if (e[r] === t) return r;
  12151. return r
  12152. }(e, t) : Ht(e, qt, s, !0)) : -1
  12153. },Gn.lowerCase = Wo,Gn.lowerFirst = Vo,Gn.lt = lo,Gn.lte = ho,Gn.max = function (e) {
  12154. return e && e.length ? _r(e, ic, Ir) : n
  12155. },Gn.maxBy = function (e, t) {
  12156. return e && e.length ? _r(e, us(t, 2), Ir) : n
  12157. },Gn.mean = function (e) {
  12158. return Yt(e, ic)
  12159. },Gn.meanBy = function (e, t) {
  12160. return Yt(e, us(t, 2))
  12161. },Gn.min = function (e) {
  12162. return e && e.length ? _r(e, ic, Ur) : n
  12163. },Gn.minBy = function (e, t) {
  12164. return e && e.length ? _r(e, us(t, 2), Ur) : n
  12165. },Gn.stubArray = _c,Gn.stubFalse = Ec,Gn.stubObject = function () {
  12166. return {}
  12167. },Gn.stubString = function () {
  12168. return ""
  12169. },Gn.stubTrue = function () {
  12170. return !0
  12171. },Gn.multiply = Sc,Gn.nth = function (e, t) {
  12172. return e && e.length ? Yr(e, mo(t)) : n
  12173. },Gn.noConflict = function () {
  12174. return pt._ === this && (pt._ = Ge), this
  12175. },Gn.noop = uc,Gn.now = ba,Gn.pad = function (e, t, n) {
  12176. e = Ao(e);
  12177. var r = (t = mo(t)) ? fn(e) : 0;
  12178. return !t || t <= r ? e : Ki(Et(t = (t - r) / 2), n) + e + Ki(mt(t), n)
  12179. },Gn.padEnd = function (e, t, n) {
  12180. e = Ao(e);
  12181. var r = (t = mo(t)) ? fn(e) : 0;
  12182. return t && r < t ? e + Ki(t - r, n) : e
  12183. },Gn.padStart = function (e, t, n) {
  12184. e = Ao(e);
  12185. var r = (t = mo(t)) ? fn(e) : 0;
  12186. return t && r < t ? Ki(t - r, n) + e : e
  12187. },Gn.parseInt = function (e, t, n) {
  12188. return t = n || null == t ? 0 : t && +t, yn(Ao(e).replace(ie, ""), t || 0)
  12189. },Gn.random = function (e, t, r) {
  12190. var i;
  12191. return r && "boolean" != typeof r && gs(e, t, r) && (t = r = n), r === n && ("boolean" == typeof t ? (r = t, t = n) : "boolean" == typeof e && (r = e, e = n)), e === n && t === n ? (e = 0, t = 1) : (e = po(e), t === n ? (t = e, e = 0) : t = po(t)), t < e && (i = e, e = t, t = i), r || e % 1 || t % 1 ? (i = Sn(), gn(e + i * (t - e + ut("1e-" + ((i + "").length - 1))), t)) : Qr(e, t)
  12192. },Gn.reduce = function (e, t, n) {
  12193. var r = Ya(e) ? Mt : Vt, i = arguments.length < 3;
  12194. return r(e, us(t, 4), n, i, pr)
  12195. },Gn.reduceRight = function (e, t, n) {
  12196. var r = Ya(e) ? Pt : Vt, i = arguments.length < 3;
  12197. return r(e, us(t, 4), n, i, dr)
  12198. },Gn.repeat = function (e, t, r) {
  12199. return t = (r ? gs(e, t, r) : t === n) ? 1 : mo(t), zr(Ao(e), t)
  12200. },Gn.replace = function () {
  12201. var e = arguments, t = Ao(e[0]);
  12202. return e.length < 3 ? t : t.replace(e[1], e[2])
  12203. },Gn.result = function (e, t, r) {
  12204. var i = -1, s = (t = gi(t, e)).length;
  12205. for (s || (s = 1, e = n); ++i < s;) {
  12206. var a = null == e ? n : e[Bs(t[i])];
  12207. a === n && (i = s, a = r), e = Xa(a) ? a.call(e) : a
  12208. }
  12209. return e
  12210. },Gn.round = Cc,Gn.runInContext = e,Gn.sample = function (e) {
  12211. return (Ya(e) ? Zn : function (e) {
  12212. return Zn(Go(e))
  12213. })(e)
  12214. },Gn.size = function (e) {
  12215. var t;
  12216. return null == e ? 0 : Wa(e) ? oo(e) ? fn(e) : e.length : (t = ms(e)) == S || t == O ? e.size : Br(e).length
  12217. },Gn.snakeCase = $o,Gn.some = function (e, t, r) {
  12218. return (Ya(e) ? Bt : function (e, t) {
  12219. var n;
  12220. return pr(e, function (e, r, i) {
  12221. return !(n = t(e, r, i))
  12222. }), !!n
  12223. })(e, us(t = r && gs(e, t, r) ? n : t, 3))
  12224. },Gn.sortedIndex = function (e, t) {
  12225. return ai(e, t)
  12226. },Gn.sortedIndexBy = function (e, t, n) {
  12227. return oi(e, t, us(n, 2))
  12228. },Gn.sortedIndexOf = function (e, t) {
  12229. var n = null == e ? 0 : e.length;
  12230. if (n) {
  12231. var r = ai(e, t);
  12232. if (r < n && Ha(e[r], t)) return r
  12233. }
  12234. return -1
  12235. },Gn.sortedLastIndex = function (e, t) {
  12236. return ai(e, t, !0)
  12237. },Gn.sortedLastIndexBy = function (e, t, n) {
  12238. return oi(e, t, us(n, 2), !0)
  12239. },Gn.sortedLastIndexOf = function (e, t) {
  12240. if (null != e && e.length) {
  12241. var n = ai(e, t, !0) - 1;
  12242. if (Ha(e[n], t)) return n
  12243. }
  12244. return -1
  12245. },Gn.startCase = Qo,Gn.startsWith = function (e, t, n) {
  12246. return e = Ao(e), n = null == n ? 0 : cr(mo(n), 0, e.length), t = li(t), e.slice(n, n + t.length) == t
  12247. },Gn.subtract = Nc,Gn.sum = function (e) {
  12248. return e && e.length ? $t(e, ic) : 0
  12249. },Gn.sumBy = function (e, t) {
  12250. return e && e.length ? $t(e, us(t, 2)) : 0
  12251. },Gn.template = function (e, t, r) {
  12252. var i = Gn.templateSettings;
  12253. r && gs(e, t, r) && (t = n), e = Ao(e), t = yo({}, t, i, Ji);
  12254. var s, a, c = Ro(r = yo({}, t.imports, i.imports, Ji)), u = Zt(r, c), l = 0, i = t.interpolate || ge,
  12255. f = "__p += '",
  12256. r = Oe((t.escape || ge).source + "|" + i.source + "|" + (i === Z ? fe : ge).source + "|" + (t.evaluate || ge).source + "|$", "g"),
  12257. d = "//# sourceURL=" + (Pe.call(t, "sourceURL") ? (t.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++st + "]") + "\n";
  12258. if (e.replace(r, function (t, n, r, i, o, c) {
  12259. return r = r || i, f += e.slice(l, c).replace(ve, sn), n && (s = !0, f += "' +\n__e(" + n + ") +\n'"), o && (a = !0, f += "';\n" + o + ";\n__p += '"), r && (f += "' +\n((__t = (" + r + ")) == null ? '' : __t) +\n'"), l = c + t.length, t
  12260. }), f += "';\n", i = Pe.call(t, "variable") && t.variable) {
  12261. if (le.test(i)) throw new Ce("Invalid `variable` option passed into `_.template`")
  12262. } else f = "with (obj) {\n" + f + "\n}\n";
  12263. if (f = (a ? f.replace(q, "") : f).replace(Y, "$1").replace(K, "$1;"), f = "function(" + (i || "obj") + ") {\n" + (i ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (s ? ", __e = _.escape" : "") + (a ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + f + "return __p\n}", (r = Jo(function () {
  12264. return Ne(c, d + "return " + f).apply(n, u)
  12265. })).source = f, za(r)) throw r;
  12266. return r
  12267. },Gn.times = function (e, t) {
  12268. if ((e = mo(e)) < 1 || f < e) return [];
  12269. var n = d, r = gn(e, d);
  12270. for (t = us(t), e -= d, r = Qt(r, t); ++n < e;) t(n);
  12271. return r
  12272. },Gn.toFinite = po,Gn.toInteger = mo,Gn.toLength = _o,Gn.toLower = function (e) {
  12273. return Ao(e).toLowerCase()
  12274. },Gn.toNumber = Eo,Gn.toSafeInteger = function (e) {
  12275. return e ? cr(mo(e), -9007199254740991, f) : 0 === e ? e : 0
  12276. },Gn.toString = Ao,Gn.toUpper = function (e) {
  12277. return Ao(e).toUpperCase()
  12278. },Gn.trim = function (e, t, r) {
  12279. return (e = Ao(e)) && (r || t === n) ? zt(e) : e && (t = li(t)) ? yi(r = pn(e), en(r, t = pn(t)), tn(r, t) + 1).join("") : e
  12280. },Gn.trimEnd = function (e, t, r) {
  12281. return (e = Ao(e)) && (r || t === n) ? e.slice(0, dn(e) + 1) : e && (t = li(t)) ? yi(r = pn(e), 0, tn(r, pn(t)) + 1).join("") : e
  12282. },Gn.trimStart = function (e, t, r) {
  12283. return (e = Ao(e)) && (r || t === n) ? e.replace(ie, "") : e && (t = li(t)) ? yi(r = pn(e), en(r, pn(t))).join("") : e
  12284. },Gn.truncate = function (e, t) {
  12285. var s, r = 30, i = "...",
  12286. t = (eo(t) && (s = "separator" in t ? t.separator : s, r = "length" in t ? mo(t.length) : r, i = "omission" in t ? li(t.omission) : i), (e = Ao(e)).length);
  12287. if ((t = an(e) ? (o = pn(e)).length : t) <= r) return e;
  12288. if ((t = r - fn(i)) < 1) return i;
  12289. var o, r = o ? yi(o, 0, t).join("") : e.slice(0, t);
  12290. if (s !== n) if (o && (t += r.length - t), so(s)) {
  12291. if (e.slice(t).search(s)) {
  12292. var l, h = r;
  12293. for ((s = s.global ? s : Oe(s.source, Ao(pe.exec(s)) + "g")).lastIndex = 0; l = s.exec(h);) var f = l.index;
  12294. r = r.slice(0, f === n ? t : f)
  12295. }
  12296. } else e.indexOf(li(s), t) != t && -1 < (o = r.lastIndexOf(s)) && (r = r.slice(0, o));
  12297. return r + i
  12298. },Gn.unescape = function (e) {
  12299. return (e = Ao(e)) && $.test(e) ? e.replace(W, mn) : e
  12300. },Gn.uniqueId = function (e) {
  12301. var t = ++Be;
  12302. return Ao(e) + t
  12303. },Gn.upperCase = zo,Gn.upperFirst = Xo,Gn.each = Ta,Gn.eachRight = Aa,Gn.first = Ws,cc(Gn, (yc = {}, vr(Gn, function (e, t) {
  12304. Pe.call(Gn.prototype, t) || (yc[t] = e)
  12305. }), yc), {chain: !1}),Gn.VERSION = "4.17.21",It(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function (e) {
  12306. Gn[e].placeholder = Gn
  12307. }),It(["drop", "take"], function (e, t) {
  12308. Kn.prototype[e] = function (r) {
  12309. r = r === n ? 1 : An(mo(r), 0);
  12310. var i = this.__filtered__ && !t ? new Kn(this) : this.clone();
  12311. return i.__filtered__ ? i.__takeCount__ = gn(r, i.__takeCount__) : i.__views__.push({
  12312. size: gn(r, d),
  12313. type: e + (i.__dir__ < 0 ? "Right" : "")
  12314. }), i
  12315. }, Kn.prototype[e + "Right"] = function (t) {
  12316. return this.reverse()[e](t).reverse()
  12317. }
  12318. }),It(["filter", "map", "takeWhile"], function (e, t) {
  12319. var n = t + 1, r = 1 == n || 3 == n;
  12320. Kn.prototype[e] = function (e) {
  12321. var t = this.clone();
  12322. return t.__iteratees__.push({iteratee: us(e, 3), type: n}), t.__filtered__ = t.__filtered__ || r, t
  12323. }
  12324. }),It(["head", "last"], function (e, t) {
  12325. var n = "take" + (t ? "Right" : "");
  12326. Kn.prototype[e] = function () {
  12327. return this[n](1).value()[0]
  12328. }
  12329. }),It(["initial", "tail"], function (e, t) {
  12330. var n = "drop" + (t ? "" : "Right");
  12331. Kn.prototype[e] = function () {
  12332. return this.__filtered__ ? new Kn(this) : this[n](1)
  12333. }
  12334. }),Kn.prototype.compact = function () {
  12335. return this.filter(ic)
  12336. },Kn.prototype.find = function (e) {
  12337. return this.filter(e).head()
  12338. },Kn.prototype.findLast = function (e) {
  12339. return this.reverse().find(e)
  12340. },Kn.prototype.invokeMap = Xr(function (e, t) {
  12341. return "function" == typeof e ? new Kn(this) : this.map(function (n) {
  12342. return Dr(n, e, t)
  12343. })
  12344. }),Kn.prototype.reject = function (e) {
  12345. return this.filter(Ma(us(e)))
  12346. },Kn.prototype.slice = function (e, t) {
  12347. e = mo(e);
  12348. var r = this;
  12349. return r.__filtered__ && (0 < e || t < 0) ? new Kn(r) : (e < 0 ? r = r.takeRight(-e) : e && (r = r.drop(e)), t !== n ? (t = mo(t)) < 0 ? r.dropRight(-t) : r.take(t - e) : r)
  12350. },Kn.prototype.takeRightWhile = function (e) {
  12351. return this.reverse().takeWhile(e).reverse()
  12352. },Kn.prototype.toArray = function () {
  12353. return this.take(d)
  12354. },vr(Kn.prototype, function (e, t) {
  12355. var r = /^(?:filter|find|map|reject)|While$/.test(t), i = /^(?:head|last)$/.test(t),
  12356. s = Gn[i ? "take" + ("last" == t ? "Right" : "") : t], a = i || /^find/.test(t);
  12357. s && (Gn.prototype[t] = function () {
  12358. function h(e) {
  12359. return e = s.apply(Gn, xt([e], o)), i && f ? e[0] : e
  12360. }
  12361. var _, t = this.__wrapped__, o = i ? [1] : arguments, c = t instanceof Kn, u = o[0], l = c || Ya(t),
  12362. f = (l && r && "function" == typeof u && 1 != u.length && (c = l = !1), this.__chain__),
  12363. u = !!this.__actions__.length, d = a && !f, c = c && !u;
  12364. return !a && l ? (t = c ? t : new Kn(this), (_ = e.apply(t, o)).__actions__.push({
  12365. func: pa,
  12366. args: [h],
  12367. thisArg: n
  12368. }), new Yn(_, f)) : d && c ? e.apply(this, o) : (_ = this.thru(h), d ? i ? _.value()[0] : _.value() : _)
  12369. })
  12370. }),It(["pop", "push", "shift", "sort", "splice", "unshift"], function (e) {
  12371. var t = De[e], n = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru", r = /^(?:pop|shift)$/.test(e);
  12372. Gn.prototype[e] = function () {
  12373. var i, e = arguments;
  12374. return r && !this.__chain__ ? (i = this.value(), t.apply(Ya(i) ? i : [], e)) : this[n](function (n) {
  12375. return t.apply(Ya(n) ? n : [], e)
  12376. })
  12377. }
  12378. }),vr(Kn.prototype, function (e, t) {
  12379. var r, n = Gn[t];
  12380. n && (r = n.name + "", Pe.call(Rn, r) || (Rn[r] = []), Rn[r].push({name: t, func: n}))
  12381. }),Rn[Gi(n, 2).name] = [{name: "wrapper", func: n}],Kn.prototype.clone = function () {
  12382. var e = new Kn(this.__wrapped__);
  12383. return e.__actions__ = Li(this.__actions__), e.__dir__ = this.__dir__, e.__filtered__ = this.__filtered__, e.__iteratees__ = Li(this.__iteratees__), e.__takeCount__ = this.__takeCount__, e.__views__ = Li(this.__views__), e
  12384. },Kn.prototype.reverse = function () {
  12385. var e;
  12386. return this.__filtered__ ? ((e = new Kn(this)).__dir__ = -1, e.__filtered__ = !0) : (e = this.clone()).__dir__ *= -1, e
  12387. },Kn.prototype.value = function () {
  12388. var e = this.__wrapped__.value(), t = this.__dir__, n = Ya(e), r = t < 0, i = n ? e.length : 0,
  12389. s = function (e, t, n) {
  12390. for (var r = -1, i = n.length; ++r < i;) {
  12391. var s = n[r], a = s.size;
  12392. switch (s.type) {
  12393. case"drop":
  12394. e += a;
  12395. break;
  12396. case"dropRight":
  12397. t -= a;
  12398. break;
  12399. case"take":
  12400. t = gn(t, e + a);
  12401. break;
  12402. case"takeRight":
  12403. e = An(e, t - a)
  12404. }
  12405. }
  12406. return {start: e, end: t}
  12407. }(0, i, this.__views__), a = s.start, c = (s = s.end) - a, u = r ? s : a - 1,
  12408. l = this.__iteratees__, h = l.length, f = 0, p = gn(c, this.__takeCount__);
  12409. if (!n || !r && i == c && p == c) return mi(e, this.__actions__);
  12410. var d = [];
  12411. e:for (; c-- && f < p;) {
  12412. for (var m = -1, _ = e[u += t]; ++m < h;) {
  12413. var T = (E = l[m]).iteratee, E = E.type, T = T(_);
  12414. if (2 == E) _ = T; else if (!T) {
  12415. if (1 == E) continue e;
  12416. break e
  12417. }
  12418. }
  12419. d[f++] = _
  12420. }
  12421. return d
  12422. },Gn.prototype.at = da,Gn.prototype.chain = function () {
  12423. return fa(this)
  12424. },Gn.prototype.commit = function () {
  12425. return new Yn(this.value(), this.__chain__)
  12426. },Gn.prototype.next = function () {
  12427. this.__values__ === n && (this.__values__ = fo(this.value()));
  12428. var e = this.__index__ >= this.__values__.length;
  12429. return {done: e, value: e ? n : this.__values__[this.__index__++]}
  12430. },Gn.prototype.plant = function (e) {
  12431. for (var t, r = this; r instanceof qn;) var i = Us(r), s = (i.__index__ = 0, i.__values__ = n, t ? s.__wrapped__ = i : t = i, i), r = r.__wrapped__;
  12432. return s.__wrapped__ = e, t
  12433. },Gn.prototype.reverse = function () {
  12434. var e = this.__wrapped__;
  12435. return e instanceof Kn ? ((e = (e = this.__actions__.length ? new Kn(this) : e).reverse()).__actions__.push({
  12436. func: pa,
  12437. args: [ea],
  12438. thisArg: n
  12439. }), new Yn(e, this.__chain__)) : this.thru(ea)
  12440. },Gn.prototype.toJSON = Gn.prototype.valueOf = Gn.prototype.value = function () {
  12441. return mi(this.__wrapped__, this.__actions__)
  12442. },Gn.prototype.first = Gn.prototype.head,et && (Gn.prototype[et] = function () {
  12443. return this
  12444. }),Gn
  12445. }();
  12446. mt ? ((mt.exports = _n)._ = _n, He._ = _n) : pt._ = _n
  12447. }.call(gr)
  12448. }), dh = Sr(function (e, t) {
  12449. e.exports = function (e) {
  12450. var n;
  12451. if ("undefined" != typeof window && window.crypto && (n = window.crypto), "undefined" != typeof self && self.crypto && (n = self.crypto), !(n = !(n = !(n = "undefined" != typeof globalThis && globalThis.crypto ? globalThis.crypto : n) && "undefined" != typeof window && window.msCrypto ? window.msCrypto : n) && void 0 !== gr && gr.crypto ? gr.crypto : n)) try {
  12452. n = Zu
  12453. } catch (e) {
  12454. }
  12455. function r() {
  12456. if (n) {
  12457. if ("function" == typeof n.getRandomValues) try {
  12458. return n.getRandomValues(new Uint32Array(1))[0]
  12459. } catch (e) {
  12460. }
  12461. if ("function" == typeof n.randomBytes) try {
  12462. return n.randomBytes(4).readInt32LE()
  12463. } catch (e) {
  12464. }
  12465. }
  12466. throw new Error("Native crypto module could not be used to get secure random number.")
  12467. }
  12468. var i = Object.create || function () {
  12469. function e() {
  12470. }
  12471. return function (t) {
  12472. return e.prototype = t, t = new e, e.prototype = null, t
  12473. }
  12474. }(), s = {}, a = s.lib = {}, o = a.Base = {
  12475. extend: function (e) {
  12476. var t = i(this);
  12477. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  12478. t.$super.init.apply(this, arguments)
  12479. }), (t.init.prototype = t).$super = this, t
  12480. }, create: function () {
  12481. var e = this.extend();
  12482. return e.init.apply(e, arguments), e
  12483. }, init: function () {
  12484. }, mixIn: function (e) {
  12485. for (var t in e) e.hasOwnProperty(t) && (this[t] = e[t]);
  12486. e.hasOwnProperty("toString") && (this.toString = e.toString)
  12487. }, clone: function () {
  12488. return this.init.prototype.extend(this)
  12489. }
  12490. }, c = a.WordArray = o.extend({
  12491. init: function (e, n) {
  12492. e = this.words = e || [], this.sigBytes = null != n ? n : 4 * e.length
  12493. }, toString: function (e) {
  12494. return (e || l).stringify(this)
  12495. }, concat: function (e) {
  12496. var t = this.words, n = e.words, r = this.sigBytes, i = e.sigBytes;
  12497. if (this.clamp(), r % 4) for (var s = 0; s < i; s++) {
  12498. var a = n[s >>> 2] >>> 24 - s % 4 * 8 & 255;
  12499. t[r + s >>> 2] |= a << 24 - (r + s) % 4 * 8
  12500. } else for (var o = 0; o < i; o += 4) t[r + o >>> 2] = n[o >>> 2];
  12501. return this.sigBytes += i, this
  12502. }, clamp: function () {
  12503. var t = this.words, n = this.sigBytes;
  12504. t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4)
  12505. }, clone: function () {
  12506. var e = o.clone.call(this);
  12507. return e.words = this.words.slice(0), e
  12508. }, random: function (e) {
  12509. for (var t = [], n = 0; n < e; n += 4) t.push(r());
  12510. return new c.init(t, e)
  12511. }
  12512. }), u = s.enc = {}, l = u.Hex = {
  12513. stringify: function (e) {
  12514. for (var t = e.words, n = e.sigBytes, r = [], i = 0; i < n; i++) {
  12515. var s = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  12516. r.push((s >>> 4).toString(16)), r.push((15 & s).toString(16))
  12517. }
  12518. return r.join("")
  12519. }, parse: function (e) {
  12520. for (var t = e.length, n = [], r = 0; r < t; r += 2) n[r >>> 3] |= parseInt(e.substr(r, 2), 16) << 24 - r % 8 * 4;
  12521. return new c.init(n, t / 2)
  12522. }
  12523. }, h = u.Latin1 = {
  12524. stringify: function (e) {
  12525. for (var t = e.words, n = e.sigBytes, r = [], i = 0; i < n; i++) {
  12526. var s = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  12527. r.push(String.fromCharCode(s))
  12528. }
  12529. return r.join("")
  12530. }, parse: function (e) {
  12531. for (var t = e.length, n = [], r = 0; r < t; r++) n[r >>> 2] |= (255 & e.charCodeAt(r)) << 24 - r % 4 * 8;
  12532. return new c.init(n, t)
  12533. }
  12534. }, f = u.Utf8 = {
  12535. stringify: function (e) {
  12536. try {
  12537. return decodeURIComponent(escape(h.stringify(e)))
  12538. } catch (e) {
  12539. throw new Error("Malformed UTF-8 data")
  12540. }
  12541. }, parse: function (e) {
  12542. return h.parse(unescape(encodeURIComponent(e)))
  12543. }
  12544. }, p = a.BufferedBlockAlgorithm = o.extend({
  12545. reset: function () {
  12546. this._data = new c.init, this._nDataBytes = 0
  12547. }, _append: function (e) {
  12548. "string" == typeof e && (e = f.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes
  12549. }, _process: function (t) {
  12550. var n, r = this._data, i = r.words, s = r.sigBytes, a = this.blockSize, o = s / (4 * a),
  12551. u = (t ? e.ceil(o) : e.max((0 | o) - this._minBufferSize, 0)) * a, t = e.min(4 * u, s);
  12552. if (u) {
  12553. for (var h = 0; h < u; h += a) this._doProcessBlock(i, h);
  12554. n = i.splice(0, u), r.sigBytes -= t
  12555. }
  12556. return new c.init(n, t)
  12557. }, clone: function () {
  12558. var e = o.clone.call(this);
  12559. return e._data = this._data.clone(), e
  12560. }, _minBufferSize: 0
  12561. }), d = (a.Hasher = p.extend({
  12562. cfg: o.extend(), init: function (e) {
  12563. this.cfg = this.cfg.extend(e), this.reset()
  12564. }, reset: function () {
  12565. p.reset.call(this), this._doReset()
  12566. }, update: function (e) {
  12567. return this._append(e), this._process(), this
  12568. }, finalize: function (e) {
  12569. return e && this._append(e), this._doFinalize()
  12570. }, blockSize: 16, _createHelper: function (e) {
  12571. return function (t, n) {
  12572. return new e.init(n).finalize(t)
  12573. }
  12574. }, _createHmacHelper: function (e) {
  12575. return function (t, n) {
  12576. return new d.HMAC.init(e, n).finalize(t)
  12577. }
  12578. }
  12579. }), s.algo = {});
  12580. return s
  12581. }(Math)
  12582. }), mh = (Sr(function (e, t) {
  12583. var s, a, i;
  12584. e.exports = (i = (e = dh).lib, s = i.Base, a = i.WordArray, (i = e.x64 = {}).Word = s.extend({
  12585. init: function (e, t) {
  12586. this.high = e, this.low = t
  12587. }
  12588. }), i.WordArray = s.extend({
  12589. init: function (e, t) {
  12590. e = this.words = e || [], this.sigBytes = null != t ? t : 8 * e.length
  12591. }, toX32: function () {
  12592. for (var e = this.words, t = e.length, n = [], r = 0; r < t; r++) {
  12593. var i = e[r];
  12594. n.push(i.high), n.push(i.low)
  12595. }
  12596. return a.create(n, this.sigBytes)
  12597. }, clone: function () {
  12598. for (var e = s.clone.call(this), t = e.words = this.words.slice(0), n = t.length, r = 0; r < n; r++) t[r] = t[r].clone();
  12599. return e
  12600. }
  12601. }), e)
  12602. }), Sr(function (e, t) {
  12603. var n;
  12604. e.exports = (n = dh, function () {
  12605. var e, t;
  12606. "function" == typeof ArrayBuffer && (e = n.lib.WordArray, t = e.init, (e.init = function (e) {
  12607. if ((e = (e = e instanceof ArrayBuffer ? new Uint8Array(e) : e) instanceof Int8Array || "undefined" != typeof Uint8ClampedArray && e instanceof Uint8ClampedArray || e instanceof Int16Array || e instanceof Uint16Array || e instanceof Int32Array || e instanceof Uint32Array || e instanceof Float32Array || e instanceof Float64Array ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : e) instanceof Uint8Array) {
  12608. for (var n = e.byteLength, r = [], i = 0; i < n; i++) r[i >>> 2] |= e[i] << 24 - i % 4 * 8;
  12609. t.call(this, r, n)
  12610. } else t.apply(this, arguments)
  12611. }).prototype = e)
  12612. }(), n.lib.WordArray)
  12613. }), Sr(function (e, t) {
  12614. var n;
  12615. e.exports = (n = dh, function () {
  12616. var t = n.lib.WordArray, r = n.enc;
  12617. function i(e) {
  12618. return e << 8 & 4278255360 | e >>> 8 & 16711935
  12619. }
  12620. r.Utf16 = r.Utf16BE = {
  12621. stringify: function (e) {
  12622. for (var t = e.words, n = e.sigBytes, r = [], i = 0; i < n; i += 2) {
  12623. var s = t[i >>> 2] >>> 16 - i % 4 * 8 & 65535;
  12624. r.push(String.fromCharCode(s))
  12625. }
  12626. return r.join("")
  12627. }, parse: function (e) {
  12628. for (var n = e.length, r = [], i = 0; i < n; i++) r[i >>> 1] |= e.charCodeAt(i) << 16 - i % 2 * 16;
  12629. return t.create(r, 2 * n)
  12630. }
  12631. }, r.Utf16LE = {
  12632. stringify: function (e) {
  12633. for (var t = e.words, n = e.sigBytes, r = [], s = 0; s < n; s += 2) {
  12634. var a = i(t[s >>> 2] >>> 16 - s % 4 * 8 & 65535);
  12635. r.push(String.fromCharCode(a))
  12636. }
  12637. return r.join("")
  12638. }, parse: function (e) {
  12639. for (var n = e.length, r = [], s = 0; s < n; s++) r[s >>> 1] |= i(e.charCodeAt(s) << 16 - s % 2 * 16);
  12640. return t.create(r, 2 * n)
  12641. }
  12642. }
  12643. }(), n.enc.Utf16)
  12644. }), Sr(function (e, t) {
  12645. var n;
  12646. e.exports = (n = dh, function () {
  12647. var e = n, t = e.lib.WordArray;
  12648. function r(e, n, r) {
  12649. for (var o, i = [], s = 0, a = 0; a < n; a++) a % 4 && (o = r[e.charCodeAt(a - 1)] << a % 4 * 2 | r[e.charCodeAt(a)] >>> 6 - a % 4 * 2, i[s >>> 2] |= o << 24 - s % 4 * 8, s++);
  12650. return t.create(i, s)
  12651. }
  12652. e.enc.Base64 = {
  12653. stringify: function (e) {
  12654. var t = e.words, n = e.sigBytes, r = this._map;
  12655. e.clamp();
  12656. for (var i = [], s = 0; s < n; s += 3) for (var a = (t[s >>> 2] >>> 24 - s % 4 * 8 & 255) << 16 | (t[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255) << 8 | t[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, o = 0; o < 4 && s + .75 * o < n; o++) i.push(r.charAt(a >>> 6 * (3 - o) & 63));
  12657. var c = r.charAt(64);
  12658. if (c) for (; i.length % 4;) i.push(c);
  12659. return i.join("")
  12660. }, parse: function (e) {
  12661. var t = e.length, n = this._map;
  12662. if (!(i = this._reverseMap)) for (var i = this._reverseMap = [], s = 0; s < n.length; s++) i[n.charCodeAt(s)] = s;
  12663. var a = n.charAt(64);
  12664. return a && -1 !== (a = e.indexOf(a)) && (t = a), r(e, t, i)
  12665. }, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  12666. }
  12667. }(), n.enc.Base64)
  12668. }), Sr(function (e, t) {
  12669. var n;
  12670. e.exports = (n = dh, function () {
  12671. var e = n, t = e.lib.WordArray;
  12672. function r(e, n, r) {
  12673. for (var o, i = [], s = 0, a = 0; a < n; a++) a % 4 && (o = r[e.charCodeAt(a - 1)] << a % 4 * 2 | r[e.charCodeAt(a)] >>> 6 - a % 4 * 2, i[s >>> 2] |= o << 24 - s % 4 * 8, s++);
  12674. return t.create(i, s)
  12675. }
  12676. e.enc.Base64url = {
  12677. stringify: function (e, t = !0) {
  12678. var n = e.words, r = e.sigBytes, i = t ? this._safe_map : this._map;
  12679. e.clamp();
  12680. for (var s = [], a = 0; a < r; a += 3) for (var o = (n[a >>> 2] >>> 24 - a % 4 * 8 & 255) << 16 | (n[a + 1 >>> 2] >>> 24 - (a + 1) % 4 * 8 & 255) << 8 | n[a + 2 >>> 2] >>> 24 - (a + 2) % 4 * 8 & 255, c = 0; c < 4 && a + .75 * c < r; c++) s.push(i.charAt(o >>> 6 * (3 - c) & 63));
  12681. var u = i.charAt(64);
  12682. if (u) for (; s.length % 4;) s.push(u);
  12683. return s.join("")
  12684. },
  12685. parse: function (e, t = !0) {
  12686. var n = e.length, i = t ? this._safe_map : this._map;
  12687. if (!(s = this._reverseMap)) for (var s = this._reverseMap = [], a = 0; a < i.length; a++) s[i.charCodeAt(a)] = a;
  12688. return (t = i.charAt(64)) && -1 !== (t = e.indexOf(t)) && (n = t), r(e, n, s)
  12689. },
  12690. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  12691. _safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
  12692. }
  12693. }(), n.enc.Base64url)
  12694. }), Sr(function (e, t) {
  12695. var n;
  12696. e.exports = (n = dh, function (e) {
  12697. var t = n, i = (r = t.lib).WordArray, s = r.Hasher, r = t.algo, o = [], r = (function () {
  12698. for (var t = 0; t < 64; t++) o[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0
  12699. }(), r.MD5 = s.extend({
  12700. _doReset: function () {
  12701. this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878])
  12702. }, _doProcessBlock: function (e, t) {
  12703. for (var n = 0; n < 16; n++) {
  12704. var r = t + n, i = e[r];
  12705. e[r] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8)
  12706. }
  12707. var s = this._hash.words, a = e[t + 0], c = e[t + 1], p = e[t + 2], d = e[t + 3], m = e[t + 4],
  12708. _ = e[t + 5], E = e[t + 6], T = e[t + 7], A = e[t + 8], g = e[t + 9], v = e[t + 10], y = e[t + 11],
  12709. S = e[t + 12], C = e[t + 13], N = e[t + 14], b = e[t + 15],
  12710. I = u(s[0], O = s[1], k = s[2], L = s[3], a, 7, o[0]), L = u(L, I, O, k, c, 12, o[1]),
  12711. k = u(k, L, I, O, p, 17, o[2]), O = u(O, k, L, I, d, 22, o[3]), I = u(I, O, k, L, m, 7, o[4]),
  12712. L = u(L, I, O, k, _, 12, o[5]), k = u(k, L, I, O, E, 17, o[6]), O = u(O, k, L, I, T, 22, o[7]);
  12713. I = u(I, O, k, L, A, 7, o[8]), L = u(L, I, O, k, g, 12, o[9]), k = u(k, L, I, O, v, 17, o[10]), O = u(O, k, L, I, y, 22, o[11]), I = u(I, O, k, L, S, 7, o[12]), L = u(L, I, O, k, C, 12, o[13]), k = u(k, L, I, O, N, 17, o[14]), I = l(I, O = u(O, k, L, I, b, 22, o[15]), k, L, c, 5, o[16]), L = l(L, I, O, k, E, 9, o[17]), k = l(k, L, I, O, y, 14, o[18]), O = l(O, k, L, I, a, 20, o[19]), I = l(I, O, k, L, _, 5, o[20]), L = l(L, I, O, k, v, 9, o[21]), k = l(k, L, I, O, b, 14, o[22]), O = l(O, k, L, I, m, 20, o[23]), I = l(I, O, k, L, g, 5, o[24]), L = l(L, I, O, k, N, 9, o[25]), k = l(k, L, I, O, d, 14, o[26]), O = l(O, k, L, I, A, 20, o[27]), I = l(I, O, k, L, C, 5, o[28]), L = l(L, I, O, k, p, 9, o[29]), k = l(k, L, I, O, T, 14, o[30]), I = h(I, O = l(O, k, L, I, S, 20, o[31]), k, L, _, 4, o[32]), L = h(L, I, O, k, A, 11, o[33]), k = h(k, L, I, O, y, 16, o[34]), O = h(O, k, L, I, N, 23, o[35]), I = h(I, O, k, L, c, 4, o[36]), L = h(L, I, O, k, m, 11, o[37]), k = h(k, L, I, O, T, 16, o[38]), O = h(O, k, L, I, v, 23, o[39]), I = h(I, O, k, L, C, 4, o[40]), L = h(L, I, O, k, a, 11, o[41]), k = h(k, L, I, O, d, 16, o[42]), O = h(O, k, L, I, E, 23, o[43]), I = h(I, O, k, L, g, 4, o[44]), L = h(L, I, O, k, S, 11, o[45]), k = h(k, L, I, O, b, 16, o[46]), I = f(I, O = h(O, k, L, I, p, 23, o[47]), k, L, a, 6, o[48]), L = f(L, I, O, k, T, 10, o[49]), k = f(k, L, I, O, N, 15, o[50]), O = f(O, k, L, I, _, 21, o[51]), I = f(I, O, k, L, S, 6, o[52]), L = f(L, I, O, k, d, 10, o[53]), k = f(k, L, I, O, v, 15, o[54]), O = f(O, k, L, I, c, 21, o[55]), I = f(I, O, k, L, A, 6, o[56]), L = f(L, I, O, k, b, 10, o[57]), k = f(k, L, I, O, E, 15, o[58]), O = f(O, k, L, I, C, 21, o[59]), I = f(I, O, k, L, m, 6, o[60]), L = f(L, I, O, k, y, 10, o[61]), k = f(k, L, I, O, p, 15, o[62]), O = f(O, k, L, I, g, 21, o[63]), s[0] = s[0] + I | 0, s[1] = s[1] + O | 0, s[2] = s[2] + k | 0, s[3] = s[3] + L | 0
  12714. }, _doFinalize: function () {
  12715. var t = this._data, n = t.words, r = 8 * this._nDataBytes, i = 8 * t.sigBytes,
  12716. s = (n[i >>> 5] |= 128 << 24 - i % 32, e.floor(r / 4294967296));
  12717. n[15 + (64 + i >>> 9 << 4)] = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8), n[14 + (64 + i >>> 9 << 4)] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8), t.sigBytes = 4 * (n.length + 1), this._process();
  12718. for (var c = (s = this._hash).words, u = 0; u < 4; u++) {
  12719. var l = c[u];
  12720. c[u] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8)
  12721. }
  12722. return s
  12723. }, clone: function () {
  12724. var e = s.clone.call(this);
  12725. return e._hash = this._hash.clone(), e
  12726. }
  12727. }));
  12728. function u(e, t, n, r, i, s, a) {
  12729. return ((e = e + (t & n | ~t & r) + i + a) << s | e >>> 32 - s) + t
  12730. }
  12731. function l(e, t, n, r, i, s, a) {
  12732. return ((e = e + (t & r | n & ~r) + i + a) << s | e >>> 32 - s) + t
  12733. }
  12734. function h(e, t, n, r, i, s, a) {
  12735. return ((e = e + (t ^ n ^ r) + i + a) << s | e >>> 32 - s) + t
  12736. }
  12737. function f(e, t, n, r, i, s, a) {
  12738. return ((e = e + (n ^ (t | ~r)) + i + a) << s | e >>> 32 - s) + t
  12739. }
  12740. t.MD5 = s._createHelper(r), t.HmacMD5 = s._createHmacHelper(r)
  12741. }(Math), n.MD5)
  12742. }), Sr(function (e, t) {
  12743. var n;
  12744. e.exports = (n = dh, function () {
  12745. var e = n, r = (t = e.lib).WordArray, i = t.Hasher, t = e.algo, a = [], t = t.SHA1 = i.extend({
  12746. _doReset: function () {
  12747. this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
  12748. }, _doProcessBlock: function (e, t) {
  12749. for (var n = this._hash.words, r = n[0], i = n[1], s = n[2], o = n[3], c = n[4], u = 0; u < 80; u++) {
  12750. a[u] = u < 16 ? 0 | e[t + u] : (l = a[u - 3] ^ a[u - 8] ^ a[u - 14] ^ a[u - 16]) << 1 | l >>> 31;
  12751. var l = (r << 5 | r >>> 27) + c + a[u];
  12752. l += u < 20 ? 1518500249 + (i & s | ~i & o) : u < 40 ? 1859775393 + (i ^ s ^ o) : u < 60 ? (i & s | i & o | s & o) - 1894007588 : (i ^ s ^ o) - 899497514, c = o, o = s, s = i << 30 | i >>> 2, i = r, r = l
  12753. }
  12754. n[0] = n[0] + r | 0, n[1] = n[1] + i | 0, n[2] = n[2] + s | 0, n[3] = n[3] + o | 0, n[4] = n[4] + c | 0
  12755. }, _doFinalize: function () {
  12756. var e = this._data, t = e.words, n = 8 * this._nDataBytes, r = 8 * e.sigBytes;
  12757. return t[r >>> 5] |= 128 << 24 - r % 32, t[14 + (64 + r >>> 9 << 4)] = Math.floor(n / 4294967296), t[15 + (64 + r >>> 9 << 4)] = n, e.sigBytes = 4 * t.length, this._process(), this._hash
  12758. }, clone: function () {
  12759. var e = i.clone.call(this);
  12760. return e._hash = this._hash.clone(), e
  12761. }
  12762. });
  12763. e.SHA1 = i._createHelper(t), e.HmacSHA1 = i._createHmacHelper(t)
  12764. }(), n.SHA1)
  12765. }), Sr(function (e, t) {
  12766. var n;
  12767. e.exports = (n = dh, function (e) {
  12768. var t = n, i = (r = t.lib).WordArray, s = r.Hasher, r = t.algo, o = [], c = [], u = (function () {
  12769. function n(e) {
  12770. return 4294967296 * (e - (0 | e)) | 0
  12771. }
  12772. for (var r = 2, i = 0; i < 64;) !function (t) {
  12773. for (var n = e.sqrt(t), r = 2; r <= n; r++) if (!(t % r)) return;
  12774. return 1
  12775. }(r) || (i < 8 && (o[i] = n(e.pow(r, .5))), c[i] = n(e.pow(r, 1 / 3)), i++), r++
  12776. }(), []), r = r.SHA256 = s.extend({
  12777. _doReset: function () {
  12778. this._hash = new i.init(o.slice(0))
  12779. }, _doProcessBlock: function (e, t) {
  12780. for (var n = this._hash.words, r = n[0], i = n[1], s = n[2], a = n[3], o = n[4], l = n[5], h = n[6], f = n[7], p = 0; p < 64; p++) {
  12781. u[p] = p < 16 ? 0 | e[t + p] : (((d = u[p - 15]) << 25 | d >>> 7) ^ (d << 14 | d >>> 18) ^ d >>> 3) + u[p - 7] + (((d = u[p - 2]) << 15 | d >>> 17) ^ (d << 13 | d >>> 19) ^ d >>> 10) + u[p - 16];
  12782. var d = r & i ^ r & s ^ i & s,
  12783. g = f + ((o << 26 | o >>> 6) ^ (o << 21 | o >>> 11) ^ (o << 7 | o >>> 25)) + (o & l ^ ~o & h) + c[p] + u[p],
  12784. f = h, h = l, l = o, o = a + g | 0, a = s, s = i, i = r,
  12785. r = g + (((r << 30 | r >>> 2) ^ (r << 19 | r >>> 13) ^ (r << 10 | r >>> 22)) + d) | 0
  12786. }
  12787. n[0] = n[0] + r | 0, n[1] = n[1] + i | 0, n[2] = n[2] + s | 0, n[3] = n[3] + a | 0, n[4] = n[4] + o | 0, n[5] = n[5] + l | 0, n[6] = n[6] + h | 0, n[7] = n[7] + f | 0
  12788. }, _doFinalize: function () {
  12789. var t = this._data, n = t.words, r = 8 * this._nDataBytes, i = 8 * t.sigBytes;
  12790. return n[i >>> 5] |= 128 << 24 - i % 32, n[14 + (64 + i >>> 9 << 4)] = e.floor(r / 4294967296), n[15 + (64 + i >>> 9 << 4)] = r, t.sigBytes = 4 * n.length, this._process(), this._hash
  12791. }, clone: function () {
  12792. var e = s.clone.call(this);
  12793. return e._hash = this._hash.clone(), e
  12794. }
  12795. });
  12796. t.SHA256 = s._createHelper(r), t.HmacSHA256 = s._createHmacHelper(r)
  12797. }(Math), n.SHA256)
  12798. }), Sr(function (e, t) {
  12799. var n, r, s, i;
  12800. e.exports = (r = (n = e = dh).lib.WordArray, i = n.algo, s = i.SHA256, i = i.SHA224 = s.extend({
  12801. _doReset: function () {
  12802. this._hash = new r.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428])
  12803. }, _doFinalize: function () {
  12804. var e = s._doFinalize.call(this);
  12805. return e.sigBytes -= 4, e
  12806. }
  12807. }), n.SHA224 = s._createHelper(i), n.HmacSHA224 = s._createHmacHelper(i), e.SHA224)
  12808. }), Sr(function (e, t) {
  12809. var n;
  12810. e.exports = (n = dh, function () {
  12811. var e = n, t = e.lib.Hasher, i = (r = e.x64).Word, s = r.WordArray, r = e.algo;
  12812. function o() {
  12813. return i.create.apply(i, arguments)
  12814. }
  12815. var c = [o(1116352408, 3609767458), o(1899447441, 602891725), o(3049323471, 3964484399), o(3921009573, 2173295548), o(961987163, 4081628472), o(1508970993, 3053834265), o(2453635748, 2937671579), o(2870763221, 3664609560), o(3624381080, 2734883394), o(310598401, 1164996542), o(607225278, 1323610764), o(1426881987, 3590304994), o(1925078388, 4068182383), o(2162078206, 991336113), o(2614888103, 633803317), o(3248222580, 3479774868), o(3835390401, 2666613458), o(4022224774, 944711139), o(264347078, 2341262773), o(604807628, 2007800933), o(770255983, 1495990901), o(1249150122, 1856431235), o(1555081692, 3175218132), o(1996064986, 2198950837), o(2554220882, 3999719339), o(2821834349, 766784016), o(2952996808, 2566594879), o(3210313671, 3203337956), o(3336571891, 1034457026), o(3584528711, 2466948901), o(113926993, 3758326383), o(338241895, 168717936), o(666307205, 1188179964), o(773529912, 1546045734), o(1294757372, 1522805485), o(1396182291, 2643833823), o(1695183700, 2343527390), o(1986661051, 1014477480), o(2177026350, 1206759142), o(2456956037, 344077627), o(2730485921, 1290863460), o(2820302411, 3158454273), o(3259730800, 3505952657), o(3345764771, 106217008), o(3516065817, 3606008344), o(3600352804, 1432725776), o(4094571909, 1467031594), o(275423344, 851169720), o(430227734, 3100823752), o(506948616, 1363258195), o(659060556, 3750685593), o(883997877, 3785050280), o(958139571, 3318307427), o(1322822218, 3812723403), o(1537002063, 2003034995), o(1747873779, 3602036899), o(1955562222, 1575990012), o(2024104815, 1125592928), o(2227730452, 2716904306), o(2361852424, 442776044), o(2428436474, 593698344), o(2756734187, 3733110249), o(3204031479, 2999351573), o(3329325298, 3815920427), o(3391569614, 3928383900), o(3515267271, 566280711), o(3940187606, 3454069534), o(4118630271, 4000239992), o(116418474, 1914138554), o(174292421, 2731055270), o(289380356, 3203993006), o(460393269, 320620315), o(685471733, 587496836), o(852142971, 1086792851), o(1017036298, 365543100), o(1126000580, 2618297676), o(1288033470, 3409855158), o(1501505948, 4234509866), o(1607167915, 987167468), o(1816402316, 1246189591)],
  12816. u = [], r = (function () {
  12817. for (var e = 0; e < 80; e++) u[e] = o()
  12818. }(), r.SHA512 = t.extend({
  12819. _doReset: function () {
  12820. this._hash = new s.init([new i.init(1779033703, 4089235720), new i.init(3144134277, 2227873595), new i.init(1013904242, 4271175723), new i.init(2773480762, 1595750129), new i.init(1359893119, 2917565137), new i.init(2600822924, 725511199), new i.init(528734635, 4215389547), new i.init(1541459225, 327033209)])
  12821. }, _doProcessBlock: function (e, t) {
  12822. for (var r = (n = this._hash.words)[0], i = n[1], s = n[2], a = n[3], o = n[4], l = n[5], h = n[6], n = n[7], p = r.high, d = r.low, m = i.high, _ = i.low, E = s.high, T = s.low, A = a.high, g = a.low, v = o.high, y = o.low, S = l.high, C = l.low, N = h.high, b = h.low, I = n.high, O = n.low, k = p, L = d, D = m, R = _, w = E, x = T, M = A, P = g, B = v, F = y, U = S, H = C, G = N, j = b, q = I, Y = O, K = 0; K < 80; K++) {
  12823. var W, V, $ = u[K];
  12824. K < 16 ? (V = $.high = 0 | e[t + 2 * K], W = $.low = 0 | e[t + 2 * K + 1]) : (z = (Q = u[K - 15]).high, Q = Q.low, te = (ee = u[K - 2]).high, ee = ee.low, V = (V = (V = ((z >>> 1 | Q << 31) ^ (z >>> 8 | Q << 24) ^ z >>> 7) + (se = u[K - 7]).high + ((W = (Q = (Q >>> 1 | z << 31) ^ (Q >>> 8 | z << 24) ^ (Q >>> 7 | z << 25)) + se.low) >>> 0 < Q >>> 0 ? 1 : 0)) + ((te >>> 19 | ee << 13) ^ (te << 3 | ee >>> 29) ^ te >>> 6) + ((W += z = (ee >>> 19 | te << 13) ^ (ee << 3 | te >>> 29) ^ (ee >>> 6 | te << 26)) >>> 0 < z >>> 0 ? 1 : 0)) + (se = u[K - 16]).high + ((W += Q = se.low) >>> 0 < Q >>> 0 ? 1 : 0), $.high = V, $.low = W);
  12825. var he, ee = B & U ^ ~B & G, te = F & H ^ ~F & j, z = k & D ^ k & w ^ D & w,
  12826. se = (L >>> 28 | k << 4) ^ (L << 30 | k >>> 2) ^ (L << 25 | k >>> 7), Q = c[K], $ = Q.high,
  12827. ye = Q.low,
  12828. Se = q + ((B >>> 14 | F << 18) ^ (B >>> 18 | F << 14) ^ (B << 23 | F >>> 9)) + ((he = Y + ((F >>> 14 | B << 18) ^ (F >>> 18 | B << 14) ^ (F << 23 | B >>> 9))) >>> 0 < Y >>> 0 ? 1 : 0),
  12829. Ce = se + (L & R ^ L & x ^ R & x), q = G, Y = j, G = U, j = H, U = B, H = F,
  12830. B = M + (Se = Se + ee + ((he += te) >>> 0 < te >>> 0 ? 1 : 0) + $ + ((he += ye) >>> 0 < ye >>> 0 ? 1 : 0) + V + ((he += W) >>> 0 < W >>> 0 ? 1 : 0)) + ((F = P + he | 0) >>> 0 < P >>> 0 ? 1 : 0) | 0,
  12831. M = w, P = x, w = D, x = R, D = k, R = L,
  12832. k = Se + (((k >>> 28 | L << 4) ^ (k << 30 | L >>> 2) ^ (k << 25 | L >>> 7)) + z + (Ce >>> 0 < se >>> 0 ? 1 : 0)) + ((L = he + Ce | 0) >>> 0 < he >>> 0 ? 1 : 0) | 0
  12833. }
  12834. d = r.low = d + L, r.high = p + k + (d >>> 0 < L >>> 0 ? 1 : 0), _ = i.low = _ + R, i.high = m + D + (_ >>> 0 < R >>> 0 ? 1 : 0), T = s.low = T + x, s.high = E + w + (T >>> 0 < x >>> 0 ? 1 : 0), g = a.low = g + P, a.high = A + M + (g >>> 0 < P >>> 0 ? 1 : 0), y = o.low = y + F, o.high = v + B + (y >>> 0 < F >>> 0 ? 1 : 0), C = l.low = C + H, l.high = S + U + (C >>> 0 < H >>> 0 ? 1 : 0), b = h.low = b + j, h.high = N + G + (b >>> 0 < j >>> 0 ? 1 : 0), O = n.low = O + Y, n.high = I + q + (O >>> 0 < Y >>> 0 ? 1 : 0)
  12835. }, _doFinalize: function () {
  12836. var e = this._data, t = e.words, n = 8 * this._nDataBytes, r = 8 * e.sigBytes;
  12837. return t[r >>> 5] |= 128 << 24 - r % 32, t[30 + (128 + r >>> 10 << 5)] = Math.floor(n / 4294967296), t[31 + (128 + r >>> 10 << 5)] = n, e.sigBytes = 4 * t.length, this._process(), this._hash.toX32()
  12838. }, clone: function () {
  12839. var e = t.clone.call(this);
  12840. return e._hash = this._hash.clone(), e
  12841. }, blockSize: 32
  12842. }));
  12843. e.SHA512 = t._createHelper(r), e.HmacSHA512 = t._createHmacHelper(r)
  12844. }(), n.SHA512)
  12845. }), Sr(function (e, t) {
  12846. var n, i, s, o, r;
  12847. e.exports = (r = (n = e = dh).x64, i = r.Word, s = r.WordArray, r = n.algo, o = r.SHA512, r = r.SHA384 = o.extend({
  12848. _doReset: function () {
  12849. this._hash = new s.init([new i.init(3418070365, 3238371032), new i.init(1654270250, 914150663), new i.init(2438529370, 812702999), new i.init(355462360, 4144912697), new i.init(1731405415, 4290775857), new i.init(2394180231, 1750603025), new i.init(3675008525, 1694076839), new i.init(1203062813, 3204075428)])
  12850. }, _doFinalize: function () {
  12851. var e = o._doFinalize.call(this);
  12852. return e.sigBytes -= 16, e
  12853. }
  12854. }), n.SHA384 = o._createHelper(r), n.HmacSHA384 = o._createHmacHelper(r), e.SHA384)
  12855. }), Sr(function (e, t) {
  12856. var n;
  12857. e.exports = (n = dh, function (e) {
  12858. var t = n, i = (r = t.lib).WordArray, s = r.Hasher, a = t.x64.Word, r = t.algo, c = [], u = [], l = [],
  12859. h = (function () {
  12860. for (var e = 1, t = 0, n = 0; n < 24; n++) {
  12861. c[e + 5 * t] = (n + 1) * (n + 2) / 2 % 64;
  12862. var r = (2 * e + 3 * t) % 5, e = t % 5, t = r
  12863. }
  12864. for (e = 0; e < 5; e++) for (t = 0; t < 5; t++) u[e + 5 * t] = t + (2 * e + 3 * t) % 5 * 5;
  12865. for (var i = 1, s = 0; s < 24; s++) {
  12866. for (var p, o = 0, h = 0, f = 0; f < 7; f++) 1 & i && ((p = (1 << f) - 1) < 32 ? h ^= 1 << p : o ^= 1 << p - 32), 128 & i ? i = i << 1 ^ 113 : i <<= 1;
  12867. l[s] = a.create(o, h)
  12868. }
  12869. }(), []), r = (function () {
  12870. for (var e = 0; e < 25; e++) h[e] = a.create()
  12871. }(), r.SHA3 = s.extend({
  12872. cfg: s.cfg.extend({outputLength: 512}), _doReset: function () {
  12873. for (var e = this._state = [], t = 0; t < 25; t++) e[t] = new a.init;
  12874. this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32
  12875. }, _doProcessBlock: function (e, t) {
  12876. for (var n = this._state, r = this.blockSize / 2, i = 0; i < r; i++) {
  12877. var s = e[t + 2 * i], a = e[t + 2 * i + 1],
  12878. s = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8);
  12879. (O = n[i]).high ^= 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8), O.low ^= s
  12880. }
  12881. for (var o = 0; o < 24; o++) {
  12882. for (var f = 0; f < 5; f++) {
  12883. for (var p = 0, d = 0, m = 0; m < 5; m++) p ^= (O = n[f + 5 * m]).high, d ^= O.low;
  12884. var _ = h[f];
  12885. _.high = p, _.low = d
  12886. }
  12887. for (f = 0; f < 5; f++) for (var E = h[(f + 4) % 5], A = (T = h[(f + 1) % 5]).high, T = T.low, p = E.high ^ (A << 1 | T >>> 31), d = E.low ^ (T << 1 | A >>> 31), m = 0; m < 5; m++) (O = n[f + 5 * m]).high ^= p, O.low ^= d;
  12888. for (var v = 1; v < 25; v++) {
  12889. var y = (O = n[v]).high, S = O.low, C = c[v];
  12890. d = C < 32 ? (p = y << C | S >>> 32 - C, S << C | y >>> 32 - C) : (p = S << C - 32 | y >>> 64 - C, y << C - 32 | S >>> 64 - C), (y = h[u[v]]).high = p, y.low = d
  12891. }
  12892. var b = h[0], I = n[0];
  12893. for (b.high = I.high, b.low = I.low, f = 0; f < 5; f++) for (m = 0; m < 5; m++) {
  12894. var O = n[v = f + 5 * m], k = h[v], L = h[(f + 1) % 5 + 5 * m], D = h[(f + 2) % 5 + 5 * m];
  12895. O.high = k.high ^ ~L.high & D.high, O.low = k.low ^ ~L.low & D.low
  12896. }
  12897. (O = n[0]).high ^= (b = l[o]).high, O.low ^= b.low
  12898. }
  12899. }, _doFinalize: function () {
  12900. var t = this._data, n = t.words, r = (this._nDataBytes, 8 * t.sigBytes), s = 32 * this.blockSize;
  12901. n[r >>> 5] |= 1 << 24 - r % 32, n[(e.ceil((1 + r) / s) * s >>> 5) - 1] |= 128, t.sigBytes = 4 * n.length, this._process();
  12902. for (var a = this._state, c = (r = this.cfg.outputLength / 8) / 8, u = [], l = 0; l < c; l++) {
  12903. var f = (h = a[l]).high, h = h.low,
  12904. f = 16711935 & (f << 8 | f >>> 24) | 4278255360 & (f << 24 | f >>> 8);
  12905. u.push(16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8)), u.push(f)
  12906. }
  12907. return new i.init(u, r)
  12908. }, clone: function () {
  12909. for (var e = s.clone.call(this), t = e._state = this._state.slice(0), n = 0; n < 25; n++) t[n] = t[n].clone();
  12910. return e
  12911. }
  12912. }));
  12913. t.SHA3 = s._createHelper(r), t.HmacSHA3 = s._createHmacHelper(r)
  12914. }(Math), n.SHA3)
  12915. }), Sr(function (e, t) {
  12916. var n;
  12917. e.exports = (n = dh, function () {
  12918. var t = n, i = (r = t.lib).WordArray, s = r.Hasher, r = t.algo,
  12919. o = i.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]),
  12920. c = i.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]),
  12921. u = i.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]),
  12922. l = i.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]),
  12923. h = i.create([0, 1518500249, 1859775393, 2400959708, 2840853838]),
  12924. f = i.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), r = r.RIPEMD160 = s.extend({
  12925. _doReset: function () {
  12926. this._hash = i.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
  12927. }, _doProcessBlock: function (e, t) {
  12928. for (var n = 0; n < 16; n++) {
  12929. var r = t + n, i = e[r];
  12930. e[r] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8)
  12931. }
  12932. for (var s, a, p, g, v, I, O = this._hash.words, k = h.words, L = f.words, D = o.words, R = c.words, w = u.words, x = l.words, y = s = O[0], S = a = O[1], C = p = O[2], N = g = O[3], b = v = O[4], n = 0; n < 80; n += 1) I = (I = A(I = (I = s + e[t + D[n]] | 0) + (n < 16 ? (a ^ p ^ g) + k[0] : n < 32 ? m(a, p, g) + k[1] : n < 48 ? ((a | ~p) ^ g) + k[2] : n < 64 ? E(a, p, g) + k[3] : (a ^ (p | ~g)) + k[4]) | 0, w[n])) + v | 0, s = v, v = g, g = A(p, 10), p = a, a = I, I = (I = A(I = (I = y + e[t + R[n]] | 0) + (n < 16 ? (S ^ (C | ~N)) + L[0] : n < 32 ? E(S, C, N) + L[1] : n < 48 ? ((S | ~C) ^ N) + L[2] : n < 64 ? m(S, C, N) + L[3] : (S ^ C ^ N) + L[4]) | 0, x[n])) + b | 0, y = b, b = N, N = A(C, 10), C = S, S = I;
  12933. I = O[1] + p + N | 0, O[1] = O[2] + g + b | 0, O[2] = O[3] + v + y | 0, O[3] = O[4] + s + S | 0, O[4] = O[0] + a + C | 0, O[0] = I
  12934. }, _doFinalize: function () {
  12935. var e = this._data, t = e.words, n = 8 * this._nDataBytes, r = 8 * e.sigBytes;
  12936. t[r >>> 5] |= 128 << 24 - r % 32, t[14 + (64 + r >>> 9 << 4)] = 16711935 & (n << 8 | n >>> 24) | 4278255360 & (n << 24 | n >>> 8), e.sigBytes = 4 * (t.length + 1), this._process();
  12937. for (var s = (r = this._hash).words, a = 0; a < 5; a++) {
  12938. var o = s[a];
  12939. s[a] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8)
  12940. }
  12941. return r
  12942. }, clone: function () {
  12943. var e = s.clone.call(this);
  12944. return e._hash = this._hash.clone(), e
  12945. }
  12946. });
  12947. function m(e, t, n) {
  12948. return e & t | ~e & n
  12949. }
  12950. function E(e, t, n) {
  12951. return e & n | t & ~n
  12952. }
  12953. function A(e, t) {
  12954. return e << t | e >>> 32 - t
  12955. }
  12956. t.RIPEMD160 = s._createHelper(r), t.HmacRIPEMD160 = s._createHmacHelper(r)
  12957. }(), n.RIPEMD160)
  12958. }), Sr(function (e, t) {
  12959. var i;
  12960. e.exports = (e = dh.lib.Base, i = dh.enc.Utf8, void (dh.algo.HMAC = e.extend({
  12961. init: function (e, t) {
  12962. e = this._hasher = new e.init, "string" == typeof t && (t = i.parse(t));
  12963. var n = e.blockSize, r = 4 * n;
  12964. (t = t.sigBytes > r ? e.finalize(t) : t).clamp();
  12965. for (var e = this._oKey = t.clone(), t = this._iKey = t.clone(), o = e.words, c = t.words, u = 0; u < n; u++) o[u] ^= 1549556828, c[u] ^= 909522486;
  12966. e.sigBytes = t.sigBytes = r, this.reset()
  12967. }, reset: function () {
  12968. var e = this._hasher;
  12969. e.reset(), e.update(this._iKey)
  12970. }, update: function (e) {
  12971. return this._hasher.update(e), this
  12972. }, finalize: function (e) {
  12973. var t = this._hasher, e = t.finalize(e);
  12974. return t.reset(), t.finalize(this._oKey.clone().concat(e))
  12975. }
  12976. })))
  12977. }), Sr(function (e, t) {
  12978. var n, i, s, r, o, c, u;
  12979. e.exports = (i = (r = (n = e = dh).lib).Base, s = r.WordArray, o = (r = n.algo).SHA1, c = r.HMAC, u = r.PBKDF2 = i.extend({
  12980. cfg: i.extend({
  12981. keySize: 4,
  12982. hasher: o,
  12983. iterations: 1
  12984. }), init: function (e) {
  12985. this.cfg = this.cfg.extend(e)
  12986. }, compute: function (e, t) {
  12987. for (var n = this.cfg, r = c.create(n.hasher, e), i = s.create(), a = s.create([1]), o = i.words, u = a.words, l = n.keySize, h = n.iterations; o.length < l;) {
  12988. var f = r.update(t).finalize(a);
  12989. r.reset();
  12990. for (var p = f.words, d = p.length, m = f, _ = 1; _ < h; _++) {
  12991. m = r.finalize(m), r.reset();
  12992. for (var E = m.words, T = 0; T < d; T++) p[T] ^= E[T]
  12993. }
  12994. i.concat(f), u[0]++
  12995. }
  12996. return i.sigBytes = 4 * l, i
  12997. }
  12998. }), n.PBKDF2 = function (e, t, n) {
  12999. return u.create(n).compute(e, t)
  13000. }, e.PBKDF2)
  13001. }), Sr(function (e, t) {
  13002. var n, i, s, r, o, c;
  13003. e.exports = (i = (r = (n = e = dh).lib).Base, s = r.WordArray, o = (r = n.algo).MD5, c = r.EvpKDF = i.extend({
  13004. cfg: i.extend({
  13005. keySize: 4,
  13006. hasher: o,
  13007. iterations: 1
  13008. }), init: function (e) {
  13009. this.cfg = this.cfg.extend(e)
  13010. }, compute: function (e, t) {
  13011. for (var n, r = this.cfg, i = r.hasher.create(), a = s.create(), o = a.words, c = r.keySize, u = r.iterations; o.length < c;) {
  13012. n && i.update(n), n = i.update(e).finalize(t), i.reset();
  13013. for (var l = 1; l < u; l++) n = i.finalize(n), i.reset();
  13014. a.concat(n)
  13015. }
  13016. return a.sigBytes = 4 * c, a
  13017. }
  13018. }), n.EvpKDF = function (e, t, n) {
  13019. return c.create(n).compute(e, t)
  13020. }, e.EvpKDF)
  13021. }), Sr(function (e, t) {
  13022. var n;
  13023. e.exports = void ((n = dh).lib.Cipher || function () {
  13024. var t = n, r = t.lib, i = r.Base, s = r.WordArray, a = r.BufferedBlockAlgorithm,
  13025. c = ((o = t.enc).Utf8, o.Base64), u = t.algo.EvpKDF, l = r.Cipher = a.extend({
  13026. cfg: i.extend(), createEncryptor: function (e, t) {
  13027. return this.create(this._ENC_XFORM_MODE, e, t)
  13028. }, createDecryptor: function (e, t) {
  13029. return this.create(this._DEC_XFORM_MODE, e, t)
  13030. }, init: function (e, t, n) {
  13031. this.cfg = this.cfg.extend(n), this._xformMode = e, this._key = t, this.reset()
  13032. }, reset: function () {
  13033. a.reset.call(this), this._doReset()
  13034. }, process: function (e) {
  13035. return this._append(e), this._process()
  13036. }, finalize: function (e) {
  13037. return e && this._append(e), this._doFinalize()
  13038. }, keySize: 4, ivSize: 4, _ENC_XFORM_MODE: 1, _DEC_XFORM_MODE: 2, _createHelper: function (t) {
  13039. return {
  13040. encrypt: function (n, r, i) {
  13041. return e(r).encrypt(t, n, r, i)
  13042. }, decrypt: function (n, r, i) {
  13043. return e(r).decrypt(t, n, r, i)
  13044. }
  13045. }
  13046. }
  13047. }), o = (r.StreamCipher = l.extend({
  13048. _doFinalize: function () {
  13049. return this._process(!0)
  13050. }, blockSize: 1
  13051. }), t.mode = {}), f = r.BlockCipherMode = i.extend({
  13052. createEncryptor: function (e, t) {
  13053. return this.Encryptor.create(e, t)
  13054. }, createDecryptor: function (e, t) {
  13055. return this.Decryptor.create(e, t)
  13056. }, init: function (e, t) {
  13057. this._cipher = e, this._iv = t
  13058. }
  13059. }), o = o.CBC = function () {
  13060. var t = f.extend();
  13061. function n(t, n, r) {
  13062. var i, s = this._iv;
  13063. s ? (i = s, this._iv = void 0) : i = this._prevBlock;
  13064. for (var a = 0; a < r; a++) t[n + a] ^= i[a]
  13065. }
  13066. return t.Encryptor = t.extend({
  13067. processBlock: function (e, t) {
  13068. var r = this._cipher, i = r.blockSize;
  13069. n.call(this, e, t, i), r.encryptBlock(e, t), this._prevBlock = e.slice(t, t + i)
  13070. }
  13071. }), t.Decryptor = t.extend({
  13072. processBlock: function (e, t) {
  13073. var r = this._cipher, i = r.blockSize, s = e.slice(t, t + i);
  13074. r.decryptBlock(e, t), n.call(this, e, t, i), this._prevBlock = s
  13075. }
  13076. }), t
  13077. }(), d = (t.pad = {}).Pkcs7 = {
  13078. pad: function (e, t) {
  13079. for (var r = (t = 4 * t) - e.sigBytes % t, i = r << 24 | r << 16 | r << 8 | r, a = [], o = 0; o < r; o += 4) a.push(i);
  13080. t = s.create(a, r), e.concat(t)
  13081. }, unpad: function (e) {
  13082. var t = 255 & e.words[e.sigBytes - 1 >>> 2];
  13083. e.sigBytes -= t
  13084. }
  13085. }, m = (r.BlockCipher = l.extend({
  13086. cfg: l.cfg.extend({mode: o, padding: d}), reset: function () {
  13087. l.reset.call(this);
  13088. var e, n = (t = this.cfg).iv, t = t.mode;
  13089. this._xformMode == this._ENC_XFORM_MODE ? e = t.createEncryptor : (e = t.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == e ? this._mode.init(this, n && n.words) : (this._mode = e.call(t, this, n && n.words), this._mode.__creator = e)
  13090. }, _doProcessBlock: function (e, t) {
  13091. this._mode.processBlock(e, t)
  13092. }, _doFinalize: function () {
  13093. var e, t = this.cfg.padding;
  13094. return this._xformMode == this._ENC_XFORM_MODE ? (t.pad(this._data, this.blockSize), e = this._process(!0)) : (e = this._process(!0), t.unpad(e)), e
  13095. }, blockSize: 4
  13096. }), r.CipherParams = i.extend({
  13097. init: function (e) {
  13098. this.mixIn(e)
  13099. }, toString: function (e) {
  13100. return (e || this.formatter).stringify(this)
  13101. }
  13102. })), o = (t.format = {}).OpenSSL = {
  13103. stringify: function (e) {
  13104. var t = e.ciphertext;
  13105. return ((e = e.salt) ? s.create([1398893684, 1701076831]).concat(e).concat(t) : t).toString(c)
  13106. }, parse: function (e) {
  13107. var t, r = (e = c.parse(e)).words;
  13108. return 1398893684 == r[0] && 1701076831 == r[1] && (t = s.create(r.slice(2, 4)), r.splice(0, 4), e.sigBytes -= 16), m.create({
  13109. ciphertext: e,
  13110. salt: t
  13111. })
  13112. }
  13113. }, E = r.SerializableCipher = i.extend({
  13114. cfg: i.extend({format: o}), encrypt: function (e, t, n, r) {
  13115. r = this.cfg.extend(r);
  13116. var t = (i = e.createEncryptor(n, r)).finalize(t), i = i.cfg;
  13117. return m.create({
  13118. ciphertext: t,
  13119. key: n,
  13120. iv: i.iv,
  13121. algorithm: e,
  13122. mode: i.mode,
  13123. padding: i.padding,
  13124. blockSize: e.blockSize,
  13125. formatter: r.format
  13126. })
  13127. }, decrypt: function (e, t, n, r) {
  13128. return r = this.cfg.extend(r), t = this._parse(t, r.format), e.createDecryptor(n, r).finalize(t.ciphertext)
  13129. }, _parse: function (e, t) {
  13130. return "string" == typeof e ? t.parse(e, this) : e
  13131. }
  13132. }), d = (t.kdf = {}).OpenSSL = {
  13133. execute: function (e, t, n, r) {
  13134. return r = r || s.random(8), e = u.create({keySize: t + n}).compute(e, r), n = s.create(e.words.slice(t), 4 * n), e.sigBytes = 4 * t, m.create({
  13135. key: e,
  13136. iv: n,
  13137. salt: r
  13138. })
  13139. }
  13140. }, A = r.PasswordBasedCipher = E.extend({
  13141. cfg: E.cfg.extend({kdf: d}), encrypt: function (e, t, n, r) {
  13142. return n = (r = this.cfg.extend(r)).kdf.execute(n, e.keySize, e.ivSize), r.iv = n.iv, (e = E.encrypt.call(this, e, t, n.key, r)).mixIn(n), e
  13143. }, decrypt: function (e, t, n, r) {
  13144. return r = this.cfg.extend(r), t = this._parse(t, r.format), n = r.kdf.execute(n, e.keySize, e.ivSize, t.salt), r.iv = n.iv, E.decrypt.call(this, e, t, n.key, r)
  13145. }
  13146. });
  13147. function e(e) {
  13148. return "string" == typeof e ? A : E
  13149. }
  13150. }())
  13151. }), Sr(function (e, t) {
  13152. var n;
  13153. e.exports = ((n = dh).mode.CFB = function () {
  13154. var e = n.lib.BlockCipherMode.extend();
  13155. function t(e, t, n, r) {
  13156. var i, s = this._iv;
  13157. s ? (i = s.slice(0), this._iv = void 0) : i = this._prevBlock, r.encryptBlock(i, 0);
  13158. for (var a = 0; a < n; a++) e[t + a] ^= i[a]
  13159. }
  13160. return e.Encryptor = e.extend({
  13161. processBlock: function (e, n) {
  13162. var r = this._cipher, i = r.blockSize;
  13163. t.call(this, e, n, i, r), this._prevBlock = e.slice(n, n + i)
  13164. }
  13165. }), e.Decryptor = e.extend({
  13166. processBlock: function (e, n) {
  13167. var r = this._cipher, i = r.blockSize, s = e.slice(n, n + i);
  13168. t.call(this, e, n, i, r), this._prevBlock = s
  13169. }
  13170. }), e
  13171. }(), n.mode.CFB)
  13172. }), Sr(function (e, t) {
  13173. var n, r;
  13174. e.exports = ((e = dh).mode.CTR = (r = (n = e.lib.BlockCipherMode.extend()).Encryptor = n.extend({
  13175. processBlock: function (e, t) {
  13176. var n = this._cipher, r = n.blockSize, i = this._iv, s = this._counter,
  13177. a = (i && (s = this._counter = i.slice(0), this._iv = void 0), s.slice(0));
  13178. n.encryptBlock(a, 0), s[r - 1] = s[r - 1] + 1 | 0;
  13179. for (var o = 0; o < r; o++) e[t + o] ^= a[o]
  13180. }
  13181. }), n.Decryptor = r, n), e.mode.CTR)
  13182. }), Sr(function (e, t) {
  13183. var n;
  13184. e.exports = ((n = dh).mode.CTRGladman = function () {
  13185. var e = n.lib.BlockCipherMode.extend();
  13186. function t(e) {
  13187. var t, n, r;
  13188. return 255 == (e >> 24 & 255) ? (n = e >> 8 & 255, r = 255 & e, 255 == (t = e >> 16 & 255) ? (t = 0, 255 === n ? (n = 0, 255 === r ? r = 0 : ++r) : ++n) : ++t, e = 0, e = (e += t << 16) + (n << 8) + r) : e += 1 << 24, e
  13189. }
  13190. function r(e) {
  13191. 0 === (e[0] = t(e[0])) && (e[1] = t(e[1]))
  13192. }
  13193. var i = e.Encryptor = e.extend({
  13194. processBlock: function (e, t) {
  13195. var n = this._cipher, i = n.blockSize, s = this._iv, a = this._counter,
  13196. o = (s && (a = this._counter = s.slice(0), this._iv = void 0), r(a), a.slice(0));
  13197. n.encryptBlock(o, 0);
  13198. for (var c = 0; c < i; c++) e[t + c] ^= o[c]
  13199. }
  13200. });
  13201. return e.Decryptor = i, e
  13202. }(), n.mode.CTRGladman)
  13203. }), Sr(function (e, t) {
  13204. var n, r;
  13205. e.exports = ((e = dh).mode.OFB = (r = (n = e.lib.BlockCipherMode.extend()).Encryptor = n.extend({
  13206. processBlock: function (e, t) {
  13207. var n = this._cipher, r = n.blockSize, i = this._iv, s = this._keystream;
  13208. i && (s = this._keystream = i.slice(0), this._iv = void 0), n.encryptBlock(s, 0);
  13209. for (var a = 0; a < r; a++) e[t + a] ^= s[a]
  13210. }
  13211. }), n.Decryptor = r, n), e.mode.OFB)
  13212. }), Sr(function (e, t) {
  13213. var n;
  13214. e.exports = ((e = dh).mode.ECB = ((n = e.lib.BlockCipherMode.extend()).Encryptor = n.extend({
  13215. processBlock: function (e, t) {
  13216. this._cipher.encryptBlock(e, t)
  13217. }
  13218. }), n.Decryptor = n.extend({
  13219. processBlock: function (e, t) {
  13220. this._cipher.decryptBlock(e, t)
  13221. }
  13222. }), n), e.mode.ECB)
  13223. }), Sr(function (e, t) {
  13224. e.exports = (dh.pad.AnsiX923 = {
  13225. pad: function (e, t) {
  13226. var n = (n = e.sigBytes) + (t = (t = 4 * t) - n % t) - 1;
  13227. e.clamp(), e.words[n >>> 2] |= t << 24 - n % 4 * 8, e.sigBytes += t
  13228. }, unpad: function (e) {
  13229. var t = 255 & e.words[e.sigBytes - 1 >>> 2];
  13230. e.sigBytes -= t
  13231. }
  13232. }, dh.pad.Ansix923)
  13233. }), Sr(function (e, t) {
  13234. var n;
  13235. e.exports = ((n = dh).pad.Iso10126 = {
  13236. pad: function (e, t) {
  13237. t = (t *= 4) - e.sigBytes % t, e.concat(n.lib.WordArray.random(t - 1)).concat(n.lib.WordArray.create([t << 24], 1))
  13238. }, unpad: function (e) {
  13239. var t = 255 & e.words[e.sigBytes - 1 >>> 2];
  13240. e.sigBytes -= t
  13241. }
  13242. }, n.pad.Iso10126)
  13243. }), Sr(function (e, t) {
  13244. var n;
  13245. e.exports = ((n = dh).pad.Iso97971 = {
  13246. pad: function (e, t) {
  13247. e.concat(n.lib.WordArray.create([2147483648], 1)), n.pad.ZeroPadding.pad(e, t)
  13248. }, unpad: function (e) {
  13249. n.pad.ZeroPadding.unpad(e), e.sigBytes--
  13250. }
  13251. }, n.pad.Iso97971)
  13252. }), Sr(function (e, t) {
  13253. e.exports = (dh.pad.ZeroPadding = {
  13254. pad: function (e, t) {
  13255. t *= 4, e.clamp(), e.sigBytes += t - (e.sigBytes % t || t)
  13256. }, unpad: function (e) {
  13257. for (var t = e.words, n = e.sigBytes - 1, n = e.sigBytes - 1; 0 <= n; n--) if (t[n >>> 2] >>> 24 - n % 4 * 8 & 255) {
  13258. e.sigBytes = n + 1;
  13259. break
  13260. }
  13261. }
  13262. }, dh.pad.ZeroPadding)
  13263. }), Sr(function (e, t) {
  13264. e.exports = (dh.pad.NoPadding = {
  13265. pad: function () {
  13266. }, unpad: function () {
  13267. }
  13268. }, dh.pad.NoPadding)
  13269. }), Sr(function (e, t) {
  13270. var r, i;
  13271. e.exports = (r = (e = dh).lib.CipherParams, i = e.enc.Hex, e.format.Hex = {
  13272. stringify: function (e) {
  13273. return e.ciphertext.toString(i)
  13274. }, parse: function (e) {
  13275. return e = i.parse(e), r.create({ciphertext: e})
  13276. }
  13277. }, e.format.Hex)
  13278. }), Sr(function (e, t) {
  13279. var n;
  13280. e.exports = (n = dh, function () {
  13281. var e = n, t = e.lib.BlockCipher, r = e.algo, i = [], s = [], a = [], o = [], c = [], u = [], l = [], h = [],
  13282. f = [], p = [], d = (function () {
  13283. for (var e = [], t = 0; t < 256; t++) e[t] = t < 128 ? t << 1 : t << 1 ^ 283;
  13284. for (var n = 0, r = 0, t = 0; t < 256; t++) {
  13285. var d = r ^ r << 1 ^ r << 2 ^ r << 3 ^ r << 4, m = (i[n] = d = d >>> 8 ^ 255 & d ^ 99, e[s[d] = n]),
  13286. _ = e[m], E = e[_], T = 257 * e[d] ^ 16843008 * d;
  13287. a[n] = T << 24 | T >>> 8, o[n] = T << 16 | T >>> 16, c[n] = T << 8 | T >>> 24, u[n] = T, l[d] = (T = 16843009 * E ^ 65537 * _ ^ 257 * m ^ 16843008 * n) << 24 | T >>> 8, h[d] = T << 16 | T >>> 16, f[d] = T << 8 | T >>> 24, p[d] = T, n ? (n = m ^ e[e[e[E ^ m]]], r ^= e[e[r]]) : n = r = 1
  13288. }
  13289. }(), [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54]), r = r.AES = t.extend({
  13290. _doReset: function () {
  13291. if (!this._nRounds || this._keyPriorReset !== this._key) {
  13292. for (var e = this._keyPriorReset = this._key, t = e.words, n = e.sigBytes / 4, r = 4 * (1 + (this._nRounds = 6 + n)), s = this._keySchedule = [], a = 0; a < r; a++) a < n ? s[a] = t[a] : (u = s[a - 1], a % n ? 6 < n && a % n == 4 && (u = i[u >>> 24] << 24 | i[u >>> 16 & 255] << 16 | i[u >>> 8 & 255] << 8 | i[255 & u]) : (u = i[(u = u << 8 | u >>> 24) >>> 24] << 24 | i[u >>> 16 & 255] << 16 | i[u >>> 8 & 255] << 8 | i[255 & u], u ^= d[a / n | 0] << 24), s[a] = s[a - n] ^ u);
  13293. for (var o = this._invKeySchedule = [], c = 0; c < r; c++) {
  13294. var a = r - c, u = c % 4 ? s[a] : s[a - 4];
  13295. o[c] = c < 4 || a <= 4 ? u : l[i[u >>> 24]] ^ h[i[u >>> 16 & 255]] ^ f[i[u >>> 8 & 255]] ^ p[i[255 & u]]
  13296. }
  13297. }
  13298. }, encryptBlock: function (e, t) {
  13299. this._doCryptBlock(e, t, this._keySchedule, a, o, c, u, i)
  13300. }, decryptBlock: function (e, t) {
  13301. var n = e[t + 1];
  13302. e[t + 1] = e[t + 3], e[t + 3] = n, this._doCryptBlock(e, t, this._invKeySchedule, l, h, f, p, s), n = e[t + 1], e[t + 1] = e[t + 3], e[t + 3] = n
  13303. }, _doCryptBlock: function (e, t, n, r, i, s, a, o) {
  13304. for (var c = this._nRounds, u = e[t] ^ n[0], l = e[t + 1] ^ n[1], h = e[t + 2] ^ n[2], f = e[t + 3] ^ n[3], p = 4, d = 1; d < c; d++) var m = r[u >>> 24] ^ i[l >>> 16 & 255] ^ s[h >>> 8 & 255] ^ a[255 & f] ^ n[p++], _ = r[l >>> 24] ^ i[h >>> 16 & 255] ^ s[f >>> 8 & 255] ^ a[255 & u] ^ n[p++], E = r[h >>> 24] ^ i[f >>> 16 & 255] ^ s[u >>> 8 & 255] ^ a[255 & l] ^ n[p++], T = r[f >>> 24] ^ i[u >>> 16 & 255] ^ s[l >>> 8 & 255] ^ a[255 & h] ^ n[p++], u = m, l = _, h = E, f = T;
  13305. m = (o[u >>> 24] << 24 | o[l >>> 16 & 255] << 16 | o[h >>> 8 & 255] << 8 | o[255 & f]) ^ n[p++], _ = (o[l >>> 24] << 24 | o[h >>> 16 & 255] << 16 | o[f >>> 8 & 255] << 8 | o[255 & u]) ^ n[p++], E = (o[h >>> 24] << 24 | o[f >>> 16 & 255] << 16 | o[u >>> 8 & 255] << 8 | o[255 & l]) ^ n[p++], T = (o[f >>> 24] << 24 | o[u >>> 16 & 255] << 16 | o[l >>> 8 & 255] << 8 | o[255 & h]) ^ n[p++], e[t] = m, e[t + 1] = _, e[t + 2] = E, e[t + 3] = T
  13306. }, keySize: 8
  13307. });
  13308. e.AES = t._createHelper(r)
  13309. }(), n.AES)
  13310. }), Sr(function (e, t) {
  13311. var n;
  13312. e.exports = (n = dh, function () {
  13313. var e = n, r = (t = e.lib).WordArray, t = t.BlockCipher, s = e.algo,
  13314. a = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4],
  13315. o = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32],
  13316. c = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], u = [{
  13317. 0: 8421888,
  13318. 268435456: 32768,
  13319. 536870912: 8421378,
  13320. 805306368: 2,
  13321. 1073741824: 512,
  13322. 1342177280: 8421890,
  13323. 1610612736: 8389122,
  13324. 1879048192: 8388608,
  13325. 2147483648: 514,
  13326. 2415919104: 8389120,
  13327. 2684354560: 33280,
  13328. 2952790016: 8421376,
  13329. 3221225472: 32770,
  13330. 3489660928: 8388610,
  13331. 3758096384: 0,
  13332. 4026531840: 33282,
  13333. 134217728: 0,
  13334. 402653184: 8421890,
  13335. 671088640: 33282,
  13336. 939524096: 32768,
  13337. 1207959552: 8421888,
  13338. 1476395008: 512,
  13339. 1744830464: 8421378,
  13340. 2013265920: 2,
  13341. 2281701376: 8389120,
  13342. 2550136832: 33280,
  13343. 2818572288: 8421376,
  13344. 3087007744: 8389122,
  13345. 3355443200: 8388610,
  13346. 3623878656: 32770,
  13347. 3892314112: 514,
  13348. 4160749568: 8388608,
  13349. 1: 32768,
  13350. 268435457: 2,
  13351. 536870913: 8421888,
  13352. 805306369: 8388608,
  13353. 1073741825: 8421378,
  13354. 1342177281: 33280,
  13355. 1610612737: 512,
  13356. 1879048193: 8389122,
  13357. 2147483649: 8421890,
  13358. 2415919105: 8421376,
  13359. 2684354561: 8388610,
  13360. 2952790017: 33282,
  13361. 3221225473: 514,
  13362. 3489660929: 8389120,
  13363. 3758096385: 32770,
  13364. 4026531841: 0,
  13365. 134217729: 8421890,
  13366. 402653185: 8421376,
  13367. 671088641: 8388608,
  13368. 939524097: 512,
  13369. 1207959553: 32768,
  13370. 1476395009: 8388610,
  13371. 1744830465: 2,
  13372. 2013265921: 33282,
  13373. 2281701377: 32770,
  13374. 2550136833: 8389122,
  13375. 2818572289: 514,
  13376. 3087007745: 8421888,
  13377. 3355443201: 8389120,
  13378. 3623878657: 0,
  13379. 3892314113: 33280,
  13380. 4160749569: 8421378
  13381. }, {
  13382. 0: 1074282512,
  13383. 16777216: 16384,
  13384. 33554432: 524288,
  13385. 50331648: 1074266128,
  13386. 67108864: 1073741840,
  13387. 83886080: 1074282496,
  13388. 100663296: 1073758208,
  13389. 117440512: 16,
  13390. 134217728: 540672,
  13391. 150994944: 1073758224,
  13392. 167772160: 1073741824,
  13393. 184549376: 540688,
  13394. 201326592: 524304,
  13395. 218103808: 0,
  13396. 234881024: 16400,
  13397. 251658240: 1074266112,
  13398. 8388608: 1073758208,
  13399. 25165824: 540688,
  13400. 41943040: 16,
  13401. 58720256: 1073758224,
  13402. 75497472: 1074282512,
  13403. 92274688: 1073741824,
  13404. 109051904: 524288,
  13405. 125829120: 1074266128,
  13406. 142606336: 524304,
  13407. 159383552: 0,
  13408. 176160768: 16384,
  13409. 192937984: 1074266112,
  13410. 209715200: 1073741840,
  13411. 226492416: 540672,
  13412. 243269632: 1074282496,
  13413. 260046848: 16400,
  13414. 268435456: 0,
  13415. 285212672: 1074266128,
  13416. 301989888: 1073758224,
  13417. 318767104: 1074282496,
  13418. 335544320: 1074266112,
  13419. 352321536: 16,
  13420. 369098752: 540688,
  13421. 385875968: 16384,
  13422. 402653184: 16400,
  13423. 419430400: 524288,
  13424. 436207616: 524304,
  13425. 452984832: 1073741840,
  13426. 469762048: 540672,
  13427. 486539264: 1073758208,
  13428. 503316480: 1073741824,
  13429. 520093696: 1074282512,
  13430. 276824064: 540688,
  13431. 293601280: 524288,
  13432. 310378496: 1074266112,
  13433. 327155712: 16384,
  13434. 343932928: 1073758208,
  13435. 360710144: 1074282512,
  13436. 377487360: 16,
  13437. 394264576: 1073741824,
  13438. 411041792: 1074282496,
  13439. 427819008: 1073741840,
  13440. 444596224: 1073758224,
  13441. 461373440: 524304,
  13442. 478150656: 0,
  13443. 494927872: 16400,
  13444. 511705088: 1074266128,
  13445. 528482304: 540672
  13446. }, {
  13447. 0: 260,
  13448. 1048576: 0,
  13449. 2097152: 67109120,
  13450. 3145728: 65796,
  13451. 4194304: 65540,
  13452. 5242880: 67108868,
  13453. 6291456: 67174660,
  13454. 7340032: 67174400,
  13455. 8388608: 67108864,
  13456. 9437184: 67174656,
  13457. 10485760: 65792,
  13458. 11534336: 67174404,
  13459. 12582912: 67109124,
  13460. 13631488: 65536,
  13461. 14680064: 4,
  13462. 15728640: 256,
  13463. 524288: 67174656,
  13464. 1572864: 67174404,
  13465. 2621440: 0,
  13466. 3670016: 67109120,
  13467. 4718592: 67108868,
  13468. 5767168: 65536,
  13469. 6815744: 65540,
  13470. 7864320: 260,
  13471. 8912896: 4,
  13472. 9961472: 256,
  13473. 11010048: 67174400,
  13474. 12058624: 65796,
  13475. 13107200: 65792,
  13476. 14155776: 67109124,
  13477. 15204352: 67174660,
  13478. 16252928: 67108864,
  13479. 16777216: 67174656,
  13480. 17825792: 65540,
  13481. 18874368: 65536,
  13482. 19922944: 67109120,
  13483. 20971520: 256,
  13484. 22020096: 67174660,
  13485. 23068672: 67108868,
  13486. 24117248: 0,
  13487. 25165824: 67109124,
  13488. 26214400: 67108864,
  13489. 27262976: 4,
  13490. 28311552: 65792,
  13491. 29360128: 67174400,
  13492. 30408704: 260,
  13493. 31457280: 65796,
  13494. 32505856: 67174404,
  13495. 17301504: 67108864,
  13496. 18350080: 260,
  13497. 19398656: 67174656,
  13498. 20447232: 0,
  13499. 21495808: 65540,
  13500. 22544384: 67109120,
  13501. 23592960: 256,
  13502. 24641536: 67174404,
  13503. 25690112: 65536,
  13504. 26738688: 67174660,
  13505. 27787264: 65796,
  13506. 28835840: 67108868,
  13507. 29884416: 67109124,
  13508. 30932992: 67174400,
  13509. 31981568: 4,
  13510. 33030144: 65792
  13511. }, {
  13512. 0: 2151682048,
  13513. 65536: 2147487808,
  13514. 131072: 4198464,
  13515. 196608: 2151677952,
  13516. 262144: 0,
  13517. 327680: 4198400,
  13518. 393216: 2147483712,
  13519. 458752: 4194368,
  13520. 524288: 2147483648,
  13521. 589824: 4194304,
  13522. 655360: 64,
  13523. 720896: 2147487744,
  13524. 786432: 2151678016,
  13525. 851968: 4160,
  13526. 917504: 4096,
  13527. 983040: 2151682112,
  13528. 32768: 2147487808,
  13529. 98304: 64,
  13530. 163840: 2151678016,
  13531. 229376: 2147487744,
  13532. 294912: 4198400,
  13533. 360448: 2151682112,
  13534. 425984: 0,
  13535. 491520: 2151677952,
  13536. 557056: 4096,
  13537. 622592: 2151682048,
  13538. 688128: 4194304,
  13539. 753664: 4160,
  13540. 819200: 2147483648,
  13541. 884736: 4194368,
  13542. 950272: 4198464,
  13543. 1015808: 2147483712,
  13544. 1048576: 4194368,
  13545. 1114112: 4198400,
  13546. 1179648: 2147483712,
  13547. 1245184: 0,
  13548. 1310720: 4160,
  13549. 1376256: 2151678016,
  13550. 1441792: 2151682048,
  13551. 1507328: 2147487808,
  13552. 1572864: 2151682112,
  13553. 1638400: 2147483648,
  13554. 1703936: 2151677952,
  13555. 1769472: 4198464,
  13556. 1835008: 2147487744,
  13557. 1900544: 4194304,
  13558. 1966080: 64,
  13559. 2031616: 4096,
  13560. 1081344: 2151677952,
  13561. 1146880: 2151682112,
  13562. 1212416: 0,
  13563. 1277952: 4198400,
  13564. 1343488: 4194368,
  13565. 1409024: 2147483648,
  13566. 1474560: 2147487808,
  13567. 1540096: 64,
  13568. 1605632: 2147483712,
  13569. 1671168: 4096,
  13570. 1736704: 2147487744,
  13571. 1802240: 2151678016,
  13572. 1867776: 4160,
  13573. 1933312: 2151682048,
  13574. 1998848: 4194304,
  13575. 2064384: 4198464
  13576. }, {
  13577. 0: 128,
  13578. 4096: 17039360,
  13579. 8192: 262144,
  13580. 12288: 536870912,
  13581. 16384: 537133184,
  13582. 20480: 16777344,
  13583. 24576: 553648256,
  13584. 28672: 262272,
  13585. 32768: 16777216,
  13586. 36864: 537133056,
  13587. 40960: 536871040,
  13588. 45056: 553910400,
  13589. 49152: 553910272,
  13590. 53248: 0,
  13591. 57344: 17039488,
  13592. 61440: 553648128,
  13593. 2048: 17039488,
  13594. 6144: 553648256,
  13595. 10240: 128,
  13596. 14336: 17039360,
  13597. 18432: 262144,
  13598. 22528: 537133184,
  13599. 26624: 553910272,
  13600. 30720: 536870912,
  13601. 34816: 537133056,
  13602. 38912: 0,
  13603. 43008: 553910400,
  13604. 47104: 16777344,
  13605. 51200: 536871040,
  13606. 55296: 553648128,
  13607. 59392: 16777216,
  13608. 63488: 262272,
  13609. 65536: 262144,
  13610. 69632: 128,
  13611. 73728: 536870912,
  13612. 77824: 553648256,
  13613. 81920: 16777344,
  13614. 86016: 553910272,
  13615. 90112: 537133184,
  13616. 94208: 16777216,
  13617. 98304: 553910400,
  13618. 102400: 553648128,
  13619. 106496: 17039360,
  13620. 110592: 537133056,
  13621. 114688: 262272,
  13622. 118784: 536871040,
  13623. 122880: 0,
  13624. 126976: 17039488,
  13625. 67584: 553648256,
  13626. 71680: 16777216,
  13627. 75776: 17039360,
  13628. 79872: 537133184,
  13629. 83968: 536870912,
  13630. 88064: 17039488,
  13631. 92160: 128,
  13632. 96256: 553910272,
  13633. 100352: 262272,
  13634. 104448: 553910400,
  13635. 108544: 0,
  13636. 112640: 553648128,
  13637. 116736: 16777344,
  13638. 120832: 262144,
  13639. 124928: 537133056,
  13640. 129024: 536871040
  13641. }, {
  13642. 0: 268435464,
  13643. 256: 8192,
  13644. 512: 270532608,
  13645. 768: 270540808,
  13646. 1024: 268443648,
  13647. 1280: 2097152,
  13648. 1536: 2097160,
  13649. 1792: 268435456,
  13650. 2048: 0,
  13651. 2304: 268443656,
  13652. 2560: 2105344,
  13653. 2816: 8,
  13654. 3072: 270532616,
  13655. 3328: 2105352,
  13656. 3584: 8200,
  13657. 3840: 270540800,
  13658. 128: 270532608,
  13659. 384: 270540808,
  13660. 640: 8,
  13661. 896: 2097152,
  13662. 1152: 2105352,
  13663. 1408: 268435464,
  13664. 1664: 268443648,
  13665. 1920: 8200,
  13666. 2176: 2097160,
  13667. 2432: 8192,
  13668. 2688: 268443656,
  13669. 2944: 270532616,
  13670. 3200: 0,
  13671. 3456: 270540800,
  13672. 3712: 2105344,
  13673. 3968: 268435456,
  13674. 4096: 268443648,
  13675. 4352: 270532616,
  13676. 4608: 270540808,
  13677. 4864: 8200,
  13678. 5120: 2097152,
  13679. 5376: 268435456,
  13680. 5632: 268435464,
  13681. 5888: 2105344,
  13682. 6144: 2105352,
  13683. 6400: 0,
  13684. 6656: 8,
  13685. 6912: 270532608,
  13686. 7168: 8192,
  13687. 7424: 268443656,
  13688. 7680: 270540800,
  13689. 7936: 2097160,
  13690. 4224: 8,
  13691. 4480: 2105344,
  13692. 4736: 2097152,
  13693. 4992: 268435464,
  13694. 5248: 268443648,
  13695. 5504: 8200,
  13696. 5760: 270540808,
  13697. 6016: 270532608,
  13698. 6272: 270540800,
  13699. 6528: 270532616,
  13700. 6784: 8192,
  13701. 7040: 2105352,
  13702. 7296: 2097160,
  13703. 7552: 0,
  13704. 7808: 268435456,
  13705. 8064: 268443656
  13706. }, {
  13707. 0: 1048576,
  13708. 16: 33555457,
  13709. 32: 1024,
  13710. 48: 1049601,
  13711. 64: 34604033,
  13712. 80: 0,
  13713. 96: 1,
  13714. 112: 34603009,
  13715. 128: 33555456,
  13716. 144: 1048577,
  13717. 160: 33554433,
  13718. 176: 34604032,
  13719. 192: 34603008,
  13720. 208: 1025,
  13721. 224: 1049600,
  13722. 240: 33554432,
  13723. 8: 34603009,
  13724. 24: 0,
  13725. 40: 33555457,
  13726. 56: 34604032,
  13727. 72: 1048576,
  13728. 88: 33554433,
  13729. 104: 33554432,
  13730. 120: 1025,
  13731. 136: 1049601,
  13732. 152: 33555456,
  13733. 168: 34603008,
  13734. 184: 1048577,
  13735. 200: 1024,
  13736. 216: 34604033,
  13737. 232: 1,
  13738. 248: 1049600,
  13739. 256: 33554432,
  13740. 272: 1048576,
  13741. 288: 33555457,
  13742. 304: 34603009,
  13743. 320: 1048577,
  13744. 336: 33555456,
  13745. 352: 34604032,
  13746. 368: 1049601,
  13747. 384: 1025,
  13748. 400: 34604033,
  13749. 416: 1049600,
  13750. 432: 1,
  13751. 448: 0,
  13752. 464: 34603008,
  13753. 480: 33554433,
  13754. 496: 1024,
  13755. 264: 1049600,
  13756. 280: 33555457,
  13757. 296: 34603009,
  13758. 312: 1,
  13759. 328: 33554432,
  13760. 344: 1048576,
  13761. 360: 1025,
  13762. 376: 34604032,
  13763. 392: 33554433,
  13764. 408: 34603008,
  13765. 424: 0,
  13766. 440: 34604033,
  13767. 456: 1049601,
  13768. 472: 1024,
  13769. 488: 33555456,
  13770. 504: 1048577
  13771. }, {
  13772. 0: 134219808,
  13773. 1: 131072,
  13774. 2: 134217728,
  13775. 3: 32,
  13776. 4: 131104,
  13777. 5: 134350880,
  13778. 6: 134350848,
  13779. 7: 2048,
  13780. 8: 134348800,
  13781. 9: 134219776,
  13782. 10: 133120,
  13783. 11: 134348832,
  13784. 12: 2080,
  13785. 13: 0,
  13786. 14: 134217760,
  13787. 15: 133152,
  13788. 2147483648: 2048,
  13789. 2147483649: 134350880,
  13790. 2147483650: 134219808,
  13791. 2147483651: 134217728,
  13792. 2147483652: 134348800,
  13793. 2147483653: 133120,
  13794. 2147483654: 133152,
  13795. 2147483655: 32,
  13796. 2147483656: 134217760,
  13797. 2147483657: 2080,
  13798. 2147483658: 131104,
  13799. 2147483659: 134350848,
  13800. 2147483660: 0,
  13801. 2147483661: 134348832,
  13802. 2147483662: 134219776,
  13803. 2147483663: 131072,
  13804. 16: 133152,
  13805. 17: 134350848,
  13806. 18: 32,
  13807. 19: 2048,
  13808. 20: 134219776,
  13809. 21: 134217760,
  13810. 22: 134348832,
  13811. 23: 131072,
  13812. 24: 0,
  13813. 25: 131104,
  13814. 26: 134348800,
  13815. 27: 134219808,
  13816. 28: 134350880,
  13817. 29: 133120,
  13818. 30: 2080,
  13819. 31: 134217728,
  13820. 2147483664: 131072,
  13821. 2147483665: 2048,
  13822. 2147483666: 134348832,
  13823. 2147483667: 133152,
  13824. 2147483668: 32,
  13825. 2147483669: 134348800,
  13826. 2147483670: 134217728,
  13827. 2147483671: 134219808,
  13828. 2147483672: 134350880,
  13829. 2147483673: 134217760,
  13830. 2147483674: 134219776,
  13831. 2147483675: 0,
  13832. 2147483676: 133120,
  13833. 2147483677: 2080,
  13834. 2147483678: 131104,
  13835. 2147483679: 134350848
  13836. }], l = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679], h = s.DES = t.extend({
  13837. _doReset: function () {
  13838. for (var e = this._key.words, t = [], n = 0; n < 56; n++) {
  13839. var r = a[n] - 1;
  13840. t[n] = e[r >>> 5] >>> 31 - r % 32 & 1
  13841. }
  13842. for (var i = this._subKeys = [], s = 0; s < 16; s++) {
  13843. for (var u = i[s] = [], l = c[s], n = 0; n < 24; n++) u[n / 6 | 0] |= t[(o[n] - 1 + l) % 28] << 31 - n % 6, u[4 + (n / 6 | 0)] |= t[28 + (o[n + 24] - 1 + l) % 28] << 31 - n % 6;
  13844. for (u[0] = u[0] << 1 | u[0] >>> 31, n = 1; n < 7; n++) u[n] = u[n] >>> 4 * (n - 1) + 3;
  13845. u[7] = u[7] << 5 | u[7] >>> 27
  13846. }
  13847. var h = this._invSubKeys = [];
  13848. for (n = 0; n < 16; n++) h[n] = i[15 - n]
  13849. }, encryptBlock: function (e, t) {
  13850. this._doCryptBlock(e, t, this._subKeys)
  13851. }, decryptBlock: function (e, t) {
  13852. this._doCryptBlock(e, t, this._invSubKeys)
  13853. }, _doCryptBlock: function (e, t, n) {
  13854. this._lBlock = e[t], this._rBlock = e[t + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535), p.call(this, 2, 858993459), p.call(this, 8, 16711935), f.call(this, 1, 1431655765);
  13855. for (var r = 0; r < 16; r++) {
  13856. for (var i = n[r], s = this._lBlock, a = this._rBlock, o = 0, c = 0; c < 8; c++) o |= u[c][((a ^ i[c]) & l[c]) >>> 0];
  13857. this._lBlock = a, this._rBlock = s ^ o
  13858. }
  13859. var h = this._lBlock;
  13860. this._lBlock = this._rBlock, this._rBlock = h, f.call(this, 1, 1431655765), p.call(this, 8, 16711935), p.call(this, 2, 858993459), f.call(this, 16, 65535), f.call(this, 4, 252645135), e[t] = this._lBlock, e[t + 1] = this._rBlock
  13861. }, keySize: 2, ivSize: 2, blockSize: 2
  13862. });
  13863. function f(e, t) {
  13864. t = (this._lBlock >>> e ^ this._rBlock) & t, this._rBlock ^= t, this._lBlock ^= t << e
  13865. }
  13866. function p(e, t) {
  13867. t = (this._rBlock >>> e ^ this._lBlock) & t, this._lBlock ^= t, this._rBlock ^= t << e
  13868. }
  13869. e.DES = t._createHelper(h), s = s.TripleDES = t.extend({
  13870. _doReset: function () {
  13871. if (2 !== (e = this._key.words).length && 4 !== e.length && e.length < 6) throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
  13872. var t = e.slice(0, 2), n = e.length < 4 ? e.slice(0, 2) : e.slice(2, 4),
  13873. e = e.length < 6 ? e.slice(0, 2) : e.slice(4, 6);
  13874. this._des1 = h.createEncryptor(r.create(t)), this._des2 = h.createEncryptor(r.create(n)), this._des3 = h.createEncryptor(r.create(e))
  13875. }, encryptBlock: function (e, t) {
  13876. this._des1.encryptBlock(e, t), this._des2.decryptBlock(e, t), this._des3.encryptBlock(e, t)
  13877. }, decryptBlock: function (e, t) {
  13878. this._des3.decryptBlock(e, t), this._des2.encryptBlock(e, t), this._des1.decryptBlock(e, t)
  13879. }, keySize: 6, ivSize: 2, blockSize: 2
  13880. }), e.TripleDES = t._createHelper(s)
  13881. }(), n.TripleDES)
  13882. }), Sr(function (e, t) {
  13883. var n;
  13884. e.exports = (n = dh, function () {
  13885. var e = n, t = e.lib.StreamCipher, r = e.algo, i = r.RC4 = t.extend({
  13886. _doReset: function () {
  13887. for (var e = this._key, t = e.words, n = e.sigBytes, r = this._S = [], i = 0; i < 256; i++) r[i] = i;
  13888. for (var i = 0, s = 0; i < 256; i++) {
  13889. var a = t[(a = i % n) >>> 2] >>> 24 - a % 4 * 8 & 255, s = (s + r[i] + a) % 256, a = r[i];
  13890. r[i] = r[s], r[s] = a
  13891. }
  13892. this._i = this._j = 0
  13893. }, _doProcessBlock: function (e, t) {
  13894. e[t] ^= s.call(this)
  13895. }, keySize: 8, ivSize: 0
  13896. });
  13897. function s() {
  13898. for (var e = this._S, t = this._i, n = this._j, r = 0, i = 0; i < 4; i++) {
  13899. var n = (n + e[t = (t + 1) % 256]) % 256, s = e[t];
  13900. e[t] = e[n], e[n] = s, r |= e[(e[t] + e[n]) % 256] << 24 - 8 * i
  13901. }
  13902. return this._i = t, this._j = n, r
  13903. }
  13904. e.RC4 = t._createHelper(i), r = r.RC4Drop = i.extend({
  13905. cfg: i.cfg.extend({drop: 192}), _doReset: function () {
  13906. i._doReset.call(this);
  13907. for (var e = this.cfg.drop; 0 < e; e--) s.call(this)
  13908. }
  13909. }), e.RC4Drop = t._createHelper(r)
  13910. }(), n.RC4)
  13911. }), Sr(function (e, t) {
  13912. var n;
  13913. e.exports = (n = dh, function () {
  13914. var e = n, t = e.lib.StreamCipher, r = e.algo, i = [], s = [], a = [], r = r.Rabbit = t.extend({
  13915. _doReset: function () {
  13916. for (var e = this._key.words, t = this.cfg.iv, n = 0; n < 4; n++) e[n] = 16711935 & (e[n] << 8 | e[n] >>> 24) | 4278255360 & (e[n] << 24 | e[n] >>> 8);
  13917. for (var r = this._X = [e[0], e[3] << 16 | e[2] >>> 16, e[1], e[0] << 16 | e[3] >>> 16, e[2], e[1] << 16 | e[0] >>> 16, e[3], e[2] << 16 | e[1] >>> 16], i = this._C = [e[2] << 16 | e[2] >>> 16, 4294901760 & e[0] | 65535 & e[1], e[3] << 16 | e[3] >>> 16, 4294901760 & e[1] | 65535 & e[2], e[0] << 16 | e[0] >>> 16, 4294901760 & e[2] | 65535 & e[3], e[1] << 16 | e[1] >>> 16, 4294901760 & e[3] | 65535 & e[0]], n = this._b = 0; n < 4; n++) c.call(this);
  13918. for (n = 0; n < 8; n++) i[n] ^= r[n + 4 & 7];
  13919. if (t) {
  13920. var a = (t = t.words)[0],
  13921. h = (a = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8)) >>> 16 | 4294901760 & (t = 16711935 & ((t = t[1]) << 8 | t >>> 24) | 4278255360 & (t << 24 | t >>> 8)),
  13922. f = t << 16 | 65535 & a;
  13923. for (i[0] ^= a, i[1] ^= h, i[2] ^= t, i[3] ^= f, i[4] ^= a, i[5] ^= h, i[6] ^= t, i[7] ^= f, n = 0; n < 4; n++) c.call(this)
  13924. }
  13925. }, _doProcessBlock: function (e, t) {
  13926. var n = this._X;
  13927. c.call(this), i[0] = n[0] ^ n[5] >>> 16 ^ n[3] << 16, i[1] = n[2] ^ n[7] >>> 16 ^ n[5] << 16, i[2] = n[4] ^ n[1] >>> 16 ^ n[7] << 16, i[3] = n[6] ^ n[3] >>> 16 ^ n[1] << 16;
  13928. for (var r = 0; r < 4; r++) i[r] = 16711935 & (i[r] << 8 | i[r] >>> 24) | 4278255360 & (i[r] << 24 | i[r] >>> 8), e[t + r] ^= i[r]
  13929. }, blockSize: 4, ivSize: 2
  13930. });
  13931. function c() {
  13932. for (var e = this._X, t = this._C, n = 0; n < 8; n++) s[n] = t[n];
  13933. for (t[0] = t[0] + 1295307597 + this._b | 0, t[1] = t[1] + 3545052371 + (t[0] >>> 0 < s[0] >>> 0 ? 1 : 0) | 0, t[2] = t[2] + 886263092 + (t[1] >>> 0 < s[1] >>> 0 ? 1 : 0) | 0, t[3] = t[3] + 1295307597 + (t[2] >>> 0 < s[2] >>> 0 ? 1 : 0) | 0, t[4] = t[4] + 3545052371 + (t[3] >>> 0 < s[3] >>> 0 ? 1 : 0) | 0, t[5] = t[5] + 886263092 + (t[4] >>> 0 < s[4] >>> 0 ? 1 : 0) | 0, t[6] = t[6] + 1295307597 + (t[5] >>> 0 < s[5] >>> 0 ? 1 : 0) | 0, t[7] = t[7] + 3545052371 + (t[6] >>> 0 < s[6] >>> 0 ? 1 : 0) | 0, this._b = t[7] >>> 0 < s[7] >>> 0 ? 1 : 0, n = 0; n < 8; n++) {
  13934. var r = e[n] + t[n], i = 65535 & r, o = r >>> 16;
  13935. a[n] = ((i * i >>> 17) + i * o >>> 15) + o * o ^ ((4294901760 & r) * r | 0) + ((65535 & r) * r | 0)
  13936. }
  13937. e[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, e[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, e[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, e[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, e[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, e[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, e[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, e[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0
  13938. }
  13939. e.Rabbit = t._createHelper(r)
  13940. }(), n.Rabbit)
  13941. }), Sr(function (e, t) {
  13942. var n;
  13943. e.exports = (n = dh, function () {
  13944. var e = n, t = e.lib.StreamCipher, r = e.algo, i = [], s = [], a = [], r = r.RabbitLegacy = t.extend({
  13945. _doReset: function () {
  13946. for (var e = this._key.words, t = this.cfg.iv, n = this._X = [e[0], e[3] << 16 | e[2] >>> 16, e[1], e[0] << 16 | e[3] >>> 16, e[2], e[1] << 16 | e[0] >>> 16, e[3], e[2] << 16 | e[1] >>> 16], r = this._C = [e[2] << 16 | e[2] >>> 16, 4294901760 & e[0] | 65535 & e[1], e[3] << 16 | e[3] >>> 16, 4294901760 & e[1] | 65535 & e[2], e[0] << 16 | e[0] >>> 16, 4294901760 & e[2] | 65535 & e[3], e[1] << 16 | e[1] >>> 16, 4294901760 & e[3] | 65535 & e[0]], i = this._b = 0; i < 4; i++) c.call(this);
  13947. for (i = 0; i < 8; i++) r[i] ^= n[i + 4 & 7];
  13948. if (t) {
  13949. var h = (t = 16711935 & ((t = (e = t.words)[0]) << 8 | t >>> 24) | 4278255360 & (t << 24 | t >>> 8)) >>> 16 | 4294901760 & (e = 16711935 & ((e = e[1]) << 8 | e >>> 24) | 4278255360 & (e << 24 | e >>> 8)),
  13950. f = e << 16 | 65535 & t;
  13951. for (r[0] ^= t, r[1] ^= h, r[2] ^= e, r[3] ^= f, r[4] ^= t, r[5] ^= h, r[6] ^= e, r[7] ^= f, i = 0; i < 4; i++) c.call(this)
  13952. }
  13953. }, _doProcessBlock: function (e, t) {
  13954. var n = this._X;
  13955. c.call(this), i[0] = n[0] ^ n[5] >>> 16 ^ n[3] << 16, i[1] = n[2] ^ n[7] >>> 16 ^ n[5] << 16, i[2] = n[4] ^ n[1] >>> 16 ^ n[7] << 16, i[3] = n[6] ^ n[3] >>> 16 ^ n[1] << 16;
  13956. for (var r = 0; r < 4; r++) i[r] = 16711935 & (i[r] << 8 | i[r] >>> 24) | 4278255360 & (i[r] << 24 | i[r] >>> 8), e[t + r] ^= i[r]
  13957. }, blockSize: 4, ivSize: 2
  13958. });
  13959. function c() {
  13960. for (var e = this._X, t = this._C, n = 0; n < 8; n++) s[n] = t[n];
  13961. for (t[0] = t[0] + 1295307597 + this._b | 0, t[1] = t[1] + 3545052371 + (t[0] >>> 0 < s[0] >>> 0 ? 1 : 0) | 0, t[2] = t[2] + 886263092 + (t[1] >>> 0 < s[1] >>> 0 ? 1 : 0) | 0, t[3] = t[3] + 1295307597 + (t[2] >>> 0 < s[2] >>> 0 ? 1 : 0) | 0, t[4] = t[4] + 3545052371 + (t[3] >>> 0 < s[3] >>> 0 ? 1 : 0) | 0, t[5] = t[5] + 886263092 + (t[4] >>> 0 < s[4] >>> 0 ? 1 : 0) | 0, t[6] = t[6] + 1295307597 + (t[5] >>> 0 < s[5] >>> 0 ? 1 : 0) | 0, t[7] = t[7] + 3545052371 + (t[6] >>> 0 < s[6] >>> 0 ? 1 : 0) | 0, this._b = t[7] >>> 0 < s[7] >>> 0 ? 1 : 0, n = 0; n < 8; n++) {
  13962. var r = e[n] + t[n], i = 65535 & r, o = r >>> 16;
  13963. a[n] = ((i * i >>> 17) + i * o >>> 15) + o * o ^ ((4294901760 & r) * r | 0) + ((65535 & r) * r | 0)
  13964. }
  13965. e[0] = a[0] + (a[7] << 16 | a[7] >>> 16) + (a[6] << 16 | a[6] >>> 16) | 0, e[1] = a[1] + (a[0] << 8 | a[0] >>> 24) + a[7] | 0, e[2] = a[2] + (a[1] << 16 | a[1] >>> 16) + (a[0] << 16 | a[0] >>> 16) | 0, e[3] = a[3] + (a[2] << 8 | a[2] >>> 24) + a[1] | 0, e[4] = a[4] + (a[3] << 16 | a[3] >>> 16) + (a[2] << 16 | a[2] >>> 16) | 0, e[5] = a[5] + (a[4] << 8 | a[4] >>> 24) + a[3] | 0, e[6] = a[6] + (a[5] << 16 | a[5] >>> 16) + (a[4] << 16 | a[4] >>> 16) | 0, e[7] = a[7] + (a[6] << 8 | a[6] >>> 24) + a[5] | 0
  13966. }
  13967. e.RabbitLegacy = t._createHelper(r)
  13968. }(), n.RabbitLegacy)
  13969. }), Sr(function (e, t) {
  13970. e.exports = dh
  13971. })), _h = function (t, n, r, i) {
  13972. return "string" == typeof (t = "undefined" != typeof Buffer && Buffer.isBuffer(t) ? t.toString() : t) ? function (e, t, n, r) {
  13973. return t.xmlMode || t._useHtmlParser2 ? function (e, t) {
  13974. var n = new w(void 0, t);
  13975. return new va(n, t).end(e), n.root
  13976. }(e, t) : ta(e, t, n, r)
  13977. }(t, n, r, i) : (n = t, !Array.isArray(n) && O(n) ? n : (Bn(n, r = new v([])), r))
  13978. }, Eh = function (e) {
  13979. return function r(s, a, o) {
  13980. if (void 0 === o && (o = !0), null == s) throw new Error("cheerio.load() expects a string");
  13981. var c = rr(rr({}, n), i(a)), u = e(s, c, o, null), l = function (n) {
  13982. function r() {
  13983. return null !== n && n.apply(this, arguments) || this
  13984. }
  13985. return nr(r, n), r.prototype._make = function (e, t) {
  13986. return (e = h(e, t)).prevObject = this, e
  13987. }, r.prototype._parse = function (t, n, r, i) {
  13988. return e(t, n, r, i)
  13989. }, r.prototype._render = function (e) {
  13990. return function (e, t) {
  13991. return t.xmlMode || t._useHtmlParser2 ? W(e, t) : function (e) {
  13992. for (var t, n = ("length" in e ? e : [e]), r = 0; r < n.length; r += 1) O(s = n[r]) && (t = Array.prototype.splice).call.apply(t, ea([n, r, 1], s.children, !1));
  13993. for (var s, i = "", r = 0; r < n.length; r += 1) i += Qs(s = n[r], sa);
  13994. return i
  13995. }(e)
  13996. }(e, this.options)
  13997. }, r
  13998. }(er);
  13999. function h(t, n, r, s) {
  14000. if (void 0 === r && (r = u), t && Pe(t)) return t;
  14001. if (s = rr(rr({}, c), i(s)), (r = Pe(r = "string" == typeof r ? [e(r, s, !1, null)] : "length" in r ? r : [r]) ? r : new l(r, null, s))._root = r, !t) return new l(void 0, r, s);
  14002. var p = "string" == typeof t && Ue(t) ? e(t, s, !1, null).children : t.name || "root" === t.type || "text" === t.type || "comment" === t.type ? [t] : Array.isArray(t) ? t : void 0,
  14003. d = new l(p, r, s);
  14004. if (p) return d;
  14005. if ("string" != typeof t) throw new Error("Unexpected type of selector");
  14006. return p = t, (t = n ? "string" == typeof n ? Ue(n) ? new l([e(n, s, !1, null)], r, s) : (p = "".concat(n, " ").concat(p), r) : Pe(n) ? n : new l(Array.isArray(n) ? n : [n], r, s) : r) ? t.find(p) : d
  14007. }
  14008. return Object.assign(h, Me, {load: r, _root: u, _options: c, fn: l.prototype, prototype: l.prototype}), h
  14009. }
  14010. }(_h);
  14011. function Th(e, t) {
  14012. return Fa({path: e, json: t})
  14013. }
  14014. function Ah(e) {
  14015. return Fa(e)
  14016. }
  14017. function gh(e, t) {
  14018. return Bl(e, t)
  14019. }
  14020. var vh = ch, yh = fh, Sh = ph, Ch = mh, Nh = Eh([]), bh = De, Ih = Re, Oh = ke, kh = Le;
  14021. export {
  14022. Ch as Crypto,
  14023. yh as Uri,
  14024. Sh as _,
  14025. Nh as cheerio,
  14026. bh as contains,
  14027. vh as dayjs,
  14028. be as html,
  14029. gh as jinja2,
  14030. Th as jp,
  14031. Ah as jpo,
  14032. Eh as load,
  14033. Ih as merge,
  14034. Oh as parseHTML,
  14035. kh as root,
  14036. Oe as text,
  14037. Ie as xml
  14038. };