lib-generate-test-usersig-es.min.js 209 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217
  1. /*eslint-disable*/
  2. var e = "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {},
  3. t = [],
  4. r = [],
  5. n = "undefined" != typeof Uint8Array ? Uint8Array : Array,
  6. i = !1;
  7. function o() {
  8. i = !0;
  9. for (var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = 0, o = e.length; n < o; ++n) t[n] = e[n], r[e.charCodeAt(n)] = n;
  10. r["-".charCodeAt(0)] = 62, r["_".charCodeAt(0)] = 63;
  11. }
  12. function a(e, r, n) {
  13. for (var i, o, a = [], s = r; s < n; s += 3) i = (e[s] << 16) + (e[s + 1] << 8) + e[s + 2], a.push(t[(o = i) >> 18 & 63] + t[o >> 12 & 63] + t[o >> 6 & 63] + t[63 & o]);
  14. return a.join("");
  15. }
  16. function s(e) {
  17. var r;
  18. i || o();
  19. for (var n = e.length, s = n % 3, h = "", l = [], f = 0, c = n - s; f < c; f += 16383) l.push(a(e, f, f + 16383 > c ? c : f + 16383));
  20. return 1 === s ? (r = e[n - 1], h += t[r >> 2], h += t[r << 4 & 63], h += "==") : 2 === s && (r = (e[n - 2] << 8) + e[n - 1], h += t[r >> 10], h += t[r >> 4 & 63], h += t[r << 2 & 63], h += "="), l.push(h), l.join("");
  21. }
  22. function h(e, t, r, n, i) {
  23. var o,
  24. a,
  25. s = 8 * i - n - 1,
  26. h = (1 << s) - 1,
  27. l = h >> 1,
  28. f = -7,
  29. c = r ? i - 1 : 0,
  30. u = r ? -1 : 1,
  31. d = e[t + c];
  32. for (c += u, o = d & (1 << -f) - 1, d >>= -f, f += s; f > 0; o = 256 * o + e[t + c], c += u, f -= 8);
  33. for (a = o & (1 << -f) - 1, o >>= -f, f += n; f > 0; a = 256 * a + e[t + c], c += u, f -= 8);
  34. if (0 === o) o = 1 - l;else {
  35. if (o === h) return a ? NaN : 1 / 0 * (d ? -1 : 1);
  36. a += Math.pow(2, n), o -= l;
  37. }
  38. return (d ? -1 : 1) * a * Math.pow(2, o - n);
  39. }
  40. function l(e, t, r, n, i, o) {
  41. var a,
  42. s,
  43. h,
  44. l = 8 * o - i - 1,
  45. f = (1 << l) - 1,
  46. c = f >> 1,
  47. u = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
  48. d = n ? 0 : o - 1,
  49. p = n ? 1 : -1,
  50. _ = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;
  51. for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, a = f) : (a = Math.floor(Math.log(t) / Math.LN2), t * (h = Math.pow(2, -a)) < 1 && (a--, h *= 2), (t += a + c >= 1 ? u / h : u * Math.pow(2, 1 - c)) * h >= 2 && (a++, h /= 2), a + c >= f ? (s = 0, a = f) : a + c >= 1 ? (s = (t * h - 1) * Math.pow(2, i), a += c) : (s = t * Math.pow(2, c - 1) * Math.pow(2, i), a = 0)); i >= 8; e[r + d] = 255 & s, d += p, s /= 256, i -= 8);
  52. for (a = a << i | s, l += i; l > 0; e[r + d] = 255 & a, d += p, a /= 256, l -= 8);
  53. e[r + d - p] |= 128 * _;
  54. }
  55. var f = {}.toString,
  56. c = Array.isArray || function (e) {
  57. return "[object Array]" == f.call(e);
  58. };
  59. function u() {
  60. return p.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
  61. }
  62. function d(e, t) {
  63. if (u() < t) throw new RangeError("Invalid typed array length");
  64. return p.TYPED_ARRAY_SUPPORT ? (e = new Uint8Array(t)).__proto__ = p.prototype : (null === e && (e = new p(t)), e.length = t), e;
  65. }
  66. function p(e, t, r) {
  67. if (!(p.TYPED_ARRAY_SUPPORT || this instanceof p)) return new p(e, t, r);
  68. if ("number" == typeof e) {
  69. if ("string" == typeof t) throw new Error("If encoding is specified then the first argument must be a string");
  70. return v(this, e);
  71. }
  72. return _(this, e, t, r);
  73. }
  74. function _(e, t, r, n) {
  75. if ("number" == typeof t) throw new TypeError('"value" argument must not be a number');
  76. return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer ? function (e, t, r, n) {
  77. if (t.byteLength, r < 0 || t.byteLength < r) throw new RangeError("'offset' is out of bounds");
  78. if (t.byteLength < r + (n || 0)) throw new RangeError("'length' is out of bounds");
  79. t = void 0 === r && void 0 === n ? new Uint8Array(t) : void 0 === n ? new Uint8Array(t, r) : new Uint8Array(t, r, n);
  80. p.TYPED_ARRAY_SUPPORT ? (e = t).__proto__ = p.prototype : e = w(e, t);
  81. return e;
  82. }(e, t, r, n) : "string" == typeof t ? function (e, t, r) {
  83. "string" == typeof r && "" !== r || (r = "utf8");
  84. if (!p.isEncoding(r)) throw new TypeError('"encoding" must be a valid string encoding');
  85. var n = 0 | m(t, r),
  86. i = (e = d(e, n)).write(t, r);
  87. i !== n && (e = e.slice(0, i));
  88. return e;
  89. }(e, t, r) : function (e, t) {
  90. if (y(t)) {
  91. var r = 0 | b(t.length);
  92. return 0 === (e = d(e, r)).length ? e : (t.copy(e, 0, 0, r), e);
  93. }
  94. if (t) {
  95. if ("undefined" != typeof ArrayBuffer && t.buffer instanceof ArrayBuffer || "length" in t) return "number" != typeof t.length || (n = t.length) != n ? d(e, 0) : w(e, t);
  96. if ("Buffer" === t.type && c(t.data)) return w(e, t.data);
  97. }
  98. var n;
  99. throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
  100. }(e, t);
  101. }
  102. function g(e) {
  103. if ("number" != typeof e) throw new TypeError('"size" argument must be a number');
  104. if (e < 0) throw new RangeError('"size" argument must not be negative');
  105. }
  106. function v(e, t) {
  107. if (g(t), e = d(e, t < 0 ? 0 : 0 | b(t)), !p.TYPED_ARRAY_SUPPORT) for (var r = 0; r < t; ++r) e[r] = 0;
  108. return e;
  109. }
  110. function w(e, t) {
  111. var r = t.length < 0 ? 0 : 0 | b(t.length);
  112. e = d(e, r);
  113. for (var n = 0; n < r; n += 1) e[n] = 255 & t[n];
  114. return e;
  115. }
  116. function b(e) {
  117. if (e >= u()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u().toString(16) + " bytes");
  118. return 0 | e;
  119. }
  120. function y(e) {
  121. return !(null == e || !e._isBuffer);
  122. }
  123. function m(e, t) {
  124. if (y(e)) return e.length;
  125. if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(e) || e instanceof ArrayBuffer)) return e.byteLength;
  126. "string" != typeof e && (e = "" + e);
  127. var r = e.length;
  128. if (0 === r) return 0;
  129. for (var n = !1;;) switch (t) {
  130. case "ascii":
  131. case "latin1":
  132. case "binary":
  133. return r;
  134. case "utf8":
  135. case "utf-8":
  136. case void 0:
  137. return q(e).length;
  138. case "ucs2":
  139. case "ucs-2":
  140. case "utf16le":
  141. case "utf-16le":
  142. return 2 * r;
  143. case "hex":
  144. return r >>> 1;
  145. case "base64":
  146. return V(e).length;
  147. default:
  148. if (n) return q(e).length;
  149. t = ("" + t).toLowerCase(), n = !0;
  150. }
  151. }
  152. function k(e, t, r) {
  153. var n = !1;
  154. if ((void 0 === t || t < 0) && (t = 0), t > this.length) return "";
  155. if ((void 0 === r || r > this.length) && (r = this.length), r <= 0) return "";
  156. if ((r >>>= 0) <= (t >>>= 0)) return "";
  157. for (e || (e = "utf8");;) switch (e) {
  158. case "hex":
  159. return O(this, t, r);
  160. case "utf8":
  161. case "utf-8":
  162. return C(this, t, r);
  163. case "ascii":
  164. return I(this, t, r);
  165. case "latin1":
  166. case "binary":
  167. return P(this, t, r);
  168. case "base64":
  169. return M(this, t, r);
  170. case "ucs2":
  171. case "ucs-2":
  172. case "utf16le":
  173. case "utf-16le":
  174. return U(this, t, r);
  175. default:
  176. if (n) throw new TypeError("Unknown encoding: " + e);
  177. e = (e + "").toLowerCase(), n = !0;
  178. }
  179. }
  180. function E(e, t, r) {
  181. var n = e[t];
  182. e[t] = e[r], e[r] = n;
  183. }
  184. function S(e, t, r, n, i) {
  185. if (0 === e.length) return -1;
  186. if ("string" == typeof r ? (n = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), r = +r, isNaN(r) && (r = i ? 0 : e.length - 1), r < 0 && (r = e.length + r), r >= e.length) {
  187. if (i) return -1;
  188. r = e.length - 1;
  189. } else if (r < 0) {
  190. if (!i) return -1;
  191. r = 0;
  192. }
  193. if ("string" == typeof t && (t = p.from(t, n)), y(t)) return 0 === t.length ? -1 : x(e, t, r, n, i);
  194. if ("number" == typeof t) return t &= 255, p.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? i ? Uint8Array.prototype.indexOf.call(e, t, r) : Uint8Array.prototype.lastIndexOf.call(e, t, r) : x(e, [t], r, n, i);
  195. throw new TypeError("val must be string, number or Buffer");
  196. }
  197. function x(e, t, r, n, i) {
  198. var o,
  199. a = 1,
  200. s = e.length,
  201. h = t.length;
  202. if (void 0 !== n && ("ucs2" === (n = String(n).toLowerCase()) || "ucs-2" === n || "utf16le" === n || "utf-16le" === n)) {
  203. if (e.length < 2 || t.length < 2) return -1;
  204. a = 2, s /= 2, h /= 2, r /= 2;
  205. }
  206. function l(e, t) {
  207. return 1 === a ? e[t] : e.readUInt16BE(t * a);
  208. }
  209. if (i) {
  210. var f = -1;
  211. for (o = r; o < s; o++) if (l(e, o) === l(t, -1 === f ? 0 : o - f)) {
  212. if (-1 === f && (f = o), o - f + 1 === h) return f * a;
  213. } else -1 !== f && (o -= o - f), f = -1;
  214. } else for (r + h > s && (r = s - h), o = r; o >= 0; o--) {
  215. for (var c = !0, u = 0; u < h; u++) if (l(e, o + u) !== l(t, u)) {
  216. c = !1;
  217. break;
  218. }
  219. if (c) return o;
  220. }
  221. return -1;
  222. }
  223. function R(e, t, r, n) {
  224. r = Number(r) || 0;
  225. var i = e.length - r;
  226. n ? (n = Number(n)) > i && (n = i) : n = i;
  227. var o = t.length;
  228. if (o % 2 != 0) throw new TypeError("Invalid hex string");
  229. n > o / 2 && (n = o / 2);
  230. for (var a = 0; a < n; ++a) {
  231. var s = parseInt(t.substr(2 * a, 2), 16);
  232. if (isNaN(s)) return a;
  233. e[r + a] = s;
  234. }
  235. return a;
  236. }
  237. function A(e, t, r, n) {
  238. return G(q(t, e.length - r), e, r, n);
  239. }
  240. function B(e, t, r, n) {
  241. return G(function (e) {
  242. for (var t = [], r = 0; r < e.length; ++r) t.push(255 & e.charCodeAt(r));
  243. return t;
  244. }(t), e, r, n);
  245. }
  246. function z(e, t, r, n) {
  247. return B(e, t, r, n);
  248. }
  249. function L(e, t, r, n) {
  250. return G(V(t), e, r, n);
  251. }
  252. function T(e, t, r, n) {
  253. return G(function (e, t) {
  254. for (var r, n, i, o = [], a = 0; a < e.length && !((t -= 2) < 0); ++a) r = e.charCodeAt(a), n = r >> 8, i = r % 256, o.push(i), o.push(n);
  255. return o;
  256. }(t, e.length - r), e, r, n);
  257. }
  258. function M(e, t, r) {
  259. return 0 === t && r === e.length ? s(e) : s(e.slice(t, r));
  260. }
  261. function C(e, t, r) {
  262. r = Math.min(e.length, r);
  263. for (var n = [], i = t; i < r;) {
  264. var o,
  265. a,
  266. s,
  267. h,
  268. l = e[i],
  269. f = null,
  270. c = l > 239 ? 4 : l > 223 ? 3 : l > 191 ? 2 : 1;
  271. if (i + c <= r) switch (c) {
  272. case 1:
  273. l < 128 && (f = l);
  274. break;
  275. case 2:
  276. 128 == (192 & (o = e[i + 1])) && (h = (31 & l) << 6 | 63 & o) > 127 && (f = h);
  277. break;
  278. case 3:
  279. o = e[i + 1], a = e[i + 2], 128 == (192 & o) && 128 == (192 & a) && (h = (15 & l) << 12 | (63 & o) << 6 | 63 & a) > 2047 && (h < 55296 || h > 57343) && (f = h);
  280. break;
  281. case 4:
  282. o = e[i + 1], a = e[i + 2], s = e[i + 3], 128 == (192 & o) && 128 == (192 & a) && 128 == (192 & s) && (h = (15 & l) << 18 | (63 & o) << 12 | (63 & a) << 6 | 63 & s) > 65535 && h < 1114112 && (f = h);
  283. }
  284. null === f ? (f = 65533, c = 1) : f > 65535 && (f -= 65536, n.push(f >>> 10 & 1023 | 55296), f = 56320 | 1023 & f), n.push(f), i += c;
  285. }
  286. return function (e) {
  287. var t = e.length;
  288. if (t <= D) return String.fromCharCode.apply(String, e);
  289. var r = "",
  290. n = 0;
  291. for (; n < t;) r += String.fromCharCode.apply(String, e.slice(n, n += D));
  292. return r;
  293. }(n);
  294. }
  295. p.TYPED_ARRAY_SUPPORT = void 0 === e.TYPED_ARRAY_SUPPORT || e.TYPED_ARRAY_SUPPORT, p.poolSize = 8192, p._augment = function (e) {
  296. return e.__proto__ = p.prototype, e;
  297. }, p.from = function (e, t, r) {
  298. return _(null, e, t, r);
  299. }, p.TYPED_ARRAY_SUPPORT && (p.prototype.__proto__ = Uint8Array.prototype, p.__proto__ = Uint8Array), p.alloc = function (e, t, r) {
  300. return function (e, t, r, n) {
  301. return g(t), t <= 0 ? d(e, t) : void 0 !== r ? "string" == typeof n ? d(e, t).fill(r, n) : d(e, t).fill(r) : d(e, t);
  302. }(null, e, t, r);
  303. }, p.allocUnsafe = function (e) {
  304. return v(null, e);
  305. }, p.allocUnsafeSlow = function (e) {
  306. return v(null, e);
  307. }, p.isBuffer = $, p.compare = function (e, t) {
  308. if (!y(e) || !y(t)) throw new TypeError("Arguments must be Buffers");
  309. if (e === t) return 0;
  310. for (var r = e.length, n = t.length, i = 0, o = Math.min(r, n); i < o; ++i) if (e[i] !== t[i]) {
  311. r = e[i], n = t[i];
  312. break;
  313. }
  314. return r < n ? -1 : n < r ? 1 : 0;
  315. }, p.isEncoding = function (e) {
  316. switch (String(e).toLowerCase()) {
  317. case "hex":
  318. case "utf8":
  319. case "utf-8":
  320. case "ascii":
  321. case "latin1":
  322. case "binary":
  323. case "base64":
  324. case "ucs2":
  325. case "ucs-2":
  326. case "utf16le":
  327. case "utf-16le":
  328. return !0;
  329. default:
  330. return !1;
  331. }
  332. }, p.concat = function (e, t) {
  333. if (!c(e)) throw new TypeError('"list" argument must be an Array of Buffers');
  334. if (0 === e.length) return p.alloc(0);
  335. var r;
  336. if (void 0 === t) for (t = 0, r = 0; r < e.length; ++r) t += e[r].length;
  337. var n = p.allocUnsafe(t),
  338. i = 0;
  339. for (r = 0; r < e.length; ++r) {
  340. var o = e[r];
  341. if (!y(o)) throw new TypeError('"list" argument must be an Array of Buffers');
  342. o.copy(n, i), i += o.length;
  343. }
  344. return n;
  345. }, p.byteLength = m, p.prototype._isBuffer = !0, p.prototype.swap16 = function () {
  346. var e = this.length;
  347. if (e % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
  348. for (var t = 0; t < e; t += 2) E(this, t, t + 1);
  349. return this;
  350. }, p.prototype.swap32 = function () {
  351. var e = this.length;
  352. if (e % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
  353. for (var t = 0; t < e; t += 4) E(this, t, t + 3), E(this, t + 1, t + 2);
  354. return this;
  355. }, p.prototype.swap64 = function () {
  356. var e = this.length;
  357. if (e % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
  358. for (var t = 0; t < e; t += 8) E(this, t, t + 7), E(this, t + 1, t + 6), E(this, t + 2, t + 5), E(this, t + 3, t + 4);
  359. return this;
  360. }, p.prototype.toString = function () {
  361. var e = 0 | this.length;
  362. return 0 === e ? "" : 0 === arguments.length ? C(this, 0, e) : k.apply(this, arguments);
  363. }, p.prototype.equals = function (e) {
  364. if (!y(e)) throw new TypeError("Argument must be a Buffer");
  365. return this === e || 0 === p.compare(this, e);
  366. }, p.prototype.inspect = function () {
  367. var e = "";
  368. return this.length > 0 && (e = this.toString("hex", 0, 50).match(/.{2}/g).join(" "), this.length > 50 && (e += " ... ")), "<Buffer " + e + ">";
  369. }, p.prototype.compare = function (e, t, r, n, i) {
  370. if (!y(e)) throw new TypeError("Argument must be a Buffer");
  371. if (void 0 === t && (t = 0), void 0 === r && (r = e ? e.length : 0), void 0 === n && (n = 0), void 0 === i && (i = this.length), t < 0 || r > e.length || n < 0 || i > this.length) throw new RangeError("out of range index");
  372. if (n >= i && t >= r) return 0;
  373. if (n >= i) return -1;
  374. if (t >= r) return 1;
  375. if (this === e) return 0;
  376. for (var o = (i >>>= 0) - (n >>>= 0), a = (r >>>= 0) - (t >>>= 0), s = Math.min(o, a), h = this.slice(n, i), l = e.slice(t, r), f = 0; f < s; ++f) if (h[f] !== l[f]) {
  377. o = h[f], a = l[f];
  378. break;
  379. }
  380. return o < a ? -1 : a < o ? 1 : 0;
  381. }, p.prototype.includes = function (e, t, r) {
  382. return -1 !== this.indexOf(e, t, r);
  383. }, p.prototype.indexOf = function (e, t, r) {
  384. return S(this, e, t, r, !0);
  385. }, p.prototype.lastIndexOf = function (e, t, r) {
  386. return S(this, e, t, r, !1);
  387. }, p.prototype.write = function (e, t, r, n) {
  388. if (void 0 === t) n = "utf8", r = this.length, t = 0;else if (void 0 === r && "string" == typeof t) n = t, r = this.length, t = 0;else {
  389. if (!isFinite(t)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
  390. t |= 0, isFinite(r) ? (r |= 0, void 0 === n && (n = "utf8")) : (n = r, r = void 0);
  391. }
  392. var i = this.length - t;
  393. if ((void 0 === r || r > i) && (r = i), e.length > 0 && (r < 0 || t < 0) || t > this.length) throw new RangeError("Attempt to write outside buffer bounds");
  394. n || (n = "utf8");
  395. for (var o = !1;;) switch (n) {
  396. case "hex":
  397. return R(this, e, t, r);
  398. case "utf8":
  399. case "utf-8":
  400. return A(this, e, t, r);
  401. case "ascii":
  402. return B(this, e, t, r);
  403. case "latin1":
  404. case "binary":
  405. return z(this, e, t, r);
  406. case "base64":
  407. return L(this, e, t, r);
  408. case "ucs2":
  409. case "ucs-2":
  410. case "utf16le":
  411. case "utf-16le":
  412. return T(this, e, t, r);
  413. default:
  414. if (o) throw new TypeError("Unknown encoding: " + n);
  415. n = ("" + n).toLowerCase(), o = !0;
  416. }
  417. }, p.prototype.toJSON = function () {
  418. return {
  419. type: "Buffer",
  420. data: Array.prototype.slice.call(this._arr || this, 0)
  421. };
  422. };
  423. var D = 4096;
  424. function I(e, t, r) {
  425. var n = "";
  426. r = Math.min(e.length, r);
  427. for (var i = t; i < r; ++i) n += String.fromCharCode(127 & e[i]);
  428. return n;
  429. }
  430. function P(e, t, r) {
  431. var n = "";
  432. r = Math.min(e.length, r);
  433. for (var i = t; i < r; ++i) n += String.fromCharCode(e[i]);
  434. return n;
  435. }
  436. function O(e, t, r) {
  437. var n = e.length;
  438. (!t || t < 0) && (t = 0), (!r || r < 0 || r > n) && (r = n);
  439. for (var i = "", o = t; o < r; ++o) i += X(e[o]);
  440. return i;
  441. }
  442. function U(e, t, r) {
  443. for (var n = e.slice(t, r), i = "", o = 0; o < n.length; o += 2) i += String.fromCharCode(n[o] + 256 * n[o + 1]);
  444. return i;
  445. }
  446. function H(e, t, r) {
  447. if (e % 1 != 0 || e < 0) throw new RangeError("offset is not uint");
  448. if (e + t > r) throw new RangeError("Trying to access beyond buffer length");
  449. }
  450. function F(e, t, r, n, i, o) {
  451. if (!y(e)) throw new TypeError('"buffer" argument must be a Buffer instance');
  452. if (t > i || t < o) throw new RangeError('"value" argument is out of bounds');
  453. if (r + n > e.length) throw new RangeError("Index out of range");
  454. }
  455. function N(e, t, r, n) {
  456. t < 0 && (t = 65535 + t + 1);
  457. for (var i = 0, o = Math.min(e.length - r, 2); i < o; ++i) e[r + i] = (t & 255 << 8 * (n ? i : 1 - i)) >>> 8 * (n ? i : 1 - i);
  458. }
  459. function Z(e, t, r, n) {
  460. t < 0 && (t = 4294967295 + t + 1);
  461. for (var i = 0, o = Math.min(e.length - r, 4); i < o; ++i) e[r + i] = t >>> 8 * (n ? i : 3 - i) & 255;
  462. }
  463. function j(e, t, r, n, i, o) {
  464. if (r + n > e.length) throw new RangeError("Index out of range");
  465. if (r < 0) throw new RangeError("Index out of range");
  466. }
  467. function W(e, t, r, n, i) {
  468. return i || j(e, 0, r, 4), l(e, t, r, n, 23, 4), r + 4;
  469. }
  470. function Y(e, t, r, n, i) {
  471. return i || j(e, 0, r, 8), l(e, t, r, n, 52, 8), r + 8;
  472. }
  473. p.prototype.slice = function (e, t) {
  474. var r,
  475. n = this.length;
  476. if ((e = ~~e) < 0 ? (e += n) < 0 && (e = 0) : e > n && (e = n), (t = void 0 === t ? n : ~~t) < 0 ? (t += n) < 0 && (t = 0) : t > n && (t = n), t < e && (t = e), p.TYPED_ARRAY_SUPPORT) (r = this.subarray(e, t)).__proto__ = p.prototype;else {
  477. var i = t - e;
  478. r = new p(i, void 0);
  479. for (var o = 0; o < i; ++o) r[o] = this[o + e];
  480. }
  481. return r;
  482. }, p.prototype.readUIntLE = function (e, t, r) {
  483. e |= 0, t |= 0, r || H(e, t, this.length);
  484. for (var n = this[e], i = 1, o = 0; ++o < t && (i *= 256);) n += this[e + o] * i;
  485. return n;
  486. }, p.prototype.readUIntBE = function (e, t, r) {
  487. e |= 0, t |= 0, r || H(e, t, this.length);
  488. for (var n = this[e + --t], i = 1; t > 0 && (i *= 256);) n += this[e + --t] * i;
  489. return n;
  490. }, p.prototype.readUInt8 = function (e, t) {
  491. return t || H(e, 1, this.length), this[e];
  492. }, p.prototype.readUInt16LE = function (e, t) {
  493. return t || H(e, 2, this.length), this[e] | this[e + 1] << 8;
  494. }, p.prototype.readUInt16BE = function (e, t) {
  495. return t || H(e, 2, this.length), this[e] << 8 | this[e + 1];
  496. }, p.prototype.readUInt32LE = function (e, t) {
  497. return t || H(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3];
  498. }, p.prototype.readUInt32BE = function (e, t) {
  499. return t || H(e, 4, this.length), 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
  500. }, p.prototype.readIntLE = function (e, t, r) {
  501. e |= 0, t |= 0, r || H(e, t, this.length);
  502. for (var n = this[e], i = 1, o = 0; ++o < t && (i *= 256);) n += this[e + o] * i;
  503. return n >= (i *= 128) && (n -= Math.pow(2, 8 * t)), n;
  504. }, p.prototype.readIntBE = function (e, t, r) {
  505. e |= 0, t |= 0, r || H(e, t, this.length);
  506. for (var n = t, i = 1, o = this[e + --n]; n > 0 && (i *= 256);) o += this[e + --n] * i;
  507. return o >= (i *= 128) && (o -= Math.pow(2, 8 * t)), o;
  508. }, p.prototype.readInt8 = function (e, t) {
  509. return t || H(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e];
  510. }, p.prototype.readInt16LE = function (e, t) {
  511. t || H(e, 2, this.length);
  512. var r = this[e] | this[e + 1] << 8;
  513. return 32768 & r ? 4294901760 | r : r;
  514. }, p.prototype.readInt16BE = function (e, t) {
  515. t || H(e, 2, this.length);
  516. var r = this[e + 1] | this[e] << 8;
  517. return 32768 & r ? 4294901760 | r : r;
  518. }, p.prototype.readInt32LE = function (e, t) {
  519. return t || H(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
  520. }, p.prototype.readInt32BE = function (e, t) {
  521. return t || H(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
  522. }, p.prototype.readFloatLE = function (e, t) {
  523. return t || H(e, 4, this.length), h(this, e, !0, 23, 4);
  524. }, p.prototype.readFloatBE = function (e, t) {
  525. return t || H(e, 4, this.length), h(this, e, !1, 23, 4);
  526. }, p.prototype.readDoubleLE = function (e, t) {
  527. return t || H(e, 8, this.length), h(this, e, !0, 52, 8);
  528. }, p.prototype.readDoubleBE = function (e, t) {
  529. return t || H(e, 8, this.length), h(this, e, !1, 52, 8);
  530. }, p.prototype.writeUIntLE = function (e, t, r, n) {
  531. (e = +e, t |= 0, r |= 0, n) || F(this, e, t, r, Math.pow(2, 8 * r) - 1, 0);
  532. var i = 1,
  533. o = 0;
  534. for (this[t] = 255 & e; ++o < r && (i *= 256);) this[t + o] = e / i & 255;
  535. return t + r;
  536. }, p.prototype.writeUIntBE = function (e, t, r, n) {
  537. (e = +e, t |= 0, r |= 0, n) || F(this, e, t, r, Math.pow(2, 8 * r) - 1, 0);
  538. var i = r - 1,
  539. o = 1;
  540. for (this[t + i] = 255 & e; --i >= 0 && (o *= 256);) this[t + i] = e / o & 255;
  541. return t + r;
  542. }, p.prototype.writeUInt8 = function (e, t, r) {
  543. return e = +e, t |= 0, r || F(this, e, t, 1, 255, 0), p.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[t] = 255 & e, t + 1;
  544. }, p.prototype.writeUInt16LE = function (e, t, r) {
  545. return e = +e, t |= 0, r || F(this, e, t, 2, 65535, 0), p.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : N(this, e, t, !0), t + 2;
  546. }, p.prototype.writeUInt16BE = function (e, t, r) {
  547. return e = +e, t |= 0, r || F(this, e, t, 2, 65535, 0), p.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : N(this, e, t, !1), t + 2;
  548. }, p.prototype.writeUInt32LE = function (e, t, r) {
  549. return e = +e, t |= 0, r || F(this, e, t, 4, 4294967295, 0), p.TYPED_ARRAY_SUPPORT ? (this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = 255 & e) : Z(this, e, t, !0), t + 4;
  550. }, p.prototype.writeUInt32BE = function (e, t, r) {
  551. return e = +e, t |= 0, r || F(this, e, t, 4, 4294967295, 0), p.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : Z(this, e, t, !1), t + 4;
  552. }, p.prototype.writeIntLE = function (e, t, r, n) {
  553. if (e = +e, t |= 0, !n) {
  554. var i = Math.pow(2, 8 * r - 1);
  555. F(this, e, t, r, i - 1, -i);
  556. }
  557. var o = 0,
  558. a = 1,
  559. s = 0;
  560. for (this[t] = 255 & e; ++o < r && (a *= 256);) e < 0 && 0 === s && 0 !== this[t + o - 1] && (s = 1), this[t + o] = (e / a >> 0) - s & 255;
  561. return t + r;
  562. }, p.prototype.writeIntBE = function (e, t, r, n) {
  563. if (e = +e, t |= 0, !n) {
  564. var i = Math.pow(2, 8 * r - 1);
  565. F(this, e, t, r, i - 1, -i);
  566. }
  567. var o = r - 1,
  568. a = 1,
  569. s = 0;
  570. for (this[t + o] = 255 & e; --o >= 0 && (a *= 256);) e < 0 && 0 === s && 0 !== this[t + o + 1] && (s = 1), this[t + o] = (e / a >> 0) - s & 255;
  571. return t + r;
  572. }, p.prototype.writeInt8 = function (e, t, r) {
  573. return e = +e, t |= 0, r || F(this, e, t, 1, 127, -128), p.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[t] = 255 & e, t + 1;
  574. }, p.prototype.writeInt16LE = function (e, t, r) {
  575. return e = +e, t |= 0, r || F(this, e, t, 2, 32767, -32768), p.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : N(this, e, t, !0), t + 2;
  576. }, p.prototype.writeInt16BE = function (e, t, r) {
  577. return e = +e, t |= 0, r || F(this, e, t, 2, 32767, -32768), p.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : N(this, e, t, !1), t + 2;
  578. }, p.prototype.writeInt32LE = function (e, t, r) {
  579. return e = +e, t |= 0, r || F(this, e, t, 4, 2147483647, -2147483648), p.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24) : Z(this, e, t, !0), t + 4;
  580. }, p.prototype.writeInt32BE = function (e, t, r) {
  581. return e = +e, t |= 0, r || F(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), p.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : Z(this, e, t, !1), t + 4;
  582. }, p.prototype.writeFloatLE = function (e, t, r) {
  583. return W(this, e, t, !0, r);
  584. }, p.prototype.writeFloatBE = function (e, t, r) {
  585. return W(this, e, t, !1, r);
  586. }, p.prototype.writeDoubleLE = function (e, t, r) {
  587. return Y(this, e, t, !0, r);
  588. }, p.prototype.writeDoubleBE = function (e, t, r) {
  589. return Y(this, e, t, !1, r);
  590. }, p.prototype.copy = function (e, t, r, n) {
  591. if (r || (r = 0), n || 0 === n || (n = this.length), t >= e.length && (t = e.length), t || (t = 0), n > 0 && n < r && (n = r), n === r) return 0;
  592. if (0 === e.length || 0 === this.length) return 0;
  593. if (t < 0) throw new RangeError("targetStart out of bounds");
  594. if (r < 0 || r >= this.length) throw new RangeError("sourceStart out of bounds");
  595. if (n < 0) throw new RangeError("sourceEnd out of bounds");
  596. n > this.length && (n = this.length), e.length - t < n - r && (n = e.length - t + r);
  597. var i,
  598. o = n - r;
  599. if (this === e && r < t && t < n) for (i = o - 1; i >= 0; --i) e[i + t] = this[i + r];else if (o < 1e3 || !p.TYPED_ARRAY_SUPPORT) for (i = 0; i < o; ++i) e[i + t] = this[i + r];else Uint8Array.prototype.set.call(e, this.subarray(r, r + o), t);
  600. return o;
  601. }, p.prototype.fill = function (e, t, r, n) {
  602. if ("string" == typeof e) {
  603. if ("string" == typeof t ? (n = t, t = 0, r = this.length) : "string" == typeof r && (n = r, r = this.length), 1 === e.length) {
  604. var i = e.charCodeAt(0);
  605. i < 256 && (e = i);
  606. }
  607. if (void 0 !== n && "string" != typeof n) throw new TypeError("encoding must be a string");
  608. if ("string" == typeof n && !p.isEncoding(n)) throw new TypeError("Unknown encoding: " + n);
  609. } else "number" == typeof e && (e &= 255);
  610. if (t < 0 || this.length < t || this.length < r) throw new RangeError("Out of range index");
  611. if (r <= t) return this;
  612. var o;
  613. if (t >>>= 0, r = void 0 === r ? this.length : r >>> 0, e || (e = 0), "number" == typeof e) for (o = t; o < r; ++o) this[o] = e;else {
  614. var a = y(e) ? e : q(new p(e, n).toString()),
  615. s = a.length;
  616. for (o = 0; o < r - t; ++o) this[o + t] = a[o % s];
  617. }
  618. return this;
  619. };
  620. var K = /[^+\/0-9A-Za-z-_]/g;
  621. function X(e) {
  622. return e < 16 ? "0" + e.toString(16) : e.toString(16);
  623. }
  624. function q(e, t) {
  625. var r;
  626. t = t || 1 / 0;
  627. for (var n = e.length, i = null, o = [], a = 0; a < n; ++a) {
  628. if ((r = e.charCodeAt(a)) > 55295 && r < 57344) {
  629. if (!i) {
  630. if (r > 56319) {
  631. (t -= 3) > -1 && o.push(239, 191, 189);
  632. continue;
  633. }
  634. if (a + 1 === n) {
  635. (t -= 3) > -1 && o.push(239, 191, 189);
  636. continue;
  637. }
  638. i = r;
  639. continue;
  640. }
  641. if (r < 56320) {
  642. (t -= 3) > -1 && o.push(239, 191, 189), i = r;
  643. continue;
  644. }
  645. r = 65536 + (i - 55296 << 10 | r - 56320);
  646. } else i && (t -= 3) > -1 && o.push(239, 191, 189);
  647. if (i = null, r < 128) {
  648. if ((t -= 1) < 0) break;
  649. o.push(r);
  650. } else if (r < 2048) {
  651. if ((t -= 2) < 0) break;
  652. o.push(r >> 6 | 192, 63 & r | 128);
  653. } else if (r < 65536) {
  654. if ((t -= 3) < 0) break;
  655. o.push(r >> 12 | 224, r >> 6 & 63 | 128, 63 & r | 128);
  656. } else {
  657. if (!(r < 1114112)) throw new Error("Invalid code point");
  658. if ((t -= 4) < 0) break;
  659. o.push(r >> 18 | 240, r >> 12 & 63 | 128, r >> 6 & 63 | 128, 63 & r | 128);
  660. }
  661. }
  662. return o;
  663. }
  664. function V(e) {
  665. return function (e) {
  666. var t, a, s, h, l, f;
  667. i || o();
  668. var c = e.length;
  669. if (c % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
  670. l = "=" === e[c - 2] ? 2 : "=" === e[c - 1] ? 1 : 0, f = new n(3 * c / 4 - l), s = l > 0 ? c - 4 : c;
  671. var u = 0;
  672. for (t = 0, a = 0; t < s; t += 4, a += 3) h = r[e.charCodeAt(t)] << 18 | r[e.charCodeAt(t + 1)] << 12 | r[e.charCodeAt(t + 2)] << 6 | r[e.charCodeAt(t + 3)], f[u++] = h >> 16 & 255, f[u++] = h >> 8 & 255, f[u++] = 255 & h;
  673. return 2 === l ? (h = r[e.charCodeAt(t)] << 2 | r[e.charCodeAt(t + 1)] >> 4, f[u++] = 255 & h) : 1 === l && (h = r[e.charCodeAt(t)] << 10 | r[e.charCodeAt(t + 1)] << 4 | r[e.charCodeAt(t + 2)] >> 2, f[u++] = h >> 8 & 255, f[u++] = 255 & h), f;
  674. }(function (e) {
  675. if ((e = function (e) {
  676. return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "");
  677. }(e).replace(K, "")).length < 2) return "";
  678. for (; e.length % 4 != 0;) e += "=";
  679. return e;
  680. }(e));
  681. }
  682. function G(e, t, r, n) {
  683. for (var i = 0; i < n && !(i + r >= t.length || i >= e.length); ++i) t[i + r] = e[i];
  684. return i;
  685. }
  686. function $(e) {
  687. return null != e && (!!e._isBuffer || J(e) || function (e) {
  688. return "function" == typeof e.readFloatLE && "function" == typeof e.slice && J(e.slice(0, 0));
  689. }(e));
  690. }
  691. function J(e) {
  692. return !!e.constructor && "function" == typeof e.constructor.isBuffer && e.constructor.isBuffer(e);
  693. }
  694. "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
  695. function Q(e, t) {
  696. return e(t = {
  697. exports: {}
  698. }, t.exports), t.exports;
  699. }
  700. var ee = Q(function (e, t) {
  701. var r;
  702. e.exports = (r = r || function (e, t) {
  703. var r = Object.create || function () {
  704. function e() {}
  705. return function (t) {
  706. var r;
  707. return e.prototype = t, r = new e(), e.prototype = null, r;
  708. };
  709. }(),
  710. n = {},
  711. i = n.lib = {},
  712. o = i.Base = {
  713. extend: function (e) {
  714. var t = r(this);
  715. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  716. t.$super.init.apply(this, arguments);
  717. }), t.init.prototype = t, t.$super = this, t;
  718. },
  719. create: function () {
  720. var e = this.extend();
  721. return e.init.apply(e, arguments), e;
  722. },
  723. init: function () {},
  724. mixIn: function (e) {
  725. for (var t in e) e.hasOwnProperty(t) && (this[t] = e[t]);
  726. e.hasOwnProperty("toString") && (this.toString = e.toString);
  727. },
  728. clone: function () {
  729. return this.init.prototype.extend(this);
  730. }
  731. },
  732. a = i.WordArray = o.extend({
  733. init: function (e, t) {
  734. e = this.words = e || [], this.sigBytes = null != t ? t : 4 * e.length;
  735. },
  736. toString: function (e) {
  737. return (e || h).stringify(this);
  738. },
  739. concat: function (e) {
  740. var t = this.words,
  741. r = e.words,
  742. n = this.sigBytes,
  743. i = e.sigBytes;
  744. if (this.clamp(), n % 4) for (var o = 0; o < i; o++) {
  745. var a = r[o >>> 2] >>> 24 - o % 4 * 8 & 255;
  746. t[n + o >>> 2] |= a << 24 - (n + o) % 4 * 8;
  747. } else for (var o = 0; o < i; o += 4) t[n + o >>> 2] = r[o >>> 2];
  748. return this.sigBytes += i, this;
  749. },
  750. clamp: function () {
  751. var t = this.words,
  752. r = this.sigBytes;
  753. t[r >>> 2] &= 4294967295 << 32 - r % 4 * 8, t.length = e.ceil(r / 4);
  754. },
  755. clone: function () {
  756. var e = o.clone.call(this);
  757. return e.words = this.words.slice(0), e;
  758. },
  759. random: function (t) {
  760. for (var r, n = [], i = function (t) {
  761. var t = t,
  762. r = 987654321,
  763. n = 4294967295;
  764. return function () {
  765. var i = ((r = 36969 * (65535 & r) + (r >> 16) & n) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & n) & n;
  766. return i /= 4294967296, (i += .5) * (e.random() > .5 ? 1 : -1);
  767. };
  768. }, o = 0; o < t; o += 4) {
  769. var s = i(4294967296 * (r || e.random()));
  770. r = 987654071 * s(), n.push(4294967296 * s() | 0);
  771. }
  772. return new a.init(n, t);
  773. }
  774. }),
  775. s = n.enc = {},
  776. h = s.Hex = {
  777. stringify: function (e) {
  778. for (var t = e.words, r = e.sigBytes, n = [], i = 0; i < r; i++) {
  779. var o = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  780. n.push((o >>> 4).toString(16)), n.push((15 & o).toString(16));
  781. }
  782. return n.join("");
  783. },
  784. parse: function (e) {
  785. for (var t = e.length, r = [], n = 0; n < t; n += 2) r[n >>> 3] |= parseInt(e.substr(n, 2), 16) << 24 - n % 8 * 4;
  786. return new a.init(r, t / 2);
  787. }
  788. },
  789. l = s.Latin1 = {
  790. stringify: function (e) {
  791. for (var t = e.words, r = e.sigBytes, n = [], i = 0; i < r; i++) {
  792. var o = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  793. n.push(String.fromCharCode(o));
  794. }
  795. return n.join("");
  796. },
  797. parse: function (e) {
  798. for (var t = e.length, r = [], n = 0; n < t; n++) r[n >>> 2] |= (255 & e.charCodeAt(n)) << 24 - n % 4 * 8;
  799. return new a.init(r, t);
  800. }
  801. },
  802. f = s.Utf8 = {
  803. stringify: function (e) {
  804. try {
  805. return decodeURIComponent(escape(l.stringify(e)));
  806. } catch (e) {
  807. throw new Error("Malformed UTF-8 data");
  808. }
  809. },
  810. parse: function (e) {
  811. return l.parse(unescape(encodeURIComponent(e)));
  812. }
  813. },
  814. c = i.BufferedBlockAlgorithm = o.extend({
  815. reset: function () {
  816. this._data = new a.init(), this._nDataBytes = 0;
  817. },
  818. _append: function (e) {
  819. "string" == typeof e && (e = f.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
  820. },
  821. _process: function (t) {
  822. var r = this._data,
  823. n = r.words,
  824. i = r.sigBytes,
  825. o = this.blockSize,
  826. s = 4 * o,
  827. h = i / s,
  828. l = (h = t ? e.ceil(h) : e.max((0 | h) - this._minBufferSize, 0)) * o,
  829. f = e.min(4 * l, i);
  830. if (l) {
  831. for (var c = 0; c < l; c += o) this._doProcessBlock(n, c);
  832. var u = n.splice(0, l);
  833. r.sigBytes -= f;
  834. }
  835. return new a.init(u, f);
  836. },
  837. clone: function () {
  838. var e = o.clone.call(this);
  839. return e._data = this._data.clone(), e;
  840. },
  841. _minBufferSize: 0
  842. }),
  843. u = (i.Hasher = c.extend({
  844. cfg: o.extend(),
  845. init: function (e) {
  846. this.cfg = this.cfg.extend(e), this.reset();
  847. },
  848. reset: function () {
  849. c.reset.call(this), this._doReset();
  850. },
  851. update: function (e) {
  852. return this._append(e), this._process(), this;
  853. },
  854. finalize: function (e) {
  855. e && this._append(e);
  856. var t = this._doFinalize();
  857. return t;
  858. },
  859. blockSize: 16,
  860. _createHelper: function (e) {
  861. return function (t, r) {
  862. return new e.init(r).finalize(t);
  863. };
  864. },
  865. _createHmacHelper: function (e) {
  866. return function (t, r) {
  867. return new u.HMAC.init(e, r).finalize(t);
  868. };
  869. }
  870. }), n.algo = {});
  871. return n;
  872. }(Math), r);
  873. }),
  874. te = (Q(function (e, t) {
  875. var r, n, i, o, a, s;
  876. e.exports = (i = (n = r = ee).lib, o = i.Base, a = i.WordArray, (s = n.x64 = {}).Word = o.extend({
  877. init: function (e, t) {
  878. this.high = e, this.low = t;
  879. }
  880. }), s.WordArray = o.extend({
  881. init: function (e, t) {
  882. e = this.words = e || [], this.sigBytes = null != t ? t : 8 * e.length;
  883. },
  884. toX32: function () {
  885. for (var e = this.words, t = e.length, r = [], n = 0; n < t; n++) {
  886. var i = e[n];
  887. r.push(i.high), r.push(i.low);
  888. }
  889. return a.create(r, this.sigBytes);
  890. },
  891. clone: function () {
  892. for (var e = o.clone.call(this), t = e.words = this.words.slice(0), r = t.length, n = 0; n < r; n++) t[n] = t[n].clone();
  893. return e;
  894. }
  895. }), r);
  896. }), Q(function (e, t) {
  897. var r;
  898. e.exports = (r = ee, function () {
  899. if ("function" == typeof ArrayBuffer) {
  900. var e = r.lib.WordArray,
  901. t = e.init;
  902. (e.init = function (e) {
  903. if (e instanceof ArrayBuffer && (e = 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) && (e = new Uint8Array(e.buffer, e.byteOffset, e.byteLength)), e instanceof Uint8Array) {
  904. for (var r = e.byteLength, n = [], i = 0; i < r; i++) n[i >>> 2] |= e[i] << 24 - i % 4 * 8;
  905. t.call(this, n, r);
  906. } else t.apply(this, arguments);
  907. }).prototype = e;
  908. }
  909. }(), r.lib.WordArray);
  910. }), Q(function (e, t) {
  911. var r;
  912. e.exports = (r = ee, function () {
  913. var e = r,
  914. t = e.lib.WordArray,
  915. n = e.enc;
  916. function i(e) {
  917. return e << 8 & 4278255360 | e >>> 8 & 16711935;
  918. }
  919. n.Utf16 = n.Utf16BE = {
  920. stringify: function (e) {
  921. for (var t = e.words, r = e.sigBytes, n = [], i = 0; i < r; i += 2) {
  922. var o = t[i >>> 2] >>> 16 - i % 4 * 8 & 65535;
  923. n.push(String.fromCharCode(o));
  924. }
  925. return n.join("");
  926. },
  927. parse: function (e) {
  928. for (var r = e.length, n = [], i = 0; i < r; i++) n[i >>> 1] |= e.charCodeAt(i) << 16 - i % 2 * 16;
  929. return t.create(n, 2 * r);
  930. }
  931. }, n.Utf16LE = {
  932. stringify: function (e) {
  933. for (var t = e.words, r = e.sigBytes, n = [], o = 0; o < r; o += 2) {
  934. var a = i(t[o >>> 2] >>> 16 - o % 4 * 8 & 65535);
  935. n.push(String.fromCharCode(a));
  936. }
  937. return n.join("");
  938. },
  939. parse: function (e) {
  940. for (var r = e.length, n = [], o = 0; o < r; o++) n[o >>> 1] |= i(e.charCodeAt(o) << 16 - o % 2 * 16);
  941. return t.create(n, 2 * r);
  942. }
  943. };
  944. }(), r.enc.Utf16);
  945. }), Q(function (e, t) {
  946. var r, n, i;
  947. e.exports = (i = (n = r = ee).lib.WordArray, n.enc.Base64 = {
  948. stringify: function (e) {
  949. var t = e.words,
  950. r = e.sigBytes,
  951. n = this._map;
  952. e.clamp();
  953. for (var i = [], o = 0; o < r; o += 3) for (var a = (t[o >>> 2] >>> 24 - o % 4 * 8 & 255) << 16 | (t[o + 1 >>> 2] >>> 24 - (o + 1) % 4 * 8 & 255) << 8 | t[o + 2 >>> 2] >>> 24 - (o + 2) % 4 * 8 & 255, s = 0; s < 4 && o + .75 * s < r; s++) i.push(n.charAt(a >>> 6 * (3 - s) & 63));
  954. var h = n.charAt(64);
  955. if (h) for (; i.length % 4;) i.push(h);
  956. return i.join("");
  957. },
  958. parse: function (e) {
  959. var t = e.length,
  960. r = this._map,
  961. n = this._reverseMap;
  962. if (!n) {
  963. n = this._reverseMap = [];
  964. for (var o = 0; o < r.length; o++) n[r.charCodeAt(o)] = o;
  965. }
  966. var a = r.charAt(64);
  967. if (a) {
  968. var s = e.indexOf(a);
  969. -1 !== s && (t = s);
  970. }
  971. return function (e, t, r) {
  972. for (var n = [], o = 0, a = 0; a < t; a++) if (a % 4) {
  973. var s = r[e.charCodeAt(a - 1)] << a % 4 * 2,
  974. h = r[e.charCodeAt(a)] >>> 6 - a % 4 * 2;
  975. n[o >>> 2] |= (s | h) << 24 - o % 4 * 8, o++;
  976. }
  977. return i.create(n, o);
  978. }(e, t, n);
  979. },
  980. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  981. }, r.enc.Base64);
  982. }), Q(function (e, t) {
  983. var r;
  984. e.exports = (r = ee, function (e) {
  985. var t = r,
  986. n = t.lib,
  987. i = n.WordArray,
  988. o = n.Hasher,
  989. a = t.algo,
  990. s = [];
  991. !function () {
  992. for (var t = 0; t < 64; t++) s[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
  993. }();
  994. var h = a.MD5 = o.extend({
  995. _doReset: function () {
  996. this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878]);
  997. },
  998. _doProcessBlock: function (e, t) {
  999. for (var r = 0; r < 16; r++) {
  1000. var n = t + r,
  1001. i = e[n];
  1002. e[n] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8);
  1003. }
  1004. var o = this._hash.words,
  1005. a = e[t + 0],
  1006. h = e[t + 1],
  1007. d = e[t + 2],
  1008. p = e[t + 3],
  1009. _ = e[t + 4],
  1010. g = e[t + 5],
  1011. v = e[t + 6],
  1012. w = e[t + 7],
  1013. b = e[t + 8],
  1014. y = e[t + 9],
  1015. m = e[t + 10],
  1016. k = e[t + 11],
  1017. E = e[t + 12],
  1018. S = e[t + 13],
  1019. x = e[t + 14],
  1020. R = e[t + 15],
  1021. A = o[0],
  1022. B = o[1],
  1023. z = o[2],
  1024. L = o[3];
  1025. A = l(A, B, z, L, a, 7, s[0]), L = l(L, A, B, z, h, 12, s[1]), z = l(z, L, A, B, d, 17, s[2]), B = l(B, z, L, A, p, 22, s[3]), A = l(A, B, z, L, _, 7, s[4]), L = l(L, A, B, z, g, 12, s[5]), z = l(z, L, A, B, v, 17, s[6]), B = l(B, z, L, A, w, 22, s[7]), A = l(A, B, z, L, b, 7, s[8]), L = l(L, A, B, z, y, 12, s[9]), z = l(z, L, A, B, m, 17, s[10]), B = l(B, z, L, A, k, 22, s[11]), A = l(A, B, z, L, E, 7, s[12]), L = l(L, A, B, z, S, 12, s[13]), z = l(z, L, A, B, x, 17, s[14]), A = f(A, B = l(B, z, L, A, R, 22, s[15]), z, L, h, 5, s[16]), L = f(L, A, B, z, v, 9, s[17]), z = f(z, L, A, B, k, 14, s[18]), B = f(B, z, L, A, a, 20, s[19]), A = f(A, B, z, L, g, 5, s[20]), L = f(L, A, B, z, m, 9, s[21]), z = f(z, L, A, B, R, 14, s[22]), B = f(B, z, L, A, _, 20, s[23]), A = f(A, B, z, L, y, 5, s[24]), L = f(L, A, B, z, x, 9, s[25]), z = f(z, L, A, B, p, 14, s[26]), B = f(B, z, L, A, b, 20, s[27]), A = f(A, B, z, L, S, 5, s[28]), L = f(L, A, B, z, d, 9, s[29]), z = f(z, L, A, B, w, 14, s[30]), A = c(A, B = f(B, z, L, A, E, 20, s[31]), z, L, g, 4, s[32]), L = c(L, A, B, z, b, 11, s[33]), z = c(z, L, A, B, k, 16, s[34]), B = c(B, z, L, A, x, 23, s[35]), A = c(A, B, z, L, h, 4, s[36]), L = c(L, A, B, z, _, 11, s[37]), z = c(z, L, A, B, w, 16, s[38]), B = c(B, z, L, A, m, 23, s[39]), A = c(A, B, z, L, S, 4, s[40]), L = c(L, A, B, z, a, 11, s[41]), z = c(z, L, A, B, p, 16, s[42]), B = c(B, z, L, A, v, 23, s[43]), A = c(A, B, z, L, y, 4, s[44]), L = c(L, A, B, z, E, 11, s[45]), z = c(z, L, A, B, R, 16, s[46]), A = u(A, B = c(B, z, L, A, d, 23, s[47]), z, L, a, 6, s[48]), L = u(L, A, B, z, w, 10, s[49]), z = u(z, L, A, B, x, 15, s[50]), B = u(B, z, L, A, g, 21, s[51]), A = u(A, B, z, L, E, 6, s[52]), L = u(L, A, B, z, p, 10, s[53]), z = u(z, L, A, B, m, 15, s[54]), B = u(B, z, L, A, h, 21, s[55]), A = u(A, B, z, L, b, 6, s[56]), L = u(L, A, B, z, R, 10, s[57]), z = u(z, L, A, B, v, 15, s[58]), B = u(B, z, L, A, S, 21, s[59]), A = u(A, B, z, L, _, 6, s[60]), L = u(L, A, B, z, k, 10, s[61]), z = u(z, L, A, B, d, 15, s[62]), B = u(B, z, L, A, y, 21, s[63]), o[0] = o[0] + A | 0, o[1] = o[1] + B | 0, o[2] = o[2] + z | 0, o[3] = o[3] + L | 0;
  1026. },
  1027. _doFinalize: function () {
  1028. var t = this._data,
  1029. r = t.words,
  1030. n = 8 * this._nDataBytes,
  1031. i = 8 * t.sigBytes;
  1032. r[i >>> 5] |= 128 << 24 - i % 32;
  1033. var o = e.floor(n / 4294967296),
  1034. a = n;
  1035. r[15 + (i + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), r[14 + (i + 64 >>> 9 << 4)] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8), t.sigBytes = 4 * (r.length + 1), this._process();
  1036. for (var s = this._hash, h = s.words, l = 0; l < 4; l++) {
  1037. var f = h[l];
  1038. h[l] = 16711935 & (f << 8 | f >>> 24) | 4278255360 & (f << 24 | f >>> 8);
  1039. }
  1040. return s;
  1041. },
  1042. clone: function () {
  1043. var e = o.clone.call(this);
  1044. return e._hash = this._hash.clone(), e;
  1045. }
  1046. });
  1047. function l(e, t, r, n, i, o, a) {
  1048. var s = e + (t & r | ~t & n) + i + a;
  1049. return (s << o | s >>> 32 - o) + t;
  1050. }
  1051. function f(e, t, r, n, i, o, a) {
  1052. var s = e + (t & n | r & ~n) + i + a;
  1053. return (s << o | s >>> 32 - o) + t;
  1054. }
  1055. function c(e, t, r, n, i, o, a) {
  1056. var s = e + (t ^ r ^ n) + i + a;
  1057. return (s << o | s >>> 32 - o) + t;
  1058. }
  1059. function u(e, t, r, n, i, o, a) {
  1060. var s = e + (r ^ (t | ~n)) + i + a;
  1061. return (s << o | s >>> 32 - o) + t;
  1062. }
  1063. t.MD5 = o._createHelper(h), t.HmacMD5 = o._createHmacHelper(h);
  1064. }(Math), r.MD5);
  1065. }), Q(function (e, t) {
  1066. var r, n, i, o, a, s, h, l;
  1067. e.exports = (i = (n = r = ee).lib, o = i.WordArray, a = i.Hasher, s = n.algo, h = [], l = s.SHA1 = a.extend({
  1068. _doReset: function () {
  1069. this._hash = new o.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
  1070. },
  1071. _doProcessBlock: function (e, t) {
  1072. for (var r = this._hash.words, n = r[0], i = r[1], o = r[2], a = r[3], s = r[4], l = 0; l < 80; l++) {
  1073. if (l < 16) h[l] = 0 | e[t + l];else {
  1074. var f = h[l - 3] ^ h[l - 8] ^ h[l - 14] ^ h[l - 16];
  1075. h[l] = f << 1 | f >>> 31;
  1076. }
  1077. var c = (n << 5 | n >>> 27) + s + h[l];
  1078. c += l < 20 ? 1518500249 + (i & o | ~i & a) : l < 40 ? 1859775393 + (i ^ o ^ a) : l < 60 ? (i & o | i & a | o & a) - 1894007588 : (i ^ o ^ a) - 899497514, s = a, a = o, o = i << 30 | i >>> 2, i = n, n = c;
  1079. }
  1080. r[0] = r[0] + n | 0, r[1] = r[1] + i | 0, r[2] = r[2] + o | 0, r[3] = r[3] + a | 0, r[4] = r[4] + s | 0;
  1081. },
  1082. _doFinalize: function () {
  1083. var e = this._data,
  1084. t = e.words,
  1085. r = 8 * this._nDataBytes,
  1086. n = 8 * e.sigBytes;
  1087. return t[n >>> 5] |= 128 << 24 - n % 32, t[14 + (n + 64 >>> 9 << 4)] = Math.floor(r / 4294967296), t[15 + (n + 64 >>> 9 << 4)] = r, e.sigBytes = 4 * t.length, this._process(), this._hash;
  1088. },
  1089. clone: function () {
  1090. var e = a.clone.call(this);
  1091. return e._hash = this._hash.clone(), e;
  1092. }
  1093. }), n.SHA1 = a._createHelper(l), n.HmacSHA1 = a._createHmacHelper(l), r.SHA1);
  1094. }), Q(function (e, t) {
  1095. var r;
  1096. e.exports = (r = ee, function (e) {
  1097. var t = r,
  1098. n = t.lib,
  1099. i = n.WordArray,
  1100. o = n.Hasher,
  1101. a = t.algo,
  1102. s = [],
  1103. h = [];
  1104. !function () {
  1105. function t(t) {
  1106. for (var r = e.sqrt(t), n = 2; n <= r; n++) if (!(t % n)) return !1;
  1107. return !0;
  1108. }
  1109. function r(e) {
  1110. return 4294967296 * (e - (0 | e)) | 0;
  1111. }
  1112. for (var n = 2, i = 0; i < 64;) t(n) && (i < 8 && (s[i] = r(e.pow(n, .5))), h[i] = r(e.pow(n, 1 / 3)), i++), n++;
  1113. }();
  1114. var l = [],
  1115. f = a.SHA256 = o.extend({
  1116. _doReset: function () {
  1117. this._hash = new i.init(s.slice(0));
  1118. },
  1119. _doProcessBlock: function (e, t) {
  1120. for (var r = this._hash.words, n = r[0], i = r[1], o = r[2], a = r[3], s = r[4], f = r[5], c = r[6], u = r[7], d = 0; d < 64; d++) {
  1121. if (d < 16) l[d] = 0 | e[t + d];else {
  1122. var p = l[d - 15],
  1123. _ = (p << 25 | p >>> 7) ^ (p << 14 | p >>> 18) ^ p >>> 3,
  1124. g = l[d - 2],
  1125. v = (g << 15 | g >>> 17) ^ (g << 13 | g >>> 19) ^ g >>> 10;
  1126. l[d] = _ + l[d - 7] + v + l[d - 16];
  1127. }
  1128. var w = n & i ^ n & o ^ i & o,
  1129. b = (n << 30 | n >>> 2) ^ (n << 19 | n >>> 13) ^ (n << 10 | n >>> 22),
  1130. y = u + ((s << 26 | s >>> 6) ^ (s << 21 | s >>> 11) ^ (s << 7 | s >>> 25)) + (s & f ^ ~s & c) + h[d] + l[d];
  1131. u = c, c = f, f = s, s = a + y | 0, a = o, o = i, i = n, n = y + (b + w) | 0;
  1132. }
  1133. r[0] = r[0] + n | 0, r[1] = r[1] + i | 0, r[2] = r[2] + o | 0, r[3] = r[3] + a | 0, r[4] = r[4] + s | 0, r[5] = r[5] + f | 0, r[6] = r[6] + c | 0, r[7] = r[7] + u | 0;
  1134. },
  1135. _doFinalize: function () {
  1136. var t = this._data,
  1137. r = t.words,
  1138. n = 8 * this._nDataBytes,
  1139. i = 8 * t.sigBytes;
  1140. return r[i >>> 5] |= 128 << 24 - i % 32, r[14 + (i + 64 >>> 9 << 4)] = e.floor(n / 4294967296), r[15 + (i + 64 >>> 9 << 4)] = n, t.sigBytes = 4 * r.length, this._process(), this._hash;
  1141. },
  1142. clone: function () {
  1143. var e = o.clone.call(this);
  1144. return e._hash = this._hash.clone(), e;
  1145. }
  1146. });
  1147. t.SHA256 = o._createHelper(f), t.HmacSHA256 = o._createHmacHelper(f);
  1148. }(Math), r.SHA256);
  1149. }), Q(function (e, t) {
  1150. var r, n, i, o, a, s;
  1151. e.exports = (i = (n = r = ee).lib.WordArray, o = n.algo, a = o.SHA256, s = o.SHA224 = a.extend({
  1152. _doReset: function () {
  1153. this._hash = new i.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]);
  1154. },
  1155. _doFinalize: function () {
  1156. var e = a._doFinalize.call(this);
  1157. return e.sigBytes -= 4, e;
  1158. }
  1159. }), n.SHA224 = a._createHelper(s), n.HmacSHA224 = a._createHmacHelper(s), r.SHA224);
  1160. }), Q(function (e, t) {
  1161. var r;
  1162. e.exports = (r = ee, function () {
  1163. var e = r,
  1164. t = e.lib.Hasher,
  1165. n = e.x64,
  1166. i = n.Word,
  1167. o = n.WordArray,
  1168. a = e.algo;
  1169. function s() {
  1170. return i.create.apply(i, arguments);
  1171. }
  1172. var h = [s(1116352408, 3609767458), s(1899447441, 602891725), s(3049323471, 3964484399), s(3921009573, 2173295548), s(961987163, 4081628472), s(1508970993, 3053834265), s(2453635748, 2937671579), s(2870763221, 3664609560), s(3624381080, 2734883394), s(310598401, 1164996542), s(607225278, 1323610764), s(1426881987, 3590304994), s(1925078388, 4068182383), s(2162078206, 991336113), s(2614888103, 633803317), s(3248222580, 3479774868), s(3835390401, 2666613458), s(4022224774, 944711139), s(264347078, 2341262773), s(604807628, 2007800933), s(770255983, 1495990901), s(1249150122, 1856431235), s(1555081692, 3175218132), s(1996064986, 2198950837), s(2554220882, 3999719339), s(2821834349, 766784016), s(2952996808, 2566594879), s(3210313671, 3203337956), s(3336571891, 1034457026), s(3584528711, 2466948901), s(113926993, 3758326383), s(338241895, 168717936), s(666307205, 1188179964), s(773529912, 1546045734), s(1294757372, 1522805485), s(1396182291, 2643833823), s(1695183700, 2343527390), s(1986661051, 1014477480), s(2177026350, 1206759142), s(2456956037, 344077627), s(2730485921, 1290863460), s(2820302411, 3158454273), s(3259730800, 3505952657), s(3345764771, 106217008), s(3516065817, 3606008344), s(3600352804, 1432725776), s(4094571909, 1467031594), s(275423344, 851169720), s(430227734, 3100823752), s(506948616, 1363258195), s(659060556, 3750685593), s(883997877, 3785050280), s(958139571, 3318307427), s(1322822218, 3812723403), s(1537002063, 2003034995), s(1747873779, 3602036899), s(1955562222, 1575990012), s(2024104815, 1125592928), s(2227730452, 2716904306), s(2361852424, 442776044), s(2428436474, 593698344), s(2756734187, 3733110249), s(3204031479, 2999351573), s(3329325298, 3815920427), s(3391569614, 3928383900), s(3515267271, 566280711), s(3940187606, 3454069534), s(4118630271, 4000239992), s(116418474, 1914138554), s(174292421, 2731055270), s(289380356, 3203993006), s(460393269, 320620315), s(685471733, 587496836), s(852142971, 1086792851), s(1017036298, 365543100), s(1126000580, 2618297676), s(1288033470, 3409855158), s(1501505948, 4234509866), s(1607167915, 987167468), s(1816402316, 1246189591)],
  1173. l = [];
  1174. !function () {
  1175. for (var e = 0; e < 80; e++) l[e] = s();
  1176. }();
  1177. var f = a.SHA512 = t.extend({
  1178. _doReset: function () {
  1179. this._hash = new o.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)]);
  1180. },
  1181. _doProcessBlock: function (e, t) {
  1182. for (var r = this._hash.words, n = r[0], i = r[1], o = r[2], a = r[3], s = r[4], f = r[5], c = r[6], u = r[7], d = n.high, p = n.low, _ = i.high, g = i.low, v = o.high, w = o.low, b = a.high, y = a.low, m = s.high, k = s.low, E = f.high, S = f.low, x = c.high, R = c.low, A = u.high, B = u.low, z = d, L = p, T = _, M = g, C = v, D = w, I = b, P = y, O = m, U = k, H = E, F = S, N = x, Z = R, j = A, W = B, Y = 0; Y < 80; Y++) {
  1183. var K = l[Y];
  1184. if (Y < 16) var X = K.high = 0 | e[t + 2 * Y],
  1185. q = K.low = 0 | e[t + 2 * Y + 1];else {
  1186. var V = l[Y - 15],
  1187. G = V.high,
  1188. $ = V.low,
  1189. J = (G >>> 1 | $ << 31) ^ (G >>> 8 | $ << 24) ^ G >>> 7,
  1190. Q = ($ >>> 1 | G << 31) ^ ($ >>> 8 | G << 24) ^ ($ >>> 7 | G << 25),
  1191. ee = l[Y - 2],
  1192. te = ee.high,
  1193. re = ee.low,
  1194. ne = (te >>> 19 | re << 13) ^ (te << 3 | re >>> 29) ^ te >>> 6,
  1195. ie = (re >>> 19 | te << 13) ^ (re << 3 | te >>> 29) ^ (re >>> 6 | te << 26),
  1196. oe = l[Y - 7],
  1197. ae = oe.high,
  1198. se = oe.low,
  1199. he = l[Y - 16],
  1200. le = he.high,
  1201. fe = he.low;
  1202. X = (X = (X = J + ae + ((q = Q + se) >>> 0 < Q >>> 0 ? 1 : 0)) + ne + ((q += ie) >>> 0 < ie >>> 0 ? 1 : 0)) + le + ((q += fe) >>> 0 < fe >>> 0 ? 1 : 0), K.high = X, K.low = q;
  1203. }
  1204. var ce,
  1205. ue = O & H ^ ~O & N,
  1206. de = U & F ^ ~U & Z,
  1207. pe = z & T ^ z & C ^ T & C,
  1208. _e = L & M ^ L & D ^ M & D,
  1209. ge = (z >>> 28 | L << 4) ^ (z << 30 | L >>> 2) ^ (z << 25 | L >>> 7),
  1210. ve = (L >>> 28 | z << 4) ^ (L << 30 | z >>> 2) ^ (L << 25 | z >>> 7),
  1211. we = (O >>> 14 | U << 18) ^ (O >>> 18 | U << 14) ^ (O << 23 | U >>> 9),
  1212. be = (U >>> 14 | O << 18) ^ (U >>> 18 | O << 14) ^ (U << 23 | O >>> 9),
  1213. ye = h[Y],
  1214. me = ye.high,
  1215. ke = ye.low,
  1216. Ee = j + we + ((ce = W + be) >>> 0 < W >>> 0 ? 1 : 0),
  1217. Se = ve + _e;
  1218. j = N, W = Z, N = H, Z = F, H = O, F = U, O = I + (Ee = (Ee = (Ee = Ee + ue + ((ce += de) >>> 0 < de >>> 0 ? 1 : 0)) + me + ((ce += ke) >>> 0 < ke >>> 0 ? 1 : 0)) + X + ((ce += q) >>> 0 < q >>> 0 ? 1 : 0)) + ((U = P + ce | 0) >>> 0 < P >>> 0 ? 1 : 0) | 0, I = C, P = D, C = T, D = M, T = z, M = L, z = Ee + (ge + pe + (Se >>> 0 < ve >>> 0 ? 1 : 0)) + ((L = ce + Se | 0) >>> 0 < ce >>> 0 ? 1 : 0) | 0;
  1219. }
  1220. p = n.low = p + L, n.high = d + z + (p >>> 0 < L >>> 0 ? 1 : 0), g = i.low = g + M, i.high = _ + T + (g >>> 0 < M >>> 0 ? 1 : 0), w = o.low = w + D, o.high = v + C + (w >>> 0 < D >>> 0 ? 1 : 0), y = a.low = y + P, a.high = b + I + (y >>> 0 < P >>> 0 ? 1 : 0), k = s.low = k + U, s.high = m + O + (k >>> 0 < U >>> 0 ? 1 : 0), S = f.low = S + F, f.high = E + H + (S >>> 0 < F >>> 0 ? 1 : 0), R = c.low = R + Z, c.high = x + N + (R >>> 0 < Z >>> 0 ? 1 : 0), B = u.low = B + W, u.high = A + j + (B >>> 0 < W >>> 0 ? 1 : 0);
  1221. },
  1222. _doFinalize: function () {
  1223. var e = this._data,
  1224. t = e.words,
  1225. r = 8 * this._nDataBytes,
  1226. n = 8 * e.sigBytes;
  1227. return t[n >>> 5] |= 128 << 24 - n % 32, t[30 + (n + 128 >>> 10 << 5)] = Math.floor(r / 4294967296), t[31 + (n + 128 >>> 10 << 5)] = r, e.sigBytes = 4 * t.length, this._process(), this._hash.toX32();
  1228. },
  1229. clone: function () {
  1230. var e = t.clone.call(this);
  1231. return e._hash = this._hash.clone(), e;
  1232. },
  1233. blockSize: 32
  1234. });
  1235. e.SHA512 = t._createHelper(f), e.HmacSHA512 = t._createHmacHelper(f);
  1236. }(), r.SHA512);
  1237. }), Q(function (e, t) {
  1238. var r, n, i, o, a, s, h, l;
  1239. e.exports = (i = (n = r = ee).x64, o = i.Word, a = i.WordArray, s = n.algo, h = s.SHA512, l = s.SHA384 = h.extend({
  1240. _doReset: function () {
  1241. this._hash = new a.init([new o.init(3418070365, 3238371032), new o.init(1654270250, 914150663), new o.init(2438529370, 812702999), new o.init(355462360, 4144912697), new o.init(1731405415, 4290775857), new o.init(2394180231, 1750603025), new o.init(3675008525, 1694076839), new o.init(1203062813, 3204075428)]);
  1242. },
  1243. _doFinalize: function () {
  1244. var e = h._doFinalize.call(this);
  1245. return e.sigBytes -= 16, e;
  1246. }
  1247. }), n.SHA384 = h._createHelper(l), n.HmacSHA384 = h._createHmacHelper(l), r.SHA384);
  1248. }), Q(function (e, t) {
  1249. var r;
  1250. e.exports = (r = ee, function (e) {
  1251. var t = r,
  1252. n = t.lib,
  1253. i = n.WordArray,
  1254. o = n.Hasher,
  1255. a = t.x64.Word,
  1256. s = t.algo,
  1257. h = [],
  1258. l = [],
  1259. f = [];
  1260. !function () {
  1261. for (var e = 1, t = 0, r = 0; r < 24; r++) {
  1262. h[e + 5 * t] = (r + 1) * (r + 2) / 2 % 64;
  1263. var n = (2 * e + 3 * t) % 5;
  1264. e = t % 5, t = n;
  1265. }
  1266. for (e = 0; e < 5; e++) for (t = 0; t < 5; t++) l[e + 5 * t] = t + (2 * e + 3 * t) % 5 * 5;
  1267. for (var i = 1, o = 0; o < 24; o++) {
  1268. for (var s = 0, c = 0, u = 0; u < 7; u++) {
  1269. if (1 & i) {
  1270. var d = (1 << u) - 1;
  1271. d < 32 ? c ^= 1 << d : s ^= 1 << d - 32;
  1272. }
  1273. 128 & i ? i = i << 1 ^ 113 : i <<= 1;
  1274. }
  1275. f[o] = a.create(s, c);
  1276. }
  1277. }();
  1278. var c = [];
  1279. !function () {
  1280. for (var e = 0; e < 25; e++) c[e] = a.create();
  1281. }();
  1282. var u = s.SHA3 = o.extend({
  1283. cfg: o.cfg.extend({
  1284. outputLength: 512
  1285. }),
  1286. _doReset: function () {
  1287. for (var e = this._state = [], t = 0; t < 25; t++) e[t] = new a.init();
  1288. this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
  1289. },
  1290. _doProcessBlock: function (e, t) {
  1291. for (var r = this._state, n = this.blockSize / 2, i = 0; i < n; i++) {
  1292. var o = e[t + 2 * i],
  1293. a = e[t + 2 * i + 1];
  1294. o = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), a = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8), (B = r[i]).high ^= a, B.low ^= o;
  1295. }
  1296. for (var s = 0; s < 24; s++) {
  1297. for (var u = 0; u < 5; u++) {
  1298. for (var d = 0, p = 0, _ = 0; _ < 5; _++) d ^= (B = r[u + 5 * _]).high, p ^= B.low;
  1299. var g = c[u];
  1300. g.high = d, g.low = p;
  1301. }
  1302. for (u = 0; u < 5; u++) {
  1303. var v = c[(u + 4) % 5],
  1304. w = c[(u + 1) % 5],
  1305. b = w.high,
  1306. y = w.low;
  1307. for (d = v.high ^ (b << 1 | y >>> 31), p = v.low ^ (y << 1 | b >>> 31), _ = 0; _ < 5; _++) (B = r[u + 5 * _]).high ^= d, B.low ^= p;
  1308. }
  1309. for (var m = 1; m < 25; m++) {
  1310. var k = (B = r[m]).high,
  1311. E = B.low,
  1312. S = h[m];
  1313. S < 32 ? (d = k << S | E >>> 32 - S, p = E << S | k >>> 32 - S) : (d = E << S - 32 | k >>> 64 - S, p = k << S - 32 | E >>> 64 - S);
  1314. var x = c[l[m]];
  1315. x.high = d, x.low = p;
  1316. }
  1317. var R = c[0],
  1318. A = r[0];
  1319. for (R.high = A.high, R.low = A.low, u = 0; u < 5; u++) for (_ = 0; _ < 5; _++) {
  1320. var B = r[m = u + 5 * _],
  1321. z = c[m],
  1322. L = c[(u + 1) % 5 + 5 * _],
  1323. T = c[(u + 2) % 5 + 5 * _];
  1324. B.high = z.high ^ ~L.high & T.high, B.low = z.low ^ ~L.low & T.low;
  1325. }
  1326. B = r[0];
  1327. var M = f[s];
  1328. B.high ^= M.high, B.low ^= M.low;
  1329. }
  1330. },
  1331. _doFinalize: function () {
  1332. var t = this._data,
  1333. r = t.words,
  1334. n = (this._nDataBytes, 8 * t.sigBytes),
  1335. o = 32 * this.blockSize;
  1336. r[n >>> 5] |= 1 << 24 - n % 32, r[(e.ceil((n + 1) / o) * o >>> 5) - 1] |= 128, t.sigBytes = 4 * r.length, this._process();
  1337. for (var a = this._state, s = this.cfg.outputLength / 8, h = s / 8, l = [], f = 0; f < h; f++) {
  1338. var c = a[f],
  1339. u = c.high,
  1340. d = c.low;
  1341. u = 16711935 & (u << 8 | u >>> 24) | 4278255360 & (u << 24 | u >>> 8), d = 16711935 & (d << 8 | d >>> 24) | 4278255360 & (d << 24 | d >>> 8), l.push(d), l.push(u);
  1342. }
  1343. return new i.init(l, s);
  1344. },
  1345. clone: function () {
  1346. for (var e = o.clone.call(this), t = e._state = this._state.slice(0), r = 0; r < 25; r++) t[r] = t[r].clone();
  1347. return e;
  1348. }
  1349. });
  1350. t.SHA3 = o._createHelper(u), t.HmacSHA3 = o._createHmacHelper(u);
  1351. }(Math), r.SHA3);
  1352. }), Q(function (e, t) {
  1353. var r;
  1354. e.exports = (r = ee, function (e) {
  1355. var t = r,
  1356. n = t.lib,
  1357. i = n.WordArray,
  1358. o = n.Hasher,
  1359. a = t.algo,
  1360. s = 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]),
  1361. h = 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]),
  1362. l = 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]),
  1363. f = 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]),
  1364. c = i.create([0, 1518500249, 1859775393, 2400959708, 2840853838]),
  1365. u = i.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
  1366. d = a.RIPEMD160 = o.extend({
  1367. _doReset: function () {
  1368. this._hash = i.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
  1369. },
  1370. _doProcessBlock: function (e, t) {
  1371. for (var r = 0; r < 16; r++) {
  1372. var n = t + r,
  1373. i = e[n];
  1374. e[n] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8);
  1375. }
  1376. var o,
  1377. a,
  1378. d,
  1379. y,
  1380. m,
  1381. k,
  1382. E,
  1383. S,
  1384. x,
  1385. R,
  1386. A,
  1387. B = this._hash.words,
  1388. z = c.words,
  1389. L = u.words,
  1390. T = s.words,
  1391. M = h.words,
  1392. C = l.words,
  1393. D = f.words;
  1394. for (k = o = B[0], E = a = B[1], S = d = B[2], x = y = B[3], R = m = B[4], r = 0; r < 80; r += 1) A = o + e[t + T[r]] | 0, A += r < 16 ? p(a, d, y) + z[0] : r < 32 ? _(a, d, y) + z[1] : r < 48 ? g(a, d, y) + z[2] : r < 64 ? v(a, d, y) + z[3] : w(a, d, y) + z[4], A = (A = b(A |= 0, C[r])) + m | 0, o = m, m = y, y = b(d, 10), d = a, a = A, A = k + e[t + M[r]] | 0, A += r < 16 ? w(E, S, x) + L[0] : r < 32 ? v(E, S, x) + L[1] : r < 48 ? g(E, S, x) + L[2] : r < 64 ? _(E, S, x) + L[3] : p(E, S, x) + L[4], A = (A = b(A |= 0, D[r])) + R | 0, k = R, R = x, x = b(S, 10), S = E, E = A;
  1395. A = B[1] + d + x | 0, B[1] = B[2] + y + R | 0, B[2] = B[3] + m + k | 0, B[3] = B[4] + o + E | 0, B[4] = B[0] + a + S | 0, B[0] = A;
  1396. },
  1397. _doFinalize: function () {
  1398. var e = this._data,
  1399. t = e.words,
  1400. r = 8 * this._nDataBytes,
  1401. n = 8 * e.sigBytes;
  1402. t[n >>> 5] |= 128 << 24 - n % 32, t[14 + (n + 64 >>> 9 << 4)] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8), e.sigBytes = 4 * (t.length + 1), this._process();
  1403. for (var i = this._hash, o = i.words, a = 0; a < 5; a++) {
  1404. var s = o[a];
  1405. o[a] = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8);
  1406. }
  1407. return i;
  1408. },
  1409. clone: function () {
  1410. var e = o.clone.call(this);
  1411. return e._hash = this._hash.clone(), e;
  1412. }
  1413. });
  1414. function p(e, t, r) {
  1415. return e ^ t ^ r;
  1416. }
  1417. function _(e, t, r) {
  1418. return e & t | ~e & r;
  1419. }
  1420. function g(e, t, r) {
  1421. return (e | ~t) ^ r;
  1422. }
  1423. function v(e, t, r) {
  1424. return e & r | t & ~r;
  1425. }
  1426. function w(e, t, r) {
  1427. return e ^ (t | ~r);
  1428. }
  1429. function b(e, t) {
  1430. return e << t | e >>> 32 - t;
  1431. }
  1432. t.RIPEMD160 = o._createHelper(d), t.HmacRIPEMD160 = o._createHmacHelper(d);
  1433. }(), r.RIPEMD160);
  1434. }), Q(function (e, t) {
  1435. var r, n, i, o, a, s;
  1436. e.exports = (n = (r = ee).lib, i = n.Base, o = r.enc, a = o.Utf8, s = r.algo, void (s.HMAC = i.extend({
  1437. init: function (e, t) {
  1438. e = this._hasher = new e.init(), "string" == typeof t && (t = a.parse(t));
  1439. var r = e.blockSize,
  1440. n = 4 * r;
  1441. t.sigBytes > n && (t = e.finalize(t)), t.clamp();
  1442. for (var i = this._oKey = t.clone(), o = this._iKey = t.clone(), s = i.words, h = o.words, l = 0; l < r; l++) s[l] ^= 1549556828, h[l] ^= 909522486;
  1443. i.sigBytes = o.sigBytes = n, this.reset();
  1444. },
  1445. reset: function () {
  1446. var e = this._hasher;
  1447. e.reset(), e.update(this._iKey);
  1448. },
  1449. update: function (e) {
  1450. return this._hasher.update(e), this;
  1451. },
  1452. finalize: function (e) {
  1453. var t = this._hasher,
  1454. r = t.finalize(e);
  1455. t.reset();
  1456. var n = t.finalize(this._oKey.clone().concat(r));
  1457. return n;
  1458. }
  1459. })));
  1460. }), Q(function (e, t) {
  1461. var r, n, i, o, a, s, h, l, f;
  1462. e.exports = (i = (n = r = ee).lib, o = i.Base, a = i.WordArray, s = n.algo, h = s.SHA1, l = s.HMAC, f = s.PBKDF2 = o.extend({
  1463. cfg: o.extend({
  1464. keySize: 4,
  1465. hasher: h,
  1466. iterations: 1
  1467. }),
  1468. init: function (e) {
  1469. this.cfg = this.cfg.extend(e);
  1470. },
  1471. compute: function (e, t) {
  1472. for (var r = this.cfg, n = l.create(r.hasher, e), i = a.create(), o = a.create([1]), s = i.words, h = o.words, f = r.keySize, c = r.iterations; s.length < f;) {
  1473. var u = n.update(t).finalize(o);
  1474. n.reset();
  1475. for (var d = u.words, p = d.length, _ = u, g = 1; g < c; g++) {
  1476. _ = n.finalize(_), n.reset();
  1477. for (var v = _.words, w = 0; w < p; w++) d[w] ^= v[w];
  1478. }
  1479. i.concat(u), h[0]++;
  1480. }
  1481. return i.sigBytes = 4 * f, i;
  1482. }
  1483. }), n.PBKDF2 = function (e, t, r) {
  1484. return f.create(r).compute(e, t);
  1485. }, r.PBKDF2);
  1486. }), Q(function (e, t) {
  1487. var r, n, i, o, a, s, h, l;
  1488. e.exports = (i = (n = r = ee).lib, o = i.Base, a = i.WordArray, s = n.algo, h = s.MD5, l = s.EvpKDF = o.extend({
  1489. cfg: o.extend({
  1490. keySize: 4,
  1491. hasher: h,
  1492. iterations: 1
  1493. }),
  1494. init: function (e) {
  1495. this.cfg = this.cfg.extend(e);
  1496. },
  1497. compute: function (e, t) {
  1498. for (var r = this.cfg, n = r.hasher.create(), i = a.create(), o = i.words, s = r.keySize, h = r.iterations; o.length < s;) {
  1499. l && n.update(l);
  1500. var l = n.update(e).finalize(t);
  1501. n.reset();
  1502. for (var f = 1; f < h; f++) l = n.finalize(l), n.reset();
  1503. i.concat(l);
  1504. }
  1505. return i.sigBytes = 4 * s, i;
  1506. }
  1507. }), n.EvpKDF = function (e, t, r) {
  1508. return l.create(r).compute(e, t);
  1509. }, r.EvpKDF);
  1510. }), Q(function (e, t) {
  1511. var r, n, i, o, a, s, h, l, f, c, u, d, p, _, g, v, w, b, y, m, k, E, S, x;
  1512. e.exports = void ((r = ee).lib.Cipher || (i = r, o = i.lib, a = o.Base, s = o.WordArray, h = o.BufferedBlockAlgorithm, l = i.enc, l.Utf8, f = l.Base64, c = i.algo, u = c.EvpKDF, d = o.Cipher = h.extend({
  1513. cfg: a.extend(),
  1514. createEncryptor: function (e, t) {
  1515. return this.create(this._ENC_XFORM_MODE, e, t);
  1516. },
  1517. createDecryptor: function (e, t) {
  1518. return this.create(this._DEC_XFORM_MODE, e, t);
  1519. },
  1520. init: function (e, t, r) {
  1521. this.cfg = this.cfg.extend(r), this._xformMode = e, this._key = t, this.reset();
  1522. },
  1523. reset: function () {
  1524. h.reset.call(this), this._doReset();
  1525. },
  1526. process: function (e) {
  1527. return this._append(e), this._process();
  1528. },
  1529. finalize: function (e) {
  1530. e && this._append(e);
  1531. var t = this._doFinalize();
  1532. return t;
  1533. },
  1534. keySize: 4,
  1535. ivSize: 4,
  1536. _ENC_XFORM_MODE: 1,
  1537. _DEC_XFORM_MODE: 2,
  1538. _createHelper: function () {
  1539. function e(e) {
  1540. return "string" == typeof e ? x : k;
  1541. }
  1542. return function (t) {
  1543. return {
  1544. encrypt: function (r, n, i) {
  1545. return e(n).encrypt(t, r, n, i);
  1546. },
  1547. decrypt: function (r, n, i) {
  1548. return e(n).decrypt(t, r, n, i);
  1549. }
  1550. };
  1551. };
  1552. }()
  1553. }), o.StreamCipher = d.extend({
  1554. _doFinalize: function () {
  1555. var e = this._process(!0);
  1556. return e;
  1557. },
  1558. blockSize: 1
  1559. }), p = i.mode = {}, _ = o.BlockCipherMode = a.extend({
  1560. createEncryptor: function (e, t) {
  1561. return this.Encryptor.create(e, t);
  1562. },
  1563. createDecryptor: function (e, t) {
  1564. return this.Decryptor.create(e, t);
  1565. },
  1566. init: function (e, t) {
  1567. this._cipher = e, this._iv = t;
  1568. }
  1569. }), g = p.CBC = function () {
  1570. var e = _.extend();
  1571. function t(e, t, r) {
  1572. var i = this._iv;
  1573. if (i) {
  1574. var o = i;
  1575. this._iv = n;
  1576. } else var o = this._prevBlock;
  1577. for (var a = 0; a < r; a++) e[t + a] ^= o[a];
  1578. }
  1579. return e.Encryptor = e.extend({
  1580. processBlock: function (e, r) {
  1581. var n = this._cipher,
  1582. i = n.blockSize;
  1583. t.call(this, e, r, i), n.encryptBlock(e, r), this._prevBlock = e.slice(r, r + i);
  1584. }
  1585. }), e.Decryptor = e.extend({
  1586. processBlock: function (e, r) {
  1587. var n = this._cipher,
  1588. i = n.blockSize,
  1589. o = e.slice(r, r + i);
  1590. n.decryptBlock(e, r), t.call(this, e, r, i), this._prevBlock = o;
  1591. }
  1592. }), e;
  1593. }(), v = i.pad = {}, w = v.Pkcs7 = {
  1594. pad: function (e, t) {
  1595. for (var r = 4 * t, n = r - e.sigBytes % r, i = n << 24 | n << 16 | n << 8 | n, o = [], a = 0; a < n; a += 4) o.push(i);
  1596. var h = s.create(o, n);
  1597. e.concat(h);
  1598. },
  1599. unpad: function (e) {
  1600. var t = 255 & e.words[e.sigBytes - 1 >>> 2];
  1601. e.sigBytes -= t;
  1602. }
  1603. }, o.BlockCipher = d.extend({
  1604. cfg: d.cfg.extend({
  1605. mode: g,
  1606. padding: w
  1607. }),
  1608. reset: function () {
  1609. d.reset.call(this);
  1610. var e = this.cfg,
  1611. t = e.iv,
  1612. r = e.mode;
  1613. if (this._xformMode == this._ENC_XFORM_MODE) var n = r.createEncryptor;else {
  1614. var n = r.createDecryptor;
  1615. this._minBufferSize = 1;
  1616. }
  1617. this._mode && this._mode.__creator == n ? this._mode.init(this, t && t.words) : (this._mode = n.call(r, this, t && t.words), this._mode.__creator = n);
  1618. },
  1619. _doProcessBlock: function (e, t) {
  1620. this._mode.processBlock(e, t);
  1621. },
  1622. _doFinalize: function () {
  1623. var e = this.cfg.padding;
  1624. if (this._xformMode == this._ENC_XFORM_MODE) {
  1625. e.pad(this._data, this.blockSize);
  1626. var t = this._process(!0);
  1627. } else {
  1628. var t = this._process(!0);
  1629. e.unpad(t);
  1630. }
  1631. return t;
  1632. },
  1633. blockSize: 4
  1634. }), b = o.CipherParams = a.extend({
  1635. init: function (e) {
  1636. this.mixIn(e);
  1637. },
  1638. toString: function (e) {
  1639. return (e || this.formatter).stringify(this);
  1640. }
  1641. }), y = i.format = {}, m = y.OpenSSL = {
  1642. stringify: function (e) {
  1643. var t = e.ciphertext,
  1644. r = e.salt;
  1645. if (r) var n = s.create([1398893684, 1701076831]).concat(r).concat(t);else var n = t;
  1646. return n.toString(f);
  1647. },
  1648. parse: function (e) {
  1649. var t = f.parse(e),
  1650. r = t.words;
  1651. if (1398893684 == r[0] && 1701076831 == r[1]) {
  1652. var n = s.create(r.slice(2, 4));
  1653. r.splice(0, 4), t.sigBytes -= 16;
  1654. }
  1655. return b.create({
  1656. ciphertext: t,
  1657. salt: n
  1658. });
  1659. }
  1660. }, k = o.SerializableCipher = a.extend({
  1661. cfg: a.extend({
  1662. format: m
  1663. }),
  1664. encrypt: function (e, t, r, n) {
  1665. n = this.cfg.extend(n);
  1666. var i = e.createEncryptor(r, n),
  1667. o = i.finalize(t),
  1668. a = i.cfg;
  1669. return b.create({
  1670. ciphertext: o,
  1671. key: r,
  1672. iv: a.iv,
  1673. algorithm: e,
  1674. mode: a.mode,
  1675. padding: a.padding,
  1676. blockSize: e.blockSize,
  1677. formatter: n.format
  1678. });
  1679. },
  1680. decrypt: function (e, t, r, n) {
  1681. n = this.cfg.extend(n), t = this._parse(t, n.format);
  1682. var i = e.createDecryptor(r, n).finalize(t.ciphertext);
  1683. return i;
  1684. },
  1685. _parse: function (e, t) {
  1686. return "string" == typeof e ? t.parse(e, this) : e;
  1687. }
  1688. }), E = i.kdf = {}, S = E.OpenSSL = {
  1689. execute: function (e, t, r, n) {
  1690. n || (n = s.random(8));
  1691. var i = u.create({
  1692. keySize: t + r
  1693. }).compute(e, n),
  1694. o = s.create(i.words.slice(t), 4 * r);
  1695. return i.sigBytes = 4 * t, b.create({
  1696. key: i,
  1697. iv: o,
  1698. salt: n
  1699. });
  1700. }
  1701. }, x = o.PasswordBasedCipher = k.extend({
  1702. cfg: k.cfg.extend({
  1703. kdf: S
  1704. }),
  1705. encrypt: function (e, t, r, n) {
  1706. var i = (n = this.cfg.extend(n)).kdf.execute(r, e.keySize, e.ivSize);
  1707. n.iv = i.iv;
  1708. var o = k.encrypt.call(this, e, t, i.key, n);
  1709. return o.mixIn(i), o;
  1710. },
  1711. decrypt: function (e, t, r, n) {
  1712. n = this.cfg.extend(n), t = this._parse(t, n.format);
  1713. var i = n.kdf.execute(r, e.keySize, e.ivSize, t.salt);
  1714. n.iv = i.iv;
  1715. var o = k.decrypt.call(this, e, t, i.key, n);
  1716. return o;
  1717. }
  1718. })));
  1719. }), Q(function (e, t) {
  1720. var r;
  1721. e.exports = ((r = ee).mode.CFB = function () {
  1722. var e = r.lib.BlockCipherMode.extend();
  1723. function t(e, t, r, n) {
  1724. var i = this._iv;
  1725. if (i) {
  1726. var o = i.slice(0);
  1727. this._iv = void 0;
  1728. } else o = this._prevBlock;
  1729. n.encryptBlock(o, 0);
  1730. for (var a = 0; a < r; a++) e[t + a] ^= o[a];
  1731. }
  1732. return e.Encryptor = e.extend({
  1733. processBlock: function (e, r) {
  1734. var n = this._cipher,
  1735. i = n.blockSize;
  1736. t.call(this, e, r, i, n), this._prevBlock = e.slice(r, r + i);
  1737. }
  1738. }), e.Decryptor = e.extend({
  1739. processBlock: function (e, r) {
  1740. var n = this._cipher,
  1741. i = n.blockSize,
  1742. o = e.slice(r, r + i);
  1743. t.call(this, e, r, i, n), this._prevBlock = o;
  1744. }
  1745. }), e;
  1746. }(), r.mode.CFB);
  1747. }), Q(function (e, t) {
  1748. var r, n, i;
  1749. e.exports = ((r = ee).mode.CTR = (n = r.lib.BlockCipherMode.extend(), i = n.Encryptor = n.extend({
  1750. processBlock: function (e, t) {
  1751. var r = this._cipher,
  1752. n = r.blockSize,
  1753. i = this._iv,
  1754. o = this._counter;
  1755. i && (o = this._counter = i.slice(0), this._iv = void 0);
  1756. var a = o.slice(0);
  1757. r.encryptBlock(a, 0), o[n - 1] = o[n - 1] + 1 | 0;
  1758. for (var s = 0; s < n; s++) e[t + s] ^= a[s];
  1759. }
  1760. }), n.Decryptor = i, n), r.mode.CTR);
  1761. }), Q(function (e, t) {
  1762. var r;
  1763. e.exports = ((r = ee).mode.CTRGladman = function () {
  1764. var e = r.lib.BlockCipherMode.extend();
  1765. function t(e) {
  1766. if (255 == (e >> 24 & 255)) {
  1767. var t = e >> 16 & 255,
  1768. r = e >> 8 & 255,
  1769. n = 255 & e;
  1770. 255 === t ? (t = 0, 255 === r ? (r = 0, 255 === n ? n = 0 : ++n) : ++r) : ++t, e = 0, e += t << 16, e += r << 8, e += n;
  1771. } else e += 1 << 24;
  1772. return e;
  1773. }
  1774. var n = e.Encryptor = e.extend({
  1775. processBlock: function (e, r) {
  1776. var n = this._cipher,
  1777. i = n.blockSize,
  1778. o = this._iv,
  1779. a = this._counter;
  1780. o && (a = this._counter = o.slice(0), this._iv = void 0), function (e) {
  1781. 0 === (e[0] = t(e[0])) && (e[1] = t(e[1]));
  1782. }(a);
  1783. var s = a.slice(0);
  1784. n.encryptBlock(s, 0);
  1785. for (var h = 0; h < i; h++) e[r + h] ^= s[h];
  1786. }
  1787. });
  1788. return e.Decryptor = n, e;
  1789. }(), r.mode.CTRGladman);
  1790. }), Q(function (e, t) {
  1791. var r, n, i;
  1792. e.exports = ((r = ee).mode.OFB = (n = r.lib.BlockCipherMode.extend(), i = n.Encryptor = n.extend({
  1793. processBlock: function (e, t) {
  1794. var r = this._cipher,
  1795. n = r.blockSize,
  1796. i = this._iv,
  1797. o = this._keystream;
  1798. i && (o = this._keystream = i.slice(0), this._iv = void 0), r.encryptBlock(o, 0);
  1799. for (var a = 0; a < n; a++) e[t + a] ^= o[a];
  1800. }
  1801. }), n.Decryptor = i, n), r.mode.OFB);
  1802. }), Q(function (e, t) {
  1803. var r, n;
  1804. e.exports = ((r = ee).mode.ECB = ((n = r.lib.BlockCipherMode.extend()).Encryptor = n.extend({
  1805. processBlock: function (e, t) {
  1806. this._cipher.encryptBlock(e, t);
  1807. }
  1808. }), n.Decryptor = n.extend({
  1809. processBlock: function (e, t) {
  1810. this._cipher.decryptBlock(e, t);
  1811. }
  1812. }), n), r.mode.ECB);
  1813. }), Q(function (e, t) {
  1814. var r;
  1815. e.exports = ((r = ee).pad.AnsiX923 = {
  1816. pad: function (e, t) {
  1817. var r = e.sigBytes,
  1818. n = 4 * t,
  1819. i = n - r % n,
  1820. o = r + i - 1;
  1821. e.clamp(), e.words[o >>> 2] |= i << 24 - o % 4 * 8, e.sigBytes += i;
  1822. },
  1823. unpad: function (e) {
  1824. var t = 255 & e.words[e.sigBytes - 1 >>> 2];
  1825. e.sigBytes -= t;
  1826. }
  1827. }, r.pad.Ansix923);
  1828. }), Q(function (e, t) {
  1829. var r;
  1830. e.exports = ((r = ee).pad.Iso10126 = {
  1831. pad: function (e, t) {
  1832. var n = 4 * t,
  1833. i = n - e.sigBytes % n;
  1834. e.concat(r.lib.WordArray.random(i - 1)).concat(r.lib.WordArray.create([i << 24], 1));
  1835. },
  1836. unpad: function (e) {
  1837. var t = 255 & e.words[e.sigBytes - 1 >>> 2];
  1838. e.sigBytes -= t;
  1839. }
  1840. }, r.pad.Iso10126);
  1841. }), Q(function (e, t) {
  1842. var r;
  1843. e.exports = ((r = ee).pad.Iso97971 = {
  1844. pad: function (e, t) {
  1845. e.concat(r.lib.WordArray.create([2147483648], 1)), r.pad.ZeroPadding.pad(e, t);
  1846. },
  1847. unpad: function (e) {
  1848. r.pad.ZeroPadding.unpad(e), e.sigBytes--;
  1849. }
  1850. }, r.pad.Iso97971);
  1851. }), Q(function (e, t) {
  1852. var r;
  1853. e.exports = ((r = ee).pad.ZeroPadding = {
  1854. pad: function (e, t) {
  1855. var r = 4 * t;
  1856. e.clamp(), e.sigBytes += r - (e.sigBytes % r || r);
  1857. },
  1858. unpad: function (e) {
  1859. for (var t = e.words, r = e.sigBytes - 1; !(t[r >>> 2] >>> 24 - r % 4 * 8 & 255);) r--;
  1860. e.sigBytes = r + 1;
  1861. }
  1862. }, r.pad.ZeroPadding);
  1863. }), Q(function (e, t) {
  1864. var r;
  1865. e.exports = ((r = ee).pad.NoPadding = {
  1866. pad: function () {},
  1867. unpad: function () {}
  1868. }, r.pad.NoPadding);
  1869. }), Q(function (e, t) {
  1870. var r, n, i, o;
  1871. e.exports = (i = (n = r = ee).lib.CipherParams, o = n.enc.Hex, n.format.Hex = {
  1872. stringify: function (e) {
  1873. return e.ciphertext.toString(o);
  1874. },
  1875. parse: function (e) {
  1876. var t = o.parse(e);
  1877. return i.create({
  1878. ciphertext: t
  1879. });
  1880. }
  1881. }, r.format.Hex);
  1882. }), Q(function (e, t) {
  1883. var r;
  1884. e.exports = (r = ee, function () {
  1885. var e = r,
  1886. t = e.lib.BlockCipher,
  1887. n = e.algo,
  1888. i = [],
  1889. o = [],
  1890. a = [],
  1891. s = [],
  1892. h = [],
  1893. l = [],
  1894. f = [],
  1895. c = [],
  1896. u = [],
  1897. d = [];
  1898. !function () {
  1899. for (var e = [], t = 0; t < 256; t++) e[t] = t < 128 ? t << 1 : t << 1 ^ 283;
  1900. var r = 0,
  1901. n = 0;
  1902. for (t = 0; t < 256; t++) {
  1903. var p = n ^ n << 1 ^ n << 2 ^ n << 3 ^ n << 4;
  1904. p = p >>> 8 ^ 255 & p ^ 99, i[r] = p, o[p] = r;
  1905. var _ = e[r],
  1906. g = e[_],
  1907. v = e[g],
  1908. w = 257 * e[p] ^ 16843008 * p;
  1909. a[r] = w << 24 | w >>> 8, s[r] = w << 16 | w >>> 16, h[r] = w << 8 | w >>> 24, l[r] = w, w = 16843009 * v ^ 65537 * g ^ 257 * _ ^ 16843008 * r, f[p] = w << 24 | w >>> 8, c[p] = w << 16 | w >>> 16, u[p] = w << 8 | w >>> 24, d[p] = w, r ? (r = _ ^ e[e[e[v ^ _]]], n ^= e[e[n]]) : r = n = 1;
  1910. }
  1911. }();
  1912. var p = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
  1913. _ = n.AES = t.extend({
  1914. _doReset: function () {
  1915. if (!this._nRounds || this._keyPriorReset !== this._key) {
  1916. for (var e = this._keyPriorReset = this._key, t = e.words, r = e.sigBytes / 4, n = 4 * ((this._nRounds = r + 6) + 1), o = this._keySchedule = [], a = 0; a < n; a++) if (a < r) o[a] = t[a];else {
  1917. var s = o[a - 1];
  1918. a % r ? r > 6 && a % r == 4 && (s = i[s >>> 24] << 24 | i[s >>> 16 & 255] << 16 | i[s >>> 8 & 255] << 8 | i[255 & s]) : (s = i[(s = s << 8 | s >>> 24) >>> 24] << 24 | i[s >>> 16 & 255] << 16 | i[s >>> 8 & 255] << 8 | i[255 & s], s ^= p[a / r | 0] << 24), o[a] = o[a - r] ^ s;
  1919. }
  1920. for (var h = this._invKeySchedule = [], l = 0; l < n; l++) a = n - l, s = l % 4 ? o[a] : o[a - 4], h[l] = l < 4 || a <= 4 ? s : f[i[s >>> 24]] ^ c[i[s >>> 16 & 255]] ^ u[i[s >>> 8 & 255]] ^ d[i[255 & s]];
  1921. }
  1922. },
  1923. encryptBlock: function (e, t) {
  1924. this._doCryptBlock(e, t, this._keySchedule, a, s, h, l, i);
  1925. },
  1926. decryptBlock: function (e, t) {
  1927. var r = e[t + 1];
  1928. e[t + 1] = e[t + 3], e[t + 3] = r, this._doCryptBlock(e, t, this._invKeySchedule, f, c, u, d, o), r = e[t + 1], e[t + 1] = e[t + 3], e[t + 3] = r;
  1929. },
  1930. _doCryptBlock: function (e, t, r, n, i, o, a, s) {
  1931. for (var h = this._nRounds, l = e[t] ^ r[0], f = e[t + 1] ^ r[1], c = e[t + 2] ^ r[2], u = e[t + 3] ^ r[3], d = 4, p = 1; p < h; p++) {
  1932. var _ = n[l >>> 24] ^ i[f >>> 16 & 255] ^ o[c >>> 8 & 255] ^ a[255 & u] ^ r[d++],
  1933. g = n[f >>> 24] ^ i[c >>> 16 & 255] ^ o[u >>> 8 & 255] ^ a[255 & l] ^ r[d++],
  1934. v = n[c >>> 24] ^ i[u >>> 16 & 255] ^ o[l >>> 8 & 255] ^ a[255 & f] ^ r[d++],
  1935. w = n[u >>> 24] ^ i[l >>> 16 & 255] ^ o[f >>> 8 & 255] ^ a[255 & c] ^ r[d++];
  1936. l = _, f = g, c = v, u = w;
  1937. }
  1938. _ = (s[l >>> 24] << 24 | s[f >>> 16 & 255] << 16 | s[c >>> 8 & 255] << 8 | s[255 & u]) ^ r[d++], g = (s[f >>> 24] << 24 | s[c >>> 16 & 255] << 16 | s[u >>> 8 & 255] << 8 | s[255 & l]) ^ r[d++], v = (s[c >>> 24] << 24 | s[u >>> 16 & 255] << 16 | s[l >>> 8 & 255] << 8 | s[255 & f]) ^ r[d++], w = (s[u >>> 24] << 24 | s[l >>> 16 & 255] << 16 | s[f >>> 8 & 255] << 8 | s[255 & c]) ^ r[d++], e[t] = _, e[t + 1] = g, e[t + 2] = v, e[t + 3] = w;
  1939. },
  1940. keySize: 8
  1941. });
  1942. e.AES = t._createHelper(_);
  1943. }(), r.AES);
  1944. }), Q(function (e, t) {
  1945. var r;
  1946. e.exports = (r = ee, function () {
  1947. var e = r,
  1948. t = e.lib,
  1949. n = t.WordArray,
  1950. i = t.BlockCipher,
  1951. o = e.algo,
  1952. 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],
  1953. s = [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],
  1954. h = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28],
  1955. l = [{
  1956. 0: 8421888,
  1957. 268435456: 32768,
  1958. 536870912: 8421378,
  1959. 805306368: 2,
  1960. 1073741824: 512,
  1961. 1342177280: 8421890,
  1962. 1610612736: 8389122,
  1963. 1879048192: 8388608,
  1964. 2147483648: 514,
  1965. 2415919104: 8389120,
  1966. 2684354560: 33280,
  1967. 2952790016: 8421376,
  1968. 3221225472: 32770,
  1969. 3489660928: 8388610,
  1970. 3758096384: 0,
  1971. 4026531840: 33282,
  1972. 134217728: 0,
  1973. 402653184: 8421890,
  1974. 671088640: 33282,
  1975. 939524096: 32768,
  1976. 1207959552: 8421888,
  1977. 1476395008: 512,
  1978. 1744830464: 8421378,
  1979. 2013265920: 2,
  1980. 2281701376: 8389120,
  1981. 2550136832: 33280,
  1982. 2818572288: 8421376,
  1983. 3087007744: 8389122,
  1984. 3355443200: 8388610,
  1985. 3623878656: 32770,
  1986. 3892314112: 514,
  1987. 4160749568: 8388608,
  1988. 1: 32768,
  1989. 268435457: 2,
  1990. 536870913: 8421888,
  1991. 805306369: 8388608,
  1992. 1073741825: 8421378,
  1993. 1342177281: 33280,
  1994. 1610612737: 512,
  1995. 1879048193: 8389122,
  1996. 2147483649: 8421890,
  1997. 2415919105: 8421376,
  1998. 2684354561: 8388610,
  1999. 2952790017: 33282,
  2000. 3221225473: 514,
  2001. 3489660929: 8389120,
  2002. 3758096385: 32770,
  2003. 4026531841: 0,
  2004. 134217729: 8421890,
  2005. 402653185: 8421376,
  2006. 671088641: 8388608,
  2007. 939524097: 512,
  2008. 1207959553: 32768,
  2009. 1476395009: 8388610,
  2010. 1744830465: 2,
  2011. 2013265921: 33282,
  2012. 2281701377: 32770,
  2013. 2550136833: 8389122,
  2014. 2818572289: 514,
  2015. 3087007745: 8421888,
  2016. 3355443201: 8389120,
  2017. 3623878657: 0,
  2018. 3892314113: 33280,
  2019. 4160749569: 8421378
  2020. }, {
  2021. 0: 1074282512,
  2022. 16777216: 16384,
  2023. 33554432: 524288,
  2024. 50331648: 1074266128,
  2025. 67108864: 1073741840,
  2026. 83886080: 1074282496,
  2027. 100663296: 1073758208,
  2028. 117440512: 16,
  2029. 134217728: 540672,
  2030. 150994944: 1073758224,
  2031. 167772160: 1073741824,
  2032. 184549376: 540688,
  2033. 201326592: 524304,
  2034. 218103808: 0,
  2035. 234881024: 16400,
  2036. 251658240: 1074266112,
  2037. 8388608: 1073758208,
  2038. 25165824: 540688,
  2039. 41943040: 16,
  2040. 58720256: 1073758224,
  2041. 75497472: 1074282512,
  2042. 92274688: 1073741824,
  2043. 109051904: 524288,
  2044. 125829120: 1074266128,
  2045. 142606336: 524304,
  2046. 159383552: 0,
  2047. 176160768: 16384,
  2048. 192937984: 1074266112,
  2049. 209715200: 1073741840,
  2050. 226492416: 540672,
  2051. 243269632: 1074282496,
  2052. 260046848: 16400,
  2053. 268435456: 0,
  2054. 285212672: 1074266128,
  2055. 301989888: 1073758224,
  2056. 318767104: 1074282496,
  2057. 335544320: 1074266112,
  2058. 352321536: 16,
  2059. 369098752: 540688,
  2060. 385875968: 16384,
  2061. 402653184: 16400,
  2062. 419430400: 524288,
  2063. 436207616: 524304,
  2064. 452984832: 1073741840,
  2065. 469762048: 540672,
  2066. 486539264: 1073758208,
  2067. 503316480: 1073741824,
  2068. 520093696: 1074282512,
  2069. 276824064: 540688,
  2070. 293601280: 524288,
  2071. 310378496: 1074266112,
  2072. 327155712: 16384,
  2073. 343932928: 1073758208,
  2074. 360710144: 1074282512,
  2075. 377487360: 16,
  2076. 394264576: 1073741824,
  2077. 411041792: 1074282496,
  2078. 427819008: 1073741840,
  2079. 444596224: 1073758224,
  2080. 461373440: 524304,
  2081. 478150656: 0,
  2082. 494927872: 16400,
  2083. 511705088: 1074266128,
  2084. 528482304: 540672
  2085. }, {
  2086. 0: 260,
  2087. 1048576: 0,
  2088. 2097152: 67109120,
  2089. 3145728: 65796,
  2090. 4194304: 65540,
  2091. 5242880: 67108868,
  2092. 6291456: 67174660,
  2093. 7340032: 67174400,
  2094. 8388608: 67108864,
  2095. 9437184: 67174656,
  2096. 10485760: 65792,
  2097. 11534336: 67174404,
  2098. 12582912: 67109124,
  2099. 13631488: 65536,
  2100. 14680064: 4,
  2101. 15728640: 256,
  2102. 524288: 67174656,
  2103. 1572864: 67174404,
  2104. 2621440: 0,
  2105. 3670016: 67109120,
  2106. 4718592: 67108868,
  2107. 5767168: 65536,
  2108. 6815744: 65540,
  2109. 7864320: 260,
  2110. 8912896: 4,
  2111. 9961472: 256,
  2112. 11010048: 67174400,
  2113. 12058624: 65796,
  2114. 13107200: 65792,
  2115. 14155776: 67109124,
  2116. 15204352: 67174660,
  2117. 16252928: 67108864,
  2118. 16777216: 67174656,
  2119. 17825792: 65540,
  2120. 18874368: 65536,
  2121. 19922944: 67109120,
  2122. 20971520: 256,
  2123. 22020096: 67174660,
  2124. 23068672: 67108868,
  2125. 24117248: 0,
  2126. 25165824: 67109124,
  2127. 26214400: 67108864,
  2128. 27262976: 4,
  2129. 28311552: 65792,
  2130. 29360128: 67174400,
  2131. 30408704: 260,
  2132. 31457280: 65796,
  2133. 32505856: 67174404,
  2134. 17301504: 67108864,
  2135. 18350080: 260,
  2136. 19398656: 67174656,
  2137. 20447232: 0,
  2138. 21495808: 65540,
  2139. 22544384: 67109120,
  2140. 23592960: 256,
  2141. 24641536: 67174404,
  2142. 25690112: 65536,
  2143. 26738688: 67174660,
  2144. 27787264: 65796,
  2145. 28835840: 67108868,
  2146. 29884416: 67109124,
  2147. 30932992: 67174400,
  2148. 31981568: 4,
  2149. 33030144: 65792
  2150. }, {
  2151. 0: 2151682048,
  2152. 65536: 2147487808,
  2153. 131072: 4198464,
  2154. 196608: 2151677952,
  2155. 262144: 0,
  2156. 327680: 4198400,
  2157. 393216: 2147483712,
  2158. 458752: 4194368,
  2159. 524288: 2147483648,
  2160. 589824: 4194304,
  2161. 655360: 64,
  2162. 720896: 2147487744,
  2163. 786432: 2151678016,
  2164. 851968: 4160,
  2165. 917504: 4096,
  2166. 983040: 2151682112,
  2167. 32768: 2147487808,
  2168. 98304: 64,
  2169. 163840: 2151678016,
  2170. 229376: 2147487744,
  2171. 294912: 4198400,
  2172. 360448: 2151682112,
  2173. 425984: 0,
  2174. 491520: 2151677952,
  2175. 557056: 4096,
  2176. 622592: 2151682048,
  2177. 688128: 4194304,
  2178. 753664: 4160,
  2179. 819200: 2147483648,
  2180. 884736: 4194368,
  2181. 950272: 4198464,
  2182. 1015808: 2147483712,
  2183. 1048576: 4194368,
  2184. 1114112: 4198400,
  2185. 1179648: 2147483712,
  2186. 1245184: 0,
  2187. 1310720: 4160,
  2188. 1376256: 2151678016,
  2189. 1441792: 2151682048,
  2190. 1507328: 2147487808,
  2191. 1572864: 2151682112,
  2192. 1638400: 2147483648,
  2193. 1703936: 2151677952,
  2194. 1769472: 4198464,
  2195. 1835008: 2147487744,
  2196. 1900544: 4194304,
  2197. 1966080: 64,
  2198. 2031616: 4096,
  2199. 1081344: 2151677952,
  2200. 1146880: 2151682112,
  2201. 1212416: 0,
  2202. 1277952: 4198400,
  2203. 1343488: 4194368,
  2204. 1409024: 2147483648,
  2205. 1474560: 2147487808,
  2206. 1540096: 64,
  2207. 1605632: 2147483712,
  2208. 1671168: 4096,
  2209. 1736704: 2147487744,
  2210. 1802240: 2151678016,
  2211. 1867776: 4160,
  2212. 1933312: 2151682048,
  2213. 1998848: 4194304,
  2214. 2064384: 4198464
  2215. }, {
  2216. 0: 128,
  2217. 4096: 17039360,
  2218. 8192: 262144,
  2219. 12288: 536870912,
  2220. 16384: 537133184,
  2221. 20480: 16777344,
  2222. 24576: 553648256,
  2223. 28672: 262272,
  2224. 32768: 16777216,
  2225. 36864: 537133056,
  2226. 40960: 536871040,
  2227. 45056: 553910400,
  2228. 49152: 553910272,
  2229. 53248: 0,
  2230. 57344: 17039488,
  2231. 61440: 553648128,
  2232. 2048: 17039488,
  2233. 6144: 553648256,
  2234. 10240: 128,
  2235. 14336: 17039360,
  2236. 18432: 262144,
  2237. 22528: 537133184,
  2238. 26624: 553910272,
  2239. 30720: 536870912,
  2240. 34816: 537133056,
  2241. 38912: 0,
  2242. 43008: 553910400,
  2243. 47104: 16777344,
  2244. 51200: 536871040,
  2245. 55296: 553648128,
  2246. 59392: 16777216,
  2247. 63488: 262272,
  2248. 65536: 262144,
  2249. 69632: 128,
  2250. 73728: 536870912,
  2251. 77824: 553648256,
  2252. 81920: 16777344,
  2253. 86016: 553910272,
  2254. 90112: 537133184,
  2255. 94208: 16777216,
  2256. 98304: 553910400,
  2257. 102400: 553648128,
  2258. 106496: 17039360,
  2259. 110592: 537133056,
  2260. 114688: 262272,
  2261. 118784: 536871040,
  2262. 122880: 0,
  2263. 126976: 17039488,
  2264. 67584: 553648256,
  2265. 71680: 16777216,
  2266. 75776: 17039360,
  2267. 79872: 537133184,
  2268. 83968: 536870912,
  2269. 88064: 17039488,
  2270. 92160: 128,
  2271. 96256: 553910272,
  2272. 100352: 262272,
  2273. 104448: 553910400,
  2274. 108544: 0,
  2275. 112640: 553648128,
  2276. 116736: 16777344,
  2277. 120832: 262144,
  2278. 124928: 537133056,
  2279. 129024: 536871040
  2280. }, {
  2281. 0: 268435464,
  2282. 256: 8192,
  2283. 512: 270532608,
  2284. 768: 270540808,
  2285. 1024: 268443648,
  2286. 1280: 2097152,
  2287. 1536: 2097160,
  2288. 1792: 268435456,
  2289. 2048: 0,
  2290. 2304: 268443656,
  2291. 2560: 2105344,
  2292. 2816: 8,
  2293. 3072: 270532616,
  2294. 3328: 2105352,
  2295. 3584: 8200,
  2296. 3840: 270540800,
  2297. 128: 270532608,
  2298. 384: 270540808,
  2299. 640: 8,
  2300. 896: 2097152,
  2301. 1152: 2105352,
  2302. 1408: 268435464,
  2303. 1664: 268443648,
  2304. 1920: 8200,
  2305. 2176: 2097160,
  2306. 2432: 8192,
  2307. 2688: 268443656,
  2308. 2944: 270532616,
  2309. 3200: 0,
  2310. 3456: 270540800,
  2311. 3712: 2105344,
  2312. 3968: 268435456,
  2313. 4096: 268443648,
  2314. 4352: 270532616,
  2315. 4608: 270540808,
  2316. 4864: 8200,
  2317. 5120: 2097152,
  2318. 5376: 268435456,
  2319. 5632: 268435464,
  2320. 5888: 2105344,
  2321. 6144: 2105352,
  2322. 6400: 0,
  2323. 6656: 8,
  2324. 6912: 270532608,
  2325. 7168: 8192,
  2326. 7424: 268443656,
  2327. 7680: 270540800,
  2328. 7936: 2097160,
  2329. 4224: 8,
  2330. 4480: 2105344,
  2331. 4736: 2097152,
  2332. 4992: 268435464,
  2333. 5248: 268443648,
  2334. 5504: 8200,
  2335. 5760: 270540808,
  2336. 6016: 270532608,
  2337. 6272: 270540800,
  2338. 6528: 270532616,
  2339. 6784: 8192,
  2340. 7040: 2105352,
  2341. 7296: 2097160,
  2342. 7552: 0,
  2343. 7808: 268435456,
  2344. 8064: 268443656
  2345. }, {
  2346. 0: 1048576,
  2347. 16: 33555457,
  2348. 32: 1024,
  2349. 48: 1049601,
  2350. 64: 34604033,
  2351. 80: 0,
  2352. 96: 1,
  2353. 112: 34603009,
  2354. 128: 33555456,
  2355. 144: 1048577,
  2356. 160: 33554433,
  2357. 176: 34604032,
  2358. 192: 34603008,
  2359. 208: 1025,
  2360. 224: 1049600,
  2361. 240: 33554432,
  2362. 8: 34603009,
  2363. 24: 0,
  2364. 40: 33555457,
  2365. 56: 34604032,
  2366. 72: 1048576,
  2367. 88: 33554433,
  2368. 104: 33554432,
  2369. 120: 1025,
  2370. 136: 1049601,
  2371. 152: 33555456,
  2372. 168: 34603008,
  2373. 184: 1048577,
  2374. 200: 1024,
  2375. 216: 34604033,
  2376. 232: 1,
  2377. 248: 1049600,
  2378. 256: 33554432,
  2379. 272: 1048576,
  2380. 288: 33555457,
  2381. 304: 34603009,
  2382. 320: 1048577,
  2383. 336: 33555456,
  2384. 352: 34604032,
  2385. 368: 1049601,
  2386. 384: 1025,
  2387. 400: 34604033,
  2388. 416: 1049600,
  2389. 432: 1,
  2390. 448: 0,
  2391. 464: 34603008,
  2392. 480: 33554433,
  2393. 496: 1024,
  2394. 264: 1049600,
  2395. 280: 33555457,
  2396. 296: 34603009,
  2397. 312: 1,
  2398. 328: 33554432,
  2399. 344: 1048576,
  2400. 360: 1025,
  2401. 376: 34604032,
  2402. 392: 33554433,
  2403. 408: 34603008,
  2404. 424: 0,
  2405. 440: 34604033,
  2406. 456: 1049601,
  2407. 472: 1024,
  2408. 488: 33555456,
  2409. 504: 1048577
  2410. }, {
  2411. 0: 134219808,
  2412. 1: 131072,
  2413. 2: 134217728,
  2414. 3: 32,
  2415. 4: 131104,
  2416. 5: 134350880,
  2417. 6: 134350848,
  2418. 7: 2048,
  2419. 8: 134348800,
  2420. 9: 134219776,
  2421. 10: 133120,
  2422. 11: 134348832,
  2423. 12: 2080,
  2424. 13: 0,
  2425. 14: 134217760,
  2426. 15: 133152,
  2427. 2147483648: 2048,
  2428. 2147483649: 134350880,
  2429. 2147483650: 134219808,
  2430. 2147483651: 134217728,
  2431. 2147483652: 134348800,
  2432. 2147483653: 133120,
  2433. 2147483654: 133152,
  2434. 2147483655: 32,
  2435. 2147483656: 134217760,
  2436. 2147483657: 2080,
  2437. 2147483658: 131104,
  2438. 2147483659: 134350848,
  2439. 2147483660: 0,
  2440. 2147483661: 134348832,
  2441. 2147483662: 134219776,
  2442. 2147483663: 131072,
  2443. 16: 133152,
  2444. 17: 134350848,
  2445. 18: 32,
  2446. 19: 2048,
  2447. 20: 134219776,
  2448. 21: 134217760,
  2449. 22: 134348832,
  2450. 23: 131072,
  2451. 24: 0,
  2452. 25: 131104,
  2453. 26: 134348800,
  2454. 27: 134219808,
  2455. 28: 134350880,
  2456. 29: 133120,
  2457. 30: 2080,
  2458. 31: 134217728,
  2459. 2147483664: 131072,
  2460. 2147483665: 2048,
  2461. 2147483666: 134348832,
  2462. 2147483667: 133152,
  2463. 2147483668: 32,
  2464. 2147483669: 134348800,
  2465. 2147483670: 134217728,
  2466. 2147483671: 134219808,
  2467. 2147483672: 134350880,
  2468. 2147483673: 134217760,
  2469. 2147483674: 134219776,
  2470. 2147483675: 0,
  2471. 2147483676: 133120,
  2472. 2147483677: 2080,
  2473. 2147483678: 131104,
  2474. 2147483679: 134350848
  2475. }],
  2476. f = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679],
  2477. c = o.DES = i.extend({
  2478. _doReset: function () {
  2479. for (var e = this._key.words, t = [], r = 0; r < 56; r++) {
  2480. var n = a[r] - 1;
  2481. t[r] = e[n >>> 5] >>> 31 - n % 32 & 1;
  2482. }
  2483. for (var i = this._subKeys = [], o = 0; o < 16; o++) {
  2484. var l = i[o] = [],
  2485. f = h[o];
  2486. for (r = 0; r < 24; r++) l[r / 6 | 0] |= t[(s[r] - 1 + f) % 28] << 31 - r % 6, l[4 + (r / 6 | 0)] |= t[28 + (s[r + 24] - 1 + f) % 28] << 31 - r % 6;
  2487. for (l[0] = l[0] << 1 | l[0] >>> 31, r = 1; r < 7; r++) l[r] = l[r] >>> 4 * (r - 1) + 3;
  2488. l[7] = l[7] << 5 | l[7] >>> 27;
  2489. }
  2490. var c = this._invSubKeys = [];
  2491. for (r = 0; r < 16; r++) c[r] = i[15 - r];
  2492. },
  2493. encryptBlock: function (e, t) {
  2494. this._doCryptBlock(e, t, this._subKeys);
  2495. },
  2496. decryptBlock: function (e, t) {
  2497. this._doCryptBlock(e, t, this._invSubKeys);
  2498. },
  2499. _doCryptBlock: function (e, t, r) {
  2500. this._lBlock = e[t], this._rBlock = e[t + 1], u.call(this, 4, 252645135), u.call(this, 16, 65535), d.call(this, 2, 858993459), d.call(this, 8, 16711935), u.call(this, 1, 1431655765);
  2501. for (var n = 0; n < 16; n++) {
  2502. for (var i = r[n], o = this._lBlock, a = this._rBlock, s = 0, h = 0; h < 8; h++) s |= l[h][((a ^ i[h]) & f[h]) >>> 0];
  2503. this._lBlock = a, this._rBlock = o ^ s;
  2504. }
  2505. var c = this._lBlock;
  2506. this._lBlock = this._rBlock, this._rBlock = c, u.call(this, 1, 1431655765), d.call(this, 8, 16711935), d.call(this, 2, 858993459), u.call(this, 16, 65535), u.call(this, 4, 252645135), e[t] = this._lBlock, e[t + 1] = this._rBlock;
  2507. },
  2508. keySize: 2,
  2509. ivSize: 2,
  2510. blockSize: 2
  2511. });
  2512. function u(e, t) {
  2513. var r = (this._lBlock >>> e ^ this._rBlock) & t;
  2514. this._rBlock ^= r, this._lBlock ^= r << e;
  2515. }
  2516. function d(e, t) {
  2517. var r = (this._rBlock >>> e ^ this._lBlock) & t;
  2518. this._lBlock ^= r, this._rBlock ^= r << e;
  2519. }
  2520. e.DES = i._createHelper(c);
  2521. var p = o.TripleDES = i.extend({
  2522. _doReset: function () {
  2523. var e = this._key.words;
  2524. this._des1 = c.createEncryptor(n.create(e.slice(0, 2))), this._des2 = c.createEncryptor(n.create(e.slice(2, 4))), this._des3 = c.createEncryptor(n.create(e.slice(4, 6)));
  2525. },
  2526. encryptBlock: function (e, t) {
  2527. this._des1.encryptBlock(e, t), this._des2.decryptBlock(e, t), this._des3.encryptBlock(e, t);
  2528. },
  2529. decryptBlock: function (e, t) {
  2530. this._des3.decryptBlock(e, t), this._des2.encryptBlock(e, t), this._des1.decryptBlock(e, t);
  2531. },
  2532. keySize: 6,
  2533. ivSize: 2,
  2534. blockSize: 2
  2535. });
  2536. e.TripleDES = i._createHelper(p);
  2537. }(), r.TripleDES);
  2538. }), Q(function (e, t) {
  2539. var r;
  2540. e.exports = (r = ee, function () {
  2541. var e = r,
  2542. t = e.lib.StreamCipher,
  2543. n = e.algo,
  2544. i = n.RC4 = t.extend({
  2545. _doReset: function () {
  2546. for (var e = this._key, t = e.words, r = e.sigBytes, n = this._S = [], i = 0; i < 256; i++) n[i] = i;
  2547. i = 0;
  2548. for (var o = 0; i < 256; i++) {
  2549. var a = i % r,
  2550. s = t[a >>> 2] >>> 24 - a % 4 * 8 & 255;
  2551. o = (o + n[i] + s) % 256;
  2552. var h = n[i];
  2553. n[i] = n[o], n[o] = h;
  2554. }
  2555. this._i = this._j = 0;
  2556. },
  2557. _doProcessBlock: function (e, t) {
  2558. e[t] ^= o.call(this);
  2559. },
  2560. keySize: 8,
  2561. ivSize: 0
  2562. });
  2563. function o() {
  2564. for (var e = this._S, t = this._i, r = this._j, n = 0, i = 0; i < 4; i++) {
  2565. r = (r + e[t = (t + 1) % 256]) % 256;
  2566. var o = e[t];
  2567. e[t] = e[r], e[r] = o, n |= e[(e[t] + e[r]) % 256] << 24 - 8 * i;
  2568. }
  2569. return this._i = t, this._j = r, n;
  2570. }
  2571. e.RC4 = t._createHelper(i);
  2572. var a = n.RC4Drop = i.extend({
  2573. cfg: i.cfg.extend({
  2574. drop: 192
  2575. }),
  2576. _doReset: function () {
  2577. i._doReset.call(this);
  2578. for (var e = this.cfg.drop; e > 0; e--) o.call(this);
  2579. }
  2580. });
  2581. e.RC4Drop = t._createHelper(a);
  2582. }(), r.RC4);
  2583. }), Q(function (e, t) {
  2584. var r;
  2585. e.exports = (r = ee, function () {
  2586. var e = r,
  2587. t = e.lib.StreamCipher,
  2588. n = e.algo,
  2589. i = [],
  2590. o = [],
  2591. a = [],
  2592. s = n.Rabbit = t.extend({
  2593. _doReset: function () {
  2594. for (var e = this._key.words, t = this.cfg.iv, r = 0; r < 4; r++) e[r] = 16711935 & (e[r] << 8 | e[r] >>> 24) | 4278255360 & (e[r] << 24 | e[r] >>> 8);
  2595. var 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],
  2596. 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]];
  2597. for (this._b = 0, r = 0; r < 4; r++) h.call(this);
  2598. for (r = 0; r < 8; r++) i[r] ^= n[r + 4 & 7];
  2599. if (t) {
  2600. var o = t.words,
  2601. a = o[0],
  2602. s = o[1],
  2603. l = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8),
  2604. f = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8),
  2605. c = l >>> 16 | 4294901760 & f,
  2606. u = f << 16 | 65535 & l;
  2607. for (i[0] ^= l, i[1] ^= c, i[2] ^= f, i[3] ^= u, i[4] ^= l, i[5] ^= c, i[6] ^= f, i[7] ^= u, r = 0; r < 4; r++) h.call(this);
  2608. }
  2609. },
  2610. _doProcessBlock: function (e, t) {
  2611. var r = this._X;
  2612. h.call(this), i[0] = r[0] ^ r[5] >>> 16 ^ r[3] << 16, i[1] = r[2] ^ r[7] >>> 16 ^ r[5] << 16, i[2] = r[4] ^ r[1] >>> 16 ^ r[7] << 16, i[3] = r[6] ^ r[3] >>> 16 ^ r[1] << 16;
  2613. for (var n = 0; n < 4; n++) i[n] = 16711935 & (i[n] << 8 | i[n] >>> 24) | 4278255360 & (i[n] << 24 | i[n] >>> 8), e[t + n] ^= i[n];
  2614. },
  2615. blockSize: 4,
  2616. ivSize: 2
  2617. });
  2618. function h() {
  2619. for (var e = this._X, t = this._C, r = 0; r < 8; r++) o[r] = t[r];
  2620. for (t[0] = t[0] + 1295307597 + this._b | 0, t[1] = t[1] + 3545052371 + (t[0] >>> 0 < o[0] >>> 0 ? 1 : 0) | 0, t[2] = t[2] + 886263092 + (t[1] >>> 0 < o[1] >>> 0 ? 1 : 0) | 0, t[3] = t[3] + 1295307597 + (t[2] >>> 0 < o[2] >>> 0 ? 1 : 0) | 0, t[4] = t[4] + 3545052371 + (t[3] >>> 0 < o[3] >>> 0 ? 1 : 0) | 0, t[5] = t[5] + 886263092 + (t[4] >>> 0 < o[4] >>> 0 ? 1 : 0) | 0, t[6] = t[6] + 1295307597 + (t[5] >>> 0 < o[5] >>> 0 ? 1 : 0) | 0, t[7] = t[7] + 3545052371 + (t[6] >>> 0 < o[6] >>> 0 ? 1 : 0) | 0, this._b = t[7] >>> 0 < o[7] >>> 0 ? 1 : 0, r = 0; r < 8; r++) {
  2621. var n = e[r] + t[r],
  2622. i = 65535 & n,
  2623. s = n >>> 16,
  2624. h = ((i * i >>> 17) + i * s >>> 15) + s * s,
  2625. l = ((4294901760 & n) * n | 0) + ((65535 & n) * n | 0);
  2626. a[r] = h ^ l;
  2627. }
  2628. 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;
  2629. }
  2630. e.Rabbit = t._createHelper(s);
  2631. }(), r.Rabbit);
  2632. }), Q(function (e, t) {
  2633. var r;
  2634. e.exports = (r = ee, function () {
  2635. var e = r,
  2636. t = e.lib.StreamCipher,
  2637. n = e.algo,
  2638. i = [],
  2639. o = [],
  2640. a = [],
  2641. s = n.RabbitLegacy = t.extend({
  2642. _doReset: function () {
  2643. var e = this._key.words,
  2644. t = this.cfg.iv,
  2645. 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],
  2646. n = 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]];
  2647. this._b = 0;
  2648. for (var i = 0; i < 4; i++) h.call(this);
  2649. for (i = 0; i < 8; i++) n[i] ^= r[i + 4 & 7];
  2650. if (t) {
  2651. var o = t.words,
  2652. a = o[0],
  2653. s = o[1],
  2654. l = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8),
  2655. f = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8),
  2656. c = l >>> 16 | 4294901760 & f,
  2657. u = f << 16 | 65535 & l;
  2658. for (n[0] ^= l, n[1] ^= c, n[2] ^= f, n[3] ^= u, n[4] ^= l, n[5] ^= c, n[6] ^= f, n[7] ^= u, i = 0; i < 4; i++) h.call(this);
  2659. }
  2660. },
  2661. _doProcessBlock: function (e, t) {
  2662. var r = this._X;
  2663. h.call(this), i[0] = r[0] ^ r[5] >>> 16 ^ r[3] << 16, i[1] = r[2] ^ r[7] >>> 16 ^ r[5] << 16, i[2] = r[4] ^ r[1] >>> 16 ^ r[7] << 16, i[3] = r[6] ^ r[3] >>> 16 ^ r[1] << 16;
  2664. for (var n = 0; n < 4; n++) i[n] = 16711935 & (i[n] << 8 | i[n] >>> 24) | 4278255360 & (i[n] << 24 | i[n] >>> 8), e[t + n] ^= i[n];
  2665. },
  2666. blockSize: 4,
  2667. ivSize: 2
  2668. });
  2669. function h() {
  2670. for (var e = this._X, t = this._C, r = 0; r < 8; r++) o[r] = t[r];
  2671. for (t[0] = t[0] + 1295307597 + this._b | 0, t[1] = t[1] + 3545052371 + (t[0] >>> 0 < o[0] >>> 0 ? 1 : 0) | 0, t[2] = t[2] + 886263092 + (t[1] >>> 0 < o[1] >>> 0 ? 1 : 0) | 0, t[3] = t[3] + 1295307597 + (t[2] >>> 0 < o[2] >>> 0 ? 1 : 0) | 0, t[4] = t[4] + 3545052371 + (t[3] >>> 0 < o[3] >>> 0 ? 1 : 0) | 0, t[5] = t[5] + 886263092 + (t[4] >>> 0 < o[4] >>> 0 ? 1 : 0) | 0, t[6] = t[6] + 1295307597 + (t[5] >>> 0 < o[5] >>> 0 ? 1 : 0) | 0, t[7] = t[7] + 3545052371 + (t[6] >>> 0 < o[6] >>> 0 ? 1 : 0) | 0, this._b = t[7] >>> 0 < o[7] >>> 0 ? 1 : 0, r = 0; r < 8; r++) {
  2672. var n = e[r] + t[r],
  2673. i = 65535 & n,
  2674. s = n >>> 16,
  2675. h = ((i * i >>> 17) + i * s >>> 15) + s * s,
  2676. l = ((4294901760 & n) * n | 0) + ((65535 & n) * n | 0);
  2677. a[r] = h ^ l;
  2678. }
  2679. 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;
  2680. }
  2681. e.RabbitLegacy = t._createHelper(s);
  2682. }(), r.RabbitLegacy);
  2683. }), Q(function (e, t) {
  2684. e.exports = ee;
  2685. }));
  2686. function re() {
  2687. throw new Error("setTimeout has not been defined");
  2688. }
  2689. function ne() {
  2690. throw new Error("clearTimeout has not been defined");
  2691. }
  2692. var ie = re,
  2693. oe = ne;
  2694. function ae(e) {
  2695. if (ie === setTimeout) return setTimeout(e, 0);
  2696. if ((ie === re || !ie) && setTimeout) return ie = setTimeout, setTimeout(e, 0);
  2697. try {
  2698. return ie(e, 0);
  2699. } catch (t) {
  2700. try {
  2701. return ie.call(null, e, 0);
  2702. } catch (t) {
  2703. return ie.call(this, e, 0);
  2704. }
  2705. }
  2706. }
  2707. "function" == typeof e.setTimeout && (ie = setTimeout), "function" == typeof e.clearTimeout && (oe = clearTimeout);
  2708. var se,
  2709. he = [],
  2710. le = !1,
  2711. fe = -1;
  2712. function ce() {
  2713. le && se && (le = !1, se.length ? he = se.concat(he) : fe = -1, he.length && ue());
  2714. }
  2715. function ue() {
  2716. if (!le) {
  2717. var e = ae(ce);
  2718. le = !0;
  2719. for (var t = he.length; t;) {
  2720. for (se = he, he = []; ++fe < t;) se && se[fe].run();
  2721. fe = -1, t = he.length;
  2722. }
  2723. se = null, le = !1, function (e) {
  2724. if (oe === clearTimeout) return clearTimeout(e);
  2725. if ((oe === ne || !oe) && clearTimeout) return oe = clearTimeout, clearTimeout(e);
  2726. try {
  2727. oe(e);
  2728. } catch (t) {
  2729. try {
  2730. return oe.call(null, e);
  2731. } catch (t) {
  2732. return oe.call(this, e);
  2733. }
  2734. }
  2735. }(e);
  2736. }
  2737. }
  2738. function de(e) {
  2739. var t = new Array(arguments.length - 1);
  2740. if (arguments.length > 1) for (var r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
  2741. he.push(new pe(e, t)), 1 !== he.length || le || ae(ue);
  2742. }
  2743. function pe(e, t) {
  2744. this.fun = e, this.array = t;
  2745. }
  2746. pe.prototype.run = function () {
  2747. this.fun.apply(null, this.array);
  2748. };
  2749. var _e = e.performance || {};
  2750. _e.now || _e.mozNow || _e.msNow || _e.oNow || _e.webkitNow;
  2751. function ge() {}
  2752. function ve() {
  2753. ve.init.call(this);
  2754. }
  2755. function we(e) {
  2756. return void 0 === e._maxListeners ? ve.defaultMaxListeners : e._maxListeners;
  2757. }
  2758. function be(e, t, r) {
  2759. if (t) e.call(r);else for (var n = e.length, i = Ae(e, n), o = 0; o < n; ++o) i[o].call(r);
  2760. }
  2761. function ye(e, t, r, n) {
  2762. if (t) e.call(r, n);else for (var i = e.length, o = Ae(e, i), a = 0; a < i; ++a) o[a].call(r, n);
  2763. }
  2764. function me(e, t, r, n, i) {
  2765. if (t) e.call(r, n, i);else for (var o = e.length, a = Ae(e, o), s = 0; s < o; ++s) a[s].call(r, n, i);
  2766. }
  2767. function ke(e, t, r, n, i, o) {
  2768. if (t) e.call(r, n, i, o);else for (var a = e.length, s = Ae(e, a), h = 0; h < a; ++h) s[h].call(r, n, i, o);
  2769. }
  2770. function Ee(e, t, r, n) {
  2771. if (t) e.apply(r, n);else for (var i = e.length, o = Ae(e, i), a = 0; a < i; ++a) o[a].apply(r, n);
  2772. }
  2773. function Se(e, t, r, n) {
  2774. var i, o, a, s;
  2775. if ("function" != typeof r) throw new TypeError('"listener" argument must be a function');
  2776. if ((o = e._events) ? (o.newListener && (e.emit("newListener", t, r.listener ? r.listener : r), o = e._events), a = o[t]) : (o = e._events = new ge(), e._eventsCount = 0), a) {
  2777. if ("function" == typeof a ? a = o[t] = n ? [r, a] : [a, r] : n ? a.unshift(r) : a.push(r), !a.warned && (i = we(e)) && i > 0 && a.length > i) {
  2778. a.warned = !0;
  2779. var h = new Error("Possible EventEmitter memory leak detected. " + a.length + " " + t + " listeners added. Use emitter.setMaxListeners() to increase limit");
  2780. h.name = "MaxListenersExceededWarning", h.emitter = e, h.type = t, h.count = a.length, s = h, "function" == typeof console.warn ? console.warn(s) : console.log(s);
  2781. }
  2782. } else a = o[t] = r, ++e._eventsCount;
  2783. return e;
  2784. }
  2785. function xe(e, t, r) {
  2786. var n = !1;
  2787. function i() {
  2788. e.removeListener(t, i), n || (n = !0, r.apply(e, arguments));
  2789. }
  2790. return i.listener = r, i;
  2791. }
  2792. function Re(e) {
  2793. var t = this._events;
  2794. if (t) {
  2795. var r = t[e];
  2796. if ("function" == typeof r) return 1;
  2797. if (r) return r.length;
  2798. }
  2799. return 0;
  2800. }
  2801. function Ae(e, t) {
  2802. for (var r = new Array(t); t--;) r[t] = e[t];
  2803. return r;
  2804. }
  2805. ge.prototype = Object.create(null), ve.EventEmitter = ve, ve.usingDomains = !1, ve.prototype.domain = void 0, ve.prototype._events = void 0, ve.prototype._maxListeners = void 0, ve.defaultMaxListeners = 10, ve.init = function () {
  2806. this.domain = null, ve.usingDomains && (void 0).active && (void 0).Domain, this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new ge(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
  2807. }, ve.prototype.setMaxListeners = function (e) {
  2808. if ("number" != typeof e || e < 0 || isNaN(e)) throw new TypeError('"n" argument must be a positive number');
  2809. return this._maxListeners = e, this;
  2810. }, ve.prototype.getMaxListeners = function () {
  2811. return we(this);
  2812. }, ve.prototype.emit = function (e) {
  2813. var t,
  2814. r,
  2815. n,
  2816. i,
  2817. o,
  2818. a,
  2819. s,
  2820. h = "error" === e;
  2821. if (a = this._events) h = h && null == a.error;else if (!h) return !1;
  2822. if (s = this.domain, h) {
  2823. if (t = arguments[1], !s) {
  2824. if (t instanceof Error) throw t;
  2825. var l = new Error('Uncaught, unspecified "error" event. (' + t + ")");
  2826. throw l.context = t, l;
  2827. }
  2828. return t || (t = new Error('Uncaught, unspecified "error" event')), t.domainEmitter = this, t.domain = s, t.domainThrown = !1, s.emit("error", t), !1;
  2829. }
  2830. if (!(r = a[e])) return !1;
  2831. var f = "function" == typeof r;
  2832. switch (n = arguments.length) {
  2833. case 1:
  2834. be(r, f, this);
  2835. break;
  2836. case 2:
  2837. ye(r, f, this, arguments[1]);
  2838. break;
  2839. case 3:
  2840. me(r, f, this, arguments[1], arguments[2]);
  2841. break;
  2842. case 4:
  2843. ke(r, f, this, arguments[1], arguments[2], arguments[3]);
  2844. break;
  2845. default:
  2846. for (i = new Array(n - 1), o = 1; o < n; o++) i[o - 1] = arguments[o];
  2847. Ee(r, f, this, i);
  2848. }
  2849. return !0;
  2850. }, ve.prototype.addListener = function (e, t) {
  2851. return Se(this, e, t, !1);
  2852. }, ve.prototype.on = ve.prototype.addListener, ve.prototype.prependListener = function (e, t) {
  2853. return Se(this, e, t, !0);
  2854. }, ve.prototype.once = function (e, t) {
  2855. if ("function" != typeof t) throw new TypeError('"listener" argument must be a function');
  2856. return this.on(e, xe(this, e, t)), this;
  2857. }, ve.prototype.prependOnceListener = function (e, t) {
  2858. if ("function" != typeof t) throw new TypeError('"listener" argument must be a function');
  2859. return this.prependListener(e, xe(this, e, t)), this;
  2860. }, ve.prototype.removeListener = function (e, t) {
  2861. var r, n, i, o, a;
  2862. if ("function" != typeof t) throw new TypeError('"listener" argument must be a function');
  2863. if (!(n = this._events)) return this;
  2864. if (!(r = n[e])) return this;
  2865. if (r === t || r.listener && r.listener === t) 0 == --this._eventsCount ? this._events = new ge() : (delete n[e], n.removeListener && this.emit("removeListener", e, r.listener || t));else if ("function" != typeof r) {
  2866. for (i = -1, o = r.length; o-- > 0;) if (r[o] === t || r[o].listener && r[o].listener === t) {
  2867. a = r[o].listener, i = o;
  2868. break;
  2869. }
  2870. if (i < 0) return this;
  2871. if (1 === r.length) {
  2872. if (r[0] = void 0, 0 == --this._eventsCount) return this._events = new ge(), this;
  2873. delete n[e];
  2874. } else !function (e, t) {
  2875. for (var r = t, n = r + 1, i = e.length; n < i; r += 1, n += 1) e[r] = e[n];
  2876. e.pop();
  2877. }(r, i);
  2878. n.removeListener && this.emit("removeListener", e, a || t);
  2879. }
  2880. return this;
  2881. }, ve.prototype.removeAllListeners = function (e) {
  2882. var t, r;
  2883. if (!(r = this._events)) return this;
  2884. if (!r.removeListener) return 0 === arguments.length ? (this._events = new ge(), this._eventsCount = 0) : r[e] && (0 == --this._eventsCount ? this._events = new ge() : delete r[e]), this;
  2885. if (0 === arguments.length) {
  2886. for (var n, i = Object.keys(r), o = 0; o < i.length; ++o) "removeListener" !== (n = i[o]) && this.removeAllListeners(n);
  2887. return this.removeAllListeners("removeListener"), this._events = new ge(), this._eventsCount = 0, this;
  2888. }
  2889. if ("function" == typeof (t = r[e])) this.removeListener(e, t);else if (t) do {
  2890. this.removeListener(e, t[t.length - 1]);
  2891. } while (t[0]);
  2892. return this;
  2893. }, ve.prototype.listeners = function (e) {
  2894. var t,
  2895. r = this._events;
  2896. return r && (t = r[e]) ? "function" == typeof t ? [t.listener || t] : function (e) {
  2897. for (var t = new Array(e.length), r = 0; r < t.length; ++r) t[r] = e[r].listener || e[r];
  2898. return t;
  2899. }(t) : [];
  2900. }, ve.listenerCount = function (e, t) {
  2901. return "function" == typeof e.listenerCount ? e.listenerCount(t) : Re.call(e, t);
  2902. }, ve.prototype.listenerCount = Re, ve.prototype.eventNames = function () {
  2903. return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
  2904. };
  2905. var Be = "function" == typeof Object.create ? function (e, t) {
  2906. e.super_ = t, e.prototype = Object.create(t.prototype, {
  2907. constructor: {
  2908. value: e,
  2909. enumerable: !1,
  2910. writable: !0,
  2911. configurable: !0
  2912. }
  2913. });
  2914. } : function (e, t) {
  2915. e.super_ = t;
  2916. var r = function () {};
  2917. r.prototype = t.prototype, e.prototype = new r(), e.prototype.constructor = e;
  2918. },
  2919. ze = /%[sdj%]/g;
  2920. function Le(e) {
  2921. if (!Ze(e)) {
  2922. for (var t = [], r = 0; r < arguments.length; r++) t.push(De(arguments[r]));
  2923. return t.join(" ");
  2924. }
  2925. r = 1;
  2926. for (var n = arguments, i = n.length, o = String(e).replace(ze, function (e) {
  2927. if ("%%" === e) return "%";
  2928. if (r >= i) return e;
  2929. switch (e) {
  2930. case "%s":
  2931. return String(n[r++]);
  2932. case "%d":
  2933. return Number(n[r++]);
  2934. case "%j":
  2935. try {
  2936. return JSON.stringify(n[r++]);
  2937. } catch (e) {
  2938. return "[Circular]";
  2939. }
  2940. default:
  2941. return e;
  2942. }
  2943. }), a = n[r]; r < i; a = n[++r]) Ne(a) || !Ye(a) ? o += " " + a : o += " " + De(a);
  2944. return o;
  2945. }
  2946. function Te(t, r) {
  2947. if (je(e.process)) return function () {
  2948. return Te(t, r).apply(this, arguments);
  2949. };
  2950. var n = !1;
  2951. return function () {
  2952. return n || (console.error(r), n = !0), t.apply(this, arguments);
  2953. };
  2954. }
  2955. var Me,
  2956. Ce = {};
  2957. function De(e, t) {
  2958. var r = {
  2959. seen: [],
  2960. stylize: Pe
  2961. };
  2962. return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), Fe(t) ? r.showHidden = t : t && function (e, t) {
  2963. if (!t || !Ye(t)) return e;
  2964. var r = Object.keys(t),
  2965. n = r.length;
  2966. for (; n--;) e[r[n]] = t[r[n]];
  2967. }(r, t), je(r.showHidden) && (r.showHidden = !1), je(r.depth) && (r.depth = 2), je(r.colors) && (r.colors = !1), je(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = Ie), Oe(r, e, r.depth);
  2968. }
  2969. function Ie(e, t) {
  2970. var r = De.styles[t];
  2971. return r ? "[" + De.colors[r][0] + "m" + e + "[" + De.colors[r][1] + "m" : e;
  2972. }
  2973. function Pe(e, t) {
  2974. return e;
  2975. }
  2976. function Oe(e, t, r) {
  2977. if (e.customInspect && t && qe(t.inspect) && t.inspect !== De && (!t.constructor || t.constructor.prototype !== t)) {
  2978. var n = t.inspect(r, e);
  2979. return Ze(n) || (n = Oe(e, n, r)), n;
  2980. }
  2981. var i = function (e, t) {
  2982. if (je(t)) return e.stylize("undefined", "undefined");
  2983. if (Ze(t)) {
  2984. var r = "'" + JSON.stringify(t).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
  2985. return e.stylize(r, "string");
  2986. }
  2987. if (n = t, "number" == typeof n) return e.stylize("" + t, "number");
  2988. var n;
  2989. if (Fe(t)) return e.stylize("" + t, "boolean");
  2990. if (Ne(t)) return e.stylize("null", "null");
  2991. }(e, t);
  2992. if (i) return i;
  2993. var o = Object.keys(t),
  2994. a = function (e) {
  2995. var t = {};
  2996. return e.forEach(function (e, r) {
  2997. t[e] = !0;
  2998. }), t;
  2999. }(o);
  3000. if (e.showHidden && (o = Object.getOwnPropertyNames(t)), Xe(t) && (o.indexOf("message") >= 0 || o.indexOf("description") >= 0)) return Ue(t);
  3001. if (0 === o.length) {
  3002. if (qe(t)) {
  3003. var s = t.name ? ": " + t.name : "";
  3004. return e.stylize("[Function" + s + "]", "special");
  3005. }
  3006. if (We(t)) return e.stylize(RegExp.prototype.toString.call(t), "regexp");
  3007. if (Ke(t)) return e.stylize(Date.prototype.toString.call(t), "date");
  3008. if (Xe(t)) return Ue(t);
  3009. }
  3010. var h,
  3011. l,
  3012. f = "",
  3013. c = !1,
  3014. u = ["{", "}"];
  3015. (h = t, Array.isArray(h) && (c = !0, u = ["[", "]"]), qe(t)) && (f = " [Function" + (t.name ? ": " + t.name : "") + "]");
  3016. return We(t) && (f = " " + RegExp.prototype.toString.call(t)), Ke(t) && (f = " " + Date.prototype.toUTCString.call(t)), Xe(t) && (f = " " + Ue(t)), 0 !== o.length || c && 0 != t.length ? r < 0 ? We(t) ? e.stylize(RegExp.prototype.toString.call(t), "regexp") : e.stylize("[Object]", "special") : (e.seen.push(t), l = c ? function (e, t, r, n, i) {
  3017. for (var o = [], a = 0, s = t.length; a < s; ++a) Ge(t, String(a)) ? o.push(He(e, t, r, n, String(a), !0)) : o.push("");
  3018. return i.forEach(function (i) {
  3019. i.match(/^\d+$/) || o.push(He(e, t, r, n, i, !0));
  3020. }), o;
  3021. }(e, t, r, a, o) : o.map(function (n) {
  3022. return He(e, t, r, a, n, c);
  3023. }), e.seen.pop(), function (e, t, r) {
  3024. if (e.reduce(function (e, t) {
  3025. return t.indexOf("\n"), e + t.replace(/\u001b\[\d\d?m/g, "").length + 1;
  3026. }, 0) > 60) return r[0] + ("" === t ? "" : t + "\n ") + " " + e.join(",\n ") + " " + r[1];
  3027. return r[0] + t + " " + e.join(", ") + " " + r[1];
  3028. }(l, f, u)) : u[0] + f + u[1];
  3029. }
  3030. function Ue(e) {
  3031. return "[" + Error.prototype.toString.call(e) + "]";
  3032. }
  3033. function He(e, t, r, n, i, o) {
  3034. var a, s, h;
  3035. if ((h = Object.getOwnPropertyDescriptor(t, i) || {
  3036. value: t[i]
  3037. }).get ? s = h.set ? e.stylize("[Getter/Setter]", "special") : e.stylize("[Getter]", "special") : h.set && (s = e.stylize("[Setter]", "special")), Ge(n, i) || (a = "[" + i + "]"), s || (e.seen.indexOf(h.value) < 0 ? (s = Ne(r) ? Oe(e, h.value, null) : Oe(e, h.value, r - 1)).indexOf("\n") > -1 && (s = o ? s.split("\n").map(function (e) {
  3038. return " " + e;
  3039. }).join("\n").substr(2) : "\n" + s.split("\n").map(function (e) {
  3040. return " " + e;
  3041. }).join("\n")) : s = e.stylize("[Circular]", "special")), je(a)) {
  3042. if (o && i.match(/^\d+$/)) return s;
  3043. (a = JSON.stringify("" + i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (a = a.substr(1, a.length - 2), a = e.stylize(a, "name")) : (a = a.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), a = e.stylize(a, "string"));
  3044. }
  3045. return a + ": " + s;
  3046. }
  3047. function Fe(e) {
  3048. return "boolean" == typeof e;
  3049. }
  3050. function Ne(e) {
  3051. return null === e;
  3052. }
  3053. function Ze(e) {
  3054. return "string" == typeof e;
  3055. }
  3056. function je(e) {
  3057. return void 0 === e;
  3058. }
  3059. function We(e) {
  3060. return Ye(e) && "[object RegExp]" === Ve(e);
  3061. }
  3062. function Ye(e) {
  3063. return "object" == typeof e && null !== e;
  3064. }
  3065. function Ke(e) {
  3066. return Ye(e) && "[object Date]" === Ve(e);
  3067. }
  3068. function Xe(e) {
  3069. return Ye(e) && ("[object Error]" === Ve(e) || e instanceof Error);
  3070. }
  3071. function qe(e) {
  3072. return "function" == typeof e;
  3073. }
  3074. function Ve(e) {
  3075. return Object.prototype.toString.call(e);
  3076. }
  3077. function Ge(e, t) {
  3078. return Object.prototype.hasOwnProperty.call(e, t);
  3079. }
  3080. function $e() {
  3081. this.head = null, this.tail = null, this.length = 0;
  3082. }
  3083. De.colors = {
  3084. bold: [1, 22],
  3085. italic: [3, 23],
  3086. underline: [4, 24],
  3087. inverse: [7, 27],
  3088. white: [37, 39],
  3089. grey: [90, 39],
  3090. black: [30, 39],
  3091. blue: [34, 39],
  3092. cyan: [36, 39],
  3093. green: [32, 39],
  3094. magenta: [35, 39],
  3095. red: [31, 39],
  3096. yellow: [33, 39]
  3097. }, De.styles = {
  3098. special: "cyan",
  3099. number: "yellow",
  3100. boolean: "yellow",
  3101. undefined: "grey",
  3102. null: "bold",
  3103. string: "green",
  3104. date: "magenta",
  3105. regexp: "red"
  3106. }, $e.prototype.push = function (e) {
  3107. var t = {
  3108. data: e,
  3109. next: null
  3110. };
  3111. this.length > 0 ? this.tail.next = t : this.head = t, this.tail = t, ++this.length;
  3112. }, $e.prototype.unshift = function (e) {
  3113. var t = {
  3114. data: e,
  3115. next: this.head
  3116. };
  3117. 0 === this.length && (this.tail = t), this.head = t, ++this.length;
  3118. }, $e.prototype.shift = function () {
  3119. if (0 !== this.length) {
  3120. var e = this.head.data;
  3121. return 1 === this.length ? this.head = this.tail = null : this.head = this.head.next, --this.length, e;
  3122. }
  3123. }, $e.prototype.clear = function () {
  3124. this.head = this.tail = null, this.length = 0;
  3125. }, $e.prototype.join = function (e) {
  3126. if (0 === this.length) return "";
  3127. for (var t = this.head, r = "" + t.data; t = t.next;) r += e + t.data;
  3128. return r;
  3129. }, $e.prototype.concat = function (e) {
  3130. if (0 === this.length) return p.alloc(0);
  3131. if (1 === this.length) return this.head.data;
  3132. for (var t = p.allocUnsafe(e >>> 0), r = this.head, n = 0; r;) r.data.copy(t, n), n += r.data.length, r = r.next;
  3133. return t;
  3134. };
  3135. var Je = p.isEncoding || function (e) {
  3136. switch (e && e.toLowerCase()) {
  3137. case "hex":
  3138. case "utf8":
  3139. case "utf-8":
  3140. case "ascii":
  3141. case "binary":
  3142. case "base64":
  3143. case "ucs2":
  3144. case "ucs-2":
  3145. case "utf16le":
  3146. case "utf-16le":
  3147. case "raw":
  3148. return !0;
  3149. default:
  3150. return !1;
  3151. }
  3152. };
  3153. function Qe(e) {
  3154. switch (this.encoding = (e || "utf8").toLowerCase().replace(/[-_]/, ""), function (e) {
  3155. if (e && !Je(e)) throw new Error("Unknown encoding: " + e);
  3156. }(e), this.encoding) {
  3157. case "utf8":
  3158. this.surrogateSize = 3;
  3159. break;
  3160. case "ucs2":
  3161. case "utf16le":
  3162. this.surrogateSize = 2, this.detectIncompleteChar = tt;
  3163. break;
  3164. case "base64":
  3165. this.surrogateSize = 3, this.detectIncompleteChar = rt;
  3166. break;
  3167. default:
  3168. return void (this.write = et);
  3169. }
  3170. this.charBuffer = new p(6), this.charReceived = 0, this.charLength = 0;
  3171. }
  3172. function et(e) {
  3173. return e.toString(this.encoding);
  3174. }
  3175. function tt(e) {
  3176. this.charReceived = e.length % 2, this.charLength = this.charReceived ? 2 : 0;
  3177. }
  3178. function rt(e) {
  3179. this.charReceived = e.length % 3, this.charLength = this.charReceived ? 3 : 0;
  3180. }
  3181. Qe.prototype.write = function (e) {
  3182. for (var t = ""; this.charLength;) {
  3183. var r = e.length >= this.charLength - this.charReceived ? this.charLength - this.charReceived : e.length;
  3184. if (e.copy(this.charBuffer, this.charReceived, 0, r), this.charReceived += r, this.charReceived < this.charLength) return "";
  3185. if (e = e.slice(r, e.length), !((i = (t = this.charBuffer.slice(0, this.charLength).toString(this.encoding)).charCodeAt(t.length - 1)) >= 55296 && i <= 56319)) {
  3186. if (this.charReceived = this.charLength = 0, 0 === e.length) return t;
  3187. break;
  3188. }
  3189. this.charLength += this.surrogateSize, t = "";
  3190. }
  3191. this.detectIncompleteChar(e);
  3192. var n = e.length;
  3193. this.charLength && (e.copy(this.charBuffer, 0, e.length - this.charReceived, n), n -= this.charReceived);
  3194. var i;
  3195. n = (t += e.toString(this.encoding, 0, n)).length - 1;
  3196. if ((i = t.charCodeAt(n)) >= 55296 && i <= 56319) {
  3197. var o = this.surrogateSize;
  3198. return this.charLength += o, this.charReceived += o, this.charBuffer.copy(this.charBuffer, o, 0, o), e.copy(this.charBuffer, 0, 0, o), t.substring(0, n);
  3199. }
  3200. return t;
  3201. }, Qe.prototype.detectIncompleteChar = function (e) {
  3202. for (var t = e.length >= 3 ? 3 : e.length; t > 0; t--) {
  3203. var r = e[e.length - t];
  3204. if (1 == t && r >> 5 == 6) {
  3205. this.charLength = 2;
  3206. break;
  3207. }
  3208. if (t <= 2 && r >> 4 == 14) {
  3209. this.charLength = 3;
  3210. break;
  3211. }
  3212. if (t <= 3 && r >> 3 == 30) {
  3213. this.charLength = 4;
  3214. break;
  3215. }
  3216. }
  3217. this.charReceived = t;
  3218. }, Qe.prototype.end = function (e) {
  3219. var t = "";
  3220. if (e && e.length && (t = this.write(e)), this.charReceived) {
  3221. var r = this.charReceived,
  3222. n = this.charBuffer,
  3223. i = this.encoding;
  3224. t += n.slice(0, r).toString(i);
  3225. }
  3226. return t;
  3227. }, ot.ReadableState = it;
  3228. var nt = function (e) {
  3229. je(Me) && (Me = ""), e = e.toUpperCase(), Ce[e] || (new RegExp("\\b" + e + "\\b", "i").test(Me) ? Ce[e] = function () {
  3230. var t = Le.apply(null, arguments);
  3231. console.error("%s %d: %s", e, 0, t);
  3232. } : Ce[e] = function () {});
  3233. return Ce[e];
  3234. }("stream");
  3235. function it(e, t) {
  3236. e = e || {}, this.objectMode = !!e.objectMode, t instanceof Ct && (this.objectMode = this.objectMode || !!e.readableObjectMode);
  3237. var r = e.highWaterMark,
  3238. n = this.objectMode ? 16 : 16384;
  3239. this.highWaterMark = r || 0 === r ? r : n, this.highWaterMark = ~~this.highWaterMark, this.buffer = new $e(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.ranOut = !1, this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (this.decoder = new Qe(e.encoding), this.encoding = e.encoding);
  3240. }
  3241. function ot(e) {
  3242. if (!(this instanceof ot)) return new ot(e);
  3243. this._readableState = new it(e, this), this.readable = !0, e && "function" == typeof e.read && (this._read = e.read), ve.call(this);
  3244. }
  3245. function at(e, t, r, n, i) {
  3246. var o = function (e, t) {
  3247. var r = null;
  3248. $(t) || "string" == typeof t || null == t || e.objectMode || (r = new TypeError("Invalid non-string/buffer chunk"));
  3249. return r;
  3250. }(t, r);
  3251. if (o) e.emit("error", o);else if (null === r) t.reading = !1, function (e, t) {
  3252. if (t.ended) return;
  3253. if (t.decoder) {
  3254. var r = t.decoder.end();
  3255. r && r.length && (t.buffer.push(r), t.length += t.objectMode ? 1 : r.length);
  3256. }
  3257. t.ended = !0, lt(e);
  3258. }(e, t);else if (t.objectMode || r && r.length > 0) {
  3259. if (t.ended && !i) {
  3260. var a = new Error("stream.push() after EOF");
  3261. e.emit("error", a);
  3262. } else if (t.endEmitted && i) {
  3263. var s = new Error("stream.unshift() after end event");
  3264. e.emit("error", s);
  3265. } else {
  3266. var h;
  3267. !t.decoder || i || n || (r = t.decoder.write(r), h = !t.objectMode && 0 === r.length), i || (t.reading = !1), h || (t.flowing && 0 === t.length && !t.sync ? (e.emit("data", r), e.read(0)) : (t.length += t.objectMode ? 1 : r.length, i ? t.buffer.unshift(r) : t.buffer.push(r), t.needReadable && lt(e))), function (e, t) {
  3268. t.readingMore || (t.readingMore = !0, de(ct, e, t));
  3269. }(e, t);
  3270. }
  3271. } else i || (t.reading = !1);
  3272. return function (e) {
  3273. return !e.ended && (e.needReadable || e.length < e.highWaterMark || 0 === e.length);
  3274. }(t);
  3275. }
  3276. Be(ot, ve), ot.prototype.push = function (e, t) {
  3277. var r = this._readableState;
  3278. return r.objectMode || "string" != typeof e || (t = t || r.defaultEncoding) !== r.encoding && (e = p.from(e, t), t = ""), at(this, r, e, t, !1);
  3279. }, ot.prototype.unshift = function (e) {
  3280. return at(this, this._readableState, e, "", !0);
  3281. }, ot.prototype.isPaused = function () {
  3282. return !1 === this._readableState.flowing;
  3283. }, ot.prototype.setEncoding = function (e) {
  3284. return this._readableState.decoder = new Qe(e), this._readableState.encoding = e, this;
  3285. };
  3286. var st = 8388608;
  3287. function ht(e, t) {
  3288. return e <= 0 || 0 === t.length && t.ended ? 0 : t.objectMode ? 1 : e != e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = function (e) {
  3289. return e >= st ? e = st : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e;
  3290. }(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0));
  3291. }
  3292. function lt(e) {
  3293. var t = e._readableState;
  3294. t.needReadable = !1, t.emittedReadable || (nt("emitReadable", t.flowing), t.emittedReadable = !0, t.sync ? de(ft, e) : ft(e));
  3295. }
  3296. function ft(e) {
  3297. nt("emit readable"), e.emit("readable"), pt(e);
  3298. }
  3299. function ct(e, t) {
  3300. for (var r = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (nt("maybeReadMore read 0"), e.read(0), r !== t.length);) r = t.length;
  3301. t.readingMore = !1;
  3302. }
  3303. function ut(e) {
  3304. nt("readable nexttick read 0"), e.read(0);
  3305. }
  3306. function dt(e, t) {
  3307. t.reading || (nt("resume read 0"), e.read(0)), t.resumeScheduled = !1, t.awaitDrain = 0, e.emit("resume"), pt(e), t.flowing && !t.reading && e.read(0);
  3308. }
  3309. function pt(e) {
  3310. var t = e._readableState;
  3311. for (nt("flow", t.flowing); t.flowing && null !== e.read(););
  3312. }
  3313. function _t(e, t) {
  3314. return 0 === t.length ? null : (t.objectMode ? r = t.buffer.shift() : !e || e >= t.length ? (r = t.decoder ? t.buffer.join("") : 1 === t.buffer.length ? t.buffer.head.data : t.buffer.concat(t.length), t.buffer.clear()) : r = function (e, t, r) {
  3315. var n;
  3316. e < t.head.data.length ? (n = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : n = e === t.head.data.length ? t.shift() : r ? function (e, t) {
  3317. var r = t.head,
  3318. n = 1,
  3319. i = r.data;
  3320. e -= i.length;
  3321. for (; r = r.next;) {
  3322. var o = r.data,
  3323. a = e > o.length ? o.length : e;
  3324. if (a === o.length ? i += o : i += o.slice(0, e), 0 === (e -= a)) {
  3325. a === o.length ? (++n, r.next ? t.head = r.next : t.head = t.tail = null) : (t.head = r, r.data = o.slice(a));
  3326. break;
  3327. }
  3328. ++n;
  3329. }
  3330. return t.length -= n, i;
  3331. }(e, t) : function (e, t) {
  3332. var r = p.allocUnsafe(e),
  3333. n = t.head,
  3334. i = 1;
  3335. n.data.copy(r), e -= n.data.length;
  3336. for (; n = n.next;) {
  3337. var o = n.data,
  3338. a = e > o.length ? o.length : e;
  3339. if (o.copy(r, r.length - e, 0, a), 0 === (e -= a)) {
  3340. a === o.length ? (++i, n.next ? t.head = n.next : t.head = t.tail = null) : (t.head = n, n.data = o.slice(a));
  3341. break;
  3342. }
  3343. ++i;
  3344. }
  3345. return t.length -= i, r;
  3346. }(e, t);
  3347. return n;
  3348. }(e, t.buffer, t.decoder), r);
  3349. var r;
  3350. }
  3351. function gt(e) {
  3352. var t = e._readableState;
  3353. if (t.length > 0) throw new Error('"endReadable()" called on non-empty stream');
  3354. t.endEmitted || (t.ended = !0, de(vt, t, e));
  3355. }
  3356. function vt(e, t) {
  3357. e.endEmitted || 0 !== e.length || (e.endEmitted = !0, t.readable = !1, t.emit("end"));
  3358. }
  3359. function wt(e, t) {
  3360. for (var r = 0, n = e.length; r < n; r++) if (e[r] === t) return r;
  3361. return -1;
  3362. }
  3363. function bt() {}
  3364. function yt(e, t, r) {
  3365. this.chunk = e, this.encoding = t, this.callback = r, this.next = null;
  3366. }
  3367. function mt(e, t) {
  3368. Object.defineProperty(this, "buffer", {
  3369. get: Te(function () {
  3370. return this.getBuffer();
  3371. }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")
  3372. }), e = e || {}, this.objectMode = !!e.objectMode, t instanceof Ct && (this.objectMode = this.objectMode || !!e.writableObjectMode);
  3373. var r = e.highWaterMark,
  3374. n = this.objectMode ? 16 : 16384;
  3375. this.highWaterMark = r || 0 === r ? r : n, this.highWaterMark = ~~this.highWaterMark, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1;
  3376. var i = !1 === e.decodeStrings;
  3377. this.decodeStrings = !i, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function (e) {
  3378. !function (e, t) {
  3379. var r = e._writableState,
  3380. n = r.sync,
  3381. i = r.writecb;
  3382. if (function (e) {
  3383. e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0;
  3384. }(r), t) !function (e, t, r, n, i) {
  3385. --t.pendingcb, r ? de(i, n) : i(n);
  3386. e._writableState.errorEmitted = !0, e.emit("error", n);
  3387. }(e, r, n, t, i);else {
  3388. var o = Rt(r);
  3389. o || r.corked || r.bufferProcessing || !r.bufferedRequest || xt(e, r), n ? de(St, e, r, o, i) : St(e, r, o, i);
  3390. }
  3391. }(t, e);
  3392. }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new zt(this);
  3393. }
  3394. function kt(e) {
  3395. if (!(this instanceof kt || this instanceof Ct)) return new kt(e);
  3396. this._writableState = new mt(e, this), this.writable = !0, e && ("function" == typeof e.write && (this._write = e.write), "function" == typeof e.writev && (this._writev = e.writev)), ve.call(this);
  3397. }
  3398. function Et(e, t, r, n, i, o, a) {
  3399. t.writelen = n, t.writecb = a, t.writing = !0, t.sync = !0, r ? e._writev(i, t.onwrite) : e._write(i, o, t.onwrite), t.sync = !1;
  3400. }
  3401. function St(e, t, r, n) {
  3402. r || function (e, t) {
  3403. 0 === t.length && t.needDrain && (t.needDrain = !1, e.emit("drain"));
  3404. }(e, t), t.pendingcb--, n(), Bt(e, t);
  3405. }
  3406. function xt(e, t) {
  3407. t.bufferProcessing = !0;
  3408. var r = t.bufferedRequest;
  3409. if (e._writev && r && r.next) {
  3410. var n = t.bufferedRequestCount,
  3411. i = new Array(n),
  3412. o = t.corkedRequestsFree;
  3413. o.entry = r;
  3414. for (var a = 0; r;) i[a] = r, r = r.next, a += 1;
  3415. Et(e, t, !0, t.length, i, "", o.finish), t.pendingcb++, t.lastBufferedRequest = null, o.next ? (t.corkedRequestsFree = o.next, o.next = null) : t.corkedRequestsFree = new zt(t);
  3416. } else {
  3417. for (; r;) {
  3418. var s = r.chunk,
  3419. h = r.encoding,
  3420. l = r.callback;
  3421. if (Et(e, t, !1, t.objectMode ? 1 : s.length, s, h, l), r = r.next, t.writing) break;
  3422. }
  3423. null === r && (t.lastBufferedRequest = null);
  3424. }
  3425. t.bufferedRequestCount = 0, t.bufferedRequest = r, t.bufferProcessing = !1;
  3426. }
  3427. function Rt(e) {
  3428. return e.ending && 0 === e.length && null === e.bufferedRequest && !e.finished && !e.writing;
  3429. }
  3430. function At(e, t) {
  3431. t.prefinished || (t.prefinished = !0, e.emit("prefinish"));
  3432. }
  3433. function Bt(e, t) {
  3434. var r = Rt(t);
  3435. return r && (0 === t.pendingcb ? (At(e, t), t.finished = !0, e.emit("finish")) : At(e, t)), r;
  3436. }
  3437. function zt(e) {
  3438. var t = this;
  3439. this.next = null, this.entry = null, this.finish = function (r) {
  3440. var n = t.entry;
  3441. for (t.entry = null; n;) {
  3442. var i = n.callback;
  3443. e.pendingcb--, i(r), n = n.next;
  3444. }
  3445. e.corkedRequestsFree ? e.corkedRequestsFree.next = t : e.corkedRequestsFree = t;
  3446. };
  3447. }
  3448. ot.prototype.read = function (e) {
  3449. nt("read", e), e = parseInt(e, 10);
  3450. var t = this._readableState,
  3451. r = e;
  3452. if (0 !== e && (t.emittedReadable = !1), 0 === e && t.needReadable && (t.length >= t.highWaterMark || t.ended)) return nt("read: emitReadable", t.length, t.ended), 0 === t.length && t.ended ? gt(this) : lt(this), null;
  3453. if (0 === (e = ht(e, t)) && t.ended) return 0 === t.length && gt(this), null;
  3454. var n,
  3455. i = t.needReadable;
  3456. return nt("need readable", i), (0 === t.length || t.length - e < t.highWaterMark) && nt("length less than watermark", i = !0), t.ended || t.reading ? nt("reading or ended", i = !1) : i && (nt("do read"), t.reading = !0, t.sync = !0, 0 === t.length && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = ht(r, t))), null === (n = e > 0 ? _t(e, t) : null) ? (t.needReadable = !0, e = 0) : t.length -= e, 0 === t.length && (t.ended || (t.needReadable = !0), r !== e && t.ended && gt(this)), null !== n && this.emit("data", n), n;
  3457. }, ot.prototype._read = function (e) {
  3458. this.emit("error", new Error("not implemented"));
  3459. }, ot.prototype.pipe = function (e, t) {
  3460. var r = this,
  3461. n = this._readableState;
  3462. switch (n.pipesCount) {
  3463. case 0:
  3464. n.pipes = e;
  3465. break;
  3466. case 1:
  3467. n.pipes = [n.pipes, e];
  3468. break;
  3469. default:
  3470. n.pipes.push(e);
  3471. }
  3472. n.pipesCount += 1, nt("pipe count=%d opts=%j", n.pipesCount, t);
  3473. var i = !t || !1 !== t.end ? a : l;
  3474. function o(e) {
  3475. nt("onunpipe"), e === r && l();
  3476. }
  3477. function a() {
  3478. nt("onend"), e.end();
  3479. }
  3480. n.endEmitted ? de(i) : r.once("end", i), e.on("unpipe", o);
  3481. var s = function (e) {
  3482. return function () {
  3483. var t = e._readableState;
  3484. nt("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, 0 === t.awaitDrain && e.listeners("data").length && (t.flowing = !0, pt(e));
  3485. };
  3486. }(r);
  3487. e.on("drain", s);
  3488. var h = !1;
  3489. function l() {
  3490. nt("cleanup"), e.removeListener("close", d), e.removeListener("finish", p), e.removeListener("drain", s), e.removeListener("error", u), e.removeListener("unpipe", o), r.removeListener("end", a), r.removeListener("end", l), r.removeListener("data", c), h = !0, !n.awaitDrain || e._writableState && !e._writableState.needDrain || s();
  3491. }
  3492. var f = !1;
  3493. function c(t) {
  3494. nt("ondata"), f = !1, !1 !== e.write(t) || f || ((1 === n.pipesCount && n.pipes === e || n.pipesCount > 1 && -1 !== wt(n.pipes, e)) && !h && (nt("false write response, pause", r._readableState.awaitDrain), r._readableState.awaitDrain++, f = !0), r.pause());
  3495. }
  3496. function u(t) {
  3497. var r;
  3498. nt("onerror", t), _(), e.removeListener("error", u), 0 === (r = "error", e.listeners(r).length) && e.emit("error", t);
  3499. }
  3500. function d() {
  3501. e.removeListener("finish", p), _();
  3502. }
  3503. function p() {
  3504. nt("onfinish"), e.removeListener("close", d), _();
  3505. }
  3506. function _() {
  3507. nt("unpipe"), r.unpipe(e);
  3508. }
  3509. return r.on("data", c), function (e, t, r) {
  3510. if ("function" == typeof e.prependListener) return e.prependListener(t, r);
  3511. e._events && e._events[t] ? Array.isArray(e._events[t]) ? e._events[t].unshift(r) : e._events[t] = [r, e._events[t]] : e.on(t, r);
  3512. }(e, "error", u), e.once("close", d), e.once("finish", p), e.emit("pipe", r), n.flowing || (nt("pipe resume"), r.resume()), e;
  3513. }, ot.prototype.unpipe = function (e) {
  3514. var t = this._readableState;
  3515. if (0 === t.pipesCount) return this;
  3516. if (1 === t.pipesCount) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this), this);
  3517. if (!e) {
  3518. var r = t.pipes,
  3519. n = t.pipesCount;
  3520. t.pipes = null, t.pipesCount = 0, t.flowing = !1;
  3521. for (var i = 0; i < n; i++) r[i].emit("unpipe", this);
  3522. return this;
  3523. }
  3524. var o = wt(t.pipes, e);
  3525. return -1 === o ? this : (t.pipes.splice(o, 1), t.pipesCount -= 1, 1 === t.pipesCount && (t.pipes = t.pipes[0]), e.emit("unpipe", this), this);
  3526. }, ot.prototype.on = function (e, t) {
  3527. var r = ve.prototype.on.call(this, e, t);
  3528. if ("data" === e) !1 !== this._readableState.flowing && this.resume();else if ("readable" === e) {
  3529. var n = this._readableState;
  3530. n.endEmitted || n.readableListening || (n.readableListening = n.needReadable = !0, n.emittedReadable = !1, n.reading ? n.length && lt(this) : de(ut, this));
  3531. }
  3532. return r;
  3533. }, ot.prototype.addListener = ot.prototype.on, ot.prototype.resume = function () {
  3534. var e = this._readableState;
  3535. return e.flowing || (nt("resume"), e.flowing = !0, function (e, t) {
  3536. t.resumeScheduled || (t.resumeScheduled = !0, de(dt, e, t));
  3537. }(this, e)), this;
  3538. }, ot.prototype.pause = function () {
  3539. return nt("call pause flowing=%j", this._readableState.flowing), !1 !== this._readableState.flowing && (nt("pause"), this._readableState.flowing = !1, this.emit("pause")), this;
  3540. }, ot.prototype.wrap = function (e) {
  3541. var t = this._readableState,
  3542. r = !1,
  3543. n = this;
  3544. for (var i in e.on("end", function () {
  3545. if (nt("wrapped end"), t.decoder && !t.ended) {
  3546. var e = t.decoder.end();
  3547. e && e.length && n.push(e);
  3548. }
  3549. n.push(null);
  3550. }), e.on("data", function (i) {
  3551. (nt("wrapped data"), t.decoder && (i = t.decoder.write(i)), t.objectMode && null == i) || (t.objectMode || i && i.length) && (n.push(i) || (r = !0, e.pause()));
  3552. }), e) void 0 === this[i] && "function" == typeof e[i] && (this[i] = function (t) {
  3553. return function () {
  3554. return e[t].apply(e, arguments);
  3555. };
  3556. }(i));
  3557. return function (e, t) {
  3558. for (var r = 0, n = e.length; r < n; r++) t(e[r], r);
  3559. }(["error", "close", "destroy", "pause", "resume"], function (t) {
  3560. e.on(t, n.emit.bind(n, t));
  3561. }), n._read = function (t) {
  3562. nt("wrapped _read", t), r && (r = !1, e.resume());
  3563. }, n;
  3564. }, ot._fromList = _t, kt.WritableState = mt, Be(kt, ve), mt.prototype.getBuffer = function () {
  3565. for (var e = this.bufferedRequest, t = []; e;) t.push(e), e = e.next;
  3566. return t;
  3567. }, kt.prototype.pipe = function () {
  3568. this.emit("error", new Error("Cannot pipe, not readable"));
  3569. }, kt.prototype.write = function (e, t, r) {
  3570. var n = this._writableState,
  3571. i = !1;
  3572. return "function" == typeof t && (r = t, t = null), p.isBuffer(e) ? t = "buffer" : t || (t = n.defaultEncoding), "function" != typeof r && (r = bt), n.ended ? function (e, t) {
  3573. var r = new Error("write after end");
  3574. e.emit("error", r), de(t, r);
  3575. }(this, r) : function (e, t, r, n) {
  3576. var i = !0,
  3577. o = !1;
  3578. return null === r ? o = new TypeError("May not write null values to stream") : p.isBuffer(r) || "string" == typeof r || void 0 === r || t.objectMode || (o = new TypeError("Invalid non-string/buffer chunk")), o && (e.emit("error", o), de(n, o), i = !1), i;
  3579. }(this, n, e, r) && (n.pendingcb++, i = function (e, t, r, n, i) {
  3580. r = function (e, t, r) {
  3581. return e.objectMode || !1 === e.decodeStrings || "string" != typeof t || (t = p.from(t, r)), t;
  3582. }(t, r, n), p.isBuffer(r) && (n = "buffer");
  3583. var o = t.objectMode ? 1 : r.length;
  3584. t.length += o;
  3585. var a = t.length < t.highWaterMark;
  3586. a || (t.needDrain = !0);
  3587. if (t.writing || t.corked) {
  3588. var s = t.lastBufferedRequest;
  3589. t.lastBufferedRequest = new yt(r, n, i), s ? s.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1;
  3590. } else Et(e, t, !1, o, r, n, i);
  3591. return a;
  3592. }(this, n, e, t, r)), i;
  3593. }, kt.prototype.cork = function () {
  3594. this._writableState.corked++;
  3595. }, kt.prototype.uncork = function () {
  3596. var e = this._writableState;
  3597. e.corked && (e.corked--, e.writing || e.corked || e.finished || e.bufferProcessing || !e.bufferedRequest || xt(this, e));
  3598. }, kt.prototype.setDefaultEncoding = function (e) {
  3599. if ("string" == typeof e && (e = e.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + e);
  3600. return this._writableState.defaultEncoding = e, this;
  3601. }, kt.prototype._write = function (e, t, r) {
  3602. r(new Error("not implemented"));
  3603. }, kt.prototype._writev = null, kt.prototype.end = function (e, t, r) {
  3604. var n = this._writableState;
  3605. "function" == typeof e ? (r = e, e = null, t = null) : "function" == typeof t && (r = t, t = null), null != e && this.write(e, t), n.corked && (n.corked = 1, this.uncork()), n.ending || n.finished || function (e, t, r) {
  3606. t.ending = !0, Bt(e, t), r && (t.finished ? de(r) : e.once("finish", r));
  3607. t.ended = !0, e.writable = !1;
  3608. }(this, n, r);
  3609. }, Be(Ct, ot);
  3610. for (var Lt = Object.keys(kt.prototype), Tt = 0; Tt < Lt.length; Tt++) {
  3611. var Mt = Lt[Tt];
  3612. Ct.prototype[Mt] || (Ct.prototype[Mt] = kt.prototype[Mt]);
  3613. }
  3614. function Ct(e) {
  3615. if (!(this instanceof Ct)) return new Ct(e);
  3616. ot.call(this, e), kt.call(this, e), e && !1 === e.readable && (this.readable = !1), e && !1 === e.writable && (this.writable = !1), this.allowHalfOpen = !0, e && !1 === e.allowHalfOpen && (this.allowHalfOpen = !1), this.once("end", Dt);
  3617. }
  3618. function Dt() {
  3619. this.allowHalfOpen || this._writableState.ended || de(It, this);
  3620. }
  3621. function It(e) {
  3622. e.end();
  3623. }
  3624. function Pt(e) {
  3625. this.afterTransform = function (t, r) {
  3626. return function (e, t, r) {
  3627. var n = e._transformState;
  3628. n.transforming = !1;
  3629. var i = n.writecb;
  3630. if (!i) return e.emit("error", new Error("no writecb in Transform class"));
  3631. n.writechunk = null, n.writecb = null, null != r && e.push(r);
  3632. i(t);
  3633. var o = e._readableState;
  3634. o.reading = !1, (o.needReadable || o.length < o.highWaterMark) && e._read(o.highWaterMark);
  3635. }(e, t, r);
  3636. }, this.needTransform = !1, this.transforming = !1, this.writecb = null, this.writechunk = null, this.writeencoding = null;
  3637. }
  3638. function Ot(e) {
  3639. if (!(this instanceof Ot)) return new Ot(e);
  3640. Ct.call(this, e), this._transformState = new Pt(this);
  3641. var t = this;
  3642. this._readableState.needReadable = !0, this._readableState.sync = !1, e && ("function" == typeof e.transform && (this._transform = e.transform), "function" == typeof e.flush && (this._flush = e.flush)), this.once("prefinish", function () {
  3643. "function" == typeof this._flush ? this._flush(function (e) {
  3644. Ut(t, e);
  3645. }) : Ut(t);
  3646. });
  3647. }
  3648. function Ut(e, t) {
  3649. if (t) return e.emit("error", t);
  3650. var r = e._writableState,
  3651. n = e._transformState;
  3652. if (r.length) throw new Error("Calling transform done when ws.length != 0");
  3653. if (n.transforming) throw new Error("Calling transform done when still transforming");
  3654. return e.push(null);
  3655. }
  3656. function Ht(e) {
  3657. if (!(this instanceof Ht)) return new Ht(e);
  3658. Ot.call(this, e);
  3659. }
  3660. function Ft() {
  3661. ve.call(this);
  3662. }
  3663. Be(Ot, Ct), Ot.prototype.push = function (e, t) {
  3664. return this._transformState.needTransform = !1, Ct.prototype.push.call(this, e, t);
  3665. }, Ot.prototype._transform = function (e, t, r) {
  3666. throw new Error("Not implemented");
  3667. }, Ot.prototype._write = function (e, t, r) {
  3668. var n = this._transformState;
  3669. if (n.writecb = r, n.writechunk = e, n.writeencoding = t, !n.transforming) {
  3670. var i = this._readableState;
  3671. (n.needTransform || i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
  3672. }
  3673. }, Ot.prototype._read = function (e) {
  3674. var t = this._transformState;
  3675. null !== t.writechunk && t.writecb && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0;
  3676. }, Be(Ht, Ot), Ht.prototype._transform = function (e, t, r) {
  3677. r(null, e);
  3678. }, Be(Ft, ve), Ft.Readable = ot, Ft.Writable = kt, Ft.Duplex = Ct, Ft.Transform = Ot, Ft.PassThrough = Ht, Ft.Stream = Ft, Ft.prototype.pipe = function (e, t) {
  3679. var r = this;
  3680. function n(t) {
  3681. e.writable && !1 === e.write(t) && r.pause && r.pause();
  3682. }
  3683. function i() {
  3684. r.readable && r.resume && r.resume();
  3685. }
  3686. r.on("data", n), e.on("drain", i), e._isStdio || t && !1 === t.end || (r.on("end", a), r.on("close", s));
  3687. var o = !1;
  3688. function a() {
  3689. o || (o = !0, e.end());
  3690. }
  3691. function s() {
  3692. o || (o = !0, "function" == typeof e.destroy && e.destroy());
  3693. }
  3694. function h(e) {
  3695. if (l(), 0 === ve.listenerCount(this, "error")) throw e;
  3696. }
  3697. function l() {
  3698. r.removeListener("data", n), e.removeListener("drain", i), r.removeListener("end", a), r.removeListener("close", s), r.removeListener("error", h), e.removeListener("error", h), r.removeListener("end", l), r.removeListener("close", l), e.removeListener("close", l);
  3699. }
  3700. return r.on("error", h), e.on("error", h), r.on("end", l), r.on("close", l), e.on("close", l), e.emit("pipe", r), e;
  3701. };
  3702. var Nt = {
  3703. 2: "need dictionary",
  3704. 1: "stream end",
  3705. 0: "",
  3706. "-1": "file error",
  3707. "-2": "stream error",
  3708. "-3": "data error",
  3709. "-4": "insufficient memory",
  3710. "-5": "buffer error",
  3711. "-6": "incompatible version"
  3712. };
  3713. function Zt() {
  3714. this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
  3715. }
  3716. function jt(e, t, r, n, i) {
  3717. if (t.subarray && e.subarray) e.set(t.subarray(r, r + n), i);else for (var o = 0; o < n; o++) e[i + o] = t[r + o];
  3718. }
  3719. var Wt = Uint8Array,
  3720. Yt = Uint16Array,
  3721. Kt = Int32Array,
  3722. Xt = 4,
  3723. qt = 0,
  3724. Vt = 1,
  3725. Gt = 2;
  3726. function $t(e) {
  3727. for (var t = e.length; --t >= 0;) e[t] = 0;
  3728. }
  3729. var Jt = 0,
  3730. Qt = 1,
  3731. er = 2,
  3732. tr = 29,
  3733. rr = 256,
  3734. nr = rr + 1 + tr,
  3735. ir = 30,
  3736. or = 19,
  3737. ar = 2 * nr + 1,
  3738. sr = 15,
  3739. hr = 16,
  3740. lr = 7,
  3741. fr = 256,
  3742. cr = 16,
  3743. ur = 17,
  3744. dr = 18,
  3745. pr = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0],
  3746. _r = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13],
  3747. gr = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7],
  3748. vr = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
  3749. wr = new Array(2 * (nr + 2));
  3750. $t(wr);
  3751. var br = new Array(2 * ir);
  3752. $t(br);
  3753. var yr = new Array(512);
  3754. $t(yr);
  3755. var mr = new Array(256);
  3756. $t(mr);
  3757. var kr = new Array(tr);
  3758. $t(kr);
  3759. var Er,
  3760. Sr,
  3761. xr,
  3762. Rr = new Array(ir);
  3763. function Ar(e, t, r, n, i) {
  3764. this.static_tree = e, this.extra_bits = t, this.extra_base = r, this.elems = n, this.max_length = i, this.has_stree = e && e.length;
  3765. }
  3766. function Br(e, t) {
  3767. this.dyn_tree = e, this.max_code = 0, this.stat_desc = t;
  3768. }
  3769. function zr(e) {
  3770. return e < 256 ? yr[e] : yr[256 + (e >>> 7)];
  3771. }
  3772. function Lr(e, t) {
  3773. e.pending_buf[e.pending++] = 255 & t, e.pending_buf[e.pending++] = t >>> 8 & 255;
  3774. }
  3775. function Tr(e, t, r) {
  3776. e.bi_valid > hr - r ? (e.bi_buf |= t << e.bi_valid & 65535, Lr(e, e.bi_buf), e.bi_buf = t >> hr - e.bi_valid, e.bi_valid += r - hr) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += r);
  3777. }
  3778. function Mr(e, t, r) {
  3779. Tr(e, r[2 * t], r[2 * t + 1]);
  3780. }
  3781. function Cr(e, t) {
  3782. var r = 0;
  3783. do {
  3784. r |= 1 & e, e >>>= 1, r <<= 1;
  3785. } while (--t > 0);
  3786. return r >>> 1;
  3787. }
  3788. function Dr(e, t, r) {
  3789. var n,
  3790. i,
  3791. o = new Array(sr + 1),
  3792. a = 0;
  3793. for (n = 1; n <= sr; n++) o[n] = a = a + r[n - 1] << 1;
  3794. for (i = 0; i <= t; i++) {
  3795. var s = e[2 * i + 1];
  3796. 0 !== s && (e[2 * i] = Cr(o[s]++, s));
  3797. }
  3798. }
  3799. function Ir(e) {
  3800. var t;
  3801. for (t = 0; t < nr; t++) e.dyn_ltree[2 * t] = 0;
  3802. for (t = 0; t < ir; t++) e.dyn_dtree[2 * t] = 0;
  3803. for (t = 0; t < or; t++) e.bl_tree[2 * t] = 0;
  3804. e.dyn_ltree[2 * fr] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
  3805. }
  3806. function Pr(e) {
  3807. e.bi_valid > 8 ? Lr(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
  3808. }
  3809. function Or(e, t, r, n) {
  3810. var i = 2 * t,
  3811. o = 2 * r;
  3812. return e[i] < e[o] || e[i] === e[o] && n[t] <= n[r];
  3813. }
  3814. function Ur(e, t, r) {
  3815. for (var n = e.heap[r], i = r << 1; i <= e.heap_len && (i < e.heap_len && Or(t, e.heap[i + 1], e.heap[i], e.depth) && i++, !Or(t, n, e.heap[i], e.depth));) e.heap[r] = e.heap[i], r = i, i <<= 1;
  3816. e.heap[r] = n;
  3817. }
  3818. function Hr(e, t, r) {
  3819. var n,
  3820. i,
  3821. o,
  3822. a,
  3823. s = 0;
  3824. if (0 !== e.last_lit) do {
  3825. n = e.pending_buf[e.d_buf + 2 * s] << 8 | e.pending_buf[e.d_buf + 2 * s + 1], i = e.pending_buf[e.l_buf + s], s++, 0 === n ? Mr(e, i, t) : (Mr(e, (o = mr[i]) + rr + 1, t), 0 !== (a = pr[o]) && Tr(e, i -= kr[o], a), Mr(e, o = zr(--n), r), 0 !== (a = _r[o]) && Tr(e, n -= Rr[o], a));
  3826. } while (s < e.last_lit);
  3827. Mr(e, fr, t);
  3828. }
  3829. function Fr(e, t) {
  3830. var r,
  3831. n,
  3832. i,
  3833. o = t.dyn_tree,
  3834. a = t.stat_desc.static_tree,
  3835. s = t.stat_desc.has_stree,
  3836. h = t.stat_desc.elems,
  3837. l = -1;
  3838. for (e.heap_len = 0, e.heap_max = ar, r = 0; r < h; r++) 0 !== o[2 * r] ? (e.heap[++e.heap_len] = l = r, e.depth[r] = 0) : o[2 * r + 1] = 0;
  3839. for (; e.heap_len < 2;) o[2 * (i = e.heap[++e.heap_len] = l < 2 ? ++l : 0)] = 1, e.depth[i] = 0, e.opt_len--, s && (e.static_len -= a[2 * i + 1]);
  3840. for (t.max_code = l, r = e.heap_len >> 1; r >= 1; r--) Ur(e, o, r);
  3841. i = h;
  3842. do {
  3843. r = e.heap[1], e.heap[1] = e.heap[e.heap_len--], Ur(e, o, 1), n = e.heap[1], e.heap[--e.heap_max] = r, e.heap[--e.heap_max] = n, o[2 * i] = o[2 * r] + o[2 * n], e.depth[i] = (e.depth[r] >= e.depth[n] ? e.depth[r] : e.depth[n]) + 1, o[2 * r + 1] = o[2 * n + 1] = i, e.heap[1] = i++, Ur(e, o, 1);
  3844. } while (e.heap_len >= 2);
  3845. e.heap[--e.heap_max] = e.heap[1], function (e, t) {
  3846. var r,
  3847. n,
  3848. i,
  3849. o,
  3850. a,
  3851. s,
  3852. h = t.dyn_tree,
  3853. l = t.max_code,
  3854. f = t.stat_desc.static_tree,
  3855. c = t.stat_desc.has_stree,
  3856. u = t.stat_desc.extra_bits,
  3857. d = t.stat_desc.extra_base,
  3858. p = t.stat_desc.max_length,
  3859. _ = 0;
  3860. for (o = 0; o <= sr; o++) e.bl_count[o] = 0;
  3861. for (h[2 * e.heap[e.heap_max] + 1] = 0, r = e.heap_max + 1; r < ar; r++) (o = h[2 * h[2 * (n = e.heap[r]) + 1] + 1] + 1) > p && (o = p, _++), h[2 * n + 1] = o, n > l || (e.bl_count[o]++, a = 0, n >= d && (a = u[n - d]), s = h[2 * n], e.opt_len += s * (o + a), c && (e.static_len += s * (f[2 * n + 1] + a)));
  3862. if (0 !== _) {
  3863. do {
  3864. for (o = p - 1; 0 === e.bl_count[o];) o--;
  3865. e.bl_count[o]--, e.bl_count[o + 1] += 2, e.bl_count[p]--, _ -= 2;
  3866. } while (_ > 0);
  3867. for (o = p; 0 !== o; o--) for (n = e.bl_count[o]; 0 !== n;) (i = e.heap[--r]) > l || (h[2 * i + 1] !== o && (e.opt_len += (o - h[2 * i + 1]) * h[2 * i], h[2 * i + 1] = o), n--);
  3868. }
  3869. }(e, t), Dr(o, l, e.bl_count);
  3870. }
  3871. function Nr(e, t, r) {
  3872. var n,
  3873. i,
  3874. o = -1,
  3875. a = t[1],
  3876. s = 0,
  3877. h = 7,
  3878. l = 4;
  3879. for (0 === a && (h = 138, l = 3), t[2 * (r + 1) + 1] = 65535, n = 0; n <= r; n++) i = a, a = t[2 * (n + 1) + 1], ++s < h && i === a || (s < l ? e.bl_tree[2 * i] += s : 0 !== i ? (i !== o && e.bl_tree[2 * i]++, e.bl_tree[2 * cr]++) : s <= 10 ? e.bl_tree[2 * ur]++ : e.bl_tree[2 * dr]++, s = 0, o = i, 0 === a ? (h = 138, l = 3) : i === a ? (h = 6, l = 3) : (h = 7, l = 4));
  3880. }
  3881. function Zr(e, t, r) {
  3882. var n,
  3883. i,
  3884. o = -1,
  3885. a = t[1],
  3886. s = 0,
  3887. h = 7,
  3888. l = 4;
  3889. for (0 === a && (h = 138, l = 3), n = 0; n <= r; n++) if (i = a, a = t[2 * (n + 1) + 1], !(++s < h && i === a)) {
  3890. if (s < l) do {
  3891. Mr(e, i, e.bl_tree);
  3892. } while (0 != --s);else 0 !== i ? (i !== o && (Mr(e, i, e.bl_tree), s--), Mr(e, cr, e.bl_tree), Tr(e, s - 3, 2)) : s <= 10 ? (Mr(e, ur, e.bl_tree), Tr(e, s - 3, 3)) : (Mr(e, dr, e.bl_tree), Tr(e, s - 11, 7));
  3893. s = 0, o = i, 0 === a ? (h = 138, l = 3) : i === a ? (h = 6, l = 3) : (h = 7, l = 4);
  3894. }
  3895. }
  3896. $t(Rr);
  3897. var jr = !1;
  3898. function Wr(e) {
  3899. jr || (!function () {
  3900. var e,
  3901. t,
  3902. r,
  3903. n,
  3904. i,
  3905. o = new Array(sr + 1);
  3906. for (r = 0, n = 0; n < tr - 1; n++) for (kr[n] = r, e = 0; e < 1 << pr[n]; e++) mr[r++] = n;
  3907. for (mr[r - 1] = n, i = 0, n = 0; n < 16; n++) for (Rr[n] = i, e = 0; e < 1 << _r[n]; e++) yr[i++] = n;
  3908. for (i >>= 7; n < ir; n++) for (Rr[n] = i << 7, e = 0; e < 1 << _r[n] - 7; e++) yr[256 + i++] = n;
  3909. for (t = 0; t <= sr; t++) o[t] = 0;
  3910. for (e = 0; e <= 143;) wr[2 * e + 1] = 8, e++, o[8]++;
  3911. for (; e <= 255;) wr[2 * e + 1] = 9, e++, o[9]++;
  3912. for (; e <= 279;) wr[2 * e + 1] = 7, e++, o[7]++;
  3913. for (; e <= 287;) wr[2 * e + 1] = 8, e++, o[8]++;
  3914. for (Dr(wr, nr + 1, o), e = 0; e < ir; e++) br[2 * e + 1] = 5, br[2 * e] = Cr(e, 5);
  3915. Er = new Ar(wr, pr, rr + 1, nr, sr), Sr = new Ar(br, _r, 0, ir, sr), xr = new Ar(new Array(0), gr, 0, or, lr);
  3916. }(), jr = !0), e.l_desc = new Br(e.dyn_ltree, Er), e.d_desc = new Br(e.dyn_dtree, Sr), e.bl_desc = new Br(e.bl_tree, xr), e.bi_buf = 0, e.bi_valid = 0, Ir(e);
  3917. }
  3918. function Yr(e, t, r, n) {
  3919. Tr(e, (Jt << 1) + (n ? 1 : 0), 3), function (e, t, r, n) {
  3920. Pr(e), n && (Lr(e, r), Lr(e, ~r)), jt(e.pending_buf, e.window, t, r, e.pending), e.pending += r;
  3921. }(e, t, r, !0);
  3922. }
  3923. function Kr(e) {
  3924. Tr(e, Qt << 1, 3), Mr(e, fr, wr), function (e) {
  3925. 16 === e.bi_valid ? (Lr(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = 255 & e.bi_buf, e.bi_buf >>= 8, e.bi_valid -= 8);
  3926. }(e);
  3927. }
  3928. function Xr(e, t, r, n) {
  3929. var i,
  3930. o,
  3931. a = 0;
  3932. e.level > 0 ? (e.strm.data_type === Gt && (e.strm.data_type = function (e) {
  3933. var t,
  3934. r = 4093624447;
  3935. for (t = 0; t <= 31; t++, r >>>= 1) if (1 & r && 0 !== e.dyn_ltree[2 * t]) return qt;
  3936. if (0 !== e.dyn_ltree[18] || 0 !== e.dyn_ltree[20] || 0 !== e.dyn_ltree[26]) return Vt;
  3937. for (t = 32; t < rr; t++) if (0 !== e.dyn_ltree[2 * t]) return Vt;
  3938. return qt;
  3939. }(e)), Fr(e, e.l_desc), Fr(e, e.d_desc), a = function (e) {
  3940. var t;
  3941. for (Nr(e, e.dyn_ltree, e.l_desc.max_code), Nr(e, e.dyn_dtree, e.d_desc.max_code), Fr(e, e.bl_desc), t = or - 1; t >= 3 && 0 === e.bl_tree[2 * vr[t] + 1]; t--);
  3942. return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
  3943. }(e), i = e.opt_len + 3 + 7 >>> 3, (o = e.static_len + 3 + 7 >>> 3) <= i && (i = o)) : i = o = r + 5, r + 4 <= i && -1 !== t ? Yr(e, t, r, n) : e.strategy === Xt || o === i ? (Tr(e, (Qt << 1) + (n ? 1 : 0), 3), Hr(e, wr, br)) : (Tr(e, (er << 1) + (n ? 1 : 0), 3), function (e, t, r, n) {
  3944. var i;
  3945. for (Tr(e, t - 257, 5), Tr(e, r - 1, 5), Tr(e, n - 4, 4), i = 0; i < n; i++) Tr(e, e.bl_tree[2 * vr[i] + 1], 3);
  3946. Zr(e, e.dyn_ltree, t - 1), Zr(e, e.dyn_dtree, r - 1);
  3947. }(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, a + 1), Hr(e, e.dyn_ltree, e.dyn_dtree)), Ir(e), n && Pr(e);
  3948. }
  3949. function qr(e, t, r) {
  3950. return e.pending_buf[e.d_buf + 2 * e.last_lit] = t >>> 8 & 255, e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t, e.pending_buf[e.l_buf + e.last_lit] = 255 & r, e.last_lit++, 0 === t ? e.dyn_ltree[2 * r]++ : (e.matches++, t--, e.dyn_ltree[2 * (mr[r] + rr + 1)]++, e.dyn_dtree[2 * zr(t)]++), e.last_lit === e.lit_bufsize - 1;
  3951. }
  3952. function Vr(e, t, r, n) {
  3953. for (var i = 65535 & e | 0, o = e >>> 16 & 65535 | 0, a = 0; 0 !== r;) {
  3954. r -= a = r > 2e3 ? 2e3 : r;
  3955. do {
  3956. o = o + (i = i + t[n++] | 0) | 0;
  3957. } while (--a);
  3958. i %= 65521, o %= 65521;
  3959. }
  3960. return i | o << 16 | 0;
  3961. }
  3962. var Gr = function () {
  3963. for (var e, t = [], r = 0; r < 256; r++) {
  3964. e = r;
  3965. for (var n = 0; n < 8; n++) e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
  3966. t[r] = e;
  3967. }
  3968. return t;
  3969. }();
  3970. function $r(e, t, r, n) {
  3971. var i = Gr,
  3972. o = n + r;
  3973. e ^= -1;
  3974. for (var a = n; a < o; a++) e = e >>> 8 ^ i[255 & (e ^ t[a])];
  3975. return -1 ^ e;
  3976. }
  3977. var Jr,
  3978. Qr = 0,
  3979. en = 1,
  3980. tn = 3,
  3981. rn = 4,
  3982. nn = 5,
  3983. on = 0,
  3984. an = 1,
  3985. sn = -2,
  3986. hn = -3,
  3987. ln = -5,
  3988. fn = -1,
  3989. cn = 1,
  3990. un = 2,
  3991. dn = 3,
  3992. pn = 4,
  3993. _n = 2,
  3994. gn = 8,
  3995. vn = 9,
  3996. wn = 286,
  3997. bn = 30,
  3998. yn = 19,
  3999. mn = 2 * wn + 1,
  4000. kn = 15,
  4001. En = 3,
  4002. Sn = 258,
  4003. xn = Sn + En + 1,
  4004. Rn = 32,
  4005. An = 42,
  4006. Bn = 69,
  4007. zn = 73,
  4008. Ln = 91,
  4009. Tn = 103,
  4010. Mn = 113,
  4011. Cn = 666,
  4012. Dn = 1,
  4013. In = 2,
  4014. Pn = 3,
  4015. On = 4,
  4016. Un = 3;
  4017. function Hn(e, t) {
  4018. return e.msg = Nt[t], t;
  4019. }
  4020. function Fn(e) {
  4021. return (e << 1) - (e > 4 ? 9 : 0);
  4022. }
  4023. function Nn(e) {
  4024. for (var t = e.length; --t >= 0;) e[t] = 0;
  4025. }
  4026. function Zn(e) {
  4027. var t = e.state,
  4028. r = t.pending;
  4029. r > e.avail_out && (r = e.avail_out), 0 !== r && (jt(e.output, t.pending_buf, t.pending_out, r, e.next_out), e.next_out += r, t.pending_out += r, e.total_out += r, e.avail_out -= r, t.pending -= r, 0 === t.pending && (t.pending_out = 0));
  4030. }
  4031. function jn(e, t) {
  4032. Xr(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, t), e.block_start = e.strstart, Zn(e.strm);
  4033. }
  4034. function Wn(e, t) {
  4035. e.pending_buf[e.pending++] = t;
  4036. }
  4037. function Yn(e, t) {
  4038. e.pending_buf[e.pending++] = t >>> 8 & 255, e.pending_buf[e.pending++] = 255 & t;
  4039. }
  4040. function Kn(e, t) {
  4041. var r,
  4042. n,
  4043. i = e.max_chain_length,
  4044. o = e.strstart,
  4045. a = e.prev_length,
  4046. s = e.nice_match,
  4047. h = e.strstart > e.w_size - xn ? e.strstart - (e.w_size - xn) : 0,
  4048. l = e.window,
  4049. f = e.w_mask,
  4050. c = e.prev,
  4051. u = e.strstart + Sn,
  4052. d = l[o + a - 1],
  4053. p = l[o + a];
  4054. e.prev_length >= e.good_match && (i >>= 2), s > e.lookahead && (s = e.lookahead);
  4055. do {
  4056. if (l[(r = t) + a] === p && l[r + a - 1] === d && l[r] === l[o] && l[++r] === l[o + 1]) {
  4057. o += 2, r++;
  4058. do {} while (l[++o] === l[++r] && l[++o] === l[++r] && l[++o] === l[++r] && l[++o] === l[++r] && l[++o] === l[++r] && l[++o] === l[++r] && l[++o] === l[++r] && l[++o] === l[++r] && o < u);
  4059. if (n = Sn - (u - o), o = u - Sn, n > a) {
  4060. if (e.match_start = t, a = n, n >= s) break;
  4061. d = l[o + a - 1], p = l[o + a];
  4062. }
  4063. }
  4064. } while ((t = c[t & f]) > h && 0 != --i);
  4065. return a <= e.lookahead ? a : e.lookahead;
  4066. }
  4067. function Xn(e) {
  4068. var t,
  4069. r,
  4070. n,
  4071. i,
  4072. o,
  4073. a,
  4074. s,
  4075. h,
  4076. l,
  4077. f,
  4078. c = e.w_size;
  4079. do {
  4080. if (i = e.window_size - e.lookahead - e.strstart, e.strstart >= c + (c - xn)) {
  4081. jt(e.window, e.window, c, c, 0), e.match_start -= c, e.strstart -= c, e.block_start -= c, t = r = e.hash_size;
  4082. do {
  4083. n = e.head[--t], e.head[t] = n >= c ? n - c : 0;
  4084. } while (--r);
  4085. t = r = c;
  4086. do {
  4087. n = e.prev[--t], e.prev[t] = n >= c ? n - c : 0;
  4088. } while (--r);
  4089. i += c;
  4090. }
  4091. if (0 === e.strm.avail_in) break;
  4092. if (a = e.strm, s = e.window, h = e.strstart + e.lookahead, l = i, f = void 0, (f = a.avail_in) > l && (f = l), r = 0 === f ? 0 : (a.avail_in -= f, jt(s, a.input, a.next_in, f, h), 1 === a.state.wrap ? a.adler = Vr(a.adler, s, f, h) : 2 === a.state.wrap && (a.adler = $r(a.adler, s, f, h)), a.next_in += f, a.total_in += f, f), e.lookahead += r, e.lookahead + e.insert >= En) for (o = e.strstart - e.insert, e.ins_h = e.window[o], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[o + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[o + En - 1]) & e.hash_mask, e.prev[o & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = o, o++, e.insert--, !(e.lookahead + e.insert < En)););
  4093. } while (e.lookahead < xn && 0 !== e.strm.avail_in);
  4094. }
  4095. function qn(e, t) {
  4096. for (var r, n;;) {
  4097. if (e.lookahead < xn) {
  4098. if (Xn(e), e.lookahead < xn && t === Qr) return Dn;
  4099. if (0 === e.lookahead) break;
  4100. }
  4101. if (r = 0, e.lookahead >= En && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + En - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), 0 !== r && e.strstart - r <= e.w_size - xn && (e.match_length = Kn(e, r)), e.match_length >= En) {
  4102. if (n = qr(e, e.strstart - e.match_start, e.match_length - En), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= En) {
  4103. e.match_length--;
  4104. do {
  4105. e.strstart++, e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + En - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart;
  4106. } while (0 != --e.match_length);
  4107. e.strstart++;
  4108. } else e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 1]) & e.hash_mask;
  4109. } else n = qr(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
  4110. if (n && (jn(e, !1), 0 === e.strm.avail_out)) return Dn;
  4111. }
  4112. return e.insert = e.strstart < En - 1 ? e.strstart : En - 1, t === rn ? (jn(e, !0), 0 === e.strm.avail_out ? Pn : On) : e.last_lit && (jn(e, !1), 0 === e.strm.avail_out) ? Dn : In;
  4113. }
  4114. function Vn(e, t) {
  4115. for (var r, n, i;;) {
  4116. if (e.lookahead < xn) {
  4117. if (Xn(e), e.lookahead < xn && t === Qr) return Dn;
  4118. if (0 === e.lookahead) break;
  4119. }
  4120. if (r = 0, e.lookahead >= En && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + En - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = En - 1, 0 !== r && e.prev_length < e.max_lazy_match && e.strstart - r <= e.w_size - xn && (e.match_length = Kn(e, r), e.match_length <= 5 && (e.strategy === cn || e.match_length === En && e.strstart - e.match_start > 4096) && (e.match_length = En - 1)), e.prev_length >= En && e.match_length <= e.prev_length) {
  4121. i = e.strstart + e.lookahead - En, n = qr(e, e.strstart - 1 - e.prev_match, e.prev_length - En), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
  4122. do {
  4123. ++e.strstart <= i && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + En - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
  4124. } while (0 != --e.prev_length);
  4125. if (e.match_available = 0, e.match_length = En - 1, e.strstart++, n && (jn(e, !1), 0 === e.strm.avail_out)) return Dn;
  4126. } else if (e.match_available) {
  4127. if ((n = qr(e, 0, e.window[e.strstart - 1])) && jn(e, !1), e.strstart++, e.lookahead--, 0 === e.strm.avail_out) return Dn;
  4128. } else e.match_available = 1, e.strstart++, e.lookahead--;
  4129. }
  4130. return e.match_available && (n = qr(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < En - 1 ? e.strstart : En - 1, t === rn ? (jn(e, !0), 0 === e.strm.avail_out ? Pn : On) : e.last_lit && (jn(e, !1), 0 === e.strm.avail_out) ? Dn : In;
  4131. }
  4132. function Gn(e, t, r, n, i) {
  4133. this.good_length = e, this.max_lazy = t, this.nice_length = r, this.max_chain = n, this.func = i;
  4134. }
  4135. function $n() {
  4136. this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = gn, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Yt(2 * mn), this.dyn_dtree = new Yt(2 * (2 * bn + 1)), this.bl_tree = new Yt(2 * (2 * yn + 1)), Nn(this.dyn_ltree), Nn(this.dyn_dtree), Nn(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Yt(kn + 1), this.heap = new Yt(2 * wn + 1), Nn(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Yt(2 * wn + 1), Nn(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
  4137. }
  4138. function Jn(e) {
  4139. var t,
  4140. r = function (e) {
  4141. var t;
  4142. return e && e.state ? (e.total_in = e.total_out = 0, e.data_type = _n, (t = e.state).pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? An : Mn, e.adler = 2 === t.wrap ? 0 : 1, t.last_flush = Qr, Wr(t), on) : Hn(e, sn);
  4143. }(e);
  4144. return r === on && ((t = e.state).window_size = 2 * t.w_size, Nn(t.head), t.max_lazy_match = Jr[t.level].max_lazy, t.good_match = Jr[t.level].good_length, t.nice_match = Jr[t.level].nice_length, t.max_chain_length = Jr[t.level].max_chain, t.strstart = 0, t.block_start = 0, t.lookahead = 0, t.insert = 0, t.match_length = t.prev_length = En - 1, t.match_available = 0, t.ins_h = 0), r;
  4145. }
  4146. function Qn(e, t) {
  4147. var r, n, i, o;
  4148. if (!e || !e.state || t > nn || t < 0) return e ? Hn(e, sn) : sn;
  4149. if (n = e.state, !e.output || !e.input && 0 !== e.avail_in || n.status === Cn && t !== rn) return Hn(e, 0 === e.avail_out ? ln : sn);
  4150. if (n.strm = e, r = n.last_flush, n.last_flush = t, n.status === An) if (2 === n.wrap) e.adler = 0, Wn(n, 31), Wn(n, 139), Wn(n, 8), n.gzhead ? (Wn(n, (n.gzhead.text ? 1 : 0) + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)), Wn(n, 255 & n.gzhead.time), Wn(n, n.gzhead.time >> 8 & 255), Wn(n, n.gzhead.time >> 16 & 255), Wn(n, n.gzhead.time >> 24 & 255), Wn(n, 9 === n.level ? 2 : n.strategy >= un || n.level < 2 ? 4 : 0), Wn(n, 255 & n.gzhead.os), n.gzhead.extra && n.gzhead.extra.length && (Wn(n, 255 & n.gzhead.extra.length), Wn(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = $r(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = Bn) : (Wn(n, 0), Wn(n, 0), Wn(n, 0), Wn(n, 0), Wn(n, 0), Wn(n, 9 === n.level ? 2 : n.strategy >= un || n.level < 2 ? 4 : 0), Wn(n, Un), n.status = Mn);else {
  4151. var a = gn + (n.w_bits - 8 << 4) << 8;
  4152. a |= (n.strategy >= un || n.level < 2 ? 0 : n.level < 6 ? 1 : 6 === n.level ? 2 : 3) << 6, 0 !== n.strstart && (a |= Rn), a += 31 - a % 31, n.status = Mn, Yn(n, a), 0 !== n.strstart && (Yn(n, e.adler >>> 16), Yn(n, 65535 & e.adler)), e.adler = 1;
  4153. }
  4154. if (n.status === Bn) if (n.gzhead.extra) {
  4155. for (i = n.pending; n.gzindex < (65535 & n.gzhead.extra.length) && (n.pending !== n.pending_buf_size || (n.gzhead.hcrc && n.pending > i && (e.adler = $r(e.adler, n.pending_buf, n.pending - i, i)), Zn(e), i = n.pending, n.pending !== n.pending_buf_size));) Wn(n, 255 & n.gzhead.extra[n.gzindex]), n.gzindex++;
  4156. n.gzhead.hcrc && n.pending > i && (e.adler = $r(e.adler, n.pending_buf, n.pending - i, i)), n.gzindex === n.gzhead.extra.length && (n.gzindex = 0, n.status = zn);
  4157. } else n.status = zn;
  4158. if (n.status === zn) if (n.gzhead.name) {
  4159. i = n.pending;
  4160. do {
  4161. if (n.pending === n.pending_buf_size && (n.gzhead.hcrc && n.pending > i && (e.adler = $r(e.adler, n.pending_buf, n.pending - i, i)), Zn(e), i = n.pending, n.pending === n.pending_buf_size)) {
  4162. o = 1;
  4163. break;
  4164. }
  4165. o = n.gzindex < n.gzhead.name.length ? 255 & n.gzhead.name.charCodeAt(n.gzindex++) : 0, Wn(n, o);
  4166. } while (0 !== o);
  4167. n.gzhead.hcrc && n.pending > i && (e.adler = $r(e.adler, n.pending_buf, n.pending - i, i)), 0 === o && (n.gzindex = 0, n.status = Ln);
  4168. } else n.status = Ln;
  4169. if (n.status === Ln) if (n.gzhead.comment) {
  4170. i = n.pending;
  4171. do {
  4172. if (n.pending === n.pending_buf_size && (n.gzhead.hcrc && n.pending > i && (e.adler = $r(e.adler, n.pending_buf, n.pending - i, i)), Zn(e), i = n.pending, n.pending === n.pending_buf_size)) {
  4173. o = 1;
  4174. break;
  4175. }
  4176. o = n.gzindex < n.gzhead.comment.length ? 255 & n.gzhead.comment.charCodeAt(n.gzindex++) : 0, Wn(n, o);
  4177. } while (0 !== o);
  4178. n.gzhead.hcrc && n.pending > i && (e.adler = $r(e.adler, n.pending_buf, n.pending - i, i)), 0 === o && (n.status = Tn);
  4179. } else n.status = Tn;
  4180. if (n.status === Tn && (n.gzhead.hcrc ? (n.pending + 2 > n.pending_buf_size && Zn(e), n.pending + 2 <= n.pending_buf_size && (Wn(n, 255 & e.adler), Wn(n, e.adler >> 8 & 255), e.adler = 0, n.status = Mn)) : n.status = Mn), 0 !== n.pending) {
  4181. if (Zn(e), 0 === e.avail_out) return n.last_flush = -1, on;
  4182. } else if (0 === e.avail_in && Fn(t) <= Fn(r) && t !== rn) return Hn(e, ln);
  4183. if (n.status === Cn && 0 !== e.avail_in) return Hn(e, ln);
  4184. if (0 !== e.avail_in || 0 !== n.lookahead || t !== Qr && n.status !== Cn) {
  4185. var s = n.strategy === un ? function (e, t) {
  4186. for (var r;;) {
  4187. if (0 === e.lookahead && (Xn(e), 0 === e.lookahead)) {
  4188. if (t === Qr) return Dn;
  4189. break;
  4190. }
  4191. if (e.match_length = 0, r = qr(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, r && (jn(e, !1), 0 === e.strm.avail_out)) return Dn;
  4192. }
  4193. return e.insert = 0, t === rn ? (jn(e, !0), 0 === e.strm.avail_out ? Pn : On) : e.last_lit && (jn(e, !1), 0 === e.strm.avail_out) ? Dn : In;
  4194. }(n, t) : n.strategy === dn ? function (e, t) {
  4195. for (var r, n, i, o, a = e.window;;) {
  4196. if (e.lookahead <= Sn) {
  4197. if (Xn(e), e.lookahead <= Sn && t === Qr) return Dn;
  4198. if (0 === e.lookahead) break;
  4199. }
  4200. if (e.match_length = 0, e.lookahead >= En && e.strstart > 0 && (n = a[i = e.strstart - 1]) === a[++i] && n === a[++i] && n === a[++i]) {
  4201. o = e.strstart + Sn;
  4202. do {} while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && i < o);
  4203. e.match_length = Sn - (o - i), e.match_length > e.lookahead && (e.match_length = e.lookahead);
  4204. }
  4205. if (e.match_length >= En ? (r = qr(e, 1, e.match_length - En), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (r = qr(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), r && (jn(e, !1), 0 === e.strm.avail_out)) return Dn;
  4206. }
  4207. return e.insert = 0, t === rn ? (jn(e, !0), 0 === e.strm.avail_out ? Pn : On) : e.last_lit && (jn(e, !1), 0 === e.strm.avail_out) ? Dn : In;
  4208. }(n, t) : Jr[n.level].func(n, t);
  4209. if (s !== Pn && s !== On || (n.status = Cn), s === Dn || s === Pn) return 0 === e.avail_out && (n.last_flush = -1), on;
  4210. if (s === In && (t === en ? Kr(n) : t !== nn && (Yr(n, 0, 0, !1), t === tn && (Nn(n.head), 0 === n.lookahead && (n.strstart = 0, n.block_start = 0, n.insert = 0))), Zn(e), 0 === e.avail_out)) return n.last_flush = -1, on;
  4211. }
  4212. return t !== rn ? on : n.wrap <= 0 ? an : (2 === n.wrap ? (Wn(n, 255 & e.adler), Wn(n, e.adler >> 8 & 255), Wn(n, e.adler >> 16 & 255), Wn(n, e.adler >> 24 & 255), Wn(n, 255 & e.total_in), Wn(n, e.total_in >> 8 & 255), Wn(n, e.total_in >> 16 & 255), Wn(n, e.total_in >> 24 & 255)) : (Yn(n, e.adler >>> 16), Yn(n, 65535 & e.adler)), Zn(e), n.wrap > 0 && (n.wrap = -n.wrap), 0 !== n.pending ? on : an);
  4213. }
  4214. Jr = [new Gn(0, 0, 0, 0, function (e, t) {
  4215. var r = 65535;
  4216. for (r > e.pending_buf_size - 5 && (r = e.pending_buf_size - 5);;) {
  4217. if (e.lookahead <= 1) {
  4218. if (Xn(e), 0 === e.lookahead && t === Qr) return Dn;
  4219. if (0 === e.lookahead) break;
  4220. }
  4221. e.strstart += e.lookahead, e.lookahead = 0;
  4222. var n = e.block_start + r;
  4223. if ((0 === e.strstart || e.strstart >= n) && (e.lookahead = e.strstart - n, e.strstart = n, jn(e, !1), 0 === e.strm.avail_out)) return Dn;
  4224. if (e.strstart - e.block_start >= e.w_size - xn && (jn(e, !1), 0 === e.strm.avail_out)) return Dn;
  4225. }
  4226. return e.insert = 0, t === rn ? (jn(e, !0), 0 === e.strm.avail_out ? Pn : On) : (e.strstart > e.block_start && (jn(e, !1), e.strm.avail_out), Dn);
  4227. }), new Gn(4, 4, 8, 4, qn), new Gn(4, 5, 16, 8, qn), new Gn(4, 6, 32, 32, qn), new Gn(4, 4, 16, 16, Vn), new Gn(8, 16, 32, 32, Vn), new Gn(8, 16, 128, 128, Vn), new Gn(8, 32, 128, 256, Vn), new Gn(32, 128, 258, 1024, Vn), new Gn(32, 258, 258, 4096, Vn)];
  4228. var ei = 30,
  4229. ti = 12;
  4230. function ri(e, t) {
  4231. var r, n, i, o, a, s, h, l, f, c, u, d, p, _, g, v, w, b, y, m, k, E, S, x, R;
  4232. r = e.state, n = e.next_in, x = e.input, i = n + (e.avail_in - 5), o = e.next_out, R = e.output, a = o - (t - e.avail_out), s = o + (e.avail_out - 257), h = r.dmax, l = r.wsize, f = r.whave, c = r.wnext, u = r.window, d = r.hold, p = r.bits, _ = r.lencode, g = r.distcode, v = (1 << r.lenbits) - 1, w = (1 << r.distbits) - 1;
  4233. e: do {
  4234. p < 15 && (d += x[n++] << p, p += 8, d += x[n++] << p, p += 8), b = _[d & v];
  4235. t: for (;;) {
  4236. if (d >>>= y = b >>> 24, p -= y, 0 === (y = b >>> 16 & 255)) R[o++] = 65535 & b;else {
  4237. if (!(16 & y)) {
  4238. if (0 == (64 & y)) {
  4239. b = _[(65535 & b) + (d & (1 << y) - 1)];
  4240. continue t;
  4241. }
  4242. if (32 & y) {
  4243. r.mode = ti;
  4244. break e;
  4245. }
  4246. e.msg = "invalid literal/length code", r.mode = ei;
  4247. break e;
  4248. }
  4249. m = 65535 & b, (y &= 15) && (p < y && (d += x[n++] << p, p += 8), m += d & (1 << y) - 1, d >>>= y, p -= y), p < 15 && (d += x[n++] << p, p += 8, d += x[n++] << p, p += 8), b = g[d & w];
  4250. r: for (;;) {
  4251. if (d >>>= y = b >>> 24, p -= y, !(16 & (y = b >>> 16 & 255))) {
  4252. if (0 == (64 & y)) {
  4253. b = g[(65535 & b) + (d & (1 << y) - 1)];
  4254. continue r;
  4255. }
  4256. e.msg = "invalid distance code", r.mode = ei;
  4257. break e;
  4258. }
  4259. if (k = 65535 & b, p < (y &= 15) && (d += x[n++] << p, (p += 8) < y && (d += x[n++] << p, p += 8)), (k += d & (1 << y) - 1) > h) {
  4260. e.msg = "invalid distance too far back", r.mode = ei;
  4261. break e;
  4262. }
  4263. if (d >>>= y, p -= y, k > (y = o - a)) {
  4264. if ((y = k - y) > f && r.sane) {
  4265. e.msg = "invalid distance too far back", r.mode = ei;
  4266. break e;
  4267. }
  4268. if (E = 0, S = u, 0 === c) {
  4269. if (E += l - y, y < m) {
  4270. m -= y;
  4271. do {
  4272. R[o++] = u[E++];
  4273. } while (--y);
  4274. E = o - k, S = R;
  4275. }
  4276. } else if (c < y) {
  4277. if (E += l + c - y, (y -= c) < m) {
  4278. m -= y;
  4279. do {
  4280. R[o++] = u[E++];
  4281. } while (--y);
  4282. if (E = 0, c < m) {
  4283. m -= y = c;
  4284. do {
  4285. R[o++] = u[E++];
  4286. } while (--y);
  4287. E = o - k, S = R;
  4288. }
  4289. }
  4290. } else if (E += c - y, y < m) {
  4291. m -= y;
  4292. do {
  4293. R[o++] = u[E++];
  4294. } while (--y);
  4295. E = o - k, S = R;
  4296. }
  4297. for (; m > 2;) R[o++] = S[E++], R[o++] = S[E++], R[o++] = S[E++], m -= 3;
  4298. m && (R[o++] = S[E++], m > 1 && (R[o++] = S[E++]));
  4299. } else {
  4300. E = o - k;
  4301. do {
  4302. R[o++] = R[E++], R[o++] = R[E++], R[o++] = R[E++], m -= 3;
  4303. } while (m > 2);
  4304. m && (R[o++] = R[E++], m > 1 && (R[o++] = R[E++]));
  4305. }
  4306. break;
  4307. }
  4308. }
  4309. break;
  4310. }
  4311. } while (n < i && o < s);
  4312. n -= m = p >> 3, d &= (1 << (p -= m << 3)) - 1, e.next_in = n, e.next_out = o, e.avail_in = n < i ? i - n + 5 : 5 - (n - i), e.avail_out = o < s ? s - o + 257 : 257 - (o - s), r.hold = d, r.bits = p;
  4313. }
  4314. var ni = 15,
  4315. ii = 852,
  4316. oi = 592,
  4317. ai = 0,
  4318. si = 1,
  4319. hi = 2,
  4320. li = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0],
  4321. fi = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78],
  4322. ci = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0],
  4323. ui = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
  4324. function di(e, t, r, n, i, o, a, s) {
  4325. var h,
  4326. l,
  4327. f,
  4328. c,
  4329. u,
  4330. d,
  4331. p,
  4332. _,
  4333. g,
  4334. v = s.bits,
  4335. w = 0,
  4336. b = 0,
  4337. y = 0,
  4338. m = 0,
  4339. k = 0,
  4340. E = 0,
  4341. S = 0,
  4342. x = 0,
  4343. R = 0,
  4344. A = 0,
  4345. B = null,
  4346. z = 0,
  4347. L = new Yt(ni + 1),
  4348. T = new Yt(ni + 1),
  4349. M = null,
  4350. C = 0;
  4351. for (w = 0; w <= ni; w++) L[w] = 0;
  4352. for (b = 0; b < n; b++) L[t[r + b]]++;
  4353. for (k = v, m = ni; m >= 1 && 0 === L[m]; m--);
  4354. if (k > m && (k = m), 0 === m) return i[o++] = 20971520, i[o++] = 20971520, s.bits = 1, 0;
  4355. for (y = 1; y < m && 0 === L[y]; y++);
  4356. for (k < y && (k = y), x = 1, w = 1; w <= ni; w++) if (x <<= 1, (x -= L[w]) < 0) return -1;
  4357. if (x > 0 && (e === ai || 1 !== m)) return -1;
  4358. for (T[1] = 0, w = 1; w < ni; w++) T[w + 1] = T[w] + L[w];
  4359. for (b = 0; b < n; b++) 0 !== t[r + b] && (a[T[t[r + b]]++] = b);
  4360. if (e === ai ? (B = M = a, d = 19) : e === si ? (B = li, z -= 257, M = fi, C -= 257, d = 256) : (B = ci, M = ui, d = -1), A = 0, b = 0, w = y, u = o, E = k, S = 0, f = -1, c = (R = 1 << k) - 1, e === si && R > ii || e === hi && R > oi) return 1;
  4361. for (;;) {
  4362. p = w - S, a[b] < d ? (_ = 0, g = a[b]) : a[b] > d ? (_ = M[C + a[b]], g = B[z + a[b]]) : (_ = 96, g = 0), h = 1 << w - S, y = l = 1 << E;
  4363. do {
  4364. i[u + (A >> S) + (l -= h)] = p << 24 | _ << 16 | g | 0;
  4365. } while (0 !== l);
  4366. for (h = 1 << w - 1; A & h;) h >>= 1;
  4367. if (0 !== h ? (A &= h - 1, A += h) : A = 0, b++, 0 == --L[w]) {
  4368. if (w === m) break;
  4369. w = t[r + a[b]];
  4370. }
  4371. if (w > k && (A & c) !== f) {
  4372. for (0 === S && (S = k), u += y, x = 1 << (E = w - S); E + S < m && !((x -= L[E + S]) <= 0);) E++, x <<= 1;
  4373. if (R += 1 << E, e === si && R > ii || e === hi && R > oi) return 1;
  4374. i[f = A & c] = k << 24 | E << 16 | u - o | 0;
  4375. }
  4376. }
  4377. return 0 !== A && (i[u + A] = w - S << 24 | 64 << 16 | 0), s.bits = k, 0;
  4378. }
  4379. var pi = 0,
  4380. _i = 1,
  4381. gi = 2,
  4382. vi = 4,
  4383. wi = 5,
  4384. bi = 6,
  4385. yi = 0,
  4386. mi = 1,
  4387. ki = 2,
  4388. Ei = -2,
  4389. Si = -3,
  4390. xi = -4,
  4391. Ri = -5,
  4392. Ai = 8,
  4393. Bi = 1,
  4394. zi = 2,
  4395. Li = 3,
  4396. Ti = 4,
  4397. Mi = 5,
  4398. Ci = 6,
  4399. Di = 7,
  4400. Ii = 8,
  4401. Pi = 9,
  4402. Oi = 10,
  4403. Ui = 11,
  4404. Hi = 12,
  4405. Fi = 13,
  4406. Ni = 14,
  4407. Zi = 15,
  4408. ji = 16,
  4409. Wi = 17,
  4410. Yi = 18,
  4411. Ki = 19,
  4412. Xi = 20,
  4413. qi = 21,
  4414. Vi = 22,
  4415. Gi = 23,
  4416. $i = 24,
  4417. Ji = 25,
  4418. Qi = 26,
  4419. eo = 27,
  4420. to = 28,
  4421. ro = 29,
  4422. no = 30,
  4423. io = 31,
  4424. oo = 32,
  4425. ao = 852,
  4426. so = 592;
  4427. function ho(e) {
  4428. return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((65280 & e) << 8) + ((255 & e) << 24);
  4429. }
  4430. function lo() {
  4431. this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Yt(320), this.work = new Yt(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
  4432. }
  4433. function fo(e) {
  4434. var t;
  4435. return e && e.state ? ((t = e.state).wsize = 0, t.whave = 0, t.wnext = 0, function (e) {
  4436. var t;
  4437. return e && e.state ? (t = e.state, e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = 1 & t.wrap), t.mode = Bi, t.last = 0, t.havedict = 0, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new Kt(ao), t.distcode = t.distdyn = new Kt(so), t.sane = 1, t.back = -1, yi) : Ei;
  4438. }(e)) : Ei;
  4439. }
  4440. function co(e, t) {
  4441. var r, n;
  4442. return e ? (n = new lo(), e.state = n, n.window = null, (r = function (e, t) {
  4443. var r, n;
  4444. return e && e.state ? (n = e.state, t < 0 ? (r = 0, t = -t) : (r = 1 + (t >> 4), t < 48 && (t &= 15)), t && (t < 8 || t > 15) ? Ei : (null !== n.window && n.wbits !== t && (n.window = null), n.wrap = r, n.wbits = t, fo(e))) : Ei;
  4445. }(e, t)) !== yi && (e.state = null), r) : Ei;
  4446. }
  4447. var uo,
  4448. po,
  4449. _o = !0;
  4450. function go(e) {
  4451. if (_o) {
  4452. var t;
  4453. for (uo = new Kt(512), po = new Kt(32), t = 0; t < 144;) e.lens[t++] = 8;
  4454. for (; t < 256;) e.lens[t++] = 9;
  4455. for (; t < 280;) e.lens[t++] = 7;
  4456. for (; t < 288;) e.lens[t++] = 8;
  4457. for (di(_i, e.lens, 0, 288, uo, 0, e.work, {
  4458. bits: 9
  4459. }), t = 0; t < 32;) e.lens[t++] = 5;
  4460. di(gi, e.lens, 0, 32, po, 0, e.work, {
  4461. bits: 5
  4462. }), _o = !1;
  4463. }
  4464. e.lencode = uo, e.lenbits = 9, e.distcode = po, e.distbits = 5;
  4465. }
  4466. function vo(e, t) {
  4467. var r,
  4468. n,
  4469. i,
  4470. o,
  4471. a,
  4472. s,
  4473. h,
  4474. l,
  4475. f,
  4476. c,
  4477. u,
  4478. d,
  4479. p,
  4480. _,
  4481. g,
  4482. v,
  4483. w,
  4484. b,
  4485. y,
  4486. m,
  4487. k,
  4488. E,
  4489. S,
  4490. x,
  4491. R = 0,
  4492. A = new Wt(4),
  4493. B = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
  4494. if (!e || !e.state || !e.output || !e.input && 0 !== e.avail_in) return Ei;
  4495. (r = e.state).mode === Hi && (r.mode = Fi), a = e.next_out, i = e.output, h = e.avail_out, o = e.next_in, n = e.input, s = e.avail_in, l = r.hold, f = r.bits, c = s, u = h, E = yi;
  4496. e: for (;;) switch (r.mode) {
  4497. case Bi:
  4498. if (0 === r.wrap) {
  4499. r.mode = Fi;
  4500. break;
  4501. }
  4502. for (; f < 16;) {
  4503. if (0 === s) break e;
  4504. s--, l += n[o++] << f, f += 8;
  4505. }
  4506. if (2 & r.wrap && 35615 === l) {
  4507. r.check = 0, A[0] = 255 & l, A[1] = l >>> 8 & 255, r.check = $r(r.check, A, 2, 0), l = 0, f = 0, r.mode = zi;
  4508. break;
  4509. }
  4510. if (r.flags = 0, r.head && (r.head.done = !1), !(1 & r.wrap) || (((255 & l) << 8) + (l >> 8)) % 31) {
  4511. e.msg = "incorrect header check", r.mode = no;
  4512. break;
  4513. }
  4514. if ((15 & l) !== Ai) {
  4515. e.msg = "unknown compression method", r.mode = no;
  4516. break;
  4517. }
  4518. if (f -= 4, k = 8 + (15 & (l >>>= 4)), 0 === r.wbits) r.wbits = k;else if (k > r.wbits) {
  4519. e.msg = "invalid window size", r.mode = no;
  4520. break;
  4521. }
  4522. r.dmax = 1 << k, e.adler = r.check = 1, r.mode = 512 & l ? Oi : Hi, l = 0, f = 0;
  4523. break;
  4524. case zi:
  4525. for (; f < 16;) {
  4526. if (0 === s) break e;
  4527. s--, l += n[o++] << f, f += 8;
  4528. }
  4529. if (r.flags = l, (255 & r.flags) !== Ai) {
  4530. e.msg = "unknown compression method", r.mode = no;
  4531. break;
  4532. }
  4533. if (57344 & r.flags) {
  4534. e.msg = "unknown header flags set", r.mode = no;
  4535. break;
  4536. }
  4537. r.head && (r.head.text = l >> 8 & 1), 512 & r.flags && (A[0] = 255 & l, A[1] = l >>> 8 & 255, r.check = $r(r.check, A, 2, 0)), l = 0, f = 0, r.mode = Li;
  4538. case Li:
  4539. for (; f < 32;) {
  4540. if (0 === s) break e;
  4541. s--, l += n[o++] << f, f += 8;
  4542. }
  4543. r.head && (r.head.time = l), 512 & r.flags && (A[0] = 255 & l, A[1] = l >>> 8 & 255, A[2] = l >>> 16 & 255, A[3] = l >>> 24 & 255, r.check = $r(r.check, A, 4, 0)), l = 0, f = 0, r.mode = Ti;
  4544. case Ti:
  4545. for (; f < 16;) {
  4546. if (0 === s) break e;
  4547. s--, l += n[o++] << f, f += 8;
  4548. }
  4549. r.head && (r.head.xflags = 255 & l, r.head.os = l >> 8), 512 & r.flags && (A[0] = 255 & l, A[1] = l >>> 8 & 255, r.check = $r(r.check, A, 2, 0)), l = 0, f = 0, r.mode = Mi;
  4550. case Mi:
  4551. if (1024 & r.flags) {
  4552. for (; f < 16;) {
  4553. if (0 === s) break e;
  4554. s--, l += n[o++] << f, f += 8;
  4555. }
  4556. r.length = l, r.head && (r.head.extra_len = l), 512 & r.flags && (A[0] = 255 & l, A[1] = l >>> 8 & 255, r.check = $r(r.check, A, 2, 0)), l = 0, f = 0;
  4557. } else r.head && (r.head.extra = null);
  4558. r.mode = Ci;
  4559. case Ci:
  4560. if (1024 & r.flags && ((d = r.length) > s && (d = s), d && (r.head && (k = r.head.extra_len - r.length, r.head.extra || (r.head.extra = new Array(r.head.extra_len)), jt(r.head.extra, n, o, d, k)), 512 & r.flags && (r.check = $r(r.check, n, d, o)), s -= d, o += d, r.length -= d), r.length)) break e;
  4561. r.length = 0, r.mode = Di;
  4562. case Di:
  4563. if (2048 & r.flags) {
  4564. if (0 === s) break e;
  4565. d = 0;
  4566. do {
  4567. k = n[o + d++], r.head && k && r.length < 65536 && (r.head.name += String.fromCharCode(k));
  4568. } while (k && d < s);
  4569. if (512 & r.flags && (r.check = $r(r.check, n, d, o)), s -= d, o += d, k) break e;
  4570. } else r.head && (r.head.name = null);
  4571. r.length = 0, r.mode = Ii;
  4572. case Ii:
  4573. if (4096 & r.flags) {
  4574. if (0 === s) break e;
  4575. d = 0;
  4576. do {
  4577. k = n[o + d++], r.head && k && r.length < 65536 && (r.head.comment += String.fromCharCode(k));
  4578. } while (k && d < s);
  4579. if (512 & r.flags && (r.check = $r(r.check, n, d, o)), s -= d, o += d, k) break e;
  4580. } else r.head && (r.head.comment = null);
  4581. r.mode = Pi;
  4582. case Pi:
  4583. if (512 & r.flags) {
  4584. for (; f < 16;) {
  4585. if (0 === s) break e;
  4586. s--, l += n[o++] << f, f += 8;
  4587. }
  4588. if (l !== (65535 & r.check)) {
  4589. e.msg = "header crc mismatch", r.mode = no;
  4590. break;
  4591. }
  4592. l = 0, f = 0;
  4593. }
  4594. r.head && (r.head.hcrc = r.flags >> 9 & 1, r.head.done = !0), e.adler = r.check = 0, r.mode = Hi;
  4595. break;
  4596. case Oi:
  4597. for (; f < 32;) {
  4598. if (0 === s) break e;
  4599. s--, l += n[o++] << f, f += 8;
  4600. }
  4601. e.adler = r.check = ho(l), l = 0, f = 0, r.mode = Ui;
  4602. case Ui:
  4603. if (0 === r.havedict) return e.next_out = a, e.avail_out = h, e.next_in = o, e.avail_in = s, r.hold = l, r.bits = f, ki;
  4604. e.adler = r.check = 1, r.mode = Hi;
  4605. case Hi:
  4606. if (t === wi || t === bi) break e;
  4607. case Fi:
  4608. if (r.last) {
  4609. l >>>= 7 & f, f -= 7 & f, r.mode = eo;
  4610. break;
  4611. }
  4612. for (; f < 3;) {
  4613. if (0 === s) break e;
  4614. s--, l += n[o++] << f, f += 8;
  4615. }
  4616. switch (r.last = 1 & l, f -= 1, 3 & (l >>>= 1)) {
  4617. case 0:
  4618. r.mode = Ni;
  4619. break;
  4620. case 1:
  4621. if (go(r), r.mode = Xi, t === bi) {
  4622. l >>>= 2, f -= 2;
  4623. break e;
  4624. }
  4625. break;
  4626. case 2:
  4627. r.mode = Wi;
  4628. break;
  4629. case 3:
  4630. e.msg = "invalid block type", r.mode = no;
  4631. }
  4632. l >>>= 2, f -= 2;
  4633. break;
  4634. case Ni:
  4635. for (l >>>= 7 & f, f -= 7 & f; f < 32;) {
  4636. if (0 === s) break e;
  4637. s--, l += n[o++] << f, f += 8;
  4638. }
  4639. if ((65535 & l) != (l >>> 16 ^ 65535)) {
  4640. e.msg = "invalid stored block lengths", r.mode = no;
  4641. break;
  4642. }
  4643. if (r.length = 65535 & l, l = 0, f = 0, r.mode = Zi, t === bi) break e;
  4644. case Zi:
  4645. r.mode = ji;
  4646. case ji:
  4647. if (d = r.length) {
  4648. if (d > s && (d = s), d > h && (d = h), 0 === d) break e;
  4649. jt(i, n, o, d, a), s -= d, o += d, h -= d, a += d, r.length -= d;
  4650. break;
  4651. }
  4652. r.mode = Hi;
  4653. break;
  4654. case Wi:
  4655. for (; f < 14;) {
  4656. if (0 === s) break e;
  4657. s--, l += n[o++] << f, f += 8;
  4658. }
  4659. if (r.nlen = 257 + (31 & l), l >>>= 5, f -= 5, r.ndist = 1 + (31 & l), l >>>= 5, f -= 5, r.ncode = 4 + (15 & l), l >>>= 4, f -= 4, r.nlen > 286 || r.ndist > 30) {
  4660. e.msg = "too many length or distance symbols", r.mode = no;
  4661. break;
  4662. }
  4663. r.have = 0, r.mode = Yi;
  4664. case Yi:
  4665. for (; r.have < r.ncode;) {
  4666. for (; f < 3;) {
  4667. if (0 === s) break e;
  4668. s--, l += n[o++] << f, f += 8;
  4669. }
  4670. r.lens[B[r.have++]] = 7 & l, l >>>= 3, f -= 3;
  4671. }
  4672. for (; r.have < 19;) r.lens[B[r.have++]] = 0;
  4673. if (r.lencode = r.lendyn, r.lenbits = 7, S = {
  4674. bits: r.lenbits
  4675. }, E = di(pi, r.lens, 0, 19, r.lencode, 0, r.work, S), r.lenbits = S.bits, E) {
  4676. e.msg = "invalid code lengths set", r.mode = no;
  4677. break;
  4678. }
  4679. r.have = 0, r.mode = Ki;
  4680. case Ki:
  4681. for (; r.have < r.nlen + r.ndist;) {
  4682. for (; v = (R = r.lencode[l & (1 << r.lenbits) - 1]) >>> 16 & 255, w = 65535 & R, !((g = R >>> 24) <= f);) {
  4683. if (0 === s) break e;
  4684. s--, l += n[o++] << f, f += 8;
  4685. }
  4686. if (w < 16) l >>>= g, f -= g, r.lens[r.have++] = w;else {
  4687. if (16 === w) {
  4688. for (x = g + 2; f < x;) {
  4689. if (0 === s) break e;
  4690. s--, l += n[o++] << f, f += 8;
  4691. }
  4692. if (l >>>= g, f -= g, 0 === r.have) {
  4693. e.msg = "invalid bit length repeat", r.mode = no;
  4694. break;
  4695. }
  4696. k = r.lens[r.have - 1], d = 3 + (3 & l), l >>>= 2, f -= 2;
  4697. } else if (17 === w) {
  4698. for (x = g + 3; f < x;) {
  4699. if (0 === s) break e;
  4700. s--, l += n[o++] << f, f += 8;
  4701. }
  4702. f -= g, k = 0, d = 3 + (7 & (l >>>= g)), l >>>= 3, f -= 3;
  4703. } else {
  4704. for (x = g + 7; f < x;) {
  4705. if (0 === s) break e;
  4706. s--, l += n[o++] << f, f += 8;
  4707. }
  4708. f -= g, k = 0, d = 11 + (127 & (l >>>= g)), l >>>= 7, f -= 7;
  4709. }
  4710. if (r.have + d > r.nlen + r.ndist) {
  4711. e.msg = "invalid bit length repeat", r.mode = no;
  4712. break;
  4713. }
  4714. for (; d--;) r.lens[r.have++] = k;
  4715. }
  4716. }
  4717. if (r.mode === no) break;
  4718. if (0 === r.lens[256]) {
  4719. e.msg = "invalid code -- missing end-of-block", r.mode = no;
  4720. break;
  4721. }
  4722. if (r.lenbits = 9, S = {
  4723. bits: r.lenbits
  4724. }, E = di(_i, r.lens, 0, r.nlen, r.lencode, 0, r.work, S), r.lenbits = S.bits, E) {
  4725. e.msg = "invalid literal/lengths set", r.mode = no;
  4726. break;
  4727. }
  4728. if (r.distbits = 6, r.distcode = r.distdyn, S = {
  4729. bits: r.distbits
  4730. }, E = di(gi, r.lens, r.nlen, r.ndist, r.distcode, 0, r.work, S), r.distbits = S.bits, E) {
  4731. e.msg = "invalid distances set", r.mode = no;
  4732. break;
  4733. }
  4734. if (r.mode = Xi, t === bi) break e;
  4735. case Xi:
  4736. r.mode = qi;
  4737. case qi:
  4738. if (s >= 6 && h >= 258) {
  4739. e.next_out = a, e.avail_out = h, e.next_in = o, e.avail_in = s, r.hold = l, r.bits = f, ri(e, u), a = e.next_out, i = e.output, h = e.avail_out, o = e.next_in, n = e.input, s = e.avail_in, l = r.hold, f = r.bits, r.mode === Hi && (r.back = -1);
  4740. break;
  4741. }
  4742. for (r.back = 0; v = (R = r.lencode[l & (1 << r.lenbits) - 1]) >>> 16 & 255, w = 65535 & R, !((g = R >>> 24) <= f);) {
  4743. if (0 === s) break e;
  4744. s--, l += n[o++] << f, f += 8;
  4745. }
  4746. if (v && 0 == (240 & v)) {
  4747. for (b = g, y = v, m = w; v = (R = r.lencode[m + ((l & (1 << b + y) - 1) >> b)]) >>> 16 & 255, w = 65535 & R, !(b + (g = R >>> 24) <= f);) {
  4748. if (0 === s) break e;
  4749. s--, l += n[o++] << f, f += 8;
  4750. }
  4751. l >>>= b, f -= b, r.back += b;
  4752. }
  4753. if (l >>>= g, f -= g, r.back += g, r.length = w, 0 === v) {
  4754. r.mode = Qi;
  4755. break;
  4756. }
  4757. if (32 & v) {
  4758. r.back = -1, r.mode = Hi;
  4759. break;
  4760. }
  4761. if (64 & v) {
  4762. e.msg = "invalid literal/length code", r.mode = no;
  4763. break;
  4764. }
  4765. r.extra = 15 & v, r.mode = Vi;
  4766. case Vi:
  4767. if (r.extra) {
  4768. for (x = r.extra; f < x;) {
  4769. if (0 === s) break e;
  4770. s--, l += n[o++] << f, f += 8;
  4771. }
  4772. r.length += l & (1 << r.extra) - 1, l >>>= r.extra, f -= r.extra, r.back += r.extra;
  4773. }
  4774. r.was = r.length, r.mode = Gi;
  4775. case Gi:
  4776. for (; v = (R = r.distcode[l & (1 << r.distbits) - 1]) >>> 16 & 255, w = 65535 & R, !((g = R >>> 24) <= f);) {
  4777. if (0 === s) break e;
  4778. s--, l += n[o++] << f, f += 8;
  4779. }
  4780. if (0 == (240 & v)) {
  4781. for (b = g, y = v, m = w; v = (R = r.distcode[m + ((l & (1 << b + y) - 1) >> b)]) >>> 16 & 255, w = 65535 & R, !(b + (g = R >>> 24) <= f);) {
  4782. if (0 === s) break e;
  4783. s--, l += n[o++] << f, f += 8;
  4784. }
  4785. l >>>= b, f -= b, r.back += b;
  4786. }
  4787. if (l >>>= g, f -= g, r.back += g, 64 & v) {
  4788. e.msg = "invalid distance code", r.mode = no;
  4789. break;
  4790. }
  4791. r.offset = w, r.extra = 15 & v, r.mode = $i;
  4792. case $i:
  4793. if (r.extra) {
  4794. for (x = r.extra; f < x;) {
  4795. if (0 === s) break e;
  4796. s--, l += n[o++] << f, f += 8;
  4797. }
  4798. r.offset += l & (1 << r.extra) - 1, l >>>= r.extra, f -= r.extra, r.back += r.extra;
  4799. }
  4800. if (r.offset > r.dmax) {
  4801. e.msg = "invalid distance too far back", r.mode = no;
  4802. break;
  4803. }
  4804. r.mode = Ji;
  4805. case Ji:
  4806. if (0 === h) break e;
  4807. if (d = u - h, r.offset > d) {
  4808. if ((d = r.offset - d) > r.whave && r.sane) {
  4809. e.msg = "invalid distance too far back", r.mode = no;
  4810. break;
  4811. }
  4812. d > r.wnext ? (d -= r.wnext, p = r.wsize - d) : p = r.wnext - d, d > r.length && (d = r.length), _ = r.window;
  4813. } else _ = i, p = a - r.offset, d = r.length;
  4814. d > h && (d = h), h -= d, r.length -= d;
  4815. do {
  4816. i[a++] = _[p++];
  4817. } while (--d);
  4818. 0 === r.length && (r.mode = qi);
  4819. break;
  4820. case Qi:
  4821. if (0 === h) break e;
  4822. i[a++] = r.length, h--, r.mode = qi;
  4823. break;
  4824. case eo:
  4825. if (r.wrap) {
  4826. for (; f < 32;) {
  4827. if (0 === s) break e;
  4828. s--, l |= n[o++] << f, f += 8;
  4829. }
  4830. if (u -= h, e.total_out += u, r.total += u, u && (e.adler = r.check = r.flags ? $r(r.check, i, u, a - u) : Vr(r.check, i, u, a - u)), u = h, (r.flags ? l : ho(l)) !== r.check) {
  4831. e.msg = "incorrect data check", r.mode = no;
  4832. break;
  4833. }
  4834. l = 0, f = 0;
  4835. }
  4836. r.mode = to;
  4837. case to:
  4838. if (r.wrap && r.flags) {
  4839. for (; f < 32;) {
  4840. if (0 === s) break e;
  4841. s--, l += n[o++] << f, f += 8;
  4842. }
  4843. if (l !== (4294967295 & r.total)) {
  4844. e.msg = "incorrect length check", r.mode = no;
  4845. break;
  4846. }
  4847. l = 0, f = 0;
  4848. }
  4849. r.mode = ro;
  4850. case ro:
  4851. E = mi;
  4852. break e;
  4853. case no:
  4854. E = Si;
  4855. break e;
  4856. case io:
  4857. return xi;
  4858. case oo:
  4859. default:
  4860. return Ei;
  4861. }
  4862. return e.next_out = a, e.avail_out = h, e.next_in = o, e.avail_in = s, r.hold = l, r.bits = f, (r.wsize || u !== e.avail_out && r.mode < no && (r.mode < eo || t !== vi)) && function (e, t, r, n) {
  4863. var i,
  4864. o = e.state;
  4865. null === o.window && (o.wsize = 1 << o.wbits, o.wnext = 0, o.whave = 0, o.window = new Wt(o.wsize)), n >= o.wsize ? (jt(o.window, t, r - o.wsize, o.wsize, 0), o.wnext = 0, o.whave = o.wsize) : ((i = o.wsize - o.wnext) > n && (i = n), jt(o.window, t, r - n, i, o.wnext), (n -= i) ? (jt(o.window, t, r - n, n, 0), o.wnext = n, o.whave = o.wsize) : (o.wnext += i, o.wnext === o.wsize && (o.wnext = 0), o.whave < o.wsize && (o.whave += i)));
  4866. }(e, e.output, e.next_out, u - e.avail_out), c -= e.avail_in, u -= e.avail_out, e.total_in += c, e.total_out += u, r.total += u, r.wrap && u && (e.adler = r.check = r.flags ? $r(r.check, i, u, e.next_out - u) : Vr(r.check, i, u, e.next_out - u)), e.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === Hi ? 128 : 0) + (r.mode === Xi || r.mode === Zi ? 256 : 0), (0 === c && 0 === u || t === vi) && E === yi && (E = Ri), E;
  4867. }
  4868. var wo,
  4869. bo = 1,
  4870. yo = 7;
  4871. function mo(e) {
  4872. if (e < bo || e > yo) throw new TypeError("Bad argument");
  4873. this.mode = e, this.init_done = !1, this.write_in_progress = !1, this.pending_close = !1, this.windowBits = 0, this.level = 0, this.memLevel = 0, this.strategy = 0, this.dictionary = null;
  4874. }
  4875. function ko(e, t) {
  4876. for (var r = 0; r < e.length; r++) this[t + r] = e[r];
  4877. }
  4878. mo.prototype.init = function (e, t, r, n, i) {
  4879. var o;
  4880. switch (this.windowBits = e, this.level = t, this.memLevel = r, this.strategy = n, 3 !== this.mode && 4 !== this.mode || (this.windowBits += 16), this.mode === yo && (this.windowBits += 32), 5 !== this.mode && 6 !== this.mode || (this.windowBits = -this.windowBits), this.strm = new Zt(), this.mode) {
  4881. case bo:
  4882. case 3:
  4883. case 5:
  4884. o = function (e, t, r, n, i, o) {
  4885. if (!e) return sn;
  4886. var a = 1;
  4887. if (t === fn && (t = 6), n < 0 ? (a = 0, n = -n) : n > 15 && (a = 2, n -= 16), i < 1 || i > vn || r !== gn || n < 8 || n > 15 || t < 0 || t > 9 || o < 0 || o > pn) return Hn(e, sn);
  4888. 8 === n && (n = 9);
  4889. var s = new $n();
  4890. return e.state = s, s.strm = e, s.wrap = a, s.gzhead = null, s.w_bits = n, s.w_size = 1 << s.w_bits, s.w_mask = s.w_size - 1, s.hash_bits = i + 7, s.hash_size = 1 << s.hash_bits, s.hash_mask = s.hash_size - 1, s.hash_shift = ~~((s.hash_bits + En - 1) / En), s.window = new Wt(2 * s.w_size), s.head = new Yt(s.hash_size), s.prev = new Yt(s.w_size), s.lit_bufsize = 1 << i + 6, s.pending_buf_size = 4 * s.lit_bufsize, s.pending_buf = new Wt(s.pending_buf_size), s.d_buf = 1 * s.lit_bufsize, s.l_buf = 3 * s.lit_bufsize, s.level = t, s.strategy = o, s.method = r, Jn(e);
  4891. }(this.strm, this.level, 8, this.windowBits, this.memLevel, this.strategy);
  4892. break;
  4893. case 2:
  4894. case 4:
  4895. case 6:
  4896. case yo:
  4897. o = co(this.strm, this.windowBits);
  4898. break;
  4899. default:
  4900. throw new Error("Unknown mode " + this.mode);
  4901. }
  4902. 0 === o ? (this.write_in_progress = !1, this.init_done = !0) : this._error(o);
  4903. }, mo.prototype.params = function () {
  4904. throw new Error("deflateParams Not supported");
  4905. }, mo.prototype._writeCheck = function () {
  4906. if (!this.init_done) throw new Error("write before init");
  4907. if (0 === this.mode) throw new Error("already finalized");
  4908. if (this.write_in_progress) throw new Error("write already in progress");
  4909. if (this.pending_close) throw new Error("close is pending");
  4910. }, mo.prototype.write = function (e, t, r, n, i, o, a) {
  4911. this._writeCheck(), this.write_in_progress = !0;
  4912. var s = this;
  4913. return de(function () {
  4914. s.write_in_progress = !1;
  4915. var h = s._write(e, t, r, n, i, o, a);
  4916. s.callback(h[0], h[1]), s.pending_close && s.close();
  4917. }), this;
  4918. }, mo.prototype.writeSync = function (e, t, r, n, i, o, a) {
  4919. return this._writeCheck(), this._write(e, t, r, n, i, o, a);
  4920. }, mo.prototype._write = function (e, t, r, n, i, o, a) {
  4921. if (this.write_in_progress = !0, 0 !== e && 1 !== e && 2 !== e && 3 !== e && 4 !== e && 5 !== e) throw new Error("Invalid flush value");
  4922. null == t && (t = new p(0), n = 0, r = 0), i._set ? i.set = i._set : i.set = ko;
  4923. var s,
  4924. h = this.strm;
  4925. switch (h.avail_in = n, h.input = t, h.next_in = r, h.avail_out = a, h.output = i, h.next_out = o, this.mode) {
  4926. case bo:
  4927. case 3:
  4928. case 5:
  4929. s = Qn(h, e);
  4930. break;
  4931. case yo:
  4932. case 2:
  4933. case 4:
  4934. case 6:
  4935. s = vo(h, e);
  4936. break;
  4937. default:
  4938. throw new Error("Unknown mode " + this.mode);
  4939. }
  4940. return 1 !== s && 0 !== s && this._error(s), this.write_in_progress = !1, [h.avail_in, h.avail_out];
  4941. }, mo.prototype.close = function () {
  4942. this.write_in_progress ? this.pending_close = !0 : (this.pending_close = !1, this.mode === bo || 3 === this.mode || 5 === this.mode ? function (e) {
  4943. var t;
  4944. e && e.state && ((t = e.state.status) !== An && t !== Bn && t !== zn && t !== Ln && t !== Tn && t !== Mn && t !== Cn ? Hn(e, sn) : (e.state = null, t === Mn && Hn(e, hn)));
  4945. }(this.strm) : function (e) {
  4946. if (!e || !e.state) return Ei;
  4947. var t = e.state;
  4948. t.window && (t.window = null), e.state = null;
  4949. }(this.strm), this.mode = 0);
  4950. }, mo.prototype.reset = function () {
  4951. switch (this.mode) {
  4952. case bo:
  4953. case 5:
  4954. wo = Jn(this.strm);
  4955. break;
  4956. case 2:
  4957. case 6:
  4958. wo = fo(this.strm);
  4959. }
  4960. 0 !== wo && this._error(wo);
  4961. }, mo.prototype._error = function (e) {
  4962. this.onerror(Nt[e] + ": " + this.strm.msg, e), this.write_in_progress = !1, this.pending_close && this.close();
  4963. };
  4964. var Eo = Object.freeze({
  4965. NONE: 0,
  4966. DEFLATE: bo,
  4967. INFLATE: 2,
  4968. GZIP: 3,
  4969. GUNZIP: 4,
  4970. DEFLATERAW: 5,
  4971. INFLATERAW: 6,
  4972. UNZIP: yo,
  4973. Z_NO_FLUSH: 0,
  4974. Z_PARTIAL_FLUSH: 1,
  4975. Z_SYNC_FLUSH: 2,
  4976. Z_FULL_FLUSH: 3,
  4977. Z_FINISH: 4,
  4978. Z_BLOCK: 5,
  4979. Z_TREES: 6,
  4980. Z_OK: 0,
  4981. Z_STREAM_END: 1,
  4982. Z_NEED_DICT: 2,
  4983. Z_ERRNO: -1,
  4984. Z_STREAM_ERROR: -2,
  4985. Z_DATA_ERROR: -3,
  4986. Z_BUF_ERROR: -5,
  4987. Z_NO_COMPRESSION: 0,
  4988. Z_BEST_SPEED: 1,
  4989. Z_BEST_COMPRESSION: 9,
  4990. Z_DEFAULT_COMPRESSION: -1,
  4991. Z_FILTERED: 1,
  4992. Z_HUFFMAN_ONLY: 2,
  4993. Z_RLE: 3,
  4994. Z_FIXED: 4,
  4995. Z_DEFAULT_STRATEGY: 0,
  4996. Z_BINARY: 0,
  4997. Z_TEXT: 1,
  4998. Z_UNKNOWN: 2,
  4999. Z_DEFLATED: 8,
  5000. Zlib: mo
  5001. });
  5002. var So = {};
  5003. Object.keys(Eo).forEach(function (e) {
  5004. So[e] = Eo[e];
  5005. }), So.Z_MIN_WINDOWBITS = 8, So.Z_MAX_WINDOWBITS = 15, So.Z_DEFAULT_WINDOWBITS = 15, So.Z_MIN_CHUNK = 64, So.Z_MAX_CHUNK = 1 / 0, So.Z_DEFAULT_CHUNK = 16384, So.Z_MIN_MEMLEVEL = 1, So.Z_MAX_MEMLEVEL = 9, So.Z_DEFAULT_MEMLEVEL = 8, So.Z_MIN_LEVEL = -1, So.Z_MAX_LEVEL = 9, So.Z_DEFAULT_LEVEL = So.Z_DEFAULT_COMPRESSION;
  5006. var xo = {
  5007. Z_OK: So.Z_OK,
  5008. Z_STREAM_END: So.Z_STREAM_END,
  5009. Z_NEED_DICT: So.Z_NEED_DICT,
  5010. Z_ERRNO: So.Z_ERRNO,
  5011. Z_STREAM_ERROR: So.Z_STREAM_ERROR,
  5012. Z_DATA_ERROR: So.Z_DATA_ERROR,
  5013. Z_MEM_ERROR: So.Z_MEM_ERROR,
  5014. Z_BUF_ERROR: So.Z_BUF_ERROR,
  5015. Z_VERSION_ERROR: So.Z_VERSION_ERROR
  5016. };
  5017. function Ro(e, t, r) {
  5018. var n = [],
  5019. i = 0;
  5020. function o() {
  5021. for (var t; null !== (t = e.read());) n.push(t), i += t.length;
  5022. e.once("readable", o);
  5023. }
  5024. function a() {
  5025. var t = p.concat(n, i);
  5026. n = [], r(null, t), e.close();
  5027. }
  5028. e.on("error", function (t) {
  5029. e.removeListener("end", a), e.removeListener("readable", o), r(t);
  5030. }), e.on("end", a), e.end(t), o();
  5031. }
  5032. function Ao(e, t) {
  5033. if ("string" == typeof t && (t = new p(t)), !$(t)) throw new TypeError("Not a string or buffer");
  5034. var r = So.Z_FINISH;
  5035. return e._processChunk(t, r);
  5036. }
  5037. function Bo(e) {
  5038. if (!(this instanceof Bo)) return new Bo(e);
  5039. Io.call(this, e, So.DEFLATE);
  5040. }
  5041. function zo(e) {
  5042. if (!(this instanceof zo)) return new zo(e);
  5043. Io.call(this, e, So.INFLATE);
  5044. }
  5045. function Lo(e) {
  5046. if (!(this instanceof Lo)) return new Lo(e);
  5047. Io.call(this, e, So.GZIP);
  5048. }
  5049. function To(e) {
  5050. if (!(this instanceof To)) return new To(e);
  5051. Io.call(this, e, So.GUNZIP);
  5052. }
  5053. function Mo(e) {
  5054. if (!(this instanceof Mo)) return new Mo(e);
  5055. Io.call(this, e, So.DEFLATERAW);
  5056. }
  5057. function Co(e) {
  5058. if (!(this instanceof Co)) return new Co(e);
  5059. Io.call(this, e, So.INFLATERAW);
  5060. }
  5061. function Do(e) {
  5062. if (!(this instanceof Do)) return new Do(e);
  5063. Io.call(this, e, So.UNZIP);
  5064. }
  5065. function Io(e, t) {
  5066. if (this._opts = e = e || {}, this._chunkSize = e.chunkSize || So.Z_DEFAULT_CHUNK, Ot.call(this, e), e.flush && e.flush !== So.Z_NO_FLUSH && e.flush !== So.Z_PARTIAL_FLUSH && e.flush !== So.Z_SYNC_FLUSH && e.flush !== So.Z_FULL_FLUSH && e.flush !== So.Z_FINISH && e.flush !== So.Z_BLOCK) throw new Error("Invalid flush flag: " + e.flush);
  5067. if (this._flushFlag = e.flush || So.Z_NO_FLUSH, e.chunkSize && (e.chunkSize < So.Z_MIN_CHUNK || e.chunkSize > So.Z_MAX_CHUNK)) throw new Error("Invalid chunk size: " + e.chunkSize);
  5068. if (e.windowBits && (e.windowBits < So.Z_MIN_WINDOWBITS || e.windowBits > So.Z_MAX_WINDOWBITS)) throw new Error("Invalid windowBits: " + e.windowBits);
  5069. if (e.level && (e.level < So.Z_MIN_LEVEL || e.level > So.Z_MAX_LEVEL)) throw new Error("Invalid compression level: " + e.level);
  5070. if (e.memLevel && (e.memLevel < So.Z_MIN_MEMLEVEL || e.memLevel > So.Z_MAX_MEMLEVEL)) throw new Error("Invalid memLevel: " + e.memLevel);
  5071. if (e.strategy && e.strategy != So.Z_FILTERED && e.strategy != So.Z_HUFFMAN_ONLY && e.strategy != So.Z_RLE && e.strategy != So.Z_FIXED && e.strategy != So.Z_DEFAULT_STRATEGY) throw new Error("Invalid strategy: " + e.strategy);
  5072. if (e.dictionary && !$(e.dictionary)) throw new Error("Invalid dictionary: it should be a Buffer instance");
  5073. this._binding = new So.Zlib(t);
  5074. var r = this;
  5075. this._hadError = !1, this._binding.onerror = function (e, t) {
  5076. r._binding = null, r._hadError = !0;
  5077. var n = new Error(e);
  5078. n.errno = t, n.code = So.codes[t], r.emit("error", n);
  5079. };
  5080. var n = So.Z_DEFAULT_COMPRESSION;
  5081. "number" == typeof e.level && (n = e.level);
  5082. var i = So.Z_DEFAULT_STRATEGY;
  5083. "number" == typeof e.strategy && (i = e.strategy), this._binding.init(e.windowBits || So.Z_DEFAULT_WINDOWBITS, n, e.memLevel || So.Z_DEFAULT_MEMLEVEL, i, e.dictionary), this._buffer = new p(this._chunkSize), this._offset = 0, this._closed = !1, this._level = n, this._strategy = i, this.once("end", this.close);
  5084. }
  5085. Object.keys(xo).forEach(function (e) {
  5086. xo[xo[e]] = e;
  5087. }), Be(Io, Ot), Io.prototype.params = function (e, t, r) {
  5088. if (e < So.Z_MIN_LEVEL || e > So.Z_MAX_LEVEL) throw new RangeError("Invalid compression level: " + e);
  5089. if (t != So.Z_FILTERED && t != So.Z_HUFFMAN_ONLY && t != So.Z_RLE && t != So.Z_FIXED && t != So.Z_DEFAULT_STRATEGY) throw new TypeError("Invalid strategy: " + t);
  5090. if (this._level !== e || this._strategy !== t) {
  5091. var n = this;
  5092. this.flush(So.Z_SYNC_FLUSH, function () {
  5093. n._binding.params(e, t), n._hadError || (n._level = e, n._strategy = t, r && r());
  5094. });
  5095. } else de(r);
  5096. }, Io.prototype.reset = function () {
  5097. return this._binding.reset();
  5098. }, Io.prototype._flush = function (e) {
  5099. this._transform(new p(0), "", e);
  5100. }, Io.prototype.flush = function (e, t) {
  5101. var r = this._writableState;
  5102. if (("function" == typeof e || void 0 === e && !t) && (t = e, e = So.Z_FULL_FLUSH), r.ended) t && de(t);else if (r.ending) t && this.once("end", t);else if (r.needDrain) {
  5103. var n = this;
  5104. this.once("drain", function () {
  5105. n.flush(t);
  5106. });
  5107. } else this._flushFlag = e, this.write(new p(0), "", t);
  5108. }, Io.prototype.close = function (e) {
  5109. if (e && de(e), !this._closed) {
  5110. this._closed = !0, this._binding.close();
  5111. var t = this;
  5112. de(function () {
  5113. t.emit("close");
  5114. });
  5115. }
  5116. }, Io.prototype._transform = function (e, t, r) {
  5117. var n,
  5118. i = this._writableState,
  5119. o = (i.ending || i.ended) && (!e || i.length === e.length);
  5120. if (null === !e && !$(e)) return r(new Error("invalid input"));
  5121. o ? n = So.Z_FINISH : (n = this._flushFlag, e.length >= i.length && (this._flushFlag = this._opts.flush || So.Z_NO_FLUSH)), this._processChunk(e, n, r);
  5122. }, Io.prototype._processChunk = function (e, t, r) {
  5123. var n = e && e.length,
  5124. i = this._chunkSize - this._offset,
  5125. o = 0,
  5126. a = this,
  5127. s = "function" == typeof r;
  5128. if (!s) {
  5129. var h,
  5130. l = [],
  5131. f = 0;
  5132. this.on("error", function (e) {
  5133. h = e;
  5134. });
  5135. do {
  5136. var c = this._binding.writeSync(t, e, o, n, this._buffer, this._offset, i);
  5137. } while (!this._hadError && _(c[0], c[1]));
  5138. if (this._hadError) throw h;
  5139. var u = p.concat(l, f);
  5140. return this.close(), u;
  5141. }
  5142. var d = this._binding.write(t, e, o, n, this._buffer, this._offset, i);
  5143. function _(h, c) {
  5144. if (!a._hadError) {
  5145. var u = i - c;
  5146. if (function (e, t) {
  5147. if (!e) throw new Error(t);
  5148. }(u >= 0, "have should not go down"), u > 0) {
  5149. var d = a._buffer.slice(a._offset, a._offset + u);
  5150. a._offset += u, s ? a.push(d) : (l.push(d), f += d.length);
  5151. }
  5152. if ((0 === c || a._offset >= a._chunkSize) && (i = a._chunkSize, a._offset = 0, a._buffer = new p(a._chunkSize)), 0 === c) {
  5153. if (o += n - h, n = h, !s) return !0;
  5154. var g = a._binding.write(t, e, o, n, a._buffer, a._offset, a._chunkSize);
  5155. return g.callback = _, void (g.buffer = e);
  5156. }
  5157. if (!s) return !1;
  5158. r();
  5159. }
  5160. }
  5161. d.buffer = e, d.callback = _;
  5162. }, Be(Bo, Io), Be(zo, Io), Be(Lo, Io), Be(To, Io), Be(Mo, Io), Be(Co, Io), Be(Do, Io);
  5163. var Po = {
  5164. codes: xo,
  5165. createDeflate: function (e) {
  5166. return new Bo(e);
  5167. },
  5168. createInflate: function (e) {
  5169. return new zo(e);
  5170. },
  5171. createDeflateRaw: function (e) {
  5172. return new Mo(e);
  5173. },
  5174. createInflateRaw: function (e) {
  5175. return new Co(e);
  5176. },
  5177. createGzip: function (e) {
  5178. return new Lo(e);
  5179. },
  5180. createGunzip: function (e) {
  5181. return new To(e);
  5182. },
  5183. createUnzip: function (e) {
  5184. return new Do(e);
  5185. },
  5186. deflate: function (e, t, r) {
  5187. return "function" == typeof t && (r = t, t = {}), Ro(new Bo(t), e, r);
  5188. },
  5189. deflateSync: function (e, t) {
  5190. return Ao(new Bo(t), e);
  5191. },
  5192. gzip: function (e, t, r) {
  5193. return "function" == typeof t && (r = t, t = {}), Ro(new Lo(t), e, r);
  5194. },
  5195. gzipSync: function (e, t) {
  5196. return Ao(new Lo(t), e);
  5197. },
  5198. deflateRaw: function (e, t, r) {
  5199. return "function" == typeof t && (r = t, t = {}), Ro(new Mo(t), e, r);
  5200. },
  5201. deflateRawSync: function (e, t) {
  5202. return Ao(new Mo(t), e);
  5203. },
  5204. unzip: function (e, t, r) {
  5205. return "function" == typeof t && (r = t, t = {}), Ro(new Do(t), e, r);
  5206. },
  5207. unzipSync: function (e, t) {
  5208. return Ao(new Do(t), e);
  5209. },
  5210. inflate: function (e, t, r) {
  5211. return "function" == typeof t && (r = t, t = {}), Ro(new zo(t), e, r);
  5212. },
  5213. inflateSync: function (e, t) {
  5214. return Ao(new zo(t), e);
  5215. },
  5216. gunzip: function (e, t, r) {
  5217. return "function" == typeof t && (r = t, t = {}), Ro(new To(t), e, r);
  5218. },
  5219. gunzipSync: function (e, t) {
  5220. return Ao(new To(t), e);
  5221. },
  5222. inflateRaw: function (e, t, r) {
  5223. return "function" == typeof t && (r = t, t = {}), Ro(new Co(t), e, r);
  5224. },
  5225. inflateRawSync: function (e, t) {
  5226. return Ao(new Co(t), e);
  5227. },
  5228. Deflate: Bo,
  5229. Inflate: zo,
  5230. Gzip: Lo,
  5231. Gunzip: To,
  5232. DeflateRaw: Mo,
  5233. InflateRaw: Co,
  5234. Unzip: Do,
  5235. Zlib: Io
  5236. };
  5237. export default class {
  5238. constructor(e, t, r) {
  5239. this.SDKAPPID = e, this.EXPIRETIME = r, this.PRIVATEKEY = t;
  5240. }
  5241. genTestUserSig(e) {
  5242. return this._isNumber(this.SDKAPPID) ? this._isString(this.PRIVATEKEY) ? this._isString(e) ? this._isNumber(this.EXPIRETIME) ? (console.log("sdkAppID=" + this.SDKAPPID + " key=" + this.PRIVATEKEY + " userID=" + e + " expire=" + this.EXPIRETIME), this.genSigWithUserbuf(e, this.EXPIRETIME, null)) : (console.error("expireTime must be a number"), "") : (console.error("userID must be a string"), "") : (console.error("privateKey must be a string"), "") : (console.error("sdkAppID must be a number"), "");
  5243. }
  5244. newBuffer(e, t) {
  5245. return p.from ? p.from(e, t) : new p(e, t);
  5246. }
  5247. unescape(e) {
  5248. return e.replace(/_/g, "=").replace(/\-/g, "/").replace(/\*/g, "+");
  5249. }
  5250. escape(e) {
  5251. return e.replace(/\+/g, "*").replace(/\//g, "-").replace(/=/g, "_");
  5252. }
  5253. encode(e) {
  5254. return this.escape(this.newBuffer(e).toString("base64"));
  5255. }
  5256. decode(e) {
  5257. return this.newBuffer(this.unescape(e), "base64");
  5258. }
  5259. base64encode(e) {
  5260. return this.newBuffer(e).toString("base64");
  5261. }
  5262. base64decode(e) {
  5263. return this.newBuffer(e, "base64").toString();
  5264. }
  5265. _hmacsha256(e, t, r, n) {
  5266. let i = "TLS.identifier:" + e + "\n";
  5267. i += "TLS.sdkappid:" + this.SDKAPPID + "\n", i += "TLS.time:" + t + "\n", i += "TLS.expire:" + r + "\n", null != n && (i += "TLS.userbuf:" + n + "\n");
  5268. let o = te.HmacSHA256(i, this.PRIVATEKEY);
  5269. return te.enc.Base64.stringify(o);
  5270. }
  5271. _utc() {
  5272. return Math.round(Date.now() / 1e3);
  5273. }
  5274. _isNumber(e) {
  5275. return null !== e && ("number" == typeof e && !isNaN(e - 0) || "object" == typeof e && e.constructor === Number);
  5276. }
  5277. _isString(e) {
  5278. return "string" == typeof e;
  5279. }
  5280. genSigWithUserbuf(e, t, r) {
  5281. let n = this._utc(),
  5282. i = {
  5283. "TLS.ver": "2.0",
  5284. "TLS.identifier": e,
  5285. "TLS.sdkappid": this.SDKAPPID,
  5286. "TLS.time": n,
  5287. "TLS.expire": t
  5288. },
  5289. o = "";
  5290. if (null != r) {
  5291. let a = this.base64encode(r);
  5292. i["TLS.userbuf"] = a, o = this._hmacsha256(e, n, t, a);
  5293. } else o = this._hmacsha256(e, n, t, null);
  5294. i["TLS.sig"] = o;
  5295. let a = JSON.stringify(i),
  5296. s = Po.deflateSync(this.newBuffer(a)).toString("base64"),
  5297. h = this.escape(s);
  5298. return console.log("ret=" + h), h;
  5299. }
  5300. validate(e) {
  5301. let t = this.decode(e),
  5302. r = Po.inflateSync(t);
  5303. console.log("validate ret=" + r);
  5304. }
  5305. }