git-truck 0.0.0-00dc485

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,64 @@
1
+ import{a as mI,b as vI,c as gI,d as D3}from"/build/_shared/chunk-VSIPHLJL.js";import{$ as w3,A as J8,Aa as mh,B as Y8,Ba as Yu,C as Q8,Ca as Qu,D as t3,Da as T3,E as e3,Ea as $3,F as r3,Fa as I3,G as i3,Ga as tl,H as n3,Ha as el,I as o3,Ia as cf,J as a3,Ja as C3,K as s3,Ka as P3,L as h3,M as f3,Ma as rl,N as u3,O as l3,P as c3,Q as d3,R as p3,S as m3,T as v3,V as zd,W as g3,X as b3,Y as y3,Z as Ud,_ as Fd,a as dI,aa as M3,b as tn,ba as Wr,c as D8,ca as _3,d as fh,da as pI,e as L8,ea as S3,f as O8,fa as Rr,g as N8,ga as Vu,h as Ld,ha as lf,i as q8,ia as ch,j as Od,ja as dh,k as uh,ka as x3,l as Nd,la as E3,m as z8,ma as A3,n as U8,na as k3,o as F8,oa as co,p as qd,pa as R3,q as Zu,qa as Wu,r as j8,ra as Xu,s as H8,sa as Ju,t as K8,ta as oi,u as G8,ua as zo,v as Z8,va as Un,w as lh,wa as ca,x as V8,xa as B3,y as W8,ya as en,z as X8,za as ph}from"/build/_shared/chunk-XPBA2PRG.js";import{a as pr,b as T8,c as ah,d as $8,e as Qi,f as I8,h as qo,i as sh,j as ts,n as C8,o as hh,s as P8,t as Ce}from"/build/_shared/chunk-6XVEPPET.js";import{b as Fi,c as Xt}from"/build/_shared/chunk-Q3IECNXJ.js";var O3=Fi((yG,L3)=>{L3.exports={}});var j3=Fi((jG,SI)=>{SI.exports={abap:["abap"],"ags script":["asc","ash"],ampl:["ampl"],antlr:["g4"],apl:["apl","dyalog"],asp:["asp","asax","ascx","ashx","asmx","aspx","axd"],ats:["dats","hats","sats"],actionscript:["as"],ada:["adb","ada","ads"],agda:["agda"],alloy:["als"],apacheconf:["apacheconf"],apex:["cls"],applescript:["applescript","scpt"],arc:["arc"],arduino:["ino"],asciidoc:["asciidoc","adoc","asc"],aspectj:["aj"],assembly:["asm","a51","nasm"],augeas:["aug"],autohotkey:["ahk","ahkl"],autoit:["au3"],awk:["awk","auk","gawk","mawk","nawk"],batchfile:["bat","cmd"],befunge:["befunge"],bison:["y"],bitbake:["bb"],blitzbasic:["bb","decls"],blitzmax:["bmx"],bluespec:["bsv"],boo:["boo"],brainfuck:["b","bf"],brightscript:["brs"],bro:["bro"],c:["c","cats","h","idc","w"],"c#":["cs","cshtml","csx"],"c++":["cpp","c++","cc","cp","cxx","h","h++","hh","hpp","hxx","inl","ipp","tcc","tpp"],"c-objdump":["c-objdump"],"c2hs haskell":["chs"],clips:["clp"],cmake:["cmake","cmake.in"],cobol:["cob","cbl","ccp","cobol","cpy"],css:["css"],"cap'n proto":["capnp"],cartocss:["mss"],ceylon:["ceylon"],chapel:["chpl"],chuck:["ck"],cirru:["cirru"],clarion:["clw"],clean:["icl","dcl"],clojure:["clj","boot","cl2","cljc","cljs","cljs.hl","cljscm","cljx","hic"],coffeescript:["coffee","_coffee","cjsx","cson","iced"],coldfusion:["cfm","cfml"],"coldfusion cfc":["cfc"],"common lisp":["lisp","asd","cl","lsp","ny","podsl"],"component pascal":["cp","cps"],cool:["cl"],coq:["coq","v"],"cpp-objdump":["cppobjdump","c++-objdump","c++objdump","cpp-objdump","cxx-objdump"],creole:["creole"],crystal:["cr"],cucumber:["feature"],cuda:["cu","cuh"],cycript:["cy"],cython:["pyx","pxd","pxi"],d:["d","di"],"d-objdump":["d-objdump"],"digital command language":["com"],dm:["dm"],dtrace:["d"],"darcs patch":["darcspatch","dpatch"],dart:["dart"],diff:["diff","patch"],dockerfile:["dockerfile"],dogescript:["djs"],dylan:["dylan","dyl","intr","lid"],e:["E"],ecl:["ecl","eclxml"],eagle:["sch","brd"],"ecere projects":["epj"],eiffel:["e"],elixir:["ex","exs"],elm:["elm"],"emacs lisp":["el","emacs","emacs.desktop"],emberscript:["em","emberscript"],erlang:["erl","es","escript","hrl"],"f#":["fs","fsi","fsx"],flux:["fx","flux"],fortran:["f90","f","f03","f08","f77","f95","for","fpp"],factor:["factor"],fancy:["fy","fancypack"],fantom:["fan"],filterscript:["fs"],formatted:["for"],forth:["fth","4th","f","for","forth","fr","frt","fs"],frege:["fr"],"g-code":["g","gco","gcode"],gams:["gms"],gap:["g","gap","gd","gi","tst"],gas:["s"],gdscript:["gd"],glsl:["glsl","fp","frag","frg","fs","fshader","geo","geom","glslv","gshader","shader","vert","vrx","vshader"],"game maker language":["gml"],genshi:["kid"],"gentoo ebuild":["ebuild"],"gentoo eclass":["eclass"],"gettext catalog":["po","pot"],glyph:["glf"],gnuplot:["gp","gnu","gnuplot","plot","plt"],go:["go"],golo:["golo"],gosu:["gs","gst","gsx","vark"],grace:["grace"],gradle:["gradle"],"grammatical framework":["gf"],"graph modeling language":["gml"],"graphviz (dot)":["dot","gv"],groff:["man","1","2","3","4","5","6","7"],groovy:["groovy","grt","gtpl","gvy"],"groovy server pages":["gsp"],html:["html","htm","html.hl","st","xht","xhtml"],"html+django":["mustache","jinja"],"html+erb":["erb","erb.deface"],"html+php":["phtml"],http:["http"],hack:["hh","php"],haml:["haml","haml.deface"],handlebars:["handlebars","hbs"],harbour:["hb"],haskell:["hs","hsc"],haxe:["hx","hxsl"],hy:["hy"],idl:["pro","dlm"],"igor pro":["ipf"],ini:["ini","cfg","prefs","pro","properties"],"irc log":["irclog","weechatlog"],idris:["idr","lidr"],"inform 7":["ni","i7x"],"inno setup":["iss"],io:["io"],ioke:["ik"],isabelle:["thy"],j:["ijs"],jflex:["flex","jflex"],json:["json","lock"],json5:["json5"],jsonld:["jsonld"],jsoniq:["jq"],jade:["jade"],jasmin:["j"],java:["java"],"java server pages":["jsp"],javascript:["js","_js","bones","es6","frag","gs","jake","jsb","jsfl","jsm","jss","jsx","njs","pac","sjs","ssjs","sublime-build","sublime-commands","sublime-completions","sublime-keymap","sublime-macro","sublime-menu","sublime-mousemap","sublime-project","sublime-settings","sublime-theme","sublime-workspace","sublime_metrics","sublime_session","xsjs","xsjslib"],julia:["jl"],krl:["krl"],kicad:["sch"],kit:["kit"],kotlin:["kt","ktm","kts"],lfe:["lfe"],llvm:["ll"],lolcode:["lol"],lsl:["lsl"],labview:["lvproj"],lasso:["lasso","las","lasso8","lasso9","ldml"],latte:["latte"],lean:["lean","hlean"],less:["less"],lilypond:["ly","ily"],limbo:["b","m"],"linker script":["ld","lds"],liquid:["liquid"],"literate agda":["lagda"],"literate coffeescript":["litcoffee"],"literate haskell":["lhs"],livescript:["ls","_ls"],logos:["xm","x","xi"],logtalk:["lgt","logtalk"],lookml:["lookml"],loomscript:["ls"],lua:["lua","fcgi","nse","pd_lua","rbxs","wlua"],m:["mumps","m"],mtml:["mtml"],muf:["muf","m"],makefile:["mak","d","mk"],mako:["mako","mao"],markdown:["md","markdown","mkd","mkdn","mkdown","ron"],mask:["mask"],mathematica:["mathematica","cdf","m","ma","nb","nbp","wl","wlt"],matlab:["matlab","m"],max:["maxpat","maxhelp","maxproj","mxt","pat"],mediawiki:["mediawiki"],mercury:["m","moo"],minid:["minid"],mirah:["druby","duby","mir","mirah"],modelica:["mo"],"module management system":["mms","mmk"],monkey:["monkey"],moocode:["moo"],moonscript:["moon"],myghty:["myt"],nl:["nl"],nsis:["nsi","nsh"],nemerle:["n"],netlinx:["axs","axi"],"netlinx+erb":["axs.erb","axi.erb"],netlogo:["nlogo"],newlisp:["nl","lisp","lsp"],nginx:["nginxconf"],nimrod:["nim","nimrod"],ninja:["ninja"],nit:["nit"],nix:["nix"],nu:["nu"],numpy:["numpy","numpyw","numsc"],ocaml:["ml","eliom","eliomi","ml4","mli","mll","mly"],objdump:["objdump"],"objective-c":["m","h"],"objective-c++":["mm"],"objective-j":["j","sj"],omgrofl:["omgrofl"],opa:["opa"],opal:["opal"],opencl:["cl","opencl"],"openedge abl":["p","cls"],openscad:["scad"],org:["org"],ox:["ox","oxh","oxo"],oxygene:["oxygene"],oz:["oz"],pawn:["pwn"],php:["php","aw","ctp","fcgi","php3","php4","php5","phpt"],plsql:["pls","pkb","pks","plb","plsql","sql"],plpgsql:["sql"],pan:["pan"],papyrus:["psc"],parrot:["parrot"],"parrot assembly":["pasm"],"parrot internal representation":["pir"],pascal:["pas","dfm","dpr","lpr","pp"],perl:["pl","cgi","fcgi","perl","ph","plx","pm","pod","psgi","t"],perl6:["6pl","6pm","nqp","p6","p6l","p6m","pl","pl6","pm","pm6","t"],piglatin:["pig"],pike:["pike","pmod"],pod:["pod"],pogoscript:["pogo"],postscript:["ps","eps"],powershell:["ps1","psd1","psm1"],processing:["pde"],prolog:["pl","ecl","pro","prolog"],"propeller spin":["spin"],"protocol buffer":["proto"],"public key":["asc","pub"],puppet:["pp"],"pure data":["pd"],purebasic:["pb","pbi"],purescript:["purs"],python:["py","cgi","fcgi","gyp","lmi","pyde","pyp","pyt","pyw","tac","wsgi","xpy"],"python traceback":["pytb"],qml:["qml"],qmake:["pro","pri"],r:["r","rd","rsx"],raml:["raml"],rdoc:["rdoc"],realbasic:["rbbas","rbfrm","rbmnu","rbres","rbtbar","rbuistate"],rhtml:["rhtml"],rmarkdown:["rmd"],racket:["rkt","rktd","rktl","scrbl"],"ragel in ruby host":["rl"],"raw token data":["raw"],rebol:["reb","r","r2","r3","rebol"],red:["red","reds"],redcode:["cw"],renderscript:["rs","rsh"],robotframework:["robot"],rouge:["rg"],ruby:["rb","builder","fcgi","gemspec","god","irbrc","jbuilder","mspec","pluginspec","podspec","rabl","rake","rbuild","rbw","rbx","ru","ruby","thor","watchr"],rust:["rs"],sas:["sas"],scss:["scss"],sparql:["sparql","rq"],sqf:["sqf","hqf"],sql:["sql","cql","ddl","prc","tab","udf","viw"],sqlpl:["sql","db2"],ston:["ston"],svg:["svg"],sage:["sage","sagews"],saltstack:["sls"],sass:["sass"],scala:["scala","sbt","sc"],scaml:["scaml"],scheme:["scm","sld","sls","sps","ss"],scilab:["sci","sce","tst"],self:["self"],shell:["sh","bash","bats","cgi","command","fcgi","ksh","tmux","tool","zsh"],shellsession:["sh-session"],shen:["shen"],slash:["sl"],slim:["slim"],smalltalk:["st","cs"],smarty:["tpl"],sourcepawn:["sp","sma"],squirrel:["nut"],"standard ml":["ML","fun","sig","sml"],stata:["do","ado","doh","ihlp","mata","matah","sthlp"],stylus:["styl"],supercollider:["scd","sc"],swift:["swift"],systemverilog:["sv","svh","vh"],toml:["toml"],txl:["txl"],tcl:["tcl","adp","tm"],tcsh:["tcsh","csh"],tex:["tex","aux","bbx","bib","cbx","cls","dtx","ins","lbx","ltx","mkii","mkiv","mkvi","sty","toc"],tea:["tea"],text:["txt","fr"],textile:["textile"],thrift:["thrift"],turing:["t","tu"],turtle:["ttl"],twig:["twig"],typescript:["ts"],"unified parallel c":["upc"],unrealscript:["uc"],vcl:["vcl"],vhdl:["vhdl","vhd","vhf","vhi","vho","vhs","vht","vhw"],vala:["vala","vapi"],verilog:["v","veo"],viml:["vim"],"visual basic":["vb","bas","cls","frm","frx","vba","vbhtml","vbs"],volt:["volt"],"web ontology language":["owl"],webidl:["webidl"],xc:["xc"],xml:["xml","ant","axml","ccxml","clixml","cproject","csproj","ct","dita","ditamap","ditaval","dll.config","filters","fsproj","fxml","glade","grxml","ivy","jelly","kml","launch","mm","mxml","nproj","nuspec","odd","osm","plist","pluginspec","ps1xml","psc1","pt","rdf","rss","scxml","srdf","storyboard","stTheme","sublime-snippet","targets","tmCommand","tml","tmLanguage","tmPreferences","tmSnippet","tmTheme","ts","ui","urdf","vbproj","vcxproj","vxml","wsdl","wsf","wxi","wxl","wxs","x3d","xacro","xaml","xib","xlf","xliff","xmi","xml.dist","xsd","xul","zcml"],xproc:["xpl","xproc"],xquery:["xquery","xq","xql","xqm","xqy"],xs:["xs"],xslt:["xslt","xsl"],xojo:["xojo_code","xojo_menu","xojo_report","xojo_script","xojo_toolbar","xojo_window"],xtend:["xtend"],yaml:["yml","reek","rviz","yaml"],zephir:["zep"],zimpl:["zimpl","zmpl","zpl"],desktop:["desktop","desktop.in"],ec:["ec","eh"],edn:["edn"],fish:["fish"],mupad:["mu"],nesc:["nc"],ooc:["ooc"],restructuredtext:["rst","rest"],wisp:["wisp"],xbase:["prg"]}});var H3=Fi((HG,xI)=>{xI.exports={"1":["groff"],"2":["groff"],"3":["groff"],"4":["groff"],"5":["groff"],"6":["groff"],"7":["groff"],abap:["abap"],asc:["ags script","asciidoc","public key"],ash:["ags script"],ampl:["ampl"],g4:["antlr"],apl:["apl"],dyalog:["apl"],asp:["asp"],asax:["asp"],ascx:["asp"],ashx:["asp"],asmx:["asp"],aspx:["asp"],axd:["asp"],dats:["ats"],hats:["ats"],sats:["ats"],as:["actionscript"],adb:["ada"],ada:["ada"],ads:["ada"],agda:["agda"],als:["alloy"],apacheconf:["apacheconf"],cls:["apex","openedge abl","tex","visual basic"],applescript:["applescript"],scpt:["applescript"],arc:["arc"],ino:["arduino"],asciidoc:["asciidoc"],adoc:["asciidoc"],aj:["aspectj"],asm:["assembly"],a51:["assembly"],nasm:["assembly"],aug:["augeas"],ahk:["autohotkey"],ahkl:["autohotkey"],au3:["autoit"],awk:["awk"],auk:["awk"],gawk:["awk"],mawk:["awk"],nawk:["awk"],bat:["batchfile"],cmd:["batchfile"],befunge:["befunge"],y:["bison"],bb:["bitbake","blitzbasic"],decls:["blitzbasic"],bmx:["blitzmax"],bsv:["bluespec"],boo:["boo"],b:["brainfuck","limbo"],bf:["brainfuck"],brs:["brightscript"],bro:["bro"],c:["c"],cats:["c"],h:["c","c++","objective-c"],idc:["c"],w:["c"],cs:["c#","smalltalk"],cshtml:["c#"],csx:["c#"],cpp:["c++"],"c++":["c++"],cc:["c++"],cp:["c++","component pascal"],cxx:["c++"],"h++":["c++"],hh:["c++","hack"],hpp:["c++"],hxx:["c++"],inl:["c++"],ipp:["c++"],tcc:["c++"],tpp:["c++"],"c-objdump":["c-objdump"],chs:["c2hs haskell"],clp:["clips"],cmake:["cmake"],"cmake.in":["cmake"],cob:["cobol"],cbl:["cobol"],ccp:["cobol"],cobol:["cobol"],cpy:["cobol"],css:["css"],capnp:["cap'n proto"],mss:["cartocss"],ceylon:["ceylon"],chpl:["chapel"],ck:["chuck"],cirru:["cirru"],clw:["clarion"],icl:["clean"],dcl:["clean"],clj:["clojure"],boot:["clojure"],cl2:["clojure"],cljc:["clojure"],cljs:["clojure"],"cljs.hl":["clojure"],cljscm:["clojure"],cljx:["clojure"],hic:["clojure"],coffee:["coffeescript"],_coffee:["coffeescript"],cjsx:["coffeescript"],cson:["coffeescript"],iced:["coffeescript"],cfm:["coldfusion"],cfml:["coldfusion"],cfc:["coldfusion cfc"],lisp:["common lisp","newlisp"],asd:["common lisp"],cl:["common lisp","cool","opencl"],lsp:["common lisp","newlisp"],ny:["common lisp"],podsl:["common lisp"],cps:["component pascal"],coq:["coq"],v:["coq","verilog"],cppobjdump:["cpp-objdump"],"c++-objdump":["cpp-objdump"],"c++objdump":["cpp-objdump"],"cpp-objdump":["cpp-objdump"],"cxx-objdump":["cpp-objdump"],creole:["creole"],cr:["crystal"],feature:["cucumber"],cu:["cuda"],cuh:["cuda"],cy:["cycript"],pyx:["cython"],pxd:["cython"],pxi:["cython"],d:["d","dtrace","makefile"],di:["d"],"d-objdump":["d-objdump"],com:["digital command language"],dm:["dm"],darcspatch:["darcs patch"],dpatch:["darcs patch"],dart:["dart"],diff:["diff"],patch:["diff"],dockerfile:["dockerfile"],djs:["dogescript"],dylan:["dylan"],dyl:["dylan"],intr:["dylan"],lid:["dylan"],E:["e"],ecl:["ecl","prolog"],eclxml:["ecl"],sch:["eagle","kicad"],brd:["eagle"],epj:["ecere projects"],e:["eiffel"],ex:["elixir"],exs:["elixir"],elm:["elm"],el:["emacs lisp"],emacs:["emacs lisp"],"emacs.desktop":["emacs lisp"],em:["emberscript"],emberscript:["emberscript"],erl:["erlang"],es:["erlang"],escript:["erlang"],hrl:["erlang"],fs:["f#","filterscript","forth","glsl"],fsi:["f#"],fsx:["f#"],fx:["flux"],flux:["flux"],f90:["fortran"],f:["fortran","forth"],f03:["fortran"],f08:["fortran"],f77:["fortran"],f95:["fortran"],for:["fortran","formatted","forth"],fpp:["fortran"],factor:["factor"],fy:["fancy"],fancypack:["fancy"],fan:["fantom"],fth:["forth"],"4th":["forth"],forth:["forth"],fr:["forth","frege","text"],frt:["forth"],g:["g-code","gap"],gco:["g-code"],gcode:["g-code"],gms:["gams"],gap:["gap"],gd:["gap","gdscript"],gi:["gap"],tst:["gap","scilab"],s:["gas"],glsl:["glsl"],fp:["glsl"],frag:["glsl","javascript"],frg:["glsl"],fshader:["glsl"],geo:["glsl"],geom:["glsl"],glslv:["glsl"],gshader:["glsl"],shader:["glsl"],vert:["glsl"],vrx:["glsl"],vshader:["glsl"],gml:["game maker language","graph modeling language"],kid:["genshi"],ebuild:["gentoo ebuild"],eclass:["gentoo eclass"],po:["gettext catalog"],pot:["gettext catalog"],glf:["glyph"],gp:["gnuplot"],gnu:["gnuplot"],gnuplot:["gnuplot"],plot:["gnuplot"],plt:["gnuplot"],go:["go"],golo:["golo"],gs:["gosu","javascript"],gst:["gosu"],gsx:["gosu"],vark:["gosu"],grace:["grace"],gradle:["gradle"],gf:["grammatical framework"],dot:["graphviz (dot)"],gv:["graphviz (dot)"],man:["groff"],groovy:["groovy"],grt:["groovy"],gtpl:["groovy"],gvy:["groovy"],gsp:["groovy server pages"],html:["html"],htm:["html"],"html.hl":["html"],st:["html","smalltalk"],xht:["html"],xhtml:["html"],mustache:["html+django"],jinja:["html+django"],erb:["html+erb"],"erb.deface":["html+erb"],phtml:["html+php"],http:["http"],php:["hack","php"],haml:["haml"],"haml.deface":["haml"],handlebars:["handlebars"],hbs:["handlebars"],hb:["harbour"],hs:["haskell"],hsc:["haskell"],hx:["haxe"],hxsl:["haxe"],hy:["hy"],pro:["idl","ini","prolog","qmake"],dlm:["idl"],ipf:["igor pro"],ini:["ini"],cfg:["ini"],prefs:["ini"],properties:["ini"],irclog:["irc log"],weechatlog:["irc log"],idr:["idris"],lidr:["idris"],ni:["inform 7"],i7x:["inform 7"],iss:["inno setup"],io:["io"],ik:["ioke"],thy:["isabelle"],ijs:["j"],flex:["jflex"],jflex:["jflex"],json:["json"],lock:["json"],json5:["json5"],jsonld:["jsonld"],jq:["jsoniq"],jade:["jade"],j:["jasmin","objective-j"],java:["java"],jsp:["java server pages"],js:["javascript"],_js:["javascript"],bones:["javascript"],es6:["javascript"],jake:["javascript"],jsb:["javascript"],jsfl:["javascript"],jsm:["javascript"],jss:["javascript"],jsx:["javascript"],njs:["javascript"],pac:["javascript"],sjs:["javascript"],ssjs:["javascript"],"sublime-build":["javascript"],"sublime-commands":["javascript"],"sublime-completions":["javascript"],"sublime-keymap":["javascript"],"sublime-macro":["javascript"],"sublime-menu":["javascript"],"sublime-mousemap":["javascript"],"sublime-project":["javascript"],"sublime-settings":["javascript"],"sublime-theme":["javascript"],"sublime-workspace":["javascript"],sublime_metrics:["javascript"],sublime_session:["javascript"],xsjs:["javascript"],xsjslib:["javascript"],jl:["julia"],krl:["krl"],kit:["kit"],kt:["kotlin"],ktm:["kotlin"],kts:["kotlin"],lfe:["lfe"],ll:["llvm"],lol:["lolcode"],lsl:["lsl"],lvproj:["labview"],lasso:["lasso"],las:["lasso"],lasso8:["lasso"],lasso9:["lasso"],ldml:["lasso"],latte:["latte"],lean:["lean"],hlean:["lean"],less:["less"],ly:["lilypond"],ily:["lilypond"],m:["limbo","m","muf","mathematica","matlab","mercury","objective-c"],ld:["linker script"],lds:["linker script"],liquid:["liquid"],lagda:["literate agda"],litcoffee:["literate coffeescript"],lhs:["literate haskell"],ls:["livescript","loomscript"],_ls:["livescript"],xm:["logos"],x:["logos"],xi:["logos"],lgt:["logtalk"],logtalk:["logtalk"],lookml:["lookml"],lua:["lua"],fcgi:["lua","php","perl","python","ruby","shell"],nse:["lua"],pd_lua:["lua"],rbxs:["lua"],wlua:["lua"],mumps:["m"],mtml:["mtml"],muf:["muf"],mak:["makefile"],mk:["makefile"],mako:["mako"],mao:["mako"],md:["markdown"],markdown:["markdown"],mkd:["markdown"],mkdn:["markdown"],mkdown:["markdown"],ron:["markdown"],mask:["mask"],mathematica:["mathematica"],cdf:["mathematica"],ma:["mathematica"],nb:["mathematica"],nbp:["mathematica"],wl:["mathematica"],wlt:["mathematica"],matlab:["matlab"],maxpat:["max"],maxhelp:["max"],maxproj:["max"],mxt:["max"],pat:["max"],mediawiki:["mediawiki"],moo:["mercury","moocode"],minid:["minid"],druby:["mirah"],duby:["mirah"],mir:["mirah"],mirah:["mirah"],mo:["modelica"],mms:["module management system"],mmk:["module management system"],monkey:["monkey"],moon:["moonscript"],myt:["myghty"],nl:["nl","newlisp"],nsi:["nsis"],nsh:["nsis"],n:["nemerle"],axs:["netlinx"],axi:["netlinx"],"axs.erb":["netlinx+erb"],"axi.erb":["netlinx+erb"],nlogo:["netlogo"],nginxconf:["nginx"],nim:["nimrod"],nimrod:["nimrod"],ninja:["ninja"],nit:["nit"],nix:["nix"],nu:["nu"],numpy:["numpy"],numpyw:["numpy"],numsc:["numpy"],ml:["ocaml"],eliom:["ocaml"],eliomi:["ocaml"],ml4:["ocaml"],mli:["ocaml"],mll:["ocaml"],mly:["ocaml"],objdump:["objdump"],mm:["objective-c++","xml"],sj:["objective-j"],omgrofl:["omgrofl"],opa:["opa"],opal:["opal"],opencl:["opencl"],p:["openedge abl"],scad:["openscad"],org:["org"],ox:["ox"],oxh:["ox"],oxo:["ox"],oxygene:["oxygene"],oz:["oz"],pwn:["pawn"],aw:["php"],ctp:["php"],php3:["php"],php4:["php"],php5:["php"],phpt:["php"],pls:["plsql"],pkb:["plsql"],pks:["plsql"],plb:["plsql"],plsql:["plsql"],sql:["plsql","plpgsql","sql","sqlpl"],pan:["pan"],psc:["papyrus"],parrot:["parrot"],pasm:["parrot assembly"],pir:["parrot internal representation"],pas:["pascal"],dfm:["pascal"],dpr:["pascal"],lpr:["pascal"],pp:["pascal","puppet"],pl:["perl","perl6","prolog"],cgi:["perl","python","shell"],perl:["perl"],ph:["perl"],plx:["perl"],pm:["perl","perl6"],pod:["perl","pod"],psgi:["perl"],t:["perl","perl6","turing"],"6pl":["perl6"],"6pm":["perl6"],nqp:["perl6"],p6:["perl6"],p6l:["perl6"],p6m:["perl6"],pl6:["perl6"],pm6:["perl6"],pig:["piglatin"],pike:["pike"],pmod:["pike"],pogo:["pogoscript"],ps:["postscript"],eps:["postscript"],ps1:["powershell"],psd1:["powershell"],psm1:["powershell"],pde:["processing"],prolog:["prolog"],spin:["propeller spin"],proto:["protocol buffer"],pub:["public key"],pd:["pure data"],pb:["purebasic"],pbi:["purebasic"],purs:["purescript"],py:["python"],gyp:["python"],lmi:["python"],pyde:["python"],pyp:["python"],pyt:["python"],pyw:["python"],tac:["python"],wsgi:["python"],xpy:["python"],pytb:["python traceback"],qml:["qml"],pri:["qmake"],r:["r","rebol"],rd:["r"],rsx:["r"],raml:["raml"],rdoc:["rdoc"],rbbas:["realbasic"],rbfrm:["realbasic"],rbmnu:["realbasic"],rbres:["realbasic"],rbtbar:["realbasic"],rbuistate:["realbasic"],rhtml:["rhtml"],rmd:["rmarkdown"],rkt:["racket"],rktd:["racket"],rktl:["racket"],scrbl:["racket"],rl:["ragel in ruby host"],raw:["raw token data"],reb:["rebol"],r2:["rebol"],r3:["rebol"],rebol:["rebol"],red:["red"],reds:["red"],cw:["redcode"],rs:["renderscript","rust"],rsh:["renderscript"],robot:["robotframework"],rg:["rouge"],rb:["ruby"],builder:["ruby"],gemspec:["ruby"],god:["ruby"],irbrc:["ruby"],jbuilder:["ruby"],mspec:["ruby"],pluginspec:["ruby","xml"],podspec:["ruby"],rabl:["ruby"],rake:["ruby"],rbuild:["ruby"],rbw:["ruby"],rbx:["ruby"],ru:["ruby"],ruby:["ruby"],thor:["ruby"],watchr:["ruby"],sas:["sas"],scss:["scss"],sparql:["sparql"],rq:["sparql"],sqf:["sqf"],hqf:["sqf"],cql:["sql"],ddl:["sql"],prc:["sql"],tab:["sql"],udf:["sql"],viw:["sql"],db2:["sqlpl"],ston:["ston"],svg:["svg"],sage:["sage"],sagews:["sage"],sls:["saltstack","scheme"],sass:["sass"],scala:["scala"],sbt:["scala"],sc:["scala","supercollider"],scaml:["scaml"],scm:["scheme"],sld:["scheme"],sps:["scheme"],ss:["scheme"],sci:["scilab"],sce:["scilab"],self:["self"],sh:["shell"],bash:["shell"],bats:["shell"],command:["shell"],ksh:["shell"],tmux:["shell"],tool:["shell"],zsh:["shell"],"sh-session":["shellsession"],shen:["shen"],sl:["slash"],slim:["slim"],tpl:["smarty"],sp:["sourcepawn"],sma:["sourcepawn"],nut:["squirrel"],ML:["standard ml"],fun:["standard ml"],sig:["standard ml"],sml:["standard ml"],do:["stata"],ado:["stata"],doh:["stata"],ihlp:["stata"],mata:["stata"],matah:["stata"],sthlp:["stata"],styl:["stylus"],scd:["supercollider"],swift:["swift"],sv:["systemverilog"],svh:["systemverilog"],vh:["systemverilog"],toml:["toml"],txl:["txl"],tcl:["tcl"],adp:["tcl"],tm:["tcl"],tcsh:["tcsh"],csh:["tcsh"],tex:["tex"],aux:["tex"],bbx:["tex"],bib:["tex"],cbx:["tex"],dtx:["tex"],ins:["tex"],lbx:["tex"],ltx:["tex"],mkii:["tex"],mkiv:["tex"],mkvi:["tex"],sty:["tex"],toc:["tex"],tea:["tea"],txt:["text"],textile:["textile"],thrift:["thrift"],tu:["turing"],ttl:["turtle"],twig:["twig"],ts:["typescript","xml"],upc:["unified parallel c"],uc:["unrealscript"],vcl:["vcl"],vhdl:["vhdl"],vhd:["vhdl"],vhf:["vhdl"],vhi:["vhdl"],vho:["vhdl"],vhs:["vhdl"],vht:["vhdl"],vhw:["vhdl"],vala:["vala"],vapi:["vala"],veo:["verilog"],vim:["viml"],vb:["visual basic"],bas:["visual basic"],frm:["visual basic"],frx:["visual basic"],vba:["visual basic"],vbhtml:["visual basic"],vbs:["visual basic"],volt:["volt"],owl:["web ontology language"],webidl:["webidl"],xc:["xc"],xml:["xml"],ant:["xml"],axml:["xml"],ccxml:["xml"],clixml:["xml"],cproject:["xml"],csproj:["xml"],ct:["xml"],dita:["xml"],ditamap:["xml"],ditaval:["xml"],"dll.config":["xml"],filters:["xml"],fsproj:["xml"],fxml:["xml"],glade:["xml"],grxml:["xml"],ivy:["xml"],jelly:["xml"],kml:["xml"],launch:["xml"],mxml:["xml"],nproj:["xml"],nuspec:["xml"],odd:["xml"],osm:["xml"],plist:["xml"],ps1xml:["xml"],psc1:["xml"],pt:["xml"],rdf:["xml"],rss:["xml"],scxml:["xml"],srdf:["xml"],storyboard:["xml"],stTheme:["xml"],"sublime-snippet":["xml"],targets:["xml"],tmCommand:["xml"],tml:["xml"],tmLanguage:["xml"],tmPreferences:["xml"],tmSnippet:["xml"],tmTheme:["xml"],ui:["xml"],urdf:["xml"],vbproj:["xml"],vcxproj:["xml"],vxml:["xml"],wsdl:["xml"],wsf:["xml"],wxi:["xml"],wxl:["xml"],wxs:["xml"],x3d:["xml"],xacro:["xml"],xaml:["xml"],xib:["xml"],xlf:["xml"],xliff:["xml"],xmi:["xml"],"xml.dist":["xml"],xsd:["xml"],xul:["xml"],zcml:["xml"],xpl:["xproc"],xproc:["xproc"],xquery:["xquery"],xq:["xquery"],xql:["xquery"],xqm:["xquery"],xqy:["xquery"],xs:["xs"],xslt:["xslt"],xsl:["xslt"],xojo_code:["xojo"],xojo_menu:["xojo"],xojo_report:["xojo"],xojo_script:["xojo"],xojo_toolbar:["xojo"],xojo_window:["xojo"],xtend:["xtend"],yml:["yaml"],reek:["yaml"],rviz:["yaml"],yaml:["yaml"],zep:["zephir"],zimpl:["zimpl"],zmpl:["zimpl"],zpl:["zimpl"],desktop:["desktop"],"desktop.in":["desktop"],ec:["ec"],eh:["ec"],edn:["edn"],fish:["fish"],mu:["mupad"],nc:["nesc"],ooc:["ooc"],rst:["restructuredtext"],rest:["restructuredtext"],wisp:["wisp"],prg:["xbase"]}});var Z3=Fi((KG,G3)=>{"use strict";function es(){var i={};return i.extensions||(i.extensions=j3()),i.languages||(i.languages=H3()),i}es.extensions=function(s){s=K3(s);var a=es().languages,u=es().extensions;return u[s]||u[a[s]]||[s]};es.languages=function(s){s=K3(s);var a=es().languages,u=es().extensions;return a[s]||a[u[s]]||[s]};function K3(i){return i.charAt(0)==="."&&(i=i.slice(1)),i.toLowerCase()}G3.exports=es});var iy=Fi((Wd,Xd)=>{(function(i,s){typeof Wd=="object"&&typeof Xd<"u"?Xd.exports=s():typeof define=="function"&&define.amd?define(s):(i=typeof globalThis<"u"?globalThis:i||self,i.uniqolor=s())})(Wd,function(){"use strict";function i(z,d){return u(z)||p(z,d)||m(z,d)||b()}function s(z){return a(z)||n(z)||m(z)||M()}function a(z){if(Array.isArray(z))return y(z)}function u(z){if(Array.isArray(z))return z}function n(z){if(typeof Symbol<"u"&&z[Symbol.iterator]!=null||z["@@iterator"]!=null)return Array.from(z)}function p(z,d){var t=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(t!=null){var r=[],o=!0,h=!1,f,v;try{for(t=t.call(z);!(o=(f=t.next()).done)&&(r.push(f.value),!(d&&r.length===d));o=!0);}catch(w){h=!0,v=w}finally{try{!o&&t.return!=null&&t.return()}finally{if(h)throw v}}return r}}function m(z,d){if(z){if(typeof z=="string")return y(z,d);var t=Object.prototype.toString.call(z).slice(8,-1);if(t==="Object"&&z.constructor&&(t=z.constructor.name),t==="Map"||t==="Set")return Array.from(z);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return y(z,d)}}function y(z,d){(d==null||d>z.length)&&(d=z.length);for(var t=0,r=new Array(d);t<d;t++)r[t]=z[t];return r}function M(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=[0,100],S=[0,100],_=function(d){return"".concat(d.length===1?"0":"").concat(d)},x=function(d,t,r){return Math.max(Math.min(d,r),t)},E=function(d,t){return Math.floor(Math.random()*(t-d+1))+d},k=function z(d,t,r){for(var o=E(d,t),h=0;h<r?.length;h++){var f=r[h];if(f?.length===2&&o>=f[0]&&o<=f[1])return z(d,t,r)}return o},B=function(d){for(var t=d.length,r=0,o=0;o<t;o++)r=(r<<5)-r+d.charCodeAt(o),r&=r;return r},T=function(d,t){return typeof t=="number"?t:d%Math.abs(t[1]-t[0])+t[0]},C=function(d,t){return typeof d=="number"?x.apply(void 0,[Math.abs(d)].concat(s(t))):d.length===1||d[0]===d[1]?x.apply(void 0,[Math.abs(d[0])].concat(s(t))):[Math.abs(x.apply(void 0,[d[0]].concat(s(t)))),x.apply(void 0,[Math.abs(d[1])].concat(s(t)))]},P=function(d,t,r){return r<0?r+=1:r>1&&(r-=1),r<1/6?d+(t-d)*6*r:r<1/2?t:r<2/3?d+(t-d)*(2/3-r)*6:d},G=function(d,t,r){var o,h,f;if(d/=360,t/=100,r/=100,t===0)o=h=f=r;else{var v=r<.5?r*(1+t):r+t-r*t,w=2*r-v;o=P(w,v,d+1/3),h=P(w,v,d),f=P(w,v,d-1/3)}return[Math.round(o*255),Math.round(h*255),Math.round(f*255)]},U=function(d,t,r,o){return(d*299+t*587+r*114)/1e3>=o},V=function(d,t,r){return"hsl(".concat(d,", ").concat(t,"%, ").concat(r,"%)")},I=function(d,t,r,o){switch(o){case"rgb":return"rgb(".concat(d,", ").concat(t,", ").concat(r,")");case"hex":default:return"#".concat(_(d.toString(16))).concat(_(t.toString(16))).concat(_(r.toString(16)))}},D=function(d){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.format,o=r===void 0?"hex":r,h=t.saturation,f=h===void 0?[50,55]:h,v=t.lightness,w=v===void 0?[50,60]:v,l=t.differencePoint,e=l===void 0?130:l,c=Math.abs(B(String(d))),A=T(c,[0,360]),R=T(c,C(f,g)),$=T(c,C(w,S)),L=G(A,R,$),j=i(L,3),pt=j[0],W=j[1],N=j[2];return{color:o==="hsl"?V(A,R,$):I(pt,W,N,o),isLight:U(pt,W,N,e)}};return D.random=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=z.format,t=d===void 0?"hex":d,r=z.saturation,o=r===void 0?[50,55]:r,h=z.lightness,f=h===void 0?[50,60]:h,v=z.differencePoint,w=v===void 0?130:v,l=z.excludeHue;o=C(o,g),f=C(f,S);var e=l?k(0,359,l):E(0,359),c=typeof o=="number"?o:E.apply(void 0,s(o)),A=typeof f=="number"?f:E.apply(void 0,s(f)),R=G(e,c,A),$=i(R,3),L=$[0],j=$[1],pt=$[2];return{color:t==="hsl"?V(e,c,A):I(L,j,pt,t),isLight:U(L,j,pt,w)}},D})});var ER=Fi((BJ,xR)=>{"use strict";xR.exports=function(i){return i=i||new Date,i=i instanceof Date?i.getFullYear():i,i%12===4}});var mB=Fi((NY,pB)=>{function aB(i){return Array.isArray(i)?i:[i]}var uB="",sB=" ",_6="\\",LF=/^\s+$/,OF=/(?:[^\\]|^)\\$/,NF=/^\\!/,qF=/^\\#/,zF=/\r?\n/g,UF=/^\.*\/|^\.+$/,S6="/",lB="node-ignore";typeof Symbol<"u"&&(lB=Symbol.for("node-ignore"));var hB=lB,FF=(i,s,a)=>Object.defineProperty(i,s,{value:a}),jF=/([0-z])-([0-z])/g,cB=()=>!1,HF=i=>i.replace(jF,(s,a,u)=>a.charCodeAt(0)<=u.charCodeAt(0)?s:uB),KF=i=>{let{length:s}=i;return i.slice(0,s-s%2)},GF=[[/\\?\s+$/,i=>i.indexOf("\\")===0?sB:uB],[/\\\s/g,()=>sB],[/[\\$.|*+(){^]/g,i=>`\\${i}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(i,s,a)=>s+6<a.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(i,s,a)=>{let u=a.replace(/\\\*/g,"[^\\/]*");return s+u}],[/\\\\\\(?=[$.|*+(){^])/g,()=>_6],[/\\\\/g,()=>_6],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(i,s,a,u,n)=>s===_6?`\\[${a}${KF(u)}${n}`:n==="]"&&u.length%2===0?`[${HF(a)}${u}]`:"[]"],[/(?:[^*])$/,i=>/\/$/.test(i)?`${i}$`:`${i}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(i,s)=>`${s?`${s}[^/]+`:"[^/]*"}(?=$|\\/$)`]],fB=Object.create(null),ZF=(i,s)=>{let a=fB[i];return a||(a=GF.reduce((u,n)=>u.replace(n[0],n[1].bind(i)),i),fB[i]=a),s?new RegExp(a,"i"):new RegExp(a)},A6=i=>typeof i=="string",VF=i=>i&&A6(i)&&!LF.test(i)&&!OF.test(i)&&i.indexOf("#")!==0,WF=i=>i.split(zF),x6=class{constructor(s,a,u,n){this.origin=s,this.pattern=a,this.negative=u,this.regex=n}},XF=(i,s)=>{let a=i,u=!1;i.indexOf("!")===0&&(u=!0,i=i.substr(1)),i=i.replace(NF,"!").replace(qF,"#");let n=ZF(i,s);return new x6(a,i,u,n)},JF=(i,s)=>{throw new s(i)},ha=(i,s,a)=>A6(i)?i?ha.isNotRelative(i)?a(`path should be a \`path.relative()\`d string, but got "${s}"`,RangeError):!0:a("path must not be empty",TypeError):a(`path must be a string, but got \`${s}\``,TypeError),dB=i=>UF.test(i);ha.isNotRelative=dB;ha.convert=i=>i;var E6=class{constructor({ignorecase:s=!0,ignoreCase:a=s,allowRelativePaths:u=!1}={}){FF(this,hB,!0),this._rules=[],this._ignoreCase=a,this._allowRelativePaths=u,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(s){if(s&&s[hB]){this._rules=this._rules.concat(s._rules),this._added=!0;return}if(VF(s)){let a=XF(s,this._ignoreCase);this._added=!0,this._rules.push(a)}}add(s){return this._added=!1,aB(A6(s)?WF(s):s).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(s){return this.add(s)}_testOne(s,a){let u=!1,n=!1;return this._rules.forEach(p=>{let{negative:m}=p;if(n===m&&u!==n||m&&!u&&!n&&!a)return;p.regex.test(s)&&(u=!m,n=m)}),{ignored:u,unignored:n}}_test(s,a,u,n){let p=s&&ha.convert(s);return ha(p,s,this._allowRelativePaths?cB:JF),this._t(p,a,u,n)}_t(s,a,u,n){if(s in a)return a[s];if(n||(n=s.split(S6)),n.pop(),!n.length)return a[s]=this._testOne(s,u);let p=this._t(n.join(S6)+S6,a,u,n);return a[s]=p.ignored?p:this._testOne(s,u)}ignores(s){return this._test(s,this._ignoreCache,!1).ignored}createFilter(){return s=>!this.ignores(s)}filter(s){return aB(s).filter(this.createFilter())}test(s){return this._test(s,this._testCache,!0)}},Kc=i=>new E6(i),YF=i=>ha(i&&ha.convert(i),i,cB);Kc.isPathValid=YF;Kc.default=Kc;pB.exports=Kc;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let i=a=>/^\\\\\?\\/.test(a)||/["<>|\u0000-\u001F]+/u.test(a)?a:a.replace(/\\/g,"/");ha.convert=i;let s=/^[a-z]:\//i;ha.isNotRelative=a=>s.test(a)||dB(a)}});var xB=Fi((oQ,$6)=>{"use strict";function pj(){throw new Error(`secure random number generation not supported by this browser
4
+ use chrome, FireFox or Internet Explorer 11`)}var T6=globalThis.crypto||globalThis.msCrypto;T6&&T6.getRandomValues?$6.exports=mj:$6.exports=pj;function mj(i,s){if(i>65536)throw new Error("requested too many random bytes");var a=new globalThis.Uint8Array(i);i>0&&T6.getRandomValues(a);var u=new Buffer(a.buffer);return typeof s=="function"?process.nextTick(function(){s(null,u)}):u}});var kB=Fi((EB,AB)=>{function ef(){this.chars=""}ef.prototype.setType=function(i){if(Array.isArray(i))for(var s=0;s<i.length;s++)this.chars+=this.getCharacters(i[s]);else this.chars=this.getCharacters(i)};ef.prototype.getCharacters=function(i){var s,a="0123456789",u="abcdefghijklmnopqrstuvwxyz",n=u.toUpperCase(),p="abcdef",m="01",y="01234567";return i==="alphanumeric"?s=a+u+n:i==="numeric"?s=a:i==="alphabetic"?s=u+n:i==="hex"?s=a+p:i==="binary"?s=m:i==="octal"?s=y:s=i,s};ef.prototype.removeUnreadable=function(){var i=/[0OIl]/g;this.chars=this.chars.replace(i,"")};ef.prototype.setcapitalization=function(i){i==="uppercase"?this.chars=this.chars.toUpperCase():i==="lowercase"&&(this.chars=this.chars.toLowerCase())};ef.prototype.removeDuplicates=function(){var i=this.chars.split("");i=[...new Set(i)],this.chars=i.join("")};AB.exports=EB=ef});var IB=Fi($B=>{"use strict";var RB=xB(),vj=kB();function gj(i){for(var s=[],a=0;a<i;a++)s.push(Math.floor(Math.random()*255));return{length:i,readUInt8:function(u){return s[u]}}}function bj(i){try{return RB(i)}catch{return gj(i)}}function BB(i,s,a,u,n){for(var p=s,m=0;m<i.length&&p.length<u;m++){var y=i.readUInt8(m);y<n&&(p+=a.charAt(y%a.length))}return p}function TB(i,s,a,u,n){RB(a,function(p,m){p&&n(p);var y=BB(m,i,s,a,u);y.length<a?TB(y,s,a,u,n):n(null,y)})}$B.generate=function(i,s){var a=new vj,u,n,p,m="";typeof i=="object"?(u=typeof i.length=="number"?i.length:32,i.charset?a.setType(i.charset):a.setType("alphanumeric"),i.capitalization&&a.setcapitalization(i.capitalization),i.readable&&a.removeUnreadable(),a.removeDuplicates()):typeof i=="number"?(u=i,a.setType("alphanumeric")):(u=32,a.setType("alphanumeric"));var y=a.chars.length,M=256-256%y;if(!s){for(;m.length<u;){var b=bj(Math.ceil(u*256/M));m=BB(b,m,a.chars,u,M)}return m}TB(m,a.chars,u,M,s)}});var PB=Fi((sQ,CB)=>{CB.exports=IB()});var LB=Fi((hQ,DB)=>{DB.exports={}});var UB=Fi((uQ,zB)=>{"use strict";var yj=!1,qB=function(){};yj&&(NB=function(s,a){var u=arguments.length;a=new Array(u>1?u-1:0);for(var n=1;n<u;n++)a[n-1]=arguments[n];var p=0,m="Warning: "+s.replace(/%s/g,function(){return a[p++]});typeof console<"u"&&console.error(m);try{throw new Error(m)}catch{}},qB=function(i,s,a){var u=arguments.length;a=new Array(u>2?u-2:0);for(var n=2;n<u;n++)a[n-2]=arguments[n];if(s===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");i||NB.apply(null,[s].concat(a))});var NB;zB.exports=qB});var aT=Fi(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.Detector=Za.Offline=Za.Online=void 0;var Jc=function(){function i(s,a){for(var u=0;u<a.length;u++){var n=a[u];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(s,n.key,n)}}return function(s,a,u){return a&&i(s.prototype,a),u&&i(s,u),s}}(),Xc=pr(),Vj=dI(),Lo=Wj(Vj);function Wj(i){return i&&i.__esModule?i:{default:i}}function Xj(i){if(Array.isArray(i)){for(var s=0,a=Array(i.length);s<i.length;s++)a[s]=i[s];return a}else return Array.from(i)}function Yc(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function Qc(i,s){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:i}function td(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(i,s):i.__proto__=s)}var rT=typeof navigator<"u",Jj=/Windows.*Chrome|Windows.*Firefox|Linux.*Chrome/,Yj=function(s){var a=s.url,u=s.timeout;return new Promise(function(n){var p=function(){return n(!0)},m=function(){return n(!1)},y=new XMLHttpRequest;y.onerror=m,y.ontimeout=m,y.onreadystatechange=function(){y.readyState===y.HEADERS_RECEIVED&&(y.status?p():m())},y.open("GET",a),y.timeout=u,y.send()})},ed={children:Lo.default.node,onChange:Lo.default.func,polling:Lo.default.oneOfType([Lo.default.shape({url:Lo.default.string,interval:Lo.default.number,timeout:Lo.default.number}),Lo.default.bool]),wrapperType:Lo.default.string},rd={polling:!0,wrapperType:"span"},eT={enabled:rT&&Jj.test(navigator.userAgent),url:"https://httpbin.org/get",timeout:5e3,interval:5e3},Ru=function(i){td(s,i);function s(){Yc(this,s);var a=Qc(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return a.state={online:rT&&typeof navigator.onLine=="boolean"?navigator.onLine:!0},a.goOnline=a.goOnline.bind(a),a.goOffline=a.goOffline.bind(a),a}return Jc(s,[{key:"componentDidMount",value:function(){window.addEventListener("online",this.goOnline),window.addEventListener("offline",this.goOffline),this.getPollingConfig().enabled&&this.startPolling()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("online",this.goOnline),window.removeEventListener("offline",this.goOffline),this.pollingId&&this.stopPolling()}},{key:"renderChildren",value:function(){var u=this.props,n=u.children,p=u.wrapperType;return(0,Xc.isValidElement)(n)?n:n?Xc.createElement.apply(void 0,[p,{}].concat(Xj(Xc.Children.toArray(n)))):null}},{key:"getPollingConfig",value:function(){switch(this.props.polling){case!0:return eT;case!1:return{enabled:!1};default:return Object.assign({},eT,this.props.polling)}}},{key:"goOnline",value:function(){this.state.online||(this.callOnChangeHandler(!0),this.setState({online:!0}))}},{key:"goOffline",value:function(){this.state.online&&(this.callOnChangeHandler(!1),this.setState({online:!1}))}},{key:"callOnChangeHandler",value:function(u){this.props.onChange&&this.props.onChange(u)}},{key:"startPolling",value:function(){var u=this,n=this.getPollingConfig(),p=n.interval;this.pollingId=setInterval(function(){var m=u.getPollingConfig(),y=m.url,M=m.timeout;Yj({url:y,timeout:M}).then(function(b){b?u.goOnline():u.goOffline()})},p)}},{key:"stopPolling",value:function(){clearInterval(this.pollingId)}}]),s}(Xc.Component);Ru.propTypes=ed;Ru.defaultProps=rd;var iT=Za.Online=function(i){td(s,i);function s(){return Yc(this,s),Qc(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return Jc(s,[{key:"render",value:function(){return this.state.online?this.renderChildren():null}}]),s}(Ru);iT.propTypes=ed;iT.defaultProps=rd;var nT=Za.Offline=function(i){td(s,i);function s(){return Yc(this,s),Qc(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return Jc(s,[{key:"render",value:function(){return this.state.online?null:this.renderChildren()}}]),s}(Ru);nT.propTypes=ed;nT.defaultProps=rd;var oT=Za.Detector=function(i){td(s,i);function s(){return Yc(this,s),Qc(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return Jc(s,[{key:"render",value:function(){return this.props.render({online:this.state.online})}}]),s}(Ru);oT.propTypes=Object.assign({},ed,{render:Lo.default.func.isRequired});oT.defaultProps=rd});var Ui=Xt(pr());var lG=Xt(O3());var wI=Xt(Ce());var N3=new Map;var bI=i=>{let s=[],a=i.split(".");for(let u=0;u<a.length;u++)if(a[u].startsWith("[")){let n=a[u].substring(1),p=u+1;for(;!a[p].endsWith("]");)n+=`.${a[p]}`,p++;n+=`.${a[p].slice(0,-1)}`,s.push(n),u=p}else s.push(a[u]);return s};function jd(i,s){let a=Array.from(N3.values());for(let n of Object.keys(s)){let p=bI(n);u(i,p,s[n])}return i;function u(n,p,m,y=0){let M=p[y];if(y<p.length-1){u(n[M],p,m,y+1);return}let b=n[M];switch(m){case"date":n[M]=new Date(b);break;case"set":n[M]=new Set(b);break;case"map":n[M]=new Map(Object.entries(b));break;case"regexp":let g=/^\/(.*)\/([dgimsuy]*)$/.exec(b);if(g)n[M]=new RegExp(g[1],g[2]);else throw new Error(`Invalid regexp: ${b}`);break;case"bigint":n[M]=BigInt(b);break;case"undefined":n[M]=void 0;break;case"infinity":n[M]=Number.POSITIVE_INFINITY;break;case"-infinity":n[M]=Number.NEGATIVE_INFINITY;break;case"nan":n[M]=NaN;break;case"error":let S=new Error(b.message);S.name=b.name,S.stack=b.stack,n[M]=S;break;default:let _=N3.get(m);_&&(n[M]=_.deserialize(b))}}}function Hd(){let i=C8();return q3(i)}function q3(i){if(!i)return i;if(i.$$obj)return i.$$meta?jd(i.$$obj,i.$$meta):i.$$obj;if(i.$$meta){let s=i.$$meta;return delete i.$$meta,jd(i,s)}return i}var cG=Xt(mI()),dG=Xt(vI()),fI=Xt(gI());var ii=Xt(pr());var z3=Xt(pr());var il=Xt(pr()),Kd=(0,il.createContext)(void 0);function Di(){let i=(0,il.useContext)(Kd);if(!i)throw new Error("useMetrics must be used within a MetricsContext");return i}var po=Xt(Ce());function nl(i){let[,s]=Di();return i.show?(0,po.jsx)(po.Fragment,{children:i.items.map(a=>{var y;let u=a.contribs,n=a.author,p=Math.round(u/i.contribSum*100),m=p===0?"<1":p;return(0,po.jsxs)(z3.Fragment,{children:[(0,po.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",title:n,children:[(0,po.jsx)(en,{authorColorToChange:n,className:"ml-1",dotColor:(y=s.get(n))!=null?y:"grey"}),(0,po.jsx)("span",{className:"overflow-hidden overflow-ellipsis whitespace-pre font-bold opacity-80",children:n})]}),(0,po.jsxs)("p",{className:"break-all text-right text-sm",children:[m,"%"]})]},n+u)})}):null}var U3=Xt(tn()),Gd=Xt(Ce());function vh({onClick:i=()=>{},open:s,className:a="",...u}){return(0,Gd.jsx)("button",{className:`z-10 ${a}`,onClick:i,...u,children:(0,Gd.jsx)(U3.Icon,{path:q8,size:1,className:`chevron transition-transform ${s?"rotate-180":""}`})})}var ol=Xt(pr()),Zd=(0,ol.createContext)(null);function Li(){let i=(0,ol.useContext)(Zd);if(!i)throw new Error("useClickedObject must be used within a ClickedObjectProvider");return i}var Tc=Xt(pr());var F3={"1C Enterprise":{color:"#814CCC",url:"https://github.com/trending?l=1C-Enterprise"},"2-Dimensional Array":{color:"#38761D",url:"https://github.com/trending?l=2-Dimensional-Array"},"4D":{color:"#004289",url:"https://github.com/trending?l=4D"},ABAP:{color:"#E8274B",url:"https://github.com/trending?l=ABAP"},"ABAP CDS":{color:"#555e25",url:"https://github.com/trending?l=ABAP-CDS"},ActionScript:{color:"#882B0F",url:"https://github.com/trending?l=ActionScript"},Ada:{color:"#02f88c",url:"https://github.com/trending?l=Ada"},"Adblock Filter List":{color:"#800000",url:"https://github.com/trending?l=Adblock-Filter-List"},"Adobe Font Metrics":{color:"#fa0f00",url:"https://github.com/trending?l=Adobe-Font-Metrics"},Agda:{color:"#315665",url:"https://github.com/trending?l=Agda"},"AGS Script":{color:"#B9D9FF",url:"https://github.com/trending?l=AGS-Script"},AIDL:{color:"#34EB6B",url:"https://github.com/trending?l=AIDL"},AL:{color:"#3AA2B5",url:"https://github.com/trending?l=AL"},Alloy:{color:"#64C800",url:"https://github.com/trending?l=Alloy"},"Alpine Abuild":{color:"#0D597F",url:"https://github.com/trending?l=Alpine-Abuild"},"Altium Designer":{color:"#A89663",url:"https://github.com/trending?l=Altium-Designer"},AMPL:{color:"#E6EFBB",url:"https://github.com/trending?l=AMPL"},AngelScript:{color:"#C7D7DC",url:"https://github.com/trending?l=AngelScript"},"Ant Build System":{color:"#A9157E",url:"https://github.com/trending?l=Ant-Build-System"},Antlers:{color:"#ff269e",url:"https://github.com/trending?l=Antlers"},ANTLR:{color:"#9DC3FF",url:"https://github.com/trending?l=ANTLR"},ApacheConf:{color:"#d12127",url:"https://github.com/trending?l=ApacheConf"},Apex:{color:"#1797c0",url:"https://github.com/trending?l=Apex"},"API Blueprint":{color:"#2ACCA8",url:"https://github.com/trending?l=API-Blueprint"},APL:{color:"#5A8164",url:"https://github.com/trending?l=APL"},"Apollo Guidance Computer":{color:"#0B3D91",url:"https://github.com/trending?l=Apollo-Guidance-Computer"},AppleScript:{color:"#101F1F",url:"https://github.com/trending?l=AppleScript"},Arc:{color:"#aa2afe",url:"https://github.com/trending?l=Arc"},AsciiDoc:{color:"#73a0c5",url:"https://github.com/trending?l=AsciiDoc"},ASL:{color:null,url:"https://github.com/trending?l=ASL"},"ASP.NET":{color:"#9400ff",url:"https://github.com/trending?l=ASP.NET"},AspectJ:{color:"#a957b0",url:"https://github.com/trending?l=AspectJ"},Assembly:{color:"#6E4C13",url:"https://github.com/trending?l=Assembly"},Astro:{color:"#ff5a03",url:"https://github.com/trending?l=Astro"},Asymptote:{color:"#ff0000",url:"https://github.com/trending?l=Asymptote"},ATS:{color:"#1ac620",url:"https://github.com/trending?l=ATS"},Augeas:{color:"#9CC134",url:"https://github.com/trending?l=Augeas"},AutoHotkey:{color:"#6594b9",url:"https://github.com/trending?l=AutoHotkey"},AutoIt:{color:"#1C3552",url:"https://github.com/trending?l=AutoIt"},"Avro IDL":{color:"#0040FF",url:"https://github.com/trending?l=Avro-IDL"},Awk:{color:"#c30e9b",url:"https://github.com/trending?l=Awk"},Ballerina:{color:"#FF5000",url:"https://github.com/trending?l=Ballerina"},BASIC:{color:"#ff0000",url:"https://github.com/trending?l=BASIC"},Batchfile:{color:"#C1F12E",url:"https://github.com/trending?l=Batchfile"},Beef:{color:"#a52f4e",url:"https://github.com/trending?l=Beef"},Befunge:{color:null,url:"https://github.com/trending?l=Befunge"},Berry:{color:"#15A13C",url:"https://github.com/trending?l=Berry"},BibTeX:{color:"#778899",url:"https://github.com/trending?l=BibTeX"},Bicep:{color:"#519aba",url:"https://github.com/trending?l=Bicep"},Bikeshed:{color:"#5562ac",url:"https://github.com/trending?l=Bikeshed"},Bison:{color:"#6A463F",url:"https://github.com/trending?l=Bison"},BitBake:{color:"#00bce4",url:"https://github.com/trending?l=BitBake"},Blade:{color:"#f7523f",url:"https://github.com/trending?l=Blade"},BlitzBasic:{color:"#00FFAE",url:"https://github.com/trending?l=BlitzBasic"},BlitzMax:{color:"#cd6400",url:"https://github.com/trending?l=BlitzMax"},Bluespec:{color:"#12223c",url:"https://github.com/trending?l=Bluespec"},Boo:{color:"#d4bec1",url:"https://github.com/trending?l=Boo"},Boogie:{color:"#c80fa0",url:"https://github.com/trending?l=Boogie"},Brainfuck:{color:"#2F2530",url:"https://github.com/trending?l=Brainfuck"},BrighterScript:{color:"#66AABB",url:"https://github.com/trending?l=BrighterScript"},Brightscript:{color:"#662D91",url:"https://github.com/trending?l=Brightscript"},Browserslist:{color:"#ffd539",url:"https://github.com/trending?l=Browserslist"},C:{color:"#555555",url:"https://github.com/trending?l=C"},"C#":{color:"#178600",url:"https://github.com/trending?l=Csharp"},"C++":{color:"#f34b7d",url:"https://github.com/trending?l=C++"},"C2hs Haskell":{color:null,url:"https://github.com/trending?l=C2hs-Haskell"},"Cabal Config":{color:"#483465",url:"https://github.com/trending?l=Cabal-Config"},Cadence:{color:"#00ef8b",url:"https://github.com/trending?l=Cadence"},Cairo:{color:"#ff4a48",url:"https://github.com/trending?l=Cairo"},CameLIGO:{color:"#3be133",url:"https://github.com/trending?l=CameLIGO"},"CAP CDS":{color:"#0092d1",url:"https://github.com/trending?l=CAP-CDS"},"Cap'n Proto":{color:"#c42727",url:"https://github.com/trending?l=Cap'n-Proto"},CartoCSS:{color:null,url:"https://github.com/trending?l=CartoCSS"},Ceylon:{color:"#dfa535",url:"https://github.com/trending?l=Ceylon"},Chapel:{color:"#8dc63f",url:"https://github.com/trending?l=Chapel"},Charity:{color:null,url:"https://github.com/trending?l=Charity"},ChucK:{color:"#3f8000",url:"https://github.com/trending?l=ChucK"},Circom:{color:"#707575",url:"https://github.com/trending?l=Circom"},Cirru:{color:"#ccccff",url:"https://github.com/trending?l=Cirru"},Clarion:{color:"#db901e",url:"https://github.com/trending?l=Clarion"},Clarity:{color:"#5546ff",url:"https://github.com/trending?l=Clarity"},"Classic ASP":{color:"#6a40fd",url:"https://github.com/trending?l=Classic-ASP"},Clean:{color:"#3F85AF",url:"https://github.com/trending?l=Clean"},Click:{color:"#E4E6F3",url:"https://github.com/trending?l=Click"},CLIPS:{color:"#00A300",url:"https://github.com/trending?l=CLIPS"},Clojure:{color:"#db5855",url:"https://github.com/trending?l=Clojure"},"Closure Templates":{color:"#0d948f",url:"https://github.com/trending?l=Closure-Templates"},"Cloud Firestore Security Rules":{color:"#FFA000",url:"https://github.com/trending?l=Cloud-Firestore-Security-Rules"},CMake:{color:"#DA3434",url:"https://github.com/trending?l=CMake"},COBOL:{color:null,url:"https://github.com/trending?l=COBOL"},CodeQL:{color:"#140f46",url:"https://github.com/trending?l=CodeQL"},CoffeeScript:{color:"#244776",url:"https://github.com/trending?l=CoffeeScript"},ColdFusion:{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion"},"ColdFusion CFC":{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion-CFC"},COLLADA:{color:"#F1A42B",url:"https://github.com/trending?l=COLLADA"},"Common Lisp":{color:"#3fb68b",url:"https://github.com/trending?l=Common-Lisp"},"Common Workflow Language":{color:"#B5314C",url:"https://github.com/trending?l=Common-Workflow-Language"},"Component Pascal":{color:"#B0CE4E",url:"https://github.com/trending?l=Component-Pascal"},Cool:{color:null,url:"https://github.com/trending?l=Cool"},Coq:{color:"#d0b68c",url:"https://github.com/trending?l=Coq"},Crystal:{color:"#000100",url:"https://github.com/trending?l=Crystal"},CSON:{color:"#244776",url:"https://github.com/trending?l=CSON"},Csound:{color:"#1a1a1a",url:"https://github.com/trending?l=Csound"},"Csound Document":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Document"},"Csound Score":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Score"},CSS:{color:"#563d7c",url:"https://github.com/trending?l=CSS"},CSV:{color:"#237346",url:"https://github.com/trending?l=CSV"},Cuda:{color:"#3A4E3A",url:"https://github.com/trending?l=Cuda"},CUE:{color:"#5886E1",url:"https://github.com/trending?l=CUE"},Curry:{color:"#531242",url:"https://github.com/trending?l=Curry"},CWeb:{color:"#00007a",url:"https://github.com/trending?l=CWeb"},Cycript:{color:null,url:"https://github.com/trending?l=Cycript"},Cypher:{color:"#34c0eb",url:"https://github.com/trending?l=Cypher"},Cython:{color:"#fedf5b",url:"https://github.com/trending?l=Cython"},D:{color:"#ba595e",url:"https://github.com/trending?l=D"},Dafny:{color:"#FFEC25",url:"https://github.com/trending?l=Dafny"},"Darcs Patch":{color:"#8eff23",url:"https://github.com/trending?l=Darcs-Patch"},Dart:{color:"#00B4AB",url:"https://github.com/trending?l=Dart"},DataWeave:{color:"#003a52",url:"https://github.com/trending?l=DataWeave"},"Debian Package Control File":{color:"#D70751",url:"https://github.com/trending?l=Debian-Package-Control-File"},DenizenScript:{color:"#FBEE96",url:"https://github.com/trending?l=DenizenScript"},Dhall:{color:"#dfafff",url:"https://github.com/trending?l=Dhall"},"DIGITAL Command Language":{color:null,url:"https://github.com/trending?l=DIGITAL-Command-Language"},"DirectX 3D File":{color:"#aace60",url:"https://github.com/trending?l=DirectX-3D-File"},DM:{color:"#447265",url:"https://github.com/trending?l=DM"},Dockerfile:{color:"#384d54",url:"https://github.com/trending?l=Dockerfile"},Dogescript:{color:"#cca760",url:"https://github.com/trending?l=Dogescript"},Dotenv:{color:"#e5d559",url:"https://github.com/trending?l=Dotenv"},DTrace:{color:null,url:"https://github.com/trending?l=DTrace"},Dylan:{color:"#6c616e",url:"https://github.com/trending?l=Dylan"},E:{color:"#ccce35",url:"https://github.com/trending?l=E"},Earthly:{color:"#2af0ff",url:"https://github.com/trending?l=Earthly"},Easybuild:{color:"#069406",url:"https://github.com/trending?l=Easybuild"},eC:{color:"#913960",url:"https://github.com/trending?l=eC"},"Ecere Projects":{color:"#913960",url:"https://github.com/trending?l=Ecere-Projects"},ECL:{color:"#8a1267",url:"https://github.com/trending?l=ECL"},ECLiPSe:{color:"#001d9d",url:"https://github.com/trending?l=ECLiPSe"},Ecmarkup:{color:"#eb8131",url:"https://github.com/trending?l=Ecmarkup"},EditorConfig:{color:"#fff1f2",url:"https://github.com/trending?l=EditorConfig"},Eiffel:{color:"#4d6977",url:"https://github.com/trending?l=Eiffel"},EJS:{color:"#a91e50",url:"https://github.com/trending?l=EJS"},Elixir:{color:"#6e4a7e",url:"https://github.com/trending?l=Elixir"},Elm:{color:"#60B5CC",url:"https://github.com/trending?l=Elm"},Elvish:{color:"#55BB55",url:"https://github.com/trending?l=Elvish"},"Elvish Transcript":{color:"#55BB55",url:"https://github.com/trending?l=Elvish-Transcript"},"Emacs Lisp":{color:"#c065db",url:"https://github.com/trending?l=Emacs-Lisp"},EmberScript:{color:"#FFF4F3",url:"https://github.com/trending?l=EmberScript"},EQ:{color:"#a78649",url:"https://github.com/trending?l=EQ"},Erlang:{color:"#B83998",url:"https://github.com/trending?l=Erlang"},Euphoria:{color:"#FF790B",url:"https://github.com/trending?l=Euphoria"},"F#":{color:"#b845fc",url:"https://github.com/trending?l=Fsharp"},"F*":{color:"#572e30",url:"https://github.com/trending?l=F*"},Factor:{color:"#636746",url:"https://github.com/trending?l=Factor"},Fancy:{color:"#7b9db4",url:"https://github.com/trending?l=Fancy"},Fantom:{color:"#14253c",url:"https://github.com/trending?l=Fantom"},Faust:{color:"#c37240",url:"https://github.com/trending?l=Faust"},Fennel:{color:"#fff3d7",url:"https://github.com/trending?l=Fennel"},"FIGlet Font":{color:"#FFDDBB",url:"https://github.com/trending?l=FIGlet-Font"},"Filebench WML":{color:"#F6B900",url:"https://github.com/trending?l=Filebench-WML"},Filterscript:{color:null,url:"https://github.com/trending?l=Filterscript"},fish:{color:"#4aae47",url:"https://github.com/trending?l=fish"},Fluent:{color:"#ffcc33",url:"https://github.com/trending?l=Fluent"},FLUX:{color:"#88ccff",url:"https://github.com/trending?l=FLUX"},Forth:{color:"#341708",url:"https://github.com/trending?l=Forth"},Fortran:{color:"#4d41b1",url:"https://github.com/trending?l=Fortran"},"Fortran Free Form":{color:"#4d41b1",url:"https://github.com/trending?l=Fortran-Free-Form"},FreeBasic:{color:"#141AC9",url:"https://github.com/trending?l=FreeBasic"},FreeMarker:{color:"#0050b2",url:"https://github.com/trending?l=FreeMarker"},Frege:{color:"#00cafe",url:"https://github.com/trending?l=Frege"},Futhark:{color:"#5f021f",url:"https://github.com/trending?l=Futhark"},"G-code":{color:"#D08CF2",url:"https://github.com/trending?l=G-code"},"Game Maker Language":{color:"#71b417",url:"https://github.com/trending?l=Game-Maker-Language"},GAML:{color:"#FFC766",url:"https://github.com/trending?l=GAML"},GAMS:{color:"#f49a22",url:"https://github.com/trending?l=GAMS"},GAP:{color:"#0000cc",url:"https://github.com/trending?l=GAP"},"GCC Machine Description":{color:"#FFCFAB",url:"https://github.com/trending?l=GCC-Machine-Description"},GDB:{color:null,url:"https://github.com/trending?l=GDB"},GDScript:{color:"#355570",url:"https://github.com/trending?l=GDScript"},GEDCOM:{color:"#003058",url:"https://github.com/trending?l=GEDCOM"},"Gemfile.lock":{color:"#701516",url:"https://github.com/trending?l=Gemfile.lock"},Gemini:{color:"#ff6900",url:"https://github.com/trending?l=Gemini"},Genero:{color:"#63408e",url:"https://github.com/trending?l=Genero"},"Genero Forms":{color:"#d8df39",url:"https://github.com/trending?l=Genero-Forms"},Genie:{color:"#fb855d",url:"https://github.com/trending?l=Genie"},Genshi:{color:"#951531",url:"https://github.com/trending?l=Genshi"},"Gentoo Ebuild":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Ebuild"},"Gentoo Eclass":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Eclass"},"Gerber Image":{color:"#d20b00",url:"https://github.com/trending?l=Gerber-Image"},Gherkin:{color:"#5B2063",url:"https://github.com/trending?l=Gherkin"},"Git Attributes":{color:"#F44D27",url:"https://github.com/trending?l=Git-Attributes"},"Git Config":{color:"#F44D27",url:"https://github.com/trending?l=Git-Config"},"Git Revision List":{color:"#F44D27",url:"https://github.com/trending?l=Git-Revision-List"},Gleam:{color:"#ffaff3",url:"https://github.com/trending?l=Gleam"},GLSL:{color:"#5686a5",url:"https://github.com/trending?l=GLSL"},Glyph:{color:"#c1ac7f",url:"https://github.com/trending?l=Glyph"},Gnuplot:{color:"#f0a9f0",url:"https://github.com/trending?l=Gnuplot"},Go:{color:"#00ADD8",url:"https://github.com/trending?l=Go"},"Go Checksums":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Checksums"},"Go Module":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Module"},"Godot Resource":{color:"#355570",url:"https://github.com/trending?l=Godot-Resource"},Golo:{color:"#88562A",url:"https://github.com/trending?l=Golo"},Gosu:{color:"#82937f",url:"https://github.com/trending?l=Gosu"},Grace:{color:"#615f8b",url:"https://github.com/trending?l=Grace"},Gradle:{color:"#02303a",url:"https://github.com/trending?l=Gradle"},"Grammatical Framework":{color:"#ff0000",url:"https://github.com/trending?l=Grammatical-Framework"},GraphQL:{color:"#e10098",url:"https://github.com/trending?l=GraphQL"},"Graphviz (DOT)":{color:"#2596be",url:"https://github.com/trending?l=Graphviz-(DOT)"},Groovy:{color:"#4298b8",url:"https://github.com/trending?l=Groovy"},"Groovy Server Pages":{color:"#4298b8",url:"https://github.com/trending?l=Groovy-Server-Pages"},GSC:{color:"#FF6800",url:"https://github.com/trending?l=GSC"},Hack:{color:"#878787",url:"https://github.com/trending?l=Hack"},Haml:{color:"#ece2a9",url:"https://github.com/trending?l=Haml"},Handlebars:{color:"#f7931e",url:"https://github.com/trending?l=Handlebars"},HAProxy:{color:"#106da9",url:"https://github.com/trending?l=HAProxy"},Harbour:{color:"#0e60e3",url:"https://github.com/trending?l=Harbour"},Haskell:{color:"#5e5086",url:"https://github.com/trending?l=Haskell"},Haxe:{color:"#df7900",url:"https://github.com/trending?l=Haxe"},HCL:{color:"#844FBA",url:"https://github.com/trending?l=HCL"},HiveQL:{color:"#dce200",url:"https://github.com/trending?l=HiveQL"},HLSL:{color:"#aace60",url:"https://github.com/trending?l=HLSL"},HOCON:{color:"#9ff8ee",url:"https://github.com/trending?l=HOCON"},HolyC:{color:"#ffefaf",url:"https://github.com/trending?l=HolyC"},hoon:{color:"#00b171",url:"https://github.com/trending?l=hoon"},HTML:{color:"#e34c26",url:"https://github.com/trending?l=HTML"},"HTML+ECR":{color:"#2e1052",url:"https://github.com/trending?l=HTML+ECR"},"HTML+EEX":{color:"#6e4a7e",url:"https://github.com/trending?l=HTML+EEX"},"HTML+ERB":{color:"#701516",url:"https://github.com/trending?l=HTML+ERB"},"HTML+PHP":{color:"#4f5d95",url:"https://github.com/trending?l=HTML+PHP"},"HTML+Razor":{color:"#512be4",url:"https://github.com/trending?l=HTML+Razor"},HTTP:{color:"#005C9C",url:"https://github.com/trending?l=HTTP"},HXML:{color:"#f68712",url:"https://github.com/trending?l=HXML"},Hy:{color:"#7790B2",url:"https://github.com/trending?l=Hy"},HyPhy:{color:null,url:"https://github.com/trending?l=HyPhy"},IDL:{color:"#a3522f",url:"https://github.com/trending?l=IDL"},Idris:{color:"#b30000",url:"https://github.com/trending?l=Idris"},"Ignore List":{color:"#000000",url:"https://github.com/trending?l=Ignore-List"},"IGOR Pro":{color:"#0000cc",url:"https://github.com/trending?l=IGOR-Pro"},"ImageJ Macro":{color:"#99AAFF",url:"https://github.com/trending?l=ImageJ-Macro"},Imba:{color:"#16cec6",url:"https://github.com/trending?l=Imba"},"Inform 7":{color:null,url:"https://github.com/trending?l=Inform-7"},INI:{color:"#d1dbe0",url:"https://github.com/trending?l=INI"},Ink:{color:null,url:"https://github.com/trending?l=Ink"},"Inno Setup":{color:"#264b99",url:"https://github.com/trending?l=Inno-Setup"},Io:{color:"#a9188d",url:"https://github.com/trending?l=Io"},Ioke:{color:"#078193",url:"https://github.com/trending?l=Ioke"},Isabelle:{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle"},"Isabelle ROOT":{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle-ROOT"},J:{color:"#9EEDFF",url:"https://github.com/trending?l=J"},Janet:{color:"#0886a5",url:"https://github.com/trending?l=Janet"},"JAR Manifest":{color:"#b07219",url:"https://github.com/trending?l=JAR-Manifest"},Jasmin:{color:"#d03600",url:"https://github.com/trending?l=Jasmin"},Java:{color:"#b07219",url:"https://github.com/trending?l=Java"},"Java Properties":{color:"#2A6277",url:"https://github.com/trending?l=Java-Properties"},"Java Server Pages":{color:"#2A6277",url:"https://github.com/trending?l=Java-Server-Pages"},JavaScript:{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript"},"JavaScript+ERB":{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript+ERB"},JCL:{color:"#d90e09",url:"https://github.com/trending?l=JCL"},"Jest Snapshot":{color:"#15c213",url:"https://github.com/trending?l=Jest-Snapshot"},"JetBrains MPS":{color:"#21D789",url:"https://github.com/trending?l=JetBrains-MPS"},JFlex:{color:"#DBCA00",url:"https://github.com/trending?l=JFlex"},Jinja:{color:"#a52a22",url:"https://github.com/trending?l=Jinja"},Jison:{color:"#56b3cb",url:"https://github.com/trending?l=Jison"},"Jison Lex":{color:"#56b3cb",url:"https://github.com/trending?l=Jison-Lex"},Jolie:{color:"#843179",url:"https://github.com/trending?l=Jolie"},jq:{color:"#c7254e",url:"https://github.com/trending?l=jq"},JSON:{color:"#292929",url:"https://github.com/trending?l=JSON"},"JSON with Comments":{color:"#292929",url:"https://github.com/trending?l=JSON-with-Comments"},JSON5:{color:"#267CB9",url:"https://github.com/trending?l=JSON5"},JSONiq:{color:"#40d47e",url:"https://github.com/trending?l=JSONiq"},JSONLD:{color:"#0c479c",url:"https://github.com/trending?l=JSONLD"},Jsonnet:{color:"#0064bd",url:"https://github.com/trending?l=Jsonnet"},Julia:{color:"#a270ba",url:"https://github.com/trending?l=Julia"},"Jupyter Notebook":{color:"#DA5B0B",url:"https://github.com/trending?l=Jupyter-Notebook"},Just:{color:"#384d54",url:"https://github.com/trending?l=Just"},"Kaitai Struct":{color:"#773b37",url:"https://github.com/trending?l=Kaitai-Struct"},KakouneScript:{color:"#6f8042",url:"https://github.com/trending?l=KakouneScript"},KerboScript:{color:"#41adf0",url:"https://github.com/trending?l=KerboScript"},"KiCad Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Layout"},"KiCad Legacy Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Legacy-Layout"},"KiCad Schematic":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Schematic"},Kotlin:{color:"#A97BFF",url:"https://github.com/trending?l=Kotlin"},KRL:{color:"#28430A",url:"https://github.com/trending?l=KRL"},kvlang:{color:"#1da6e0",url:"https://github.com/trending?l=kvlang"},LabVIEW:{color:"#fede06",url:"https://github.com/trending?l=LabVIEW"},Lark:{color:"#2980B9",url:"https://github.com/trending?l=Lark"},Lasso:{color:"#999999",url:"https://github.com/trending?l=Lasso"},Latte:{color:"#f2a542",url:"https://github.com/trending?l=Latte"},Lean:{color:null,url:"https://github.com/trending?l=Lean"},Less:{color:"#1d365d",url:"https://github.com/trending?l=Less"},Lex:{color:"#DBCA00",url:"https://github.com/trending?l=Lex"},LFE:{color:"#4C3023",url:"https://github.com/trending?l=LFE"},LigoLANG:{color:"#0e74ff",url:"https://github.com/trending?l=LigoLANG"},LilyPond:{color:"#9ccc7c",url:"https://github.com/trending?l=LilyPond"},Limbo:{color:null,url:"https://github.com/trending?l=Limbo"},Liquid:{color:"#67b8de",url:"https://github.com/trending?l=Liquid"},"Literate Agda":{color:"#315665",url:"https://github.com/trending?l=Literate-Agda"},"Literate CoffeeScript":{color:"#244776",url:"https://github.com/trending?l=Literate-CoffeeScript"},"Literate Haskell":{color:"#5e5086",url:"https://github.com/trending?l=Literate-Haskell"},LiveScript:{color:"#499886",url:"https://github.com/trending?l=LiveScript"},LLVM:{color:"#185619",url:"https://github.com/trending?l=LLVM"},Logos:{color:null,url:"https://github.com/trending?l=Logos"},Logtalk:{color:"#295b9a",url:"https://github.com/trending?l=Logtalk"},LOLCODE:{color:"#cc9900",url:"https://github.com/trending?l=LOLCODE"},LookML:{color:"#652B81",url:"https://github.com/trending?l=LookML"},LoomScript:{color:null,url:"https://github.com/trending?l=LoomScript"},LSL:{color:"#3d9970",url:"https://github.com/trending?l=LSL"},Lua:{color:"#000080",url:"https://github.com/trending?l=Lua"},M:{color:null,url:"https://github.com/trending?l=M"},M4:{color:null,url:"https://github.com/trending?l=M4"},M4Sugar:{color:null,url:"https://github.com/trending?l=M4Sugar"},Macaulay2:{color:"#d8ffff",url:"https://github.com/trending?l=Macaulay2"},Makefile:{color:"#427819",url:"https://github.com/trending?l=Makefile"},Mako:{color:"#7e858d",url:"https://github.com/trending?l=Mako"},Markdown:{color:"#083fa1",url:"https://github.com/trending?l=Markdown"},Marko:{color:"#42bff2",url:"https://github.com/trending?l=Marko"},Mask:{color:"#f97732",url:"https://github.com/trending?l=Mask"},Mathematica:{color:"#dd1100",url:"https://github.com/trending?l=Mathematica"},MATLAB:{color:"#e16737",url:"https://github.com/trending?l=MATLAB"},Max:{color:"#c4a79c",url:"https://github.com/trending?l=Max"},MAXScript:{color:"#00a6a6",url:"https://github.com/trending?l=MAXScript"},mcfunction:{color:"#E22837",url:"https://github.com/trending?l=mcfunction"},Mercury:{color:"#ff2b2b",url:"https://github.com/trending?l=Mercury"},Mermaid:{color:"#ff3670",url:"https://github.com/trending?l=Mermaid"},Meson:{color:"#007800",url:"https://github.com/trending?l=Meson"},Metal:{color:"#8f14e9",url:"https://github.com/trending?l=Metal"},MiniD:{color:null,url:"https://github.com/trending?l=MiniD"},MiniYAML:{color:"#ff1111",url:"https://github.com/trending?l=MiniYAML"},Mint:{color:"#02b046",url:"https://github.com/trending?l=Mint"},Mirah:{color:"#c7a938",url:"https://github.com/trending?l=Mirah"},"mIRC Script":{color:"#3d57c3",url:"https://github.com/trending?l=mIRC-Script"},MLIR:{color:"#5EC8DB",url:"https://github.com/trending?l=MLIR"},Modelica:{color:"#de1d31",url:"https://github.com/trending?l=Modelica"},"Modula-2":{color:"#10253f",url:"https://github.com/trending?l=Modula-2"},"Modula-3":{color:"#223388",url:"https://github.com/trending?l=Modula-3"},"Module Management System":{color:null,url:"https://github.com/trending?l=Module-Management-System"},Monkey:{color:null,url:"https://github.com/trending?l=Monkey"},"Monkey C":{color:"#8D6747",url:"https://github.com/trending?l=Monkey-C"},Moocode:{color:null,url:"https://github.com/trending?l=Moocode"},MoonScript:{color:"#ff4585",url:"https://github.com/trending?l=MoonScript"},Motoko:{color:"#fbb03b",url:"https://github.com/trending?l=Motoko"},"Motorola 68K Assembly":{color:"#005daa",url:"https://github.com/trending?l=Motorola-68K-Assembly"},Move:{color:"#4a137a",url:"https://github.com/trending?l=Move"},MQL4:{color:"#62A8D6",url:"https://github.com/trending?l=MQL4"},MQL5:{color:"#4A76B8",url:"https://github.com/trending?l=MQL5"},MTML:{color:"#b7e1f4",url:"https://github.com/trending?l=MTML"},MUF:{color:null,url:"https://github.com/trending?l=MUF"},mupad:{color:"#244963",url:"https://github.com/trending?l=mupad"},Mustache:{color:"#724b3b",url:"https://github.com/trending?l=Mustache"},Myghty:{color:null,url:"https://github.com/trending?l=Myghty"},nanorc:{color:"#2d004d",url:"https://github.com/trending?l=nanorc"},Nasal:{color:"#1d2c4e",url:"https://github.com/trending?l=Nasal"},NASL:{color:null,url:"https://github.com/trending?l=NASL"},NCL:{color:"#28431f",url:"https://github.com/trending?l=NCL"},Nearley:{color:"#990000",url:"https://github.com/trending?l=Nearley"},Nemerle:{color:"#3d3c6e",url:"https://github.com/trending?l=Nemerle"},nesC:{color:"#94B0C7",url:"https://github.com/trending?l=nesC"},NetLinx:{color:"#0aa0ff",url:"https://github.com/trending?l=NetLinx"},"NetLinx+ERB":{color:"#747faa",url:"https://github.com/trending?l=NetLinx+ERB"},NetLogo:{color:"#ff6375",url:"https://github.com/trending?l=NetLogo"},NewLisp:{color:"#87AED7",url:"https://github.com/trending?l=NewLisp"},Nextflow:{color:"#3ac486",url:"https://github.com/trending?l=Nextflow"},Nginx:{color:"#009639",url:"https://github.com/trending?l=Nginx"},Nim:{color:"#ffc200",url:"https://github.com/trending?l=Nim"},Nit:{color:"#009917",url:"https://github.com/trending?l=Nit"},Nix:{color:"#7e7eff",url:"https://github.com/trending?l=Nix"},"NPM Config":{color:"#cb3837",url:"https://github.com/trending?l=NPM-Config"},NSIS:{color:null,url:"https://github.com/trending?l=NSIS"},Nu:{color:"#c9df40",url:"https://github.com/trending?l=Nu"},NumPy:{color:"#9C8AF9",url:"https://github.com/trending?l=NumPy"},Nunjucks:{color:"#3d8137",url:"https://github.com/trending?l=Nunjucks"},NWScript:{color:"#111522",url:"https://github.com/trending?l=NWScript"},"OASv2-json":{color:"#85ea2d",url:"https://github.com/trending?l=OASv2-json"},"OASv2-yaml":{color:"#85ea2d",url:"https://github.com/trending?l=OASv2-yaml"},"OASv3-json":{color:"#85ea2d",url:"https://github.com/trending?l=OASv3-json"},"OASv3-yaml":{color:"#85ea2d",url:"https://github.com/trending?l=OASv3-yaml"},"Objective-C":{color:"#438eff",url:"https://github.com/trending?l=Objective-C"},"Objective-C++":{color:"#6866fb",url:"https://github.com/trending?l=Objective-C++"},"Objective-J":{color:"#ff0c5a",url:"https://github.com/trending?l=Objective-J"},ObjectScript:{color:"#424893",url:"https://github.com/trending?l=ObjectScript"},OCaml:{color:"#3be133",url:"https://github.com/trending?l=OCaml"},Odin:{color:"#60AFFE",url:"https://github.com/trending?l=Odin"},Omgrofl:{color:"#cabbff",url:"https://github.com/trending?l=Omgrofl"},ooc:{color:"#b0b77e",url:"https://github.com/trending?l=ooc"},Opa:{color:null,url:"https://github.com/trending?l=Opa"},Opal:{color:"#f7ede0",url:"https://github.com/trending?l=Opal"},"Open Policy Agent":{color:"#7d9199",url:"https://github.com/trending?l=Open-Policy-Agent"},"OpenAPI Specification v2":{color:"#85ea2d",url:"https://github.com/trending?l=OpenAPI-Specification-v2"},"OpenAPI Specification v3":{color:"#85ea2d",url:"https://github.com/trending?l=OpenAPI-Specification-v3"},OpenCL:{color:"#ed2e2d",url:"https://github.com/trending?l=OpenCL"},"OpenEdge ABL":{color:"#5ce600",url:"https://github.com/trending?l=OpenEdge-ABL"},OpenQASM:{color:"#AA70FF",url:"https://github.com/trending?l=OpenQASM"},"OpenRC runscript":{color:null,url:"https://github.com/trending?l=OpenRC-runscript"},OpenSCAD:{color:"#e5cd45",url:"https://github.com/trending?l=OpenSCAD"},"Option List":{color:"#476732",url:"https://github.com/trending?l=Option-List"},Org:{color:"#77aa99",url:"https://github.com/trending?l=Org"},Ox:{color:null,url:"https://github.com/trending?l=Ox"},Oxygene:{color:"#cdd0e3",url:"https://github.com/trending?l=Oxygene"},Oz:{color:"#fab738",url:"https://github.com/trending?l=Oz"},P4:{color:"#7055b5",url:"https://github.com/trending?l=P4"},Pan:{color:"#cc0000",url:"https://github.com/trending?l=Pan"},Papyrus:{color:"#6600cc",url:"https://github.com/trending?l=Papyrus"},Parrot:{color:"#f3ca0a",url:"https://github.com/trending?l=Parrot"},"Parrot Assembly":{color:null,url:"https://github.com/trending?l=Parrot-Assembly"},"Parrot Internal Representation":{color:null,url:"https://github.com/trending?l=Parrot-Internal-Representation"},Pascal:{color:"#E3F171",url:"https://github.com/trending?l=Pascal"},Pawn:{color:"#dbb284",url:"https://github.com/trending?l=Pawn"},PDDL:{color:"#0d00ff",url:"https://github.com/trending?l=PDDL"},"PEG.js":{color:"#234d6b",url:"https://github.com/trending?l=PEG.js"},Pep8:{color:"#C76F5B",url:"https://github.com/trending?l=Pep8"},Perl:{color:"#0298c3",url:"https://github.com/trending?l=Perl"},PHP:{color:"#4F5D95",url:"https://github.com/trending?l=PHP"},PicoLisp:{color:"#6067af",url:"https://github.com/trending?l=PicoLisp"},PigLatin:{color:"#fcd7de",url:"https://github.com/trending?l=PigLatin"},Pike:{color:"#005390",url:"https://github.com/trending?l=Pike"},PlantUML:{color:"#fbbd16",url:"https://github.com/trending?l=PlantUML"},PLpgSQL:{color:"#336790",url:"https://github.com/trending?l=PLpgSQL"},PLSQL:{color:"#dad8d8",url:"https://github.com/trending?l=PLSQL"},PogoScript:{color:"#d80074",url:"https://github.com/trending?l=PogoScript"},Polar:{color:"#ae81ff",url:"https://github.com/trending?l=Polar"},Pony:{color:null,url:"https://github.com/trending?l=Pony"},Portugol:{color:"#f8bd00",url:"https://github.com/trending?l=Portugol"},PostCSS:{color:"#dc3a0c",url:"https://github.com/trending?l=PostCSS"},PostScript:{color:"#da291c",url:"https://github.com/trending?l=PostScript"},"POV-Ray SDL":{color:"#6bac65",url:"https://github.com/trending?l=POV-Ray-SDL"},PowerBuilder:{color:"#8f0f8d",url:"https://github.com/trending?l=PowerBuilder"},PowerShell:{color:"#012456",url:"https://github.com/trending?l=PowerShell"},Prisma:{color:"#0c344b",url:"https://github.com/trending?l=Prisma"},Processing:{color:"#0096D8",url:"https://github.com/trending?l=Processing"},Procfile:{color:"#3B2F63",url:"https://github.com/trending?l=Procfile"},Prolog:{color:"#74283c",url:"https://github.com/trending?l=Prolog"},Promela:{color:"#de0000",url:"https://github.com/trending?l=Promela"},"Propeller Spin":{color:"#7fa2a7",url:"https://github.com/trending?l=Propeller-Spin"},Pug:{color:"#a86454",url:"https://github.com/trending?l=Pug"},Puppet:{color:"#302B6D",url:"https://github.com/trending?l=Puppet"},PureBasic:{color:"#5a6986",url:"https://github.com/trending?l=PureBasic"},PureScript:{color:"#1D222D",url:"https://github.com/trending?l=PureScript"},Pyret:{color:"#ee1e10",url:"https://github.com/trending?l=Pyret"},Python:{color:"#3572A5",url:"https://github.com/trending?l=Python"},"Python console":{color:"#3572A5",url:"https://github.com/trending?l=Python-console"},"Python traceback":{color:"#3572A5",url:"https://github.com/trending?l=Python-traceback"},q:{color:"#0040cd",url:"https://github.com/trending?l=q"},"Q#":{color:"#fed659",url:"https://github.com/trending?l=Qsharp"},QMake:{color:null,url:"https://github.com/trending?l=QMake"},QML:{color:"#44a51c",url:"https://github.com/trending?l=QML"},"Qt Script":{color:"#00b841",url:"https://github.com/trending?l=Qt-Script"},Quake:{color:"#882233",url:"https://github.com/trending?l=Quake"},R:{color:"#198CE7",url:"https://github.com/trending?l=R"},Racket:{color:"#3c5caa",url:"https://github.com/trending?l=Racket"},Ragel:{color:"#9d5200",url:"https://github.com/trending?l=Ragel"},Raku:{color:"#0000fb",url:"https://github.com/trending?l=Raku"},RAML:{color:"#77d9fb",url:"https://github.com/trending?l=RAML"},Rascal:{color:"#fffaa0",url:"https://github.com/trending?l=Rascal"},RDoc:{color:"#701516",url:"https://github.com/trending?l=RDoc"},REALbasic:{color:null,url:"https://github.com/trending?l=REALbasic"},Reason:{color:"#ff5847",url:"https://github.com/trending?l=Reason"},ReasonLIGO:{color:"#ff5847",url:"https://github.com/trending?l=ReasonLIGO"},Rebol:{color:"#358a5b",url:"https://github.com/trending?l=Rebol"},"Record Jar":{color:"#0673ba",url:"https://github.com/trending?l=Record-Jar"},Red:{color:"#f50000",url:"https://github.com/trending?l=Red"},Redcode:{color:null,url:"https://github.com/trending?l=Redcode"},"Regular Expression":{color:"#009a00",url:"https://github.com/trending?l=Regular-Expression"},"Ren'Py":{color:"#ff7f7f",url:"https://github.com/trending?l=Ren'Py"},RenderScript:{color:null,url:"https://github.com/trending?l=RenderScript"},ReScript:{color:"#ed5051",url:"https://github.com/trending?l=ReScript"},reStructuredText:{color:"#141414",url:"https://github.com/trending?l=reStructuredText"},REXX:{color:"#d90e09",url:"https://github.com/trending?l=REXX"},Ring:{color:"#2D54CB",url:"https://github.com/trending?l=Ring"},Riot:{color:"#A71E49",url:"https://github.com/trending?l=Riot"},RMarkdown:{color:"#198ce7",url:"https://github.com/trending?l=RMarkdown"},RobotFramework:{color:"#00c0b5",url:"https://github.com/trending?l=RobotFramework"},Roff:{color:"#ecdebe",url:"https://github.com/trending?l=Roff"},"Roff Manpage":{color:"#ecdebe",url:"https://github.com/trending?l=Roff-Manpage"},Rouge:{color:"#cc0088",url:"https://github.com/trending?l=Rouge"},"RouterOS Script":{color:"#DE3941",url:"https://github.com/trending?l=RouterOS-Script"},RPC:{color:null,url:"https://github.com/trending?l=RPC"},RPGLE:{color:"#2BDE21",url:"https://github.com/trending?l=RPGLE"},Ruby:{color:"#701516",url:"https://github.com/trending?l=Ruby"},RUNOFF:{color:"#665a4e",url:"https://github.com/trending?l=RUNOFF"},Rust:{color:"#dea584",url:"https://github.com/trending?l=Rust"},Sage:{color:null,url:"https://github.com/trending?l=Sage"},SaltStack:{color:"#646464",url:"https://github.com/trending?l=SaltStack"},SAS:{color:"#B34936",url:"https://github.com/trending?l=SAS"},Sass:{color:"#a53b70",url:"https://github.com/trending?l=Sass"},Scala:{color:"#c22d40",url:"https://github.com/trending?l=Scala"},Scaml:{color:"#bd181a",url:"https://github.com/trending?l=Scaml"},Scenic:{color:"#fdc700",url:"https://github.com/trending?l=Scenic"},Scheme:{color:"#1e4aec",url:"https://github.com/trending?l=Scheme"},Scilab:{color:"#ca0f21",url:"https://github.com/trending?l=Scilab"},SCSS:{color:"#c6538c",url:"https://github.com/trending?l=SCSS"},sed:{color:"#64b970",url:"https://github.com/trending?l=sed"},Self:{color:"#0579aa",url:"https://github.com/trending?l=Self"},ShaderLab:{color:"#222c37",url:"https://github.com/trending?l=ShaderLab"},Shell:{color:"#89e051",url:"https://github.com/trending?l=Shell"},"ShellCheck Config":{color:"#cecfcb",url:"https://github.com/trending?l=ShellCheck-Config"},ShellSession:{color:null,url:"https://github.com/trending?l=ShellSession"},Shen:{color:"#120F14",url:"https://github.com/trending?l=Shen"},Sieve:{color:null,url:"https://github.com/trending?l=Sieve"},"Simple File Verification":{color:"#C9BFED",url:"https://github.com/trending?l=Simple-File-Verification"},Singularity:{color:"#64E6AD",url:"https://github.com/trending?l=Singularity"},Slash:{color:"#007eff",url:"https://github.com/trending?l=Slash"},Slice:{color:"#003fa2",url:"https://github.com/trending?l=Slice"},Slim:{color:"#2b2b2b",url:"https://github.com/trending?l=Slim"},Smali:{color:null,url:"https://github.com/trending?l=Smali"},Smalltalk:{color:"#596706",url:"https://github.com/trending?l=Smalltalk"},Smarty:{color:"#f0c040",url:"https://github.com/trending?l=Smarty"},Smithy:{color:"#c44536",url:"https://github.com/trending?l=Smithy"},SmPL:{color:"#c94949",url:"https://github.com/trending?l=SmPL"},SMT:{color:null,url:"https://github.com/trending?l=SMT"},Snakemake:{color:"#419179",url:"https://github.com/trending?l=Snakemake"},Solidity:{color:"#AA6746",url:"https://github.com/trending?l=Solidity"},SourcePawn:{color:"#f69e1d",url:"https://github.com/trending?l=SourcePawn"},SPARQL:{color:"#0C4597",url:"https://github.com/trending?l=SPARQL"},SQF:{color:"#3F3F3F",url:"https://github.com/trending?l=SQF"},SQL:{color:"#e38c00",url:"https://github.com/trending?l=SQL"},SQLPL:{color:"#e38c00",url:"https://github.com/trending?l=SQLPL"},Squirrel:{color:"#800000",url:"https://github.com/trending?l=Squirrel"},"SRecode Template":{color:"#348a34",url:"https://github.com/trending?l=SRecode-Template"},Stan:{color:"#b2011d",url:"https://github.com/trending?l=Stan"},"Standard ML":{color:"#dc566d",url:"https://github.com/trending?l=Standard-ML"},Starlark:{color:"#76d275",url:"https://github.com/trending?l=Starlark"},Stata:{color:"#1a5f91",url:"https://github.com/trending?l=Stata"},STL:{color:"#373b5e",url:"https://github.com/trending?l=STL"},StringTemplate:{color:"#3fb34f",url:"https://github.com/trending?l=StringTemplate"},Stylus:{color:"#ff6347",url:"https://github.com/trending?l=Stylus"},"SubRip Text":{color:"#9e0101",url:"https://github.com/trending?l=SubRip-Text"},SugarSS:{color:"#2fcc9f",url:"https://github.com/trending?l=SugarSS"},SuperCollider:{color:"#46390b",url:"https://github.com/trending?l=SuperCollider"},Svelte:{color:"#ff3e00",url:"https://github.com/trending?l=Svelte"},SVG:{color:"#ff9900",url:"https://github.com/trending?l=SVG"},Sway:{color:"#dea584",url:"https://github.com/trending?l=Sway"},Swift:{color:"#F05138",url:"https://github.com/trending?l=Swift"},SWIG:{color:null,url:"https://github.com/trending?l=SWIG"},SystemVerilog:{color:"#DAE1C2",url:"https://github.com/trending?l=SystemVerilog"},Talon:{color:"#333333",url:"https://github.com/trending?l=Talon"},Tcl:{color:"#e4cc98",url:"https://github.com/trending?l=Tcl"},Tcsh:{color:null,url:"https://github.com/trending?l=Tcsh"},Terra:{color:"#00004c",url:"https://github.com/trending?l=Terra"},TeX:{color:"#3D6117",url:"https://github.com/trending?l=TeX"},Textile:{color:"#ffe7ac",url:"https://github.com/trending?l=Textile"},"TextMate Properties":{color:"#df66e4",url:"https://github.com/trending?l=TextMate-Properties"},Thrift:{color:"#D12127",url:"https://github.com/trending?l=Thrift"},"TI Program":{color:"#A0AA87",url:"https://github.com/trending?l=TI-Program"},TLA:{color:"#4b0079",url:"https://github.com/trending?l=TLA"},TOML:{color:"#9c4221",url:"https://github.com/trending?l=TOML"},TSQL:{color:"#e38c00",url:"https://github.com/trending?l=TSQL"},TSV:{color:"#237346",url:"https://github.com/trending?l=TSV"},TSX:{color:"#3178c6",url:"https://github.com/trending?l=TSX"},Turing:{color:"#cf142b",url:"https://github.com/trending?l=Turing"},Twig:{color:"#c1d026",url:"https://github.com/trending?l=Twig"},TXL:{color:"#0178b8",url:"https://github.com/trending?l=TXL"},TypeScript:{color:"#3178c6",url:"https://github.com/trending?l=TypeScript"},"Unified Parallel C":{color:"#4e3617",url:"https://github.com/trending?l=Unified-Parallel-C"},"Unity3D Asset":{color:"#222c37",url:"https://github.com/trending?l=Unity3D-Asset"},"Unix Assembly":{color:null,url:"https://github.com/trending?l=Unix-Assembly"},Uno:{color:"#9933cc",url:"https://github.com/trending?l=Uno"},UnrealScript:{color:"#a54c4d",url:"https://github.com/trending?l=UnrealScript"},UrWeb:{color:"#ccccee",url:"https://github.com/trending?l=UrWeb"},V:{color:"#4f87c4",url:"https://github.com/trending?l=V"},Vala:{color:"#a56de2",url:"https://github.com/trending?l=Vala"},"Valve Data Format":{color:"#f26025",url:"https://github.com/trending?l=Valve-Data-Format"},VBA:{color:"#867db1",url:"https://github.com/trending?l=VBA"},VBScript:{color:"#15dcdc",url:"https://github.com/trending?l=VBScript"},VCL:{color:"#148AA8",url:"https://github.com/trending?l=VCL"},"Velocity Template Language":{color:"#507cff",url:"https://github.com/trending?l=Velocity-Template-Language"},Verilog:{color:"#b2b7f8",url:"https://github.com/trending?l=Verilog"},VHDL:{color:"#adb2cb",url:"https://github.com/trending?l=VHDL"},"Vim Help File":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Help-File"},"Vim Script":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Script"},"Vim Snippet":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Snippet"},"Visual Basic .NET":{color:"#945db7",url:"https://github.com/trending?l=Visual-Basic-.NET"},"Visual Basic 6.0":{color:"#2c6353",url:"https://github.com/trending?l=Visual-Basic-6.0"},Volt:{color:"#1F1F1F",url:"https://github.com/trending?l=Volt"},Vue:{color:"#41b883",url:"https://github.com/trending?l=Vue"},Vyper:{color:"#2980b9",url:"https://github.com/trending?l=Vyper"},wdl:{color:"#42f1f4",url:"https://github.com/trending?l=wdl"},"Web Ontology Language":{color:"#5b70bd",url:"https://github.com/trending?l=Web-Ontology-Language"},WebAssembly:{color:"#04133b",url:"https://github.com/trending?l=WebAssembly"},WebIDL:{color:null,url:"https://github.com/trending?l=WebIDL"},Whiley:{color:"#d5c397",url:"https://github.com/trending?l=Whiley"},Wikitext:{color:"#fc5757",url:"https://github.com/trending?l=Wikitext"},"Windows Registry Entries":{color:"#52d5ff",url:"https://github.com/trending?l=Windows-Registry-Entries"},wisp:{color:"#7582D1",url:"https://github.com/trending?l=wisp"},"Witcher Script":{color:"#ff0000",url:"https://github.com/trending?l=Witcher-Script"},Wollok:{color:"#a23738",url:"https://github.com/trending?l=Wollok"},"World of Warcraft Addon Data":{color:"#f7e43f",url:"https://github.com/trending?l=World-of-Warcraft-Addon-Data"},Wren:{color:"#383838",url:"https://github.com/trending?l=Wren"},X10:{color:"#4B6BEF",url:"https://github.com/trending?l=X10"},xBase:{color:"#403a40",url:"https://github.com/trending?l=xBase"},XC:{color:"#99DA07",url:"https://github.com/trending?l=XC"},XML:{color:"#0060ac",url:"https://github.com/trending?l=XML"},"XML Property List":{color:"#0060ac",url:"https://github.com/trending?l=XML-Property-List"},Xojo:{color:"#81bd41",url:"https://github.com/trending?l=Xojo"},Xonsh:{color:"#285EEF",url:"https://github.com/trending?l=Xonsh"},XProc:{color:null,url:"https://github.com/trending?l=XProc"},XQuery:{color:"#5232e7",url:"https://github.com/trending?l=XQuery"},XS:{color:null,url:"https://github.com/trending?l=XS"},XSLT:{color:"#EB8CEB",url:"https://github.com/trending?l=XSLT"},Xtend:{color:"#24255d",url:"https://github.com/trending?l=Xtend"},Yacc:{color:"#4B6C4B",url:"https://github.com/trending?l=Yacc"},YAML:{color:"#cb171e",url:"https://github.com/trending?l=YAML"},YARA:{color:"#220000",url:"https://github.com/trending?l=YARA"},YASnippet:{color:"#32AB90",url:"https://github.com/trending?l=YASnippet"},Yul:{color:"#794932",url:"https://github.com/trending?l=Yul"},ZAP:{color:"#0d665e",url:"https://github.com/trending?l=ZAP"},Zeek:{color:null,url:"https://github.com/trending?l=Zeek"},ZenScript:{color:"#00BCD1",url:"https://github.com/trending?l=ZenScript"},Zephir:{color:"#118f9e",url:"https://github.com/trending?l=Zephir"},Zig:{color:"#ec915c",url:"https://github.com/trending?l=Zig"},ZIL:{color:"#dc75e5",url:"https://github.com/trending?l=ZIL"},Zimpl:{color:"#d67711",url:"https://github.com/trending?l=Zimpl"}};var V3=Xt(Z3()),W3=new Map;for(let[i,{color:s}]of Object.entries(F3))W3.set(i.toLowerCase(),{color:s!=null?s:null,lang:i});function X3(i){let s=V3.default.languages(i.toLowerCase()),a=[];if(!s)return null;let u=null;for(let n of s){let p=W3.get(n);if(p){u=p,a.push(u.lang);break}}return u?u.color:null}var al=class{constructor(s,a,u,n){this.scale=(n-u)/(a-s),this.offset=s*this.scale-u,this.target_max=n,this.target_min=u}translate(s){return s*this.scale-this.offset}inverseTranslate(s){return this.target_max-this.translate(s)+this.target_min}};var J3=Xt(pr());var Kr=Xt(Ce()),sl=3,Fn=class{constructor(s,a){this.color=s;this.weight=a}add(s){this.weight+=s}};function Y3({metricCache:i}){let[s,a]=(0,J3.useState)(!0),u=Array.from(i.legend).sort(([,n],[,p])=>n.weight<p.weight?1:n.weight>p.weight?-1:0);return u.length===0?null:u.length<=sl+1?(0,Kr.jsx)(Vd,{show:!0,items:u}):(0,Kr.jsxs)(Kr.Fragment,{children:[(0,Kr.jsx)(Vd,{show:!0,items:u.slice(0,sl)}),(0,Kr.jsx)(Vd,{show:!s,items:u.slice(sl)}),(0,Kr.jsx)(EI,{show:s,items:u.slice(sl),toggle:()=>a(!s)}),(0,Kr.jsx)(vh,{className:"absolute bottom-2 right-2",open:!s,onClick:()=>a(!s)})]})}function Vd(i){let{metricType:s}=Mi(),a=s==="TOP_CONTRIBUTOR"||s==="SINGLE_AUTHOR";return i.show?(0,Kr.jsx)(Kr.Fragment,{children:i.items.map(u=>{let[n,p]=u;return(0,Kr.jsx)("div",{children:(0,Kr.jsxs)("div",{className:"relative flex items-center gap-2 text-sm leading-none",children:[a?(0,Kr.jsx)(en,{dotColor:p.color,authorColorToChange:n}):(0,Kr.jsx)(en,{dotColor:p.color}),(0,Kr.jsx)("span",{className:"font-bold",children:n})]})},n)})}):null}function EI(i){return i.show?(0,Kr.jsx)("button",{className:"w-fit hover:opacity-70",onClick:i.toggle,children:(0,Kr.jsxs)("div",{className:"relative flex items-center gap-2 text-sm leading-none",children:[i.items.slice(0,14).map(([s,a],u)=>{let n=u===0?0:-16;return(0,Kr.jsx)(en,{dotColor:a.color,style:{marginLeft:n}},`dot${s}`)}),(0,Kr.jsxs)("span",{className:"font-bold",children:[i.items.length," more"]})]})}):null}var Oi="#808080";function Q3(i,s){var p;let a=i.name.substring(i.name.lastIndexOf(".")+1),u=X3(a),n=s.legend;u?(n.has(a)?(p=n.get(a))==null||p.add(1):n.set(a,new Fn(u,1)),s.colormap.set(i.path,u)):(n.has("Other")||n.set("Other",new Fn(Oi,0)),s.colormap.set(i.path,Oi))}function ty(i,s,a,u,n){var g;let p="#e0e0e0",m=oi(i.path),y=u.get(m),M=s.legend;switch(n.get(m)){case void 0:case 0:M.set("No authors",new Fn(Oi,0)),s.colormap.set(i.path,Oi);return;case 1:{let S=(g=a.get(y!=null?y:""))!=null?g:Oi;M.set(y!=null?y:"",new Fn(S,2)),s.colormap.set(i.path,S)}return;default:M.set("Multiple authors",new Fn(p,1)),s.colormap.set(i.path,p)}}var hl=class{constructor(s,a){this.min_lightness=50;this.max_lightness=95;this.translater=new al(s,a,this.min_lightness,this.max_lightness)}getColor(s){return Xu(20,100,this.translater.inverseTranslate(s))}setColor(s,a,u){let n=u.get(oi(s.path)),p=n?this.getColor(n):Oi;a.colormap.set(s.path,p)}};function ey(i){return[{epoch:0,text:lf(i*1e3),color:"#cff2ff"},{epoch:86400,text:"+1d",color:"#c6dbef"},{epoch:604800,text:"+1w",color:"#9ecae1"},{epoch:2629743,text:"+1m",color:"#6baed6"},{epoch:31556926,text:"+1y",color:"#4292c6"},{epoch:31556926*2,text:"+2y",color:"#2171b5"},{epoch:31556926*4,text:"+4y",color:"#084594"}]}function fl(i,s,a){let u=s-a,n=0;for(;n<i.length-1;){if(u<i[n+1].epoch)return n;n++}return n}function ry(i,s,a,u){var M,b;let n=oi(s.path),p=u.get(n);if(!p)return;let m=a.legend,y=(M=i.get(p))!=null?M:Oi;if(a.colormap.set(s.path,y),m.has(p)){(b=m.get(p))==null||b.add(1);return}m.set(p,new Fn(y,1))}var ul=class{constructor(s){this.min_lightness=50;this.max_lighness=90;this.step=s<=1?1:this.step=(this.max_lighness-this.min_lightness)/Math.floor(Math.log2(s))}getColor(s){let a=Math.floor(Math.log2(s)),u=this.min_lightness+a*this.step;return Xu(0,75,u)}setColor(s,a,u){let n=u.get(oi(s.path)),p=n?this.getColor(n):Oi;a.colormap.set(s.path,p)}};var Hk=Xt(iy());var ly,cy,gh=typeof Reflect=="object"?Reflect:null,ny=gh&&typeof gh.apply=="function"?gh.apply:function(i,s,a){return Function.prototype.apply.call(i,s,a)};cy=gh&&typeof gh.ownKeys=="function"?gh.ownKeys:Object.getOwnPropertySymbols?function(i){return Object.getOwnPropertyNames(i).concat(Object.getOwnPropertySymbols(i))}:function(i){return Object.getOwnPropertyNames(i)};var oy=Number.isNaN||function(i){return i!=i};function _r(){_r.init.call(this)}ly=_r,_r.EventEmitter=_r,_r.prototype._events=void 0,_r.prototype._eventsCount=0,_r.prototype._maxListeners=void 0;var ay=10;function ll(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}function dy(i){return i._maxListeners===void 0?_r.defaultMaxListeners:i._maxListeners}function sy(i,s,a,u){var n,p,m,y;if(ll(a),(p=i._events)===void 0?(p=i._events=Object.create(null),i._eventsCount=0):(p.newListener!==void 0&&(i.emit("newListener",s,a.listener?a.listener:a),p=i._events),m=p[s]),m===void 0)m=p[s]=a,++i._eventsCount;else if(typeof m=="function"?m=p[s]=u?[a,m]:[m,a]:u?m.unshift(a):m.push(a),(n=dy(i))>0&&m.length>n&&!m.warned){m.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+m.length+" "+String(s)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=i,M.type=s,M.count=m.length,y=M,console&&console.warn&&console.warn(y)}return i}function AI(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function hy(i,s,a){var u={fired:!1,wrapFn:void 0,target:i,type:s,listener:a},n=AI.bind(u);return n.listener=a,u.wrapFn=n,n}function fy(i,s,a){var u=i._events;if(u===void 0)return[];var n=u[s];return n===void 0?[]:typeof n=="function"?a?[n.listener||n]:[n]:a?function(p){for(var m=new Array(p.length),y=0;y<m.length;++y)m[y]=p[y].listener||p[y];return m}(n):py(n,n.length)}function uy(i){var s=this._events;if(s!==void 0){var a=s[i];if(typeof a=="function")return 1;if(a!==void 0)return a.length}return 0}function py(i,s){for(var a=new Array(s),u=0;u<s;++u)a[u]=i[u];return a}Object.defineProperty(_r,"defaultMaxListeners",{enumerable:!0,get:function(){return ay},set:function(i){if(typeof i!="number"||i<0||oy(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");ay=i}}),_r.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},_r.prototype.setMaxListeners=function(i){if(typeof i!="number"||i<0||oy(i))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+i+".");return this._maxListeners=i,this},_r.prototype.getMaxListeners=function(){return dy(this)},_r.prototype.emit=function(i){for(var s=[],a=1;a<arguments.length;a++)s.push(arguments[a]);var u=i==="error",n=this._events;if(n!==void 0)u=u&&n.error===void 0;else if(!u)return!1;if(u){var p;if(s.length>0&&(p=s[0]),p instanceof Error)throw p;var m=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw m.context=p,m}var y=n[i];if(y===void 0)return!1;if(typeof y=="function")ny(y,this,s);else{var M=y.length,b=py(y,M);for(a=0;a<M;++a)ny(b[a],this,s)}return!0},_r.prototype.addListener=function(i,s){return sy(this,i,s,!1)},_r.prototype.on=_r.prototype.addListener,_r.prototype.prependListener=function(i,s){return sy(this,i,s,!0)},_r.prototype.once=function(i,s){return ll(s),this.on(i,hy(this,i,s)),this},_r.prototype.prependOnceListener=function(i,s){return ll(s),this.prependListener(i,hy(this,i,s)),this},_r.prototype.removeListener=function(i,s){var a,u,n,p,m;if(ll(s),(u=this._events)===void 0)return this;if((a=u[i])===void 0)return this;if(a===s||a.listener===s)--this._eventsCount==0?this._events=Object.create(null):(delete u[i],u.removeListener&&this.emit("removeListener",i,a.listener||s));else if(typeof a!="function"){for(n=-1,p=a.length-1;p>=0;p--)if(a[p]===s||a[p].listener===s){m=a[p].listener,n=p;break}if(n<0)return this;n===0?a.shift():function(y,M){for(;M+1<y.length;M++)y[M]=y[M+1];y.pop()}(a,n),a.length===1&&(u[i]=a[0]),u.removeListener!==void 0&&this.emit("removeListener",i,m||s)}return this},_r.prototype.off=_r.prototype.removeListener,_r.prototype.removeAllListeners=function(i){var s,a,u;if((a=this._events)===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[i]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete a[i]),this;if(arguments.length===0){var n,p=Object.keys(a);for(u=0;u<p.length;++u)(n=p[u])!=="removeListener"&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(s=a[i])=="function")this.removeListener(i,s);else if(s!==void 0)for(u=s.length-1;u>=0;u--)this.removeListener(i,s[u]);return this},_r.prototype.listeners=function(i){return fy(this,i,!0)},_r.prototype.rawListeners=function(i){return fy(this,i,!1)},_r.listenerCount=function(i,s){return typeof i.listenerCount=="function"?i.listenerCount(s):uy.call(i,s)},_r.prototype.listenerCount=uy,_r.prototype.eventNames=function(){return this._eventsCount>0?cy(this._events):[]};var Xr=ly;Xr.EventEmitter;Xr.defaultMaxListeners;Xr.init;Xr.listenerCount;Xr.EventEmitter;Xr.defaultMaxListeners;Xr.init;Xr.listenerCount;var vy,Fo,jo,yh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,Gr=vy={};function Jd(){throw new Error("setTimeout has not been defined")}function Yd(){throw new Error("clearTimeout has not been defined")}function gy(i){if(Fo===setTimeout)return setTimeout(i,0);if((Fo===Jd||!Fo)&&setTimeout)return Fo=setTimeout,setTimeout(i,0);try{return Fo(i,0)}catch{try{return Fo.call(null,i,0)}catch{return Fo.call(this||yh,i,0)}}}(function(){try{Fo=typeof setTimeout=="function"?setTimeout:Jd}catch{Fo=Jd}try{jo=typeof clearTimeout=="function"?clearTimeout:Yd}catch{jo=Yd}})();var rs,Ho=[],bh=!1,cl=-1;function kI(){bh&&rs&&(bh=!1,rs.length?Ho=rs.concat(Ho):cl=-1,Ho.length&&by())}function by(){if(!bh){var i=gy(kI);bh=!0;for(var s=Ho.length;s;){for(rs=Ho,Ho=[];++cl<s;)rs&&rs[cl].run();cl=-1,s=Ho.length}rs=null,bh=!1,function(a){if(jo===clearTimeout)return clearTimeout(a);if((jo===Yd||!jo)&&clearTimeout)return jo=clearTimeout,clearTimeout(a);try{jo(a)}catch{try{return jo.call(null,a)}catch{return jo.call(this||yh,a)}}}(i)}}function my(i,s){(this||yh).fun=i,(this||yh).array=s}function Uo(){}Gr.nextTick=function(i){var s=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)s[a-1]=arguments[a];Ho.push(new my(i,s)),Ho.length!==1||bh||gy(by)},my.prototype.run=function(){(this||yh).fun.apply(null,(this||yh).array)},Gr.title="browser",Gr.browser=!0,Gr.env={},Gr.argv=[],Gr.version="",Gr.versions={},Gr.on=Uo,Gr.addListener=Uo,Gr.once=Uo,Gr.off=Uo,Gr.removeListener=Uo,Gr.removeAllListeners=Uo,Gr.emit=Uo,Gr.prependListener=Uo,Gr.prependOnceListener=Uo,Gr.listeners=function(i){return[]},Gr.binding=function(i){throw new Error("process.binding is not supported")},Gr.cwd=function(){return"/"},Gr.chdir=function(i){throw new Error("process.chdir is not supported")},Gr.umask=function(){return 0};var Le=vy;Le.addListener;Le.argv;Le.binding;Le.browser;Le.chdir;Le.cwd;Le.emit;Le.env;Le.listeners;Le.nextTick;Le.off;Le.on;Le.once;Le.prependListener;Le.prependOnceListener;Le.removeAllListeners;Le.removeListener;Le.title;Le.umask;Le.version;Le.versions;var RI=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",i1=Object.prototype.toString,El=function(i){return!(RI&&i&&typeof i=="object"&&Symbol.toStringTag in i)&&i1.call(i)==="[object Arguments]"},Ty=function(i){return!!El(i)||i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&i1.call(i)!=="[object Array]"&&i1.call(i.callee)==="[object Function]"},BI=function(){return El(arguments)}();El.isLegacyArguments=Ty;var TI=BI?El:Ty,$I=Object.prototype.toString,II=Function.prototype.toString,CI=/^\s*(?:function)?\*/,$y=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Iy=Object.getPrototypeOf,yy=function(){if(!$y)return!1;try{return Function("return function*() {}")()}catch{}}(),PI=yy?Iy(yy):{},DI=function(i){return typeof i=="function"&&(!!CI.test(II.call(i))||($y?Iy(i)===PI:$I.call(i)==="[object GeneratorFunction]"))},qe=typeof Object.create=="function"?function(i,s){s&&(i.super_=s,i.prototype=Object.create(s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}))}:function(i,s){if(s){i.super_=s;var a=function(){};a.prototype=s.prototype,i.prototype=new a,i.prototype.constructor=i}},Cy=function(i){return i&&typeof i=="object"&&typeof i.copy=="function"&&typeof i.fill=="function"&&typeof i.readUInt8=="function"},tr={},LI=Cy,OI=TI,NI=DI;function os(i){return i.call.bind(i)}var Py=typeof BigInt<"u",n1=typeof Symbol<"u",rn=n1&&Symbol.toStringTag!==void 0,ji=typeof Uint8Array<"u",qI=typeof ArrayBuffer<"u";if(ji&&rn)var zI=Object.getPrototypeOf(Uint8Array.prototype),mn=os(Object.getOwnPropertyDescriptor(zI,Symbol.toStringTag).get);var Dr=os(Object.prototype.toString),UI=os(Number.prototype.valueOf),FI=os(String.prototype.valueOf),jI=os(Boolean.prototype.valueOf);if(Py)var HI=os(BigInt.prototype.valueOf);if(n1)var KI=os(Symbol.prototype.valueOf);function vf(i,s){if(typeof i!="object")return!1;try{return s(i),!0}catch{return!1}}function wy(i){return ji&&rn?mn(i)!==void 0:Dy(i)||Ly(i)||Oy(i)||Ny(i)||qy(i)||zy(i)||Uy(i)||Fy(i)||jy(i)||Hy(i)||Ky(i)}function Dy(i){return ji&&rn?mn(i)==="Uint8Array":Dr(i)==="[object Uint8Array]"||LI(i)&&i.buffer!==void 0}function Ly(i){return ji&&rn?mn(i)==="Uint8ClampedArray":Dr(i)==="[object Uint8ClampedArray]"}function Oy(i){return ji&&rn?mn(i)==="Uint16Array":Dr(i)==="[object Uint16Array]"}function Ny(i){return ji&&rn?mn(i)==="Uint32Array":Dr(i)==="[object Uint32Array]"}function qy(i){return ji&&rn?mn(i)==="Int8Array":Dr(i)==="[object Int8Array]"}function zy(i){return ji&&rn?mn(i)==="Int16Array":Dr(i)==="[object Int16Array]"}function Uy(i){return ji&&rn?mn(i)==="Int32Array":Dr(i)==="[object Int32Array]"}function Fy(i){return ji&&rn?mn(i)==="Float32Array":Dr(i)==="[object Float32Array]"}function jy(i){return ji&&rn?mn(i)==="Float64Array":Dr(i)==="[object Float64Array]"}function Hy(i){return ji&&rn?mn(i)==="BigInt64Array":Dr(i)==="[object BigInt64Array]"}function Ky(i){return ji&&rn?mn(i)==="BigUint64Array":Dr(i)==="[object BigUint64Array]"}function dl(i){return Dr(i)==="[object Map]"}function pl(i){return Dr(i)==="[object Set]"}function ml(i){return Dr(i)==="[object WeakMap]"}function Qd(i){return Dr(i)==="[object WeakSet]"}function yl(i){return Dr(i)==="[object ArrayBuffer]"}function My(i){return typeof ArrayBuffer<"u"&&(yl.working?yl(i):i instanceof ArrayBuffer)}function wl(i){return Dr(i)==="[object DataView]"}function _y(i){return typeof DataView<"u"&&(wl.working?wl(i):i instanceof DataView)}function Ml(i){return Dr(i)==="[object SharedArrayBuffer]"}function Sy(i){return typeof SharedArrayBuffer<"u"&&(Ml.working?Ml(i):i instanceof SharedArrayBuffer)}function xy(i){return vf(i,UI)}function Ey(i){return vf(i,FI)}function Ay(i){return vf(i,jI)}function ky(i){return Py&&vf(i,HI)}function Ry(i){return n1&&vf(i,KI)}tr.isArgumentsObject=OI,tr.isGeneratorFunction=NI,tr.isPromise=function(i){return typeof Promise<"u"&&i instanceof Promise||i!==null&&typeof i=="object"&&typeof i.then=="function"&&typeof i.catch=="function"},tr.isArrayBufferView=function(i){return qI&&ArrayBuffer.isView?ArrayBuffer.isView(i):wy(i)||_y(i)},tr.isTypedArray=wy,tr.isUint8Array=Dy,tr.isUint8ClampedArray=Ly,tr.isUint16Array=Oy,tr.isUint32Array=Ny,tr.isInt8Array=qy,tr.isInt16Array=zy,tr.isInt32Array=Uy,tr.isFloat32Array=Fy,tr.isFloat64Array=jy,tr.isBigInt64Array=Hy,tr.isBigUint64Array=Ky,dl.working=typeof Map<"u"&&dl(new Map),tr.isMap=function(i){return typeof Map<"u"&&(dl.working?dl(i):i instanceof Map)},pl.working=typeof Set<"u"&&pl(new Set),tr.isSet=function(i){return typeof Set<"u"&&(pl.working?pl(i):i instanceof Set)},ml.working=typeof WeakMap<"u"&&ml(new WeakMap),tr.isWeakMap=function(i){return typeof WeakMap<"u"&&(ml.working?ml(i):i instanceof WeakMap)},Qd.working=typeof WeakSet<"u"&&Qd(new WeakSet),tr.isWeakSet=function(i){return Qd(i)},yl.working=typeof ArrayBuffer<"u"&&yl(new ArrayBuffer),tr.isArrayBuffer=My,wl.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&wl(new DataView(new ArrayBuffer(1),0,1)),tr.isDataView=_y,Ml.working=typeof SharedArrayBuffer<"u"&&Ml(new SharedArrayBuffer),tr.isSharedArrayBuffer=Sy,tr.isAsyncFunction=function(i){return Dr(i)==="[object AsyncFunction]"},tr.isMapIterator=function(i){return Dr(i)==="[object Map Iterator]"},tr.isSetIterator=function(i){return Dr(i)==="[object Set Iterator]"},tr.isGeneratorObject=function(i){return Dr(i)==="[object Generator]"},tr.isWebAssemblyCompiledModule=function(i){return Dr(i)==="[object WebAssembly.Module]"},tr.isNumberObject=xy,tr.isStringObject=Ey,tr.isBooleanObject=Ay,tr.isBigIntObject=ky,tr.isSymbolObject=Ry,tr.isBoxedPrimitive=function(i){return xy(i)||Ey(i)||Ay(i)||ky(i)||Ry(i)},tr.isAnyArrayBuffer=function(i){return ji&&(My(i)||Sy(i))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(i){Object.defineProperty(tr,i,{enumerable:!1,value:function(){throw new Error(i+" is not supported in userland")}})});var df=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,oe={},mo=Le,By=Object.getOwnPropertyDescriptors||function(i){for(var s=Object.keys(i),a={},u=0;u<s.length;u++)a[s[u]]=Object.getOwnPropertyDescriptor(i,s[u]);return a},GI=/%[sdj%]/g;oe.format=function(i){if(!Sl(i)){for(var s=[],a=0;a<arguments.length;a++)s.push(da(arguments[a]));return s.join(" ")}a=1;for(var u=arguments,n=u.length,p=String(i).replace(GI,function(y){if(y==="%%")return"%";if(a>=n)return y;switch(y){case"%s":return String(u[a++]);case"%d":return Number(u[a++]);case"%j":try{return JSON.stringify(u[a++])}catch{return"[Circular]"}default:return y}}),m=u[a];a<n;m=u[++a])Al(m)||!wh(m)?p+=" "+m:p+=" "+da(m);return p},oe.deprecate=function(i,s){if(mo!==void 0&&mo.noDeprecation===!0)return i;if(mo===void 0)return function(){return oe.deprecate(i,s).apply(this||df,arguments)};var a=!1;return function(){if(!a){if(mo.throwDeprecation)throw new Error(s);mo.traceDeprecation?console.trace(s):console.error(s),a=!0}return i.apply(this||df,arguments)}};var vl={},Gy=/^$/;mo.env.NODE_DEBUG&&(gl=mo.env.NODE_DEBUG,gl=gl.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Gy=new RegExp("^"+gl+"$","i"));var gl;function da(i,s){var a={seen:[],stylize:VI};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),o1(s)?a.showHidden=s:s&&oe._extend(a,s),ns(a.showHidden)&&(a.showHidden=!1),ns(a.depth)&&(a.depth=2),ns(a.colors)&&(a.colors=!1),ns(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=ZI),_l(a,i,a.depth)}function ZI(i,s){var a=da.styles[s];return a?"\x1B["+da.colors[a][0]+"m"+i+"\x1B["+da.colors[a][1]+"m":i}function VI(i,s){return i}function _l(i,s,a){if(i.customInspect&&s&&bl(s.inspect)&&s.inspect!==oe.inspect&&(!s.constructor||s.constructor.prototype!==s)){var u=s.inspect(a,i);return Sl(u)||(u=_l(i,u,a)),u}var n=function(_,x){if(ns(x))return _.stylize("undefined","undefined");if(Sl(x)){var E="'"+JSON.stringify(x).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return _.stylize(E,"string")}if(Vy(x))return _.stylize(""+x,"number");if(o1(x))return _.stylize(""+x,"boolean");if(Al(x))return _.stylize("null","null")}(i,s);if(n)return n;var p=Object.keys(s),m=function(_){var x={};return _.forEach(function(E,k){x[E]=!0}),x}(p);if(i.showHidden&&(p=Object.getOwnPropertyNames(s)),mf(s)&&(p.indexOf("message")>=0||p.indexOf("description")>=0))return t1(s);if(p.length===0){if(bl(s)){var y=s.name?": "+s.name:"";return i.stylize("[Function"+y+"]","special")}if(pf(s))return i.stylize(RegExp.prototype.toString.call(s),"regexp");if(xl(s))return i.stylize(Date.prototype.toString.call(s),"date");if(mf(s))return t1(s)}var M,b="",g=!1,S=["{","}"];return Zy(s)&&(g=!0,S=["[","]"]),bl(s)&&(b=" [Function"+(s.name?": "+s.name:"")+"]"),pf(s)&&(b=" "+RegExp.prototype.toString.call(s)),xl(s)&&(b=" "+Date.prototype.toUTCString.call(s)),mf(s)&&(b=" "+t1(s)),p.length!==0||g&&s.length!=0?a<0?pf(s)?i.stylize(RegExp.prototype.toString.call(s),"regexp"):i.stylize("[Object]","special"):(i.seen.push(s),M=g?function(_,x,E,k,B){for(var T=[],C=0,P=x.length;C<P;++C)Wy(x,String(C))?T.push(e1(_,x,E,k,String(C),!0)):T.push("");return B.forEach(function(G){G.match(/^\d+$/)||T.push(e1(_,x,E,k,G,!0))}),T}(i,s,a,m,p):p.map(function(_){return e1(i,s,a,m,_,g)}),i.seen.pop(),function(_,x,E){var k=0;return _.reduce(function(B,T){return k++,T.indexOf(`
5
+ `)>=0&&k++,B+T.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?E[0]+(x===""?"":x+`
6
+ `)+" "+_.join(`,
7
+ `)+" "+E[1]:E[0]+x+" "+_.join(", ")+" "+E[1]}(M,b,S)):S[0]+b+S[1]}function t1(i){return"["+Error.prototype.toString.call(i)+"]"}function e1(i,s,a,u,n,p){var m,y,M;if((M=Object.getOwnPropertyDescriptor(s,n)||{value:s[n]}).get?y=M.set?i.stylize("[Getter/Setter]","special"):i.stylize("[Getter]","special"):M.set&&(y=i.stylize("[Setter]","special")),Wy(u,n)||(m="["+n+"]"),y||(i.seen.indexOf(M.value)<0?(y=Al(a)?_l(i,M.value,null):_l(i,M.value,a-1)).indexOf(`
8
+ `)>-1&&(y=p?y.split(`
9
+ `).map(function(b){return" "+b}).join(`
10
+ `).substr(2):`
11
+ `+y.split(`
12
+ `).map(function(b){return" "+b}).join(`
13
+ `)):y=i.stylize("[Circular]","special")),ns(m)){if(p&&n.match(/^\d+$/))return y;(m=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(m=m.substr(1,m.length-2),m=i.stylize(m,"name")):(m=m.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),m=i.stylize(m,"string"))}return m+": "+y}function Zy(i){return Array.isArray(i)}function o1(i){return typeof i=="boolean"}function Al(i){return i===null}function Vy(i){return typeof i=="number"}function Sl(i){return typeof i=="string"}function ns(i){return i===void 0}function pf(i){return wh(i)&&a1(i)==="[object RegExp]"}function wh(i){return typeof i=="object"&&i!==null}function xl(i){return wh(i)&&a1(i)==="[object Date]"}function mf(i){return wh(i)&&(a1(i)==="[object Error]"||i instanceof Error)}function bl(i){return typeof i=="function"}function a1(i){return Object.prototype.toString.call(i)}function r1(i){return i<10?"0"+i.toString(10):i.toString(10)}oe.debuglog=function(i){if(i=i.toUpperCase(),!vl[i])if(Gy.test(i)){var s=mo.pid;vl[i]=function(){var a=oe.format.apply(oe,arguments);console.error("%s %d: %s",i,s,a)}}else vl[i]=function(){};return vl[i]},oe.inspect=da,da.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},da.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},oe.types=tr,oe.isArray=Zy,oe.isBoolean=o1,oe.isNull=Al,oe.isNullOrUndefined=function(i){return i==null},oe.isNumber=Vy,oe.isString=Sl,oe.isSymbol=function(i){return typeof i=="symbol"},oe.isUndefined=ns,oe.isRegExp=pf,oe.types.isRegExp=pf,oe.isObject=wh,oe.isDate=xl,oe.types.isDate=xl,oe.isError=mf,oe.types.isNativeError=mf,oe.isFunction=bl,oe.isPrimitive=function(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||i===void 0},oe.isBuffer=Cy;var WI=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function XI(){var i=new Date,s=[r1(i.getHours()),r1(i.getMinutes()),r1(i.getSeconds())].join(":");return[i.getDate(),WI[i.getMonth()],s].join(" ")}function Wy(i,s){return Object.prototype.hasOwnProperty.call(i,s)}oe.log=function(){console.log("%s - %s",XI(),oe.format.apply(oe,arguments))},oe.inherits=qe,oe._extend=function(i,s){if(!s||!wh(s))return i;for(var a=Object.keys(s),u=a.length;u--;)i[a[u]]=s[a[u]];return i};var is=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function JI(i,s){if(!i){var a=new Error("Promise was rejected with a falsy value");a.reason=i,i=a}return s(i)}oe.promisify=function(i){if(typeof i!="function")throw new TypeError('The "original" argument must be of type Function');if(is&&i[is]){var s;if(typeof(s=i[is])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(s,is,{value:s,enumerable:!1,writable:!1,configurable:!0}),s}function s(){for(var a,u,n=new Promise(function(y,M){a=y,u=M}),p=[],m=0;m<arguments.length;m++)p.push(arguments[m]);p.push(function(y,M){y?u(y):a(M)});try{i.apply(this||df,p)}catch(y){u(y)}return n}return Object.setPrototypeOf(s,Object.getPrototypeOf(i)),is&&Object.defineProperty(s,is,{value:s,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(s,By(i))},oe.promisify.custom=is,oe.callbackify=function(i){if(typeof i!="function")throw new TypeError('The "original" argument must be of type Function');function s(){for(var a=[],u=0;u<arguments.length;u++)a.push(arguments[u]);var n=a.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var p=this||df,m=function(){return n.apply(p,arguments)};i.apply(this||df,a).then(function(y){mo.nextTick(m.bind(null,null,y))},function(y){mo.nextTick(JI.bind(null,y,m))})}return Object.setPrototypeOf(s,Object.getPrototypeOf(i)),Object.defineProperties(s,By(i)),s};oe._extend;oe.callbackify;oe.debuglog;oe.deprecate;oe.format;oe.inherits;oe.inspect;oe.isArray;oe.isBoolean;oe.isBuffer;oe.isDate;oe.isError;oe.isFunction;oe.isNull;oe.isNullOrUndefined;oe.isNumber;oe.isObject;oe.isPrimitive;oe.isRegExp;oe.isString;oe.isSymbol;oe.isUndefined;oe.log;oe.promisify;var AZ=oe._extend,kZ=oe.callbackify,RZ=oe.debuglog,BZ=oe.deprecate,TZ=oe.format,$Z=oe.inherits,IZ=oe.inspect,CZ=oe.isArray,PZ=oe.isBoolean,DZ=oe.isBuffer,LZ=oe.isDate,OZ=oe.isError,NZ=oe.isFunction,qZ=oe.isNull,zZ=oe.isNullOrUndefined,UZ=oe.isNumber,FZ=oe.isObject,jZ=oe.isPrimitive,HZ=oe.isRegExp,KZ=oe.isString,GZ=oe.isSymbol,ZZ=oe.isUndefined,VZ=oe.log,s1=oe.promisify,WZ=oe.types,XZ=self.TextEncoder,JZ=self.TextDecoder;var h1={},Xy=!1,Mh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function YI(){if(Xy)return h1;Xy=!0;var i=h1={},s,a;function u(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=u}catch{s=u}try{typeof clearTimeout=="function"?a=clearTimeout:a=n}catch{a=n}})();function p(k){if(s===setTimeout)return setTimeout(k,0);if((s===u||!s)&&setTimeout)return s=setTimeout,setTimeout(k,0);try{return s(k,0)}catch{try{return s.call(null,k,0)}catch{return s.call(this||Mh,k,0)}}}function m(k){if(a===clearTimeout)return clearTimeout(k);if((a===n||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(k);try{return a(k)}catch{try{return a.call(null,k)}catch{return a.call(this||Mh,k)}}}var y=[],M=!1,b,g=-1;function S(){!M||!b||(M=!1,b.length?y=b.concat(y):g=-1,y.length&&_())}function _(){if(!M){var k=p(S);M=!0;for(var B=y.length;B;){for(b=y,y=[];++g<B;)b&&b[g].run();g=-1,B=y.length}b=null,M=!1,m(k)}}i.nextTick=function(k){var B=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)B[T-1]=arguments[T];y.push(new x(k,B)),y.length===1&&!M&&p(_)};function x(k,B){(this||Mh).fun=k,(this||Mh).array=B}x.prototype.run=function(){(this||Mh).fun.apply(null,(this||Mh).array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={};function E(){}return i.on=E,i.addListener=E,i.once=E,i.off=E,i.removeListener=E,i.removeAllListeners=E,i.emit=E,i.prependListener=E,i.prependOnceListener=E,i.listeners=function(k){return[]},i.binding=function(k){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(k){throw new Error("process.chdir is not supported")},i.umask=function(){return 0},h1}var sr=YI();sr.platform="browser";sr.addListener;sr.argv;sr.binding;sr.browser;sr.chdir;sr.cwd;sr.emit;sr.env;sr.listeners;sr.nextTick;sr.off;sr.on;sr.once;sr.prependListener;sr.prependOnceListener;sr.removeAllListeners;sr.removeListener;sr.title;sr.umask;sr.version;sr.versions;for(h4={byteLength:function(i){var s=Qy(i),a=s[0],u=s[1];return 3*(a+u)/4-u},toByteArray:function(i){var s,a,u=Qy(i),n=u[0],p=u[1],m=new Jy(function(b,g,S){return 3*(g+S)/4-S}(0,n,p)),y=0,M=p>0?n-4:n;for(a=0;a<M;a+=4)s=nn[i.charCodeAt(a)]<<18|nn[i.charCodeAt(a+1)]<<12|nn[i.charCodeAt(a+2)]<<6|nn[i.charCodeAt(a+3)],m[y++]=s>>16&255,m[y++]=s>>8&255,m[y++]=255&s;return p===2&&(s=nn[i.charCodeAt(a)]<<2|nn[i.charCodeAt(a+1)]>>4,m[y++]=255&s),p===1&&(s=nn[i.charCodeAt(a)]<<10|nn[i.charCodeAt(a+1)]<<4|nn[i.charCodeAt(a+2)]>>2,m[y++]=s>>8&255,m[y++]=255&s),m},fromByteArray:function(i){for(var s,a=i.length,u=a%3,n=[],p=0,m=a-u;p<m;p+=16383)n.push(QI(i,p,p+16383>m?m:p+16383));return u===1?(s=i[a-1],n.push(jn[s>>2]+jn[s<<4&63]+"==")):u===2&&(s=(i[a-2]<<8)+i[a-1],n.push(jn[s>>10]+jn[s>>4&63]+jn[s<<2&63]+"=")),n.join("")}},jn=[],nn=[],Jy=typeof Uint8Array<"u"?Uint8Array:Array,kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",as=0,Yy=kl.length;as<Yy;++as)jn[as]=kl[as],nn[kl.charCodeAt(as)]=as;var h4,jn,nn,Jy,kl,as,Yy;function Qy(i){var s=i.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=i.indexOf("=");return a===-1&&(a=s),[a,a===s?0:4-a%4]}function QI(i,s,a){for(var u,n,p=[],m=s;m<a;m+=3)u=(i[m]<<16&16711680)+(i[m+1]<<8&65280)+(255&i[m+2]),p.push(jn[(n=u)>>18&63]+jn[n>>12&63]+jn[n>>6&63]+jn[63&n]);return p.join("")}nn["-".charCodeAt(0)]=62,nn["_".charCodeAt(0)]=63;var tC={read:function(i,s,a,u,n){var p,m,y=8*n-u-1,M=(1<<y)-1,b=M>>1,g=-7,S=a?n-1:0,_=a?-1:1,x=i[s+S];for(S+=_,p=x&(1<<-g)-1,x>>=-g,g+=y;g>0;p=256*p+i[s+S],S+=_,g-=8);for(m=p&(1<<-g)-1,p>>=-g,g+=u;g>0;m=256*m+i[s+S],S+=_,g-=8);if(p===0)p=1-b;else{if(p===M)return m?NaN:1/0*(x?-1:1);m+=Math.pow(2,u),p-=b}return(x?-1:1)*m*Math.pow(2,p-u)},write:function(i,s,a,u,n,p){var m,y,M,b=8*p-n-1,g=(1<<b)-1,S=g>>1,_=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=u?0:p-1,E=u?1:-1,k=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(y=isNaN(s)?1:0,m=g):(m=Math.floor(Math.log(s)/Math.LN2),s*(M=Math.pow(2,-m))<1&&(m--,M*=2),(s+=m+S>=1?_/M:_*Math.pow(2,1-S))*M>=2&&(m++,M/=2),m+S>=g?(y=0,m=g):m+S>=1?(y=(s*M-1)*Math.pow(2,n),m+=S):(y=s*Math.pow(2,S-1)*Math.pow(2,n),m=0));n>=8;i[a+x]=255&y,x+=E,y/=256,n-=8);for(m=m<<n|y,b+=n;b>0;i[a+x]=255&m,x+=E,m/=256,b-=8);i[a+x-E]|=128*k}},Pe={},l1=h4,_h=tC,t4=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Pe.Buffer=Yt,Pe.SlowBuffer=function(i){return+i!=i&&(i=0),Yt.alloc(+i)},Pe.INSPECT_MAX_BYTES=50;function Ko(i){if(i>2147483647)throw new RangeError('The value "'+i+'" is invalid for option "size"');var s=new Uint8Array(i);return Object.setPrototypeOf(s,Yt.prototype),s}function Yt(i,s,a){if(typeof i=="number"){if(typeof s=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return c1(i)}return f4(i,s,a)}function f4(i,s,a){if(typeof i=="string")return function(p,m){if(typeof m=="string"&&m!==""||(m="utf8"),!Yt.isEncoding(m))throw new TypeError("Unknown encoding: "+m);var y=0|l4(p,m),M=Ko(y),b=M.write(p,m);return b!==y&&(M=M.slice(0,b)),M}(i,s);if(ArrayBuffer.isView(i))return f1(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(Go(i,ArrayBuffer)||i&&Go(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Go(i,SharedArrayBuffer)||i&&Go(i.buffer,SharedArrayBuffer)))return e4(i,s,a);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var u=i.valueOf&&i.valueOf();if(u!=null&&u!==i)return Yt.from(u,s,a);var n=function(p){if(Yt.isBuffer(p)){var m=0|m1(p.length),y=Ko(m);return y.length===0||p.copy(y,0,0,m),y}if(p.length!==void 0)return typeof p.length!="number"||v1(p.length)?Ko(0):f1(p);if(p.type==="Buffer"&&Array.isArray(p.data))return f1(p.data)}(i);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return Yt.from(i[Symbol.toPrimitive]("string"),s,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}function u4(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function c1(i){return u4(i),Ko(i<0?0:0|m1(i))}function f1(i){for(var s=i.length<0?0:0|m1(i.length),a=Ko(s),u=0;u<s;u+=1)a[u]=255&i[u];return a}function e4(i,s,a){if(s<0||i.byteLength<s)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<s+(a||0))throw new RangeError('"length" is outside of buffer bounds');var u;return u=s===void 0&&a===void 0?new Uint8Array(i):a===void 0?new Uint8Array(i,s):new Uint8Array(i,s,a),Object.setPrototypeOf(u,Yt.prototype),u}function m1(i){if(i>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647 .toString(16)+" bytes");return 0|i}function l4(i,s){if(Yt.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||Go(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);var a=i.length,u=arguments.length>2&&arguments[2]===!0;if(!u&&a===0)return 0;for(var n=!1;;)switch(s){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return d1(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return m4(i).length;default:if(n)return u?-1:d1(i).length;s=(""+s).toLowerCase(),n=!0}}function eC(i,s,a){var u=!1;if((s===void 0||s<0)&&(s=0),s>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0)<=(s>>>=0))return"";for(i||(i="utf8");;)switch(i){case"hex":return uC(this,s,a);case"utf8":case"utf-8":return d4(this,s,a);case"ascii":return hC(this,s,a);case"latin1":case"binary":return fC(this,s,a);case"base64":return sC(this,s,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lC(this,s,a);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),u=!0}}function ss(i,s,a){var u=i[s];i[s]=i[a],i[a]=u}function r4(i,s,a,u,n){if(i.length===0)return-1;if(typeof a=="string"?(u=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),v1(a=+a)&&(a=n?0:i.length-1),a<0&&(a=i.length+a),a>=i.length){if(n)return-1;a=i.length-1}else if(a<0){if(!n)return-1;a=0}if(typeof s=="string"&&(s=Yt.from(s,u)),Yt.isBuffer(s))return s.length===0?-1:i4(i,s,a,u,n);if(typeof s=="number")return s&=255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(i,s,a):Uint8Array.prototype.lastIndexOf.call(i,s,a):i4(i,[s],a,u,n);throw new TypeError("val must be string, number or Buffer")}function i4(i,s,a,u,n){var p,m=1,y=i.length,M=s.length;if(u!==void 0&&((u=String(u).toLowerCase())==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(i.length<2||s.length<2)return-1;m=2,y/=2,M/=2,a/=2}function b(x,E){return m===1?x[E]:x.readUInt16BE(E*m)}if(n){var g=-1;for(p=a;p<y;p++)if(b(i,p)===b(s,g===-1?0:p-g)){if(g===-1&&(g=p),p-g+1===M)return g*m}else g!==-1&&(p-=p-g),g=-1}else for(a+M>y&&(a=y-M),p=a;p>=0;p--){for(var S=!0,_=0;_<M;_++)if(b(i,p+_)!==b(s,_)){S=!1;break}if(S)return p}return-1}function rC(i,s,a,u){a=Number(a)||0;var n=i.length-a;u?(u=Number(u))>n&&(u=n):u=n;var p=s.length;u>p/2&&(u=p/2);for(var m=0;m<u;++m){var y=parseInt(s.substr(2*m,2),16);if(v1(y))return m;i[a+m]=y}return m}function iC(i,s,a,u){return Tl(d1(s,i.length-a),i,a,u)}function c4(i,s,a,u){return Tl(function(n){for(var p=[],m=0;m<n.length;++m)p.push(255&n.charCodeAt(m));return p}(s),i,a,u)}function nC(i,s,a,u){return c4(i,s,a,u)}function oC(i,s,a,u){return Tl(m4(s),i,a,u)}function aC(i,s,a,u){return Tl(function(n,p){for(var m,y,M,b=[],g=0;g<n.length&&!((p-=2)<0);++g)m=n.charCodeAt(g),y=m>>8,M=m%256,b.push(M),b.push(y);return b}(s,i.length-a),i,a,u)}function sC(i,s,a){return s===0&&a===i.length?l1.fromByteArray(i):l1.fromByteArray(i.slice(s,a))}function d4(i,s,a){a=Math.min(i.length,a);for(var u=[],n=s;n<a;){var p,m,y,M,b=i[n],g=null,S=b>239?4:b>223?3:b>191?2:1;if(n+S<=a)switch(S){case 1:b<128&&(g=b);break;case 2:(192&(p=i[n+1]))==128&&(M=(31&b)<<6|63&p)>127&&(g=M);break;case 3:p=i[n+1],m=i[n+2],(192&p)==128&&(192&m)==128&&(M=(15&b)<<12|(63&p)<<6|63&m)>2047&&(M<55296||M>57343)&&(g=M);break;case 4:p=i[n+1],m=i[n+2],y=i[n+3],(192&p)==128&&(192&m)==128&&(192&y)==128&&(M=(15&b)<<18|(63&p)<<12|(63&m)<<6|63&y)>65535&&M<1114112&&(g=M)}g===null?(g=65533,S=1):g>65535&&(g-=65536,u.push(g>>>10&1023|55296),g=56320|1023&g),u.push(g),n+=S}return function(_){var x=_.length;if(x<=4096)return String.fromCharCode.apply(String,_);for(var E="",k=0;k<x;)E+=String.fromCharCode.apply(String,_.slice(k,k+=4096));return E}(u)}Pe.kMaxLength=2147483647,Yt.TYPED_ARRAY_SUPPORT=function(){try{var i=new Uint8Array(1),s={foo:function(){return 42}};return Object.setPrototypeOf(s,Uint8Array.prototype),Object.setPrototypeOf(i,s),i.foo()===42}catch{return!1}}(),Yt.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Yt.prototype,"parent",{enumerable:!0,get:function(){if(Yt.isBuffer(this))return this.buffer}}),Object.defineProperty(Yt.prototype,"offset",{enumerable:!0,get:function(){if(Yt.isBuffer(this))return this.byteOffset}}),Yt.poolSize=8192,Yt.from=function(i,s,a){return f4(i,s,a)},Object.setPrototypeOf(Yt.prototype,Uint8Array.prototype),Object.setPrototypeOf(Yt,Uint8Array),Yt.alloc=function(i,s,a){return function(u,n,p){return u4(u),u<=0?Ko(u):n!==void 0?typeof p=="string"?Ko(u).fill(n,p):Ko(u).fill(n):Ko(u)}(i,s,a)},Yt.allocUnsafe=function(i){return c1(i)},Yt.allocUnsafeSlow=function(i){return c1(i)},Yt.isBuffer=function(i){return i!=null&&i._isBuffer===!0&&i!==Yt.prototype},Yt.compare=function(i,s){if(Go(i,Uint8Array)&&(i=Yt.from(i,i.offset,i.byteLength)),Go(s,Uint8Array)&&(s=Yt.from(s,s.offset,s.byteLength)),!Yt.isBuffer(i)||!Yt.isBuffer(s))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(i===s)return 0;for(var a=i.length,u=s.length,n=0,p=Math.min(a,u);n<p;++n)if(i[n]!==s[n]){a=i[n],u=s[n];break}return a<u?-1:u<a?1:0},Yt.isEncoding=function(i){switch(String(i).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Yt.concat=function(i,s){if(!Array.isArray(i))throw new TypeError('"list" argument must be an Array of Buffers');if(i.length===0)return Yt.alloc(0);var a;if(s===void 0)for(s=0,a=0;a<i.length;++a)s+=i[a].length;var u=Yt.allocUnsafe(s),n=0;for(a=0;a<i.length;++a){var p=i[a];if(Go(p,Uint8Array)&&(p=Yt.from(p)),!Yt.isBuffer(p))throw new TypeError('"list" argument must be an Array of Buffers');p.copy(u,n),n+=p.length}return u},Yt.byteLength=l4,Yt.prototype._isBuffer=!0,Yt.prototype.swap16=function(){var i=this.length;if(i%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;s<i;s+=2)ss(this,s,s+1);return this},Yt.prototype.swap32=function(){var i=this.length;if(i%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var s=0;s<i;s+=4)ss(this,s,s+3),ss(this,s+1,s+2);return this},Yt.prototype.swap64=function(){var i=this.length;if(i%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var s=0;s<i;s+=8)ss(this,s,s+7),ss(this,s+1,s+6),ss(this,s+2,s+5),ss(this,s+3,s+4);return this},Yt.prototype.toString=function(){var i=this.length;return i===0?"":arguments.length===0?d4(this,0,i):eC.apply(this,arguments)},Yt.prototype.toLocaleString=Yt.prototype.toString,Yt.prototype.equals=function(i){if(!Yt.isBuffer(i))throw new TypeError("Argument must be a Buffer");return this===i||Yt.compare(this,i)===0},Yt.prototype.inspect=function(){var i="",s=Pe.INSPECT_MAX_BYTES;return i=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(i+=" ... "),"<Buffer "+i+">"},t4&&(Yt.prototype[t4]=Yt.prototype.inspect),Yt.prototype.compare=function(i,s,a,u,n){if(Go(i,Uint8Array)&&(i=Yt.from(i,i.offset,i.byteLength)),!Yt.isBuffer(i))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof i);if(s===void 0&&(s=0),a===void 0&&(a=i?i.length:0),u===void 0&&(u=0),n===void 0&&(n=this.length),s<0||a>i.length||u<0||n>this.length)throw new RangeError("out of range index");if(u>=n&&s>=a)return 0;if(u>=n)return-1;if(s>=a)return 1;if(this===i)return 0;for(var p=(n>>>=0)-(u>>>=0),m=(a>>>=0)-(s>>>=0),y=Math.min(p,m),M=this.slice(u,n),b=i.slice(s,a),g=0;g<y;++g)if(M[g]!==b[g]){p=M[g],m=b[g];break}return p<m?-1:m<p?1:0},Yt.prototype.includes=function(i,s,a){return this.indexOf(i,s,a)!==-1},Yt.prototype.indexOf=function(i,s,a){return r4(this,i,s,a,!0)},Yt.prototype.lastIndexOf=function(i,s,a){return r4(this,i,s,a,!1)},Yt.prototype.write=function(i,s,a,u){if(s===void 0)u="utf8",a=this.length,s=0;else if(a===void 0&&typeof s=="string")u=s,a=this.length,s=0;else{if(!isFinite(s))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");s>>>=0,isFinite(a)?(a>>>=0,u===void 0&&(u="utf8")):(u=a,a=void 0)}var n=this.length-s;if((a===void 0||a>n)&&(a=n),i.length>0&&(a<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");u||(u="utf8");for(var p=!1;;)switch(u){case"hex":return rC(this,i,s,a);case"utf8":case"utf-8":return iC(this,i,s,a);case"ascii":return c4(this,i,s,a);case"latin1":case"binary":return nC(this,i,s,a);case"base64":return oC(this,i,s,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return aC(this,i,s,a);default:if(p)throw new TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase(),p=!0}},Yt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function hC(i,s,a){var u="";a=Math.min(i.length,a);for(var n=s;n<a;++n)u+=String.fromCharCode(127&i[n]);return u}function fC(i,s,a){var u="";a=Math.min(i.length,a);for(var n=s;n<a;++n)u+=String.fromCharCode(i[n]);return u}function uC(i,s,a){var u=i.length;(!s||s<0)&&(s=0),(!a||a<0||a>u)&&(a=u);for(var n="",p=s;p<a;++p)n+=dC[i[p]];return n}function lC(i,s,a){for(var u=i.slice(s,a),n="",p=0;p<u.length;p+=2)n+=String.fromCharCode(u[p]+256*u[p+1]);return n}function ai(i,s,a){if(i%1!=0||i<0)throw new RangeError("offset is not uint");if(i+s>a)throw new RangeError("Trying to access beyond buffer length")}function Hi(i,s,a,u,n,p){if(!Yt.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(s>n||s<p)throw new RangeError('"value" argument is out of bounds');if(a+u>i.length)throw new RangeError("Index out of range")}function p4(i,s,a,u,n,p){if(a+u>i.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function n4(i,s,a,u,n){return s=+s,a>>>=0,n||p4(i,0,a,4),_h.write(i,s,a,u,23,4),a+4}function o4(i,s,a,u,n){return s=+s,a>>>=0,n||p4(i,0,a,8),_h.write(i,s,a,u,52,8),a+8}Yt.prototype.slice=function(i,s){var a=this.length;(i=~~i)<0?(i+=a)<0&&(i=0):i>a&&(i=a),(s=s===void 0?a:~~s)<0?(s+=a)<0&&(s=0):s>a&&(s=a),s<i&&(s=i);var u=this.subarray(i,s);return Object.setPrototypeOf(u,Yt.prototype),u},Yt.prototype.readUIntLE=function(i,s,a){i>>>=0,s>>>=0,a||ai(i,s,this.length);for(var u=this[i],n=1,p=0;++p<s&&(n*=256);)u+=this[i+p]*n;return u},Yt.prototype.readUIntBE=function(i,s,a){i>>>=0,s>>>=0,a||ai(i,s,this.length);for(var u=this[i+--s],n=1;s>0&&(n*=256);)u+=this[i+--s]*n;return u},Yt.prototype.readUInt8=function(i,s){return i>>>=0,s||ai(i,1,this.length),this[i]},Yt.prototype.readUInt16LE=function(i,s){return i>>>=0,s||ai(i,2,this.length),this[i]|this[i+1]<<8},Yt.prototype.readUInt16BE=function(i,s){return i>>>=0,s||ai(i,2,this.length),this[i]<<8|this[i+1]},Yt.prototype.readUInt32LE=function(i,s){return i>>>=0,s||ai(i,4,this.length),(this[i]|this[i+1]<<8|this[i+2]<<16)+16777216*this[i+3]},Yt.prototype.readUInt32BE=function(i,s){return i>>>=0,s||ai(i,4,this.length),16777216*this[i]+(this[i+1]<<16|this[i+2]<<8|this[i+3])},Yt.prototype.readIntLE=function(i,s,a){i>>>=0,s>>>=0,a||ai(i,s,this.length);for(var u=this[i],n=1,p=0;++p<s&&(n*=256);)u+=this[i+p]*n;return u>=(n*=128)&&(u-=Math.pow(2,8*s)),u},Yt.prototype.readIntBE=function(i,s,a){i>>>=0,s>>>=0,a||ai(i,s,this.length);for(var u=s,n=1,p=this[i+--u];u>0&&(n*=256);)p+=this[i+--u]*n;return p>=(n*=128)&&(p-=Math.pow(2,8*s)),p},Yt.prototype.readInt8=function(i,s){return i>>>=0,s||ai(i,1,this.length),128&this[i]?-1*(255-this[i]+1):this[i]},Yt.prototype.readInt16LE=function(i,s){i>>>=0,s||ai(i,2,this.length);var a=this[i]|this[i+1]<<8;return 32768&a?4294901760|a:a},Yt.prototype.readInt16BE=function(i,s){i>>>=0,s||ai(i,2,this.length);var a=this[i+1]|this[i]<<8;return 32768&a?4294901760|a:a},Yt.prototype.readInt32LE=function(i,s){return i>>>=0,s||ai(i,4,this.length),this[i]|this[i+1]<<8|this[i+2]<<16|this[i+3]<<24},Yt.prototype.readInt32BE=function(i,s){return i>>>=0,s||ai(i,4,this.length),this[i]<<24|this[i+1]<<16|this[i+2]<<8|this[i+3]},Yt.prototype.readFloatLE=function(i,s){return i>>>=0,s||ai(i,4,this.length),_h.read(this,i,!0,23,4)},Yt.prototype.readFloatBE=function(i,s){return i>>>=0,s||ai(i,4,this.length),_h.read(this,i,!1,23,4)},Yt.prototype.readDoubleLE=function(i,s){return i>>>=0,s||ai(i,8,this.length),_h.read(this,i,!0,52,8)},Yt.prototype.readDoubleBE=function(i,s){return i>>>=0,s||ai(i,8,this.length),_h.read(this,i,!1,52,8)},Yt.prototype.writeUIntLE=function(i,s,a,u){i=+i,s>>>=0,a>>>=0,u||Hi(this,i,s,a,Math.pow(2,8*a)-1,0);var n=1,p=0;for(this[s]=255&i;++p<a&&(n*=256);)this[s+p]=i/n&255;return s+a},Yt.prototype.writeUIntBE=function(i,s,a,u){i=+i,s>>>=0,a>>>=0,u||Hi(this,i,s,a,Math.pow(2,8*a)-1,0);var n=a-1,p=1;for(this[s+n]=255&i;--n>=0&&(p*=256);)this[s+n]=i/p&255;return s+a},Yt.prototype.writeUInt8=function(i,s,a){return i=+i,s>>>=0,a||Hi(this,i,s,1,255,0),this[s]=255&i,s+1},Yt.prototype.writeUInt16LE=function(i,s,a){return i=+i,s>>>=0,a||Hi(this,i,s,2,65535,0),this[s]=255&i,this[s+1]=i>>>8,s+2},Yt.prototype.writeUInt16BE=function(i,s,a){return i=+i,s>>>=0,a||Hi(this,i,s,2,65535,0),this[s]=i>>>8,this[s+1]=255&i,s+2},Yt.prototype.writeUInt32LE=function(i,s,a){return i=+i,s>>>=0,a||Hi(this,i,s,4,4294967295,0),this[s+3]=i>>>24,this[s+2]=i>>>16,this[s+1]=i>>>8,this[s]=255&i,s+4},Yt.prototype.writeUInt32BE=function(i,s,a){return i=+i,s>>>=0,a||Hi(this,i,s,4,4294967295,0),this[s]=i>>>24,this[s+1]=i>>>16,this[s+2]=i>>>8,this[s+3]=255&i,s+4},Yt.prototype.writeIntLE=function(i,s,a,u){if(i=+i,s>>>=0,!u){var n=Math.pow(2,8*a-1);Hi(this,i,s,a,n-1,-n)}var p=0,m=1,y=0;for(this[s]=255&i;++p<a&&(m*=256);)i<0&&y===0&&this[s+p-1]!==0&&(y=1),this[s+p]=(i/m>>0)-y&255;return s+a},Yt.prototype.writeIntBE=function(i,s,a,u){if(i=+i,s>>>=0,!u){var n=Math.pow(2,8*a-1);Hi(this,i,s,a,n-1,-n)}var p=a-1,m=1,y=0;for(this[s+p]=255&i;--p>=0&&(m*=256);)i<0&&y===0&&this[s+p+1]!==0&&(y=1),this[s+p]=(i/m>>0)-y&255;return s+a},Yt.prototype.writeInt8=function(i,s,a){return i=+i,s>>>=0,a||Hi(this,i,s,1,127,-128),i<0&&(i=255+i+1),this[s]=255&i,s+1},Yt.prototype.writeInt16LE=function(i,s,a){return i=+i,s>>>=0,a||Hi(this,i,s,2,32767,-32768),this[s]=255&i,this[s+1]=i>>>8,s+2},Yt.prototype.writeInt16BE=function(i,s,a){return i=+i,s>>>=0,a||Hi(this,i,s,2,32767,-32768),this[s]=i>>>8,this[s+1]=255&i,s+2},Yt.prototype.writeInt32LE=function(i,s,a){return i=+i,s>>>=0,a||Hi(this,i,s,4,2147483647,-2147483648),this[s]=255&i,this[s+1]=i>>>8,this[s+2]=i>>>16,this[s+3]=i>>>24,s+4},Yt.prototype.writeInt32BE=function(i,s,a){return i=+i,s>>>=0,a||Hi(this,i,s,4,2147483647,-2147483648),i<0&&(i=4294967295+i+1),this[s]=i>>>24,this[s+1]=i>>>16,this[s+2]=i>>>8,this[s+3]=255&i,s+4},Yt.prototype.writeFloatLE=function(i,s,a){return n4(this,i,s,!0,a)},Yt.prototype.writeFloatBE=function(i,s,a){return n4(this,i,s,!1,a)},Yt.prototype.writeDoubleLE=function(i,s,a){return o4(this,i,s,!0,a)},Yt.prototype.writeDoubleBE=function(i,s,a){return o4(this,i,s,!1,a)},Yt.prototype.copy=function(i,s,a,u){if(!Yt.isBuffer(i))throw new TypeError("argument should be a Buffer");if(a||(a=0),u||u===0||(u=this.length),s>=i.length&&(s=i.length),s||(s=0),u>0&&u<a&&(u=a),u===a||i.length===0||this.length===0)return 0;if(s<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length),i.length-s<u-a&&(u=i.length-s+a);var n=u-a;if(this===i&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(s,a,u);else if(this===i&&a<s&&s<u)for(var p=n-1;p>=0;--p)i[p+s]=this[p+a];else Uint8Array.prototype.set.call(i,this.subarray(a,u),s);return n},Yt.prototype.fill=function(i,s,a,u){if(typeof i=="string"){if(typeof s=="string"?(u=s,s=0,a=this.length):typeof a=="string"&&(u=a,a=this.length),u!==void 0&&typeof u!="string")throw new TypeError("encoding must be a string");if(typeof u=="string"&&!Yt.isEncoding(u))throw new TypeError("Unknown encoding: "+u);if(i.length===1){var n=i.charCodeAt(0);(u==="utf8"&&n<128||u==="latin1")&&(i=n)}}else typeof i=="number"?i&=255:typeof i=="boolean"&&(i=Number(i));if(s<0||this.length<s||this.length<a)throw new RangeError("Out of range index");if(a<=s)return this;var p;if(s>>>=0,a=a===void 0?this.length:a>>>0,i||(i=0),typeof i=="number")for(p=s;p<a;++p)this[p]=i;else{var m=Yt.isBuffer(i)?i:Yt.from(i,u),y=m.length;if(y===0)throw new TypeError('The value "'+i+'" is invalid for argument "value"');for(p=0;p<a-s;++p)this[p+s]=m[p%y]}return this};var cC=/[^+/0-9A-Za-z-_]/g;function d1(i,s){var a;s=s||1/0;for(var u=i.length,n=null,p=[],m=0;m<u;++m){if((a=i.charCodeAt(m))>55295&&a<57344){if(!n){if(a>56319){(s-=3)>-1&&p.push(239,191,189);continue}if(m+1===u){(s-=3)>-1&&p.push(239,191,189);continue}n=a;continue}if(a<56320){(s-=3)>-1&&p.push(239,191,189),n=a;continue}a=65536+(n-55296<<10|a-56320)}else n&&(s-=3)>-1&&p.push(239,191,189);if(n=null,a<128){if((s-=1)<0)break;p.push(a)}else if(a<2048){if((s-=2)<0)break;p.push(a>>6|192,63&a|128)}else if(a<65536){if((s-=3)<0)break;p.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((s-=4)<0)break;p.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return p}function m4(i){return l1.toByteArray(function(s){if((s=(s=s.split("=")[0]).trim().replace(cC,"")).length<2)return"";for(;s.length%4!=0;)s+="=";return s}(i))}function Tl(i,s,a,u){for(var n=0;n<u&&!(n+a>=s.length||n>=i.length);++n)s[n+a]=i[n];return n}function Go(i,s){return i instanceof s||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===s.name}function v1(i){return i!=i}var dC=function(){for(var i=new Array(256),s=0;s<16;++s)for(var a=16*s,u=0;u<16;++u)i[a+u]="0123456789abcdef"[s]+"0123456789abcdef"[u];return i}();Pe.Buffer;Pe.INSPECT_MAX_BYTES;Pe.kMaxLength;var Rl={},Bl=Pe,vo=Bl.Buffer;function a4(i,s){for(var a in i)s[a]=i[a]}function hs(i,s,a){return vo(i,s,a)}vo.from&&vo.alloc&&vo.allocUnsafe&&vo.allocUnsafeSlow?Rl=Bl:(a4(Bl,Rl),Rl.Buffer=hs),hs.prototype=Object.create(vo.prototype),a4(vo,hs),hs.from=function(i,s,a){if(typeof i=="number")throw new TypeError("Argument must not be a number");return vo(i,s,a)},hs.alloc=function(i,s,a){if(typeof i!="number")throw new TypeError("Argument must be a number");var u=vo(i);return s!==void 0?typeof a=="string"?u.fill(s,a):u.fill(s):u.fill(0),u},hs.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return vo(i)},hs.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return Bl.SlowBuffer(i)};var er=Rl,_i={},p1=er.Buffer,s4=p1.isEncoding||function(i){switch((i=""+i)&&i.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function gf(i){var s;switch(this.encoding=function(a){var u=function(n){if(!n)return"utf8";for(var p;;)switch(n){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return n;default:if(p)return;n=(""+n).toLowerCase(),p=!0}}(a);if(typeof u!="string"&&(p1.isEncoding===s4||!s4(a)))throw new Error("Unknown encoding: "+a);return u||a}(i),this.encoding){case"utf16le":this.text=mC,this.end=vC,s=4;break;case"utf8":this.fillLast=pC,s=4;break;case"base64":this.text=gC,this.end=bC,s=3;break;default:return this.write=yC,this.end=wC,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=p1.allocUnsafe(s)}function u1(i){return i<=127?0:i>>5==6?2:i>>4==14?3:i>>3==30?4:i>>6==2?-1:-2}function pC(i){var s=this.lastTotal-this.lastNeed,a=function(u,n,p){if((192&n[0])!=128)return u.lastNeed=0,"\uFFFD";if(u.lastNeed>1&&n.length>1){if((192&n[1])!=128)return u.lastNeed=1,"\uFFFD";if(u.lastNeed>2&&n.length>2&&(192&n[2])!=128)return u.lastNeed=2,"\uFFFD"}}(this,i);return a!==void 0?a:this.lastNeed<=i.length?(i.copy(this.lastChar,s,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(i.copy(this.lastChar,s,0,i.length),this.lastNeed-=i.length,void 0)}function mC(i,s){if((i.length-s)%2==0){var a=i.toString("utf16le",s);if(a){var u=a.charCodeAt(a.length-1);if(u>=55296&&u<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=i[i.length-2],this.lastChar[1]=i[i.length-1],a.slice(0,-1)}return a}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=i[i.length-1],i.toString("utf16le",s,i.length-1)}function vC(i){var s=i&&i.length?this.write(i):"";if(this.lastNeed){var a=this.lastTotal-this.lastNeed;return s+this.lastChar.toString("utf16le",0,a)}return s}function gC(i,s){var a=(i.length-s)%3;return a===0?i.toString("base64",s):(this.lastNeed=3-a,this.lastTotal=3,a===1?this.lastChar[0]=i[i.length-1]:(this.lastChar[0]=i[i.length-2],this.lastChar[1]=i[i.length-1]),i.toString("base64",s,i.length-a))}function bC(i){var s=i&&i.length?this.write(i):"";return this.lastNeed?s+this.lastChar.toString("base64",0,3-this.lastNeed):s}function yC(i){return i.toString(this.encoding)}function wC(i){return i&&i.length?this.write(i):""}_i.StringDecoder=gf,gf.prototype.write=function(i){if(i.length===0)return"";var s,a;if(this.lastNeed){if((s=this.fillLast(i))===void 0)return"";a=this.lastNeed,this.lastNeed=0}else a=0;return a<i.length?s?s+this.text(i,a):this.text(i,a):s||""},gf.prototype.end=function(i){var s=i&&i.length?this.write(i):"";return this.lastNeed?s+"\uFFFD":s},gf.prototype.text=function(i,s){var a=function(n,p,m){var y=p.length-1;if(y<m)return 0;var M=u1(p[y]);return M>=0?(M>0&&(n.lastNeed=M-1),M):--y<m||M===-2?0:(M=u1(p[y]))>=0?(M>0&&(n.lastNeed=M-2),M):--y<m||M===-2?0:(M=u1(p[y]))>=0?(M>0&&(M===2?M=0:n.lastNeed=M-3),M):0}(this,i,s);if(!this.lastNeed)return i.toString("utf8",s);this.lastTotal=a;var u=i.length-(a-this.lastNeed);return i.copy(this.lastChar,0,u),i.toString("utf8",s,u)},gf.prototype.fillLast=function(i){if(this.lastNeed<=i.length)return i.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);i.copy(this.lastChar,this.lastTotal-this.lastNeed,0,i.length),this.lastNeed-=i.length};_i.StringDecoder;_i.StringDecoder;var bf={},v4=!1;function MC(){if(v4)return bf;v4=!0,bf.byteLength=y,bf.toByteArray=b,bf.fromByteArray=_;for(var i=[],s=[],a=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,p=u.length;n<p;++n)i[n]=u[n],s[u.charCodeAt(n)]=n;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63;function m(x){var E=x.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=x.indexOf("=");k===-1&&(k=E);var B=k===E?0:4-k%4;return[k,B]}function y(x){var E=m(x),k=E[0],B=E[1];return(k+B)*3/4-B}function M(x,E,k){return(E+k)*3/4-k}function b(x){var E,k=m(x),B=k[0],T=k[1],C=new a(M(x,B,T)),P=0,G=T>0?B-4:B,U;for(U=0;U<G;U+=4)E=s[x.charCodeAt(U)]<<18|s[x.charCodeAt(U+1)]<<12|s[x.charCodeAt(U+2)]<<6|s[x.charCodeAt(U+3)],C[P++]=E>>16&255,C[P++]=E>>8&255,C[P++]=E&255;return T===2&&(E=s[x.charCodeAt(U)]<<2|s[x.charCodeAt(U+1)]>>4,C[P++]=E&255),T===1&&(E=s[x.charCodeAt(U)]<<10|s[x.charCodeAt(U+1)]<<4|s[x.charCodeAt(U+2)]>>2,C[P++]=E>>8&255,C[P++]=E&255),C}function g(x){return i[x>>18&63]+i[x>>12&63]+i[x>>6&63]+i[x&63]}function S(x,E,k){for(var B,T=[],C=E;C<k;C+=3)B=(x[C]<<16&16711680)+(x[C+1]<<8&65280)+(x[C+2]&255),T.push(g(B));return T.join("")}function _(x){for(var E,k=x.length,B=k%3,T=[],C=16383,P=0,G=k-B;P<G;P+=C)T.push(S(x,P,P+C>G?G:P+C));return B===1?(E=x[k-1],T.push(i[E>>2]+i[E<<4&63]+"==")):B===2&&(E=(x[k-2]<<8)+x[k-1],T.push(i[E>>10]+i[E>>4&63]+i[E<<2&63]+"=")),T.join("")}return bf}var $l={},g4=!1;function _C(){if(g4)return $l;g4=!0;return $l.read=function(i,s,a,u,n){var p,m,y=n*8-u-1,M=(1<<y)-1,b=M>>1,g=-7,S=a?n-1:0,_=a?-1:1,x=i[s+S];for(S+=_,p=x&(1<<-g)-1,x>>=-g,g+=y;g>0;p=p*256+i[s+S],S+=_,g-=8);for(m=p&(1<<-g)-1,p>>=-g,g+=u;g>0;m=m*256+i[s+S],S+=_,g-=8);if(p===0)p=1-b;else{if(p===M)return m?NaN:(x?-1:1)*(1/0);m=m+Math.pow(2,u),p=p-b}return(x?-1:1)*m*Math.pow(2,p-u)},$l.write=function(i,s,a,u,n,p){var m,y,M,b=p*8-n-1,g=(1<<b)-1,S=g>>1,_=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=u?0:p-1,E=u?1:-1,k=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(y=isNaN(s)?1:0,m=g):(m=Math.floor(Math.log(s)/Math.LN2),s*(M=Math.pow(2,-m))<1&&(m--,M*=2),m+S>=1?s+=_/M:s+=_*Math.pow(2,1-S),s*M>=2&&(m++,M/=2),m+S>=g?(y=0,m=g):m+S>=1?(y=(s*M-1)*Math.pow(2,n),m=m+S):(y=s*Math.pow(2,S-1)*Math.pow(2,n),m=0));n>=8;i[a+x]=y&255,x+=E,y/=256,n-=8);for(m=m<<n|y,b+=n;b>0;i[a+x]=m&255,x+=E,m/=256,b-=8);i[a+x-E]|=k*128},$l}var fs={},b4=!1;function SC(){if(b4)return fs;b4=!0;let i=MC(),s=_C(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;fs.Buffer=m,fs.SlowBuffer=T,fs.INSPECT_MAX_BYTES=50;let u=2147483647;fs.kMaxLength=u,m.TYPED_ARRAY_SUPPORT=n(),!m.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function n(){try{let F=new Uint8Array(1),O={foo:function(){return 42}};return Object.setPrototypeOf(O,Uint8Array.prototype),Object.setPrototypeOf(F,O),F.foo()===42}catch{return!1}}Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}});function p(F){if(F>u)throw new RangeError('The value "'+F+'" is invalid for option "size"');let O=new Uint8Array(F);return Object.setPrototypeOf(O,m.prototype),O}function m(F,O,H){if(typeof F=="number"){if(typeof O=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(F)}return y(F,O,H)}m.poolSize=8192;function y(F,O,H){if(typeof F=="string")return S(F,O);if(ArrayBuffer.isView(F))return x(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(Tt(F,ArrayBuffer)||F&&Tt(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Tt(F,SharedArrayBuffer)||F&&Tt(F.buffer,SharedArrayBuffer)))return E(F,O,H);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let Z=F.valueOf&&F.valueOf();if(Z!=null&&Z!==F)return m.from(Z,O,H);let dt=k(F);if(dt)return dt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return m.from(F[Symbol.toPrimitive]("string"),O,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}m.from=function(F,O,H){return y(F,O,H)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array);function M(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function b(F,O,H){return M(F),F<=0?p(F):O!==void 0?typeof H=="string"?p(F).fill(O,H):p(F).fill(O):p(F)}m.alloc=function(F,O,H){return b(F,O,H)};function g(F){return M(F),p(F<0?0:B(F)|0)}m.allocUnsafe=function(F){return g(F)},m.allocUnsafeSlow=function(F){return g(F)};function S(F,O){if((typeof O!="string"||O==="")&&(O="utf8"),!m.isEncoding(O))throw new TypeError("Unknown encoding: "+O);let H=C(F,O)|0,Z=p(H),dt=Z.write(F,O);return dt!==H&&(Z=Z.slice(0,dt)),Z}function _(F){let O=F.length<0?0:B(F.length)|0,H=p(O);for(let Z=0;Z<O;Z+=1)H[Z]=F[Z]&255;return H}function x(F){if(Tt(F,Uint8Array)){let O=new Uint8Array(F);return E(O.buffer,O.byteOffset,O.byteLength)}return _(F)}function E(F,O,H){if(O<0||F.byteLength<O)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<O+(H||0))throw new RangeError('"length" is outside of buffer bounds');let Z;return O===void 0&&H===void 0?Z=new Uint8Array(F):H===void 0?Z=new Uint8Array(F,O):Z=new Uint8Array(F,O,H),Object.setPrototypeOf(Z,m.prototype),Z}function k(F){if(m.isBuffer(F)){let O=B(F.length)|0,H=p(O);return H.length===0||F.copy(H,0,0,O),H}if(F.length!==void 0)return typeof F.length!="number"||Zt(F.length)?p(0):_(F);if(F.type==="Buffer"&&Array.isArray(F.data))return _(F.data)}function B(F){if(F>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return F|0}function T(F){return+F!=F&&(F=0),m.alloc(+F)}m.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==m.prototype},m.compare=function(O,H){if(Tt(O,Uint8Array)&&(O=m.from(O,O.offset,O.byteLength)),Tt(H,Uint8Array)&&(H=m.from(H,H.offset,H.byteLength)),!m.isBuffer(O)||!m.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===H)return 0;let Z=O.length,dt=H.length;for(let Ht=0,vt=Math.min(Z,dt);Ht<vt;++Ht)if(O[Ht]!==H[Ht]){Z=O[Ht],dt=H[Ht];break}return Z<dt?-1:dt<Z?1:0},m.isEncoding=function(O){switch(String(O).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.concat=function(O,H){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return m.alloc(0);let Z;if(H===void 0)for(H=0,Z=0;Z<O.length;++Z)H+=O[Z].length;let dt=m.allocUnsafe(H),Ht=0;for(Z=0;Z<O.length;++Z){let vt=O[Z];if(Tt(vt,Uint8Array))Ht+vt.length>dt.length?(m.isBuffer(vt)||(vt=m.from(vt)),vt.copy(dt,Ht)):Uint8Array.prototype.set.call(dt,vt,Ht);else if(m.isBuffer(vt))vt.copy(dt,Ht);else throw new TypeError('"list" argument must be an Array of Buffers');Ht+=vt.length}return dt};function C(F,O){if(m.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||Tt(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);let H=F.length,Z=arguments.length>2&&arguments[2]===!0;if(!Z&&H===0)return 0;let dt=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return Kt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H*2;case"hex":return H>>>1;case"base64":return Wt(F).length;default:if(dt)return Z?-1:Kt(F).length;O=(""+O).toLowerCase(),dt=!0}}m.byteLength=C;function P(F,O,H){let Z=!1;if((O===void 0||O<0)&&(O=0),O>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0,O>>>=0,H<=O))return"";for(F||(F="utf8");;)switch(F){case"hex":return l(this,O,H);case"utf8":case"utf-8":return o(this,O,H);case"ascii":return v(this,O,H);case"latin1":case"binary":return w(this,O,H);case"base64":return r(this,O,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e(this,O,H);default:if(Z)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),Z=!0}}m.prototype._isBuffer=!0;function G(F,O,H){let Z=F[O];F[O]=F[H],F[H]=Z}m.prototype.swap16=function(){let O=this.length;if(O%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;H<O;H+=2)G(this,H,H+1);return this},m.prototype.swap32=function(){let O=this.length;if(O%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let H=0;H<O;H+=4)G(this,H,H+3),G(this,H+1,H+2);return this},m.prototype.swap64=function(){let O=this.length;if(O%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let H=0;H<O;H+=8)G(this,H,H+7),G(this,H+1,H+6),G(this,H+2,H+5),G(this,H+3,H+4);return this},m.prototype.toString=function(){let O=this.length;return O===0?"":arguments.length===0?o(this,0,O):P.apply(this,arguments)},m.prototype.toLocaleString=m.prototype.toString,m.prototype.equals=function(O){if(!m.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:m.compare(this,O)===0},m.prototype.inspect=function(){let O="",H=fs.INSPECT_MAX_BYTES;return O=this.toString("hex",0,H).replace(/(.{2})/g,"$1 ").trim(),this.length>H&&(O+=" ... "),"<Buffer "+O+">"},a&&(m.prototype[a]=m.prototype.inspect),m.prototype.compare=function(O,H,Z,dt,Ht){if(Tt(O,Uint8Array)&&(O=m.from(O,O.offset,O.byteLength)),!m.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(H===void 0&&(H=0),Z===void 0&&(Z=O?O.length:0),dt===void 0&&(dt=0),Ht===void 0&&(Ht=this.length),H<0||Z>O.length||dt<0||Ht>this.length)throw new RangeError("out of range index");if(dt>=Ht&&H>=Z)return 0;if(dt>=Ht)return-1;if(H>=Z)return 1;if(H>>>=0,Z>>>=0,dt>>>=0,Ht>>>=0,this===O)return 0;let vt=Ht-dt,$t=Z-H,Vt=Math.min(vt,$t),yt=this.slice(dt,Ht),Ct=O.slice(H,Z);for(let Gt=0;Gt<Vt;++Gt)if(yt[Gt]!==Ct[Gt]){vt=yt[Gt],$t=Ct[Gt];break}return vt<$t?-1:$t<vt?1:0};function U(F,O,H,Z,dt){if(F.length===0)return-1;if(typeof H=="string"?(Z=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),H=+H,Zt(H)&&(H=dt?0:F.length-1),H<0&&(H=F.length+H),H>=F.length){if(dt)return-1;H=F.length-1}else if(H<0)if(dt)H=0;else return-1;if(typeof O=="string"&&(O=m.from(O,Z)),m.isBuffer(O))return O.length===0?-1:V(F,O,H,Z,dt);if(typeof O=="number")return O=O&255,typeof Uint8Array.prototype.indexOf=="function"?dt?Uint8Array.prototype.indexOf.call(F,O,H):Uint8Array.prototype.lastIndexOf.call(F,O,H):V(F,[O],H,Z,dt);throw new TypeError("val must be string, number or Buffer")}function V(F,O,H,Z,dt){let Ht=1,vt=F.length,$t=O.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if(F.length<2||O.length<2)return-1;Ht=2,vt/=2,$t/=2,H/=2}function Vt(Ct,Gt){return Ht===1?Ct[Gt]:Ct.readUInt16BE(Gt*Ht)}let yt;if(dt){let Ct=-1;for(yt=H;yt<vt;yt++)if(Vt(F,yt)===Vt(O,Ct===-1?0:yt-Ct)){if(Ct===-1&&(Ct=yt),yt-Ct+1===$t)return Ct*Ht}else Ct!==-1&&(yt-=yt-Ct),Ct=-1}else for(H+$t>vt&&(H=vt-$t),yt=H;yt>=0;yt--){let Ct=!0;for(let Gt=0;Gt<$t;Gt++)if(Vt(F,yt+Gt)!==Vt(O,Gt)){Ct=!1;break}if(Ct)return yt}return-1}m.prototype.includes=function(O,H,Z){return this.indexOf(O,H,Z)!==-1},m.prototype.indexOf=function(O,H,Z){return U(this,O,H,Z,!0)},m.prototype.lastIndexOf=function(O,H,Z){return U(this,O,H,Z,!1)};function I(F,O,H,Z){H=Number(H)||0;let dt=F.length-H;Z?(Z=Number(Z),Z>dt&&(Z=dt)):Z=dt;let Ht=O.length;Z>Ht/2&&(Z=Ht/2);let vt;for(vt=0;vt<Z;++vt){let $t=parseInt(O.substr(vt*2,2),16);if(Zt($t))return vt;F[H+vt]=$t}return vt}function D(F,O,H,Z){return wt(Kt(O,F.length-H),F,H,Z)}function z(F,O,H,Z){return wt(mt(O),F,H,Z)}function d(F,O,H,Z){return wt(Wt(O),F,H,Z)}function t(F,O,H,Z){return wt(Mt(O,F.length-H),F,H,Z)}m.prototype.write=function(O,H,Z,dt){if(H===void 0)dt="utf8",Z=this.length,H=0;else if(Z===void 0&&typeof H=="string")dt=H,Z=this.length,H=0;else if(isFinite(H))H=H>>>0,isFinite(Z)?(Z=Z>>>0,dt===void 0&&(dt="utf8")):(dt=Z,Z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let Ht=this.length-H;if((Z===void 0||Z>Ht)&&(Z=Ht),O.length>0&&(Z<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");dt||(dt="utf8");let vt=!1;for(;;)switch(dt){case"hex":return I(this,O,H,Z);case"utf8":case"utf-8":return D(this,O,H,Z);case"ascii":case"latin1":case"binary":return z(this,O,H,Z);case"base64":return d(this,O,H,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t(this,O,H,Z);default:if(vt)throw new TypeError("Unknown encoding: "+dt);dt=(""+dt).toLowerCase(),vt=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function r(F,O,H){return O===0&&H===F.length?i.fromByteArray(F):i.fromByteArray(F.slice(O,H))}function o(F,O,H){H=Math.min(F.length,H);let Z=[],dt=O;for(;dt<H;){let Ht=F[dt],vt=null,$t=Ht>239?4:Ht>223?3:Ht>191?2:1;if(dt+$t<=H){let Vt,yt,Ct,Gt;switch($t){case 1:Ht<128&&(vt=Ht);break;case 2:Vt=F[dt+1],(Vt&192)===128&&(Gt=(Ht&31)<<6|Vt&63,Gt>127&&(vt=Gt));break;case 3:Vt=F[dt+1],yt=F[dt+2],(Vt&192)===128&&(yt&192)===128&&(Gt=(Ht&15)<<12|(Vt&63)<<6|yt&63,Gt>2047&&(Gt<55296||Gt>57343)&&(vt=Gt));break;case 4:Vt=F[dt+1],yt=F[dt+2],Ct=F[dt+3],(Vt&192)===128&&(yt&192)===128&&(Ct&192)===128&&(Gt=(Ht&15)<<18|(Vt&63)<<12|(yt&63)<<6|Ct&63,Gt>65535&&Gt<1114112&&(vt=Gt))}}vt===null?(vt=65533,$t=1):vt>65535&&(vt-=65536,Z.push(vt>>>10&1023|55296),vt=56320|vt&1023),Z.push(vt),dt+=$t}return f(Z)}let h=4096;function f(F){let O=F.length;if(O<=h)return String.fromCharCode.apply(String,F);let H="",Z=0;for(;Z<O;)H+=String.fromCharCode.apply(String,F.slice(Z,Z+=h));return H}function v(F,O,H){let Z="";H=Math.min(F.length,H);for(let dt=O;dt<H;++dt)Z+=String.fromCharCode(F[dt]&127);return Z}function w(F,O,H){let Z="";H=Math.min(F.length,H);for(let dt=O;dt<H;++dt)Z+=String.fromCharCode(F[dt]);return Z}function l(F,O,H){let Z=F.length;(!O||O<0)&&(O=0),(!H||H<0||H>Z)&&(H=Z);let dt="";for(let Ht=O;Ht<H;++Ht)dt+=_t[F[Ht]];return dt}function e(F,O,H){let Z=F.slice(O,H),dt="";for(let Ht=0;Ht<Z.length-1;Ht+=2)dt+=String.fromCharCode(Z[Ht]+Z[Ht+1]*256);return dt}m.prototype.slice=function(O,H){let Z=this.length;O=~~O,H=H===void 0?Z:~~H,O<0?(O+=Z,O<0&&(O=0)):O>Z&&(O=Z),H<0?(H+=Z,H<0&&(H=0)):H>Z&&(H=Z),H<O&&(H=O);let dt=this.subarray(O,H);return Object.setPrototypeOf(dt,m.prototype),dt};function c(F,O,H){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+O>H)throw new RangeError("Trying to access beyond buffer length")}m.prototype.readUintLE=m.prototype.readUIntLE=function(O,H,Z){O=O>>>0,H=H>>>0,Z||c(O,H,this.length);let dt=this[O],Ht=1,vt=0;for(;++vt<H&&(Ht*=256);)dt+=this[O+vt]*Ht;return dt},m.prototype.readUintBE=m.prototype.readUIntBE=function(O,H,Z){O=O>>>0,H=H>>>0,Z||c(O,H,this.length);let dt=this[O+--H],Ht=1;for(;H>0&&(Ht*=256);)dt+=this[O+--H]*Ht;return dt},m.prototype.readUint8=m.prototype.readUInt8=function(O,H){return O=O>>>0,H||c(O,1,this.length),this[O]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(O,H){return O=O>>>0,H||c(O,2,this.length),this[O]|this[O+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(O,H){return O=O>>>0,H||c(O,2,this.length),this[O]<<8|this[O+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(O,H){return O=O>>>0,H||c(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(O,H){return O=O>>>0,H||c(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},m.prototype.readBigUInt64LE=Pt(function(O){O=O>>>0,q(O,"offset");let H=this[O],Z=this[O+7];(H===void 0||Z===void 0)&&K(O,this.length-8);let dt=H+this[++O]*2**8+this[++O]*2**16+this[++O]*2**24,Ht=this[++O]+this[++O]*2**8+this[++O]*2**16+Z*2**24;return BigInt(dt)+(BigInt(Ht)<<BigInt(32))}),m.prototype.readBigUInt64BE=Pt(function(O){O=O>>>0,q(O,"offset");let H=this[O],Z=this[O+7];(H===void 0||Z===void 0)&&K(O,this.length-8);let dt=H*2**24+this[++O]*2**16+this[++O]*2**8+this[++O],Ht=this[++O]*2**24+this[++O]*2**16+this[++O]*2**8+Z;return(BigInt(dt)<<BigInt(32))+BigInt(Ht)}),m.prototype.readIntLE=function(O,H,Z){O=O>>>0,H=H>>>0,Z||c(O,H,this.length);let dt=this[O],Ht=1,vt=0;for(;++vt<H&&(Ht*=256);)dt+=this[O+vt]*Ht;return Ht*=128,dt>=Ht&&(dt-=Math.pow(2,8*H)),dt},m.prototype.readIntBE=function(O,H,Z){O=O>>>0,H=H>>>0,Z||c(O,H,this.length);let dt=H,Ht=1,vt=this[O+--dt];for(;dt>0&&(Ht*=256);)vt+=this[O+--dt]*Ht;return Ht*=128,vt>=Ht&&(vt-=Math.pow(2,8*H)),vt},m.prototype.readInt8=function(O,H){return O=O>>>0,H||c(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},m.prototype.readInt16LE=function(O,H){O=O>>>0,H||c(O,2,this.length);let Z=this[O]|this[O+1]<<8;return Z&32768?Z|4294901760:Z},m.prototype.readInt16BE=function(O,H){O=O>>>0,H||c(O,2,this.length);let Z=this[O+1]|this[O]<<8;return Z&32768?Z|4294901760:Z},m.prototype.readInt32LE=function(O,H){return O=O>>>0,H||c(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},m.prototype.readInt32BE=function(O,H){return O=O>>>0,H||c(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},m.prototype.readBigInt64LE=Pt(function(O){O=O>>>0,q(O,"offset");let H=this[O],Z=this[O+7];(H===void 0||Z===void 0)&&K(O,this.length-8);let dt=this[O+4]+this[O+5]*2**8+this[O+6]*2**16+(Z<<24);return(BigInt(dt)<<BigInt(32))+BigInt(H+this[++O]*2**8+this[++O]*2**16+this[++O]*2**24)}),m.prototype.readBigInt64BE=Pt(function(O){O=O>>>0,q(O,"offset");let H=this[O],Z=this[O+7];(H===void 0||Z===void 0)&&K(O,this.length-8);let dt=(H<<24)+this[++O]*2**16+this[++O]*2**8+this[++O];return(BigInt(dt)<<BigInt(32))+BigInt(this[++O]*2**24+this[++O]*2**16+this[++O]*2**8+Z)}),m.prototype.readFloatLE=function(O,H){return O=O>>>0,H||c(O,4,this.length),s.read(this,O,!0,23,4)},m.prototype.readFloatBE=function(O,H){return O=O>>>0,H||c(O,4,this.length),s.read(this,O,!1,23,4)},m.prototype.readDoubleLE=function(O,H){return O=O>>>0,H||c(O,8,this.length),s.read(this,O,!0,52,8)},m.prototype.readDoubleBE=function(O,H){return O=O>>>0,H||c(O,8,this.length),s.read(this,O,!1,52,8)};function A(F,O,H,Z,dt,Ht){if(!m.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>dt||O<Ht)throw new RangeError('"value" argument is out of bounds');if(H+Z>F.length)throw new RangeError("Index out of range")}m.prototype.writeUintLE=m.prototype.writeUIntLE=function(O,H,Z,dt){if(O=+O,H=H>>>0,Z=Z>>>0,!dt){let $t=Math.pow(2,8*Z)-1;A(this,O,H,Z,$t,0)}let Ht=1,vt=0;for(this[H]=O&255;++vt<Z&&(Ht*=256);)this[H+vt]=O/Ht&255;return H+Z},m.prototype.writeUintBE=m.prototype.writeUIntBE=function(O,H,Z,dt){if(O=+O,H=H>>>0,Z=Z>>>0,!dt){let $t=Math.pow(2,8*Z)-1;A(this,O,H,Z,$t,0)}let Ht=Z-1,vt=1;for(this[H+Ht]=O&255;--Ht>=0&&(vt*=256);)this[H+Ht]=O/vt&255;return H+Z},m.prototype.writeUint8=m.prototype.writeUInt8=function(O,H,Z){return O=+O,H=H>>>0,Z||A(this,O,H,1,255,0),this[H]=O&255,H+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(O,H,Z){return O=+O,H=H>>>0,Z||A(this,O,H,2,65535,0),this[H]=O&255,this[H+1]=O>>>8,H+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(O,H,Z){return O=+O,H=H>>>0,Z||A(this,O,H,2,65535,0),this[H]=O>>>8,this[H+1]=O&255,H+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(O,H,Z){return O=+O,H=H>>>0,Z||A(this,O,H,4,4294967295,0),this[H+3]=O>>>24,this[H+2]=O>>>16,this[H+1]=O>>>8,this[H]=O&255,H+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(O,H,Z){return O=+O,H=H>>>0,Z||A(this,O,H,4,4294967295,0),this[H]=O>>>24,this[H+1]=O>>>16,this[H+2]=O>>>8,this[H+3]=O&255,H+4};function R(F,O,H,Z,dt){gt(O,Z,dt,F,H,7);let Ht=Number(O&BigInt(4294967295));F[H++]=Ht,Ht=Ht>>8,F[H++]=Ht,Ht=Ht>>8,F[H++]=Ht,Ht=Ht>>8,F[H++]=Ht;let vt=Number(O>>BigInt(32)&BigInt(4294967295));return F[H++]=vt,vt=vt>>8,F[H++]=vt,vt=vt>>8,F[H++]=vt,vt=vt>>8,F[H++]=vt,H}function $(F,O,H,Z,dt){gt(O,Z,dt,F,H,7);let Ht=Number(O&BigInt(4294967295));F[H+7]=Ht,Ht=Ht>>8,F[H+6]=Ht,Ht=Ht>>8,F[H+5]=Ht,Ht=Ht>>8,F[H+4]=Ht;let vt=Number(O>>BigInt(32)&BigInt(4294967295));return F[H+3]=vt,vt=vt>>8,F[H+2]=vt,vt=vt>>8,F[H+1]=vt,vt=vt>>8,F[H]=vt,H+8}m.prototype.writeBigUInt64LE=Pt(function(O,H=0){return R(this,O,H,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=Pt(function(O,H=0){return $(this,O,H,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeIntLE=function(O,H,Z,dt){if(O=+O,H=H>>>0,!dt){let Vt=Math.pow(2,8*Z-1);A(this,O,H,Z,Vt-1,-Vt)}let Ht=0,vt=1,$t=0;for(this[H]=O&255;++Ht<Z&&(vt*=256);)O<0&&$t===0&&this[H+Ht-1]!==0&&($t=1),this[H+Ht]=(O/vt>>0)-$t&255;return H+Z},m.prototype.writeIntBE=function(O,H,Z,dt){if(O=+O,H=H>>>0,!dt){let Vt=Math.pow(2,8*Z-1);A(this,O,H,Z,Vt-1,-Vt)}let Ht=Z-1,vt=1,$t=0;for(this[H+Ht]=O&255;--Ht>=0&&(vt*=256);)O<0&&$t===0&&this[H+Ht+1]!==0&&($t=1),this[H+Ht]=(O/vt>>0)-$t&255;return H+Z},m.prototype.writeInt8=function(O,H,Z){return O=+O,H=H>>>0,Z||A(this,O,H,1,127,-128),O<0&&(O=255+O+1),this[H]=O&255,H+1},m.prototype.writeInt16LE=function(O,H,Z){return O=+O,H=H>>>0,Z||A(this,O,H,2,32767,-32768),this[H]=O&255,this[H+1]=O>>>8,H+2},m.prototype.writeInt16BE=function(O,H,Z){return O=+O,H=H>>>0,Z||A(this,O,H,2,32767,-32768),this[H]=O>>>8,this[H+1]=O&255,H+2},m.prototype.writeInt32LE=function(O,H,Z){return O=+O,H=H>>>0,Z||A(this,O,H,4,2147483647,-2147483648),this[H]=O&255,this[H+1]=O>>>8,this[H+2]=O>>>16,this[H+3]=O>>>24,H+4},m.prototype.writeInt32BE=function(O,H,Z){return O=+O,H=H>>>0,Z||A(this,O,H,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[H]=O>>>24,this[H+1]=O>>>16,this[H+2]=O>>>8,this[H+3]=O&255,H+4},m.prototype.writeBigInt64LE=Pt(function(O,H=0){return R(this,O,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=Pt(function(O,H=0){return $(this,O,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function L(F,O,H,Z,dt,Ht){if(H+Z>F.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function j(F,O,H,Z,dt){return O=+O,H=H>>>0,dt||L(F,O,H,4),s.write(F,O,H,Z,23,4),H+4}m.prototype.writeFloatLE=function(O,H,Z){return j(this,O,H,!0,Z)},m.prototype.writeFloatBE=function(O,H,Z){return j(this,O,H,!1,Z)};function pt(F,O,H,Z,dt){return O=+O,H=H>>>0,dt||L(F,O,H,8),s.write(F,O,H,Z,52,8),H+8}m.prototype.writeDoubleLE=function(O,H,Z){return pt(this,O,H,!0,Z)},m.prototype.writeDoubleBE=function(O,H,Z){return pt(this,O,H,!1,Z)},m.prototype.copy=function(O,H,Z,dt){if(!m.isBuffer(O))throw new TypeError("argument should be a Buffer");if(Z||(Z=0),!dt&&dt!==0&&(dt=this.length),H>=O.length&&(H=O.length),H||(H=0),dt>0&&dt<Z&&(dt=Z),dt===Z||O.length===0||this.length===0)return 0;if(H<0)throw new RangeError("targetStart out of bounds");if(Z<0||Z>=this.length)throw new RangeError("Index out of range");if(dt<0)throw new RangeError("sourceEnd out of bounds");dt>this.length&&(dt=this.length),O.length-H<dt-Z&&(dt=O.length-H+Z);let Ht=dt-Z;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(H,Z,dt):Uint8Array.prototype.set.call(O,this.subarray(Z,dt),H),Ht},m.prototype.fill=function(O,H,Z,dt){if(typeof O=="string"){if(typeof H=="string"?(dt=H,H=0,Z=this.length):typeof Z=="string"&&(dt=Z,Z=this.length),dt!==void 0&&typeof dt!="string")throw new TypeError("encoding must be a string");if(typeof dt=="string"&&!m.isEncoding(dt))throw new TypeError("Unknown encoding: "+dt);if(O.length===1){let vt=O.charCodeAt(0);(dt==="utf8"&&vt<128||dt==="latin1")&&(O=vt)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(H<0||this.length<H||this.length<Z)throw new RangeError("Out of range index");if(Z<=H)return this;H=H>>>0,Z=Z===void 0?this.length:Z>>>0,O||(O=0);let Ht;if(typeof O=="number")for(Ht=H;Ht<Z;++Ht)this[Ht]=O;else{let vt=m.isBuffer(O)?O:m.from(O,dt),$t=vt.length;if($t===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(Ht=0;Ht<Z-H;++Ht)this[Ht+H]=vt[Ht%$t]}return this};let W={};function N(F,O,H){W[F]=class extends H{constructor(){super(),Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(dt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:dt,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}N("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),N("ERR_INVALID_ARG_TYPE",function(F,O){return`The "${F}" argument must be of type number. Received type ${typeof O}`},TypeError),N("ERR_OUT_OF_RANGE",function(F,O,H){let Z=`The value of "${F}" is out of range.`,dt=H;return Number.isInteger(H)&&Math.abs(H)>2**32?dt=X(String(H)):typeof H=="bigint"&&(dt=String(H),(H>BigInt(2)**BigInt(32)||H<-(BigInt(2)**BigInt(32)))&&(dt=X(dt)),dt+="n"),Z+=` It must be ${O}. Received ${dt}`,Z},RangeError);function X(F){let O="",H=F.length,Z=F[0]==="-"?1:0;for(;H>=Z+4;H-=3)O=`_${F.slice(H-3,H)}${O}`;return`${F.slice(0,H)}${O}`}function jt(F,O,H){q(O,"offset"),(F[O]===void 0||F[O+H]===void 0)&&K(O,F.length-(H+1))}function gt(F,O,H,Z,dt,Ht){if(F>H||F<O){let vt=typeof O=="bigint"?"n":"",$t;throw Ht>3?O===0||O===BigInt(0)?$t=`>= 0${vt} and < 2${vt} ** ${(Ht+1)*8}${vt}`:$t=`>= -(2${vt} ** ${(Ht+1)*8-1}${vt}) and < 2 ** ${(Ht+1)*8-1}${vt}`:$t=`>= ${O}${vt} and <= ${H}${vt}`,new W.ERR_OUT_OF_RANGE("value",$t,F)}jt(Z,dt,Ht)}function q(F,O){if(typeof F!="number")throw new W.ERR_INVALID_ARG_TYPE(O,"number",F)}function K(F,O,H){throw Math.floor(F)!==F?(q(F,H),new W.ERR_OUT_OF_RANGE(H||"offset","an integer",F)):O<0?new W.ERR_BUFFER_OUT_OF_BOUNDS:new W.ERR_OUT_OF_RANGE(H||"offset",`>= ${H?1:0} and <= ${O}`,F)}let J=/[^+/0-9A-Za-z-_]/g;function bt(F){if(F=F.split("=")[0],F=F.trim().replace(J,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function Kt(F,O){O=O||1/0;let H,Z=F.length,dt=null,Ht=[];for(let vt=0;vt<Z;++vt){if(H=F.charCodeAt(vt),H>55295&&H<57344){if(!dt){if(H>56319){(O-=3)>-1&&Ht.push(239,191,189);continue}else if(vt+1===Z){(O-=3)>-1&&Ht.push(239,191,189);continue}dt=H;continue}if(H<56320){(O-=3)>-1&&Ht.push(239,191,189),dt=H;continue}H=(dt-55296<<10|H-56320)+65536}else dt&&(O-=3)>-1&&Ht.push(239,191,189);if(dt=null,H<128){if((O-=1)<0)break;Ht.push(H)}else if(H<2048){if((O-=2)<0)break;Ht.push(H>>6|192,H&63|128)}else if(H<65536){if((O-=3)<0)break;Ht.push(H>>12|224,H>>6&63|128,H&63|128)}else if(H<1114112){if((O-=4)<0)break;Ht.push(H>>18|240,H>>12&63|128,H>>6&63|128,H&63|128)}else throw new Error("Invalid code point")}return Ht}function mt(F){let O=[];for(let H=0;H<F.length;++H)O.push(F.charCodeAt(H)&255);return O}function Mt(F,O){let H,Z,dt,Ht=[];for(let vt=0;vt<F.length&&!((O-=2)<0);++vt)H=F.charCodeAt(vt),Z=H>>8,dt=H%256,Ht.push(dt),Ht.push(Z);return Ht}function Wt(F){return i.toByteArray(bt(F))}function wt(F,O,H,Z){let dt;for(dt=0;dt<Z&&!(dt+H>=O.length||dt>=F.length);++dt)O[dt+H]=F[dt];return dt}function Tt(F,O){return F instanceof O||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===O.name}function Zt(F){return F!==F}let _t=function(){let F="0123456789abcdef",O=new Array(256);for(let H=0;H<16;++H){let Z=H*16;for(let dt=0;dt<16;++dt)O[Z+dt]=F[H]+F[dt]}return O}();function Pt(F){return typeof BigInt>"u"?Jt:F}function Jt(){throw new Error("BigInt not supported")}return fs}var Tr=SC();Tr.Buffer;Tr.INSPECT_MAX_BYTES;Tr.kMaxLength;var Il={},y4=!1;function Je(){return y4||(y4=!0,typeof Object.create=="function"?Il=function(s,a){a&&(s.super_=a,s.prototype=Object.create(a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:Il=function(s,a){if(a){s.super_=a;var u=function(){};u.prototype=a.prototype,s.prototype=new u,s.prototype.constructor=s}}),Il}var g1={},w4=!1;function D4(){return w4||(w4=!0,g1=Xr.EventEmitter),g1}var b1={},M4=!1;function xC(){if(M4)return b1;M4=!0;function i(_,x){var E=Object.keys(_);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(_);x&&(k=k.filter(function(B){return Object.getOwnPropertyDescriptor(_,B).enumerable})),E.push.apply(E,k)}return E}function s(_){for(var x=1;x<arguments.length;x++){var E=arguments[x]!=null?arguments[x]:{};x%2?i(Object(E),!0).forEach(function(k){a(_,k,E[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(E)):i(Object(E)).forEach(function(k){Object.defineProperty(_,k,Object.getOwnPropertyDescriptor(E,k))})}return _}function a(_,x,E){return x in _?Object.defineProperty(_,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):_[x]=E,_}function u(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}function n(_,x){for(var E=0;E<x.length;E++){var k=x[E];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}function p(_,x,E){return x&&n(_.prototype,x),E&&n(_,E),_}var m=Tr,y=m.Buffer,M=oe,b=M.inspect,g=b&&b.custom||"inspect";function S(_,x,E){y.prototype.copy.call(_,x,E)}return b1=function(){function _(){u(this,_),this.head=null,this.tail=null,this.length=0}return p(_,[{key:"push",value:function(E){var k={data:E,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(E){var k={data:E,next:this.head};this.length===0&&(this.tail=k),this.head=k,++this.length}},{key:"shift",value:function(){if(this.length!==0){var E=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,E}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(E){if(this.length===0)return"";for(var k=this.head,B=""+k.data;k=k.next;)B+=E+k.data;return B}},{key:"concat",value:function(E){if(this.length===0)return y.alloc(0);for(var k=y.allocUnsafe(E>>>0),B=this.head,T=0;B;)S(B.data,k,T),T+=B.data.length,B=B.next;return k}},{key:"consume",value:function(E,k){var B;return E<this.head.data.length?(B=this.head.data.slice(0,E),this.head.data=this.head.data.slice(E)):E===this.head.data.length?B=this.shift():B=k?this._getString(E):this._getBuffer(E),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(E){var k=this.head,B=1,T=k.data;for(E-=T.length;k=k.next;){var C=k.data,P=E>C.length?C.length:E;if(P===C.length?T+=C:T+=C.slice(0,E),E-=P,E===0){P===C.length?(++B,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=C.slice(P));break}++B}return this.length-=B,T}},{key:"_getBuffer",value:function(E){var k=y.allocUnsafe(E),B=this.head,T=1;for(B.data.copy(k),E-=B.data.length;B=B.next;){var C=B.data,P=E>C.length?C.length:E;if(C.copy(k,k.length-E,0,P),E-=P,E===0){P===C.length?(++T,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=C.slice(P));break}++T}return this.length-=T,k}},{key:g,value:function(E,k){return b(this,s({},k,{depth:0,customInspect:!1}))}}]),_}(),b1}var y1={},_4=!1;function L4(){if(_4)return y1;_4=!0;var i=sr;function s(y,M){var b=this,g=this._readableState&&this._readableState.destroyed,S=this._writableState&&this._writableState.destroyed;return g||S?(M?M(y):y&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(p,this,y)):i.nextTick(p,this,y)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(_){!M&&_?b._writableState?b._writableState.errorEmitted?i.nextTick(u,b):(b._writableState.errorEmitted=!0,i.nextTick(a,b,_)):i.nextTick(a,b,_):M?(i.nextTick(u,b),M(_)):i.nextTick(u,b)}),this)}function a(y,M){p(y,M),u(y)}function u(y){y._writableState&&!y._writableState.emitClose||y._readableState&&!y._readableState.emitClose||y.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function p(y,M){y.emit("error",M)}function m(y,M){var b=y._readableState,g=y._writableState;b&&b.autoDestroy||g&&g.autoDestroy?y.destroy(M):y.emit("error",M)}return y1={destroy:s,undestroy:n,errorOrDestroy:m},y1}var w1={},S4=!1;function Sh(){if(S4)return w1;S4=!0;let i={};function s(m,y,M){M||(M=Error);function b(S,_,x){return typeof y=="string"?y:y(S,_,x)}class g extends M{constructor(_,x,E){super(b(_,x,E))}}g.prototype.name=M.name,g.prototype.code=m,i[m]=g}function a(m,y){if(Array.isArray(m)){let M=m.length;return m=m.map(b=>String(b)),M>2?`one of ${y} ${m.slice(0,M-1).join(", ")}, or `+m[M-1]:M===2?`one of ${y} ${m[0]} or ${m[1]}`:`of ${y} ${m[0]}`}else return`of ${y} ${String(m)}`}function u(m,y,M){return m.substr(!M||M<0?0:+M,y.length)===y}function n(m,y,M){return(M===void 0||M>m.length)&&(M=m.length),m.substring(M-y.length,M)===y}function p(m,y,M){return typeof M!="number"&&(M=0),M+y.length>m.length?!1:m.indexOf(y,M)!==-1}return s("ERR_INVALID_OPT_VALUE",function(m,y){return'The value "'+y+'" is invalid for option "'+m+'"'},TypeError),s("ERR_INVALID_ARG_TYPE",function(m,y,M){let b;typeof y=="string"&&u(y,"not ")?(b="must not be",y=y.replace(/^not /,"")):b="must be";let g;if(n(m," argument"))g=`The ${m} ${b} ${a(y,"type")}`;else{let S=p(m,".")?"property":"argument";g=`The "${m}" ${S} ${b} ${a(y,"type")}`}return g+=`. Received type ${typeof M}`,g},TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",function(m){return"The "+m+" method is not implemented"}),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",function(m){return"Cannot call "+m+" after a stream was destroyed"}),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",function(m){return"Unknown encoding: "+m},TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),w1.codes=i,w1}var M1={},x4=!1;function O4(){if(x4)return M1;x4=!0;var i=Sh().codes.ERR_INVALID_OPT_VALUE;function s(u,n,p){return u.highWaterMark!=null?u.highWaterMark:n?u[p]:null}function a(u,n,p,m){var y=s(n,m,p);if(y!=null){if(!(isFinite(y)&&Math.floor(y)===y)||y<0){var M=m?p:"highWaterMark";throw new i(M,y)}return Math.floor(y)}return u.objectMode?16:16*1024}return M1={getHighWaterMark:a},M1}var _1={},E4=!1,S1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function EC(){if(E4)return _1;E4=!0,_1=i;function i(a,u){if(s("noDeprecation"))return a;var n=!1;function p(){if(!n){if(s("throwDeprecation"))throw new Error(u);s("traceDeprecation")?console.trace(u):console.warn(u),n=!0}return a.apply(this||S1,arguments)}return p}function s(a){try{if(!S1.localStorage)return!1}catch{return!1}var u=S1.localStorage[a];return u==null?!1:String(u).toLowerCase()==="true"}return _1}var x1={},A4=!1,AC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function C1(){if(A4)return x1;A4=!0;var i=sr;x1=z;function s(W){var N=this;this.next=null,this.entry=null,this.finish=function(){pt(N,W)}}var a;z.WritableState=I;var u={deprecate:EC()},n=D4(),p=Tr.Buffer,m=AC.Uint8Array||function(){};function y(W){return p.from(W)}function M(W){return p.isBuffer(W)||W instanceof m}var b=L4(),g=O4(),S=g.getHighWaterMark,_=Sh().codes,x=_.ERR_INVALID_ARG_TYPE,E=_.ERR_METHOD_NOT_IMPLEMENTED,k=_.ERR_MULTIPLE_CALLBACK,B=_.ERR_STREAM_CANNOT_PIPE,T=_.ERR_STREAM_DESTROYED,C=_.ERR_STREAM_NULL_VALUES,P=_.ERR_STREAM_WRITE_AFTER_END,G=_.ERR_UNKNOWN_ENCODING,U=b.errorOrDestroy;Je()(z,n);function V(){}function I(W,N,X){a=a||us(),W=W||{},typeof X!="boolean"&&(X=N instanceof a),this.objectMode=!!W.objectMode,X&&(this.objectMode=this.objectMode||!!W.writableObjectMode),this.highWaterMark=S(this,W,"writableHighWaterMark",X),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var jt=W.decodeStrings===!1;this.decodeStrings=!jt,this.defaultEncoding=W.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(gt){w(N,gt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=W.emitClose!==!1,this.autoDestroy=!!W.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}I.prototype.getBuffer=function(){for(var N=this.bufferedRequest,X=[];N;)X.push(N),N=N.next;return X},function(){try{Object.defineProperty(I.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var D;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(D=Function.prototype[Symbol.hasInstance],Object.defineProperty(z,Symbol.hasInstance,{value:function(N){return D.call(this,N)?!0:this!==z?!1:N&&N._writableState instanceof I}})):D=function(N){return N instanceof this};function z(W){a=a||us();var N=this instanceof a;if(!N&&!D.call(z,this))return new z(W);this._writableState=new I(W,this,N),this.writable=!0,W&&(typeof W.write=="function"&&(this._write=W.write),typeof W.writev=="function"&&(this._writev=W.writev),typeof W.destroy=="function"&&(this._destroy=W.destroy),typeof W.final=="function"&&(this._final=W.final)),n.call(this)}z.prototype.pipe=function(){U(this,new B)};function d(W,N){var X=new P;U(W,X),i.nextTick(N,X)}function t(W,N,X,jt){var gt;return X===null?gt=new C:typeof X!="string"&&!N.objectMode&&(gt=new x("chunk",["string","Buffer"],X)),gt?(U(W,gt),i.nextTick(jt,gt),!1):!0}z.prototype.write=function(W,N,X){var jt=this._writableState,gt=!1,q=!jt.objectMode&&M(W);return q&&!p.isBuffer(W)&&(W=y(W)),typeof N=="function"&&(X=N,N=null),q?N="buffer":N||(N=jt.defaultEncoding),typeof X!="function"&&(X=V),jt.ending?d(this,X):(q||t(this,jt,W,X))&&(jt.pendingcb++,gt=o(this,jt,q,W,N,X)),gt},z.prototype.cork=function(){this._writableState.corked++},z.prototype.uncork=function(){var W=this._writableState;W.corked&&(W.corked--,!W.writing&&!W.corked&&!W.bufferProcessing&&W.bufferedRequest&&c(this,W))},z.prototype.setDefaultEncoding=function(N){if(typeof N=="string"&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new G(N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function r(W,N,X){return!W.objectMode&&W.decodeStrings!==!1&&typeof N=="string"&&(N=p.from(N,X)),N}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(W,N,X,jt,gt,q){if(!X){var K=r(N,jt,gt);jt!==K&&(X=!0,gt="buffer",jt=K)}var J=N.objectMode?1:jt.length;N.length+=J;var bt=N.length<N.highWaterMark;if(bt||(N.needDrain=!0),N.writing||N.corked){var Kt=N.lastBufferedRequest;N.lastBufferedRequest={chunk:jt,encoding:gt,isBuf:X,callback:q,next:null},Kt?Kt.next=N.lastBufferedRequest:N.bufferedRequest=N.lastBufferedRequest,N.bufferedRequestCount+=1}else h(W,N,!1,J,jt,gt,q);return bt}function h(W,N,X,jt,gt,q,K){N.writelen=jt,N.writecb=K,N.writing=!0,N.sync=!0,N.destroyed?N.onwrite(new T("write")):X?W._writev(gt,N.onwrite):W._write(gt,q,N.onwrite),N.sync=!1}function f(W,N,X,jt,gt){--N.pendingcb,X?(i.nextTick(gt,jt),i.nextTick(L,W,N),W._writableState.errorEmitted=!0,U(W,jt)):(gt(jt),W._writableState.errorEmitted=!0,U(W,jt),L(W,N))}function v(W){W.writing=!1,W.writecb=null,W.length-=W.writelen,W.writelen=0}function w(W,N){var X=W._writableState,jt=X.sync,gt=X.writecb;if(typeof gt!="function")throw new k;if(v(X),N)f(W,X,jt,N,gt);else{var q=A(X)||W.destroyed;!q&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest&&c(W,X),jt?i.nextTick(l,W,X,q,gt):l(W,X,q,gt)}}function l(W,N,X,jt){X||e(W,N),N.pendingcb--,jt(),L(W,N)}function e(W,N){N.length===0&&N.needDrain&&(N.needDrain=!1,W.emit("drain"))}function c(W,N){N.bufferProcessing=!0;var X=N.bufferedRequest;if(W._writev&&X&&X.next){var jt=N.bufferedRequestCount,gt=new Array(jt),q=N.corkedRequestsFree;q.entry=X;for(var K=0,J=!0;X;)gt[K]=X,X.isBuf||(J=!1),X=X.next,K+=1;gt.allBuffers=J,h(W,N,!0,N.length,gt,"",q.finish),N.pendingcb++,N.lastBufferedRequest=null,q.next?(N.corkedRequestsFree=q.next,q.next=null):N.corkedRequestsFree=new s(N),N.bufferedRequestCount=0}else{for(;X;){var bt=X.chunk,Kt=X.encoding,mt=X.callback,Mt=N.objectMode?1:bt.length;if(h(W,N,!1,Mt,bt,Kt,mt),X=X.next,N.bufferedRequestCount--,N.writing)break}X===null&&(N.lastBufferedRequest=null)}N.bufferedRequest=X,N.bufferProcessing=!1}z.prototype._write=function(W,N,X){X(new E("_write()"))},z.prototype._writev=null,z.prototype.end=function(W,N,X){var jt=this._writableState;return typeof W=="function"?(X=W,W=null,N=null):typeof N=="function"&&(X=N,N=null),W!=null&&this.write(W,N),jt.corked&&(jt.corked=1,this.uncork()),jt.ending||j(this,jt,X),this},Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function A(W){return W.ending&&W.length===0&&W.bufferedRequest===null&&!W.finished&&!W.writing}function R(W,N){W._final(function(X){N.pendingcb--,X&&U(W,X),N.prefinished=!0,W.emit("prefinish"),L(W,N)})}function $(W,N){!N.prefinished&&!N.finalCalled&&(typeof W._final=="function"&&!N.destroyed?(N.pendingcb++,N.finalCalled=!0,i.nextTick(R,W,N)):(N.prefinished=!0,W.emit("prefinish")))}function L(W,N){var X=A(N);if(X&&($(W,N),N.pendingcb===0&&(N.finished=!0,W.emit("finish"),N.autoDestroy))){var jt=W._readableState;(!jt||jt.autoDestroy&&jt.endEmitted)&&W.destroy()}return X}function j(W,N,X){N.ending=!0,L(W,N),X&&(N.finished?i.nextTick(X):W.once("finish",X)),N.ended=!0,W.writable=!1}function pt(W,N,X){var jt=W.entry;for(W.entry=null;jt;){var gt=jt.callback;N.pendingcb--,gt(X),jt=jt.next}N.corkedRequestsFree.next=W}return Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),z.prototype.destroy=b.destroy,z.prototype._undestroy=b.undestroy,z.prototype._destroy=function(W,N){N(W)},x1}var E1={},k4=!1;function us(){if(k4)return E1;k4=!0;var i=sr,s=Object.keys||function(g){var S=[];for(var _ in g)S.push(_);return S};E1=y;var a=P1(),u=C1();Je()(y,a);for(var n=s(u.prototype),p=0;p<n.length;p++){var m=n[p];y.prototype[m]||(y.prototype[m]=u.prototype[m])}function y(g){if(!(this instanceof y))return new y(g);a.call(this,g),u.call(this,g),this.allowHalfOpen=!0,g&&(g.readable===!1&&(this.readable=!1),g.writable===!1&&(this.writable=!1),g.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",M)))}Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function M(){this._writableState.ended||i.nextTick(b,this)}function b(g){g.end()}return Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(S){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=S,this._writableState.destroyed=S)}}),E1}var A1={},R4=!1;function Cl(){if(R4)return A1;R4=!0;var i=Sh().codes.ERR_STREAM_PREMATURE_CLOSE;function s(p){var m=!1;return function(){if(!m){m=!0;for(var y=arguments.length,M=new Array(y),b=0;b<y;b++)M[b]=arguments[b];p.apply(this,M)}}}function a(){}function u(p){return p.setHeader&&typeof p.abort=="function"}function n(p,m,y){if(typeof m=="function")return n(p,null,m);m||(m={}),y=s(y||a);var M=m.readable||m.readable!==!1&&p.readable,b=m.writable||m.writable!==!1&&p.writable,g=function(){p.writable||_()},S=p._writableState&&p._writableState.finished,_=function(){b=!1,S=!0,M||y.call(p)},x=p._readableState&&p._readableState.endEmitted,E=function(){M=!1,x=!0,b||y.call(p)},k=function(P){y.call(p,P)},B=function(){var P;if(M&&!x)return(!p._readableState||!p._readableState.ended)&&(P=new i),y.call(p,P);if(b&&!S)return(!p._writableState||!p._writableState.ended)&&(P=new i),y.call(p,P)},T=function(){p.req.on("finish",_)};return u(p)?(p.on("complete",_),p.on("abort",B),p.req?T():p.on("request",T)):b&&!p._writableState&&(p.on("end",g),p.on("close",g)),p.on("end",E),p.on("finish",_),m.error!==!1&&p.on("error",k),p.on("close",B),function(){p.removeListener("complete",_),p.removeListener("abort",B),p.removeListener("request",T),p.req&&p.req.removeListener("finish",_),p.removeListener("end",g),p.removeListener("close",g),p.removeListener("finish",_),p.removeListener("end",E),p.removeListener("error",k),p.removeListener("close",B)}}return A1=n,A1}var k1={},B4=!1;function kC(){if(B4)return k1;B4=!0;var i=sr,s;function a(C,P,G){return P in C?Object.defineProperty(C,P,{value:G,enumerable:!0,configurable:!0,writable:!0}):C[P]=G,C}var u=Cl(),n=Symbol("lastResolve"),p=Symbol("lastReject"),m=Symbol("error"),y=Symbol("ended"),M=Symbol("lastPromise"),b=Symbol("handlePromise"),g=Symbol("stream");function S(C,P){return{value:C,done:P}}function _(C){var P=C[n];if(P!==null){var G=C[g].read();G!==null&&(C[M]=null,C[n]=null,C[p]=null,P(S(G,!1)))}}function x(C){i.nextTick(_,C)}function E(C,P){return function(G,U){C.then(function(){if(P[y]){G(S(void 0,!0));return}P[b](G,U)},U)}}var k=Object.getPrototypeOf(function(){}),B=Object.setPrototypeOf((s={get stream(){return this[g]},next:function(){var P=this,G=this[m];if(G!==null)return Promise.reject(G);if(this[y])return Promise.resolve(S(void 0,!0));if(this[g].destroyed)return new Promise(function(D,z){i.nextTick(function(){P[m]?z(P[m]):D(S(void 0,!0))})});var U=this[M],V;if(U)V=new Promise(E(U,this));else{var I=this[g].read();if(I!==null)return Promise.resolve(S(I,!1));V=new Promise(this[b])}return this[M]=V,V}},a(s,Symbol.asyncIterator,function(){return this}),a(s,"return",function(){var P=this;return new Promise(function(G,U){P[g].destroy(null,function(V){if(V){U(V);return}G(S(void 0,!0))})})}),s),k),T=function(P){var G,U=Object.create(B,(G={},a(G,g,{value:P,writable:!0}),a(G,n,{value:null,writable:!0}),a(G,p,{value:null,writable:!0}),a(G,m,{value:null,writable:!0}),a(G,y,{value:P._readableState.endEmitted,writable:!0}),a(G,b,{value:function(I,D){var z=U[g].read();z?(U[M]=null,U[n]=null,U[p]=null,I(S(z,!1))):(U[n]=I,U[p]=D)},writable:!0}),G));return U[M]=null,u(P,function(V){if(V&&V.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=U[p];I!==null&&(U[M]=null,U[n]=null,U[p]=null,I(V)),U[m]=V;return}var D=U[n];D!==null&&(U[M]=null,U[n]=null,U[p]=null,D(S(void 0,!0))),U[y]=!0}),P.on("readable",x.bind(null,U)),U};return k1=T,k1}var R1={},T4=!1;function RC(){return T4||(T4=!0,R1=function(){throw new Error("Readable.from is not available in the browser")}),R1}var B1={},$4=!1,BC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function P1(){if($4)return B1;$4=!0;var i=sr;B1=d;var s;d.ReadableState=z,Xr.EventEmitter;var a=function(K,J){return K.listeners(J).length},u=D4(),n=Tr.Buffer,p=BC.Uint8Array||function(){};function m(q){return n.from(q)}function y(q){return n.isBuffer(q)||q instanceof p}var M=oe,b;M&&M.debuglog?b=M.debuglog("stream"):b=function(){};var g=xC(),S=L4(),_=O4(),x=_.getHighWaterMark,E=Sh().codes,k=E.ERR_INVALID_ARG_TYPE,B=E.ERR_STREAM_PUSH_AFTER_EOF,T=E.ERR_METHOD_NOT_IMPLEMENTED,C=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,P,G,U;Je()(d,u);var V=S.errorOrDestroy,I=["error","close","destroy","pause","resume"];function D(q,K,J){if(typeof q.prependListener=="function")return q.prependListener(K,J);!q._events||!q._events[K]?q.on(K,J):Array.isArray(q._events[K])?q._events[K].unshift(J):q._events[K]=[J,q._events[K]]}function z(q,K,J){s=s||us(),q=q||{},typeof J!="boolean"&&(J=K instanceof s),this.objectMode=!!q.objectMode,J&&(this.objectMode=this.objectMode||!!q.readableObjectMode),this.highWaterMark=x(this,q,"readableHighWaterMark",J),this.buffer=new g,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.paused=!0,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.destroyed=!1,this.defaultEncoding=q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,q.encoding&&(P||(P=_i.StringDecoder),this.decoder=new P(q.encoding),this.encoding=q.encoding)}function d(q){if(s=s||us(),!(this instanceof d))return new d(q);var K=this instanceof s;this._readableState=new z(q,this,K),this.readable=!0,q&&(typeof q.read=="function"&&(this._read=q.read),typeof q.destroy=="function"&&(this._destroy=q.destroy)),u.call(this)}Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(K){this._readableState&&(this._readableState.destroyed=K)}}),d.prototype.destroy=S.destroy,d.prototype._undestroy=S.undestroy,d.prototype._destroy=function(q,K){K(q)},d.prototype.push=function(q,K){var J=this._readableState,bt;return J.objectMode?bt=!0:typeof q=="string"&&(K=K||J.defaultEncoding,K!==J.encoding&&(q=n.from(q,K),K=""),bt=!0),t(this,q,K,!1,bt)},d.prototype.unshift=function(q){return t(this,q,null,!0,!1)};function t(q,K,J,bt,Kt){b("readableAddChunk",K);var mt=q._readableState;if(K===null)mt.reading=!1,w(q,mt);else{var Mt;if(Kt||(Mt=o(mt,K)),Mt)V(q,Mt);else if(mt.objectMode||K&&K.length>0)if(typeof K!="string"&&!mt.objectMode&&Object.getPrototypeOf(K)!==n.prototype&&(K=m(K)),bt)mt.endEmitted?V(q,new C):r(q,mt,K,!0);else if(mt.ended)V(q,new B);else{if(mt.destroyed)return!1;mt.reading=!1,mt.decoder&&!J?(K=mt.decoder.write(K),mt.objectMode||K.length!==0?r(q,mt,K,!1):c(q,mt)):r(q,mt,K,!1)}else bt||(mt.reading=!1,c(q,mt))}return!mt.ended&&(mt.length<mt.highWaterMark||mt.length===0)}function r(q,K,J,bt){K.flowing&&K.length===0&&!K.sync?(K.awaitDrain=0,q.emit("data",J)):(K.length+=K.objectMode?1:J.length,bt?K.buffer.unshift(J):K.buffer.push(J),K.needReadable&&l(q)),c(q,K)}function o(q,K){var J;return!y(K)&&typeof K!="string"&&K!==void 0&&!q.objectMode&&(J=new k("chunk",["string","Buffer","Uint8Array"],K)),J}d.prototype.isPaused=function(){return this._readableState.flowing===!1},d.prototype.setEncoding=function(q){P||(P=_i.StringDecoder);var K=new P(q);this._readableState.decoder=K,this._readableState.encoding=this._readableState.decoder.encoding;for(var J=this._readableState.buffer.head,bt="";J!==null;)bt+=K.write(J.data),J=J.next;return this._readableState.buffer.clear(),bt!==""&&this._readableState.buffer.push(bt),this._readableState.length=bt.length,this};var h=1073741824;function f(q){return q>=h?q=h:(q--,q|=q>>>1,q|=q>>>2,q|=q>>>4,q|=q>>>8,q|=q>>>16,q++),q}function v(q,K){return q<=0||K.length===0&&K.ended?0:K.objectMode?1:q!==q?K.flowing&&K.length?K.buffer.head.data.length:K.length:(q>K.highWaterMark&&(K.highWaterMark=f(q)),q<=K.length?q:K.ended?K.length:(K.needReadable=!0,0))}d.prototype.read=function(q){b("read",q),q=parseInt(q,10);var K=this._readableState,J=q;if(q!==0&&(K.emittedReadable=!1),q===0&&K.needReadable&&((K.highWaterMark!==0?K.length>=K.highWaterMark:K.length>0)||K.ended))return b("read: emitReadable",K.length,K.ended),K.length===0&&K.ended?X(this):l(this),null;if(q=v(q,K),q===0&&K.ended)return K.length===0&&X(this),null;var bt=K.needReadable;b("need readable",bt),(K.length===0||K.length-q<K.highWaterMark)&&(bt=!0,b("length less than watermark",bt)),K.ended||K.reading?(bt=!1,b("reading or ended",bt)):bt&&(b("do read"),K.reading=!0,K.sync=!0,K.length===0&&(K.needReadable=!0),this._read(K.highWaterMark),K.sync=!1,K.reading||(q=v(J,K)));var Kt;return q>0?Kt=N(q,K):Kt=null,Kt===null?(K.needReadable=K.length<=K.highWaterMark,q=0):(K.length-=q,K.awaitDrain=0),K.length===0&&(K.ended||(K.needReadable=!0),J!==q&&K.ended&&X(this)),Kt!==null&&this.emit("data",Kt),Kt};function w(q,K){if(b("onEofChunk"),!K.ended){if(K.decoder){var J=K.decoder.end();J&&J.length&&(K.buffer.push(J),K.length+=K.objectMode?1:J.length)}K.ended=!0,K.sync?l(q):(K.needReadable=!1,K.emittedReadable||(K.emittedReadable=!0,e(q)))}}function l(q){var K=q._readableState;b("emitReadable",K.needReadable,K.emittedReadable),K.needReadable=!1,K.emittedReadable||(b("emitReadable",K.flowing),K.emittedReadable=!0,i.nextTick(e,q))}function e(q){var K=q._readableState;b("emitReadable_",K.destroyed,K.length,K.ended),!K.destroyed&&(K.length||K.ended)&&(q.emit("readable"),K.emittedReadable=!1),K.needReadable=!K.flowing&&!K.ended&&K.length<=K.highWaterMark,W(q)}function c(q,K){K.readingMore||(K.readingMore=!0,i.nextTick(A,q,K))}function A(q,K){for(;!K.reading&&!K.ended&&(K.length<K.highWaterMark||K.flowing&&K.length===0);){var J=K.length;if(b("maybeReadMore read 0"),q.read(0),J===K.length)break}K.readingMore=!1}d.prototype._read=function(q){V(this,new T("_read()"))},d.prototype.pipe=function(q,K){var J=this,bt=this._readableState;switch(bt.pipesCount){case 0:bt.pipes=q;break;case 1:bt.pipes=[bt.pipes,q];break;default:bt.pipes.push(q);break}bt.pipesCount+=1,b("pipe count=%d opts=%j",bt.pipesCount,K);var Kt=(!K||K.end!==!1)&&q!==i.stdout&&q!==i.stderr,mt=Kt?Wt:O;bt.endEmitted?i.nextTick(mt):J.once("end",mt),q.on("unpipe",Mt);function Mt(H,Z){b("onunpipe"),H===J&&Z&&Z.hasUnpiped===!1&&(Z.hasUnpiped=!0,Zt())}function Wt(){b("onend"),q.end()}var wt=R(J);q.on("drain",wt);var Tt=!1;function Zt(){b("cleanup"),q.removeListener("close",Jt),q.removeListener("finish",F),q.removeListener("drain",wt),q.removeListener("error",Pt),q.removeListener("unpipe",Mt),J.removeListener("end",Wt),J.removeListener("end",O),J.removeListener("data",_t),Tt=!0,bt.awaitDrain&&(!q._writableState||q._writableState.needDrain)&&wt()}J.on("data",_t);function _t(H){b("ondata");var Z=q.write(H);b("dest.write",Z),Z===!1&&((bt.pipesCount===1&&bt.pipes===q||bt.pipesCount>1&&gt(bt.pipes,q)!==-1)&&!Tt&&(b("false write response, pause",bt.awaitDrain),bt.awaitDrain++),J.pause())}function Pt(H){b("onerror",H),O(),q.removeListener("error",Pt),a(q,"error")===0&&V(q,H)}D(q,"error",Pt);function Jt(){q.removeListener("finish",F),O()}q.once("close",Jt);function F(){b("onfinish"),q.removeListener("close",Jt),O()}q.once("finish",F);function O(){b("unpipe"),J.unpipe(q)}return q.emit("pipe",J),bt.flowing||(b("pipe resume"),J.resume()),q};function R(q){return function(){var J=q._readableState;b("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&a(q,"data")&&(J.flowing=!0,W(q))}}d.prototype.unpipe=function(q){var K=this._readableState,J={hasUnpiped:!1};if(K.pipesCount===0)return this;if(K.pipesCount===1)return q&&q!==K.pipes?this:(q||(q=K.pipes),K.pipes=null,K.pipesCount=0,K.flowing=!1,q&&q.emit("unpipe",this,J),this);if(!q){var bt=K.pipes,Kt=K.pipesCount;K.pipes=null,K.pipesCount=0,K.flowing=!1;for(var mt=0;mt<Kt;mt++)bt[mt].emit("unpipe",this,{hasUnpiped:!1});return this}var Mt=gt(K.pipes,q);return Mt===-1?this:(K.pipes.splice(Mt,1),K.pipesCount-=1,K.pipesCount===1&&(K.pipes=K.pipes[0]),q.emit("unpipe",this,J),this)},d.prototype.on=function(q,K){var J=u.prototype.on.call(this,q,K),bt=this._readableState;return q==="data"?(bt.readableListening=this.listenerCount("readable")>0,bt.flowing!==!1&&this.resume()):q==="readable"&&!bt.endEmitted&&!bt.readableListening&&(bt.readableListening=bt.needReadable=!0,bt.flowing=!1,bt.emittedReadable=!1,b("on readable",bt.length,bt.reading),bt.length?l(this):bt.reading||i.nextTick(L,this)),J},d.prototype.addListener=d.prototype.on,d.prototype.removeListener=function(q,K){var J=u.prototype.removeListener.call(this,q,K);return q==="readable"&&i.nextTick($,this),J},d.prototype.removeAllListeners=function(q){var K=u.prototype.removeAllListeners.apply(this,arguments);return(q==="readable"||q===void 0)&&i.nextTick($,this),K};function $(q){var K=q._readableState;K.readableListening=q.listenerCount("readable")>0,K.resumeScheduled&&!K.paused?K.flowing=!0:q.listenerCount("data")>0&&q.resume()}function L(q){b("readable nexttick read 0"),q.read(0)}d.prototype.resume=function(){var q=this._readableState;return q.flowing||(b("resume"),q.flowing=!q.readableListening,j(this,q)),q.paused=!1,this};function j(q,K){K.resumeScheduled||(K.resumeScheduled=!0,i.nextTick(pt,q,K))}function pt(q,K){b("resume",K.reading),K.reading||q.read(0),K.resumeScheduled=!1,q.emit("resume"),W(q),K.flowing&&!K.reading&&q.read(0)}d.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function W(q){var K=q._readableState;for(b("flow",K.flowing);K.flowing&&q.read()!==null;);}d.prototype.wrap=function(q){var K=this,J=this._readableState,bt=!1;q.on("end",function(){if(b("wrapped end"),J.decoder&&!J.ended){var Mt=J.decoder.end();Mt&&Mt.length&&K.push(Mt)}K.push(null)}),q.on("data",function(Mt){if(b("wrapped data"),J.decoder&&(Mt=J.decoder.write(Mt)),!(J.objectMode&&Mt==null)&&!(!J.objectMode&&(!Mt||!Mt.length))){var Wt=K.push(Mt);Wt||(bt=!0,q.pause())}});for(var Kt in q)this[Kt]===void 0&&typeof q[Kt]=="function"&&(this[Kt]=function(Wt){return function(){return q[Wt].apply(q,arguments)}}(Kt));for(var mt=0;mt<I.length;mt++)q.on(I[mt],this.emit.bind(this,I[mt]));return this._read=function(Mt){b("wrapped _read",Mt),bt&&(bt=!1,q.resume())},this},typeof Symbol=="function"&&(d.prototype[Symbol.asyncIterator]=function(){return G===void 0&&(G=kC()),G(this)}),Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(d.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(d.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(K){this._readableState&&(this._readableState.flowing=K)}}),d._fromList=N,Object.defineProperty(d.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function N(q,K){if(K.length===0)return null;var J;return K.objectMode?J=K.buffer.shift():!q||q>=K.length?(K.decoder?J=K.buffer.join(""):K.buffer.length===1?J=K.buffer.first():J=K.buffer.concat(K.length),K.buffer.clear()):J=K.buffer.consume(q,K.decoder),J}function X(q){var K=q._readableState;b("endReadable",K.endEmitted),K.endEmitted||(K.ended=!0,i.nextTick(jt,K,q))}function jt(q,K){if(b("endReadableNT",q.endEmitted,q.length),!q.endEmitted&&q.length===0&&(q.endEmitted=!0,K.readable=!1,K.emit("end"),q.autoDestroy)){var J=K._writableState;(!J||J.autoDestroy&&J.finished)&&K.destroy()}}typeof Symbol=="function"&&(d.from=function(q,K){return U===void 0&&(U=RC()),U(d,q,K)});function gt(q,K){for(var J=0,bt=q.length;J<bt;J++)if(q[J]===K)return J;return-1}return B1}var T1={},I4=!1;function D1(){if(I4)return T1;I4=!0,T1=y;var i=Sh().codes,s=i.ERR_METHOD_NOT_IMPLEMENTED,a=i.ERR_MULTIPLE_CALLBACK,u=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=i.ERR_TRANSFORM_WITH_LENGTH_0,p=us();Je()(y,p);function m(g,S){var _=this._transformState;_.transforming=!1;var x=_.writecb;if(x===null)return this.emit("error",new a);_.writechunk=null,_.writecb=null,S!=null&&this.push(S),x(g);var E=this._readableState;E.reading=!1,(E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}function y(g){if(!(this instanceof y))return new y(g);p.call(this,g),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,g&&(typeof g.transform=="function"&&(this._transform=g.transform),typeof g.flush=="function"&&(this._flush=g.flush)),this.on("prefinish",M)}function M(){var g=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(S,_){b(g,S,_)}):b(this,null,null)}y.prototype.push=function(g,S){return this._transformState.needTransform=!1,p.prototype.push.call(this,g,S)},y.prototype._transform=function(g,S,_){_(new s("_transform()"))},y.prototype._write=function(g,S,_){var x=this._transformState;if(x.writecb=_,x.writechunk=g,x.writeencoding=S,!x.transforming){var E=this._readableState;(x.needTransform||E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}},y.prototype._read=function(g){var S=this._transformState;S.writechunk!==null&&!S.transforming?(S.transforming=!0,this._transform(S.writechunk,S.writeencoding,S.afterTransform)):S.needTransform=!0},y.prototype._destroy=function(g,S){p.prototype._destroy.call(this,g,function(_){S(_)})};function b(g,S,_){if(S)return g.emit("error",S);if(_!=null&&g.push(_),g._writableState.length)throw new n;if(g._transformState.transforming)throw new u;return g.push(null)}return T1}var $1={},C4=!1;function N4(){if(C4)return $1;C4=!0,$1=s;var i=D1();Je()(s,i);function s(a){if(!(this instanceof s))return new s(a);i.call(this,a)}return s.prototype._transform=function(a,u,n){n(null,a)},$1}var I1={},P4=!1;function q4(){if(P4)return I1;P4=!0;var i;function s(_){var x=!1;return function(){x||(x=!0,_.apply(void 0,arguments))}}var a=Sh().codes,u=a.ERR_MISSING_ARGS,n=a.ERR_STREAM_DESTROYED;function p(_){if(_)throw _}function m(_){return _.setHeader&&typeof _.abort=="function"}function y(_,x,E,k){k=s(k);var B=!1;_.on("close",function(){B=!0}),i===void 0&&(i=Cl()),i(_,{readable:x,writable:E},function(C){if(C)return k(C);B=!0,k()});var T=!1;return function(C){if(!B&&!T){if(T=!0,m(_))return _.abort();if(typeof _.destroy=="function")return _.destroy();k(C||new n("pipe"))}}}function M(_){_()}function b(_,x){return _.pipe(x)}function g(_){return!_.length||typeof _[_.length-1]!="function"?p:_.pop()}function S(){for(var _=arguments.length,x=new Array(_),E=0;E<_;E++)x[E]=arguments[E];var k=g(x);if(Array.isArray(x[0])&&(x=x[0]),x.length<2)throw new u("streams");var B,T=x.map(function(C,P){var G=P<x.length-1,U=P>0;return y(C,G,U,function(V){B||(B=V),V&&T.forEach(M),!G&&(T.forEach(M),k(B))})});return x.reduce(b)}return I1=S,I1}var Ki={},z4=!1;function L1(){return z4||(z4=!0,Ki=Ki=P1(),Ki.Stream=Ki,Ki.Readable=Ki,Ki.Writable=C1(),Ki.Duplex=us(),Ki.Transform=D1(),Ki.PassThrough=N4(),Ki.finished=Cl(),Ki.pipeline=q4()),Ki}var yf={},U4=!1;function ar(){if(U4)return yf;U4=!0;var i=Tr,s=i.Buffer;function a(n,p){for(var m in n)p[m]=n[m]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?yf=i:(a(i,yf),yf.Buffer=u);function u(n,p,m){return s(n,p,m)}return a(s,u),u.from=function(n,p,m){if(typeof n=="number")throw new TypeError("Argument must not be a number");return s(n,p,m)},u.alloc=function(n,p,m){if(typeof n!="number")throw new TypeError("Argument must be a number");var y=s(n);return p!==void 0?typeof m=="string"?y.fill(p,m):y.fill(p):y.fill(0),y},u.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return s(n)},u.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(n)},yf}var Pl={},F4=!1,j4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Fh(){if(F4)return Pl;F4=!0;var i=sr,s=65536,a=4294967295;function u(){throw new Error(`Secure random number generation is not supported by this browser.
14
+ Use Chrome, Firefox or Internet Explorer 11`)}var n=ar().Buffer,p=j4.crypto||j4.msCrypto;p&&p.getRandomValues?Pl=m:Pl=u;function m(y,M){if(y>a)throw new RangeError("requested too many random bytes");var b=n.allocUnsafe(y);if(y>0)if(y>s)for(var g=0;g<y;g+=s)p.getRandomValues(b.slice(g,g+s));else p.getRandomValues(b);return typeof M=="function"?i.nextTick(function(){M(null,b)}):b}return Pl}var wf={},H4=!1;function TC(){if(H4)return wf;H4=!0;var i=Tr,s=i.Buffer;function a(n,p){for(var m in n)p[m]=n[m]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?wf=i:(a(i,wf),wf.Buffer=u);function u(n,p,m){return s(n,p,m)}return u.prototype=Object.create(s.prototype),a(s,u),u.from=function(n,p,m){if(typeof n=="number")throw new TypeError("Argument must not be a number");return s(n,p,m)},u.alloc=function(n,p,m){if(typeof n!="number")throw new TypeError("Argument must be a number");var y=s(n);return p!==void 0?typeof m=="string"?y.fill(p,m):y.fill(p):y.fill(0),y},u.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return s(n)},u.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(n)},wf}var O1={},K4=!1;function YS(){if(K4)return O1;K4=!0;var i=TC().Buffer,s=L1().Transform,a=Je();function u(p,m){if(!i.isBuffer(p)&&typeof p!="string")throw new TypeError(m+" must be a string or a buffer")}function n(p){s.call(this),this._block=i.allocUnsafe(p),this._blockSize=p,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return a(n,s),n.prototype._transform=function(p,m,y){var M=null;try{this.update(p,m)}catch(b){M=b}y(M)},n.prototype._flush=function(p){var m=null;try{this.push(this.digest())}catch(y){m=y}p(m)},n.prototype.update=function(p,m){if(u(p,"Data"),this._finalized)throw new Error("Digest already called");i.isBuffer(p)||(p=i.from(p,m));for(var y=this._block,M=0;this._blockOffset+p.length-M>=this._blockSize;){for(var b=this._blockOffset;b<this._blockSize;)y[b++]=p[M++];this._update(),this._blockOffset=0}for(;M<p.length;)y[this._blockOffset++]=p[M++];for(var g=0,S=p.length*8;S>0;++g)this._length[g]+=S,S=this._length[g]/4294967296|0,S>0&&(this._length[g]-=4294967296*S);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(p){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var m=this._digest();p!==void 0&&(m=m.toString(p)),this._block.fill(0),this._blockOffset=0;for(var y=0;y<4;++y)this._length[y]=0;return m},n.prototype._digest=function(){throw new Error("_digest is not implemented")},O1=n,O1}var N1={},G4=!1;function nb(){if(G4)return N1;G4=!0;var i=Je(),s=YS(),a=ar().Buffer,u=new Array(16);function n(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}i(n,s),n.prototype._update=function(){for(var g=u,S=0;S<16;++S)g[S]=this._block.readInt32LE(S*4);var _=this._a,x=this._b,E=this._c,k=this._d;_=m(_,x,E,k,g[0],3614090360,7),k=m(k,_,x,E,g[1],3905402710,12),E=m(E,k,_,x,g[2],606105819,17),x=m(x,E,k,_,g[3],3250441966,22),_=m(_,x,E,k,g[4],4118548399,7),k=m(k,_,x,E,g[5],1200080426,12),E=m(E,k,_,x,g[6],2821735955,17),x=m(x,E,k,_,g[7],4249261313,22),_=m(_,x,E,k,g[8],1770035416,7),k=m(k,_,x,E,g[9],2336552879,12),E=m(E,k,_,x,g[10],4294925233,17),x=m(x,E,k,_,g[11],2304563134,22),_=m(_,x,E,k,g[12],1804603682,7),k=m(k,_,x,E,g[13],4254626195,12),E=m(E,k,_,x,g[14],2792965006,17),x=m(x,E,k,_,g[15],1236535329,22),_=y(_,x,E,k,g[1],4129170786,5),k=y(k,_,x,E,g[6],3225465664,9),E=y(E,k,_,x,g[11],643717713,14),x=y(x,E,k,_,g[0],3921069994,20),_=y(_,x,E,k,g[5],3593408605,5),k=y(k,_,x,E,g[10],38016083,9),E=y(E,k,_,x,g[15],3634488961,14),x=y(x,E,k,_,g[4],3889429448,20),_=y(_,x,E,k,g[9],568446438,5),k=y(k,_,x,E,g[14],3275163606,9),E=y(E,k,_,x,g[3],4107603335,14),x=y(x,E,k,_,g[8],1163531501,20),_=y(_,x,E,k,g[13],2850285829,5),k=y(k,_,x,E,g[2],4243563512,9),E=y(E,k,_,x,g[7],1735328473,14),x=y(x,E,k,_,g[12],2368359562,20),_=M(_,x,E,k,g[5],4294588738,4),k=M(k,_,x,E,g[8],2272392833,11),E=M(E,k,_,x,g[11],1839030562,16),x=M(x,E,k,_,g[14],4259657740,23),_=M(_,x,E,k,g[1],2763975236,4),k=M(k,_,x,E,g[4],1272893353,11),E=M(E,k,_,x,g[7],4139469664,16),x=M(x,E,k,_,g[10],3200236656,23),_=M(_,x,E,k,g[13],681279174,4),k=M(k,_,x,E,g[0],3936430074,11),E=M(E,k,_,x,g[3],3572445317,16),x=M(x,E,k,_,g[6],76029189,23),_=M(_,x,E,k,g[9],3654602809,4),k=M(k,_,x,E,g[12],3873151461,11),E=M(E,k,_,x,g[15],530742520,16),x=M(x,E,k,_,g[2],3299628645,23),_=b(_,x,E,k,g[0],4096336452,6),k=b(k,_,x,E,g[7],1126891415,10),E=b(E,k,_,x,g[14],2878612391,15),x=b(x,E,k,_,g[5],4237533241,21),_=b(_,x,E,k,g[12],1700485571,6),k=b(k,_,x,E,g[3],2399980690,10),E=b(E,k,_,x,g[10],4293915773,15),x=b(x,E,k,_,g[1],2240044497,21),_=b(_,x,E,k,g[8],1873313359,6),k=b(k,_,x,E,g[15],4264355552,10),E=b(E,k,_,x,g[6],2734768916,15),x=b(x,E,k,_,g[13],1309151649,21),_=b(_,x,E,k,g[4],4149444226,6),k=b(k,_,x,E,g[11],3174756917,10),E=b(E,k,_,x,g[2],718787259,15),x=b(x,E,k,_,g[9],3951481745,21),this._a=this._a+_|0,this._b=this._b+x|0,this._c=this._c+E|0,this._d=this._d+k|0},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var g=a.allocUnsafe(16);return g.writeInt32LE(this._a,0),g.writeInt32LE(this._b,4),g.writeInt32LE(this._c,8),g.writeInt32LE(this._d,12),g};function p(g,S){return g<<S|g>>>32-S}function m(g,S,_,x,E,k,B){return p(g+(S&_|~S&x)+E+k|0,B)+S|0}function y(g,S,_,x,E,k,B){return p(g+(S&x|_&~x)+E+k|0,B)+S|0}function M(g,S,_,x,E,k,B){return p(g+(S^_^x)+E+k|0,B)+S|0}function b(g,S,_,x,E,k,B){return p(g+(_^(S|~x))+E+k|0,B)+S|0}return N1=n,N1}var q1={},Z4=!1;function ob(){if(Z4)return q1;Z4=!0;var i=Tr.Buffer,s=Je(),a=YS(),u=new Array(16),n=[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],p=[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],m=[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],y=[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],M=[0,1518500249,1859775393,2400959708,2840853838],b=[1352829926,1548603684,1836072691,2053994217,0];function g(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}s(g,a),g.prototype._update=function(){for(var T=u,C=0;C<16;++C)T[C]=this._block.readInt32LE(C*4);for(var P=this._a|0,G=this._b|0,U=this._c|0,V=this._d|0,I=this._e|0,D=this._a|0,z=this._b|0,d=this._c|0,t=this._d|0,r=this._e|0,o=0;o<80;o+=1){var h,f;o<16?(h=_(P,G,U,V,I,T[n[o]],M[0],m[o]),f=B(D,z,d,t,r,T[p[o]],b[0],y[o])):o<32?(h=x(P,G,U,V,I,T[n[o]],M[1],m[o]),f=k(D,z,d,t,r,T[p[o]],b[1],y[o])):o<48?(h=E(P,G,U,V,I,T[n[o]],M[2],m[o]),f=E(D,z,d,t,r,T[p[o]],b[2],y[o])):o<64?(h=k(P,G,U,V,I,T[n[o]],M[3],m[o]),f=x(D,z,d,t,r,T[p[o]],b[3],y[o])):(h=B(P,G,U,V,I,T[n[o]],M[4],m[o]),f=_(D,z,d,t,r,T[p[o]],b[4],y[o])),P=I,I=V,V=S(U,10),U=G,G=h,D=r,r=t,t=S(d,10),d=z,z=f}var v=this._b+U+t|0;this._b=this._c+V+r|0,this._c=this._d+I+D|0,this._d=this._e+P+z|0,this._e=this._a+G+d|0,this._a=v},g.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var T=i.alloc?i.alloc(20):new i(20);return T.writeInt32LE(this._a,0),T.writeInt32LE(this._b,4),T.writeInt32LE(this._c,8),T.writeInt32LE(this._d,12),T.writeInt32LE(this._e,16),T};function S(T,C){return T<<C|T>>>32-C}function _(T,C,P,G,U,V,I,D){return S(T+(C^P^G)+V+I|0,D)+U|0}function x(T,C,P,G,U,V,I,D){return S(T+(C&P|~C&G)+V+I|0,D)+U|0}function E(T,C,P,G,U,V,I,D){return S(T+((C|~P)^G)+V+I|0,D)+U|0}function k(T,C,P,G,U,V,I,D){return S(T+(C&G|P&~G)+V+I|0,D)+U|0}function B(T,C,P,G,U,V,I,D){return S(T+(C^(P|~G))+V+I|0,D)+U|0}return q1=g,q1}var z1={},V4=!1,$r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function jh(){if(V4)return z1;V4=!0;var i=ar().Buffer;function s(a,u){(this||$r)._block=i.alloc(a),(this||$r)._finalSize=u,(this||$r)._blockSize=a,(this||$r)._len=0}return s.prototype.update=function(a,u){typeof a=="string"&&(u=u||"utf8",a=i.from(a,u));for(var n=(this||$r)._block,p=(this||$r)._blockSize,m=a.length,y=(this||$r)._len,M=0;M<m;){for(var b=y%p,g=Math.min(m-M,p-b),S=0;S<g;S++)n[b+S]=a[M+S];y+=g,M+=g,y%p===0&&this._update(n)}return(this||$r)._len+=m,this||$r},s.prototype.digest=function(a){var u=(this||$r)._len%(this||$r)._blockSize;(this||$r)._block[u]=128,(this||$r)._block.fill(0,u+1),u>=(this||$r)._finalSize&&(this._update((this||$r)._block),(this||$r)._block.fill(0));var n=(this||$r)._len*8;if(n<=4294967295)(this||$r)._block.writeUInt32BE(n,(this||$r)._blockSize-4);else{var p=(n&4294967295)>>>0,m=(n-p)/4294967296;(this||$r)._block.writeUInt32BE(m,(this||$r)._blockSize-8),(this||$r)._block.writeUInt32BE(p,(this||$r)._blockSize-4)}this._update((this||$r)._block);var y=this._hash();return a?y.toString(a):y},s.prototype._update=function(){throw new Error("_update must be implemented by subclass")},z1=s,z1}var U1={},W4=!1,mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function $C(){if(W4)return U1;W4=!0;var i=Je(),s=jh(),a=ar().Buffer,u=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function p(){this.init(),(this||mr)._w=n,s.call(this||mr,64,56)}i(p,s),p.prototype.init=function(){return(this||mr)._a=1732584193,(this||mr)._b=4023233417,(this||mr)._c=2562383102,(this||mr)._d=271733878,(this||mr)._e=3285377520,this||mr};function m(b){return b<<5|b>>>27}function y(b){return b<<30|b>>>2}function M(b,g,S,_){return b===0?g&S|~g&_:b===2?g&S|g&_|S&_:g^S^_}return p.prototype._update=function(b){for(var g=(this||mr)._w,S=(this||mr)._a|0,_=(this||mr)._b|0,x=(this||mr)._c|0,E=(this||mr)._d|0,k=(this||mr)._e|0,B=0;B<16;++B)g[B]=b.readInt32BE(B*4);for(;B<80;++B)g[B]=g[B-3]^g[B-8]^g[B-14]^g[B-16];for(var T=0;T<80;++T){var C=~~(T/20),P=m(S)+M(C,_,x,E)+k+g[T]+u[C]|0;k=E,E=x,x=y(_),_=S,S=P}(this||mr)._a=S+(this||mr)._a|0,(this||mr)._b=_+(this||mr)._b|0,(this||mr)._c=x+(this||mr)._c|0,(this||mr)._d=E+(this||mr)._d|0,(this||mr)._e=k+(this||mr)._e|0},p.prototype._hash=function(){var b=a.allocUnsafe(20);return b.writeInt32BE((this||mr)._a|0,0),b.writeInt32BE((this||mr)._b|0,4),b.writeInt32BE((this||mr)._c|0,8),b.writeInt32BE((this||mr)._d|0,12),b.writeInt32BE((this||mr)._e|0,16),b},U1=p,U1}var F1={},X4=!1,vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function IC(){if(X4)return F1;X4=!0;var i=Je(),s=jh(),a=ar().Buffer,u=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function p(){this.init(),(this||vr)._w=n,s.call(this||vr,64,56)}i(p,s),p.prototype.init=function(){return(this||vr)._a=1732584193,(this||vr)._b=4023233417,(this||vr)._c=2562383102,(this||vr)._d=271733878,(this||vr)._e=3285377520,this||vr};function m(g){return g<<1|g>>>31}function y(g){return g<<5|g>>>27}function M(g){return g<<30|g>>>2}function b(g,S,_,x){return g===0?S&_|~S&x:g===2?S&_|S&x|_&x:S^_^x}return p.prototype._update=function(g){for(var S=(this||vr)._w,_=(this||vr)._a|0,x=(this||vr)._b|0,E=(this||vr)._c|0,k=(this||vr)._d|0,B=(this||vr)._e|0,T=0;T<16;++T)S[T]=g.readInt32BE(T*4);for(;T<80;++T)S[T]=m(S[T-3]^S[T-8]^S[T-14]^S[T-16]);for(var C=0;C<80;++C){var P=~~(C/20),G=y(_)+b(P,x,E,k)+B+S[C]+u[P]|0;B=k,k=E,E=M(x),x=_,_=G}(this||vr)._a=_+(this||vr)._a|0,(this||vr)._b=x+(this||vr)._b|0,(this||vr)._c=E+(this||vr)._c|0,(this||vr)._d=k+(this||vr)._d|0,(this||vr)._e=B+(this||vr)._e|0},p.prototype._hash=function(){var g=a.allocUnsafe(20);return g.writeInt32BE((this||vr)._a|0,0),g.writeInt32BE((this||vr)._b|0,4),g.writeInt32BE((this||vr)._c|0,8),g.writeInt32BE((this||vr)._d|0,12),g.writeInt32BE((this||vr)._e|0,16),g},F1=p,F1}var j1={},J4=!1,ze=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function QS(){if(J4)return j1;J4=!0;var i=Je(),s=jh(),a=ar().Buffer,u=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],n=new Array(64);function p(){this.init(),(this||ze)._w=n,s.call(this||ze,64,56)}i(p,s),p.prototype.init=function(){return(this||ze)._a=1779033703,(this||ze)._b=3144134277,(this||ze)._c=1013904242,(this||ze)._d=2773480762,(this||ze)._e=1359893119,(this||ze)._f=2600822924,(this||ze)._g=528734635,(this||ze)._h=1541459225,this||ze};function m(_,x,E){return E^_&(x^E)}function y(_,x,E){return _&x|E&(_|x)}function M(_){return(_>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10)}function b(_){return(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7)}function g(_){return(_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3}function S(_){return(_>>>17|_<<15)^(_>>>19|_<<13)^_>>>10}return p.prototype._update=function(_){for(var x=(this||ze)._w,E=(this||ze)._a|0,k=(this||ze)._b|0,B=(this||ze)._c|0,T=(this||ze)._d|0,C=(this||ze)._e|0,P=(this||ze)._f|0,G=(this||ze)._g|0,U=(this||ze)._h|0,V=0;V<16;++V)x[V]=_.readInt32BE(V*4);for(;V<64;++V)x[V]=S(x[V-2])+x[V-7]+g(x[V-15])+x[V-16]|0;for(var I=0;I<64;++I){var D=U+b(C)+m(C,P,G)+u[I]+x[I]|0,z=M(E)+y(E,k,B)|0;U=G,G=P,P=C,C=T+D|0,T=B,B=k,k=E,E=D+z|0}(this||ze)._a=E+(this||ze)._a|0,(this||ze)._b=k+(this||ze)._b|0,(this||ze)._c=B+(this||ze)._c|0,(this||ze)._d=T+(this||ze)._d|0,(this||ze)._e=C+(this||ze)._e|0,(this||ze)._f=P+(this||ze)._f|0,(this||ze)._g=G+(this||ze)._g|0,(this||ze)._h=U+(this||ze)._h|0},p.prototype._hash=function(){var _=a.allocUnsafe(32);return _.writeInt32BE((this||ze)._a,0),_.writeInt32BE((this||ze)._b,4),_.writeInt32BE((this||ze)._c,8),_.writeInt32BE((this||ze)._d,12),_.writeInt32BE((this||ze)._e,16),_.writeInt32BE((this||ze)._f,20),_.writeInt32BE((this||ze)._g,24),_.writeInt32BE((this||ze)._h,28),_},j1=p,j1}var H1={},Y4=!1,si=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function CC(){if(Y4)return H1;Y4=!0;var i=Je(),s=QS(),a=jh(),u=ar().Buffer,n=new Array(64);function p(){this.init(),(this||si)._w=n,a.call(this||si,64,56)}return i(p,s),p.prototype.init=function(){return(this||si)._a=3238371032,(this||si)._b=914150663,(this||si)._c=812702999,(this||si)._d=4144912697,(this||si)._e=4290775857,(this||si)._f=1750603025,(this||si)._g=1694076839,(this||si)._h=3204075428,this||si},p.prototype._hash=function(){var m=u.allocUnsafe(28);return m.writeInt32BE((this||si)._a,0),m.writeInt32BE((this||si)._b,4),m.writeInt32BE((this||si)._c,8),m.writeInt32BE((this||si)._d,12),m.writeInt32BE((this||si)._e,16),m.writeInt32BE((this||si)._f,20),m.writeInt32BE((this||si)._g,24),m},H1=p,H1}var K1={},Q4=!1,fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function tx(){if(Q4)return K1;Q4=!0;var i=Je(),s=jh(),a=ar().Buffer,u=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],n=new Array(160);function p(){this.init(),(this||fe)._w=n,s.call(this||fe,128,112)}i(p,s),p.prototype.init=function(){return(this||fe)._ah=1779033703,(this||fe)._bh=3144134277,(this||fe)._ch=1013904242,(this||fe)._dh=2773480762,(this||fe)._eh=1359893119,(this||fe)._fh=2600822924,(this||fe)._gh=528734635,(this||fe)._hh=1541459225,(this||fe)._al=4089235720,(this||fe)._bl=2227873595,(this||fe)._cl=4271175723,(this||fe)._dl=1595750129,(this||fe)._el=2917565137,(this||fe)._fl=725511199,(this||fe)._gl=4215389547,(this||fe)._hl=327033209,this||fe};function m(k,B,T){return T^k&(B^T)}function y(k,B,T){return k&B|T&(k|B)}function M(k,B){return(k>>>28|B<<4)^(B>>>2|k<<30)^(B>>>7|k<<25)}function b(k,B){return(k>>>14|B<<18)^(k>>>18|B<<14)^(B>>>9|k<<23)}function g(k,B){return(k>>>1|B<<31)^(k>>>8|B<<24)^k>>>7}function S(k,B){return(k>>>1|B<<31)^(k>>>8|B<<24)^(k>>>7|B<<25)}function _(k,B){return(k>>>19|B<<13)^(B>>>29|k<<3)^k>>>6}function x(k,B){return(k>>>19|B<<13)^(B>>>29|k<<3)^(k>>>6|B<<26)}function E(k,B){return k>>>0<B>>>0?1:0}return p.prototype._update=function(k){for(var B=(this||fe)._w,T=(this||fe)._ah|0,C=(this||fe)._bh|0,P=(this||fe)._ch|0,G=(this||fe)._dh|0,U=(this||fe)._eh|0,V=(this||fe)._fh|0,I=(this||fe)._gh|0,D=(this||fe)._hh|0,z=(this||fe)._al|0,d=(this||fe)._bl|0,t=(this||fe)._cl|0,r=(this||fe)._dl|0,o=(this||fe)._el|0,h=(this||fe)._fl|0,f=(this||fe)._gl|0,v=(this||fe)._hl|0,w=0;w<32;w+=2)B[w]=k.readInt32BE(w*4),B[w+1]=k.readInt32BE(w*4+4);for(;w<160;w+=2){var l=B[w-30],e=B[w-15*2+1],c=g(l,e),A=S(e,l);l=B[w-2*2],e=B[w-2*2+1];var R=_(l,e),$=x(e,l),L=B[w-7*2],j=B[w-7*2+1],pt=B[w-16*2],W=B[w-16*2+1],N=A+j|0,X=c+L+E(N,A)|0;N=N+$|0,X=X+R+E(N,$)|0,N=N+W|0,X=X+pt+E(N,W)|0,B[w]=X,B[w+1]=N}for(var jt=0;jt<160;jt+=2){X=B[jt],N=B[jt+1];var gt=y(T,C,P),q=y(z,d,t),K=M(T,z),J=M(z,T),bt=b(U,o),Kt=b(o,U),mt=u[jt],Mt=u[jt+1],Wt=m(U,V,I),wt=m(o,h,f),Tt=v+Kt|0,Zt=D+bt+E(Tt,v)|0;Tt=Tt+wt|0,Zt=Zt+Wt+E(Tt,wt)|0,Tt=Tt+Mt|0,Zt=Zt+mt+E(Tt,Mt)|0,Tt=Tt+N|0,Zt=Zt+X+E(Tt,N)|0;var _t=J+q|0,Pt=K+gt+E(_t,J)|0;D=I,v=f,I=V,f=h,V=U,h=o,o=r+Tt|0,U=G+Zt+E(o,r)|0,G=P,r=t,P=C,t=d,C=T,d=z,z=Tt+_t|0,T=Zt+Pt+E(z,Tt)|0}(this||fe)._al=(this||fe)._al+z|0,(this||fe)._bl=(this||fe)._bl+d|0,(this||fe)._cl=(this||fe)._cl+t|0,(this||fe)._dl=(this||fe)._dl+r|0,(this||fe)._el=(this||fe)._el+o|0,(this||fe)._fl=(this||fe)._fl+h|0,(this||fe)._gl=(this||fe)._gl+f|0,(this||fe)._hl=(this||fe)._hl+v|0,(this||fe)._ah=(this||fe)._ah+T+E((this||fe)._al,z)|0,(this||fe)._bh=(this||fe)._bh+C+E((this||fe)._bl,d)|0,(this||fe)._ch=(this||fe)._ch+P+E((this||fe)._cl,t)|0,(this||fe)._dh=(this||fe)._dh+G+E((this||fe)._dl,r)|0,(this||fe)._eh=(this||fe)._eh+U+E((this||fe)._el,o)|0,(this||fe)._fh=(this||fe)._fh+V+E((this||fe)._fl,h)|0,(this||fe)._gh=(this||fe)._gh+I+E((this||fe)._gl,f)|0,(this||fe)._hh=(this||fe)._hh+D+E((this||fe)._hl,v)|0},p.prototype._hash=function(){var k=a.allocUnsafe(64);function B(T,C,P){k.writeInt32BE(T,P),k.writeInt32BE(C,P+4)}return B((this||fe)._ah,(this||fe)._al,0),B((this||fe)._bh,(this||fe)._bl,8),B((this||fe)._ch,(this||fe)._cl,16),B((this||fe)._dh,(this||fe)._dl,24),B((this||fe)._eh,(this||fe)._el,32),B((this||fe)._fh,(this||fe)._fl,40),B((this||fe)._gh,(this||fe)._gl,48),B((this||fe)._hh,(this||fe)._hl,56),k},K1=p,K1}var G1={},t5=!1,hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function PC(){if(t5)return G1;t5=!0;var i=Je(),s=tx(),a=jh(),u=ar().Buffer,n=new Array(160);function p(){this.init(),(this||hr)._w=n,a.call(this||hr,128,112)}return i(p,s),p.prototype.init=function(){return(this||hr)._ah=3418070365,(this||hr)._bh=1654270250,(this||hr)._ch=2438529370,(this||hr)._dh=355462360,(this||hr)._eh=1731405415,(this||hr)._fh=2394180231,(this||hr)._gh=3675008525,(this||hr)._hh=1203062813,(this||hr)._al=3238371032,(this||hr)._bl=914150663,(this||hr)._cl=812702999,(this||hr)._dl=4144912697,(this||hr)._el=4290775857,(this||hr)._fl=1750603025,(this||hr)._gl=1694076839,(this||hr)._hl=3204075428,this||hr},p.prototype._hash=function(){var m=u.allocUnsafe(48);function y(M,b,g){m.writeInt32BE(M,g),m.writeInt32BE(b,g+4)}return y((this||hr)._ah,(this||hr)._al,0),y((this||hr)._bh,(this||hr)._bl,8),y((this||hr)._ch,(this||hr)._cl,16),y((this||hr)._dh,(this||hr)._dl,24),y((this||hr)._eh,(this||hr)._el,32),y((this||hr)._fh,(this||hr)._fl,40),m},G1=p,G1}var DC={},e5=!1,Z1={exports:DC};function ab(){if(e5)return Z1.exports;e5=!0;var i=Z1.exports=function(a){a=a.toLowerCase();var u=i[a];if(!u)throw new Error(a+" is not supported (we accept pull requests)");return new u};return i.sha=$C(),i.sha1=IC(),i.sha224=CC(),i.sha256=QS(),i.sha384=PC(),i.sha512=tx(),Z1.exports}var Dl={},r5=!1;function Ye(){return r5||(r5=!0,typeof Object.create=="function"?Dl=function(s,a){a&&(s.super_=a,s.prototype=Object.create(a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:Dl=function(s,a){if(a){s.super_=a;var u=function(){};u.prototype=a.prototype,s.prototype=new u,s.prototype.constructor=s}}),Dl}var V1={},i5=!1;function ex(){return i5||(i5=!0,V1=Xr.EventEmitter),V1}var W1={},n5=!1;function LC(){if(n5)return W1;n5=!0;function i(_,x){var E=Object.keys(_);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(_);x&&(k=k.filter(function(B){return Object.getOwnPropertyDescriptor(_,B).enumerable})),E.push.apply(E,k)}return E}function s(_){for(var x=1;x<arguments.length;x++){var E=arguments[x]!=null?arguments[x]:{};x%2?i(Object(E),!0).forEach(function(k){a(_,k,E[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(E)):i(Object(E)).forEach(function(k){Object.defineProperty(_,k,Object.getOwnPropertyDescriptor(E,k))})}return _}function a(_,x,E){return x in _?Object.defineProperty(_,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):_[x]=E,_}function u(_,x){if(!(_ instanceof x))throw new TypeError("Cannot call a class as a function")}function n(_,x){for(var E=0;E<x.length;E++){var k=x[E];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}function p(_,x,E){return x&&n(_.prototype,x),E&&n(_,E),_}var m=Pe,y=m.Buffer,M=oe,b=M.inspect,g=b&&b.custom||"inspect";function S(_,x,E){y.prototype.copy.call(_,x,E)}return W1=function(){function _(){u(this,_),this.head=null,this.tail=null,this.length=0}return p(_,[{key:"push",value:function(E){var k={data:E,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(E){var k={data:E,next:this.head};this.length===0&&(this.tail=k),this.head=k,++this.length}},{key:"shift",value:function(){if(this.length!==0){var E=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,E}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(E){if(this.length===0)return"";for(var k=this.head,B=""+k.data;k=k.next;)B+=E+k.data;return B}},{key:"concat",value:function(E){if(this.length===0)return y.alloc(0);for(var k=y.allocUnsafe(E>>>0),B=this.head,T=0;B;)S(B.data,k,T),T+=B.data.length,B=B.next;return k}},{key:"consume",value:function(E,k){var B;return E<this.head.data.length?(B=this.head.data.slice(0,E),this.head.data=this.head.data.slice(E)):E===this.head.data.length?B=this.shift():B=k?this._getString(E):this._getBuffer(E),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(E){var k=this.head,B=1,T=k.data;for(E-=T.length;k=k.next;){var C=k.data,P=E>C.length?C.length:E;if(P===C.length?T+=C:T+=C.slice(0,E),E-=P,E===0){P===C.length?(++B,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=C.slice(P));break}++B}return this.length-=B,T}},{key:"_getBuffer",value:function(E){var k=y.allocUnsafe(E),B=this.head,T=1;for(B.data.copy(k),E-=B.data.length;B=B.next;){var C=B.data,P=E>C.length?C.length:E;if(C.copy(k,k.length-E,0,P),E-=P,E===0){P===C.length?(++T,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=C.slice(P));break}++T}return this.length-=T,k}},{key:g,value:function(E,k){return b(this,s({},k,{depth:0,customInspect:!1}))}}]),_}(),W1}var X1={},o5=!1;function rx(){if(o5)return X1;o5=!0;var i=Le;function s(y,M){var b=this,g=this._readableState&&this._readableState.destroyed,S=this._writableState&&this._writableState.destroyed;return g||S?(M?M(y):y&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(p,this,y)):i.nextTick(p,this,y)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(_){!M&&_?b._writableState?b._writableState.errorEmitted?i.nextTick(u,b):(b._writableState.errorEmitted=!0,i.nextTick(a,b,_)):i.nextTick(a,b,_):M?(i.nextTick(u,b),M(_)):i.nextTick(u,b)}),this)}function a(y,M){p(y,M),u(y)}function u(y){y._writableState&&!y._writableState.emitClose||y._readableState&&!y._readableState.emitClose||y.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function p(y,M){y.emit("error",M)}function m(y,M){var b=y._readableState,g=y._writableState;b&&b.autoDestroy||g&&g.autoDestroy?y.destroy(M):y.emit("error",M)}return X1={destroy:s,undestroy:n,errorOrDestroy:m},X1}var J1={},a5=!1;function Hh(){if(a5)return J1;a5=!0;let i={};function s(m,y,M){M||(M=Error);function b(S,_,x){return typeof y=="string"?y:y(S,_,x)}class g extends M{constructor(_,x,E){super(b(_,x,E))}}g.prototype.name=M.name,g.prototype.code=m,i[m]=g}function a(m,y){if(Array.isArray(m)){let M=m.length;return m=m.map(b=>String(b)),M>2?`one of ${y} ${m.slice(0,M-1).join(", ")}, or `+m[M-1]:M===2?`one of ${y} ${m[0]} or ${m[1]}`:`of ${y} ${m[0]}`}else return`of ${y} ${String(m)}`}function u(m,y,M){return m.substr(!M||M<0?0:+M,y.length)===y}function n(m,y,M){return(M===void 0||M>m.length)&&(M=m.length),m.substring(M-y.length,M)===y}function p(m,y,M){return typeof M!="number"&&(M=0),M+y.length>m.length?!1:m.indexOf(y,M)!==-1}return s("ERR_INVALID_OPT_VALUE",function(m,y){return'The value "'+y+'" is invalid for option "'+m+'"'},TypeError),s("ERR_INVALID_ARG_TYPE",function(m,y,M){let b;typeof y=="string"&&u(y,"not ")?(b="must not be",y=y.replace(/^not /,"")):b="must be";let g;if(n(m," argument"))g=`The ${m} ${b} ${a(y,"type")}`;else{let S=p(m,".")?"property":"argument";g=`The "${m}" ${S} ${b} ${a(y,"type")}`}return g+=`. Received type ${typeof M}`,g},TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",function(m){return"The "+m+" method is not implemented"}),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",function(m){return"Cannot call "+m+" after a stream was destroyed"}),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",function(m){return"Unknown encoding: "+m},TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),J1.codes=i,J1}var Y1={},s5=!1;function ix(){if(s5)return Y1;s5=!0;var i=Hh().codes.ERR_INVALID_OPT_VALUE;function s(u,n,p){return u.highWaterMark!=null?u.highWaterMark:n?u[p]:null}function a(u,n,p,m){var y=s(n,m,p);if(y!=null){if(!(isFinite(y)&&Math.floor(y)===y)||y<0){var M=m?p:"highWaterMark";throw new i(M,y)}return Math.floor(y)}return u.objectMode?16:16*1024}return Y1={getHighWaterMark:a},Y1}var Q1={},h5=!1,tp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function OC(){if(h5)return Q1;h5=!0,Q1=i;function i(a,u){if(s("noDeprecation"))return a;var n=!1;function p(){if(!n){if(s("throwDeprecation"))throw new Error(u);s("traceDeprecation")?console.trace(u):console.warn(u),n=!0}return a.apply(this||tp,arguments)}return p}function s(a){try{if(!tp.localStorage)return!1}catch{return!1}var u=tp.localStorage[a];return u==null?!1:String(u).toLowerCase()==="true"}return Q1}var ep={},f5=!1,NC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function sb(){if(f5)return ep;f5=!0;var i=Le;ep=z;function s(W){var N=this;this.next=null,this.entry=null,this.finish=function(){pt(N,W)}}var a;z.WritableState=I;var u={deprecate:OC()},n=ex(),p=Pe.Buffer,m=NC.Uint8Array||function(){};function y(W){return p.from(W)}function M(W){return p.isBuffer(W)||W instanceof m}var b=rx(),g=ix(),S=g.getHighWaterMark,_=Hh().codes,x=_.ERR_INVALID_ARG_TYPE,E=_.ERR_METHOD_NOT_IMPLEMENTED,k=_.ERR_MULTIPLE_CALLBACK,B=_.ERR_STREAM_CANNOT_PIPE,T=_.ERR_STREAM_DESTROYED,C=_.ERR_STREAM_NULL_VALUES,P=_.ERR_STREAM_WRITE_AFTER_END,G=_.ERR_UNKNOWN_ENCODING,U=b.errorOrDestroy;Ye()(z,n);function V(){}function I(W,N,X){a=a||Us(),W=W||{},typeof X!="boolean"&&(X=N instanceof a),this.objectMode=!!W.objectMode,X&&(this.objectMode=this.objectMode||!!W.writableObjectMode),this.highWaterMark=S(this,W,"writableHighWaterMark",X),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var jt=W.decodeStrings===!1;this.decodeStrings=!jt,this.defaultEncoding=W.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(gt){w(N,gt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=W.emitClose!==!1,this.autoDestroy=!!W.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}I.prototype.getBuffer=function(){for(var N=this.bufferedRequest,X=[];N;)X.push(N),N=N.next;return X},function(){try{Object.defineProperty(I.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var D;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(D=Function.prototype[Symbol.hasInstance],Object.defineProperty(z,Symbol.hasInstance,{value:function(N){return D.call(this,N)?!0:this!==z?!1:N&&N._writableState instanceof I}})):D=function(N){return N instanceof this};function z(W){a=a||Us();var N=this instanceof a;if(!N&&!D.call(z,this))return new z(W);this._writableState=new I(W,this,N),this.writable=!0,W&&(typeof W.write=="function"&&(this._write=W.write),typeof W.writev=="function"&&(this._writev=W.writev),typeof W.destroy=="function"&&(this._destroy=W.destroy),typeof W.final=="function"&&(this._final=W.final)),n.call(this)}z.prototype.pipe=function(){U(this,new B)};function d(W,N){var X=new P;U(W,X),i.nextTick(N,X)}function t(W,N,X,jt){var gt;return X===null?gt=new C:typeof X!="string"&&!N.objectMode&&(gt=new x("chunk",["string","Buffer"],X)),gt?(U(W,gt),i.nextTick(jt,gt),!1):!0}z.prototype.write=function(W,N,X){var jt=this._writableState,gt=!1,q=!jt.objectMode&&M(W);return q&&!p.isBuffer(W)&&(W=y(W)),typeof N=="function"&&(X=N,N=null),q?N="buffer":N||(N=jt.defaultEncoding),typeof X!="function"&&(X=V),jt.ending?d(this,X):(q||t(this,jt,W,X))&&(jt.pendingcb++,gt=o(this,jt,q,W,N,X)),gt},z.prototype.cork=function(){this._writableState.corked++},z.prototype.uncork=function(){var W=this._writableState;W.corked&&(W.corked--,!W.writing&&!W.corked&&!W.bufferProcessing&&W.bufferedRequest&&c(this,W))},z.prototype.setDefaultEncoding=function(N){if(typeof N=="string"&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new G(N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function r(W,N,X){return!W.objectMode&&W.decodeStrings!==!1&&typeof N=="string"&&(N=p.from(N,X)),N}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(W,N,X,jt,gt,q){if(!X){var K=r(N,jt,gt);jt!==K&&(X=!0,gt="buffer",jt=K)}var J=N.objectMode?1:jt.length;N.length+=J;var bt=N.length<N.highWaterMark;if(bt||(N.needDrain=!0),N.writing||N.corked){var Kt=N.lastBufferedRequest;N.lastBufferedRequest={chunk:jt,encoding:gt,isBuf:X,callback:q,next:null},Kt?Kt.next=N.lastBufferedRequest:N.bufferedRequest=N.lastBufferedRequest,N.bufferedRequestCount+=1}else h(W,N,!1,J,jt,gt,q);return bt}function h(W,N,X,jt,gt,q,K){N.writelen=jt,N.writecb=K,N.writing=!0,N.sync=!0,N.destroyed?N.onwrite(new T("write")):X?W._writev(gt,N.onwrite):W._write(gt,q,N.onwrite),N.sync=!1}function f(W,N,X,jt,gt){--N.pendingcb,X?(i.nextTick(gt,jt),i.nextTick(L,W,N),W._writableState.errorEmitted=!0,U(W,jt)):(gt(jt),W._writableState.errorEmitted=!0,U(W,jt),L(W,N))}function v(W){W.writing=!1,W.writecb=null,W.length-=W.writelen,W.writelen=0}function w(W,N){var X=W._writableState,jt=X.sync,gt=X.writecb;if(typeof gt!="function")throw new k;if(v(X),N)f(W,X,jt,N,gt);else{var q=A(X)||W.destroyed;!q&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest&&c(W,X),jt?i.nextTick(l,W,X,q,gt):l(W,X,q,gt)}}function l(W,N,X,jt){X||e(W,N),N.pendingcb--,jt(),L(W,N)}function e(W,N){N.length===0&&N.needDrain&&(N.needDrain=!1,W.emit("drain"))}function c(W,N){N.bufferProcessing=!0;var X=N.bufferedRequest;if(W._writev&&X&&X.next){var jt=N.bufferedRequestCount,gt=new Array(jt),q=N.corkedRequestsFree;q.entry=X;for(var K=0,J=!0;X;)gt[K]=X,X.isBuf||(J=!1),X=X.next,K+=1;gt.allBuffers=J,h(W,N,!0,N.length,gt,"",q.finish),N.pendingcb++,N.lastBufferedRequest=null,q.next?(N.corkedRequestsFree=q.next,q.next=null):N.corkedRequestsFree=new s(N),N.bufferedRequestCount=0}else{for(;X;){var bt=X.chunk,Kt=X.encoding,mt=X.callback,Mt=N.objectMode?1:bt.length;if(h(W,N,!1,Mt,bt,Kt,mt),X=X.next,N.bufferedRequestCount--,N.writing)break}X===null&&(N.lastBufferedRequest=null)}N.bufferedRequest=X,N.bufferProcessing=!1}z.prototype._write=function(W,N,X){X(new E("_write()"))},z.prototype._writev=null,z.prototype.end=function(W,N,X){var jt=this._writableState;return typeof W=="function"?(X=W,W=null,N=null):typeof N=="function"&&(X=N,N=null),W!=null&&this.write(W,N),jt.corked&&(jt.corked=1,this.uncork()),jt.ending||j(this,jt,X),this},Object.defineProperty(z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function A(W){return W.ending&&W.length===0&&W.bufferedRequest===null&&!W.finished&&!W.writing}function R(W,N){W._final(function(X){N.pendingcb--,X&&U(W,X),N.prefinished=!0,W.emit("prefinish"),L(W,N)})}function $(W,N){!N.prefinished&&!N.finalCalled&&(typeof W._final=="function"&&!N.destroyed?(N.pendingcb++,N.finalCalled=!0,i.nextTick(R,W,N)):(N.prefinished=!0,W.emit("prefinish")))}function L(W,N){var X=A(N);if(X&&($(W,N),N.pendingcb===0&&(N.finished=!0,W.emit("finish"),N.autoDestroy))){var jt=W._readableState;(!jt||jt.autoDestroy&&jt.endEmitted)&&W.destroy()}return X}function j(W,N,X){N.ending=!0,L(W,N),X&&(N.finished?i.nextTick(X):W.once("finish",X)),N.ended=!0,W.writable=!1}function pt(W,N,X){var jt=W.entry;for(W.entry=null;jt;){var gt=jt.callback;N.pendingcb--,gt(X),jt=jt.next}N.corkedRequestsFree.next=W}return Object.defineProperty(z.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),z.prototype.destroy=b.destroy,z.prototype._undestroy=b.undestroy,z.prototype._destroy=function(W,N){N(W)},ep}var rp={},u5=!1;function Us(){if(u5)return rp;u5=!0;var i=Le,s=Object.keys||function(g){var S=[];for(var _ in g)S.push(_);return S};rp=y;var a=hb(),u=sb();Ye()(y,a);for(var n=s(u.prototype),p=0;p<n.length;p++){var m=n[p];y.prototype[m]||(y.prototype[m]=u.prototype[m])}function y(g){if(!(this instanceof y))return new y(g);a.call(this,g),u.call(this,g),this.allowHalfOpen=!0,g&&(g.readable===!1&&(this.readable=!1),g.writable===!1&&(this.writable=!1),g.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",M)))}Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function M(){this._writableState.ended||i.nextTick(b,this)}function b(g){g.end()}return Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(S){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=S,this._writableState.destroyed=S)}}),rp}var ip={},l5=!1;function ac(){if(l5)return ip;l5=!0;var i=Hh().codes.ERR_STREAM_PREMATURE_CLOSE;function s(p){var m=!1;return function(){if(!m){m=!0;for(var y=arguments.length,M=new Array(y),b=0;b<y;b++)M[b]=arguments[b];p.apply(this,M)}}}function a(){}function u(p){return p.setHeader&&typeof p.abort=="function"}function n(p,m,y){if(typeof m=="function")return n(p,null,m);m||(m={}),y=s(y||a);var M=m.readable||m.readable!==!1&&p.readable,b=m.writable||m.writable!==!1&&p.writable,g=function(){p.writable||_()},S=p._writableState&&p._writableState.finished,_=function(){b=!1,S=!0,M||y.call(p)},x=p._readableState&&p._readableState.endEmitted,E=function(){M=!1,x=!0,b||y.call(p)},k=function(P){y.call(p,P)},B=function(){var P;if(M&&!x)return(!p._readableState||!p._readableState.ended)&&(P=new i),y.call(p,P);if(b&&!S)return(!p._writableState||!p._writableState.ended)&&(P=new i),y.call(p,P)},T=function(){p.req.on("finish",_)};return u(p)?(p.on("complete",_),p.on("abort",B),p.req?T():p.on("request",T)):b&&!p._writableState&&(p.on("end",g),p.on("close",g)),p.on("end",E),p.on("finish",_),m.error!==!1&&p.on("error",k),p.on("close",B),function(){p.removeListener("complete",_),p.removeListener("abort",B),p.removeListener("request",T),p.req&&p.req.removeListener("finish",_),p.removeListener("end",g),p.removeListener("close",g),p.removeListener("finish",_),p.removeListener("end",E),p.removeListener("error",k),p.removeListener("close",B)}}return ip=n,ip}var np={},c5=!1;function qC(){if(c5)return np;c5=!0;var i=Le,s;function a(C,P,G){return P in C?Object.defineProperty(C,P,{value:G,enumerable:!0,configurable:!0,writable:!0}):C[P]=G,C}var u=ac(),n=Symbol("lastResolve"),p=Symbol("lastReject"),m=Symbol("error"),y=Symbol("ended"),M=Symbol("lastPromise"),b=Symbol("handlePromise"),g=Symbol("stream");function S(C,P){return{value:C,done:P}}function _(C){var P=C[n];if(P!==null){var G=C[g].read();G!==null&&(C[M]=null,C[n]=null,C[p]=null,P(S(G,!1)))}}function x(C){i.nextTick(_,C)}function E(C,P){return function(G,U){C.then(function(){if(P[y]){G(S(void 0,!0));return}P[b](G,U)},U)}}var k=Object.getPrototypeOf(function(){}),B=Object.setPrototypeOf((s={get stream(){return this[g]},next:function(){var P=this,G=this[m];if(G!==null)return Promise.reject(G);if(this[y])return Promise.resolve(S(void 0,!0));if(this[g].destroyed)return new Promise(function(D,z){i.nextTick(function(){P[m]?z(P[m]):D(S(void 0,!0))})});var U=this[M],V;if(U)V=new Promise(E(U,this));else{var I=this[g].read();if(I!==null)return Promise.resolve(S(I,!1));V=new Promise(this[b])}return this[M]=V,V}},a(s,Symbol.asyncIterator,function(){return this}),a(s,"return",function(){var P=this;return new Promise(function(G,U){P[g].destroy(null,function(V){if(V){U(V);return}G(S(void 0,!0))})})}),s),k),T=function(P){var G,U=Object.create(B,(G={},a(G,g,{value:P,writable:!0}),a(G,n,{value:null,writable:!0}),a(G,p,{value:null,writable:!0}),a(G,m,{value:null,writable:!0}),a(G,y,{value:P._readableState.endEmitted,writable:!0}),a(G,b,{value:function(I,D){var z=U[g].read();z?(U[M]=null,U[n]=null,U[p]=null,I(S(z,!1))):(U[n]=I,U[p]=D)},writable:!0}),G));return U[M]=null,u(P,function(V){if(V&&V.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=U[p];I!==null&&(U[M]=null,U[n]=null,U[p]=null,I(V)),U[m]=V;return}var D=U[n];D!==null&&(U[M]=null,U[n]=null,U[p]=null,D(S(void 0,!0))),U[y]=!0}),P.on("readable",x.bind(null,U)),U};return np=T,np}var op={},d5=!1;function zC(){return d5||(d5=!0,op=function(){throw new Error("Readable.from is not available in the browser")}),op}var ap={},p5=!1,UC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function hb(){if(p5)return ap;p5=!0;var i=Le;ap=d;var s;d.ReadableState=z,Xr.EventEmitter;var a=function(K,J){return K.listeners(J).length},u=ex(),n=Pe.Buffer,p=UC.Uint8Array||function(){};function m(q){return n.from(q)}function y(q){return n.isBuffer(q)||q instanceof p}var M=oe,b;M&&M.debuglog?b=M.debuglog("stream"):b=function(){};var g=LC(),S=rx(),_=ix(),x=_.getHighWaterMark,E=Hh().codes,k=E.ERR_INVALID_ARG_TYPE,B=E.ERR_STREAM_PUSH_AFTER_EOF,T=E.ERR_METHOD_NOT_IMPLEMENTED,C=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,P,G,U;Ye()(d,u);var V=S.errorOrDestroy,I=["error","close","destroy","pause","resume"];function D(q,K,J){if(typeof q.prependListener=="function")return q.prependListener(K,J);!q._events||!q._events[K]?q.on(K,J):Array.isArray(q._events[K])?q._events[K].unshift(J):q._events[K]=[J,q._events[K]]}function z(q,K,J){s=s||Us(),q=q||{},typeof J!="boolean"&&(J=K instanceof s),this.objectMode=!!q.objectMode,J&&(this.objectMode=this.objectMode||!!q.readableObjectMode),this.highWaterMark=x(this,q,"readableHighWaterMark",J),this.buffer=new g,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.paused=!0,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.destroyed=!1,this.defaultEncoding=q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,q.encoding&&(P||(P=_i.StringDecoder),this.decoder=new P(q.encoding),this.encoding=q.encoding)}function d(q){if(s=s||Us(),!(this instanceof d))return new d(q);var K=this instanceof s;this._readableState=new z(q,this,K),this.readable=!0,q&&(typeof q.read=="function"&&(this._read=q.read),typeof q.destroy=="function"&&(this._destroy=q.destroy)),u.call(this)}Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(K){this._readableState&&(this._readableState.destroyed=K)}}),d.prototype.destroy=S.destroy,d.prototype._undestroy=S.undestroy,d.prototype._destroy=function(q,K){K(q)},d.prototype.push=function(q,K){var J=this._readableState,bt;return J.objectMode?bt=!0:typeof q=="string"&&(K=K||J.defaultEncoding,K!==J.encoding&&(q=n.from(q,K),K=""),bt=!0),t(this,q,K,!1,bt)},d.prototype.unshift=function(q){return t(this,q,null,!0,!1)};function t(q,K,J,bt,Kt){b("readableAddChunk",K);var mt=q._readableState;if(K===null)mt.reading=!1,w(q,mt);else{var Mt;if(Kt||(Mt=o(mt,K)),Mt)V(q,Mt);else if(mt.objectMode||K&&K.length>0)if(typeof K!="string"&&!mt.objectMode&&Object.getPrototypeOf(K)!==n.prototype&&(K=m(K)),bt)mt.endEmitted?V(q,new C):r(q,mt,K,!0);else if(mt.ended)V(q,new B);else{if(mt.destroyed)return!1;mt.reading=!1,mt.decoder&&!J?(K=mt.decoder.write(K),mt.objectMode||K.length!==0?r(q,mt,K,!1):c(q,mt)):r(q,mt,K,!1)}else bt||(mt.reading=!1,c(q,mt))}return!mt.ended&&(mt.length<mt.highWaterMark||mt.length===0)}function r(q,K,J,bt){K.flowing&&K.length===0&&!K.sync?(K.awaitDrain=0,q.emit("data",J)):(K.length+=K.objectMode?1:J.length,bt?K.buffer.unshift(J):K.buffer.push(J),K.needReadable&&l(q)),c(q,K)}function o(q,K){var J;return!y(K)&&typeof K!="string"&&K!==void 0&&!q.objectMode&&(J=new k("chunk",["string","Buffer","Uint8Array"],K)),J}d.prototype.isPaused=function(){return this._readableState.flowing===!1},d.prototype.setEncoding=function(q){P||(P=_i.StringDecoder);var K=new P(q);this._readableState.decoder=K,this._readableState.encoding=this._readableState.decoder.encoding;for(var J=this._readableState.buffer.head,bt="";J!==null;)bt+=K.write(J.data),J=J.next;return this._readableState.buffer.clear(),bt!==""&&this._readableState.buffer.push(bt),this._readableState.length=bt.length,this};var h=1073741824;function f(q){return q>=h?q=h:(q--,q|=q>>>1,q|=q>>>2,q|=q>>>4,q|=q>>>8,q|=q>>>16,q++),q}function v(q,K){return q<=0||K.length===0&&K.ended?0:K.objectMode?1:q!==q?K.flowing&&K.length?K.buffer.head.data.length:K.length:(q>K.highWaterMark&&(K.highWaterMark=f(q)),q<=K.length?q:K.ended?K.length:(K.needReadable=!0,0))}d.prototype.read=function(q){b("read",q),q=parseInt(q,10);var K=this._readableState,J=q;if(q!==0&&(K.emittedReadable=!1),q===0&&K.needReadable&&((K.highWaterMark!==0?K.length>=K.highWaterMark:K.length>0)||K.ended))return b("read: emitReadable",K.length,K.ended),K.length===0&&K.ended?X(this):l(this),null;if(q=v(q,K),q===0&&K.ended)return K.length===0&&X(this),null;var bt=K.needReadable;b("need readable",bt),(K.length===0||K.length-q<K.highWaterMark)&&(bt=!0,b("length less than watermark",bt)),K.ended||K.reading?(bt=!1,b("reading or ended",bt)):bt&&(b("do read"),K.reading=!0,K.sync=!0,K.length===0&&(K.needReadable=!0),this._read(K.highWaterMark),K.sync=!1,K.reading||(q=v(J,K)));var Kt;return q>0?Kt=N(q,K):Kt=null,Kt===null?(K.needReadable=K.length<=K.highWaterMark,q=0):(K.length-=q,K.awaitDrain=0),K.length===0&&(K.ended||(K.needReadable=!0),J!==q&&K.ended&&X(this)),Kt!==null&&this.emit("data",Kt),Kt};function w(q,K){if(b("onEofChunk"),!K.ended){if(K.decoder){var J=K.decoder.end();J&&J.length&&(K.buffer.push(J),K.length+=K.objectMode?1:J.length)}K.ended=!0,K.sync?l(q):(K.needReadable=!1,K.emittedReadable||(K.emittedReadable=!0,e(q)))}}function l(q){var K=q._readableState;b("emitReadable",K.needReadable,K.emittedReadable),K.needReadable=!1,K.emittedReadable||(b("emitReadable",K.flowing),K.emittedReadable=!0,i.nextTick(e,q))}function e(q){var K=q._readableState;b("emitReadable_",K.destroyed,K.length,K.ended),!K.destroyed&&(K.length||K.ended)&&(q.emit("readable"),K.emittedReadable=!1),K.needReadable=!K.flowing&&!K.ended&&K.length<=K.highWaterMark,W(q)}function c(q,K){K.readingMore||(K.readingMore=!0,i.nextTick(A,q,K))}function A(q,K){for(;!K.reading&&!K.ended&&(K.length<K.highWaterMark||K.flowing&&K.length===0);){var J=K.length;if(b("maybeReadMore read 0"),q.read(0),J===K.length)break}K.readingMore=!1}d.prototype._read=function(q){V(this,new T("_read()"))},d.prototype.pipe=function(q,K){var J=this,bt=this._readableState;switch(bt.pipesCount){case 0:bt.pipes=q;break;case 1:bt.pipes=[bt.pipes,q];break;default:bt.pipes.push(q);break}bt.pipesCount+=1,b("pipe count=%d opts=%j",bt.pipesCount,K);var Kt=(!K||K.end!==!1)&&q!==i.stdout&&q!==i.stderr,mt=Kt?Wt:O;bt.endEmitted?i.nextTick(mt):J.once("end",mt),q.on("unpipe",Mt);function Mt(H,Z){b("onunpipe"),H===J&&Z&&Z.hasUnpiped===!1&&(Z.hasUnpiped=!0,Zt())}function Wt(){b("onend"),q.end()}var wt=R(J);q.on("drain",wt);var Tt=!1;function Zt(){b("cleanup"),q.removeListener("close",Jt),q.removeListener("finish",F),q.removeListener("drain",wt),q.removeListener("error",Pt),q.removeListener("unpipe",Mt),J.removeListener("end",Wt),J.removeListener("end",O),J.removeListener("data",_t),Tt=!0,bt.awaitDrain&&(!q._writableState||q._writableState.needDrain)&&wt()}J.on("data",_t);function _t(H){b("ondata");var Z=q.write(H);b("dest.write",Z),Z===!1&&((bt.pipesCount===1&&bt.pipes===q||bt.pipesCount>1&&gt(bt.pipes,q)!==-1)&&!Tt&&(b("false write response, pause",bt.awaitDrain),bt.awaitDrain++),J.pause())}function Pt(H){b("onerror",H),O(),q.removeListener("error",Pt),a(q,"error")===0&&V(q,H)}D(q,"error",Pt);function Jt(){q.removeListener("finish",F),O()}q.once("close",Jt);function F(){b("onfinish"),q.removeListener("close",Jt),O()}q.once("finish",F);function O(){b("unpipe"),J.unpipe(q)}return q.emit("pipe",J),bt.flowing||(b("pipe resume"),J.resume()),q};function R(q){return function(){var J=q._readableState;b("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&a(q,"data")&&(J.flowing=!0,W(q))}}d.prototype.unpipe=function(q){var K=this._readableState,J={hasUnpiped:!1};if(K.pipesCount===0)return this;if(K.pipesCount===1)return q&&q!==K.pipes?this:(q||(q=K.pipes),K.pipes=null,K.pipesCount=0,K.flowing=!1,q&&q.emit("unpipe",this,J),this);if(!q){var bt=K.pipes,Kt=K.pipesCount;K.pipes=null,K.pipesCount=0,K.flowing=!1;for(var mt=0;mt<Kt;mt++)bt[mt].emit("unpipe",this,{hasUnpiped:!1});return this}var Mt=gt(K.pipes,q);return Mt===-1?this:(K.pipes.splice(Mt,1),K.pipesCount-=1,K.pipesCount===1&&(K.pipes=K.pipes[0]),q.emit("unpipe",this,J),this)},d.prototype.on=function(q,K){var J=u.prototype.on.call(this,q,K),bt=this._readableState;return q==="data"?(bt.readableListening=this.listenerCount("readable")>0,bt.flowing!==!1&&this.resume()):q==="readable"&&!bt.endEmitted&&!bt.readableListening&&(bt.readableListening=bt.needReadable=!0,bt.flowing=!1,bt.emittedReadable=!1,b("on readable",bt.length,bt.reading),bt.length?l(this):bt.reading||i.nextTick(L,this)),J},d.prototype.addListener=d.prototype.on,d.prototype.removeListener=function(q,K){var J=u.prototype.removeListener.call(this,q,K);return q==="readable"&&i.nextTick($,this),J},d.prototype.removeAllListeners=function(q){var K=u.prototype.removeAllListeners.apply(this,arguments);return(q==="readable"||q===void 0)&&i.nextTick($,this),K};function $(q){var K=q._readableState;K.readableListening=q.listenerCount("readable")>0,K.resumeScheduled&&!K.paused?K.flowing=!0:q.listenerCount("data")>0&&q.resume()}function L(q){b("readable nexttick read 0"),q.read(0)}d.prototype.resume=function(){var q=this._readableState;return q.flowing||(b("resume"),q.flowing=!q.readableListening,j(this,q)),q.paused=!1,this};function j(q,K){K.resumeScheduled||(K.resumeScheduled=!0,i.nextTick(pt,q,K))}function pt(q,K){b("resume",K.reading),K.reading||q.read(0),K.resumeScheduled=!1,q.emit("resume"),W(q),K.flowing&&!K.reading&&q.read(0)}d.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function W(q){var K=q._readableState;for(b("flow",K.flowing);K.flowing&&q.read()!==null;);}d.prototype.wrap=function(q){var K=this,J=this._readableState,bt=!1;q.on("end",function(){if(b("wrapped end"),J.decoder&&!J.ended){var Mt=J.decoder.end();Mt&&Mt.length&&K.push(Mt)}K.push(null)}),q.on("data",function(Mt){if(b("wrapped data"),J.decoder&&(Mt=J.decoder.write(Mt)),!(J.objectMode&&Mt==null)&&!(!J.objectMode&&(!Mt||!Mt.length))){var Wt=K.push(Mt);Wt||(bt=!0,q.pause())}});for(var Kt in q)this[Kt]===void 0&&typeof q[Kt]=="function"&&(this[Kt]=function(Wt){return function(){return q[Wt].apply(q,arguments)}}(Kt));for(var mt=0;mt<I.length;mt++)q.on(I[mt],this.emit.bind(this,I[mt]));return this._read=function(Mt){b("wrapped _read",Mt),bt&&(bt=!1,q.resume())},this},typeof Symbol=="function"&&(d.prototype[Symbol.asyncIterator]=function(){return G===void 0&&(G=qC()),G(this)}),Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(d.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(d.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(K){this._readableState&&(this._readableState.flowing=K)}}),d._fromList=N,Object.defineProperty(d.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function N(q,K){if(K.length===0)return null;var J;return K.objectMode?J=K.buffer.shift():!q||q>=K.length?(K.decoder?J=K.buffer.join(""):K.buffer.length===1?J=K.buffer.first():J=K.buffer.concat(K.length),K.buffer.clear()):J=K.buffer.consume(q,K.decoder),J}function X(q){var K=q._readableState;b("endReadable",K.endEmitted),K.endEmitted||(K.ended=!0,i.nextTick(jt,K,q))}function jt(q,K){if(b("endReadableNT",q.endEmitted,q.length),!q.endEmitted&&q.length===0&&(q.endEmitted=!0,K.readable=!1,K.emit("end"),q.autoDestroy)){var J=K._writableState;(!J||J.autoDestroy&&J.finished)&&K.destroy()}}typeof Symbol=="function"&&(d.from=function(q,K){return U===void 0&&(U=zC()),U(d,q,K)});function gt(q,K){for(var J=0,bt=q.length;J<bt;J++)if(q[J]===K)return J;return-1}return ap}var sp={},m5=!1;function fb(){if(m5)return sp;m5=!0,sp=y;var i=Hh().codes,s=i.ERR_METHOD_NOT_IMPLEMENTED,a=i.ERR_MULTIPLE_CALLBACK,u=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=i.ERR_TRANSFORM_WITH_LENGTH_0,p=Us();Ye()(y,p);function m(g,S){var _=this._transformState;_.transforming=!1;var x=_.writecb;if(x===null)return this.emit("error",new a);_.writechunk=null,_.writecb=null,S!=null&&this.push(S),x(g);var E=this._readableState;E.reading=!1,(E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}function y(g){if(!(this instanceof y))return new y(g);p.call(this,g),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,g&&(typeof g.transform=="function"&&(this._transform=g.transform),typeof g.flush=="function"&&(this._flush=g.flush)),this.on("prefinish",M)}function M(){var g=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(S,_){b(g,S,_)}):b(this,null,null)}y.prototype.push=function(g,S){return this._transformState.needTransform=!1,p.prototype.push.call(this,g,S)},y.prototype._transform=function(g,S,_){_(new s("_transform()"))},y.prototype._write=function(g,S,_){var x=this._transformState;if(x.writecb=_,x.writechunk=g,x.writeencoding=S,!x.transforming){var E=this._readableState;(x.needTransform||E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}},y.prototype._read=function(g){var S=this._transformState;S.writechunk!==null&&!S.transforming?(S.transforming=!0,this._transform(S.writechunk,S.writeencoding,S.afterTransform)):S.needTransform=!0},y.prototype._destroy=function(g,S){p.prototype._destroy.call(this,g,function(_){S(_)})};function b(g,S,_){if(S)return g.emit("error",S);if(_!=null&&g.push(_),g._writableState.length)throw new n;if(g._transformState.transforming)throw new u;return g.push(null)}return sp}var hp={},v5=!1;function nx(){if(v5)return hp;v5=!0,hp=s;var i=fb();Ye()(s,i);function s(a){if(!(this instanceof s))return new s(a);i.call(this,a)}return s.prototype._transform=function(a,u,n){n(null,a)},hp}var fp={},g5=!1;function ox(){if(g5)return fp;g5=!0;var i;function s(_){var x=!1;return function(){x||(x=!0,_.apply(void 0,arguments))}}var a=Hh().codes,u=a.ERR_MISSING_ARGS,n=a.ERR_STREAM_DESTROYED;function p(_){if(_)throw _}function m(_){return _.setHeader&&typeof _.abort=="function"}function y(_,x,E,k){k=s(k);var B=!1;_.on("close",function(){B=!0}),i===void 0&&(i=ac()),i(_,{readable:x,writable:E},function(C){if(C)return k(C);B=!0,k()});var T=!1;return function(C){if(!B&&!T){if(T=!0,m(_))return _.abort();if(typeof _.destroy=="function")return _.destroy();k(C||new n("pipe"))}}}function M(_){_()}function b(_,x){return _.pipe(x)}function g(_){return!_.length||typeof _[_.length-1]!="function"?p:_.pop()}function S(){for(var _=arguments.length,x=new Array(_),E=0;E<_;E++)x[E]=arguments[E];var k=g(x);if(Array.isArray(x[0])&&(x=x[0]),x.length<2)throw new u("streams");var B,T=x.map(function(C,P){var G=P<x.length-1,U=P>0;return y(C,G,U,function(V){B||(B=V),V&&T.forEach(M),!G&&(T.forEach(M),k(B))})});return x.reduce(b)}return fp=S,fp}var up={},b5=!1,lp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function FC(){if(b5)return up;b5=!0,up=a;var i=Xr.EventEmitter,s=Ye();s(a,i),a.Readable=hb(),a.Writable=sb(),a.Duplex=Us(),a.Transform=fb(),a.PassThrough=nx(),a.finished=ac(),a.pipeline=ox(),a.Stream=a;function a(){i.call(this||lp)}return a.prototype.pipe=function(u,n){var p=this||lp;function m(x){u.writable&&u.write(x)===!1&&p.pause&&p.pause()}p.on("data",m);function y(){p.readable&&p.resume&&p.resume()}u.on("drain",y),!u._isStdio&&(!n||n.end!==!1)&&(p.on("end",b),p.on("close",g));var M=!1;function b(){M||(M=!0,u.end())}function g(){M||(M=!0,typeof u.destroy=="function"&&u.destroy())}function S(x){if(_(),i.listenerCount(this||lp,"error")===0)throw x}p.on("error",S),u.on("error",S);function _(){p.removeListener("data",m),u.removeListener("drain",y),p.removeListener("end",b),p.removeListener("close",g),p.removeListener("error",S),u.removeListener("error",S),p.removeListener("end",_),p.removeListener("close",_),u.removeListener("close",_)}return p.on("end",_),p.on("close",_),u.on("close",_),u.emit("pipe",p),u},up}var io=FC();io.Readable;io.Writable;io.Duplex;io.Transform;io.PassThrough;io.finished;io.pipeline;io.Stream;s1(io.finished),s1(io.pipeline);var cp={},y5=!1,Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function qa(){if(y5)return cp;y5=!0;var i=ar().Buffer,s=io.Transform,a=_i.StringDecoder,u=Je();function n(p){s.call(this||Or),(this||Or).hashMode=typeof p=="string",(this||Or).hashMode?(this||Or)[p]=(this||Or)._finalOrDigest:(this||Or).final=(this||Or)._finalOrDigest,(this||Or)._final&&((this||Or).__final=(this||Or)._final,(this||Or)._final=null),(this||Or)._decoder=null,(this||Or)._encoding=null}return u(n,s),n.prototype.update=function(p,m,y){typeof p=="string"&&(p=i.from(p,m));var M=this._update(p);return(this||Or).hashMode?this||Or:(y&&(M=this._toString(M,y)),M)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(p,m,y){var M;try{(this||Or).hashMode?this._update(p):this.push(this._update(p))}catch(b){M=b}finally{y(M)}},n.prototype._flush=function(p){var m;try{this.push(this.__final())}catch(y){m=y}p(m)},n.prototype._finalOrDigest=function(p){var m=this.__final()||i.alloc(0);return p&&(m=this._toString(m,p,!0)),m},n.prototype._toString=function(p,m,y){if((this||Or)._decoder||((this||Or)._decoder=new a(m),(this||Or)._encoding=m),(this||Or)._encoding!==m)throw new Error("can't switch encodings");var M=(this||Or)._decoder.write(p);return y&&(M+=(this||Or)._decoder.end()),M},cp=n,cp}var dp={},w5=!1;function su(){if(w5)return dp;w5=!0;var i=Je(),s=nb(),a=ob(),u=ab(),n=qa();function p(m){n.call(this,"digest"),this._hash=m}return i(p,n),p.prototype._update=function(m){this._hash.update(m)},p.prototype._final=function(){return this._hash.digest()},dp=function(y){return y=y.toLowerCase(),y==="md5"?new s:y==="rmd160"||y==="ripemd160"?new a:new p(u(y))},dp}var pp={},M5=!1;function jC(){if(M5)return pp;M5=!0;var i=Je(),s=ar().Buffer,a=qa(),u=s.alloc(128),n=64;function p(m,y){a.call(this,"digest"),typeof y=="string"&&(y=s.from(y)),this._alg=m,this._key=y,y.length>n?y=m(y):y.length<n&&(y=s.concat([y,u],n));for(var M=this._ipad=s.allocUnsafe(n),b=this._opad=s.allocUnsafe(n),g=0;g<n;g++)M[g]=y[g]^54,b[g]=y[g]^92;this._hash=[M]}return i(p,a),p.prototype._update=function(m){this._hash.push(m)},p.prototype._final=function(){var m=this._alg(s.concat(this._hash));return this._alg(s.concat([this._opad,m]))},pp=p,pp}var mp={},_5=!1;function ax(){if(_5)return mp;_5=!0;var i=nb();return mp=function(s){return new i().update(s).digest()},mp}var vp={},S5=!1;function sx(){if(S5)return vp;S5=!0;var i=Je(),s=jC(),a=qa(),u=ar().Buffer,n=ax(),p=ob(),m=ab(),y=u.alloc(128);function M(b,g){a.call(this,"digest"),typeof g=="string"&&(g=u.from(g));var S=b==="sha512"||b==="sha384"?128:64;if(this._alg=b,this._key=g,g.length>S){var _=b==="rmd160"?new p:m(b);g=_.update(g).digest()}else g.length<S&&(g=u.concat([g,y],S));for(var x=this._ipad=u.allocUnsafe(S),E=this._opad=u.allocUnsafe(S),k=0;k<S;k++)x[k]=g[k]^54,E[k]=g[k]^92;this._hash=b==="rmd160"?new p:m(b),this._hash.update(x)}return i(M,a),M.prototype._update=function(b){this._hash.update(b)},M.prototype._final=function(){var b=this._hash.digest(),g=this._alg==="rmd160"?new p:m(this._alg);return g.update(this._opad).update(b).digest()},vp=function(g,S){return g=g.toLowerCase(),g==="rmd160"||g==="ripemd160"?new M("rmd160",S):g==="md5"?new s(n,S):new M(g,S)},vp}var hx={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},gp={},x5=!1;function HC(){return x5||(x5=!0,gp=hx),gp}var bp={},E5=!1;function fx(){if(E5)return bp;E5=!0;var i=Math.pow(2,30)-1;return bp=function(s,a){if(typeof s!="number")throw new TypeError("Iterations not a number");if(s<0)throw new TypeError("Bad iterations");if(typeof a!="number")throw new TypeError("Key length not a number");if(a<0||a>i||a!==a)throw new TypeError("Bad key length")},bp}var yp={},A5=!1,Ll=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function ux(){if(A5)return yp;A5=!0;var i=sr,s;if(Ll.process&&Ll.process.browser)s="utf-8";else if(Ll.process&&Ll.process.version){var a=parseInt(i.version.split(".")[0].slice(1),10);s=a>=6?"utf-8":"binary"}else s="utf-8";return yp=s,yp}var wp={},k5=!1;function lx(){if(k5)return wp;k5=!0;var i=ar().Buffer;return wp=function(s,a,u){if(i.isBuffer(s))return s;if(typeof s=="string")return i.from(s,a);if(ArrayBuffer.isView(s))return i.from(s.buffer);throw new TypeError(u+" must be a string, a Buffer, a typed array or a DataView")},wp}var Mp={},R5=!1,Hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function cx(){if(R5)return Mp;R5=!0;var i=ax(),s=ob(),a=ab(),u=ar().Buffer,n=fx(),p=ux(),m=lx(),y=u.alloc(128),M={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function b(_,x,E){var k=g(_),B=_==="sha512"||_==="sha384"?128:64;x.length>B?x=k(x):x.length<B&&(x=u.concat([x,y],B));for(var T=u.allocUnsafe(B+M[_]),C=u.allocUnsafe(B+M[_]),P=0;P<B;P++)T[P]=x[P]^54,C[P]=x[P]^92;var G=u.allocUnsafe(B+E+4);T.copy(G,0,0,B),(this||Hn).ipad1=G,(this||Hn).ipad2=T,(this||Hn).opad=C,(this||Hn).alg=_,(this||Hn).blocksize=B,(this||Hn).hash=k,(this||Hn).size=M[_]}b.prototype.run=function(_,x){_.copy(x,(this||Hn).blocksize);var E=this.hash(x);return E.copy((this||Hn).opad,(this||Hn).blocksize),this.hash((this||Hn).opad)};function g(_){function x(k){return a(_).update(k).digest()}function E(k){return new s().update(k).digest()}return _==="rmd160"||_==="ripemd160"?E:_==="md5"?i:x}function S(_,x,E,k,B){n(E,k),_=m(_,p,"Password"),x=m(x,p,"Salt"),B=B||"sha1";var T=new b(B,_,x.length),C=u.allocUnsafe(k),P=u.allocUnsafe(x.length+4);x.copy(P,0,0,x.length);for(var G=0,U=M[B],V=Math.ceil(k/U),I=1;I<=V;I++){P.writeUInt32BE(I,x.length);for(var D=T.run(P,T.ipad1),z=D,d=1;d<E;d++){z=T.run(z,T.ipad2);for(var t=0;t<U;t++)D[t]^=z[t]}D.copy(C,G),G+=U}return C}return Mp=S,Mp}var _p={},B5=!1,on=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function KC(){if(B5)return _p;B5=!0;var i=ar().Buffer,s=fx(),a=ux(),u=cx(),n=lx(),p,m=on.crypto&&on.crypto.subtle,y={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},M=[];function b(E){if(on.process&&!on.process.browser||!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(M[E]!==void 0)return M[E];p=p||i.alloc(8);var k=_(p,p,10,128,E).then(function(){return!0}).catch(function(){return!1});return M[E]=k,k}var g;function S(){return g||(on.process&&on.process.nextTick?g=on.process.nextTick:on.queueMicrotask?g=on.queueMicrotask:on.setImmediate?g=on.setImmediate:g=on.setTimeout,g)}function _(E,k,B,T,C){return m.importKey("raw",E,{name:"PBKDF2"},!1,["deriveBits"]).then(function(P){return m.deriveBits({name:"PBKDF2",salt:k,iterations:B,hash:{name:C}},P,T<<3)}).then(function(P){return i.from(P)})}function x(E,k){E.then(function(B){S()(function(){k(null,B)})},function(B){S()(function(){k(B)})})}return _p=function(E,k,B,T,C,P){typeof C=="function"&&(P=C,C=void 0),C=C||"sha1";var G=y[C.toLowerCase()];if(!G||typeof on.Promise!="function"){S()(function(){var U;try{U=u(E,k,B,T,C)}catch(V){return P(V)}P(null,U)});return}if(s(B,T),E=n(E,a,"Password"),k=n(k,a,"Salt"),typeof P!="function")throw new Error("No callback provided to pbkdf2");x(b(G).then(function(U){return U?_(E,k,B,T,G):u(E,k,B,T,C)}),P)},_p}var Ol={},T5=!1;function dx(){return T5||(T5=!0,Ol.pbkdf2=KC(),Ol.pbkdf2Sync=cx()),Ol}var an={},$5=!1;function px(){if($5)return an;$5=!0,an.readUInt32BE=function(n,p){var m=n[0+p]<<24|n[1+p]<<16|n[2+p]<<8|n[3+p];return m>>>0},an.writeUInt32BE=function(n,p,m){n[0+m]=p>>>24,n[1+m]=p>>>16&255,n[2+m]=p>>>8&255,n[3+m]=p&255},an.ip=function(n,p,m,y){for(var M=0,b=0,g=6;g>=0;g-=2){for(var S=0;S<=24;S+=8)M<<=1,M|=p>>>S+g&1;for(var S=0;S<=24;S+=8)M<<=1,M|=n>>>S+g&1}for(var g=6;g>=0;g-=2){for(var S=1;S<=25;S+=8)b<<=1,b|=p>>>S+g&1;for(var S=1;S<=25;S+=8)b<<=1,b|=n>>>S+g&1}m[y+0]=M>>>0,m[y+1]=b>>>0},an.rip=function(n,p,m,y){for(var M=0,b=0,g=0;g<4;g++)for(var S=24;S>=0;S-=8)M<<=1,M|=p>>>S+g&1,M<<=1,M|=n>>>S+g&1;for(var g=4;g<8;g++)for(var S=24;S>=0;S-=8)b<<=1,b|=p>>>S+g&1,b<<=1,b|=n>>>S+g&1;m[y+0]=M>>>0,m[y+1]=b>>>0},an.pc1=function(n,p,m,y){for(var M=0,b=0,g=7;g>=5;g--){for(var S=0;S<=24;S+=8)M<<=1,M|=p>>S+g&1;for(var S=0;S<=24;S+=8)M<<=1,M|=n>>S+g&1}for(var S=0;S<=24;S+=8)M<<=1,M|=p>>S+g&1;for(var g=1;g<=3;g++){for(var S=0;S<=24;S+=8)b<<=1,b|=p>>S+g&1;for(var S=0;S<=24;S+=8)b<<=1,b|=n>>S+g&1}for(var S=0;S<=24;S+=8)b<<=1,b|=n>>S+g&1;m[y+0]=M>>>0,m[y+1]=b>>>0},an.r28shl=function(n,p){return n<<p&268435455|n>>>28-p};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];an.pc2=function(n,p,m,y){for(var M=0,b=0,g=i.length>>>1,S=0;S<g;S++)M<<=1,M|=n>>>i[S]&1;for(var S=g;S<i.length;S++)b<<=1,b|=p>>>i[S]&1;m[y+0]=M>>>0,m[y+1]=b>>>0},an.expand=function(n,p,m){var y=0,M=0;y=(n&1)<<5|n>>>27;for(var b=23;b>=15;b-=4)y<<=6,y|=n>>>b&63;for(var b=11;b>=3;b-=4)M|=n>>>b&63,M<<=6;M|=(n&31)<<1|n>>>31,p[m+0]=y>>>0,p[m+1]=M>>>0};var s=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];an.substitute=function(n,p){for(var m=0,y=0;y<4;y++){var M=n>>>18-y*6&63,b=s[y*64+M];m<<=4,m|=b}for(var y=0;y<4;y++){var M=p>>>18-y*6&63,b=s[4*64+y*64+M];m<<=4,m|=b}return m>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return an.permute=function(n){for(var p=0,m=0;m<a.length;m++)p<<=1,p|=n>>>a[m]&1;return p>>>0},an.padSplit=function(n,p,m){for(var y=n.toString(2);y.length<p;)y="0"+y;for(var M=[],b=0;b<p;b+=m)M.push(y.slice(b,b+m));return M.join(" ")},an}var Sp={},I5=!1;function $o(){if(I5)return Sp;I5=!0,Sp=i;function i(s,a){if(!s)throw new Error(a||"Assertion failed")}return i.equal=function(a,u,n){if(a!=u)throw new Error(n||"Assertion failed: "+a+" != "+u)},Sp}var xp={},C5=!1;function ub(){if(C5)return xp;C5=!0;var i=$o();function s(a){this.options=a,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}return xp=s,s.prototype._init=function(){},s.prototype.update=function(u){return u.length===0?[]:this.type==="decrypt"?this._updateDecrypt(u):this._updateEncrypt(u)},s.prototype._buffer=function(u,n){for(var p=Math.min(this.buffer.length-this.bufferOff,u.length-n),m=0;m<p;m++)this.buffer[this.bufferOff+m]=u[n+m];return this.bufferOff+=p,p},s.prototype._flushBuffer=function(u,n){return this._update(this.buffer,0,u,n),this.bufferOff=0,this.blockSize},s.prototype._updateEncrypt=function(u){var n=0,p=0,m=(this.bufferOff+u.length)/this.blockSize|0,y=new Array(m*this.blockSize);this.bufferOff!==0&&(n+=this._buffer(u,n),this.bufferOff===this.buffer.length&&(p+=this._flushBuffer(y,p)));for(var M=u.length-(u.length-n)%this.blockSize;n<M;n+=this.blockSize)this._update(u,n,y,p),p+=this.blockSize;for(;n<u.length;n++,this.bufferOff++)this.buffer[this.bufferOff]=u[n];return y},s.prototype._updateDecrypt=function(u){for(var n=0,p=0,m=Math.ceil((this.bufferOff+u.length)/this.blockSize)-1,y=new Array(m*this.blockSize);m>0;m--)n+=this._buffer(u,n),p+=this._flushBuffer(y,p);return n+=this._buffer(u,n),y},s.prototype.final=function(u){var n;u&&(n=this.update(u));var p;return this.type==="encrypt"?p=this._finalEncrypt():p=this._finalDecrypt(),n?n.concat(p):p},s.prototype._pad=function(u,n){if(n===0)return!1;for(;n<u.length;)u[n++]=0;return!0},s.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var u=new Array(this.blockSize);return this._update(this.buffer,0,u,0),u},s.prototype._unpad=function(u){return u},s.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var u=new Array(this.blockSize);return this._flushBuffer(u,0),this._unpad(u)},xp}var Ep={},P5=!1;function mx(){if(P5)return Ep;P5=!0;var i=$o(),s=Je(),a=px(),u=ub();function n(){this.tmp=new Array(2),this.keys=null}function p(y){u.call(this,y);var M=new n;this._desState=M,this.deriveKeys(M,y.key)}s(p,u),Ep=p,p.create=function(M){return new p(M)};var m=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return p.prototype.deriveKeys=function(M,b){M.keys=new Array(16*2),i.equal(b.length,this.blockSize,"Invalid key length");var g=a.readUInt32BE(b,0),S=a.readUInt32BE(b,4);a.pc1(g,S,M.tmp,0),g=M.tmp[0],S=M.tmp[1];for(var _=0;_<M.keys.length;_+=2){var x=m[_>>>1];g=a.r28shl(g,x),S=a.r28shl(S,x),a.pc2(g,S,M.keys,_)}},p.prototype._update=function(M,b,g,S){var _=this._desState,x=a.readUInt32BE(M,b),E=a.readUInt32BE(M,b+4);a.ip(x,E,_.tmp,0),x=_.tmp[0],E=_.tmp[1],this.type==="encrypt"?this._encrypt(_,x,E,_.tmp,0):this._decrypt(_,x,E,_.tmp,0),x=_.tmp[0],E=_.tmp[1],a.writeUInt32BE(g,x,S),a.writeUInt32BE(g,E,S+4)},p.prototype._pad=function(M,b){for(var g=M.length-b,S=b;S<M.length;S++)M[S]=g;return!0},p.prototype._unpad=function(M){for(var b=M[M.length-1],g=M.length-b;g<M.length;g++)i.equal(M[g],b);return M.slice(0,M.length-b)},p.prototype._encrypt=function(M,b,g,S,_){for(var x=b,E=g,k=0;k<M.keys.length;k+=2){var B=M.keys[k],T=M.keys[k+1];a.expand(E,M.tmp,0),B^=M.tmp[0],T^=M.tmp[1];var C=a.substitute(B,T),P=a.permute(C),G=E;E=(x^P)>>>0,x=G}a.rip(E,x,S,_)},p.prototype._decrypt=function(M,b,g,S,_){for(var x=g,E=b,k=M.keys.length-2;k>=0;k-=2){var B=M.keys[k],T=M.keys[k+1];a.expand(x,M.tmp,0),B^=M.tmp[0],T^=M.tmp[1];var C=a.substitute(B,T),P=a.permute(C),G=x;x=(E^P)>>>0,E=G}a.rip(x,E,S,_)},Ep}var Ap={},D5=!1;function GC(){if(D5)return Ap;D5=!0;var i=$o(),s=Je(),a={};function u(p){i.equal(p.length,8,"Invalid IV length"),this.iv=new Array(8);for(var m=0;m<this.iv.length;m++)this.iv[m]=p[m]}function n(p){function m(g){p.call(this,g),this._cbcInit()}s(m,p);for(var y=Object.keys(a),M=0;M<y.length;M++){var b=y[M];m.prototype[b]=a[b]}return m.create=function(S){return new m(S)},m}return Ap.instantiate=n,a._cbcInit=function(){var m=new u(this.options.iv);this._cbcState=m},a._update=function(m,y,M,b){var g=this._cbcState,S=this.constructor.super_.prototype,_=g.iv;if(this.type==="encrypt"){for(var x=0;x<this.blockSize;x++)_[x]^=m[y+x];S._update.call(this,_,0,M,b);for(var x=0;x<this.blockSize;x++)_[x]=M[b+x]}else{S._update.call(this,m,y,M,b);for(var x=0;x<this.blockSize;x++)M[b+x]^=_[x];for(var x=0;x<this.blockSize;x++)_[x]=m[y+x]}},Ap}var kp={},L5=!1;function ZC(){if(L5)return kp;L5=!0;var i=$o(),s=Je(),a=ub(),u=mx();function n(m,y){i.equal(y.length,24,"Invalid key length");var M=y.slice(0,8),b=y.slice(8,16),g=y.slice(16,24);m==="encrypt"?this.ciphers=[u.create({type:"encrypt",key:M}),u.create({type:"decrypt",key:b}),u.create({type:"encrypt",key:g})]:this.ciphers=[u.create({type:"decrypt",key:g}),u.create({type:"encrypt",key:b}),u.create({type:"decrypt",key:M})]}function p(m){a.call(this,m);var y=new n(this.type,this.options.key);this._edeState=y}return s(p,a),kp=p,p.create=function(y){return new p(y)},p.prototype._update=function(y,M,b,g){var S=this._edeState;S.ciphers[0]._update(y,M,b,g),S.ciphers[1]._update(b,g,b,g),S.ciphers[2]._update(b,g,b,g)},p.prototype._pad=u.prototype._pad,p.prototype._unpad=u.prototype._unpad,kp}var ls={},O5=!1;function VC(){return O5||(O5=!0,ls.utils=px(),ls.Cipher=ub(),ls.DES=mx(),ls.CBC=GC(),ls.EDE=ZC()),ls}var Rp={},N5=!1,Nl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function WC(){if(N5)return Rp;N5=!0;var i=qa(),s=VC(),a=Je(),u=ar().Buffer,n={"des-ede3-cbc":s.CBC.instantiate(s.EDE),"des-ede3":s.EDE,"des-ede-cbc":s.CBC.instantiate(s.EDE),"des-ede":s.EDE,"des-cbc":s.CBC.instantiate(s.DES),"des-ecb":s.DES};n.des=n["des-cbc"],n.des3=n["des-ede3-cbc"],Rp=p,a(p,i);function p(m){i.call(this||Nl);var y=m.mode.toLowerCase(),M=n[y],b;m.decrypt?b="decrypt":b="encrypt";var g=m.key;u.isBuffer(g)||(g=u.from(g)),(y==="des-ede"||y==="des-ede-cbc")&&(g=u.concat([g,g.slice(0,8)]));var S=m.iv;u.isBuffer(S)||(S=u.from(S)),(this||Nl)._des=M.create({key:g,iv:S,type:b})}return p.prototype._update=function(m){return u.from((this||Nl)._des.update(m))},p.prototype._final=function(){return u.from((this||Nl)._des.final())},Rp}var ql={},q5=!1;function XC(){return q5||(q5=!0,ql.encrypt=function(i,s){return i._cipher.encryptBlock(s)},ql.decrypt=function(i,s){return i._cipher.decryptBlock(s)}),ql}var Bp={},z5=!1;function hu(){if(z5)return Bp;z5=!0;var i=Tr.Buffer;return Bp=function(a,u){for(var n=Math.min(a.length,u.length),p=new i(n),m=0;m<n;++m)p[m]=a[m]^u[m];return p},Bp}var zl={},U5=!1;function JC(){if(U5)return zl;U5=!0;var i=hu();return zl.encrypt=function(s,a){var u=i(a,s._prev);return s._prev=s._cipher.encryptBlock(u),s._prev},zl.decrypt=function(s,a){var u=s._prev;s._prev=a;var n=s._cipher.decryptBlock(a);return i(n,u)},zl}var Tp={},F5=!1;function YC(){if(F5)return Tp;F5=!0;var i=ar().Buffer,s=hu();function a(u,n,p){var m=n.length,y=s(n,u._cache);return u._cache=u._cache.slice(m),u._prev=i.concat([u._prev,p?n:y]),y}return Tp.encrypt=function(u,n,p){for(var m=i.allocUnsafe(0),y;n.length;)if(u._cache.length===0&&(u._cache=u._cipher.encryptBlock(u._prev),u._prev=i.allocUnsafe(0)),u._cache.length<=n.length)y=u._cache.length,m=i.concat([m,a(u,n.slice(0,y),p)]),n=n.slice(y);else{m=i.concat([m,a(u,n,p)]);break}return m},Tp}var $p={},j5=!1;function QC(){if(j5)return $p;j5=!0;var i=ar().Buffer;function s(a,u,n){var p=a._cipher.encryptBlock(a._prev),m=p[0]^u;return a._prev=i.concat([a._prev.slice(1),i.from([n?u:m])]),m}return $p.encrypt=function(a,u,n){for(var p=u.length,m=i.allocUnsafe(p),y=-1;++y<p;)m[y]=s(a,u[y],n);return m},$p}var Ip={},H5=!1;function tP(){if(H5)return Ip;H5=!0;var i=ar().Buffer;function s(u,n,p){for(var m,y=-1,M=8,b=0,g,S;++y<M;)m=u._cipher.encryptBlock(u._prev),g=n&1<<7-y?128:0,S=m[0]^g,b+=(S&128)>>y%8,u._prev=a(u._prev,p?g:S);return b}function a(u,n){var p=u.length,m=-1,y=i.allocUnsafe(u.length);for(u=i.concat([u,i.from([n])]);++m<p;)y[m]=u[m]<<1|u[m+1]>>7;return y}return Ip.encrypt=function(u,n,p){for(var m=n.length,y=i.allocUnsafe(m),M=-1;++M<m;)y[M]=s(u,n[M],p);return y},Ip}var Cp={},K5=!1;function eP(){if(K5)return Cp;K5=!0;var i=Tr.Buffer,s=hu();function a(u){return u._prev=u._cipher.encryptBlock(u._prev),u._prev}return Cp.encrypt=function(u,n){for(;u._cache.length<n.length;)u._cache=i.concat([u._cache,a(u)]);var p=u._cache.slice(0,n.length);return u._cache=u._cache.slice(n.length),s(n,p)},Cp}var Pp={},G5=!1;function vx(){if(G5)return Pp;G5=!0;function i(s){for(var a=s.length,u;a--;)if(u=s.readUInt8(a),u===255)s.writeUInt8(0,a);else{u++,s.writeUInt8(u,a);break}}return Pp=i,Pp}var Dp={},Z5=!1;function V5(){if(Z5)return Dp;Z5=!0;var i=hu(),s=ar().Buffer,a=vx();function u(p){var m=p._cipher.encryptBlockRaw(p._prev);return a(p._prev),m}var n=16;return Dp.encrypt=function(p,m){var y=Math.ceil(m.length/n),M=p._cache.length;p._cache=s.concat([p._cache,s.allocUnsafe(y*n)]);for(var b=0;b<y;b++){var g=u(p),S=M+b*n;p._cache.writeUInt32BE(g[0],S+0),p._cache.writeUInt32BE(g[1],S+4),p._cache.writeUInt32BE(g[2],S+8),p._cache.writeUInt32BE(g[3],S+12)}var _=p._cache.slice(0,m.length);return p._cache=p._cache.slice(m.length),i(m,_)},Dp}var gx={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},Lp={},W5=!1;function lb(){if(W5)return Lp;W5=!0;var i={ECB:XC(),CBC:JC(),CFB:YC(),CFB8:QC(),CFB1:tP(),OFB:eP(),CTR:V5(),GCM:V5()},s=gx;for(var a in s)s[a].module=i[s[a].mode];return Lp=s,Lp}var Op={},X5=!1,vn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function sc(){if(X5)return Op;X5=!0;var i=ar().Buffer;function s(y){i.isBuffer(y)||(y=i.from(y));for(var M=y.length/4|0,b=new Array(M),g=0;g<M;g++)b[g]=y.readUInt32BE(g*4);return b}function a(y){for(var M=0;M<y.length;y++)y[M]=0}function u(y,M,b,g,S){for(var _=b[0],x=b[1],E=b[2],k=b[3],B=y[0]^M[0],T=y[1]^M[1],C=y[2]^M[2],P=y[3]^M[3],G,U,V,I,D=4,z=1;z<S;z++)G=_[B>>>24]^x[T>>>16&255]^E[C>>>8&255]^k[P&255]^M[D++],U=_[T>>>24]^x[C>>>16&255]^E[P>>>8&255]^k[B&255]^M[D++],V=_[C>>>24]^x[P>>>16&255]^E[B>>>8&255]^k[T&255]^M[D++],I=_[P>>>24]^x[B>>>16&255]^E[T>>>8&255]^k[C&255]^M[D++],B=G,T=U,C=V,P=I;return G=(g[B>>>24]<<24|g[T>>>16&255]<<16|g[C>>>8&255]<<8|g[P&255])^M[D++],U=(g[T>>>24]<<24|g[C>>>16&255]<<16|g[P>>>8&255]<<8|g[B&255])^M[D++],V=(g[C>>>24]<<24|g[P>>>16&255]<<16|g[B>>>8&255]<<8|g[T&255])^M[D++],I=(g[P>>>24]<<24|g[B>>>16&255]<<16|g[T>>>8&255]<<8|g[C&255])^M[D++],G=G>>>0,U=U>>>0,V=V>>>0,I=I>>>0,[G,U,V,I]}var n=[0,1,2,4,8,16,32,64,128,27,54],p=function(){for(var y=new Array(256),M=0;M<256;M++)M<128?y[M]=M<<1:y[M]=M<<1^283;for(var b=[],g=[],S=[[],[],[],[]],_=[[],[],[],[]],x=0,E=0,k=0;k<256;++k){var B=E^E<<1^E<<2^E<<3^E<<4;B=B>>>8^B&255^99,b[x]=B,g[B]=x;var T=y[x],C=y[T],P=y[C],G=y[B]*257^B*16843008;S[0][x]=G<<24|G>>>8,S[1][x]=G<<16|G>>>16,S[2][x]=G<<8|G>>>24,S[3][x]=G,G=P*16843009^C*65537^T*257^x*16843008,_[0][B]=G<<24|G>>>8,_[1][B]=G<<16|G>>>16,_[2][B]=G<<8|G>>>24,_[3][B]=G,x===0?x=E=1:(x=T^y[y[y[P^T]]],E^=y[y[E]])}return{SBOX:b,INV_SBOX:g,SUB_MIX:S,INV_SUB_MIX:_}}();function m(y){(this||vn)._key=s(y),this._reset()}return m.blockSize=4*4,m.keySize=256/8,m.prototype.blockSize=m.blockSize,m.prototype.keySize=m.keySize,m.prototype._reset=function(){for(var y=(this||vn)._key,M=y.length,b=M+6,g=(b+1)*4,S=[],_=0;_<M;_++)S[_]=y[_];for(_=M;_<g;_++){var x=S[_-1];_%M===0?(x=x<<8|x>>>24,x=p.SBOX[x>>>24]<<24|p.SBOX[x>>>16&255]<<16|p.SBOX[x>>>8&255]<<8|p.SBOX[x&255],x^=n[_/M|0]<<24):M>6&&_%M===4&&(x=p.SBOX[x>>>24]<<24|p.SBOX[x>>>16&255]<<16|p.SBOX[x>>>8&255]<<8|p.SBOX[x&255]),S[_]=S[_-M]^x}for(var E=[],k=0;k<g;k++){var B=g-k,T=S[B-(k%4?0:4)];k<4||B<=4?E[k]=T:E[k]=p.INV_SUB_MIX[0][p.SBOX[T>>>24]]^p.INV_SUB_MIX[1][p.SBOX[T>>>16&255]]^p.INV_SUB_MIX[2][p.SBOX[T>>>8&255]]^p.INV_SUB_MIX[3][p.SBOX[T&255]]}(this||vn)._nRounds=b,(this||vn)._keySchedule=S,(this||vn)._invKeySchedule=E},m.prototype.encryptBlockRaw=function(y){return y=s(y),u(y,(this||vn)._keySchedule,p.SUB_MIX,p.SBOX,(this||vn)._nRounds)},m.prototype.encryptBlock=function(y){var M=this.encryptBlockRaw(y),b=i.allocUnsafe(16);return b.writeUInt32BE(M[0],0),b.writeUInt32BE(M[1],4),b.writeUInt32BE(M[2],8),b.writeUInt32BE(M[3],12),b},m.prototype.decryptBlock=function(y){y=s(y);var M=y[1];y[1]=y[3],y[3]=M;var b=u(y,(this||vn)._invKeySchedule,p.INV_SUB_MIX,p.INV_SBOX,(this||vn)._nRounds),g=i.allocUnsafe(16);return g.writeUInt32BE(b[0],0),g.writeUInt32BE(b[3],4),g.writeUInt32BE(b[2],8),g.writeUInt32BE(b[1],12),g},m.prototype.scrub=function(){a((this||vn)._keySchedule),a((this||vn)._invKeySchedule),a((this||vn)._key)},Op.AES=m,Op}var Np={},J5=!1,Si=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function rP(){if(J5)return Np;J5=!0;var i=ar().Buffer,s=i.alloc(16,0);function a(p){return[p.readUInt32BE(0),p.readUInt32BE(4),p.readUInt32BE(8),p.readUInt32BE(12)]}function u(p){var m=i.allocUnsafe(16);return m.writeUInt32BE(p[0]>>>0,0),m.writeUInt32BE(p[1]>>>0,4),m.writeUInt32BE(p[2]>>>0,8),m.writeUInt32BE(p[3]>>>0,12),m}function n(p){(this||Si).h=p,(this||Si).state=i.alloc(16,0),(this||Si).cache=i.allocUnsafe(0)}return n.prototype.ghash=function(p){for(var m=-1;++m<p.length;)(this||Si).state[m]^=p[m];this._multiply()},n.prototype._multiply=function(){for(var p=a((this||Si).h),m=[0,0,0,0],y,M,b,g=-1;++g<128;){for(M=((this||Si).state[~~(g/8)]&1<<7-g%8)!==0,M&&(m[0]^=p[0],m[1]^=p[1],m[2]^=p[2],m[3]^=p[3]),b=(p[3]&1)!==0,y=3;y>0;y--)p[y]=p[y]>>>1|(p[y-1]&1)<<31;p[0]=p[0]>>>1,b&&(p[0]=p[0]^225<<24)}(this||Si).state=u(m)},n.prototype.update=function(p){(this||Si).cache=i.concat([(this||Si).cache,p]);for(var m;(this||Si).cache.length>=16;)m=(this||Si).cache.slice(0,16),(this||Si).cache=(this||Si).cache.slice(16),this.ghash(m)},n.prototype.final=function(p,m){return(this||Si).cache.length&&this.ghash(i.concat([(this||Si).cache,s],16)),this.ghash(u([0,p,0,m])),(this||Si).state},Np=n,Np}var qp={},Y5=!1,Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function bx(){if(Y5)return qp;Y5=!0;var i=sc(),s=ar().Buffer,a=qa(),u=Je(),n=rP(),p=hu(),m=vx();function y(g,S){var _=0;g.length!==S.length&&_++;for(var x=Math.min(g.length,S.length),E=0;E<x;++E)_+=g[E]^S[E];return _}function M(g,S,_){if(S.length===12)return g._finID=s.concat([S,s.from([0,0,0,1])]),s.concat([S,s.from([0,0,0,2])]);var x=new n(_),E=S.length,k=E%16;x.update(S),k&&(k=16-k,x.update(s.alloc(k,0))),x.update(s.alloc(8,0));var B=E*8,T=s.alloc(8);T.writeUIntBE(B,0,8),x.update(T),g._finID=x.state;var C=s.from(g._finID);return m(C),C}function b(g,S,_,x){a.call(this||Ue);var E=s.alloc(4,0);(this||Ue)._cipher=new i.AES(S);var k=(this||Ue)._cipher.encryptBlock(E);(this||Ue)._ghash=new n(k),_=M(this||Ue,_,k),(this||Ue)._prev=s.from(_),(this||Ue)._cache=s.allocUnsafe(0),(this||Ue)._secCache=s.allocUnsafe(0),(this||Ue)._decrypt=x,(this||Ue)._alen=0,(this||Ue)._len=0,(this||Ue)._mode=g,(this||Ue)._authTag=null,(this||Ue)._called=!1}return u(b,a),b.prototype._update=function(g){if(!(this||Ue)._called&&(this||Ue)._alen){var S=16-(this||Ue)._alen%16;S<16&&(S=s.alloc(S,0),(this||Ue)._ghash.update(S))}(this||Ue)._called=!0;var _=(this||Ue)._mode.encrypt(this||Ue,g);return(this||Ue)._decrypt?(this||Ue)._ghash.update(g):(this||Ue)._ghash.update(_),(this||Ue)._len+=g.length,_},b.prototype._final=function(){if((this||Ue)._decrypt&&!(this||Ue)._authTag)throw new Error("Unsupported state or unable to authenticate data");var g=p((this||Ue)._ghash.final((this||Ue)._alen*8,(this||Ue)._len*8),(this||Ue)._cipher.encryptBlock((this||Ue)._finID));if((this||Ue)._decrypt&&y(g,(this||Ue)._authTag))throw new Error("Unsupported state or unable to authenticate data");(this||Ue)._authTag=g,(this||Ue)._cipher.scrub()},b.prototype.getAuthTag=function(){if((this||Ue)._decrypt||!s.isBuffer((this||Ue)._authTag))throw new Error("Attempting to get auth tag in unsupported state");return(this||Ue)._authTag},b.prototype.setAuthTag=function(S){if(!(this||Ue)._decrypt)throw new Error("Attempting to set auth tag in unsupported state");(this||Ue)._authTag=S},b.prototype.setAAD=function(S){if((this||Ue)._called)throw new Error("Attempting to set AAD in unsupported state");(this||Ue)._ghash.update(S),(this||Ue)._alen+=S.length},qp=b,qp}var zp={},Q5=!1,Kn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function yx(){if(Q5)return zp;Q5=!0;var i=sc(),s=ar().Buffer,a=qa(),u=Je();function n(p,m,y,M){a.call(this||Kn),(this||Kn)._cipher=new i.AES(m),(this||Kn)._prev=s.from(y),(this||Kn)._cache=s.allocUnsafe(0),(this||Kn)._secCache=s.allocUnsafe(0),(this||Kn)._decrypt=M,(this||Kn)._mode=p}return u(n,a),n.prototype._update=function(p){return(this||Kn)._mode.encrypt(this||Kn,p,(this||Kn)._decrypt)},n.prototype._final=function(){(this||Kn)._cipher.scrub()},zp=n,zp}var Up={},t7=!1;function hc(){if(t7)return Up;t7=!0;var i=ar().Buffer,s=nb();function a(u,n,p,m){if(i.isBuffer(u)||(u=i.from(u,"binary")),n&&(i.isBuffer(n)||(n=i.from(n,"binary")),n.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var y=p/8,M=i.alloc(y),b=i.alloc(m||0),g=i.alloc(0);y>0||m>0;){var S=new s;S.update(g),S.update(u),n&&S.update(n),g=S.digest();var _=0;if(y>0){var x=M.length-y;_=Math.min(y,g.length),g.copy(M,x,0,_),y-=_}if(_<g.length&&m>0){var E=b.length-m,k=Math.min(m,g.length-_);g.copy(b,E,_,_+k),m-=k}}return g.fill(0),{key:M,iv:b}}return Up=a,Up}var Ul={},e7=!1,Er=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function iP(){if(e7)return Ul;e7=!0;var i=lb(),s=bx(),a=ar().Buffer,u=yx(),n=qa(),p=sc(),m=hc(),y=Je();function M(x,E,k){n.call(this||Er),(this||Er)._cache=new g,(this||Er)._cipher=new p.AES(E),(this||Er)._prev=a.from(k),(this||Er)._mode=x,(this||Er)._autopadding=!0}y(M,n),M.prototype._update=function(x){(this||Er)._cache.add(x);for(var E,k,B=[];E=(this||Er)._cache.get();)k=(this||Er)._mode.encrypt(this||Er,E),B.push(k);return a.concat(B)};var b=a.alloc(16,16);M.prototype._final=function(){var x=(this||Er)._cache.flush();if((this||Er)._autopadding)return x=(this||Er)._mode.encrypt(this||Er,x),(this||Er)._cipher.scrub(),x;if(!x.equals(b))throw(this||Er)._cipher.scrub(),new Error("data not multiple of block length")},M.prototype.setAutoPadding=function(x){return(this||Er)._autopadding=!!x,this||Er};function g(){(this||Er).cache=a.allocUnsafe(0)}g.prototype.add=function(x){(this||Er).cache=a.concat([(this||Er).cache,x])},g.prototype.get=function(){if((this||Er).cache.length>15){var x=(this||Er).cache.slice(0,16);return(this||Er).cache=(this||Er).cache.slice(16),x}return null},g.prototype.flush=function(){for(var x=16-(this||Er).cache.length,E=a.allocUnsafe(x),k=-1;++k<x;)E.writeUInt8(x,k);return a.concat([(this||Er).cache,E])};function S(x,E,k){var B=i[x.toLowerCase()];if(!B)throw new TypeError("invalid suite type");if(typeof E=="string"&&(E=a.from(E)),E.length!==B.key/8)throw new TypeError("invalid key length "+E.length);if(typeof k=="string"&&(k=a.from(k)),B.mode!=="GCM"&&k.length!==B.iv)throw new TypeError("invalid iv length "+k.length);return B.type==="stream"?new u(B.module,E,k):B.type==="auth"?new s(B.module,E,k):new M(B.module,E,k)}function _(x,E){var k=i[x.toLowerCase()];if(!k)throw new TypeError("invalid suite type");var B=m(E,!1,k.key,k.iv);return S(x,B.key,B.iv)}return Ul.createCipheriv=S,Ul.createCipher=_,Ul}var Fl={},r7=!1,fr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function nP(){if(r7)return Fl;r7=!0;var i=bx(),s=ar().Buffer,a=lb(),u=yx(),n=qa(),p=sc(),m=hc(),y=Je();function M(x,E,k){n.call(this||fr),(this||fr)._cache=new b,(this||fr)._last=void 0,(this||fr)._cipher=new p.AES(E),(this||fr)._prev=s.from(k),(this||fr)._mode=x,(this||fr)._autopadding=!0}y(M,n),M.prototype._update=function(x){(this||fr)._cache.add(x);for(var E,k,B=[];E=(this||fr)._cache.get((this||fr)._autopadding);)k=(this||fr)._mode.decrypt(this||fr,E),B.push(k);return s.concat(B)},M.prototype._final=function(){var x=(this||fr)._cache.flush();if((this||fr)._autopadding)return g((this||fr)._mode.decrypt(this||fr,x));if(x)throw new Error("data not multiple of block length")},M.prototype.setAutoPadding=function(x){return(this||fr)._autopadding=!!x,this||fr};function b(){(this||fr).cache=s.allocUnsafe(0)}b.prototype.add=function(x){(this||fr).cache=s.concat([(this||fr).cache,x])},b.prototype.get=function(x){var E;if(x){if((this||fr).cache.length>16)return E=(this||fr).cache.slice(0,16),(this||fr).cache=(this||fr).cache.slice(16),E}else if((this||fr).cache.length>=16)return E=(this||fr).cache.slice(0,16),(this||fr).cache=(this||fr).cache.slice(16),E;return null},b.prototype.flush=function(){if((this||fr).cache.length)return(this||fr).cache};function g(x){var E=x[15];if(E<1||E>16)throw new Error("unable to decrypt data");for(var k=-1;++k<E;)if(x[k+(16-E)]!==E)throw new Error("unable to decrypt data");if(E!==16)return x.slice(0,16-E)}function S(x,E,k){var B=a[x.toLowerCase()];if(!B)throw new TypeError("invalid suite type");if(typeof k=="string"&&(k=s.from(k)),B.mode!=="GCM"&&k.length!==B.iv)throw new TypeError("invalid iv length "+k.length);if(typeof E=="string"&&(E=s.from(E)),E.length!==B.key/8)throw new TypeError("invalid key length "+E.length);return B.type==="stream"?new u(B.module,E,k,!0):B.type==="auth"?new i(B.module,E,k,!0):new M(B.module,E,k)}function _(x,E){var k=a[x.toLowerCase()];if(!k)throw new TypeError("invalid suite type");var B=m(E,!1,k.key,k.iv);return S(x,B.key,B.iv)}return Fl.createDecipher=_,Fl.createDecipheriv=S,Fl}var gn={},i7=!1;function cb(){if(i7)return gn;i7=!0;var i=iP(),s=nP(),a=gx;function u(){return Object.keys(a)}return gn.createCipher=gn.Cipher=i.createCipher,gn.createCipheriv=gn.Cipheriv=i.createCipheriv,gn.createDecipher=gn.Decipher=s.createDecipher,gn.createDecipheriv=gn.Decipheriv=s.createDecipheriv,gn.listCiphers=gn.getCiphers=u,gn}var go={},n7=!1;function oP(){return n7||(n7=!0,go["des-ecb"]={key:8,iv:0},go["des-cbc"]=go.des={key:8,iv:8},go["des-ede3-cbc"]=go.des3={key:24,iv:8},go["des-ede3"]={key:24,iv:0},go["des-ede-cbc"]={key:16,iv:8},go["des-ede"]={key:16,iv:0}),go}var bn={},o7=!1;function aP(){if(o7)return bn;o7=!0;var i=WC(),s=cb(),a=lb(),u=oP(),n=hc();function p(g,S){g=g.toLowerCase();var _,x;if(a[g])_=a[g].key,x=a[g].iv;else if(u[g])_=u[g].key*8,x=u[g].iv;else throw new TypeError("invalid suite type");var E=n(S,!1,_,x);return y(g,E.key,E.iv)}function m(g,S){g=g.toLowerCase();var _,x;if(a[g])_=a[g].key,x=a[g].iv;else if(u[g])_=u[g].key*8,x=u[g].iv;else throw new TypeError("invalid suite type");var E=n(S,!1,_,x);return M(g,E.key,E.iv)}function y(g,S,_){if(g=g.toLowerCase(),a[g])return s.createCipheriv(g,S,_);if(u[g])return new i({key:S,iv:_,mode:g});throw new TypeError("invalid suite type")}function M(g,S,_){if(g=g.toLowerCase(),a[g])return s.createDecipheriv(g,S,_);if(u[g])return new i({key:S,iv:_,mode:g,decrypt:!0});throw new TypeError("invalid suite type")}function b(){return Object.keys(u).concat(s.getCiphers())}return bn.createCipher=bn.Cipher=p,bn.createCipheriv=bn.Cipheriv=y,bn.createDecipher=bn.Decipher=m,bn.createDecipheriv=bn.Decipheriv=M,bn.listCiphers=bn.getCiphers=b,bn}var wx={},a7=!1,Fp={exports:wx},tt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Mx(){return a7||(a7=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||tt).negative=0,(this||tt).words=null,(this||tt).length=0,(this||tt).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Tr.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||tt).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||tt).negative=1,t=-t),t<67108864?((this||tt).words=[t&67108863],(this||tt).length=1):t<4503599627370496?((this||tt).words=[t&67108863,t/67108864&67108863],(this||tt).length=2):(a(t<9007199254740992),(this||tt).words=[t&67108863,t/67108864&67108863,1],(this||tt).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||tt).words=[0],(this||tt).length=1,this||tt;(this||tt).length=Math.ceil(t.length/3),(this||tt).words=new Array((this||tt).length);for(var h=0;h<(this||tt).length;h++)(this||tt).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||tt).words[f]|=v<<w&67108863,(this||tt).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||tt).words[f]|=v<<w&67108863,(this||tt).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||tt).length=Math.ceil((t.length-r)/6),(this||tt).words=new Array((this||tt).length);for(var h=0;h<(this||tt).length;h++)(this||tt).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||tt).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||tt).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||tt).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||tt).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||tt).words=[0],(this||tt).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||tt).words[0]+e<67108864?(this||tt).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||tt).words[0]+e<67108864?(this||tt).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||tt).length);for(var r=0;r<(this||tt).length;r++)t.words[r]=(this||tt).words[r];t.length=(this||tt).length,t.negative=(this||tt).negative,t.red=(this||tt).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||tt).length<t;)(this||tt).words[(this||tt).length++]=0;return this||tt},n.prototype.strip=function(){for(;(this||tt).length>1&&(this||tt).words[(this||tt).length-1]===0;)(this||tt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||tt).length===1&&(this||tt).words[0]===0&&((this||tt).negative=0),this||tt},n.prototype.inspect=function(){return((this||tt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||tt).length;v++){var w=(this||tt).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||tt).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||tt).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||tt).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||tt).words[0];return(this||tt).length===2?t+=(this||tt).words[1]*67108864:(this||tt).length===3&&(this||tt).words[2]===1?t+=4503599627370496+(this||tt).words[1]*67108864:(this||tt).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||tt).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||tt).words[(this||tt).length-1],r=this._countBits(t);return((this||tt).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||tt).length;r++){var o=this._zeroBits((this||tt).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||tt).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||tt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||tt).negative^=1),this||tt},n.prototype.iuor=function(t){for(;(this||tt).length<t.length;)(this||tt).words[(this||tt).length++]=0;for(var r=0;r<t.length;r++)(this||tt).words[r]=(this||tt).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||tt).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||tt).length>t.length?this.clone().ior(t):t.clone().ior(this||tt)},n.prototype.uor=function(t){return(this||tt).length>t.length?this.clone().iuor(t):t.clone().iuor(this||tt)},n.prototype.iuand=function(t){var r;(this||tt).length>t.length?r=t:r=this||tt;for(var o=0;o<r.length;o++)(this||tt).words[o]=(this||tt).words[o]&t.words[o];return(this||tt).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||tt).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||tt).length>t.length?this.clone().iand(t):t.clone().iand(this||tt)},n.prototype.uand=function(t){return(this||tt).length>t.length?this.clone().iuand(t):t.clone().iuand(this||tt)},n.prototype.iuxor=function(t){var r,o;(this||tt).length>t.length?(r=this||tt,o=t):(r=t,o=this||tt);for(var h=0;h<o.length;h++)(this||tt).words[h]=r.words[h]^o.words[h];if((this||tt)!==r)for(;h<r.length;h++)(this||tt).words[h]=r.words[h];return(this||tt).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||tt).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||tt).length>t.length?this.clone().ixor(t):t.clone().ixor(this||tt)},n.prototype.uxor=function(t){return(this||tt).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||tt)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||tt).words[h]=~(this||tt).words[h]&67108863;return o>0&&((this||tt).words[h]=~(this||tt).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||tt).words[o]=(this||tt).words[o]|1<<h:(this||tt).words[o]=(this||tt).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||tt).negative!==0&&t.negative===0)return(this||tt).negative=0,r=this.isub(t),(this||tt).negative^=1,this._normSign();if((this||tt).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||tt).length>t.length?(o=this||tt,h=t):(o=t,h=this||tt);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||tt).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||tt).words[v]=r&67108863,f=r>>>26;if((this||tt).length=o.length,f!==0)(this||tt).words[(this||tt).length]=f,(this||tt).length++;else if(o!==(this||tt))for(;v<o.length;v++)(this||tt).words[v]=o.words[v];return this||tt},n.prototype.add=function(t){var r;return t.negative!==0&&(this||tt).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||tt).negative!==0?((this||tt).negative=0,r=t.sub(this||tt),(this||tt).negative=1,r):(this||tt).length>t.length?this.clone().iadd(t):t.clone().iadd(this||tt)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||tt).negative!==0)return(this||tt).negative=0,this.iadd(t),(this||tt).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||tt).negative=0,(this||tt).length=1,(this||tt).words[0]=0,this||tt;var h,f;o>0?(h=this||tt,f=t):(h=t,f=this||tt);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||tt).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||tt).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||tt))for(;w<h.length;w++)(this||tt).words[w]=h.words[w];return(this||tt).length=Math.max((this||tt).length,w),h!==(this||tt)&&((this||tt).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||tt).length+t.length;return(this||tt).length===10&&t.length===10?o=E(this||tt,t,r):h<63?o=x(this||tt,t,r):h<1024?o=k(this||tt,t,r):o=B(this||tt,t,r),o};function T(d,t){(this||tt).x=d,(this||tt).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||tt).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||tt).length+t.length),B(this||tt,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||tt)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||tt).length;o++){var h=((this||tt).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||tt).words[o]=f&67108863}return r!==0&&((this||tt).words[o]=r,(this||tt).length++),this||tt},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||tt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||tt,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||tt).length;f++){var w=(this||tt).words[f]&h,l=((this||tt).words[f]|0)-w<<r;(this||tt).words[f]=l|v,v=w>>>26-r}v&&((this||tt).words[f]=v,(this||tt).length++)}if(o!==0){for(f=(this||tt).length-1;f>=0;f--)(this||tt).words[f+o]=(this||tt).words[f];for(f=0;f<o;f++)(this||tt).words[f]=0;(this||tt).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||tt).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||tt).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||tt).words[e];l.length=v}if(v!==0)if((this||tt).length>v)for((this||tt).length-=v,e=0;e<(this||tt).length;e++)(this||tt).words[e]=(this||tt).words[e+v];else(this||tt).words[0]=0,(this||tt).length=1;var c=0;for(e=(this||tt).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||tt).words[e]|0;(this||tt).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||tt).length===0&&((this||tt).words[0]=0,(this||tt).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||tt).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||tt).length<=o)return!1;var f=(this||tt).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||tt).negative===0,"imaskn works only with positive numbers"),(this||tt).length<=o)return this||tt;if(r!==0&&o++,(this||tt).length=Math.min(o,(this||tt).length),r!==0){var h=67108863^67108863>>>r<<r;(this||tt).words[(this||tt).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||tt).negative!==0?(this||tt).length===1&&((this||tt).words[0]|0)<t?((this||tt).words[0]=t-((this||tt).words[0]|0),(this||tt).negative=0,this||tt):((this||tt).negative=0,this.isubn(t),(this||tt).negative=1,this||tt):this._iaddn(t)},n.prototype._iaddn=function(t){(this||tt).words[0]+=t;for(var r=0;r<(this||tt).length&&(this||tt).words[r]>=67108864;r++)(this||tt).words[r]-=67108864,r===(this||tt).length-1?(this||tt).words[r+1]=1:(this||tt).words[r+1]++;return(this||tt).length=Math.max((this||tt).length,r+1),this||tt},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||tt).negative!==0)return(this||tt).negative=0,this.iaddn(t),(this||tt).negative=1,this||tt;if((this||tt).words[0]-=t,(this||tt).length===1&&(this||tt).words[0]<0)(this||tt).words[0]=-(this||tt).words[0],(this||tt).negative=1;else for(var r=0;r<(this||tt).length&&(this||tt).words[r]<0;r++)(this||tt).words[r]+=67108864,(this||tt).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||tt).negative=0,this||tt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||tt).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||tt).words[f+o]=v&67108863}for(;f<(this||tt).length-o;f++)v=((this||tt).words[f+o]|0)+w,w=v>>26,(this||tt).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||tt).length;f++)v=-((this||tt).words[f]|0)+w,w=v>>26,(this||tt).words[f]=v&67108863;return(this||tt).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||tt).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||tt).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||tt).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||tt).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||tt).length||this.cmp(t)<0?{div:new n(0),mod:this||tt}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||tt).length-1;h>=0;h--)o=(r*o+((this||tt).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||tt).length-1;o>=0;o--){var h=((this||tt).words[o]|0)+r*67108864;(this||tt).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||tt,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||tt,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||tt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||tt).words[0]&1)===1},n.prototype.andln=function(t){return(this||tt).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||tt).length<=o)return this._expand(o+1),(this||tt).words[o]|=h,this||tt;for(var f=h,v=o;f!==0&&v<(this||tt).length;v++){var w=(this||tt).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||tt).words[v]=w}return f!==0&&((this||tt).words[v]=f,(this||tt).length++),this||tt},n.prototype.isZero=function(){return(this||tt).length===1&&(this||tt).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||tt).negative!==0&&!r)return-1;if((this||tt).negative===0&&r)return 1;this.strip();var o;if((this||tt).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||tt).words[0]|0;o=h===t?0:h<t?-1:1}return(this||tt).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||tt).negative!==0&&t.negative===0)return-1;if((this||tt).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||tt).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||tt).length>t.length)return 1;if((this||tt).length<t.length)return-1;for(var r=0,o=(this||tt).length-1;o>=0;o--){var h=(this||tt).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||tt).red,"Already a number in reduction context"),a((this||tt).negative===0,"red works only with positives"),t.convertTo(this||tt)._forceRed(t)},n.prototype.fromRed=function(){return a((this||tt).red,"fromRed works only with numbers in reduction context"),(this||tt).red.convertFrom(this||tt)},n.prototype._forceRed=function(t){return(this||tt).red=t,this||tt},n.prototype.forceRed=function(t){return a(!(this||tt).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||tt).red,"redAdd works only with red numbers"),(this||tt).red.add(this||tt,t)},n.prototype.redIAdd=function(t){return a((this||tt).red,"redIAdd works only with red numbers"),(this||tt).red.iadd(this||tt,t)},n.prototype.redSub=function(t){return a((this||tt).red,"redSub works only with red numbers"),(this||tt).red.sub(this||tt,t)},n.prototype.redISub=function(t){return a((this||tt).red,"redISub works only with red numbers"),(this||tt).red.isub(this||tt,t)},n.prototype.redShl=function(t){return a((this||tt).red,"redShl works only with red numbers"),(this||tt).red.shl(this||tt,t)},n.prototype.redMul=function(t){return a((this||tt).red,"redMul works only with red numbers"),(this||tt).red._verify2(this||tt,t),(this||tt).red.mul(this||tt,t)},n.prototype.redIMul=function(t){return a((this||tt).red,"redMul works only with red numbers"),(this||tt).red._verify2(this||tt,t),(this||tt).red.imul(this||tt,t)},n.prototype.redSqr=function(){return a((this||tt).red,"redSqr works only with red numbers"),(this||tt).red._verify1(this||tt),(this||tt).red.sqr(this||tt)},n.prototype.redISqr=function(){return a((this||tt).red,"redISqr works only with red numbers"),(this||tt).red._verify1(this||tt),(this||tt).red.isqr(this||tt)},n.prototype.redSqrt=function(){return a((this||tt).red,"redSqrt works only with red numbers"),(this||tt).red._verify1(this||tt),(this||tt).red.sqrt(this||tt)},n.prototype.redInvm=function(){return a((this||tt).red,"redInvm works only with red numbers"),(this||tt).red._verify1(this||tt),(this||tt).red.invm(this||tt)},n.prototype.redNeg=function(){return a((this||tt).red,"redNeg works only with red numbers"),(this||tt).red._verify1(this||tt),(this||tt).red.neg(this||tt)},n.prototype.redPow=function(t){return a((this||tt).red&&!t.red,"redPow(normalNum)"),(this||tt).red._verify1(this||tt),(this||tt).red.pow(this||tt,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||tt).name=d,(this||tt).p=new n(t,16),(this||tt).n=(this||tt).p.bitLength(),(this||tt).k=new n(1).iushln((this||tt).n).isub((this||tt).p),(this||tt).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||tt).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||tt).tmp),r=this.imulK(r),r=r.iadd((this||tt).tmp),o=r.bitLength();while(o>(this||tt).n);var h=o<(this||tt).n?-1:r.ucmp((this||tt).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||tt).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||tt).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||tt).k)};function G(){P.call(this||tt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||tt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||tt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||tt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||tt).m=t.p,(this||tt).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||tt).m=d,(this||tt).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||tt).prime?(this||tt).prime.ireduce(t)._forceRed(this||tt):t.umod((this||tt).m)._forceRed(this||tt)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||tt).m.sub(t)._forceRed(this||tt)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||tt).m)>=0&&o.isub((this||tt).m),o._forceRed(this||tt)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||tt).m)>=0&&o.isub((this||tt).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||tt).m),o._forceRed(this||tt)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||tt).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||tt).m.andln(3);if(a(r%2===1),r===3){var o=(this||tt).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||tt).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||tt),w=v.redNeg(),l=(this||tt).m.subn(1).iushrn(1),e=(this||tt).m.bitLength();for(e=new n(2*e*e).toRed(this||tt);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||tt).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||tt);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||tt),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||tt).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||tt,d),(this||tt).shift=(this||tt).m.bitLength(),(this||tt).shift%26!==0&&((this||tt).shift+=26-(this||tt).shift%26),(this||tt).r=new n(1).iushln((this||tt).shift),(this||tt).r2=this.imod((this||tt).r.sqr()),(this||tt).rinv=(this||tt).r._invmp((this||tt).m),(this||tt).minv=(this||tt).rinv.mul((this||tt).r).isubn(1).div((this||tt).m),(this||tt).minv=(this||tt).minv.umod((this||tt).r),(this||tt).minv=(this||tt).r.sub((this||tt).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||tt).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||tt).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||tt).shift).mul((this||tt).minv).imaskn((this||tt).shift).mul((this||tt).m),f=o.isub(h).iushrn((this||tt).shift),v=f;return f.cmp((this||tt).m)>=0?v=f.isub((this||tt).m):f.cmpn(0)<0&&(v=f.iadd((this||tt).m)),v._forceRed(this||tt)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||tt);var o=t.mul(r),h=o.maskn((this||tt).shift).mul((this||tt).minv).imaskn((this||tt).shift).mul((this||tt).m),f=o.isub(h).iushrn((this||tt).shift),v=f;return f.cmp((this||tt).m)>=0?v=f.isub((this||tt).m):f.cmpn(0)<0&&(v=f.iadd((this||tt).m)),v._forceRed(this||tt)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||tt).m).mul((this||tt).r2));return r._forceRed(this||tt)}}(Fp,wx)),Fp.exports}var _x={},s7=!1,jp={exports:_x},et=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function sP(){return s7||(s7=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||et).negative=0,(this||et).words=null,(this||et).length=0,(this||et).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Tr.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||et).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||et).negative=1,t=-t),t<67108864?((this||et).words=[t&67108863],(this||et).length=1):t<4503599627370496?((this||et).words=[t&67108863,t/67108864&67108863],(this||et).length=2):(a(t<9007199254740992),(this||et).words=[t&67108863,t/67108864&67108863,1],(this||et).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||et).words=[0],(this||et).length=1,this||et;(this||et).length=Math.ceil(t.length/3),(this||et).words=new Array((this||et).length);for(var h=0;h<(this||et).length;h++)(this||et).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||et).words[f]|=v<<w&67108863,(this||et).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||et).words[f]|=v<<w&67108863,(this||et).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||et).length=Math.ceil((t.length-r)/6),(this||et).words=new Array((this||et).length);for(var h=0;h<(this||et).length;h++)(this||et).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||et).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||et).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||et).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||et).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||et).words=[0],(this||et).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||et).words[0]+e<67108864?(this||et).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||et).words[0]+e<67108864?(this||et).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||et).length);for(var r=0;r<(this||et).length;r++)t.words[r]=(this||et).words[r];t.length=(this||et).length,t.negative=(this||et).negative,t.red=(this||et).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||et).length<t;)(this||et).words[(this||et).length++]=0;return this||et},n.prototype.strip=function(){for(;(this||et).length>1&&(this||et).words[(this||et).length-1]===0;)(this||et).length--;return this._normSign()},n.prototype._normSign=function(){return(this||et).length===1&&(this||et).words[0]===0&&((this||et).negative=0),this||et},n.prototype.inspect=function(){return((this||et).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||et).length;v++){var w=(this||et).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||et).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||et).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||et).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||et).words[0];return(this||et).length===2?t+=(this||et).words[1]*67108864:(this||et).length===3&&(this||et).words[2]===1?t+=4503599627370496+(this||et).words[1]*67108864:(this||et).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||et).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||et).words[(this||et).length-1],r=this._countBits(t);return((this||et).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||et).length;r++){var o=this._zeroBits((this||et).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||et).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||et).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||et).negative^=1),this||et},n.prototype.iuor=function(t){for(;(this||et).length<t.length;)(this||et).words[(this||et).length++]=0;for(var r=0;r<t.length;r++)(this||et).words[r]=(this||et).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||et).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||et).length>t.length?this.clone().ior(t):t.clone().ior(this||et)},n.prototype.uor=function(t){return(this||et).length>t.length?this.clone().iuor(t):t.clone().iuor(this||et)},n.prototype.iuand=function(t){var r;(this||et).length>t.length?r=t:r=this||et;for(var o=0;o<r.length;o++)(this||et).words[o]=(this||et).words[o]&t.words[o];return(this||et).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||et).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||et).length>t.length?this.clone().iand(t):t.clone().iand(this||et)},n.prototype.uand=function(t){return(this||et).length>t.length?this.clone().iuand(t):t.clone().iuand(this||et)},n.prototype.iuxor=function(t){var r,o;(this||et).length>t.length?(r=this||et,o=t):(r=t,o=this||et);for(var h=0;h<o.length;h++)(this||et).words[h]=r.words[h]^o.words[h];if((this||et)!==r)for(;h<r.length;h++)(this||et).words[h]=r.words[h];return(this||et).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||et).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||et).length>t.length?this.clone().ixor(t):t.clone().ixor(this||et)},n.prototype.uxor=function(t){return(this||et).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||et)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||et).words[h]=~(this||et).words[h]&67108863;return o>0&&((this||et).words[h]=~(this||et).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||et).words[o]=(this||et).words[o]|1<<h:(this||et).words[o]=(this||et).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||et).negative!==0&&t.negative===0)return(this||et).negative=0,r=this.isub(t),(this||et).negative^=1,this._normSign();if((this||et).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||et).length>t.length?(o=this||et,h=t):(o=t,h=this||et);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||et).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||et).words[v]=r&67108863,f=r>>>26;if((this||et).length=o.length,f!==0)(this||et).words[(this||et).length]=f,(this||et).length++;else if(o!==(this||et))for(;v<o.length;v++)(this||et).words[v]=o.words[v];return this||et},n.prototype.add=function(t){var r;return t.negative!==0&&(this||et).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||et).negative!==0?((this||et).negative=0,r=t.sub(this||et),(this||et).negative=1,r):(this||et).length>t.length?this.clone().iadd(t):t.clone().iadd(this||et)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||et).negative!==0)return(this||et).negative=0,this.iadd(t),(this||et).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||et).negative=0,(this||et).length=1,(this||et).words[0]=0,this||et;var h,f;o>0?(h=this||et,f=t):(h=t,f=this||et);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||et).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||et).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||et))for(;w<h.length;w++)(this||et).words[w]=h.words[w];return(this||et).length=Math.max((this||et).length,w),h!==(this||et)&&((this||et).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||et).length+t.length;return(this||et).length===10&&t.length===10?o=E(this||et,t,r):h<63?o=x(this||et,t,r):h<1024?o=k(this||et,t,r):o=B(this||et,t,r),o};function T(d,t){(this||et).x=d,(this||et).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||et).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||et).length+t.length),B(this||et,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||et)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||et).length;o++){var h=((this||et).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||et).words[o]=f&67108863}return r!==0&&((this||et).words[o]=r,(this||et).length++),this||et},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||et)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||et,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||et).length;f++){var w=(this||et).words[f]&h,l=((this||et).words[f]|0)-w<<r;(this||et).words[f]=l|v,v=w>>>26-r}v&&((this||et).words[f]=v,(this||et).length++)}if(o!==0){for(f=(this||et).length-1;f>=0;f--)(this||et).words[f+o]=(this||et).words[f];for(f=0;f<o;f++)(this||et).words[f]=0;(this||et).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||et).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||et).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||et).words[e];l.length=v}if(v!==0)if((this||et).length>v)for((this||et).length-=v,e=0;e<(this||et).length;e++)(this||et).words[e]=(this||et).words[e+v];else(this||et).words[0]=0,(this||et).length=1;var c=0;for(e=(this||et).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||et).words[e]|0;(this||et).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||et).length===0&&((this||et).words[0]=0,(this||et).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||et).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||et).length<=o)return!1;var f=(this||et).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||et).negative===0,"imaskn works only with positive numbers"),(this||et).length<=o)return this||et;if(r!==0&&o++,(this||et).length=Math.min(o,(this||et).length),r!==0){var h=67108863^67108863>>>r<<r;(this||et).words[(this||et).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||et).negative!==0?(this||et).length===1&&((this||et).words[0]|0)<t?((this||et).words[0]=t-((this||et).words[0]|0),(this||et).negative=0,this||et):((this||et).negative=0,this.isubn(t),(this||et).negative=1,this||et):this._iaddn(t)},n.prototype._iaddn=function(t){(this||et).words[0]+=t;for(var r=0;r<(this||et).length&&(this||et).words[r]>=67108864;r++)(this||et).words[r]-=67108864,r===(this||et).length-1?(this||et).words[r+1]=1:(this||et).words[r+1]++;return(this||et).length=Math.max((this||et).length,r+1),this||et},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||et).negative!==0)return(this||et).negative=0,this.iaddn(t),(this||et).negative=1,this||et;if((this||et).words[0]-=t,(this||et).length===1&&(this||et).words[0]<0)(this||et).words[0]=-(this||et).words[0],(this||et).negative=1;else for(var r=0;r<(this||et).length&&(this||et).words[r]<0;r++)(this||et).words[r]+=67108864,(this||et).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||et).negative=0,this||et},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||et).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||et).words[f+o]=v&67108863}for(;f<(this||et).length-o;f++)v=((this||et).words[f+o]|0)+w,w=v>>26,(this||et).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||et).length;f++)v=-((this||et).words[f]|0)+w,w=v>>26,(this||et).words[f]=v&67108863;return(this||et).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||et).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||et).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||et).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||et).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||et).length||this.cmp(t)<0?{div:new n(0),mod:this||et}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||et).length-1;h>=0;h--)o=(r*o+((this||et).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||et).length-1;o>=0;o--){var h=((this||et).words[o]|0)+r*67108864;(this||et).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||et,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||et,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||et).words[0]&1)===0},n.prototype.isOdd=function(){return((this||et).words[0]&1)===1},n.prototype.andln=function(t){return(this||et).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||et).length<=o)return this._expand(o+1),(this||et).words[o]|=h,this||et;for(var f=h,v=o;f!==0&&v<(this||et).length;v++){var w=(this||et).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||et).words[v]=w}return f!==0&&((this||et).words[v]=f,(this||et).length++),this||et},n.prototype.isZero=function(){return(this||et).length===1&&(this||et).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||et).negative!==0&&!r)return-1;if((this||et).negative===0&&r)return 1;this.strip();var o;if((this||et).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||et).words[0]|0;o=h===t?0:h<t?-1:1}return(this||et).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||et).negative!==0&&t.negative===0)return-1;if((this||et).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||et).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||et).length>t.length)return 1;if((this||et).length<t.length)return-1;for(var r=0,o=(this||et).length-1;o>=0;o--){var h=(this||et).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||et).red,"Already a number in reduction context"),a((this||et).negative===0,"red works only with positives"),t.convertTo(this||et)._forceRed(t)},n.prototype.fromRed=function(){return a((this||et).red,"fromRed works only with numbers in reduction context"),(this||et).red.convertFrom(this||et)},n.prototype._forceRed=function(t){return(this||et).red=t,this||et},n.prototype.forceRed=function(t){return a(!(this||et).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||et).red,"redAdd works only with red numbers"),(this||et).red.add(this||et,t)},n.prototype.redIAdd=function(t){return a((this||et).red,"redIAdd works only with red numbers"),(this||et).red.iadd(this||et,t)},n.prototype.redSub=function(t){return a((this||et).red,"redSub works only with red numbers"),(this||et).red.sub(this||et,t)},n.prototype.redISub=function(t){return a((this||et).red,"redISub works only with red numbers"),(this||et).red.isub(this||et,t)},n.prototype.redShl=function(t){return a((this||et).red,"redShl works only with red numbers"),(this||et).red.shl(this||et,t)},n.prototype.redMul=function(t){return a((this||et).red,"redMul works only with red numbers"),(this||et).red._verify2(this||et,t),(this||et).red.mul(this||et,t)},n.prototype.redIMul=function(t){return a((this||et).red,"redMul works only with red numbers"),(this||et).red._verify2(this||et,t),(this||et).red.imul(this||et,t)},n.prototype.redSqr=function(){return a((this||et).red,"redSqr works only with red numbers"),(this||et).red._verify1(this||et),(this||et).red.sqr(this||et)},n.prototype.redISqr=function(){return a((this||et).red,"redISqr works only with red numbers"),(this||et).red._verify1(this||et),(this||et).red.isqr(this||et)},n.prototype.redSqrt=function(){return a((this||et).red,"redSqrt works only with red numbers"),(this||et).red._verify1(this||et),(this||et).red.sqrt(this||et)},n.prototype.redInvm=function(){return a((this||et).red,"redInvm works only with red numbers"),(this||et).red._verify1(this||et),(this||et).red.invm(this||et)},n.prototype.redNeg=function(){return a((this||et).red,"redNeg works only with red numbers"),(this||et).red._verify1(this||et),(this||et).red.neg(this||et)},n.prototype.redPow=function(t){return a((this||et).red&&!t.red,"redPow(normalNum)"),(this||et).red._verify1(this||et),(this||et).red.pow(this||et,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||et).name=d,(this||et).p=new n(t,16),(this||et).n=(this||et).p.bitLength(),(this||et).k=new n(1).iushln((this||et).n).isub((this||et).p),(this||et).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||et).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||et).tmp),r=this.imulK(r),r=r.iadd((this||et).tmp),o=r.bitLength();while(o>(this||et).n);var h=o<(this||et).n?-1:r.ucmp((this||et).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||et).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||et).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||et).k)};function G(){P.call(this||et,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||et,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||et,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||et,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||et).m=t.p,(this||et).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||et).m=d,(this||et).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||et).prime?(this||et).prime.ireduce(t)._forceRed(this||et):t.umod((this||et).m)._forceRed(this||et)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||et).m.sub(t)._forceRed(this||et)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||et).m)>=0&&o.isub((this||et).m),o._forceRed(this||et)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||et).m)>=0&&o.isub((this||et).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||et).m),o._forceRed(this||et)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||et).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||et).m.andln(3);if(a(r%2===1),r===3){var o=(this||et).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||et).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||et),w=v.redNeg(),l=(this||et).m.subn(1).iushrn(1),e=(this||et).m.bitLength();for(e=new n(2*e*e).toRed(this||et);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||et).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||et);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||et),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||et).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||et,d),(this||et).shift=(this||et).m.bitLength(),(this||et).shift%26!==0&&((this||et).shift+=26-(this||et).shift%26),(this||et).r=new n(1).iushln((this||et).shift),(this||et).r2=this.imod((this||et).r.sqr()),(this||et).rinv=(this||et).r._invmp((this||et).m),(this||et).minv=(this||et).rinv.mul((this||et).r).isubn(1).div((this||et).m),(this||et).minv=(this||et).minv.umod((this||et).r),(this||et).minv=(this||et).r.sub((this||et).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||et).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||et).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||et).shift).mul((this||et).minv).imaskn((this||et).shift).mul((this||et).m),f=o.isub(h).iushrn((this||et).shift),v=f;return f.cmp((this||et).m)>=0?v=f.isub((this||et).m):f.cmpn(0)<0&&(v=f.iadd((this||et).m)),v._forceRed(this||et)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||et);var o=t.mul(r),h=o.maskn((this||et).shift).mul((this||et).minv).imaskn((this||et).shift).mul((this||et).m),f=o.isub(h).iushrn((this||et).shift),v=f;return f.cmp((this||et).m)>=0?v=f.isub((this||et).m):f.cmpn(0)<0&&(v=f.iadd((this||et).m)),v._forceRed(this||et)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||et).m).mul((this||et).r2));return r._forceRed(this||et)}}(jp,_x)),jp.exports}var Gi={},h7=!1;function Sx(){return h7||(h7=!0,Gi=Gi=hb(),Gi.Stream=Gi,Gi.Readable=Gi,Gi.Writable=sb(),Gi.Duplex=Us(),Gi.Transform=fb(),Gi.PassThrough=nx(),Gi.finished=ac(),Gi.pipeline=ox()),Gi}var Mf={},f7=!1;function Qe(){if(f7)return Mf;f7=!0;var i=Pe,s=i.Buffer;function a(n,p){for(var m in n)p[m]=n[m]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?Mf=i:(a(i,Mf),Mf.Buffer=u);function u(n,p,m){return s(n,p,m)}return u.prototype=Object.create(s.prototype),a(s,u),u.from=function(n,p,m){if(typeof n=="number")throw new TypeError("Argument must not be a number");return s(n,p,m)},u.alloc=function(n,p,m){if(typeof n!="number")throw new TypeError("Argument must be a number");var y=s(n);return p!==void 0?typeof m=="string"?y.fill(p,m):y.fill(p):y.fill(0),y},u.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return s(n)},u.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(n)},Mf}var jl={},u7=!1,l7=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Kh(){if(u7)return jl;u7=!0;var i=Le,s=65536,a=4294967295;function u(){throw new Error(`Secure random number generation is not supported by this browser.
15
+ Use Chrome, Firefox or Internet Explorer 11`)}var n=Qe().Buffer,p=l7.crypto||l7.msCrypto;p&&p.getRandomValues?jl=m:jl=u;function m(y,M){if(y>a)throw new RangeError("requested too many random bytes");var b=n.allocUnsafe(y);if(y>0)if(y>s)for(var g=0;g<y;g+=s)p.getRandomValues(b.slice(g,g+s));else p.getRandomValues(b);return typeof M=="function"?i.nextTick(function(){M(null,b)}):b}return jl}var Hp={},c7=!1;function xx(){if(c7)return Hp;c7=!0;var i=Qe().Buffer,s=Sx().Transform,a=Ye();function u(p,m){if(!i.isBuffer(p)&&typeof p!="string")throw new TypeError(m+" must be a string or a buffer")}function n(p){s.call(this),this._block=i.allocUnsafe(p),this._blockSize=p,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return a(n,s),n.prototype._transform=function(p,m,y){var M=null;try{this.update(p,m)}catch(b){M=b}y(M)},n.prototype._flush=function(p){var m=null;try{this.push(this.digest())}catch(y){m=y}p(m)},n.prototype.update=function(p,m){if(u(p,"Data"),this._finalized)throw new Error("Digest already called");i.isBuffer(p)||(p=i.from(p,m));for(var y=this._block,M=0;this._blockOffset+p.length-M>=this._blockSize;){for(var b=this._blockOffset;b<this._blockSize;)y[b++]=p[M++];this._update(),this._blockOffset=0}for(;M<p.length;)y[this._blockOffset++]=p[M++];for(var g=0,S=p.length*8;S>0;++g)this._length[g]+=S,S=this._length[g]/4294967296|0,S>0&&(this._length[g]-=4294967296*S);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(p){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var m=this._digest();p!==void 0&&(m=m.toString(p)),this._block.fill(0),this._blockOffset=0;for(var y=0;y<4;++y)this._length[y]=0;return m},n.prototype._digest=function(){throw new Error("_digest is not implemented")},Hp=n,Hp}var Kp={},d7=!1;function db(){if(d7)return Kp;d7=!0;var i=Ye(),s=xx(),a=Qe().Buffer,u=new Array(16);function n(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}i(n,s),n.prototype._update=function(){for(var g=u,S=0;S<16;++S)g[S]=this._block.readInt32LE(S*4);var _=this._a,x=this._b,E=this._c,k=this._d;_=m(_,x,E,k,g[0],3614090360,7),k=m(k,_,x,E,g[1],3905402710,12),E=m(E,k,_,x,g[2],606105819,17),x=m(x,E,k,_,g[3],3250441966,22),_=m(_,x,E,k,g[4],4118548399,7),k=m(k,_,x,E,g[5],1200080426,12),E=m(E,k,_,x,g[6],2821735955,17),x=m(x,E,k,_,g[7],4249261313,22),_=m(_,x,E,k,g[8],1770035416,7),k=m(k,_,x,E,g[9],2336552879,12),E=m(E,k,_,x,g[10],4294925233,17),x=m(x,E,k,_,g[11],2304563134,22),_=m(_,x,E,k,g[12],1804603682,7),k=m(k,_,x,E,g[13],4254626195,12),E=m(E,k,_,x,g[14],2792965006,17),x=m(x,E,k,_,g[15],1236535329,22),_=y(_,x,E,k,g[1],4129170786,5),k=y(k,_,x,E,g[6],3225465664,9),E=y(E,k,_,x,g[11],643717713,14),x=y(x,E,k,_,g[0],3921069994,20),_=y(_,x,E,k,g[5],3593408605,5),k=y(k,_,x,E,g[10],38016083,9),E=y(E,k,_,x,g[15],3634488961,14),x=y(x,E,k,_,g[4],3889429448,20),_=y(_,x,E,k,g[9],568446438,5),k=y(k,_,x,E,g[14],3275163606,9),E=y(E,k,_,x,g[3],4107603335,14),x=y(x,E,k,_,g[8],1163531501,20),_=y(_,x,E,k,g[13],2850285829,5),k=y(k,_,x,E,g[2],4243563512,9),E=y(E,k,_,x,g[7],1735328473,14),x=y(x,E,k,_,g[12],2368359562,20),_=M(_,x,E,k,g[5],4294588738,4),k=M(k,_,x,E,g[8],2272392833,11),E=M(E,k,_,x,g[11],1839030562,16),x=M(x,E,k,_,g[14],4259657740,23),_=M(_,x,E,k,g[1],2763975236,4),k=M(k,_,x,E,g[4],1272893353,11),E=M(E,k,_,x,g[7],4139469664,16),x=M(x,E,k,_,g[10],3200236656,23),_=M(_,x,E,k,g[13],681279174,4),k=M(k,_,x,E,g[0],3936430074,11),E=M(E,k,_,x,g[3],3572445317,16),x=M(x,E,k,_,g[6],76029189,23),_=M(_,x,E,k,g[9],3654602809,4),k=M(k,_,x,E,g[12],3873151461,11),E=M(E,k,_,x,g[15],530742520,16),x=M(x,E,k,_,g[2],3299628645,23),_=b(_,x,E,k,g[0],4096336452,6),k=b(k,_,x,E,g[7],1126891415,10),E=b(E,k,_,x,g[14],2878612391,15),x=b(x,E,k,_,g[5],4237533241,21),_=b(_,x,E,k,g[12],1700485571,6),k=b(k,_,x,E,g[3],2399980690,10),E=b(E,k,_,x,g[10],4293915773,15),x=b(x,E,k,_,g[1],2240044497,21),_=b(_,x,E,k,g[8],1873313359,6),k=b(k,_,x,E,g[15],4264355552,10),E=b(E,k,_,x,g[6],2734768916,15),x=b(x,E,k,_,g[13],1309151649,21),_=b(_,x,E,k,g[4],4149444226,6),k=b(k,_,x,E,g[11],3174756917,10),E=b(E,k,_,x,g[2],718787259,15),x=b(x,E,k,_,g[9],3951481745,21),this._a=this._a+_|0,this._b=this._b+x|0,this._c=this._c+E|0,this._d=this._d+k|0},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var g=a.allocUnsafe(16);return g.writeInt32LE(this._a,0),g.writeInt32LE(this._b,4),g.writeInt32LE(this._c,8),g.writeInt32LE(this._d,12),g};function p(g,S){return g<<S|g>>>32-S}function m(g,S,_,x,E,k,B){return p(g+(S&_|~S&x)+E+k|0,B)+S|0}function y(g,S,_,x,E,k,B){return p(g+(S&x|_&~x)+E+k|0,B)+S|0}function M(g,S,_,x,E,k,B){return p(g+(S^_^x)+E+k|0,B)+S|0}function b(g,S,_,x,E,k,B){return p(g+(_^(S|~x))+E+k|0,B)+S|0}return Kp=n,Kp}var Gp={},p7=!1;function pb(){if(p7)return Gp;p7=!0;var i=Pe.Buffer,s=Ye(),a=xx(),u=new Array(16),n=[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],p=[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],m=[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],y=[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],M=[0,1518500249,1859775393,2400959708,2840853838],b=[1352829926,1548603684,1836072691,2053994217,0];function g(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}s(g,a),g.prototype._update=function(){for(var T=u,C=0;C<16;++C)T[C]=this._block.readInt32LE(C*4);for(var P=this._a|0,G=this._b|0,U=this._c|0,V=this._d|0,I=this._e|0,D=this._a|0,z=this._b|0,d=this._c|0,t=this._d|0,r=this._e|0,o=0;o<80;o+=1){var h,f;o<16?(h=_(P,G,U,V,I,T[n[o]],M[0],m[o]),f=B(D,z,d,t,r,T[p[o]],b[0],y[o])):o<32?(h=x(P,G,U,V,I,T[n[o]],M[1],m[o]),f=k(D,z,d,t,r,T[p[o]],b[1],y[o])):o<48?(h=E(P,G,U,V,I,T[n[o]],M[2],m[o]),f=E(D,z,d,t,r,T[p[o]],b[2],y[o])):o<64?(h=k(P,G,U,V,I,T[n[o]],M[3],m[o]),f=x(D,z,d,t,r,T[p[o]],b[3],y[o])):(h=B(P,G,U,V,I,T[n[o]],M[4],m[o]),f=_(D,z,d,t,r,T[p[o]],b[4],y[o])),P=I,I=V,V=S(U,10),U=G,G=h,D=r,r=t,t=S(d,10),d=z,z=f}var v=this._b+U+t|0;this._b=this._c+V+r|0,this._c=this._d+I+D|0,this._d=this._e+P+z|0,this._e=this._a+G+d|0,this._a=v},g.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var T=i.alloc?i.alloc(20):new i(20);return T.writeInt32LE(this._a,0),T.writeInt32LE(this._b,4),T.writeInt32LE(this._c,8),T.writeInt32LE(this._d,12),T.writeInt32LE(this._e,16),T};function S(T,C){return T<<C|T>>>32-C}function _(T,C,P,G,U,V,I,D){return S(T+(C^P^G)+V+I|0,D)+U|0}function x(T,C,P,G,U,V,I,D){return S(T+(C&P|~C&G)+V+I|0,D)+U|0}function E(T,C,P,G,U,V,I,D){return S(T+((C|~P)^G)+V+I|0,D)+U|0}function k(T,C,P,G,U,V,I,D){return S(T+(C&G|P&~G)+V+I|0,D)+U|0}function B(T,C,P,G,U,V,I,D){return S(T+(C^(P|~G))+V+I|0,D)+U|0}return Gp=g,Gp}var Zp={},m7=!1,Ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Gh(){if(m7)return Zp;m7=!0;var i=Qe().Buffer;function s(a,u){(this||Ir)._block=i.alloc(a),(this||Ir)._finalSize=u,(this||Ir)._blockSize=a,(this||Ir)._len=0}return s.prototype.update=function(a,u){typeof a=="string"&&(u=u||"utf8",a=i.from(a,u));for(var n=(this||Ir)._block,p=(this||Ir)._blockSize,m=a.length,y=(this||Ir)._len,M=0;M<m;){for(var b=y%p,g=Math.min(m-M,p-b),S=0;S<g;S++)n[b+S]=a[M+S];y+=g,M+=g,y%p===0&&this._update(n)}return(this||Ir)._len+=m,this||Ir},s.prototype.digest=function(a){var u=(this||Ir)._len%(this||Ir)._blockSize;(this||Ir)._block[u]=128,(this||Ir)._block.fill(0,u+1),u>=(this||Ir)._finalSize&&(this._update((this||Ir)._block),(this||Ir)._block.fill(0));var n=(this||Ir)._len*8;if(n<=4294967295)(this||Ir)._block.writeUInt32BE(n,(this||Ir)._blockSize-4);else{var p=(n&4294967295)>>>0,m=(n-p)/4294967296;(this||Ir)._block.writeUInt32BE(m,(this||Ir)._blockSize-8),(this||Ir)._block.writeUInt32BE(p,(this||Ir)._blockSize-4)}this._update((this||Ir)._block);var y=this._hash();return a?y.toString(a):y},s.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Zp=s,Zp}var Vp={},v7=!1,gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function hP(){if(v7)return Vp;v7=!0;var i=Ye(),s=Gh(),a=Qe().Buffer,u=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function p(){this.init(),(this||gr)._w=n,s.call(this||gr,64,56)}i(p,s),p.prototype.init=function(){return(this||gr)._a=1732584193,(this||gr)._b=4023233417,(this||gr)._c=2562383102,(this||gr)._d=271733878,(this||gr)._e=3285377520,this||gr};function m(b){return b<<5|b>>>27}function y(b){return b<<30|b>>>2}function M(b,g,S,_){return b===0?g&S|~g&_:b===2?g&S|g&_|S&_:g^S^_}return p.prototype._update=function(b){for(var g=(this||gr)._w,S=(this||gr)._a|0,_=(this||gr)._b|0,x=(this||gr)._c|0,E=(this||gr)._d|0,k=(this||gr)._e|0,B=0;B<16;++B)g[B]=b.readInt32BE(B*4);for(;B<80;++B)g[B]=g[B-3]^g[B-8]^g[B-14]^g[B-16];for(var T=0;T<80;++T){var C=~~(T/20),P=m(S)+M(C,_,x,E)+k+g[T]+u[C]|0;k=E,E=x,x=y(_),_=S,S=P}(this||gr)._a=S+(this||gr)._a|0,(this||gr)._b=_+(this||gr)._b|0,(this||gr)._c=x+(this||gr)._c|0,(this||gr)._d=E+(this||gr)._d|0,(this||gr)._e=k+(this||gr)._e|0},p.prototype._hash=function(){var b=a.allocUnsafe(20);return b.writeInt32BE((this||gr)._a|0,0),b.writeInt32BE((this||gr)._b|0,4),b.writeInt32BE((this||gr)._c|0,8),b.writeInt32BE((this||gr)._d|0,12),b.writeInt32BE((this||gr)._e|0,16),b},Vp=p,Vp}var Wp={},g7=!1,br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function fP(){if(g7)return Wp;g7=!0;var i=Ye(),s=Gh(),a=Qe().Buffer,u=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function p(){this.init(),(this||br)._w=n,s.call(this||br,64,56)}i(p,s),p.prototype.init=function(){return(this||br)._a=1732584193,(this||br)._b=4023233417,(this||br)._c=2562383102,(this||br)._d=271733878,(this||br)._e=3285377520,this||br};function m(g){return g<<1|g>>>31}function y(g){return g<<5|g>>>27}function M(g){return g<<30|g>>>2}function b(g,S,_,x){return g===0?S&_|~S&x:g===2?S&_|S&x|_&x:S^_^x}return p.prototype._update=function(g){for(var S=(this||br)._w,_=(this||br)._a|0,x=(this||br)._b|0,E=(this||br)._c|0,k=(this||br)._d|0,B=(this||br)._e|0,T=0;T<16;++T)S[T]=g.readInt32BE(T*4);for(;T<80;++T)S[T]=m(S[T-3]^S[T-8]^S[T-14]^S[T-16]);for(var C=0;C<80;++C){var P=~~(C/20),G=y(_)+b(P,x,E,k)+B+S[C]+u[P]|0;B=k,k=E,E=M(x),x=_,_=G}(this||br)._a=_+(this||br)._a|0,(this||br)._b=x+(this||br)._b|0,(this||br)._c=E+(this||br)._c|0,(this||br)._d=k+(this||br)._d|0,(this||br)._e=B+(this||br)._e|0},p.prototype._hash=function(){var g=a.allocUnsafe(20);return g.writeInt32BE((this||br)._a|0,0),g.writeInt32BE((this||br)._b|0,4),g.writeInt32BE((this||br)._c|0,8),g.writeInt32BE((this||br)._d|0,12),g.writeInt32BE((this||br)._e|0,16),g},Wp=p,Wp}var Xp={},b7=!1,Fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Ex(){if(b7)return Xp;b7=!0;var i=Ye(),s=Gh(),a=Qe().Buffer,u=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],n=new Array(64);function p(){this.init(),(this||Fe)._w=n,s.call(this||Fe,64,56)}i(p,s),p.prototype.init=function(){return(this||Fe)._a=1779033703,(this||Fe)._b=3144134277,(this||Fe)._c=1013904242,(this||Fe)._d=2773480762,(this||Fe)._e=1359893119,(this||Fe)._f=2600822924,(this||Fe)._g=528734635,(this||Fe)._h=1541459225,this||Fe};function m(_,x,E){return E^_&(x^E)}function y(_,x,E){return _&x|E&(_|x)}function M(_){return(_>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10)}function b(_){return(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7)}function g(_){return(_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3}function S(_){return(_>>>17|_<<15)^(_>>>19|_<<13)^_>>>10}return p.prototype._update=function(_){for(var x=(this||Fe)._w,E=(this||Fe)._a|0,k=(this||Fe)._b|0,B=(this||Fe)._c|0,T=(this||Fe)._d|0,C=(this||Fe)._e|0,P=(this||Fe)._f|0,G=(this||Fe)._g|0,U=(this||Fe)._h|0,V=0;V<16;++V)x[V]=_.readInt32BE(V*4);for(;V<64;++V)x[V]=S(x[V-2])+x[V-7]+g(x[V-15])+x[V-16]|0;for(var I=0;I<64;++I){var D=U+b(C)+m(C,P,G)+u[I]+x[I]|0,z=M(E)+y(E,k,B)|0;U=G,G=P,P=C,C=T+D|0,T=B,B=k,k=E,E=D+z|0}(this||Fe)._a=E+(this||Fe)._a|0,(this||Fe)._b=k+(this||Fe)._b|0,(this||Fe)._c=B+(this||Fe)._c|0,(this||Fe)._d=T+(this||Fe)._d|0,(this||Fe)._e=C+(this||Fe)._e|0,(this||Fe)._f=P+(this||Fe)._f|0,(this||Fe)._g=G+(this||Fe)._g|0,(this||Fe)._h=U+(this||Fe)._h|0},p.prototype._hash=function(){var _=a.allocUnsafe(32);return _.writeInt32BE((this||Fe)._a,0),_.writeInt32BE((this||Fe)._b,4),_.writeInt32BE((this||Fe)._c,8),_.writeInt32BE((this||Fe)._d,12),_.writeInt32BE((this||Fe)._e,16),_.writeInt32BE((this||Fe)._f,20),_.writeInt32BE((this||Fe)._g,24),_.writeInt32BE((this||Fe)._h,28),_},Xp=p,Xp}var Jp={},y7=!1,hi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function uP(){if(y7)return Jp;y7=!0;var i=Ye(),s=Ex(),a=Gh(),u=Qe().Buffer,n=new Array(64);function p(){this.init(),(this||hi)._w=n,a.call(this||hi,64,56)}return i(p,s),p.prototype.init=function(){return(this||hi)._a=3238371032,(this||hi)._b=914150663,(this||hi)._c=812702999,(this||hi)._d=4144912697,(this||hi)._e=4290775857,(this||hi)._f=1750603025,(this||hi)._g=1694076839,(this||hi)._h=3204075428,this||hi},p.prototype._hash=function(){var m=u.allocUnsafe(28);return m.writeInt32BE((this||hi)._a,0),m.writeInt32BE((this||hi)._b,4),m.writeInt32BE((this||hi)._c,8),m.writeInt32BE((this||hi)._d,12),m.writeInt32BE((this||hi)._e,16),m.writeInt32BE((this||hi)._f,20),m.writeInt32BE((this||hi)._g,24),m},Jp=p,Jp}var Yp={},w7=!1,ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Ax(){if(w7)return Yp;w7=!0;var i=Ye(),s=Gh(),a=Qe().Buffer,u=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],n=new Array(160);function p(){this.init(),(this||ue)._w=n,s.call(this||ue,128,112)}i(p,s),p.prototype.init=function(){return(this||ue)._ah=1779033703,(this||ue)._bh=3144134277,(this||ue)._ch=1013904242,(this||ue)._dh=2773480762,(this||ue)._eh=1359893119,(this||ue)._fh=2600822924,(this||ue)._gh=528734635,(this||ue)._hh=1541459225,(this||ue)._al=4089235720,(this||ue)._bl=2227873595,(this||ue)._cl=4271175723,(this||ue)._dl=1595750129,(this||ue)._el=2917565137,(this||ue)._fl=725511199,(this||ue)._gl=4215389547,(this||ue)._hl=327033209,this||ue};function m(k,B,T){return T^k&(B^T)}function y(k,B,T){return k&B|T&(k|B)}function M(k,B){return(k>>>28|B<<4)^(B>>>2|k<<30)^(B>>>7|k<<25)}function b(k,B){return(k>>>14|B<<18)^(k>>>18|B<<14)^(B>>>9|k<<23)}function g(k,B){return(k>>>1|B<<31)^(k>>>8|B<<24)^k>>>7}function S(k,B){return(k>>>1|B<<31)^(k>>>8|B<<24)^(k>>>7|B<<25)}function _(k,B){return(k>>>19|B<<13)^(B>>>29|k<<3)^k>>>6}function x(k,B){return(k>>>19|B<<13)^(B>>>29|k<<3)^(k>>>6|B<<26)}function E(k,B){return k>>>0<B>>>0?1:0}return p.prototype._update=function(k){for(var B=(this||ue)._w,T=(this||ue)._ah|0,C=(this||ue)._bh|0,P=(this||ue)._ch|0,G=(this||ue)._dh|0,U=(this||ue)._eh|0,V=(this||ue)._fh|0,I=(this||ue)._gh|0,D=(this||ue)._hh|0,z=(this||ue)._al|0,d=(this||ue)._bl|0,t=(this||ue)._cl|0,r=(this||ue)._dl|0,o=(this||ue)._el|0,h=(this||ue)._fl|0,f=(this||ue)._gl|0,v=(this||ue)._hl|0,w=0;w<32;w+=2)B[w]=k.readInt32BE(w*4),B[w+1]=k.readInt32BE(w*4+4);for(;w<160;w+=2){var l=B[w-30],e=B[w-15*2+1],c=g(l,e),A=S(e,l);l=B[w-2*2],e=B[w-2*2+1];var R=_(l,e),$=x(e,l),L=B[w-7*2],j=B[w-7*2+1],pt=B[w-16*2],W=B[w-16*2+1],N=A+j|0,X=c+L+E(N,A)|0;N=N+$|0,X=X+R+E(N,$)|0,N=N+W|0,X=X+pt+E(N,W)|0,B[w]=X,B[w+1]=N}for(var jt=0;jt<160;jt+=2){X=B[jt],N=B[jt+1];var gt=y(T,C,P),q=y(z,d,t),K=M(T,z),J=M(z,T),bt=b(U,o),Kt=b(o,U),mt=u[jt],Mt=u[jt+1],Wt=m(U,V,I),wt=m(o,h,f),Tt=v+Kt|0,Zt=D+bt+E(Tt,v)|0;Tt=Tt+wt|0,Zt=Zt+Wt+E(Tt,wt)|0,Tt=Tt+Mt|0,Zt=Zt+mt+E(Tt,Mt)|0,Tt=Tt+N|0,Zt=Zt+X+E(Tt,N)|0;var _t=J+q|0,Pt=K+gt+E(_t,J)|0;D=I,v=f,I=V,f=h,V=U,h=o,o=r+Tt|0,U=G+Zt+E(o,r)|0,G=P,r=t,P=C,t=d,C=T,d=z,z=Tt+_t|0,T=Zt+Pt+E(z,Tt)|0}(this||ue)._al=(this||ue)._al+z|0,(this||ue)._bl=(this||ue)._bl+d|0,(this||ue)._cl=(this||ue)._cl+t|0,(this||ue)._dl=(this||ue)._dl+r|0,(this||ue)._el=(this||ue)._el+o|0,(this||ue)._fl=(this||ue)._fl+h|0,(this||ue)._gl=(this||ue)._gl+f|0,(this||ue)._hl=(this||ue)._hl+v|0,(this||ue)._ah=(this||ue)._ah+T+E((this||ue)._al,z)|0,(this||ue)._bh=(this||ue)._bh+C+E((this||ue)._bl,d)|0,(this||ue)._ch=(this||ue)._ch+P+E((this||ue)._cl,t)|0,(this||ue)._dh=(this||ue)._dh+G+E((this||ue)._dl,r)|0,(this||ue)._eh=(this||ue)._eh+U+E((this||ue)._el,o)|0,(this||ue)._fh=(this||ue)._fh+V+E((this||ue)._fl,h)|0,(this||ue)._gh=(this||ue)._gh+I+E((this||ue)._gl,f)|0,(this||ue)._hh=(this||ue)._hh+D+E((this||ue)._hl,v)|0},p.prototype._hash=function(){var k=a.allocUnsafe(64);function B(T,C,P){k.writeInt32BE(T,P),k.writeInt32BE(C,P+4)}return B((this||ue)._ah,(this||ue)._al,0),B((this||ue)._bh,(this||ue)._bl,8),B((this||ue)._ch,(this||ue)._cl,16),B((this||ue)._dh,(this||ue)._dl,24),B((this||ue)._eh,(this||ue)._el,32),B((this||ue)._fh,(this||ue)._fl,40),B((this||ue)._gh,(this||ue)._gl,48),B((this||ue)._hh,(this||ue)._hl,56),k},Yp=p,Yp}var Qp={},M7=!1,ur=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function lP(){if(M7)return Qp;M7=!0;var i=Ye(),s=Ax(),a=Gh(),u=Qe().Buffer,n=new Array(160);function p(){this.init(),(this||ur)._w=n,a.call(this||ur,128,112)}return i(p,s),p.prototype.init=function(){return(this||ur)._ah=3418070365,(this||ur)._bh=1654270250,(this||ur)._ch=2438529370,(this||ur)._dh=355462360,(this||ur)._eh=1731405415,(this||ur)._fh=2394180231,(this||ur)._gh=3675008525,(this||ur)._hh=1203062813,(this||ur)._al=3238371032,(this||ur)._bl=914150663,(this||ur)._cl=812702999,(this||ur)._dl=4144912697,(this||ur)._el=4290775857,(this||ur)._fl=1750603025,(this||ur)._gl=1694076839,(this||ur)._hl=3204075428,this||ur},p.prototype._hash=function(){var m=u.allocUnsafe(48);function y(M,b,g){m.writeInt32BE(M,g),m.writeInt32BE(b,g+4)}return y((this||ur)._ah,(this||ur)._al,0),y((this||ur)._bh,(this||ur)._bl,8),y((this||ur)._ch,(this||ur)._cl,16),y((this||ur)._dh,(this||ur)._dl,24),y((this||ur)._eh,(this||ur)._el,32),y((this||ur)._fh,(this||ur)._fl,40),m},Qp=p,Qp}var cP={},_7=!1,tm={exports:cP};function mb(){if(_7)return tm.exports;_7=!0;var i=tm.exports=function(a){a=a.toLowerCase();var u=i[a];if(!u)throw new Error(a+" is not supported (we accept pull requests)");return new u};return i.sha=hP(),i.sha1=fP(),i.sha224=uP(),i.sha256=Ex(),i.sha384=lP(),i.sha512=Ax(),tm.exports}var fc=Xr.EventEmitter,oo={},kx={};function yn(i,s,a){a||(a=Error);class u extends a{constructor(p,m,y){super(function(M,b,g){return typeof s=="string"?s:s(M,b,g)}(p,m,y))}}u.prototype.name=a.name,u.prototype.code=i,kx[i]=u}function S7(i,s){if(Array.isArray(i)){let a=i.length;return i=i.map(u=>String(u)),a>2?`one of ${s} ${i.slice(0,a-1).join(", ")}, or `+i[a-1]:a===2?`one of ${s} ${i[0]} or ${i[1]}`:`of ${s} ${i[0]}`}return`of ${s} ${String(i)}`}yn("ERR_INVALID_OPT_VALUE",function(i,s){return'The value "'+s+'" is invalid for option "'+i+'"'},TypeError),yn("ERR_INVALID_ARG_TYPE",function(i,s,a){let u;var n;let p;return typeof s=="string"&&(n="not ",s.substr(0,n.length)===n)?(u="must not be",s=s.replace(/^not /,"")):u="must be",function(m,y,M){return(M===void 0||M>m.length)&&(M=m.length),m.substring(M-y.length,M)===y}(i," argument")?p=`The ${i} ${u} ${S7(s,"type")}`:p=`The "${i}" ${function(m,y,M){return typeof M!="number"&&(M=0),!(M+y.length>m.length)&&m.indexOf(y,M)!==-1}(i,".")?"property":"argument"} ${u} ${S7(s,"type")}`,p+=`. Received type ${typeof a}`,p},TypeError),yn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),yn("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),yn("ERR_STREAM_PREMATURE_CLOSE","Premature close"),yn("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),yn("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),yn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),yn("ERR_STREAM_WRITE_AFTER_END","write after end"),yn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),yn("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),yn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),oo.codes=kx;var Rx=function(){throw new Error("Readable.from is not available in the browser")},Tg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function em(i){try{if(!Tg.localStorage)return!1}catch{return!1}var s=Tg.localStorage[i];return s!=null&&String(s).toLowerCase()==="true"}var Bx=function(i,s){if(em("noDeprecation"))return i;var a=!1;return function(){if(!a){if(em("throwDeprecation"))throw new Error(s);em("traceDeprecation")?console.trace(s):console.warn(s),a=!0}return i.apply(this||Tg,arguments)}};function x7(i,s){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);s&&(u=u.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),a.push.apply(a,u)}return a}function dP(i,s,a){return s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i}function pP(i,s){for(var a=0;a<s.length;a++){var u=s[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,u.key,u)}}var Hl=Pe.Buffer,$g=oe.inspect,mP=$g&&$g.custom||"inspect",vP=function(){function i(){(function(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")})(this,i),this.head=null,this.tail=null,this.length=0}var s,a;return s=i,(a=[{key:"push",value:function(u){var n={data:u,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(u){var n={data:u,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(u){if(this.length===0)return"";for(var n=this.head,p=""+n.data;n=n.next;)p+=u+n.data;return p}},{key:"concat",value:function(u){if(this.length===0)return Hl.alloc(0);for(var n,p,m,y=Hl.allocUnsafe(u>>>0),M=this.head,b=0;M;)n=M.data,p=y,m=b,Hl.prototype.copy.call(n,p,m),b+=M.data.length,M=M.next;return y}},{key:"consume",value:function(u,n){var p;return u<this.head.data.length?(p=this.head.data.slice(0,u),this.head.data=this.head.data.slice(u)):p=u===this.head.data.length?this.shift():n?this._getString(u):this._getBuffer(u),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(u){var n=this.head,p=1,m=n.data;for(u-=m.length;n=n.next;){var y=n.data,M=u>y.length?y.length:u;if(M===y.length?m+=y:m+=y.slice(0,u),(u-=M)==0){M===y.length?(++p,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=y.slice(M));break}++p}return this.length-=p,m}},{key:"_getBuffer",value:function(u){var n=Hl.allocUnsafe(u),p=this.head,m=1;for(p.data.copy(n),u-=p.data.length;p=p.next;){var y=p.data,M=u>y.length?y.length:u;if(y.copy(n,n.length-u,0,M),(u-=M)==0){M===y.length?(++m,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=y.slice(M));break}++m}return this.length-=m,n}},{key:mP,value:function(u,n){return $g(this,function(p){for(var m=1;m<arguments.length;m++){var y=arguments[m]!=null?arguments[m]:{};m%2?x7(Object(y),!0).forEach(function(M){dP(p,M,y[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(y)):x7(Object(y)).forEach(function(M){Object.defineProperty(p,M,Object.getOwnPropertyDescriptor(y,M))})}return p}({},n,{depth:0,customInspect:!1}))}}])&&pP(s.prototype,a),i}(),cs=Le;function E7(i,s){Ig(i,s),k0(i)}function k0(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function Ig(i,s){i.emit("error",s)}var Tx={destroy:function(i,s){var a=this,u=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return u||n?(s?s(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,cs.nextTick(Ig,this,i)):cs.nextTick(Ig,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(p){!s&&p?a._writableState?a._writableState.errorEmitted?cs.nextTick(k0,a):(a._writableState.errorEmitted=!0,cs.nextTick(E7,a,p)):cs.nextTick(E7,a,p):s?(cs.nextTick(k0,a),s(p)):cs.nextTick(k0,a)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(i,s){var a=i._readableState,u=i._writableState;a&&a.autoDestroy||u&&u.autoDestroy?i.destroy(s):i.emit("error",s)}},gP=oo.codes.ERR_INVALID_OPT_VALUE,$x={getHighWaterMark:function(i,s,a,u){var n=function(p,m,y){return p.highWaterMark!=null?p.highWaterMark:m?p[y]:null}(s,u,a);if(n!=null){if(!isFinite(n)||Math.floor(n)!==n||n<0)throw new gP(u?a:"highWaterMark",n);return Math.floor(n)}return i.objectMode?16:16384}},A7=oo.codes.ERR_STREAM_PREMATURE_CLOSE;function bP(){}var rm,yP=function i(s,a,u){if(typeof a=="function")return i(s,null,a);a||(a={}),u=function(E){var k=!1;return function(){if(!k){k=!0;for(var B=arguments.length,T=new Array(B),C=0;C<B;C++)T[C]=arguments[C];E.apply(this,T)}}}(u||bP);var n=a.readable||a.readable!==!1&&s.readable,p=a.writable||a.writable!==!1&&s.writable,m=function(){s.writable||M()},y=s._writableState&&s._writableState.finished,M=function(){p=!1,y=!0,n||u.call(s)},b=s._readableState&&s._readableState.endEmitted,g=function(){n=!1,b=!0,p||u.call(s)},S=function(E){u.call(s,E)},_=function(){var E;return n&&!b?(s._readableState&&s._readableState.ended||(E=new A7),u.call(s,E)):p&&!y?(s._writableState&&s._writableState.ended||(E=new A7),u.call(s,E)):void 0},x=function(){s.req.on("finish",M)};return function(E){return E.setHeader&&typeof E.abort=="function"}(s)?(s.on("complete",M),s.on("abort",_),s.req?x():s.on("request",x)):p&&!s._writableState&&(s.on("end",m),s.on("close",m)),s.on("end",g),s.on("finish",M),a.error!==!1&&s.on("error",S),s.on("close",_),function(){s.removeListener("complete",M),s.removeListener("abort",_),s.removeListener("request",x),s.req&&s.req.removeListener("finish",M),s.removeListener("end",m),s.removeListener("close",m),s.removeListener("finish",M),s.removeListener("end",g),s.removeListener("error",S),s.removeListener("close",_)}},Ix=Le;function Ba(i,s,a){return s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i}var wP=yP,Ta=Symbol("lastResolve"),Es=Symbol("lastReject"),Vf=Symbol("error"),Z0=Symbol("ended"),Cs=Symbol("lastPromise"),Cg=Symbol("handlePromise"),Ps=Symbol("stream");function Oa(i,s){return{value:i,done:s}}function MP(i){var s=i[Ta];if(s!==null){var a=i[Ps].read();a!==null&&(i[Cs]=null,i[Ta]=null,i[Es]=null,s(Oa(a,!1)))}}function _P(i){Ix.nextTick(MP,i)}var SP=Object.getPrototypeOf(function(){}),xP=Object.setPrototypeOf((Ba(rm={get stream(){return this[Ps]},next:function(){var i=this,s=this[Vf];if(s!==null)return Promise.reject(s);if(this[Z0])return Promise.resolve(Oa(void 0,!0));if(this[Ps].destroyed)return new Promise(function(p,m){Ix.nextTick(function(){i[Vf]?m(i[Vf]):p(Oa(void 0,!0))})});var a,u=this[Cs];if(u)a=new Promise(function(p,m){return function(y,M){p.then(function(){if(m[Z0])return y(Oa(void 0,!0)),void 0;m[Cg](y,M)},M)}}(u,this));else{var n=this[Ps].read();if(n!==null)return Promise.resolve(Oa(n,!1));a=new Promise(this[Cg])}return this[Cs]=a,a}},Symbol.asyncIterator,function(){return this}),Ba(rm,"return",function(){var i=this;return new Promise(function(s,a){i[Ps].destroy(null,function(u){if(u)return a(u),void 0;s(Oa(void 0,!0))})})}),rm),SP),EP=function(i){var s,a=Object.create(xP,(Ba(s={},Ps,{value:i,writable:!0}),Ba(s,Ta,{value:null,writable:!0}),Ba(s,Es,{value:null,writable:!0}),Ba(s,Vf,{value:null,writable:!0}),Ba(s,Z0,{value:i._readableState.endEmitted,writable:!0}),Ba(s,Cg,{value:function(u,n){var p=a[Ps].read();p?(a[Cs]=null,a[Ta]=null,a[Es]=null,u(Oa(p,!1))):(a[Ta]=u,a[Es]=n)},writable:!0}),s));return a[Cs]=null,wP(i,function(u){if(u&&u.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=a[Es];return n!==null&&(a[Cs]=null,a[Ta]=null,a[Es]=null,n(u)),a[Vf]=u,void 0}var p=a[Ta];p!==null&&(a[Cs]=null,a[Ta]=null,a[Es]=null,p(Oa(void 0,!0))),a[Z0]=!0}),i.on("readable",_P.bind(null,a)),a},im={},k7=!1,AP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Cx(){if(k7)return im;k7=!0;var i,s=Le;im=V,V.ReadableState=U,Xr.EventEmitter;var a=function(R,$){return R.listeners($).length},u=fc,n=Pe.Buffer,p=AP.Uint8Array||function(){},m,y=oe;m=y&&y.debuglog?y.debuglog("stream"):function(){};var M,b,g,S=vP,_=Tx,x=$x.getHighWaterMark,E=oo.codes,k=E.ERR_INVALID_ARG_TYPE,B=E.ERR_STREAM_PUSH_AFTER_EOF,T=E.ERR_METHOD_NOT_IMPLEMENTED,C=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;qe(V,u);var P=_.errorOrDestroy,G=["error","close","destroy","pause","resume"];function U(R,$,L){i=i||tu(),R=R||{},typeof L!="boolean"&&(L=$ instanceof i),this.objectMode=!!R.objectMode,L&&(this.objectMode=this.objectMode||!!R.readableObjectMode),this.highWaterMark=x(this,R,"readableHighWaterMark",L),this.buffer=new S,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.paused=!0,this.emitClose=R.emitClose!==!1,this.autoDestroy=!!R.autoDestroy,this.destroyed=!1,this.defaultEncoding=R.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,R.encoding&&(M||(M=_i.StringDecoder),this.decoder=new M(R.encoding),this.encoding=R.encoding)}function V(R){if(i=i||tu(),!(this instanceof V))return new V(R);var $=this instanceof i;this._readableState=new U(R,this,$),this.readable=!0,R&&(typeof R.read=="function"&&(this._read=R.read),typeof R.destroy=="function"&&(this._destroy=R.destroy)),u.call(this)}function I(R,$,L,j,pt){m("readableAddChunk",$);var W,N=R._readableState;if($===null)N.reading=!1,function(X,jt){if(m("onEofChunk"),!jt.ended){if(jt.decoder){var gt=jt.decoder.end();gt&&gt.length&&(jt.buffer.push(gt),jt.length+=jt.objectMode?1:gt.length)}jt.ended=!0,jt.sync?d(X):(jt.needReadable=!1,jt.emittedReadable||(jt.emittedReadable=!0,t(X)))}}(R,N);else if(pt||(W=function(X,jt){var gt;q=jt,n.isBuffer(q)||q instanceof p||typeof jt=="string"||jt===void 0||X.objectMode||(gt=new k("chunk",["string","Buffer","Uint8Array"],jt));var q;return gt}(N,$)),W)P(R,W);else if(N.objectMode||$&&$.length>0)if(typeof $=="string"||N.objectMode||Object.getPrototypeOf($)===n.prototype||($=function(X){return n.from(X)}($)),j)N.endEmitted?P(R,new C):D(R,N,$,!0);else if(N.ended)P(R,new B);else{if(N.destroyed)return!1;N.reading=!1,N.decoder&&!L?($=N.decoder.write($),N.objectMode||$.length!==0?D(R,N,$,!1):r(R,N)):D(R,N,$,!1)}else j||(N.reading=!1,r(R,N));return!N.ended&&(N.length<N.highWaterMark||N.length===0)}function D(R,$,L,j){$.flowing&&$.length===0&&!$.sync?($.awaitDrain=0,R.emit("data",L)):($.length+=$.objectMode?1:L.length,j?$.buffer.unshift(L):$.buffer.push(L),$.needReadable&&d(R)),r(R,$)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(R){this._readableState&&(this._readableState.destroyed=R)}}),V.prototype.destroy=_.destroy,V.prototype._undestroy=_.undestroy,V.prototype._destroy=function(R,$){$(R)},V.prototype.push=function(R,$){var L,j=this._readableState;return j.objectMode?L=!0:typeof R=="string"&&(($=$||j.defaultEncoding)!==j.encoding&&(R=n.from(R,$),$=""),L=!0),I(this,R,$,!1,L)},V.prototype.unshift=function(R){return I(this,R,null,!0,!1)},V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(R){M||(M=_i.StringDecoder);var $=new M(R);this._readableState.decoder=$,this._readableState.encoding=this._readableState.decoder.encoding;for(var L=this._readableState.buffer.head,j="";L!==null;)j+=$.write(L.data),L=L.next;return this._readableState.buffer.clear(),j!==""&&this._readableState.buffer.push(j),this._readableState.length=j.length,this};function z(R,$){return R<=0||$.length===0&&$.ended?0:$.objectMode?1:R!=R?$.flowing&&$.length?$.buffer.head.data.length:$.length:(R>$.highWaterMark&&($.highWaterMark=function(L){return L>=1073741824?L=1073741824:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}(R)),R<=$.length?R:$.ended?$.length:($.needReadable=!0,0))}function d(R){var $=R._readableState;m("emitReadable",$.needReadable,$.emittedReadable),$.needReadable=!1,$.emittedReadable||(m("emitReadable",$.flowing),$.emittedReadable=!0,s.nextTick(t,R))}function t(R){var $=R._readableState;m("emitReadable_",$.destroyed,$.length,$.ended),$.destroyed||!$.length&&!$.ended||(R.emit("readable"),$.emittedReadable=!1),$.needReadable=!$.flowing&&!$.ended&&$.length<=$.highWaterMark,w(R)}function r(R,$){$.readingMore||($.readingMore=!0,s.nextTick(o,R,$))}function o(R,$){for(;!$.reading&&!$.ended&&($.length<$.highWaterMark||$.flowing&&$.length===0);){var L=$.length;if(m("maybeReadMore read 0"),R.read(0),L===$.length)break}$.readingMore=!1}function h(R){var $=R._readableState;$.readableListening=R.listenerCount("readable")>0,$.resumeScheduled&&!$.paused?$.flowing=!0:R.listenerCount("data")>0&&R.resume()}function f(R){m("readable nexttick read 0"),R.read(0)}function v(R,$){m("resume",$.reading),$.reading||R.read(0),$.resumeScheduled=!1,R.emit("resume"),w(R),$.flowing&&!$.reading&&R.read(0)}function w(R){var $=R._readableState;for(m("flow",$.flowing);$.flowing&&R.read()!==null;);}function l(R,$){return $.length===0?null:($.objectMode?L=$.buffer.shift():!R||R>=$.length?(L=$.decoder?$.buffer.join(""):$.buffer.length===1?$.buffer.first():$.buffer.concat($.length),$.buffer.clear()):L=$.buffer.consume(R,$.decoder),L);var L}function e(R){var $=R._readableState;m("endReadable",$.endEmitted),$.endEmitted||($.ended=!0,s.nextTick(c,$,R))}function c(R,$){if(m("endReadableNT",R.endEmitted,R.length),!R.endEmitted&&R.length===0&&(R.endEmitted=!0,$.readable=!1,$.emit("end"),R.autoDestroy)){var L=$._writableState;(!L||L.autoDestroy&&L.finished)&&$.destroy()}}function A(R,$){for(var L=0,j=R.length;L<j;L++)if(R[L]===$)return L;return-1}return V.prototype.read=function(R){m("read",R),R=parseInt(R,10);var $=this._readableState,L=R;if(R!==0&&($.emittedReadable=!1),R===0&&$.needReadable&&(($.highWaterMark!==0?$.length>=$.highWaterMark:$.length>0)||$.ended))return m("read: emitReadable",$.length,$.ended),$.length===0&&$.ended?e(this):d(this),null;if((R=z(R,$))===0&&$.ended)return $.length===0&&e(this),null;var j,pt=$.needReadable;return m("need readable",pt),($.length===0||$.length-R<$.highWaterMark)&&m("length less than watermark",pt=!0),$.ended||$.reading?m("reading or ended",pt=!1):pt&&(m("do read"),$.reading=!0,$.sync=!0,$.length===0&&($.needReadable=!0),this._read($.highWaterMark),$.sync=!1,$.reading||(R=z(L,$))),(j=R>0?l(R,$):null)===null?($.needReadable=$.length<=$.highWaterMark,R=0):($.length-=R,$.awaitDrain=0),$.length===0&&($.ended||($.needReadable=!0),L!==R&&$.ended&&e(this)),j!==null&&this.emit("data",j),j},V.prototype._read=function(R){P(this,new T("_read()"))},V.prototype.pipe=function(R,$){var L=this,j=this._readableState;switch(j.pipesCount){case 0:j.pipes=R;break;case 1:j.pipes=[j.pipes,R];break;default:j.pipes.push(R)}j.pipesCount+=1,m("pipe count=%d opts=%j",j.pipesCount,$);var pt=(!$||$.end!==!1)&&R!==s.stdout&&R!==s.stderr?N:bt;function W(Kt,mt){m("onunpipe"),Kt===L&&mt&&mt.hasUnpiped===!1&&(mt.hasUnpiped=!0,m("cleanup"),R.removeListener("close",K),R.removeListener("finish",J),R.removeListener("drain",X),R.removeListener("error",q),R.removeListener("unpipe",W),L.removeListener("end",N),L.removeListener("end",bt),L.removeListener("data",gt),jt=!0,!j.awaitDrain||R._writableState&&!R._writableState.needDrain||X())}function N(){m("onend"),R.end()}j.endEmitted?s.nextTick(pt):L.once("end",pt),R.on("unpipe",W);var X=function(Kt){return function(){var mt=Kt._readableState;m("pipeOnDrain",mt.awaitDrain),mt.awaitDrain&&mt.awaitDrain--,mt.awaitDrain===0&&a(Kt,"data")&&(mt.flowing=!0,w(Kt))}}(L);R.on("drain",X);var jt=!1;function gt(Kt){m("ondata");var mt=R.write(Kt);m("dest.write",mt),mt===!1&&((j.pipesCount===1&&j.pipes===R||j.pipesCount>1&&A(j.pipes,R)!==-1)&&!jt&&(m("false write response, pause",j.awaitDrain),j.awaitDrain++),L.pause())}function q(Kt){m("onerror",Kt),bt(),R.removeListener("error",q),a(R,"error")===0&&P(R,Kt)}function K(){R.removeListener("finish",J),bt()}function J(){m("onfinish"),R.removeListener("close",K),bt()}function bt(){m("unpipe"),L.unpipe(R)}return L.on("data",gt),function(Kt,mt,Mt){if(typeof Kt.prependListener=="function")return Kt.prependListener(mt,Mt);Kt._events&&Kt._events[mt]?Array.isArray(Kt._events[mt])?Kt._events[mt].unshift(Mt):Kt._events[mt]=[Mt,Kt._events[mt]]:Kt.on(mt,Mt)}(R,"error",q),R.once("close",K),R.once("finish",J),R.emit("pipe",L),j.flowing||(m("pipe resume"),L.resume()),R},V.prototype.unpipe=function(R){var $=this._readableState,L={hasUnpiped:!1};if($.pipesCount===0)return this;if($.pipesCount===1)return R&&R!==$.pipes||(R||(R=$.pipes),$.pipes=null,$.pipesCount=0,$.flowing=!1,R&&R.emit("unpipe",this,L)),this;if(!R){var j=$.pipes,pt=$.pipesCount;$.pipes=null,$.pipesCount=0,$.flowing=!1;for(var W=0;W<pt;W++)j[W].emit("unpipe",this,{hasUnpiped:!1});return this}var N=A($.pipes,R);return N===-1||($.pipes.splice(N,1),$.pipesCount-=1,$.pipesCount===1&&($.pipes=$.pipes[0]),R.emit("unpipe",this,L)),this},V.prototype.on=function(R,$){var L=u.prototype.on.call(this,R,$),j=this._readableState;return R==="data"?(j.readableListening=this.listenerCount("readable")>0,j.flowing!==!1&&this.resume()):R==="readable"&&(j.endEmitted||j.readableListening||(j.readableListening=j.needReadable=!0,j.flowing=!1,j.emittedReadable=!1,m("on readable",j.length,j.reading),j.length?d(this):j.reading||s.nextTick(f,this))),L},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(R,$){var L=u.prototype.removeListener.call(this,R,$);return R==="readable"&&s.nextTick(h,this),L},V.prototype.removeAllListeners=function(R){var $=u.prototype.removeAllListeners.apply(this,arguments);return R!=="readable"&&R!==void 0||s.nextTick(h,this),$},V.prototype.resume=function(){var R=this._readableState;return R.flowing||(m("resume"),R.flowing=!R.readableListening,function($,L){L.resumeScheduled||(L.resumeScheduled=!0,s.nextTick(v,$,L))}(this,R)),R.paused=!1,this},V.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},V.prototype.wrap=function(R){var $=this,L=this._readableState,j=!1;for(var pt in R.on("end",function(){if(m("wrapped end"),L.decoder&&!L.ended){var N=L.decoder.end();N&&N.length&&$.push(N)}$.push(null)}),R.on("data",function(N){m("wrapped data"),L.decoder&&(N=L.decoder.write(N)),L.objectMode&&N==null||(L.objectMode||N&&N.length)&&($.push(N)||(j=!0,R.pause()))}),R)this[pt]===void 0&&typeof R[pt]=="function"&&(this[pt]=function(N){return function(){return R[N].apply(R,arguments)}}(pt));for(var W=0;W<G.length;W++)R.on(G[W],this.emit.bind(this,G[W]));return this._read=function(N){m("wrapped _read",N),j&&(j=!1,R.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=EP),b(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(R){this._readableState&&(this._readableState.flowing=R)}}),V._fromList=l,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(V.from=function(R,$){return g===void 0&&(g=Rx),g(V,R,$)}),im}var nm={},R7=!1,kP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function RP(){if(R7)return nm;R7=!0;var i,s=Le;function a(o){var h=this;this.next=null,this.entry=null,this.finish=function(){(function(f,v,w){var l=f.entry;for(f.entry=null;l;){var e=l.callback;v.pendingcb--,e(w),l=l.next}v.corkedRequestsFree.next=f})(h,o)}}nm=V,V.WritableState=U;var u={deprecate:Bx},n=fc,p=Pe.Buffer,m=kP.Uint8Array||function(){},y,M=Tx,b=$x.getHighWaterMark,g=oo.codes,S=g.ERR_INVALID_ARG_TYPE,_=g.ERR_METHOD_NOT_IMPLEMENTED,x=g.ERR_MULTIPLE_CALLBACK,E=g.ERR_STREAM_CANNOT_PIPE,k=g.ERR_STREAM_DESTROYED,B=g.ERR_STREAM_NULL_VALUES,T=g.ERR_STREAM_WRITE_AFTER_END,C=g.ERR_UNKNOWN_ENCODING,P=M.errorOrDestroy;function G(){}function U(o,h,f){i=i||tu(),o=o||{},typeof f!="boolean"&&(f=h instanceof i),this.objectMode=!!o.objectMode,f&&(this.objectMode=this.objectMode||!!o.writableObjectMode),this.highWaterMark=b(this,o,"writableHighWaterMark",f),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var v=o.decodeStrings===!1;this.decodeStrings=!v,this.defaultEncoding=o.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(w){(function(l,e){var c=l._writableState,A=c.sync,R=c.writecb;if(typeof R!="function")throw new x;if(function(L){L.writing=!1,L.writecb=null,L.length-=L.writelen,L.writelen=0}(c),e)(function(L,j,pt,W,N){--j.pendingcb,pt?(s.nextTick(N,W),s.nextTick(r,L,j),L._writableState.errorEmitted=!0,P(L,W)):(N(W),L._writableState.errorEmitted=!0,P(L,W),r(L,j))})(l,c,A,e,R);else{var $=d(c)||l.destroyed;$||c.corked||c.bufferProcessing||!c.bufferedRequest||z(l,c),A?s.nextTick(D,l,c,$,R):D(l,c,$,R)}})(h,w)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=o.emitClose!==!1,this.autoDestroy=!!o.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function V(o){var h=this instanceof(i=i||tu());if(!h&&!y.call(V,this))return new V(o);this._writableState=new U(o,this,h),this.writable=!0,o&&(typeof o.write=="function"&&(this._write=o.write),typeof o.writev=="function"&&(this._writev=o.writev),typeof o.destroy=="function"&&(this._destroy=o.destroy),typeof o.final=="function"&&(this._final=o.final)),n.call(this)}function I(o,h,f,v,w,l,e){h.writelen=v,h.writecb=e,h.writing=!0,h.sync=!0,h.destroyed?h.onwrite(new k("write")):f?o._writev(w,h.onwrite):o._write(w,l,h.onwrite),h.sync=!1}function D(o,h,f,v){f||function(w,l){l.length===0&&l.needDrain&&(l.needDrain=!1,w.emit("drain"))}(o,h),h.pendingcb--,v(),r(o,h)}function z(o,h){h.bufferProcessing=!0;var f=h.bufferedRequest;if(o._writev&&f&&f.next){var v=h.bufferedRequestCount,w=new Array(v),l=h.corkedRequestsFree;l.entry=f;for(var e=0,c=!0;f;)w[e]=f,f.isBuf||(c=!1),f=f.next,e+=1;w.allBuffers=c,I(o,h,!0,h.length,w,"",l.finish),h.pendingcb++,h.lastBufferedRequest=null,l.next?(h.corkedRequestsFree=l.next,l.next=null):h.corkedRequestsFree=new a(h),h.bufferedRequestCount=0}else{for(;f;){var A=f.chunk,R=f.encoding,$=f.callback;if(I(o,h,!1,h.objectMode?1:A.length,A,R,$),f=f.next,h.bufferedRequestCount--,h.writing)break}f===null&&(h.lastBufferedRequest=null)}h.bufferedRequest=f,h.bufferProcessing=!1}function d(o){return o.ending&&o.length===0&&o.bufferedRequest===null&&!o.finished&&!o.writing}function t(o,h){o._final(function(f){h.pendingcb--,f&&P(o,f),h.prefinished=!0,o.emit("prefinish"),r(o,h)})}function r(o,h){var f=d(h);if(f&&(function(w,l){l.prefinished||l.finalCalled||(typeof w._final!="function"||l.destroyed?(l.prefinished=!0,w.emit("prefinish")):(l.pendingcb++,l.finalCalled=!0,s.nextTick(t,w,l)))}(o,h),h.pendingcb===0&&(h.finished=!0,o.emit("finish"),h.autoDestroy))){var v=o._readableState;(!v||v.autoDestroy&&v.endEmitted)&&o.destroy()}return f}return qe(V,n),U.prototype.getBuffer=function(){for(var o=this.bufferedRequest,h=[];o;)h.push(o),o=o.next;return h},function(){try{Object.defineProperty(U.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(V,Symbol.hasInstance,{value:function(o){return!!y.call(this,o)||this===V&&o&&o._writableState instanceof U}})):y=function(o){return o instanceof this},V.prototype.pipe=function(){P(this,new E)},V.prototype.write=function(o,h,f){var v,w=this._writableState,l=!1,e=!w.objectMode&&(v=o,p.isBuffer(v)||v instanceof m);return e&&!p.isBuffer(o)&&(o=function(c){return p.from(c)}(o)),typeof h=="function"&&(f=h,h=null),e?h="buffer":h||(h=w.defaultEncoding),typeof f!="function"&&(f=G),w.ending?function(c,A){var R=new T;P(c,R),s.nextTick(A,R)}(this,f):(e||function(c,A,R,$){var L;return R===null?L=new B:typeof R=="string"||A.objectMode||(L=new S("chunk",["string","Buffer"],R)),!L||(P(c,L),s.nextTick($,L),!1)}(this,w,o,f))&&(w.pendingcb++,l=function(c,A,R,$,L,j){if(!R){var pt=function(jt,gt,q){return jt.objectMode||jt.decodeStrings===!1||typeof gt!="string"||(gt=p.from(gt,q)),gt}(A,$,L);$!==pt&&(R=!0,L="buffer",$=pt)}var W=A.objectMode?1:$.length;A.length+=W;var N=A.length<A.highWaterMark;if(N||(A.needDrain=!0),A.writing||A.corked){var X=A.lastBufferedRequest;A.lastBufferedRequest={chunk:$,encoding:L,isBuf:R,callback:j,next:null},X?X.next=A.lastBufferedRequest:A.bufferedRequest=A.lastBufferedRequest,A.bufferedRequestCount+=1}else I(c,A,!1,W,$,L,j);return N}(this,w,e,o,h,f)),l},V.prototype.cork=function(){this._writableState.corked++},V.prototype.uncork=function(){var o=this._writableState;o.corked&&(o.corked--,o.writing||o.corked||o.bufferProcessing||!o.bufferedRequest||z(this,o))},V.prototype.setDefaultEncoding=function(o){if(typeof o=="string"&&(o=o.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((o+"").toLowerCase())>-1))throw new C(o);return this._writableState.defaultEncoding=o,this},Object.defineProperty(V.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(V.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),V.prototype._write=function(o,h,f){f(new _("_write()"))},V.prototype._writev=null,V.prototype.end=function(o,h,f){var v=this._writableState;return typeof o=="function"?(f=o,o=null,h=null):typeof h=="function"&&(f=h,h=null),o!=null&&this.write(o,h),v.corked&&(v.corked=1,this.uncork()),v.ending||function(w,l,e){l.ending=!0,r(w,l),e&&(l.finished?s.nextTick(e):w.once("finish",e)),l.ended=!0,w.writable=!1}(this,v,f),this},Object.defineProperty(V.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(o){this._writableState&&(this._writableState.destroyed=o)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(o,h){h(o)},nm}var om={},B7=!1;function tu(){if(B7)return om;B7=!0;var i=Le,s=Object.keys||function(g){var S=[];for(var _ in g)S.push(_);return S};om=y;var a=Cx(),u=RP();qe(y,a);for(var n=s(u.prototype),p=0;p<n.length;p++){var m=n[p];y.prototype[m]||(y.prototype[m]=u.prototype[m])}function y(g){if(!(this instanceof y))return new y(g);a.call(this,g),u.call(this,g),this.allowHalfOpen=!0,g&&(g.readable===!1&&(this.readable=!1),g.writable===!1&&(this.writable=!1),g.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",M)))}function M(){this._writableState.ended||i.nextTick(b,this)}function b(g){g.end()}return Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),om}var BP=Cx(),T7=oo.codes.ERR_STREAM_PREMATURE_CLOSE;function TP(){}var vb=function i(s,a,u){if(typeof a=="function")return i(s,null,a);a||(a={}),u=function(E){var k=!1;return function(){if(!k){k=!0;for(var B=arguments.length,T=new Array(B),C=0;C<B;C++)T[C]=arguments[C];E.apply(this,T)}}}(u||TP);var n=a.readable||a.readable!==!1&&s.readable,p=a.writable||a.writable!==!1&&s.writable,m=function(){s.writable||M()},y=s._writableState&&s._writableState.finished,M=function(){p=!1,y=!0,n||u.call(s)},b=s._readableState&&s._readableState.endEmitted,g=function(){n=!1,b=!0,p||u.call(s)},S=function(E){u.call(s,E)},_=function(){var E;return n&&!b?(s._readableState&&s._readableState.ended||(E=new T7),u.call(s,E)):p&&!y?(s._writableState&&s._writableState.ended||(E=new T7),u.call(s,E)):void 0},x=function(){s.req.on("finish",M)};return function(E){return E.setHeader&&typeof E.abort=="function"}(s)?(s.on("complete",M),s.on("abort",_),s.req?x():s.on("request",x)):p&&!s._writableState&&(s.on("end",m),s.on("close",m)),s.on("end",g),s.on("finish",M),a.error!==!1&&s.on("error",S),s.on("close",_),function(){s.removeListener("complete",M),s.removeListener("abort",_),s.removeListener("request",x),s.req&&s.req.removeListener("finish",M),s.removeListener("end",m),s.removeListener("close",m),s.removeListener("finish",M),s.removeListener("end",g),s.removeListener("error",S),s.removeListener("close",_)}};function $7(i,s){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);s&&(u=u.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),a.push.apply(a,u)}return a}function $P(i,s,a){return s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i}function IP(i,s){for(var a=0;a<s.length;a++){var u=s[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,u.key,u)}}var Kl=Pe.Buffer,Pg=oe.inspect,CP=Pg&&Pg.custom||"inspect",PP=function(){function i(){(function(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")})(this,i),this.head=null,this.tail=null,this.length=0}var s,a;return s=i,(a=[{key:"push",value:function(u){var n={data:u,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(u){var n={data:u,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(u){if(this.length===0)return"";for(var n=this.head,p=""+n.data;n=n.next;)p+=u+n.data;return p}},{key:"concat",value:function(u){if(this.length===0)return Kl.alloc(0);for(var n,p,m,y=Kl.allocUnsafe(u>>>0),M=this.head,b=0;M;)n=M.data,p=y,m=b,Kl.prototype.copy.call(n,p,m),b+=M.data.length,M=M.next;return y}},{key:"consume",value:function(u,n){var p;return u<this.head.data.length?(p=this.head.data.slice(0,u),this.head.data=this.head.data.slice(u)):p=u===this.head.data.length?this.shift():n?this._getString(u):this._getBuffer(u),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(u){var n=this.head,p=1,m=n.data;for(u-=m.length;n=n.next;){var y=n.data,M=u>y.length?y.length:u;if(M===y.length?m+=y:m+=y.slice(0,u),(u-=M)==0){M===y.length?(++p,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=y.slice(M));break}++p}return this.length-=p,m}},{key:"_getBuffer",value:function(u){var n=Kl.allocUnsafe(u),p=this.head,m=1;for(p.data.copy(n),u-=p.data.length;p=p.next;){var y=p.data,M=u>y.length?y.length:u;if(y.copy(n,n.length-u,0,M),(u-=M)==0){M===y.length?(++m,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=y.slice(M));break}++m}return this.length-=m,n}},{key:CP,value:function(u,n){return Pg(this,function(p){for(var m=1;m<arguments.length;m++){var y=arguments[m]!=null?arguments[m]:{};m%2?$7(Object(y),!0).forEach(function(M){$P(p,M,y[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(y)):$7(Object(y)).forEach(function(M){Object.defineProperty(p,M,Object.getOwnPropertyDescriptor(y,M))})}return p}({},n,{depth:0,customInspect:!1}))}}])&&IP(s.prototype,a),i}(),ds=Le;function I7(i,s){Dg(i,s),R0(i)}function R0(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function Dg(i,s){i.emit("error",s)}var Px={destroy:function(i,s){var a=this,u=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return u||n?(s?s(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ds.nextTick(Dg,this,i)):ds.nextTick(Dg,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(p){!s&&p?a._writableState?a._writableState.errorEmitted?ds.nextTick(R0,a):(a._writableState.errorEmitted=!0,ds.nextTick(I7,a,p)):ds.nextTick(I7,a,p):s?(ds.nextTick(R0,a),s(p)):ds.nextTick(R0,a)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(i,s){var a=i._readableState,u=i._writableState;a&&a.autoDestroy||u&&u.autoDestroy?i.destroy(s):i.emit("error",s)}},DP=oo.codes.ERR_INVALID_OPT_VALUE,am,Dx={getHighWaterMark:function(i,s,a,u){var n=function(p,m,y){return p.highWaterMark!=null?p.highWaterMark:m?p[y]:null}(s,u,a);if(n!=null){if(!isFinite(n)||Math.floor(n)!==n||n<0)throw new DP(u?a:"highWaterMark",n);return Math.floor(n)}return i.objectMode?16:16384}},Lx=Le;function $a(i,s,a){return s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i}var LP=vb,Ia=Symbol("lastResolve"),As=Symbol("lastReject"),Wf=Symbol("error"),V0=Symbol("ended"),Ds=Symbol("lastPromise"),Lg=Symbol("handlePromise"),Ls=Symbol("stream");function Na(i,s){return{value:i,done:s}}function OP(i){var s=i[Ia];if(s!==null){var a=i[Ls].read();a!==null&&(i[Ds]=null,i[Ia]=null,i[As]=null,s(Na(a,!1)))}}function NP(i){Lx.nextTick(OP,i)}var qP=Object.getPrototypeOf(function(){}),zP=Object.setPrototypeOf(($a(am={get stream(){return this[Ls]},next:function(){var i=this,s=this[Wf];if(s!==null)return Promise.reject(s);if(this[V0])return Promise.resolve(Na(void 0,!0));if(this[Ls].destroyed)return new Promise(function(p,m){Lx.nextTick(function(){i[Wf]?m(i[Wf]):p(Na(void 0,!0))})});var a,u=this[Ds];if(u)a=new Promise(function(p,m){return function(y,M){p.then(function(){if(m[V0])return y(Na(void 0,!0)),void 0;m[Lg](y,M)},M)}}(u,this));else{var n=this[Ls].read();if(n!==null)return Promise.resolve(Na(n,!1));a=new Promise(this[Lg])}return this[Ds]=a,a}},Symbol.asyncIterator,function(){return this}),$a(am,"return",function(){var i=this;return new Promise(function(s,a){i[Ls].destroy(null,function(u){if(u)return a(u),void 0;s(Na(void 0,!0))})})}),am),qP),UP=function(i){var s,a=Object.create(zP,($a(s={},Ls,{value:i,writable:!0}),$a(s,Ia,{value:null,writable:!0}),$a(s,As,{value:null,writable:!0}),$a(s,Wf,{value:null,writable:!0}),$a(s,V0,{value:i._readableState.endEmitted,writable:!0}),$a(s,Lg,{value:function(u,n){var p=a[Ls].read();p?(a[Ds]=null,a[Ia]=null,a[As]=null,u(Na(p,!1))):(a[Ia]=u,a[As]=n)},writable:!0}),s));return a[Ds]=null,LP(i,function(u){if(u&&u.code!=="ERR_STREAM_PREMATURE_CLOSE"){var n=a[As];return n!==null&&(a[Ds]=null,a[Ia]=null,a[As]=null,n(u)),a[Wf]=u,void 0}var p=a[Ia];p!==null&&(a[Ds]=null,a[Ia]=null,a[As]=null,p(Na(void 0,!0))),a[V0]=!0}),i.on("readable",NP.bind(null,a)),a},sm={},C7=!1,FP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function jP(){if(C7)return sm;C7=!0;var i,s=Le;sm=V,V.ReadableState=U,Xr.EventEmitter;var a=function(R,$){return R.listeners($).length},u=fc,n=Pe.Buffer,p=FP.Uint8Array||function(){},m,y=oe;m=y&&y.debuglog?y.debuglog("stream"):function(){};var M,b,g,S=PP,_=Px,x=Dx.getHighWaterMark,E=oo.codes,k=E.ERR_INVALID_ARG_TYPE,B=E.ERR_STREAM_PUSH_AFTER_EOF,T=E.ERR_METHOD_NOT_IMPLEMENTED,C=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;qe(V,u);var P=_.errorOrDestroy,G=["error","close","destroy","pause","resume"];function U(R,$,L){i=i||W0(),R=R||{},typeof L!="boolean"&&(L=$ instanceof i),this.objectMode=!!R.objectMode,L&&(this.objectMode=this.objectMode||!!R.readableObjectMode),this.highWaterMark=x(this,R,"readableHighWaterMark",L),this.buffer=new S,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.paused=!0,this.emitClose=R.emitClose!==!1,this.autoDestroy=!!R.autoDestroy,this.destroyed=!1,this.defaultEncoding=R.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,R.encoding&&(M||(M=_i.StringDecoder),this.decoder=new M(R.encoding),this.encoding=R.encoding)}function V(R){if(i=i||W0(),!(this instanceof V))return new V(R);var $=this instanceof i;this._readableState=new U(R,this,$),this.readable=!0,R&&(typeof R.read=="function"&&(this._read=R.read),typeof R.destroy=="function"&&(this._destroy=R.destroy)),u.call(this)}function I(R,$,L,j,pt){m("readableAddChunk",$);var W,N=R._readableState;if($===null)N.reading=!1,function(X,jt){if(m("onEofChunk"),!jt.ended){if(jt.decoder){var gt=jt.decoder.end();gt&&gt.length&&(jt.buffer.push(gt),jt.length+=jt.objectMode?1:gt.length)}jt.ended=!0,jt.sync?d(X):(jt.needReadable=!1,jt.emittedReadable||(jt.emittedReadable=!0,t(X)))}}(R,N);else if(pt||(W=function(X,jt){var gt;q=jt,n.isBuffer(q)||q instanceof p||typeof jt=="string"||jt===void 0||X.objectMode||(gt=new k("chunk",["string","Buffer","Uint8Array"],jt));var q;return gt}(N,$)),W)P(R,W);else if(N.objectMode||$&&$.length>0)if(typeof $=="string"||N.objectMode||Object.getPrototypeOf($)===n.prototype||($=function(X){return n.from(X)}($)),j)N.endEmitted?P(R,new C):D(R,N,$,!0);else if(N.ended)P(R,new B);else{if(N.destroyed)return!1;N.reading=!1,N.decoder&&!L?($=N.decoder.write($),N.objectMode||$.length!==0?D(R,N,$,!1):r(R,N)):D(R,N,$,!1)}else j||(N.reading=!1,r(R,N));return!N.ended&&(N.length<N.highWaterMark||N.length===0)}function D(R,$,L,j){$.flowing&&$.length===0&&!$.sync?($.awaitDrain=0,R.emit("data",L)):($.length+=$.objectMode?1:L.length,j?$.buffer.unshift(L):$.buffer.push(L),$.needReadable&&d(R)),r(R,$)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(R){this._readableState&&(this._readableState.destroyed=R)}}),V.prototype.destroy=_.destroy,V.prototype._undestroy=_.undestroy,V.prototype._destroy=function(R,$){$(R)},V.prototype.push=function(R,$){var L,j=this._readableState;return j.objectMode?L=!0:typeof R=="string"&&(($=$||j.defaultEncoding)!==j.encoding&&(R=n.from(R,$),$=""),L=!0),I(this,R,$,!1,L)},V.prototype.unshift=function(R){return I(this,R,null,!0,!1)},V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(R){M||(M=_i.StringDecoder);var $=new M(R);this._readableState.decoder=$,this._readableState.encoding=this._readableState.decoder.encoding;for(var L=this._readableState.buffer.head,j="";L!==null;)j+=$.write(L.data),L=L.next;return this._readableState.buffer.clear(),j!==""&&this._readableState.buffer.push(j),this._readableState.length=j.length,this};function z(R,$){return R<=0||$.length===0&&$.ended?0:$.objectMode?1:R!=R?$.flowing&&$.length?$.buffer.head.data.length:$.length:(R>$.highWaterMark&&($.highWaterMark=function(L){return L>=1073741824?L=1073741824:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}(R)),R<=$.length?R:$.ended?$.length:($.needReadable=!0,0))}function d(R){var $=R._readableState;m("emitReadable",$.needReadable,$.emittedReadable),$.needReadable=!1,$.emittedReadable||(m("emitReadable",$.flowing),$.emittedReadable=!0,s.nextTick(t,R))}function t(R){var $=R._readableState;m("emitReadable_",$.destroyed,$.length,$.ended),$.destroyed||!$.length&&!$.ended||(R.emit("readable"),$.emittedReadable=!1),$.needReadable=!$.flowing&&!$.ended&&$.length<=$.highWaterMark,w(R)}function r(R,$){$.readingMore||($.readingMore=!0,s.nextTick(o,R,$))}function o(R,$){for(;!$.reading&&!$.ended&&($.length<$.highWaterMark||$.flowing&&$.length===0);){var L=$.length;if(m("maybeReadMore read 0"),R.read(0),L===$.length)break}$.readingMore=!1}function h(R){var $=R._readableState;$.readableListening=R.listenerCount("readable")>0,$.resumeScheduled&&!$.paused?$.flowing=!0:R.listenerCount("data")>0&&R.resume()}function f(R){m("readable nexttick read 0"),R.read(0)}function v(R,$){m("resume",$.reading),$.reading||R.read(0),$.resumeScheduled=!1,R.emit("resume"),w(R),$.flowing&&!$.reading&&R.read(0)}function w(R){var $=R._readableState;for(m("flow",$.flowing);$.flowing&&R.read()!==null;);}function l(R,$){return $.length===0?null:($.objectMode?L=$.buffer.shift():!R||R>=$.length?(L=$.decoder?$.buffer.join(""):$.buffer.length===1?$.buffer.first():$.buffer.concat($.length),$.buffer.clear()):L=$.buffer.consume(R,$.decoder),L);var L}function e(R){var $=R._readableState;m("endReadable",$.endEmitted),$.endEmitted||($.ended=!0,s.nextTick(c,$,R))}function c(R,$){if(m("endReadableNT",R.endEmitted,R.length),!R.endEmitted&&R.length===0&&(R.endEmitted=!0,$.readable=!1,$.emit("end"),R.autoDestroy)){var L=$._writableState;(!L||L.autoDestroy&&L.finished)&&$.destroy()}}function A(R,$){for(var L=0,j=R.length;L<j;L++)if(R[L]===$)return L;return-1}return V.prototype.read=function(R){m("read",R),R=parseInt(R,10);var $=this._readableState,L=R;if(R!==0&&($.emittedReadable=!1),R===0&&$.needReadable&&(($.highWaterMark!==0?$.length>=$.highWaterMark:$.length>0)||$.ended))return m("read: emitReadable",$.length,$.ended),$.length===0&&$.ended?e(this):d(this),null;if((R=z(R,$))===0&&$.ended)return $.length===0&&e(this),null;var j,pt=$.needReadable;return m("need readable",pt),($.length===0||$.length-R<$.highWaterMark)&&m("length less than watermark",pt=!0),$.ended||$.reading?m("reading or ended",pt=!1):pt&&(m("do read"),$.reading=!0,$.sync=!0,$.length===0&&($.needReadable=!0),this._read($.highWaterMark),$.sync=!1,$.reading||(R=z(L,$))),(j=R>0?l(R,$):null)===null?($.needReadable=$.length<=$.highWaterMark,R=0):($.length-=R,$.awaitDrain=0),$.length===0&&($.ended||($.needReadable=!0),L!==R&&$.ended&&e(this)),j!==null&&this.emit("data",j),j},V.prototype._read=function(R){P(this,new T("_read()"))},V.prototype.pipe=function(R,$){var L=this,j=this._readableState;switch(j.pipesCount){case 0:j.pipes=R;break;case 1:j.pipes=[j.pipes,R];break;default:j.pipes.push(R)}j.pipesCount+=1,m("pipe count=%d opts=%j",j.pipesCount,$);var pt=(!$||$.end!==!1)&&R!==s.stdout&&R!==s.stderr?N:bt;function W(Kt,mt){m("onunpipe"),Kt===L&&mt&&mt.hasUnpiped===!1&&(mt.hasUnpiped=!0,m("cleanup"),R.removeListener("close",K),R.removeListener("finish",J),R.removeListener("drain",X),R.removeListener("error",q),R.removeListener("unpipe",W),L.removeListener("end",N),L.removeListener("end",bt),L.removeListener("data",gt),jt=!0,!j.awaitDrain||R._writableState&&!R._writableState.needDrain||X())}function N(){m("onend"),R.end()}j.endEmitted?s.nextTick(pt):L.once("end",pt),R.on("unpipe",W);var X=function(Kt){return function(){var mt=Kt._readableState;m("pipeOnDrain",mt.awaitDrain),mt.awaitDrain&&mt.awaitDrain--,mt.awaitDrain===0&&a(Kt,"data")&&(mt.flowing=!0,w(Kt))}}(L);R.on("drain",X);var jt=!1;function gt(Kt){m("ondata");var mt=R.write(Kt);m("dest.write",mt),mt===!1&&((j.pipesCount===1&&j.pipes===R||j.pipesCount>1&&A(j.pipes,R)!==-1)&&!jt&&(m("false write response, pause",j.awaitDrain),j.awaitDrain++),L.pause())}function q(Kt){m("onerror",Kt),bt(),R.removeListener("error",q),a(R,"error")===0&&P(R,Kt)}function K(){R.removeListener("finish",J),bt()}function J(){m("onfinish"),R.removeListener("close",K),bt()}function bt(){m("unpipe"),L.unpipe(R)}return L.on("data",gt),function(Kt,mt,Mt){if(typeof Kt.prependListener=="function")return Kt.prependListener(mt,Mt);Kt._events&&Kt._events[mt]?Array.isArray(Kt._events[mt])?Kt._events[mt].unshift(Mt):Kt._events[mt]=[Mt,Kt._events[mt]]:Kt.on(mt,Mt)}(R,"error",q),R.once("close",K),R.once("finish",J),R.emit("pipe",L),j.flowing||(m("pipe resume"),L.resume()),R},V.prototype.unpipe=function(R){var $=this._readableState,L={hasUnpiped:!1};if($.pipesCount===0)return this;if($.pipesCount===1)return R&&R!==$.pipes||(R||(R=$.pipes),$.pipes=null,$.pipesCount=0,$.flowing=!1,R&&R.emit("unpipe",this,L)),this;if(!R){var j=$.pipes,pt=$.pipesCount;$.pipes=null,$.pipesCount=0,$.flowing=!1;for(var W=0;W<pt;W++)j[W].emit("unpipe",this,{hasUnpiped:!1});return this}var N=A($.pipes,R);return N===-1||($.pipes.splice(N,1),$.pipesCount-=1,$.pipesCount===1&&($.pipes=$.pipes[0]),R.emit("unpipe",this,L)),this},V.prototype.on=function(R,$){var L=u.prototype.on.call(this,R,$),j=this._readableState;return R==="data"?(j.readableListening=this.listenerCount("readable")>0,j.flowing!==!1&&this.resume()):R==="readable"&&(j.endEmitted||j.readableListening||(j.readableListening=j.needReadable=!0,j.flowing=!1,j.emittedReadable=!1,m("on readable",j.length,j.reading),j.length?d(this):j.reading||s.nextTick(f,this))),L},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(R,$){var L=u.prototype.removeListener.call(this,R,$);return R==="readable"&&s.nextTick(h,this),L},V.prototype.removeAllListeners=function(R){var $=u.prototype.removeAllListeners.apply(this,arguments);return R!=="readable"&&R!==void 0||s.nextTick(h,this),$},V.prototype.resume=function(){var R=this._readableState;return R.flowing||(m("resume"),R.flowing=!R.readableListening,function($,L){L.resumeScheduled||(L.resumeScheduled=!0,s.nextTick(v,$,L))}(this,R)),R.paused=!1,this},V.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},V.prototype.wrap=function(R){var $=this,L=this._readableState,j=!1;for(var pt in R.on("end",function(){if(m("wrapped end"),L.decoder&&!L.ended){var N=L.decoder.end();N&&N.length&&$.push(N)}$.push(null)}),R.on("data",function(N){m("wrapped data"),L.decoder&&(N=L.decoder.write(N)),L.objectMode&&N==null||(L.objectMode||N&&N.length)&&($.push(N)||(j=!0,R.pause()))}),R)this[pt]===void 0&&typeof R[pt]=="function"&&(this[pt]=function(N){return function(){return R[N].apply(R,arguments)}}(pt));for(var W=0;W<G.length;W++)R.on(G[W],this.emit.bind(this,G[W]));return this._read=function(N){m("wrapped _read",N),j&&(j=!1,R.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=UP),b(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(R){this._readableState&&(this._readableState.flowing=R)}}),V._fromList=l,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(V.from=function(R,$){return g===void 0&&(g=Rx),g(V,R,$)}),sm}var hm={},P7=!1,HP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Ox(){if(P7)return hm;P7=!0;var i,s=Le;function a(o){var h=this;this.next=null,this.entry=null,this.finish=function(){(function(f,v,w){var l=f.entry;for(f.entry=null;l;){var e=l.callback;v.pendingcb--,e(w),l=l.next}v.corkedRequestsFree.next=f})(h,o)}}hm=V,V.WritableState=U;var u={deprecate:Bx},n=fc,p=Pe.Buffer,m=HP.Uint8Array||function(){},y,M=Px,b=Dx.getHighWaterMark,g=oo.codes,S=g.ERR_INVALID_ARG_TYPE,_=g.ERR_METHOD_NOT_IMPLEMENTED,x=g.ERR_MULTIPLE_CALLBACK,E=g.ERR_STREAM_CANNOT_PIPE,k=g.ERR_STREAM_DESTROYED,B=g.ERR_STREAM_NULL_VALUES,T=g.ERR_STREAM_WRITE_AFTER_END,C=g.ERR_UNKNOWN_ENCODING,P=M.errorOrDestroy;function G(){}function U(o,h,f){i=i||W0(),o=o||{},typeof f!="boolean"&&(f=h instanceof i),this.objectMode=!!o.objectMode,f&&(this.objectMode=this.objectMode||!!o.writableObjectMode),this.highWaterMark=b(this,o,"writableHighWaterMark",f),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var v=o.decodeStrings===!1;this.decodeStrings=!v,this.defaultEncoding=o.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(w){(function(l,e){var c=l._writableState,A=c.sync,R=c.writecb;if(typeof R!="function")throw new x;if(function(L){L.writing=!1,L.writecb=null,L.length-=L.writelen,L.writelen=0}(c),e)(function(L,j,pt,W,N){--j.pendingcb,pt?(s.nextTick(N,W),s.nextTick(r,L,j),L._writableState.errorEmitted=!0,P(L,W)):(N(W),L._writableState.errorEmitted=!0,P(L,W),r(L,j))})(l,c,A,e,R);else{var $=d(c)||l.destroyed;$||c.corked||c.bufferProcessing||!c.bufferedRequest||z(l,c),A?s.nextTick(D,l,c,$,R):D(l,c,$,R)}})(h,w)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=o.emitClose!==!1,this.autoDestroy=!!o.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function V(o){var h=this instanceof(i=i||W0());if(!h&&!y.call(V,this))return new V(o);this._writableState=new U(o,this,h),this.writable=!0,o&&(typeof o.write=="function"&&(this._write=o.write),typeof o.writev=="function"&&(this._writev=o.writev),typeof o.destroy=="function"&&(this._destroy=o.destroy),typeof o.final=="function"&&(this._final=o.final)),n.call(this)}function I(o,h,f,v,w,l,e){h.writelen=v,h.writecb=e,h.writing=!0,h.sync=!0,h.destroyed?h.onwrite(new k("write")):f?o._writev(w,h.onwrite):o._write(w,l,h.onwrite),h.sync=!1}function D(o,h,f,v){f||function(w,l){l.length===0&&l.needDrain&&(l.needDrain=!1,w.emit("drain"))}(o,h),h.pendingcb--,v(),r(o,h)}function z(o,h){h.bufferProcessing=!0;var f=h.bufferedRequest;if(o._writev&&f&&f.next){var v=h.bufferedRequestCount,w=new Array(v),l=h.corkedRequestsFree;l.entry=f;for(var e=0,c=!0;f;)w[e]=f,f.isBuf||(c=!1),f=f.next,e+=1;w.allBuffers=c,I(o,h,!0,h.length,w,"",l.finish),h.pendingcb++,h.lastBufferedRequest=null,l.next?(h.corkedRequestsFree=l.next,l.next=null):h.corkedRequestsFree=new a(h),h.bufferedRequestCount=0}else{for(;f;){var A=f.chunk,R=f.encoding,$=f.callback;if(I(o,h,!1,h.objectMode?1:A.length,A,R,$),f=f.next,h.bufferedRequestCount--,h.writing)break}f===null&&(h.lastBufferedRequest=null)}h.bufferedRequest=f,h.bufferProcessing=!1}function d(o){return o.ending&&o.length===0&&o.bufferedRequest===null&&!o.finished&&!o.writing}function t(o,h){o._final(function(f){h.pendingcb--,f&&P(o,f),h.prefinished=!0,o.emit("prefinish"),r(o,h)})}function r(o,h){var f=d(h);if(f&&(function(w,l){l.prefinished||l.finalCalled||(typeof w._final!="function"||l.destroyed?(l.prefinished=!0,w.emit("prefinish")):(l.pendingcb++,l.finalCalled=!0,s.nextTick(t,w,l)))}(o,h),h.pendingcb===0&&(h.finished=!0,o.emit("finish"),h.autoDestroy))){var v=o._readableState;(!v||v.autoDestroy&&v.endEmitted)&&o.destroy()}return f}return qe(V,n),U.prototype.getBuffer=function(){for(var o=this.bufferedRequest,h=[];o;)h.push(o),o=o.next;return h},function(){try{Object.defineProperty(U.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(V,Symbol.hasInstance,{value:function(o){return!!y.call(this,o)||this===V&&o&&o._writableState instanceof U}})):y=function(o){return o instanceof this},V.prototype.pipe=function(){P(this,new E)},V.prototype.write=function(o,h,f){var v,w=this._writableState,l=!1,e=!w.objectMode&&(v=o,p.isBuffer(v)||v instanceof m);return e&&!p.isBuffer(o)&&(o=function(c){return p.from(c)}(o)),typeof h=="function"&&(f=h,h=null),e?h="buffer":h||(h=w.defaultEncoding),typeof f!="function"&&(f=G),w.ending?function(c,A){var R=new T;P(c,R),s.nextTick(A,R)}(this,f):(e||function(c,A,R,$){var L;return R===null?L=new B:typeof R=="string"||A.objectMode||(L=new S("chunk",["string","Buffer"],R)),!L||(P(c,L),s.nextTick($,L),!1)}(this,w,o,f))&&(w.pendingcb++,l=function(c,A,R,$,L,j){if(!R){var pt=function(jt,gt,q){return jt.objectMode||jt.decodeStrings===!1||typeof gt!="string"||(gt=p.from(gt,q)),gt}(A,$,L);$!==pt&&(R=!0,L="buffer",$=pt)}var W=A.objectMode?1:$.length;A.length+=W;var N=A.length<A.highWaterMark;if(N||(A.needDrain=!0),A.writing||A.corked){var X=A.lastBufferedRequest;A.lastBufferedRequest={chunk:$,encoding:L,isBuf:R,callback:j,next:null},X?X.next=A.lastBufferedRequest:A.bufferedRequest=A.lastBufferedRequest,A.bufferedRequestCount+=1}else I(c,A,!1,W,$,L,j);return N}(this,w,e,o,h,f)),l},V.prototype.cork=function(){this._writableState.corked++},V.prototype.uncork=function(){var o=this._writableState;o.corked&&(o.corked--,o.writing||o.corked||o.bufferProcessing||!o.bufferedRequest||z(this,o))},V.prototype.setDefaultEncoding=function(o){if(typeof o=="string"&&(o=o.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((o+"").toLowerCase())>-1))throw new C(o);return this._writableState.defaultEncoding=o,this},Object.defineProperty(V.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(V.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),V.prototype._write=function(o,h,f){f(new _("_write()"))},V.prototype._writev=null,V.prototype.end=function(o,h,f){var v=this._writableState;return typeof o=="function"?(f=o,o=null,h=null):typeof h=="function"&&(f=h,h=null),o!=null&&this.write(o,h),v.corked&&(v.corked=1,this.uncork()),v.ending||function(w,l,e){l.ending=!0,r(w,l),e&&(l.finished?s.nextTick(e):w.once("finish",e)),l.ended=!0,w.writable=!1}(this,v,f),this},Object.defineProperty(V.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(o){this._writableState&&(this._writableState.destroyed=o)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(o,h){h(o)},hm}var fm={},D7=!1;function W0(){if(D7)return fm;D7=!0;var i=Le,s=Object.keys||function(g){var S=[];for(var _ in g)S.push(_);return S};fm=y;var a=jP(),u=Ox();qe(y,a);for(var n=s(u.prototype),p=0;p<n.length;p++){var m=n[p];y.prototype[m]||(y.prototype[m]=u.prototype[m])}function y(g){if(!(this instanceof y))return new y(g);a.call(this,g),u.call(this,g),this.allowHalfOpen=!0,g&&(g.readable===!1&&(this.readable=!1),g.writable===!1&&(this.writable=!1),g.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",M)))}function M(){this._writableState.ended||i.nextTick(b,this)}function b(g){g.end()}return Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),fm}var KP=Ox(),Nx=tu(),qx;qx=Yo;var uc=oo.codes,GP=uc.ERR_METHOD_NOT_IMPLEMENTED,ZP=uc.ERR_MULTIPLE_CALLBACK,VP=uc.ERR_TRANSFORM_ALREADY_TRANSFORMING,WP=uc.ERR_TRANSFORM_WITH_LENGTH_0,B0=Nx;function XP(i,s){var a=this._transformState;a.transforming=!1;var u=a.writecb;if(u===null)return this.emit("error",new ZP);a.writechunk=null,a.writecb=null,s!=null&&this.push(s),u(i);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function Yo(i){if(!(this instanceof Yo))return new Yo(i);B0.call(this,i),this._transformState={afterTransform:XP.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,i&&(typeof i.transform=="function"&&(this._transform=i.transform),typeof i.flush=="function"&&(this._flush=i.flush)),this.on("prefinish",JP)}function JP(){var i=this;typeof this._flush!="function"||this._readableState.destroyed?L7(this,null,null):this._flush(function(s,a){L7(i,s,a)})}function L7(i,s,a){if(s)return i.emit("error",s);if(a!=null&&i.push(a),i._writableState.length)throw new WP;if(i._transformState.transforming)throw new VP;return i.push(null)}qe(Yo,B0),Yo.prototype.push=function(i,s){return this._transformState.needTransform=!1,B0.prototype.push.call(this,i,s)},Yo.prototype._transform=function(i,s,a){a(new GP("_transform()"))},Yo.prototype._write=function(i,s,a){var u=this._transformState;if(u.writecb=a,u.writechunk=i,u.writeencoding=s,!u.transforming){var n=this._readableState;(u.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},Yo.prototype._read=function(i){var s=this._transformState;s.writechunk===null||s.transforming?s.needTransform=!0:(s.transforming=!0,this._transform(s.writechunk,s.writeencoding,s.afterTransform))},Yo.prototype._destroy=function(i,s){B0.prototype._destroy.call(this,i,function(a){s(a)})};var zx=qx,Ux;Ux=eu;var Fx=zx;function eu(i){if(!(this instanceof eu))return new eu(i);Fx.call(this,i)}qe(eu,Fx),eu.prototype._transform=function(i,s,a){a(null,i)};var YP=Ux,um,jx=oo.codes,QP=jx.ERR_MISSING_ARGS,tD=jx.ERR_STREAM_DESTROYED;function O7(i){if(i)throw i}function eD(i,s,a,u){u=function(m){var y=!1;return function(){y||(y=!0,m.apply(void 0,arguments))}}(u);var n=!1;i.on("close",function(){n=!0}),um===void 0&&(um=vb),um(i,{readable:s,writable:a},function(m){if(m)return u(m);n=!0,u()});var p=!1;return function(m){if(!n&&!p)return p=!0,function(y){return y.setHeader&&typeof y.abort=="function"}(i)?i.abort():typeof i.destroy=="function"?i.destroy():(u(m||new tD("pipe")),void 0)}}function N7(i){i()}function rD(i,s){return i.pipe(s)}function iD(i){return i.length?typeof i[i.length-1]!="function"?O7:i.pop():O7}var nD=function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var u,n=iD(s);if(Array.isArray(s[0])&&(s=s[0]),s.length<2)throw new QP("streams");var p=s.map(function(m,y){var M=y<s.length-1;return eD(m,M,y>0,function(b){u||(u=b),b&&p.forEach(N7),M||(p.forEach(N7),n(u))})});return s.reduce(rD)},Hx,Og=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;Hx=Tn;var Ng=Xr.EventEmitter;function Tn(){Ng.call(this||Og)}qe(Tn,Ng),Tn.Readable=BP,Tn.Writable=KP,Tn.Duplex=Nx,Tn.Transform=zx,Tn.PassThrough=YP,Tn.finished=vb,Tn.pipeline=nD,Tn.Stream=Tn,Tn.prototype.pipe=function(i,s){var a=this||Og;function u(g){i.writable&&i.write(g)===!1&&a.pause&&a.pause()}function n(){a.readable&&a.resume&&a.resume()}a.on("data",u),i.on("drain",n),i._isStdio||s&&s.end===!1||(a.on("end",m),a.on("close",y));var p=!1;function m(){p||(p=!0,i.end())}function y(){p||(p=!0,typeof i.destroy=="function"&&i.destroy())}function M(g){if(b(),Ng.listenerCount(this||Og,"error")===0)throw g}function b(){a.removeListener("data",u),i.removeListener("drain",n),a.removeListener("end",m),a.removeListener("close",y),a.removeListener("error",M),i.removeListener("error",M),a.removeListener("end",b),a.removeListener("close",b),i.removeListener("close",b)}return a.on("error",M),i.on("error",M),a.on("end",b),a.on("close",b),i.on("close",b),i.emit("pipe",a),i};var Pn=Hx;Pn.Readable;Pn.Writable;Pn.Duplex;Pn.Transform;Pn.PassThrough;Pn.finished;Pn.pipeline;Pn.Stream;var lm={},q7=!1,Nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function za(){if(q7)return lm;q7=!0;var i=Qe().Buffer,s=Pn.Transform,a=_i.StringDecoder,u=Ye();function n(p){s.call(this||Nr),(this||Nr).hashMode=typeof p=="string",(this||Nr).hashMode?(this||Nr)[p]=(this||Nr)._finalOrDigest:(this||Nr).final=(this||Nr)._finalOrDigest,(this||Nr)._final&&((this||Nr).__final=(this||Nr)._final,(this||Nr)._final=null),(this||Nr)._decoder=null,(this||Nr)._encoding=null}return u(n,s),n.prototype.update=function(p,m,y){typeof p=="string"&&(p=i.from(p,m));var M=this._update(p);return(this||Nr).hashMode?this||Nr:(y&&(M=this._toString(M,y)),M)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(p,m,y){var M;try{(this||Nr).hashMode?this._update(p):this.push(this._update(p))}catch(b){M=b}finally{y(M)}},n.prototype._flush=function(p){var m;try{this.push(this.__final())}catch(y){m=y}p(m)},n.prototype._finalOrDigest=function(p){var m=this.__final()||i.alloc(0);return p&&(m=this._toString(m,p,!0)),m},n.prototype._toString=function(p,m,y){if((this||Nr)._decoder||((this||Nr)._decoder=new a(m),(this||Nr)._encoding=m),(this||Nr)._encoding!==m)throw new Error("can't switch encodings");var M=(this||Nr)._decoder.write(p);return y&&(M+=(this||Nr)._decoder.end()),M},lm=n,lm}var cm={},z7=!1;function fu(){if(z7)return cm;z7=!0;var i=Ye(),s=db(),a=pb(),u=mb(),n=za();function p(m){n.call(this,"digest"),this._hash=m}return i(p,n),p.prototype._update=function(m){this._hash.update(m)},p.prototype._final=function(){return this._hash.digest()},cm=function(y){return y=y.toLowerCase(),y==="md5"?new s:y==="rmd160"||y==="ripemd160"?new a:new p(u(y))},cm}var dm={},U7=!1;function oD(){if(U7)return dm;U7=!0;var i=Ye(),s=Qe().Buffer,a=za(),u=s.alloc(128),n=64;function p(m,y){a.call(this,"digest"),typeof y=="string"&&(y=s.from(y)),this._alg=m,this._key=y,y.length>n?y=m(y):y.length<n&&(y=s.concat([y,u],n));for(var M=this._ipad=s.allocUnsafe(n),b=this._opad=s.allocUnsafe(n),g=0;g<n;g++)M[g]=y[g]^54,b[g]=y[g]^92;this._hash=[M]}return i(p,a),p.prototype._update=function(m){this._hash.push(m)},p.prototype._final=function(){var m=this._alg(s.concat(this._hash));return this._alg(s.concat([this._opad,m]))},dm=p,dm}var pm={},F7=!1;function Kx(){if(F7)return pm;F7=!0;var i=db();return pm=function(s){return new i().update(s).digest()},pm}var mm={},j7=!1;function Gx(){if(j7)return mm;j7=!0;var i=Ye(),s=oD(),a=za(),u=Qe().Buffer,n=Kx(),p=pb(),m=mb(),y=u.alloc(128);function M(b,g){a.call(this,"digest"),typeof g=="string"&&(g=u.from(g));var S=b==="sha512"||b==="sha384"?128:64;if(this._alg=b,this._key=g,g.length>S){var _=b==="rmd160"?new p:m(b);g=_.update(g).digest()}else g.length<S&&(g=u.concat([g,y],S));for(var x=this._ipad=u.allocUnsafe(S),E=this._opad=u.allocUnsafe(S),k=0;k<S;k++)x[k]=g[k]^54,E[k]=g[k]^92;this._hash=b==="rmd160"?new p:m(b),this._hash.update(x)}return i(M,a),M.prototype._update=function(b){this._hash.update(b)},M.prototype._final=function(){var b=this._hash.digest(),g=this._alg==="rmd160"?new p:m(this._alg);return g.update(this._opad).update(b).digest()},mm=function(g,S){return g=g.toLowerCase(),g==="rmd160"||g==="ripemd160"?new M("rmd160",S):g==="md5"?new s(n,S):new M(g,S)},mm}var Zx={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},vm={},H7=!1;function aD(){return H7||(H7=!0,vm=Zx),vm}var gm={},K7=!1;function Vx(){if(K7)return gm;K7=!0;var i=Math.pow(2,30)-1;return gm=function(s,a){if(typeof s!="number")throw new TypeError("Iterations not a number");if(s<0)throw new TypeError("Bad iterations");if(typeof a!="number")throw new TypeError("Key length not a number");if(a<0||a>i||a!==a)throw new TypeError("Bad key length")},gm}var bm={},G7=!1,Gl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Wx(){if(G7)return bm;G7=!0;var i=Le,s;if(Gl.process&&Gl.process.browser)s="utf-8";else if(Gl.process&&Gl.process.version){var a=parseInt(i.version.split(".")[0].slice(1),10);s=a>=6?"utf-8":"binary"}else s="utf-8";return bm=s,bm}var ym={},Z7=!1;function Xx(){if(Z7)return ym;Z7=!0;var i=Qe().Buffer;return ym=function(s,a,u){if(i.isBuffer(s))return s;if(typeof s=="string")return i.from(s,a);if(ArrayBuffer.isView(s))return i.from(s.buffer);throw new TypeError(u+" must be a string, a Buffer, a typed array or a DataView")},ym}var wm={},V7=!1,Gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Jx(){if(V7)return wm;V7=!0;var i=Kx(),s=pb(),a=mb(),u=Qe().Buffer,n=Vx(),p=Wx(),m=Xx(),y=u.alloc(128),M={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function b(_,x,E){var k=g(_),B=_==="sha512"||_==="sha384"?128:64;x.length>B?x=k(x):x.length<B&&(x=u.concat([x,y],B));for(var T=u.allocUnsafe(B+M[_]),C=u.allocUnsafe(B+M[_]),P=0;P<B;P++)T[P]=x[P]^54,C[P]=x[P]^92;var G=u.allocUnsafe(B+E+4);T.copy(G,0,0,B),(this||Gn).ipad1=G,(this||Gn).ipad2=T,(this||Gn).opad=C,(this||Gn).alg=_,(this||Gn).blocksize=B,(this||Gn).hash=k,(this||Gn).size=M[_]}b.prototype.run=function(_,x){_.copy(x,(this||Gn).blocksize);var E=this.hash(x);return E.copy((this||Gn).opad,(this||Gn).blocksize),this.hash((this||Gn).opad)};function g(_){function x(k){return a(_).update(k).digest()}function E(k){return new s().update(k).digest()}return _==="rmd160"||_==="ripemd160"?E:_==="md5"?i:x}function S(_,x,E,k,B){n(E,k),_=m(_,p,"Password"),x=m(x,p,"Salt"),B=B||"sha1";var T=new b(B,_,x.length),C=u.allocUnsafe(k),P=u.allocUnsafe(x.length+4);x.copy(P,0,0,x.length);for(var G=0,U=M[B],V=Math.ceil(k/U),I=1;I<=V;I++){P.writeUInt32BE(I,x.length);for(var D=T.run(P,T.ipad1),z=D,d=1;d<E;d++){z=T.run(z,T.ipad2);for(var t=0;t<U;t++)D[t]^=z[t]}D.copy(C,G),G+=U}return C}return wm=S,wm}var Mm={},W7=!1,sn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function sD(){if(W7)return Mm;W7=!0;var i=Qe().Buffer,s=Vx(),a=Wx(),u=Jx(),n=Xx(),p,m=sn.crypto&&sn.crypto.subtle,y={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},M=[];function b(E){if(sn.process&&!sn.process.browser||!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(M[E]!==void 0)return M[E];p=p||i.alloc(8);var k=_(p,p,10,128,E).then(function(){return!0}).catch(function(){return!1});return M[E]=k,k}var g;function S(){return g||(sn.process&&sn.process.nextTick?g=sn.process.nextTick:sn.queueMicrotask?g=sn.queueMicrotask:sn.setImmediate?g=sn.setImmediate:g=sn.setTimeout,g)}function _(E,k,B,T,C){return m.importKey("raw",E,{name:"PBKDF2"},!1,["deriveBits"]).then(function(P){return m.deriveBits({name:"PBKDF2",salt:k,iterations:B,hash:{name:C}},P,T<<3)}).then(function(P){return i.from(P)})}function x(E,k){E.then(function(B){S()(function(){k(null,B)})},function(B){S()(function(){k(B)})})}return Mm=function(E,k,B,T,C,P){typeof C=="function"&&(P=C,C=void 0),C=C||"sha1";var G=y[C.toLowerCase()];if(!G||typeof sn.Promise!="function"){S()(function(){var U;try{U=u(E,k,B,T,C)}catch(V){return P(V)}P(null,U)});return}if(s(B,T),E=n(E,a,"Password"),k=n(k,a,"Salt"),typeof P!="function")throw new Error("No callback provided to pbkdf2");x(b(G).then(function(U){return U?_(E,k,B,T,G):u(E,k,B,T,C)}),P)},Mm}var Zl={},X7=!1;function Yx(){return X7||(X7=!0,Zl.pbkdf2=sD(),Zl.pbkdf2Sync=Jx()),Zl}var hn={},J7=!1;function Qx(){if(J7)return hn;J7=!0,hn.readUInt32BE=function(n,p){var m=n[0+p]<<24|n[1+p]<<16|n[2+p]<<8|n[3+p];return m>>>0},hn.writeUInt32BE=function(n,p,m){n[0+m]=p>>>24,n[1+m]=p>>>16&255,n[2+m]=p>>>8&255,n[3+m]=p&255},hn.ip=function(n,p,m,y){for(var M=0,b=0,g=6;g>=0;g-=2){for(var S=0;S<=24;S+=8)M<<=1,M|=p>>>S+g&1;for(var S=0;S<=24;S+=8)M<<=1,M|=n>>>S+g&1}for(var g=6;g>=0;g-=2){for(var S=1;S<=25;S+=8)b<<=1,b|=p>>>S+g&1;for(var S=1;S<=25;S+=8)b<<=1,b|=n>>>S+g&1}m[y+0]=M>>>0,m[y+1]=b>>>0},hn.rip=function(n,p,m,y){for(var M=0,b=0,g=0;g<4;g++)for(var S=24;S>=0;S-=8)M<<=1,M|=p>>>S+g&1,M<<=1,M|=n>>>S+g&1;for(var g=4;g<8;g++)for(var S=24;S>=0;S-=8)b<<=1,b|=p>>>S+g&1,b<<=1,b|=n>>>S+g&1;m[y+0]=M>>>0,m[y+1]=b>>>0},hn.pc1=function(n,p,m,y){for(var M=0,b=0,g=7;g>=5;g--){for(var S=0;S<=24;S+=8)M<<=1,M|=p>>S+g&1;for(var S=0;S<=24;S+=8)M<<=1,M|=n>>S+g&1}for(var S=0;S<=24;S+=8)M<<=1,M|=p>>S+g&1;for(var g=1;g<=3;g++){for(var S=0;S<=24;S+=8)b<<=1,b|=p>>S+g&1;for(var S=0;S<=24;S+=8)b<<=1,b|=n>>S+g&1}for(var S=0;S<=24;S+=8)b<<=1,b|=n>>S+g&1;m[y+0]=M>>>0,m[y+1]=b>>>0},hn.r28shl=function(n,p){return n<<p&268435455|n>>>28-p};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];hn.pc2=function(n,p,m,y){for(var M=0,b=0,g=i.length>>>1,S=0;S<g;S++)M<<=1,M|=n>>>i[S]&1;for(var S=g;S<i.length;S++)b<<=1,b|=p>>>i[S]&1;m[y+0]=M>>>0,m[y+1]=b>>>0},hn.expand=function(n,p,m){var y=0,M=0;y=(n&1)<<5|n>>>27;for(var b=23;b>=15;b-=4)y<<=6,y|=n>>>b&63;for(var b=11;b>=3;b-=4)M|=n>>>b&63,M<<=6;M|=(n&31)<<1|n>>>31,p[m+0]=y>>>0,p[m+1]=M>>>0};var s=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];hn.substitute=function(n,p){for(var m=0,y=0;y<4;y++){var M=n>>>18-y*6&63,b=s[y*64+M];m<<=4,m|=b}for(var y=0;y<4;y++){var M=p>>>18-y*6&63,b=s[4*64+y*64+M];m<<=4,m|=b}return m>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];return hn.permute=function(n){for(var p=0,m=0;m<a.length;m++)p<<=1,p|=n>>>a[m]&1;return p>>>0},hn.padSplit=function(n,p,m){for(var y=n.toString(2);y.length<p;)y="0"+y;for(var M=[],b=0;b<p;b+=m)M.push(y.slice(b,b+m));return M.join(" ")},hn}var _m={},Y7=!1;function Io(){if(Y7)return _m;Y7=!0,_m=i;function i(s,a){if(!s)throw new Error(a||"Assertion failed")}return i.equal=function(a,u,n){if(a!=u)throw new Error(n||"Assertion failed: "+a+" != "+u)},_m}var Sm={},Q7=!1;function gb(){if(Q7)return Sm;Q7=!0;var i=Io();function s(a){this.options=a,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}return Sm=s,s.prototype._init=function(){},s.prototype.update=function(u){return u.length===0?[]:this.type==="decrypt"?this._updateDecrypt(u):this._updateEncrypt(u)},s.prototype._buffer=function(u,n){for(var p=Math.min(this.buffer.length-this.bufferOff,u.length-n),m=0;m<p;m++)this.buffer[this.bufferOff+m]=u[n+m];return this.bufferOff+=p,p},s.prototype._flushBuffer=function(u,n){return this._update(this.buffer,0,u,n),this.bufferOff=0,this.blockSize},s.prototype._updateEncrypt=function(u){var n=0,p=0,m=(this.bufferOff+u.length)/this.blockSize|0,y=new Array(m*this.blockSize);this.bufferOff!==0&&(n+=this._buffer(u,n),this.bufferOff===this.buffer.length&&(p+=this._flushBuffer(y,p)));for(var M=u.length-(u.length-n)%this.blockSize;n<M;n+=this.blockSize)this._update(u,n,y,p),p+=this.blockSize;for(;n<u.length;n++,this.bufferOff++)this.buffer[this.bufferOff]=u[n];return y},s.prototype._updateDecrypt=function(u){for(var n=0,p=0,m=Math.ceil((this.bufferOff+u.length)/this.blockSize)-1,y=new Array(m*this.blockSize);m>0;m--)n+=this._buffer(u,n),p+=this._flushBuffer(y,p);return n+=this._buffer(u,n),y},s.prototype.final=function(u){var n;u&&(n=this.update(u));var p;return this.type==="encrypt"?p=this._finalEncrypt():p=this._finalDecrypt(),n?n.concat(p):p},s.prototype._pad=function(u,n){if(n===0)return!1;for(;n<u.length;)u[n++]=0;return!0},s.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var u=new Array(this.blockSize);return this._update(this.buffer,0,u,0),u},s.prototype._unpad=function(u){return u},s.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var u=new Array(this.blockSize);return this._flushBuffer(u,0),this._unpad(u)},Sm}var xm={},tw=!1;function tE(){if(tw)return xm;tw=!0;var i=Io(),s=Ye(),a=Qx(),u=gb();function n(){this.tmp=new Array(2),this.keys=null}function p(y){u.call(this,y);var M=new n;this._desState=M,this.deriveKeys(M,y.key)}s(p,u),xm=p,p.create=function(M){return new p(M)};var m=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return p.prototype.deriveKeys=function(M,b){M.keys=new Array(16*2),i.equal(b.length,this.blockSize,"Invalid key length");var g=a.readUInt32BE(b,0),S=a.readUInt32BE(b,4);a.pc1(g,S,M.tmp,0),g=M.tmp[0],S=M.tmp[1];for(var _=0;_<M.keys.length;_+=2){var x=m[_>>>1];g=a.r28shl(g,x),S=a.r28shl(S,x),a.pc2(g,S,M.keys,_)}},p.prototype._update=function(M,b,g,S){var _=this._desState,x=a.readUInt32BE(M,b),E=a.readUInt32BE(M,b+4);a.ip(x,E,_.tmp,0),x=_.tmp[0],E=_.tmp[1],this.type==="encrypt"?this._encrypt(_,x,E,_.tmp,0):this._decrypt(_,x,E,_.tmp,0),x=_.tmp[0],E=_.tmp[1],a.writeUInt32BE(g,x,S),a.writeUInt32BE(g,E,S+4)},p.prototype._pad=function(M,b){for(var g=M.length-b,S=b;S<M.length;S++)M[S]=g;return!0},p.prototype._unpad=function(M){for(var b=M[M.length-1],g=M.length-b;g<M.length;g++)i.equal(M[g],b);return M.slice(0,M.length-b)},p.prototype._encrypt=function(M,b,g,S,_){for(var x=b,E=g,k=0;k<M.keys.length;k+=2){var B=M.keys[k],T=M.keys[k+1];a.expand(E,M.tmp,0),B^=M.tmp[0],T^=M.tmp[1];var C=a.substitute(B,T),P=a.permute(C),G=E;E=(x^P)>>>0,x=G}a.rip(E,x,S,_)},p.prototype._decrypt=function(M,b,g,S,_){for(var x=g,E=b,k=M.keys.length-2;k>=0;k-=2){var B=M.keys[k],T=M.keys[k+1];a.expand(x,M.tmp,0),B^=M.tmp[0],T^=M.tmp[1];var C=a.substitute(B,T),P=a.permute(C),G=x;x=(E^P)>>>0,E=G}a.rip(x,E,S,_)},xm}var Em={},ew=!1;function hD(){if(ew)return Em;ew=!0;var i=Io(),s=Ye(),a={};function u(p){i.equal(p.length,8,"Invalid IV length"),this.iv=new Array(8);for(var m=0;m<this.iv.length;m++)this.iv[m]=p[m]}function n(p){function m(g){p.call(this,g),this._cbcInit()}s(m,p);for(var y=Object.keys(a),M=0;M<y.length;M++){var b=y[M];m.prototype[b]=a[b]}return m.create=function(S){return new m(S)},m}return Em.instantiate=n,a._cbcInit=function(){var m=new u(this.options.iv);this._cbcState=m},a._update=function(m,y,M,b){var g=this._cbcState,S=this.constructor.super_.prototype,_=g.iv;if(this.type==="encrypt"){for(var x=0;x<this.blockSize;x++)_[x]^=m[y+x];S._update.call(this,_,0,M,b);for(var x=0;x<this.blockSize;x++)_[x]=M[b+x]}else{S._update.call(this,m,y,M,b);for(var x=0;x<this.blockSize;x++)M[b+x]^=_[x];for(var x=0;x<this.blockSize;x++)_[x]=m[y+x]}},Em}var Am={},rw=!1;function fD(){if(rw)return Am;rw=!0;var i=Io(),s=Ye(),a=gb(),u=tE();function n(m,y){i.equal(y.length,24,"Invalid key length");var M=y.slice(0,8),b=y.slice(8,16),g=y.slice(16,24);m==="encrypt"?this.ciphers=[u.create({type:"encrypt",key:M}),u.create({type:"decrypt",key:b}),u.create({type:"encrypt",key:g})]:this.ciphers=[u.create({type:"decrypt",key:g}),u.create({type:"encrypt",key:b}),u.create({type:"decrypt",key:M})]}function p(m){a.call(this,m);var y=new n(this.type,this.options.key);this._edeState=y}return s(p,a),Am=p,p.create=function(y){return new p(y)},p.prototype._update=function(y,M,b,g){var S=this._edeState;S.ciphers[0]._update(y,M,b,g),S.ciphers[1]._update(b,g,b,g),S.ciphers[2]._update(b,g,b,g)},p.prototype._pad=u.prototype._pad,p.prototype._unpad=u.prototype._unpad,Am}var ps={},iw=!1;function uD(){return iw||(iw=!0,ps.utils=Qx(),ps.Cipher=gb(),ps.DES=tE(),ps.CBC=hD(),ps.EDE=fD()),ps}var km={},nw=!1,Vl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function lD(){if(nw)return km;nw=!0;var i=za(),s=uD(),a=Ye(),u=Qe().Buffer,n={"des-ede3-cbc":s.CBC.instantiate(s.EDE),"des-ede3":s.EDE,"des-ede-cbc":s.CBC.instantiate(s.EDE),"des-ede":s.EDE,"des-cbc":s.CBC.instantiate(s.DES),"des-ecb":s.DES};n.des=n["des-cbc"],n.des3=n["des-ede3-cbc"],km=p,a(p,i);function p(m){i.call(this||Vl);var y=m.mode.toLowerCase(),M=n[y],b;m.decrypt?b="decrypt":b="encrypt";var g=m.key;u.isBuffer(g)||(g=u.from(g)),(y==="des-ede"||y==="des-ede-cbc")&&(g=u.concat([g,g.slice(0,8)]));var S=m.iv;u.isBuffer(S)||(S=u.from(S)),(this||Vl)._des=M.create({key:g,iv:S,type:b})}return p.prototype._update=function(m){return u.from((this||Vl)._des.update(m))},p.prototype._final=function(){return u.from((this||Vl)._des.final())},km}var Wl={},ow=!1;function cD(){return ow||(ow=!0,Wl.encrypt=function(i,s){return i._cipher.encryptBlock(s)},Wl.decrypt=function(i,s){return i._cipher.decryptBlock(s)}),Wl}var Rm={},aw=!1;function uu(){if(aw)return Rm;aw=!0;var i=Pe.Buffer;return Rm=function(a,u){for(var n=Math.min(a.length,u.length),p=new i(n),m=0;m<n;++m)p[m]=a[m]^u[m];return p},Rm}var Xl={},sw=!1;function dD(){if(sw)return Xl;sw=!0;var i=uu();return Xl.encrypt=function(s,a){var u=i(a,s._prev);return s._prev=s._cipher.encryptBlock(u),s._prev},Xl.decrypt=function(s,a){var u=s._prev;s._prev=a;var n=s._cipher.decryptBlock(a);return i(n,u)},Xl}var Bm={},hw=!1;function pD(){if(hw)return Bm;hw=!0;var i=Qe().Buffer,s=uu();function a(u,n,p){var m=n.length,y=s(n,u._cache);return u._cache=u._cache.slice(m),u._prev=i.concat([u._prev,p?n:y]),y}return Bm.encrypt=function(u,n,p){for(var m=i.allocUnsafe(0),y;n.length;)if(u._cache.length===0&&(u._cache=u._cipher.encryptBlock(u._prev),u._prev=i.allocUnsafe(0)),u._cache.length<=n.length)y=u._cache.length,m=i.concat([m,a(u,n.slice(0,y),p)]),n=n.slice(y);else{m=i.concat([m,a(u,n,p)]);break}return m},Bm}var Tm={},fw=!1;function mD(){if(fw)return Tm;fw=!0;var i=Qe().Buffer;function s(a,u,n){var p=a._cipher.encryptBlock(a._prev),m=p[0]^u;return a._prev=i.concat([a._prev.slice(1),i.from([n?u:m])]),m}return Tm.encrypt=function(a,u,n){for(var p=u.length,m=i.allocUnsafe(p),y=-1;++y<p;)m[y]=s(a,u[y],n);return m},Tm}var $m={},uw=!1;function vD(){if(uw)return $m;uw=!0;var i=Qe().Buffer;function s(u,n,p){for(var m,y=-1,M=8,b=0,g,S;++y<M;)m=u._cipher.encryptBlock(u._prev),g=n&1<<7-y?128:0,S=m[0]^g,b+=(S&128)>>y%8,u._prev=a(u._prev,p?g:S);return b}function a(u,n){var p=u.length,m=-1,y=i.allocUnsafe(u.length);for(u=i.concat([u,i.from([n])]);++m<p;)y[m]=u[m]<<1|u[m+1]>>7;return y}return $m.encrypt=function(u,n,p){for(var m=n.length,y=i.allocUnsafe(m),M=-1;++M<m;)y[M]=s(u,n[M],p);return y},$m}var Im={},lw=!1;function gD(){if(lw)return Im;lw=!0;var i=Pe.Buffer,s=uu();function a(u){return u._prev=u._cipher.encryptBlock(u._prev),u._prev}return Im.encrypt=function(u,n){for(;u._cache.length<n.length;)u._cache=i.concat([u._cache,a(u)]);var p=u._cache.slice(0,n.length);return u._cache=u._cache.slice(n.length),s(n,p)},Im}var Cm={},cw=!1;function eE(){if(cw)return Cm;cw=!0;function i(s){for(var a=s.length,u;a--;)if(u=s.readUInt8(a),u===255)s.writeUInt8(0,a);else{u++,s.writeUInt8(u,a);break}}return Cm=i,Cm}var Pm={},dw=!1;function pw(){if(dw)return Pm;dw=!0;var i=uu(),s=Qe().Buffer,a=eE();function u(p){var m=p._cipher.encryptBlockRaw(p._prev);return a(p._prev),m}var n=16;return Pm.encrypt=function(p,m){var y=Math.ceil(m.length/n),M=p._cache.length;p._cache=s.concat([p._cache,s.allocUnsafe(y*n)]);for(var b=0;b<y;b++){var g=u(p),S=M+b*n;p._cache.writeUInt32BE(g[0],S+0),p._cache.writeUInt32BE(g[1],S+4),p._cache.writeUInt32BE(g[2],S+8),p._cache.writeUInt32BE(g[3],S+12)}var _=p._cache.slice(0,m.length);return p._cache=p._cache.slice(m.length),i(m,_)},Pm}var rE={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},Dm={},mw=!1;function bb(){if(mw)return Dm;mw=!0;var i={ECB:cD(),CBC:dD(),CFB:pD(),CFB8:mD(),CFB1:vD(),OFB:gD(),CTR:pw(),GCM:pw()},s=rE;for(var a in s)s[a].module=i[s[a].mode];return Dm=s,Dm}var Lm={},vw=!1,wn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function lc(){if(vw)return Lm;vw=!0;var i=Qe().Buffer;function s(y){i.isBuffer(y)||(y=i.from(y));for(var M=y.length/4|0,b=new Array(M),g=0;g<M;g++)b[g]=y.readUInt32BE(g*4);return b}function a(y){for(var M=0;M<y.length;y++)y[M]=0}function u(y,M,b,g,S){for(var _=b[0],x=b[1],E=b[2],k=b[3],B=y[0]^M[0],T=y[1]^M[1],C=y[2]^M[2],P=y[3]^M[3],G,U,V,I,D=4,z=1;z<S;z++)G=_[B>>>24]^x[T>>>16&255]^E[C>>>8&255]^k[P&255]^M[D++],U=_[T>>>24]^x[C>>>16&255]^E[P>>>8&255]^k[B&255]^M[D++],V=_[C>>>24]^x[P>>>16&255]^E[B>>>8&255]^k[T&255]^M[D++],I=_[P>>>24]^x[B>>>16&255]^E[T>>>8&255]^k[C&255]^M[D++],B=G,T=U,C=V,P=I;return G=(g[B>>>24]<<24|g[T>>>16&255]<<16|g[C>>>8&255]<<8|g[P&255])^M[D++],U=(g[T>>>24]<<24|g[C>>>16&255]<<16|g[P>>>8&255]<<8|g[B&255])^M[D++],V=(g[C>>>24]<<24|g[P>>>16&255]<<16|g[B>>>8&255]<<8|g[T&255])^M[D++],I=(g[P>>>24]<<24|g[B>>>16&255]<<16|g[T>>>8&255]<<8|g[C&255])^M[D++],G=G>>>0,U=U>>>0,V=V>>>0,I=I>>>0,[G,U,V,I]}var n=[0,1,2,4,8,16,32,64,128,27,54],p=function(){for(var y=new Array(256),M=0;M<256;M++)M<128?y[M]=M<<1:y[M]=M<<1^283;for(var b=[],g=[],S=[[],[],[],[]],_=[[],[],[],[]],x=0,E=0,k=0;k<256;++k){var B=E^E<<1^E<<2^E<<3^E<<4;B=B>>>8^B&255^99,b[x]=B,g[B]=x;var T=y[x],C=y[T],P=y[C],G=y[B]*257^B*16843008;S[0][x]=G<<24|G>>>8,S[1][x]=G<<16|G>>>16,S[2][x]=G<<8|G>>>24,S[3][x]=G,G=P*16843009^C*65537^T*257^x*16843008,_[0][B]=G<<24|G>>>8,_[1][B]=G<<16|G>>>16,_[2][B]=G<<8|G>>>24,_[3][B]=G,x===0?x=E=1:(x=T^y[y[y[P^T]]],E^=y[y[E]])}return{SBOX:b,INV_SBOX:g,SUB_MIX:S,INV_SUB_MIX:_}}();function m(y){(this||wn)._key=s(y),this._reset()}return m.blockSize=4*4,m.keySize=256/8,m.prototype.blockSize=m.blockSize,m.prototype.keySize=m.keySize,m.prototype._reset=function(){for(var y=(this||wn)._key,M=y.length,b=M+6,g=(b+1)*4,S=[],_=0;_<M;_++)S[_]=y[_];for(_=M;_<g;_++){var x=S[_-1];_%M===0?(x=x<<8|x>>>24,x=p.SBOX[x>>>24]<<24|p.SBOX[x>>>16&255]<<16|p.SBOX[x>>>8&255]<<8|p.SBOX[x&255],x^=n[_/M|0]<<24):M>6&&_%M===4&&(x=p.SBOX[x>>>24]<<24|p.SBOX[x>>>16&255]<<16|p.SBOX[x>>>8&255]<<8|p.SBOX[x&255]),S[_]=S[_-M]^x}for(var E=[],k=0;k<g;k++){var B=g-k,T=S[B-(k%4?0:4)];k<4||B<=4?E[k]=T:E[k]=p.INV_SUB_MIX[0][p.SBOX[T>>>24]]^p.INV_SUB_MIX[1][p.SBOX[T>>>16&255]]^p.INV_SUB_MIX[2][p.SBOX[T>>>8&255]]^p.INV_SUB_MIX[3][p.SBOX[T&255]]}(this||wn)._nRounds=b,(this||wn)._keySchedule=S,(this||wn)._invKeySchedule=E},m.prototype.encryptBlockRaw=function(y){return y=s(y),u(y,(this||wn)._keySchedule,p.SUB_MIX,p.SBOX,(this||wn)._nRounds)},m.prototype.encryptBlock=function(y){var M=this.encryptBlockRaw(y),b=i.allocUnsafe(16);return b.writeUInt32BE(M[0],0),b.writeUInt32BE(M[1],4),b.writeUInt32BE(M[2],8),b.writeUInt32BE(M[3],12),b},m.prototype.decryptBlock=function(y){y=s(y);var M=y[1];y[1]=y[3],y[3]=M;var b=u(y,(this||wn)._invKeySchedule,p.INV_SUB_MIX,p.INV_SBOX,(this||wn)._nRounds),g=i.allocUnsafe(16);return g.writeUInt32BE(b[0],0),g.writeUInt32BE(b[3],4),g.writeUInt32BE(b[2],8),g.writeUInt32BE(b[1],12),g},m.prototype.scrub=function(){a((this||wn)._keySchedule),a((this||wn)._invKeySchedule),a((this||wn)._key)},Lm.AES=m,Lm}var Om={},gw=!1,xi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function bD(){if(gw)return Om;gw=!0;var i=Qe().Buffer,s=i.alloc(16,0);function a(p){return[p.readUInt32BE(0),p.readUInt32BE(4),p.readUInt32BE(8),p.readUInt32BE(12)]}function u(p){var m=i.allocUnsafe(16);return m.writeUInt32BE(p[0]>>>0,0),m.writeUInt32BE(p[1]>>>0,4),m.writeUInt32BE(p[2]>>>0,8),m.writeUInt32BE(p[3]>>>0,12),m}function n(p){(this||xi).h=p,(this||xi).state=i.alloc(16,0),(this||xi).cache=i.allocUnsafe(0)}return n.prototype.ghash=function(p){for(var m=-1;++m<p.length;)(this||xi).state[m]^=p[m];this._multiply()},n.prototype._multiply=function(){for(var p=a((this||xi).h),m=[0,0,0,0],y,M,b,g=-1;++g<128;){for(M=((this||xi).state[~~(g/8)]&1<<7-g%8)!==0,M&&(m[0]^=p[0],m[1]^=p[1],m[2]^=p[2],m[3]^=p[3]),b=(p[3]&1)!==0,y=3;y>0;y--)p[y]=p[y]>>>1|(p[y-1]&1)<<31;p[0]=p[0]>>>1,b&&(p[0]=p[0]^225<<24)}(this||xi).state=u(m)},n.prototype.update=function(p){(this||xi).cache=i.concat([(this||xi).cache,p]);for(var m;(this||xi).cache.length>=16;)m=(this||xi).cache.slice(0,16),(this||xi).cache=(this||xi).cache.slice(16),this.ghash(m)},n.prototype.final=function(p,m){return(this||xi).cache.length&&this.ghash(i.concat([(this||xi).cache,s],16)),this.ghash(u([0,p,0,m])),(this||xi).state},Om=n,Om}var Nm={},bw=!1,je=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function iE(){if(bw)return Nm;bw=!0;var i=lc(),s=Qe().Buffer,a=za(),u=Ye(),n=bD(),p=uu(),m=eE();function y(g,S){var _=0;g.length!==S.length&&_++;for(var x=Math.min(g.length,S.length),E=0;E<x;++E)_+=g[E]^S[E];return _}function M(g,S,_){if(S.length===12)return g._finID=s.concat([S,s.from([0,0,0,1])]),s.concat([S,s.from([0,0,0,2])]);var x=new n(_),E=S.length,k=E%16;x.update(S),k&&(k=16-k,x.update(s.alloc(k,0))),x.update(s.alloc(8,0));var B=E*8,T=s.alloc(8);T.writeUIntBE(B,0,8),x.update(T),g._finID=x.state;var C=s.from(g._finID);return m(C),C}function b(g,S,_,x){a.call(this||je);var E=s.alloc(4,0);(this||je)._cipher=new i.AES(S);var k=(this||je)._cipher.encryptBlock(E);(this||je)._ghash=new n(k),_=M(this||je,_,k),(this||je)._prev=s.from(_),(this||je)._cache=s.allocUnsafe(0),(this||je)._secCache=s.allocUnsafe(0),(this||je)._decrypt=x,(this||je)._alen=0,(this||je)._len=0,(this||je)._mode=g,(this||je)._authTag=null,(this||je)._called=!1}return u(b,a),b.prototype._update=function(g){if(!(this||je)._called&&(this||je)._alen){var S=16-(this||je)._alen%16;S<16&&(S=s.alloc(S,0),(this||je)._ghash.update(S))}(this||je)._called=!0;var _=(this||je)._mode.encrypt(this||je,g);return(this||je)._decrypt?(this||je)._ghash.update(g):(this||je)._ghash.update(_),(this||je)._len+=g.length,_},b.prototype._final=function(){if((this||je)._decrypt&&!(this||je)._authTag)throw new Error("Unsupported state or unable to authenticate data");var g=p((this||je)._ghash.final((this||je)._alen*8,(this||je)._len*8),(this||je)._cipher.encryptBlock((this||je)._finID));if((this||je)._decrypt&&y(g,(this||je)._authTag))throw new Error("Unsupported state or unable to authenticate data");(this||je)._authTag=g,(this||je)._cipher.scrub()},b.prototype.getAuthTag=function(){if((this||je)._decrypt||!s.isBuffer((this||je)._authTag))throw new Error("Attempting to get auth tag in unsupported state");return(this||je)._authTag},b.prototype.setAuthTag=function(S){if(!(this||je)._decrypt)throw new Error("Attempting to set auth tag in unsupported state");(this||je)._authTag=S},b.prototype.setAAD=function(S){if((this||je)._called)throw new Error("Attempting to set AAD in unsupported state");(this||je)._ghash.update(S),(this||je)._alen+=S.length},Nm=b,Nm}var qm={},yw=!1,Zn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function nE(){if(yw)return qm;yw=!0;var i=lc(),s=Qe().Buffer,a=za(),u=Ye();function n(p,m,y,M){a.call(this||Zn),(this||Zn)._cipher=new i.AES(m),(this||Zn)._prev=s.from(y),(this||Zn)._cache=s.allocUnsafe(0),(this||Zn)._secCache=s.allocUnsafe(0),(this||Zn)._decrypt=M,(this||Zn)._mode=p}return u(n,a),n.prototype._update=function(p){return(this||Zn)._mode.encrypt(this||Zn,p,(this||Zn)._decrypt)},n.prototype._final=function(){(this||Zn)._cipher.scrub()},qm=n,qm}var zm={},ww=!1;function cc(){if(ww)return zm;ww=!0;var i=Qe().Buffer,s=db();function a(u,n,p,m){if(i.isBuffer(u)||(u=i.from(u,"binary")),n&&(i.isBuffer(n)||(n=i.from(n,"binary")),n.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var y=p/8,M=i.alloc(y),b=i.alloc(m||0),g=i.alloc(0);y>0||m>0;){var S=new s;S.update(g),S.update(u),n&&S.update(n),g=S.digest();var _=0;if(y>0){var x=M.length-y;_=Math.min(y,g.length),g.copy(M,x,0,_),y-=_}if(_<g.length&&m>0){var E=b.length-m,k=Math.min(m,g.length-_);g.copy(b,E,_,_+k),m-=k}}return g.fill(0),{key:M,iv:b}}return zm=a,zm}var Jl={},Mw=!1,Ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function yD(){if(Mw)return Jl;Mw=!0;var i=bb(),s=iE(),a=Qe().Buffer,u=nE(),n=za(),p=lc(),m=cc(),y=Ye();function M(x,E,k){n.call(this||Ar),(this||Ar)._cache=new g,(this||Ar)._cipher=new p.AES(E),(this||Ar)._prev=a.from(k),(this||Ar)._mode=x,(this||Ar)._autopadding=!0}y(M,n),M.prototype._update=function(x){(this||Ar)._cache.add(x);for(var E,k,B=[];E=(this||Ar)._cache.get();)k=(this||Ar)._mode.encrypt(this||Ar,E),B.push(k);return a.concat(B)};var b=a.alloc(16,16);M.prototype._final=function(){var x=(this||Ar)._cache.flush();if((this||Ar)._autopadding)return x=(this||Ar)._mode.encrypt(this||Ar,x),(this||Ar)._cipher.scrub(),x;if(!x.equals(b))throw(this||Ar)._cipher.scrub(),new Error("data not multiple of block length")},M.prototype.setAutoPadding=function(x){return(this||Ar)._autopadding=!!x,this||Ar};function g(){(this||Ar).cache=a.allocUnsafe(0)}g.prototype.add=function(x){(this||Ar).cache=a.concat([(this||Ar).cache,x])},g.prototype.get=function(){if((this||Ar).cache.length>15){var x=(this||Ar).cache.slice(0,16);return(this||Ar).cache=(this||Ar).cache.slice(16),x}return null},g.prototype.flush=function(){for(var x=16-(this||Ar).cache.length,E=a.allocUnsafe(x),k=-1;++k<x;)E.writeUInt8(x,k);return a.concat([(this||Ar).cache,E])};function S(x,E,k){var B=i[x.toLowerCase()];if(!B)throw new TypeError("invalid suite type");if(typeof E=="string"&&(E=a.from(E)),E.length!==B.key/8)throw new TypeError("invalid key length "+E.length);if(typeof k=="string"&&(k=a.from(k)),B.mode!=="GCM"&&k.length!==B.iv)throw new TypeError("invalid iv length "+k.length);return B.type==="stream"?new u(B.module,E,k):B.type==="auth"?new s(B.module,E,k):new M(B.module,E,k)}function _(x,E){var k=i[x.toLowerCase()];if(!k)throw new TypeError("invalid suite type");var B=m(E,!1,k.key,k.iv);return S(x,B.key,B.iv)}return Jl.createCipheriv=S,Jl.createCipher=_,Jl}var Yl={},_w=!1,lr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function wD(){if(_w)return Yl;_w=!0;var i=iE(),s=Qe().Buffer,a=bb(),u=nE(),n=za(),p=lc(),m=cc(),y=Ye();function M(x,E,k){n.call(this||lr),(this||lr)._cache=new b,(this||lr)._last=void 0,(this||lr)._cipher=new p.AES(E),(this||lr)._prev=s.from(k),(this||lr)._mode=x,(this||lr)._autopadding=!0}y(M,n),M.prototype._update=function(x){(this||lr)._cache.add(x);for(var E,k,B=[];E=(this||lr)._cache.get((this||lr)._autopadding);)k=(this||lr)._mode.decrypt(this||lr,E),B.push(k);return s.concat(B)},M.prototype._final=function(){var x=(this||lr)._cache.flush();if((this||lr)._autopadding)return g((this||lr)._mode.decrypt(this||lr,x));if(x)throw new Error("data not multiple of block length")},M.prototype.setAutoPadding=function(x){return(this||lr)._autopadding=!!x,this||lr};function b(){(this||lr).cache=s.allocUnsafe(0)}b.prototype.add=function(x){(this||lr).cache=s.concat([(this||lr).cache,x])},b.prototype.get=function(x){var E;if(x){if((this||lr).cache.length>16)return E=(this||lr).cache.slice(0,16),(this||lr).cache=(this||lr).cache.slice(16),E}else if((this||lr).cache.length>=16)return E=(this||lr).cache.slice(0,16),(this||lr).cache=(this||lr).cache.slice(16),E;return null},b.prototype.flush=function(){if((this||lr).cache.length)return(this||lr).cache};function g(x){var E=x[15];if(E<1||E>16)throw new Error("unable to decrypt data");for(var k=-1;++k<E;)if(x[k+(16-E)]!==E)throw new Error("unable to decrypt data");if(E!==16)return x.slice(0,16-E)}function S(x,E,k){var B=a[x.toLowerCase()];if(!B)throw new TypeError("invalid suite type");if(typeof k=="string"&&(k=s.from(k)),B.mode!=="GCM"&&k.length!==B.iv)throw new TypeError("invalid iv length "+k.length);if(typeof E=="string"&&(E=s.from(E)),E.length!==B.key/8)throw new TypeError("invalid key length "+E.length);return B.type==="stream"?new u(B.module,E,k,!0):B.type==="auth"?new i(B.module,E,k,!0):new M(B.module,E,k)}function _(x,E){var k=a[x.toLowerCase()];if(!k)throw new TypeError("invalid suite type");var B=m(E,!1,k.key,k.iv);return S(x,B.key,B.iv)}return Yl.createDecipher=_,Yl.createDecipheriv=S,Yl}var Mn={},Sw=!1;function yb(){if(Sw)return Mn;Sw=!0;var i=yD(),s=wD(),a=rE;function u(){return Object.keys(a)}return Mn.createCipher=Mn.Cipher=i.createCipher,Mn.createCipheriv=Mn.Cipheriv=i.createCipheriv,Mn.createDecipher=Mn.Decipher=s.createDecipher,Mn.createDecipheriv=Mn.Decipheriv=s.createDecipheriv,Mn.listCiphers=Mn.getCiphers=u,Mn}var bo={},xw=!1;function MD(){return xw||(xw=!0,bo["des-ecb"]={key:8,iv:0},bo["des-cbc"]=bo.des={key:8,iv:8},bo["des-ede3-cbc"]=bo.des3={key:24,iv:8},bo["des-ede3"]={key:24,iv:0},bo["des-ede-cbc"]={key:16,iv:8},bo["des-ede"]={key:16,iv:0}),bo}var _n={},Ew=!1;function _D(){if(Ew)return _n;Ew=!0;var i=lD(),s=yb(),a=bb(),u=MD(),n=cc();function p(g,S){g=g.toLowerCase();var _,x;if(a[g])_=a[g].key,x=a[g].iv;else if(u[g])_=u[g].key*8,x=u[g].iv;else throw new TypeError("invalid suite type");var E=n(S,!1,_,x);return y(g,E.key,E.iv)}function m(g,S){g=g.toLowerCase();var _,x;if(a[g])_=a[g].key,x=a[g].iv;else if(u[g])_=u[g].key*8,x=u[g].iv;else throw new TypeError("invalid suite type");var E=n(S,!1,_,x);return M(g,E.key,E.iv)}function y(g,S,_){if(g=g.toLowerCase(),a[g])return s.createCipheriv(g,S,_);if(u[g])return new i({key:S,iv:_,mode:g});throw new TypeError("invalid suite type")}function M(g,S,_){if(g=g.toLowerCase(),a[g])return s.createDecipheriv(g,S,_);if(u[g])return new i({key:S,iv:_,mode:g,decrypt:!0});throw new TypeError("invalid suite type")}function b(){return Object.keys(u).concat(s.getCiphers())}return _n.createCipher=_n.Cipher=p,_n.createCipheriv=_n.Cipheriv=y,_n.createDecipher=_n.Decipher=m,_n.createDecipheriv=_n.Decipheriv=M,_n.listCiphers=_n.getCiphers=b,_n}var oE={},Aw=!1,Um={exports:oE},rt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function aE(){return Aw||(Aw=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||rt).negative=0,(this||rt).words=null,(this||rt).length=0,(this||rt).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Pe.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||rt).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||rt).negative=1,t=-t),t<67108864?((this||rt).words=[t&67108863],(this||rt).length=1):t<4503599627370496?((this||rt).words=[t&67108863,t/67108864&67108863],(this||rt).length=2):(a(t<9007199254740992),(this||rt).words=[t&67108863,t/67108864&67108863,1],(this||rt).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||rt).words=[0],(this||rt).length=1,this||rt;(this||rt).length=Math.ceil(t.length/3),(this||rt).words=new Array((this||rt).length);for(var h=0;h<(this||rt).length;h++)(this||rt).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||rt).words[f]|=v<<w&67108863,(this||rt).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||rt).words[f]|=v<<w&67108863,(this||rt).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||rt).length=Math.ceil((t.length-r)/6),(this||rt).words=new Array((this||rt).length);for(var h=0;h<(this||rt).length;h++)(this||rt).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||rt).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||rt).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||rt).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||rt).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||rt).words=[0],(this||rt).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||rt).words[0]+e<67108864?(this||rt).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||rt).words[0]+e<67108864?(this||rt).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||rt).length);for(var r=0;r<(this||rt).length;r++)t.words[r]=(this||rt).words[r];t.length=(this||rt).length,t.negative=(this||rt).negative,t.red=(this||rt).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||rt).length<t;)(this||rt).words[(this||rt).length++]=0;return this||rt},n.prototype.strip=function(){for(;(this||rt).length>1&&(this||rt).words[(this||rt).length-1]===0;)(this||rt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||rt).length===1&&(this||rt).words[0]===0&&((this||rt).negative=0),this||rt},n.prototype.inspect=function(){return((this||rt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||rt).length;v++){var w=(this||rt).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||rt).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||rt).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||rt).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||rt).words[0];return(this||rt).length===2?t+=(this||rt).words[1]*67108864:(this||rt).length===3&&(this||rt).words[2]===1?t+=4503599627370496+(this||rt).words[1]*67108864:(this||rt).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||rt).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||rt).words[(this||rt).length-1],r=this._countBits(t);return((this||rt).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||rt).length;r++){var o=this._zeroBits((this||rt).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||rt).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||rt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||rt).negative^=1),this||rt},n.prototype.iuor=function(t){for(;(this||rt).length<t.length;)(this||rt).words[(this||rt).length++]=0;for(var r=0;r<t.length;r++)(this||rt).words[r]=(this||rt).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||rt).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||rt).length>t.length?this.clone().ior(t):t.clone().ior(this||rt)},n.prototype.uor=function(t){return(this||rt).length>t.length?this.clone().iuor(t):t.clone().iuor(this||rt)},n.prototype.iuand=function(t){var r;(this||rt).length>t.length?r=t:r=this||rt;for(var o=0;o<r.length;o++)(this||rt).words[o]=(this||rt).words[o]&t.words[o];return(this||rt).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||rt).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||rt).length>t.length?this.clone().iand(t):t.clone().iand(this||rt)},n.prototype.uand=function(t){return(this||rt).length>t.length?this.clone().iuand(t):t.clone().iuand(this||rt)},n.prototype.iuxor=function(t){var r,o;(this||rt).length>t.length?(r=this||rt,o=t):(r=t,o=this||rt);for(var h=0;h<o.length;h++)(this||rt).words[h]=r.words[h]^o.words[h];if((this||rt)!==r)for(;h<r.length;h++)(this||rt).words[h]=r.words[h];return(this||rt).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||rt).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||rt).length>t.length?this.clone().ixor(t):t.clone().ixor(this||rt)},n.prototype.uxor=function(t){return(this||rt).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||rt)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||rt).words[h]=~(this||rt).words[h]&67108863;return o>0&&((this||rt).words[h]=~(this||rt).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||rt).words[o]=(this||rt).words[o]|1<<h:(this||rt).words[o]=(this||rt).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||rt).negative!==0&&t.negative===0)return(this||rt).negative=0,r=this.isub(t),(this||rt).negative^=1,this._normSign();if((this||rt).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||rt).length>t.length?(o=this||rt,h=t):(o=t,h=this||rt);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||rt).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||rt).words[v]=r&67108863,f=r>>>26;if((this||rt).length=o.length,f!==0)(this||rt).words[(this||rt).length]=f,(this||rt).length++;else if(o!==(this||rt))for(;v<o.length;v++)(this||rt).words[v]=o.words[v];return this||rt},n.prototype.add=function(t){var r;return t.negative!==0&&(this||rt).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||rt).negative!==0?((this||rt).negative=0,r=t.sub(this||rt),(this||rt).negative=1,r):(this||rt).length>t.length?this.clone().iadd(t):t.clone().iadd(this||rt)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||rt).negative!==0)return(this||rt).negative=0,this.iadd(t),(this||rt).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||rt).negative=0,(this||rt).length=1,(this||rt).words[0]=0,this||rt;var h,f;o>0?(h=this||rt,f=t):(h=t,f=this||rt);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||rt).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||rt).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||rt))for(;w<h.length;w++)(this||rt).words[w]=h.words[w];return(this||rt).length=Math.max((this||rt).length,w),h!==(this||rt)&&((this||rt).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||rt).length+t.length;return(this||rt).length===10&&t.length===10?o=E(this||rt,t,r):h<63?o=x(this||rt,t,r):h<1024?o=k(this||rt,t,r):o=B(this||rt,t,r),o};function T(d,t){(this||rt).x=d,(this||rt).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||rt).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||rt).length+t.length),B(this||rt,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||rt)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||rt).length;o++){var h=((this||rt).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||rt).words[o]=f&67108863}return r!==0&&((this||rt).words[o]=r,(this||rt).length++),this||rt},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||rt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||rt,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||rt).length;f++){var w=(this||rt).words[f]&h,l=((this||rt).words[f]|0)-w<<r;(this||rt).words[f]=l|v,v=w>>>26-r}v&&((this||rt).words[f]=v,(this||rt).length++)}if(o!==0){for(f=(this||rt).length-1;f>=0;f--)(this||rt).words[f+o]=(this||rt).words[f];for(f=0;f<o;f++)(this||rt).words[f]=0;(this||rt).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||rt).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||rt).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||rt).words[e];l.length=v}if(v!==0)if((this||rt).length>v)for((this||rt).length-=v,e=0;e<(this||rt).length;e++)(this||rt).words[e]=(this||rt).words[e+v];else(this||rt).words[0]=0,(this||rt).length=1;var c=0;for(e=(this||rt).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||rt).words[e]|0;(this||rt).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||rt).length===0&&((this||rt).words[0]=0,(this||rt).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||rt).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||rt).length<=o)return!1;var f=(this||rt).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||rt).negative===0,"imaskn works only with positive numbers"),(this||rt).length<=o)return this||rt;if(r!==0&&o++,(this||rt).length=Math.min(o,(this||rt).length),r!==0){var h=67108863^67108863>>>r<<r;(this||rt).words[(this||rt).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||rt).negative!==0?(this||rt).length===1&&((this||rt).words[0]|0)<t?((this||rt).words[0]=t-((this||rt).words[0]|0),(this||rt).negative=0,this||rt):((this||rt).negative=0,this.isubn(t),(this||rt).negative=1,this||rt):this._iaddn(t)},n.prototype._iaddn=function(t){(this||rt).words[0]+=t;for(var r=0;r<(this||rt).length&&(this||rt).words[r]>=67108864;r++)(this||rt).words[r]-=67108864,r===(this||rt).length-1?(this||rt).words[r+1]=1:(this||rt).words[r+1]++;return(this||rt).length=Math.max((this||rt).length,r+1),this||rt},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||rt).negative!==0)return(this||rt).negative=0,this.iaddn(t),(this||rt).negative=1,this||rt;if((this||rt).words[0]-=t,(this||rt).length===1&&(this||rt).words[0]<0)(this||rt).words[0]=-(this||rt).words[0],(this||rt).negative=1;else for(var r=0;r<(this||rt).length&&(this||rt).words[r]<0;r++)(this||rt).words[r]+=67108864,(this||rt).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||rt).negative=0,this||rt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||rt).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||rt).words[f+o]=v&67108863}for(;f<(this||rt).length-o;f++)v=((this||rt).words[f+o]|0)+w,w=v>>26,(this||rt).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||rt).length;f++)v=-((this||rt).words[f]|0)+w,w=v>>26,(this||rt).words[f]=v&67108863;return(this||rt).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||rt).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||rt).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||rt).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||rt).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||rt).length||this.cmp(t)<0?{div:new n(0),mod:this||rt}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||rt).length-1;h>=0;h--)o=(r*o+((this||rt).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||rt).length-1;o>=0;o--){var h=((this||rt).words[o]|0)+r*67108864;(this||rt).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||rt,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||rt,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||rt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||rt).words[0]&1)===1},n.prototype.andln=function(t){return(this||rt).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||rt).length<=o)return this._expand(o+1),(this||rt).words[o]|=h,this||rt;for(var f=h,v=o;f!==0&&v<(this||rt).length;v++){var w=(this||rt).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||rt).words[v]=w}return f!==0&&((this||rt).words[v]=f,(this||rt).length++),this||rt},n.prototype.isZero=function(){return(this||rt).length===1&&(this||rt).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||rt).negative!==0&&!r)return-1;if((this||rt).negative===0&&r)return 1;this.strip();var o;if((this||rt).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||rt).words[0]|0;o=h===t?0:h<t?-1:1}return(this||rt).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||rt).negative!==0&&t.negative===0)return-1;if((this||rt).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||rt).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||rt).length>t.length)return 1;if((this||rt).length<t.length)return-1;for(var r=0,o=(this||rt).length-1;o>=0;o--){var h=(this||rt).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||rt).red,"Already a number in reduction context"),a((this||rt).negative===0,"red works only with positives"),t.convertTo(this||rt)._forceRed(t)},n.prototype.fromRed=function(){return a((this||rt).red,"fromRed works only with numbers in reduction context"),(this||rt).red.convertFrom(this||rt)},n.prototype._forceRed=function(t){return(this||rt).red=t,this||rt},n.prototype.forceRed=function(t){return a(!(this||rt).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||rt).red,"redAdd works only with red numbers"),(this||rt).red.add(this||rt,t)},n.prototype.redIAdd=function(t){return a((this||rt).red,"redIAdd works only with red numbers"),(this||rt).red.iadd(this||rt,t)},n.prototype.redSub=function(t){return a((this||rt).red,"redSub works only with red numbers"),(this||rt).red.sub(this||rt,t)},n.prototype.redISub=function(t){return a((this||rt).red,"redISub works only with red numbers"),(this||rt).red.isub(this||rt,t)},n.prototype.redShl=function(t){return a((this||rt).red,"redShl works only with red numbers"),(this||rt).red.shl(this||rt,t)},n.prototype.redMul=function(t){return a((this||rt).red,"redMul works only with red numbers"),(this||rt).red._verify2(this||rt,t),(this||rt).red.mul(this||rt,t)},n.prototype.redIMul=function(t){return a((this||rt).red,"redMul works only with red numbers"),(this||rt).red._verify2(this||rt,t),(this||rt).red.imul(this||rt,t)},n.prototype.redSqr=function(){return a((this||rt).red,"redSqr works only with red numbers"),(this||rt).red._verify1(this||rt),(this||rt).red.sqr(this||rt)},n.prototype.redISqr=function(){return a((this||rt).red,"redISqr works only with red numbers"),(this||rt).red._verify1(this||rt),(this||rt).red.isqr(this||rt)},n.prototype.redSqrt=function(){return a((this||rt).red,"redSqrt works only with red numbers"),(this||rt).red._verify1(this||rt),(this||rt).red.sqrt(this||rt)},n.prototype.redInvm=function(){return a((this||rt).red,"redInvm works only with red numbers"),(this||rt).red._verify1(this||rt),(this||rt).red.invm(this||rt)},n.prototype.redNeg=function(){return a((this||rt).red,"redNeg works only with red numbers"),(this||rt).red._verify1(this||rt),(this||rt).red.neg(this||rt)},n.prototype.redPow=function(t){return a((this||rt).red&&!t.red,"redPow(normalNum)"),(this||rt).red._verify1(this||rt),(this||rt).red.pow(this||rt,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||rt).name=d,(this||rt).p=new n(t,16),(this||rt).n=(this||rt).p.bitLength(),(this||rt).k=new n(1).iushln((this||rt).n).isub((this||rt).p),(this||rt).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||rt).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||rt).tmp),r=this.imulK(r),r=r.iadd((this||rt).tmp),o=r.bitLength();while(o>(this||rt).n);var h=o<(this||rt).n?-1:r.ucmp((this||rt).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||rt).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||rt).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||rt).k)};function G(){P.call(this||rt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||rt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||rt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||rt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||rt).m=t.p,(this||rt).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||rt).m=d,(this||rt).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||rt).prime?(this||rt).prime.ireduce(t)._forceRed(this||rt):t.umod((this||rt).m)._forceRed(this||rt)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||rt).m.sub(t)._forceRed(this||rt)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||rt).m)>=0&&o.isub((this||rt).m),o._forceRed(this||rt)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||rt).m)>=0&&o.isub((this||rt).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||rt).m),o._forceRed(this||rt)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||rt).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||rt).m.andln(3);if(a(r%2===1),r===3){var o=(this||rt).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||rt).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||rt),w=v.redNeg(),l=(this||rt).m.subn(1).iushrn(1),e=(this||rt).m.bitLength();for(e=new n(2*e*e).toRed(this||rt);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||rt).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||rt);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||rt),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||rt).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||rt,d),(this||rt).shift=(this||rt).m.bitLength(),(this||rt).shift%26!==0&&((this||rt).shift+=26-(this||rt).shift%26),(this||rt).r=new n(1).iushln((this||rt).shift),(this||rt).r2=this.imod((this||rt).r.sqr()),(this||rt).rinv=(this||rt).r._invmp((this||rt).m),(this||rt).minv=(this||rt).rinv.mul((this||rt).r).isubn(1).div((this||rt).m),(this||rt).minv=(this||rt).minv.umod((this||rt).r),(this||rt).minv=(this||rt).r.sub((this||rt).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||rt).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||rt).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||rt).shift).mul((this||rt).minv).imaskn((this||rt).shift).mul((this||rt).m),f=o.isub(h).iushrn((this||rt).shift),v=f;return f.cmp((this||rt).m)>=0?v=f.isub((this||rt).m):f.cmpn(0)<0&&(v=f.iadd((this||rt).m)),v._forceRed(this||rt)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||rt);var o=t.mul(r),h=o.maskn((this||rt).shift).mul((this||rt).minv).imaskn((this||rt).shift).mul((this||rt).m),f=o.isub(h).iushrn((this||rt).shift),v=f;return f.cmp((this||rt).m)>=0?v=f.isub((this||rt).m):f.cmpn(0)<0&&(v=f.iadd((this||rt).m)),v._forceRed(this||rt)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||rt).m).mul((this||rt).r2));return r._forceRed(this||rt)}}(Um,oE)),Um.exports}var sE={},kw=!1,Fm={exports:sE},it=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function SD(){return kw||(kw=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||it).negative=0,(this||it).words=null,(this||it).length=0,(this||it).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Pe.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||it).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||it).negative=1,t=-t),t<67108864?((this||it).words=[t&67108863],(this||it).length=1):t<4503599627370496?((this||it).words=[t&67108863,t/67108864&67108863],(this||it).length=2):(a(t<9007199254740992),(this||it).words=[t&67108863,t/67108864&67108863,1],(this||it).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||it).words=[0],(this||it).length=1,this||it;(this||it).length=Math.ceil(t.length/3),(this||it).words=new Array((this||it).length);for(var h=0;h<(this||it).length;h++)(this||it).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||it).words[f]|=v<<w&67108863,(this||it).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||it).words[f]|=v<<w&67108863,(this||it).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||it).length=Math.ceil((t.length-r)/6),(this||it).words=new Array((this||it).length);for(var h=0;h<(this||it).length;h++)(this||it).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||it).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||it).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||it).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||it).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||it).words=[0],(this||it).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||it).words[0]+e<67108864?(this||it).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||it).words[0]+e<67108864?(this||it).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||it).length);for(var r=0;r<(this||it).length;r++)t.words[r]=(this||it).words[r];t.length=(this||it).length,t.negative=(this||it).negative,t.red=(this||it).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||it).length<t;)(this||it).words[(this||it).length++]=0;return this||it},n.prototype.strip=function(){for(;(this||it).length>1&&(this||it).words[(this||it).length-1]===0;)(this||it).length--;return this._normSign()},n.prototype._normSign=function(){return(this||it).length===1&&(this||it).words[0]===0&&((this||it).negative=0),this||it},n.prototype.inspect=function(){return((this||it).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||it).length;v++){var w=(this||it).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||it).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||it).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||it).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||it).words[0];return(this||it).length===2?t+=(this||it).words[1]*67108864:(this||it).length===3&&(this||it).words[2]===1?t+=4503599627370496+(this||it).words[1]*67108864:(this||it).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||it).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||it).words[(this||it).length-1],r=this._countBits(t);return((this||it).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||it).length;r++){var o=this._zeroBits((this||it).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||it).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||it).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||it).negative^=1),this||it},n.prototype.iuor=function(t){for(;(this||it).length<t.length;)(this||it).words[(this||it).length++]=0;for(var r=0;r<t.length;r++)(this||it).words[r]=(this||it).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||it).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||it).length>t.length?this.clone().ior(t):t.clone().ior(this||it)},n.prototype.uor=function(t){return(this||it).length>t.length?this.clone().iuor(t):t.clone().iuor(this||it)},n.prototype.iuand=function(t){var r;(this||it).length>t.length?r=t:r=this||it;for(var o=0;o<r.length;o++)(this||it).words[o]=(this||it).words[o]&t.words[o];return(this||it).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||it).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||it).length>t.length?this.clone().iand(t):t.clone().iand(this||it)},n.prototype.uand=function(t){return(this||it).length>t.length?this.clone().iuand(t):t.clone().iuand(this||it)},n.prototype.iuxor=function(t){var r,o;(this||it).length>t.length?(r=this||it,o=t):(r=t,o=this||it);for(var h=0;h<o.length;h++)(this||it).words[h]=r.words[h]^o.words[h];if((this||it)!==r)for(;h<r.length;h++)(this||it).words[h]=r.words[h];return(this||it).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||it).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||it).length>t.length?this.clone().ixor(t):t.clone().ixor(this||it)},n.prototype.uxor=function(t){return(this||it).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||it)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||it).words[h]=~(this||it).words[h]&67108863;return o>0&&((this||it).words[h]=~(this||it).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||it).words[o]=(this||it).words[o]|1<<h:(this||it).words[o]=(this||it).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||it).negative!==0&&t.negative===0)return(this||it).negative=0,r=this.isub(t),(this||it).negative^=1,this._normSign();if((this||it).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||it).length>t.length?(o=this||it,h=t):(o=t,h=this||it);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||it).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||it).words[v]=r&67108863,f=r>>>26;if((this||it).length=o.length,f!==0)(this||it).words[(this||it).length]=f,(this||it).length++;else if(o!==(this||it))for(;v<o.length;v++)(this||it).words[v]=o.words[v];return this||it},n.prototype.add=function(t){var r;return t.negative!==0&&(this||it).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||it).negative!==0?((this||it).negative=0,r=t.sub(this||it),(this||it).negative=1,r):(this||it).length>t.length?this.clone().iadd(t):t.clone().iadd(this||it)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||it).negative!==0)return(this||it).negative=0,this.iadd(t),(this||it).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||it).negative=0,(this||it).length=1,(this||it).words[0]=0,this||it;var h,f;o>0?(h=this||it,f=t):(h=t,f=this||it);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||it).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||it).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||it))for(;w<h.length;w++)(this||it).words[w]=h.words[w];return(this||it).length=Math.max((this||it).length,w),h!==(this||it)&&((this||it).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||it).length+t.length;return(this||it).length===10&&t.length===10?o=E(this||it,t,r):h<63?o=x(this||it,t,r):h<1024?o=k(this||it,t,r):o=B(this||it,t,r),o};function T(d,t){(this||it).x=d,(this||it).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||it).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||it).length+t.length),B(this||it,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||it)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||it).length;o++){var h=((this||it).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||it).words[o]=f&67108863}return r!==0&&((this||it).words[o]=r,(this||it).length++),this||it},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||it)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||it,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||it).length;f++){var w=(this||it).words[f]&h,l=((this||it).words[f]|0)-w<<r;(this||it).words[f]=l|v,v=w>>>26-r}v&&((this||it).words[f]=v,(this||it).length++)}if(o!==0){for(f=(this||it).length-1;f>=0;f--)(this||it).words[f+o]=(this||it).words[f];for(f=0;f<o;f++)(this||it).words[f]=0;(this||it).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||it).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||it).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||it).words[e];l.length=v}if(v!==0)if((this||it).length>v)for((this||it).length-=v,e=0;e<(this||it).length;e++)(this||it).words[e]=(this||it).words[e+v];else(this||it).words[0]=0,(this||it).length=1;var c=0;for(e=(this||it).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||it).words[e]|0;(this||it).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||it).length===0&&((this||it).words[0]=0,(this||it).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||it).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||it).length<=o)return!1;var f=(this||it).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||it).negative===0,"imaskn works only with positive numbers"),(this||it).length<=o)return this||it;if(r!==0&&o++,(this||it).length=Math.min(o,(this||it).length),r!==0){var h=67108863^67108863>>>r<<r;(this||it).words[(this||it).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||it).negative!==0?(this||it).length===1&&((this||it).words[0]|0)<t?((this||it).words[0]=t-((this||it).words[0]|0),(this||it).negative=0,this||it):((this||it).negative=0,this.isubn(t),(this||it).negative=1,this||it):this._iaddn(t)},n.prototype._iaddn=function(t){(this||it).words[0]+=t;for(var r=0;r<(this||it).length&&(this||it).words[r]>=67108864;r++)(this||it).words[r]-=67108864,r===(this||it).length-1?(this||it).words[r+1]=1:(this||it).words[r+1]++;return(this||it).length=Math.max((this||it).length,r+1),this||it},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||it).negative!==0)return(this||it).negative=0,this.iaddn(t),(this||it).negative=1,this||it;if((this||it).words[0]-=t,(this||it).length===1&&(this||it).words[0]<0)(this||it).words[0]=-(this||it).words[0],(this||it).negative=1;else for(var r=0;r<(this||it).length&&(this||it).words[r]<0;r++)(this||it).words[r]+=67108864,(this||it).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||it).negative=0,this||it},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||it).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||it).words[f+o]=v&67108863}for(;f<(this||it).length-o;f++)v=((this||it).words[f+o]|0)+w,w=v>>26,(this||it).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||it).length;f++)v=-((this||it).words[f]|0)+w,w=v>>26,(this||it).words[f]=v&67108863;return(this||it).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||it).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||it).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||it).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||it).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||it).length||this.cmp(t)<0?{div:new n(0),mod:this||it}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||it).length-1;h>=0;h--)o=(r*o+((this||it).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||it).length-1;o>=0;o--){var h=((this||it).words[o]|0)+r*67108864;(this||it).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||it,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||it,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||it).words[0]&1)===0},n.prototype.isOdd=function(){return((this||it).words[0]&1)===1},n.prototype.andln=function(t){return(this||it).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||it).length<=o)return this._expand(o+1),(this||it).words[o]|=h,this||it;for(var f=h,v=o;f!==0&&v<(this||it).length;v++){var w=(this||it).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||it).words[v]=w}return f!==0&&((this||it).words[v]=f,(this||it).length++),this||it},n.prototype.isZero=function(){return(this||it).length===1&&(this||it).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||it).negative!==0&&!r)return-1;if((this||it).negative===0&&r)return 1;this.strip();var o;if((this||it).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||it).words[0]|0;o=h===t?0:h<t?-1:1}return(this||it).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||it).negative!==0&&t.negative===0)return-1;if((this||it).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||it).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||it).length>t.length)return 1;if((this||it).length<t.length)return-1;for(var r=0,o=(this||it).length-1;o>=0;o--){var h=(this||it).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||it).red,"Already a number in reduction context"),a((this||it).negative===0,"red works only with positives"),t.convertTo(this||it)._forceRed(t)},n.prototype.fromRed=function(){return a((this||it).red,"fromRed works only with numbers in reduction context"),(this||it).red.convertFrom(this||it)},n.prototype._forceRed=function(t){return(this||it).red=t,this||it},n.prototype.forceRed=function(t){return a(!(this||it).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||it).red,"redAdd works only with red numbers"),(this||it).red.add(this||it,t)},n.prototype.redIAdd=function(t){return a((this||it).red,"redIAdd works only with red numbers"),(this||it).red.iadd(this||it,t)},n.prototype.redSub=function(t){return a((this||it).red,"redSub works only with red numbers"),(this||it).red.sub(this||it,t)},n.prototype.redISub=function(t){return a((this||it).red,"redISub works only with red numbers"),(this||it).red.isub(this||it,t)},n.prototype.redShl=function(t){return a((this||it).red,"redShl works only with red numbers"),(this||it).red.shl(this||it,t)},n.prototype.redMul=function(t){return a((this||it).red,"redMul works only with red numbers"),(this||it).red._verify2(this||it,t),(this||it).red.mul(this||it,t)},n.prototype.redIMul=function(t){return a((this||it).red,"redMul works only with red numbers"),(this||it).red._verify2(this||it,t),(this||it).red.imul(this||it,t)},n.prototype.redSqr=function(){return a((this||it).red,"redSqr works only with red numbers"),(this||it).red._verify1(this||it),(this||it).red.sqr(this||it)},n.prototype.redISqr=function(){return a((this||it).red,"redISqr works only with red numbers"),(this||it).red._verify1(this||it),(this||it).red.isqr(this||it)},n.prototype.redSqrt=function(){return a((this||it).red,"redSqrt works only with red numbers"),(this||it).red._verify1(this||it),(this||it).red.sqrt(this||it)},n.prototype.redInvm=function(){return a((this||it).red,"redInvm works only with red numbers"),(this||it).red._verify1(this||it),(this||it).red.invm(this||it)},n.prototype.redNeg=function(){return a((this||it).red,"redNeg works only with red numbers"),(this||it).red._verify1(this||it),(this||it).red.neg(this||it)},n.prototype.redPow=function(t){return a((this||it).red&&!t.red,"redPow(normalNum)"),(this||it).red._verify1(this||it),(this||it).red.pow(this||it,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||it).name=d,(this||it).p=new n(t,16),(this||it).n=(this||it).p.bitLength(),(this||it).k=new n(1).iushln((this||it).n).isub((this||it).p),(this||it).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||it).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||it).tmp),r=this.imulK(r),r=r.iadd((this||it).tmp),o=r.bitLength();while(o>(this||it).n);var h=o<(this||it).n?-1:r.ucmp((this||it).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||it).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||it).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||it).k)};function G(){P.call(this||it,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||it,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||it,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||it,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||it).m=t.p,(this||it).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||it).m=d,(this||it).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||it).prime?(this||it).prime.ireduce(t)._forceRed(this||it):t.umod((this||it).m)._forceRed(this||it)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||it).m.sub(t)._forceRed(this||it)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||it).m)>=0&&o.isub((this||it).m),o._forceRed(this||it)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||it).m)>=0&&o.isub((this||it).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||it).m),o._forceRed(this||it)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||it).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||it).m.andln(3);if(a(r%2===1),r===3){var o=(this||it).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||it).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||it),w=v.redNeg(),l=(this||it).m.subn(1).iushrn(1),e=(this||it).m.bitLength();for(e=new n(2*e*e).toRed(this||it);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||it).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||it);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||it),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||it).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||it,d),(this||it).shift=(this||it).m.bitLength(),(this||it).shift%26!==0&&((this||it).shift+=26-(this||it).shift%26),(this||it).r=new n(1).iushln((this||it).shift),(this||it).r2=this.imod((this||it).r.sqr()),(this||it).rinv=(this||it).r._invmp((this||it).m),(this||it).minv=(this||it).rinv.mul((this||it).r).isubn(1).div((this||it).m),(this||it).minv=(this||it).minv.umod((this||it).r),(this||it).minv=(this||it).r.sub((this||it).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||it).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||it).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||it).shift).mul((this||it).minv).imaskn((this||it).shift).mul((this||it).m),f=o.isub(h).iushrn((this||it).shift),v=f;return f.cmp((this||it).m)>=0?v=f.isub((this||it).m):f.cmpn(0)<0&&(v=f.iadd((this||it).m)),v._forceRed(this||it)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||it);var o=t.mul(r),h=o.maskn((this||it).shift).mul((this||it).minv).imaskn((this||it).shift).mul((this||it).m),f=o.isub(h).iushrn((this||it).shift),v=f;return f.cmp((this||it).m)>=0?v=f.isub((this||it).m):f.cmpn(0)<0&&(v=f.iadd((this||it).m)),v._forceRed(this||it)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||it).m).mul((this||it).r2));return r._forceRed(this||it)}}(Fm,sE)),Fm.exports}var X0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,Xi={},xD=function(i,s){if(i.indexOf)return i.indexOf(s);for(var a=0;a<i.length;a++)if(i[a]===s)return a;return-1},xh=function(i){if(Object.keys)return Object.keys(i);var s=[];for(var a in i)s.push(a);return s},ms=function(i,s){if(i.forEach)return i.forEach(s);for(var a=0;a<i.length;a++)s(i[a],a,i)},ED=function(){try{return Object.defineProperty({},"_",{}),function(i,s,a){Object.defineProperty(i,s,{writable:!0,enumerable:!1,configurable:!0,value:a})}}catch{return function(s,a,u){s[a]=u}}}(),Rw=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function T0(){}T0.prototype={};var _o=Xi.Script=function(i){if(!((this||X0)instanceof _o))return new _o(i);(this||X0).code=i};_o.prototype.runInContext=function(i){if(!(i instanceof T0))throw new TypeError("needs a 'context' argument.");var s=document.createElement("iframe");s.style||(s.style={}),s.style.display="none",document.body.appendChild(s);var a=s.contentWindow,u=a.eval,n=a.execScript;!u&&n&&(n.call(a,"null"),u=a.eval),ms(xh(i),function(y){a[y]=i[y]}),ms(Rw,function(y){i[y]&&(a[y]=i[y])});var p=xh(a),m=u.call(a,(this||X0).code);return ms(xh(a),function(y){(y in i||xD(p,y)===-1)&&(i[y]=a[y])}),ms(Rw,function(y){y in i||ED(i,y,a[y])}),document.body.removeChild(s),m},_o.prototype.runInThisContext=function(){return(0,eval)((this||X0).code)},_o.prototype.runInNewContext=function(i){var s=_o.createContext(i),a=this.runInContext(s);return i&&ms(xh(s),function(u){i[u]=s[u]}),a},ms(xh(_o.prototype),function(i){Xi[i]=_o[i]=function(s){var a=_o(s);return a[i].apply(a,[].slice.call(arguments,1))}}),Xi.isContext=function(i){return i instanceof T0},Xi.createScript=function(i){return Xi.Script(i)},Xi.createContext=_o.createContext=function(i){var s=new T0;return typeof i=="object"&&ms(xh(i),function(a){s[a]=i[a]}),s};Xi.Script;Xi.createContext;Xi.createScript;Xi.isContext;Xi.runInContext;Xi.runInNewContext;Xi.runInThisContext;var Bw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,AD=Le,kD=er.Buffer,Ql=Bw.crypto||Bw.msCrypto,Zh=Ql&&Ql.getRandomValues?function(i,s){if(i>4294967295)throw new RangeError("requested too many random bytes");var a=kD.allocUnsafe(i);if(i>0)if(i>65536)for(var u=0;u<i;u+=65536)Ql.getRandomValues(a.slice(u,u+65536));else Ql.getRandomValues(a);return typeof s=="function"?AD.nextTick(function(){s(null,a)}):a}:function(){throw new Error(`Secure random number generation is not supported by this browser.
16
+ Use Chrome, Firefox or Internet Explorer 11`)},$0=er.Buffer,hE=Pn.Transform;function xa(i){hE.call(this),this._block=$0.allocUnsafe(i),this._blockSize=i,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}qe(xa,hE),xa.prototype._transform=function(i,s,a){var u=null;try{this.update(i,s)}catch(n){u=n}a(u)},xa.prototype._flush=function(i){var s=null;try{this.push(this.digest())}catch(a){s=a}i(s)},xa.prototype.update=function(i,s){if(function(y,M){if(!$0.isBuffer(y)&&typeof y!="string")throw new TypeError(M+" must be a string or a buffer")}(i,"Data"),this._finalized)throw new Error("Digest already called");$0.isBuffer(i)||(i=$0.from(i,s));for(var a=this._block,u=0;this._blockOffset+i.length-u>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)a[n++]=i[u++];this._update(),this._blockOffset=0}for(;u<i.length;)a[this._blockOffset++]=i[u++];for(var p=0,m=8*i.length;m>0;++p)this._length[p]+=m,(m=this._length[p]/4294967296|0)>0&&(this._length[p]-=4294967296*m);return this},xa.prototype._update=function(){throw new Error("_update is not implemented")},xa.prototype.digest=function(i){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var s=this._digest();i!==void 0&&(s=s.toString(i)),this._block.fill(0),this._blockOffset=0;for(var a=0;a<4;++a)this._length[a]=0;return s},xa.prototype._digest=function(){throw new Error("_digest is not implemented")};var fE=xa,RD=qe,uE=fE,BD=er.Buffer,TD=new Array(16);function I0(){uE.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function dc(i,s){return i<<s|i>>>32-s}function Ei(i,s,a,u,n,p,m){return dc(i+(s&a|~s&u)+n+p|0,m)+s|0}function Ai(i,s,a,u,n,p,m){return dc(i+(s&u|a&~u)+n+p|0,m)+s|0}function ki(i,s,a,u,n,p,m){return dc(i+(s^a^u)+n+p|0,m)+s|0}function Ri(i,s,a,u,n,p,m){return dc(i+(a^(s|~u))+n+p|0,m)+s|0}RD(I0,uE),I0.prototype._update=function(){for(var i=TD,s=0;s<16;++s)i[s]=this._block.readInt32LE(4*s);var a=this._a,u=this._b,n=this._c,p=this._d;a=Ei(a,u,n,p,i[0],3614090360,7),p=Ei(p,a,u,n,i[1],3905402710,12),n=Ei(n,p,a,u,i[2],606105819,17),u=Ei(u,n,p,a,i[3],3250441966,22),a=Ei(a,u,n,p,i[4],4118548399,7),p=Ei(p,a,u,n,i[5],1200080426,12),n=Ei(n,p,a,u,i[6],2821735955,17),u=Ei(u,n,p,a,i[7],4249261313,22),a=Ei(a,u,n,p,i[8],1770035416,7),p=Ei(p,a,u,n,i[9],2336552879,12),n=Ei(n,p,a,u,i[10],4294925233,17),u=Ei(u,n,p,a,i[11],2304563134,22),a=Ei(a,u,n,p,i[12],1804603682,7),p=Ei(p,a,u,n,i[13],4254626195,12),n=Ei(n,p,a,u,i[14],2792965006,17),a=Ai(a,u=Ei(u,n,p,a,i[15],1236535329,22),n,p,i[1],4129170786,5),p=Ai(p,a,u,n,i[6],3225465664,9),n=Ai(n,p,a,u,i[11],643717713,14),u=Ai(u,n,p,a,i[0],3921069994,20),a=Ai(a,u,n,p,i[5],3593408605,5),p=Ai(p,a,u,n,i[10],38016083,9),n=Ai(n,p,a,u,i[15],3634488961,14),u=Ai(u,n,p,a,i[4],3889429448,20),a=Ai(a,u,n,p,i[9],568446438,5),p=Ai(p,a,u,n,i[14],3275163606,9),n=Ai(n,p,a,u,i[3],4107603335,14),u=Ai(u,n,p,a,i[8],1163531501,20),a=Ai(a,u,n,p,i[13],2850285829,5),p=Ai(p,a,u,n,i[2],4243563512,9),n=Ai(n,p,a,u,i[7],1735328473,14),a=ki(a,u=Ai(u,n,p,a,i[12],2368359562,20),n,p,i[5],4294588738,4),p=ki(p,a,u,n,i[8],2272392833,11),n=ki(n,p,a,u,i[11],1839030562,16),u=ki(u,n,p,a,i[14],4259657740,23),a=ki(a,u,n,p,i[1],2763975236,4),p=ki(p,a,u,n,i[4],1272893353,11),n=ki(n,p,a,u,i[7],4139469664,16),u=ki(u,n,p,a,i[10],3200236656,23),a=ki(a,u,n,p,i[13],681279174,4),p=ki(p,a,u,n,i[0],3936430074,11),n=ki(n,p,a,u,i[3],3572445317,16),u=ki(u,n,p,a,i[6],76029189,23),a=ki(a,u,n,p,i[9],3654602809,4),p=ki(p,a,u,n,i[12],3873151461,11),n=ki(n,p,a,u,i[15],530742520,16),a=Ri(a,u=ki(u,n,p,a,i[2],3299628645,23),n,p,i[0],4096336452,6),p=Ri(p,a,u,n,i[7],1126891415,10),n=Ri(n,p,a,u,i[14],2878612391,15),u=Ri(u,n,p,a,i[5],4237533241,21),a=Ri(a,u,n,p,i[12],1700485571,6),p=Ri(p,a,u,n,i[3],2399980690,10),n=Ri(n,p,a,u,i[10],4293915773,15),u=Ri(u,n,p,a,i[1],2240044497,21),a=Ri(a,u,n,p,i[8],1873313359,6),p=Ri(p,a,u,n,i[15],4264355552,10),n=Ri(n,p,a,u,i[6],2734768916,15),u=Ri(u,n,p,a,i[13],1309151649,21),a=Ri(a,u,n,p,i[4],4149444226,6),p=Ri(p,a,u,n,i[11],3174756917,10),n=Ri(n,p,a,u,i[2],718787259,15),u=Ri(u,n,p,a,i[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+u|0,this._c=this._c+n|0,this._d=this._d+p|0},I0.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var i=BD.allocUnsafe(16);return i.writeInt32LE(this._a,0),i.writeInt32LE(this._b,4),i.writeInt32LE(this._c,8),i.writeInt32LE(this._d,12),i};var wb=I0,jm=Pe.Buffer,$D=qe,lE=fE,ID=new Array(16),_f=[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],Sf=[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],xf=[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],Ef=[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],Af=[0,1518500249,1859775393,2400959708,2840853838],kf=[1352829926,1548603684,1836072691,2053994217,0];function C0(){lE.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function Fs(i,s){return i<<s|i>>>32-s}function Tw(i,s,a,u,n,p,m,y){return Fs(i+(s^a^u)+p+m|0,y)+n|0}function $w(i,s,a,u,n,p,m,y){return Fs(i+(s&a|~s&u)+p+m|0,y)+n|0}function Iw(i,s,a,u,n,p,m,y){return Fs(i+((s|~a)^u)+p+m|0,y)+n|0}function Cw(i,s,a,u,n,p,m,y){return Fs(i+(s&u|a&~u)+p+m|0,y)+n|0}function Pw(i,s,a,u,n,p,m,y){return Fs(i+(s^(a|~u))+p+m|0,y)+n|0}$D(C0,lE),C0.prototype._update=function(){for(var i=ID,s=0;s<16;++s)i[s]=this._block.readInt32LE(4*s);for(var a=0|this._a,u=0|this._b,n=0|this._c,p=0|this._d,m=0|this._e,y=0|this._a,M=0|this._b,b=0|this._c,g=0|this._d,S=0|this._e,_=0;_<80;_+=1){var x,E;_<16?(x=Tw(a,u,n,p,m,i[_f[_]],Af[0],xf[_]),E=Pw(y,M,b,g,S,i[Sf[_]],kf[0],Ef[_])):_<32?(x=$w(a,u,n,p,m,i[_f[_]],Af[1],xf[_]),E=Cw(y,M,b,g,S,i[Sf[_]],kf[1],Ef[_])):_<48?(x=Iw(a,u,n,p,m,i[_f[_]],Af[2],xf[_]),E=Iw(y,M,b,g,S,i[Sf[_]],kf[2],Ef[_])):_<64?(x=Cw(a,u,n,p,m,i[_f[_]],Af[3],xf[_]),E=$w(y,M,b,g,S,i[Sf[_]],kf[3],Ef[_])):(x=Pw(a,u,n,p,m,i[_f[_]],Af[4],xf[_]),E=Tw(y,M,b,g,S,i[Sf[_]],kf[4],Ef[_])),a=m,m=p,p=Fs(n,10),n=u,u=x,y=S,S=g,g=Fs(b,10),b=M,M=E}var k=this._b+n+g|0;this._b=this._c+p+S|0,this._c=this._d+m+y|0,this._d=this._e+a+M|0,this._e=this._a+u+b|0,this._a=k},C0.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var i=jm.alloc?jm.alloc(20):new jm(20);return i.writeInt32LE(this._a,0),i.writeInt32LE(this._b,4),i.writeInt32LE(this._c,8),i.writeInt32LE(this._d,12),i.writeInt32LE(this._e,16),i};var Mb=C0,Cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,cE=er.Buffer;function P0(i,s){(this||Cr)._block=cE.alloc(i),(this||Cr)._finalSize=s,(this||Cr)._blockSize=i,(this||Cr)._len=0}P0.prototype.update=function(i,s){typeof i=="string"&&(s=s||"utf8",i=cE.from(i,s));for(var a=(this||Cr)._block,u=(this||Cr)._blockSize,n=i.length,p=(this||Cr)._len,m=0;m<n;){for(var y=p%u,M=Math.min(n-m,u-y),b=0;b<M;b++)a[y+b]=i[m+b];m+=M,(p+=M)%u==0&&this._update(a)}return(this||Cr)._len+=n,this||Cr},P0.prototype.digest=function(i){var s=(this||Cr)._len%(this||Cr)._blockSize;(this||Cr)._block[s]=128,(this||Cr)._block.fill(0,s+1),s>=(this||Cr)._finalSize&&(this._update((this||Cr)._block),(this||Cr)._block.fill(0));var a=8*(this||Cr)._len;if(a<=4294967295)(this||Cr)._block.writeUInt32BE(a,(this||Cr)._blockSize-4);else{var u=(4294967295&a)>>>0,n=(a-u)/4294967296;(this||Cr)._block.writeUInt32BE(n,(this||Cr)._blockSize-8),(this||Cr)._block.writeUInt32BE(u,(this||Cr)._blockSize-4)}this._update((this||Cr)._block);var p=this._hash();return i?p.toString(i):p},P0.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Vh=P0,He=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,CD=qe,dE=Vh,PD=er.Buffer,DD=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],LD=new Array(64);function Lf(){this.init(),(this||He)._w=LD,dE.call(this||He,64,56)}function OD(i,s,a){return a^i&(s^a)}function ND(i,s,a){return i&s|a&(i|s)}function qD(i){return(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10)}function zD(i){return(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7)}function UD(i){return(i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3}CD(Lf,dE),Lf.prototype.init=function(){return(this||He)._a=1779033703,(this||He)._b=3144134277,(this||He)._c=1013904242,(this||He)._d=2773480762,(this||He)._e=1359893119,(this||He)._f=2600822924,(this||He)._g=528734635,(this||He)._h=1541459225,this||He},Lf.prototype._update=function(i){for(var s,a=(this||He)._w,u=0|(this||He)._a,n=0|(this||He)._b,p=0|(this||He)._c,m=0|(this||He)._d,y=0|(this||He)._e,M=0|(this||He)._f,b=0|(this||He)._g,g=0|(this||He)._h,S=0;S<16;++S)a[S]=i.readInt32BE(4*S);for(;S<64;++S)a[S]=0|(((s=a[S-2])>>>17|s<<15)^(s>>>19|s<<13)^s>>>10)+a[S-7]+UD(a[S-15])+a[S-16];for(var _=0;_<64;++_){var x=g+zD(y)+OD(y,M,b)+DD[_]+a[_]|0,E=qD(u)+ND(u,n,p)|0;g=b,b=M,M=y,y=m+x|0,m=p,p=n,n=u,u=x+E|0}(this||He)._a=u+(this||He)._a|0,(this||He)._b=n+(this||He)._b|0,(this||He)._c=p+(this||He)._c|0,(this||He)._d=m+(this||He)._d|0,(this||He)._e=y+(this||He)._e|0,(this||He)._f=M+(this||He)._f|0,(this||He)._g=b+(this||He)._g|0,(this||He)._h=g+(this||He)._h|0},Lf.prototype._hash=function(){var i=PD.allocUnsafe(32);return i.writeInt32BE((this||He)._a,0),i.writeInt32BE((this||He)._b,4),i.writeInt32BE((this||He)._c,8),i.writeInt32BE((this||He)._d,12),i.writeInt32BE((this||He)._e,16),i.writeInt32BE((this||He)._f,20),i.writeInt32BE((this||He)._g,24),i.writeInt32BE((this||He)._h,28),i};var pE=Lf,yr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,FD=qe,mE=Vh,jD=er.Buffer,HD=[1518500249,1859775393,-1894007588,-899497514],KD=new Array(80);function Of(){this.init(),(this||yr)._w=KD,mE.call(this||yr,64,56)}function GD(i){return i<<30|i>>>2}function ZD(i,s,a,u){return i===0?s&a|~s&u:i===2?s&a|s&u|a&u:s^a^u}FD(Of,mE),Of.prototype.init=function(){return(this||yr)._a=1732584193,(this||yr)._b=4023233417,(this||yr)._c=2562383102,(this||yr)._d=271733878,(this||yr)._e=3285377520,this||yr},Of.prototype._update=function(i){for(var s,a=(this||yr)._w,u=0|(this||yr)._a,n=0|(this||yr)._b,p=0|(this||yr)._c,m=0|(this||yr)._d,y=0|(this||yr)._e,M=0;M<16;++M)a[M]=i.readInt32BE(4*M);for(;M<80;++M)a[M]=a[M-3]^a[M-8]^a[M-14]^a[M-16];for(var b=0;b<80;++b){var g=~~(b/20),S=0|((s=u)<<5|s>>>27)+ZD(g,n,p,m)+y+a[b]+HD[g];y=m,m=p,p=GD(n),n=u,u=S}(this||yr)._a=u+(this||yr)._a|0,(this||yr)._b=n+(this||yr)._b|0,(this||yr)._c=p+(this||yr)._c|0,(this||yr)._d=m+(this||yr)._d|0,(this||yr)._e=y+(this||yr)._e|0},Of.prototype._hash=function(){var i=jD.allocUnsafe(20);return i.writeInt32BE(0|(this||yr)._a,0),i.writeInt32BE(0|(this||yr)._b,4),i.writeInt32BE(0|(this||yr)._c,8),i.writeInt32BE(0|(this||yr)._d,12),i.writeInt32BE(0|(this||yr)._e,16),i};var VD=Of,wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,WD=qe,vE=Vh,XD=er.Buffer,JD=[1518500249,1859775393,-1894007588,-899497514],YD=new Array(80);function Nf(){this.init(),(this||wr)._w=YD,vE.call(this||wr,64,56)}function QD(i){return i<<5|i>>>27}function tL(i){return i<<30|i>>>2}function eL(i,s,a,u){return i===0?s&a|~s&u:i===2?s&a|s&u|a&u:s^a^u}WD(Nf,vE),Nf.prototype.init=function(){return(this||wr)._a=1732584193,(this||wr)._b=4023233417,(this||wr)._c=2562383102,(this||wr)._d=271733878,(this||wr)._e=3285377520,this||wr},Nf.prototype._update=function(i){for(var s,a=(this||wr)._w,u=0|(this||wr)._a,n=0|(this||wr)._b,p=0|(this||wr)._c,m=0|(this||wr)._d,y=0|(this||wr)._e,M=0;M<16;++M)a[M]=i.readInt32BE(4*M);for(;M<80;++M)a[M]=(s=a[M-3]^a[M-8]^a[M-14]^a[M-16])<<1|s>>>31;for(var b=0;b<80;++b){var g=~~(b/20),S=QD(u)+eL(g,n,p,m)+y+a[b]+JD[g]|0;y=m,m=p,p=tL(n),n=u,u=S}(this||wr)._a=u+(this||wr)._a|0,(this||wr)._b=n+(this||wr)._b|0,(this||wr)._c=p+(this||wr)._c|0,(this||wr)._d=m+(this||wr)._d|0,(this||wr)._e=y+(this||wr)._e|0},Nf.prototype._hash=function(){var i=XD.allocUnsafe(20);return i.writeInt32BE(0|(this||wr)._a,0),i.writeInt32BE(0|(this||wr)._b,4),i.writeInt32BE(0|(this||wr)._c,8),i.writeInt32BE(0|(this||wr)._d,12),i.writeInt32BE(0|(this||wr)._e,16),i};var rL=Nf,di=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,iL=qe,nL=pE,oL=Vh,aL=er.Buffer,sL=new Array(64);function D0(){this.init(),(this||di)._w=sL,oL.call(this||di,64,56)}iL(D0,nL),D0.prototype.init=function(){return(this||di)._a=3238371032,(this||di)._b=914150663,(this||di)._c=812702999,(this||di)._d=4144912697,(this||di)._e=4290775857,(this||di)._f=1750603025,(this||di)._g=1694076839,(this||di)._h=3204075428,this||di},D0.prototype._hash=function(){var i=aL.allocUnsafe(28);return i.writeInt32BE((this||di)._a,0),i.writeInt32BE((this||di)._b,4),i.writeInt32BE((this||di)._c,8),i.writeInt32BE((this||di)._d,12),i.writeInt32BE((this||di)._e,16),i.writeInt32BE((this||di)._f,20),i.writeInt32BE((this||di)._g,24),i};var hL=D0,le=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,fL=qe,gE=Vh,uL=er.Buffer,Dw=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],lL=new Array(160);function qf(){this.init(),(this||le)._w=lL,gE.call(this||le,128,112)}function Lw(i,s,a){return a^i&(s^a)}function Ow(i,s,a){return i&s|a&(i|s)}function Nw(i,s){return(i>>>28|s<<4)^(s>>>2|i<<30)^(s>>>7|i<<25)}function qw(i,s){return(i>>>14|s<<18)^(i>>>18|s<<14)^(s>>>9|i<<23)}function cL(i,s){return(i>>>1|s<<31)^(i>>>8|s<<24)^i>>>7}function dL(i,s){return(i>>>1|s<<31)^(i>>>8|s<<24)^(i>>>7|s<<25)}function pL(i,s){return(i>>>19|s<<13)^(s>>>29|i<<3)^i>>>6}function mL(i,s){return(i>>>19|s<<13)^(s>>>29|i<<3)^(i>>>6|s<<26)}function fi(i,s){return i>>>0<s>>>0?1:0}fL(qf,gE),qf.prototype.init=function(){return(this||le)._ah=1779033703,(this||le)._bh=3144134277,(this||le)._ch=1013904242,(this||le)._dh=2773480762,(this||le)._eh=1359893119,(this||le)._fh=2600822924,(this||le)._gh=528734635,(this||le)._hh=1541459225,(this||le)._al=4089235720,(this||le)._bl=2227873595,(this||le)._cl=4271175723,(this||le)._dl=1595750129,(this||le)._el=2917565137,(this||le)._fl=725511199,(this||le)._gl=4215389547,(this||le)._hl=327033209,this||le},qf.prototype._update=function(i){for(var s=(this||le)._w,a=0|(this||le)._ah,u=0|(this||le)._bh,n=0|(this||le)._ch,p=0|(this||le)._dh,m=0|(this||le)._eh,y=0|(this||le)._fh,M=0|(this||le)._gh,b=0|(this||le)._hh,g=0|(this||le)._al,S=0|(this||le)._bl,_=0|(this||le)._cl,x=0|(this||le)._dl,E=0|(this||le)._el,k=0|(this||le)._fl,B=0|(this||le)._gl,T=0|(this||le)._hl,C=0;C<32;C+=2)s[C]=i.readInt32BE(4*C),s[C+1]=i.readInt32BE(4*C+4);for(;C<160;C+=2){var P=s[C-30],G=s[C-30+1],U=cL(P,G),V=dL(G,P),I=pL(P=s[C-4],G=s[C-4+1]),D=mL(G,P),z=s[C-14],d=s[C-14+1],t=s[C-32],r=s[C-32+1],o=V+d|0,h=U+z+fi(o,V)|0;h=(h=h+I+fi(o=o+D|0,D)|0)+t+fi(o=o+r|0,r)|0,s[C]=h,s[C+1]=o}for(var f=0;f<160;f+=2){h=s[f],o=s[f+1];var v=Ow(a,u,n),w=Ow(g,S,_),l=Nw(a,g),e=Nw(g,a),c=qw(m,E),A=qw(E,m),R=Dw[f],$=Dw[f+1],L=Lw(m,y,M),j=Lw(E,k,B),pt=T+A|0,W=b+c+fi(pt,T)|0;W=(W=(W=W+L+fi(pt=pt+j|0,j)|0)+R+fi(pt=pt+$|0,$)|0)+h+fi(pt=pt+o|0,o)|0;var N=e+w|0,X=l+v+fi(N,e)|0;b=M,T=B,M=y,B=k,y=m,k=E,m=p+W+fi(E=x+pt|0,x)|0,p=n,x=_,n=u,_=S,u=a,S=g,a=W+X+fi(g=pt+N|0,pt)|0}(this||le)._al=(this||le)._al+g|0,(this||le)._bl=(this||le)._bl+S|0,(this||le)._cl=(this||le)._cl+_|0,(this||le)._dl=(this||le)._dl+x|0,(this||le)._el=(this||le)._el+E|0,(this||le)._fl=(this||le)._fl+k|0,(this||le)._gl=(this||le)._gl+B|0,(this||le)._hl=(this||le)._hl+T|0,(this||le)._ah=(this||le)._ah+a+fi((this||le)._al,g)|0,(this||le)._bh=(this||le)._bh+u+fi((this||le)._bl,S)|0,(this||le)._ch=(this||le)._ch+n+fi((this||le)._cl,_)|0,(this||le)._dh=(this||le)._dh+p+fi((this||le)._dl,x)|0,(this||le)._eh=(this||le)._eh+m+fi((this||le)._el,E)|0,(this||le)._fh=(this||le)._fh+y+fi((this||le)._fl,k)|0,(this||le)._gh=(this||le)._gh+M+fi((this||le)._gl,B)|0,(this||le)._hh=(this||le)._hh+b+fi((this||le)._hl,T)|0},qf.prototype._hash=function(){var i=uL.allocUnsafe(64);function s(a,u,n){i.writeInt32BE(a,n),i.writeInt32BE(u,n+4)}return s((this||le)._ah,(this||le)._al,0),s((this||le)._bh,(this||le)._bl,8),s((this||le)._ch,(this||le)._cl,16),s((this||le)._dh,(this||le)._dl,24),s((this||le)._eh,(this||le)._el,32),s((this||le)._fh,(this||le)._fl,40),s((this||le)._gh,(this||le)._gl,48),s((this||le)._hh,(this||le)._hl,56),i};var bE=qf,cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,vL=qe,gL=bE,bL=Vh,yL=er.Buffer,wL=new Array(160);function L0(){this.init(),(this||cr)._w=wL,bL.call(this||cr,128,112)}vL(L0,gL),L0.prototype.init=function(){return(this||cr)._ah=3418070365,(this||cr)._bh=1654270250,(this||cr)._ch=2438529370,(this||cr)._dh=355462360,(this||cr)._eh=1731405415,(this||cr)._fh=2394180231,(this||cr)._gh=3675008525,(this||cr)._hh=1203062813,(this||cr)._al=3238371032,(this||cr)._bl=914150663,(this||cr)._cl=812702999,(this||cr)._dl=4144912697,(this||cr)._el=4290775857,(this||cr)._fl=1750603025,(this||cr)._gl=1694076839,(this||cr)._hl=3204075428,this||cr},L0.prototype._hash=function(){var i=yL.allocUnsafe(48);function s(a,u,n){i.writeInt32BE(a,n),i.writeInt32BE(u,n+4)}return s((this||cr)._ah,(this||cr)._al,0),s((this||cr)._bh,(this||cr)._bl,8),s((this||cr)._ch,(this||cr)._cl,16),s((this||cr)._dh,(this||cr)._dl,24),s((this||cr)._eh,(this||cr)._el,32),s((this||cr)._fh,(this||cr)._fl,40),i};var Ea,ML=L0,yE={exports:Ea={}};(Ea=yE.exports=function(i){i=i.toLowerCase();var s=Ea[i];if(!s)throw new Error(i+" is not supported (we accept pull requests)");return new s}).sha=VD,Ea.sha1=rL,Ea.sha224=hL,Ea.sha256=pE,Ea.sha384=ML,Ea.sha512=bE;var _b=yE.exports,Fr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,zw=er.Buffer,wE=Pn.Transform,_L=_i.StringDecoder;function Jn(i){wE.call(this||Fr),(this||Fr).hashMode=typeof i=="string",(this||Fr).hashMode?(this||Fr)[i]=(this||Fr)._finalOrDigest:(this||Fr).final=(this||Fr)._finalOrDigest,(this||Fr)._final&&((this||Fr).__final=(this||Fr)._final,(this||Fr)._final=null),(this||Fr)._decoder=null,(this||Fr)._encoding=null}qe(Jn,wE),Jn.prototype.update=function(i,s,a){typeof i=="string"&&(i=zw.from(i,s));var u=this._update(i);return(this||Fr).hashMode?this||Fr:(a&&(u=this._toString(u,a)),u)},Jn.prototype.setAutoPadding=function(){},Jn.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},Jn.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},Jn.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},Jn.prototype._transform=function(i,s,a){var u;try{(this||Fr).hashMode?this._update(i):this.push(this._update(i))}catch(n){u=n}finally{a(u)}},Jn.prototype._flush=function(i){var s;try{this.push(this.__final())}catch(a){s=a}i(s)},Jn.prototype._finalOrDigest=function(i){var s=this.__final()||zw.alloc(0);return i&&(s=this._toString(s,i,!0)),s},Jn.prototype._toString=function(i,s,a){if((this||Fr)._decoder||((this||Fr)._decoder=new _L(s),(this||Fr)._encoding=s),(this||Fr)._encoding!==s)throw new Error("can't switch encodings");var u=(this||Fr)._decoder.write(i);return a&&(u+=(this||Fr)._decoder.end()),u};var Ua=Jn,SL=wb,xL=Mb,EL=_b,ME=Ua;function O0(i){ME.call(this,"digest"),this._hash=i}qe(O0,ME),O0.prototype._update=function(i){this._hash.update(i)},O0.prototype._final=function(){return this._hash.digest()};var lu=function(i){return(i=i.toLowerCase())==="md5"?new SL:i==="rmd160"||i==="ripemd160"?new xL:new O0(EL(i))},AL=wb,_E=function(i){return new AL().update(i).digest()},kL=qe,Os=er.Buffer,SE=Ua,RL=Os.alloc(128);function N0(i,s){SE.call(this,"digest"),typeof s=="string"&&(s=Os.from(s)),this._alg=i,this._key=s,s.length>64?s=i(s):s.length<64&&(s=Os.concat([s,RL],64));for(var a=this._ipad=Os.allocUnsafe(64),u=this._opad=Os.allocUnsafe(64),n=0;n<64;n++)a[n]=54^s[n],u[n]=92^s[n];this._hash=[a]}kL(N0,SE),N0.prototype._update=function(i){this._hash.push(i)},N0.prototype._final=function(){var i=this._alg(Os.concat(this._hash));return this._alg(Os.concat([this._opad,i]))};var BL=qe,TL=N0,xE=Ua,zf=er.Buffer,$L=_E,qg=Mb,zg=_b,IL=zf.alloc(128);function Xf(i,s){xE.call(this,"digest"),typeof s=="string"&&(s=zf.from(s));var a=i==="sha512"||i==="sha384"?128:64;this._alg=i,this._key=s,s.length>a?s=(i==="rmd160"?new qg:zg(i)).update(s).digest():s.length<a&&(s=zf.concat([s,IL],a));for(var u=this._ipad=zf.allocUnsafe(a),n=this._opad=zf.allocUnsafe(a),p=0;p<a;p++)u[p]=54^s[p],n[p]=92^s[p];this._hash=i==="rmd160"?new qg:zg(i),this._hash.update(u)}BL(Xf,xE),Xf.prototype._update=function(i){this._hash.update(i)},Xf.prototype._final=function(){var i=this._hash.digest();return(this._alg==="rmd160"?new qg:zg(this._alg)).update(this._opad).update(i).digest()};var EE=function(i,s){return(i=i.toLowerCase())==="rmd160"||i==="ripemd160"?new Xf("rmd160",s):i==="md5"?new TL($L,s):new Xf(i,s)},AE={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}},CL=Pe.Buffer,PL=Math.pow(2,30)-1;function Uw(i,s){if(typeof i!="string"&&!CL.isBuffer(i))throw new TypeError(s+" must be a buffer or string")}var Ug,kE=function(i,s,a,u){if(Uw(i,"Password"),Uw(s,"Salt"),typeof a!="number")throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if(typeof u!="number")throw new TypeError("Key length not a number");if(u<0||u>PL||u!=u)throw new TypeError("Bad key length")},Fw=Le;Fw.browser?Ug="utf-8":Ug=parseInt(Fw.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";var RE=Ug,to=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,DL=_E,LL=Mb,OL=_b,NL=kE,jw=RE,ro=er.Buffer,qL=ro.alloc(128),q0={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function BE(i,s,a){var u=function(b){function g(S){return OL(b).update(S).digest()}return b==="rmd160"||b==="ripemd160"?function(S){return new LL().update(S).digest()}:b==="md5"?DL:g}(i),n=i==="sha512"||i==="sha384"?128:64;s.length>n?s=u(s):s.length<n&&(s=ro.concat([s,qL],n));for(var p=ro.allocUnsafe(n+q0[i]),m=ro.allocUnsafe(n+q0[i]),y=0;y<n;y++)p[y]=54^s[y],m[y]=92^s[y];var M=ro.allocUnsafe(n+a+4);p.copy(M,0,0,n),(this||to).ipad1=M,(this||to).ipad2=p,(this||to).opad=m,(this||to).alg=i,(this||to).blocksize=n,(this||to).hash=u,(this||to).size=q0[i]}BE.prototype.run=function(i,s){return i.copy(s,(this||to).blocksize),this.hash(s).copy((this||to).opad,(this||to).blocksize),this.hash((this||to).opad)};var Hm,TE=function(i,s,a,u,n){NL(i,s,a,u),ro.isBuffer(i)||(i=ro.from(i,jw)),ro.isBuffer(s)||(s=ro.from(s,jw));var p=new BE(n=n||"sha1",i,s.length),m=ro.allocUnsafe(u),y=ro.allocUnsafe(s.length+4);s.copy(y,0,0,s.length);for(var M=0,b=q0[n],g=Math.ceil(u/b),S=1;S<=g;S++){y.writeUInt32BE(S,s.length);for(var _=p.run(y,p.ipad1),x=_,E=1;E<a;E++){x=p.run(x,p.ipad2);for(var k=0;k<b;k++)_[k]^=x[k]}_.copy(m,M),M+=b}return m},Jf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,Km=Le,zL=kE,Hw=RE,Kw=TE,Th=er.Buffer,Yf=Jf.crypto&&Jf.crypto.subtle,UL={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},Gm=[];function Gw(i,s,a,u,n){return Yf.importKey("raw",i,{name:"PBKDF2"},!1,["deriveBits"]).then(function(p){return Yf.deriveBits({name:"PBKDF2",salt:s,iterations:a,hash:{name:n}},p,u<<3)}).then(function(p){return Th.from(p)})}var FL=function(i,s,a,u,n,p){typeof n=="function"&&(p=n,n=void 0);var m=UL[(n=n||"sha1").toLowerCase()];if(!m||typeof Jf.Promise!="function")return Km.nextTick(function(){var y;try{y=Kw(i,s,a,u,n)}catch(M){return p(M)}p(null,y)});if(zL(i,s,a,u),typeof p!="function")throw new Error("No callback provided to pbkdf2");Th.isBuffer(i)||(i=Th.from(i,Hw)),Th.isBuffer(s)||(s=Th.from(s,Hw)),function(y,M){y.then(function(b){Km.nextTick(function(){M(null,b)})},function(b){Km.nextTick(function(){M(b)})})}(function(y){if(Jf.process&&!Jf.process.browser||!Yf||!Yf.importKey||!Yf.deriveBits)return Promise.resolve(!1);if(Gm[y]!==void 0)return Gm[y];var M=Gw(Hm=Hm||Th.alloc(8),Hm,10,128,y).then(function(){return!0}).catch(function(){return!1});return Gm[y]=M,M}(m).then(function(y){return y?Gw(i,s,a,u,m):Kw(i,s,a,u,n)}),p)},J0={};J0.pbkdf2=FL,J0.pbkdf2Sync=TE;var $E;function Zw(i,s){if(!i)throw new Error(s||"Assertion failed")}$E=Zw,Zw.equal=function(i,s,a){if(i!=s)throw new Error(a||"Assertion failed: "+i+" != "+s)};var Dn=$E,js={readUInt32BE:function(i,s){return(i[0+s]<<24|i[1+s]<<16|i[2+s]<<8|i[3+s])>>>0},writeUInt32BE:function(i,s,a){i[0+a]=s>>>24,i[1+a]=s>>>16&255,i[2+a]=s>>>8&255,i[3+a]=255&s},ip:function(i,s,a,u){for(var n=0,p=0,m=6;m>=0;m-=2){for(var y=0;y<=24;y+=8)n<<=1,n|=s>>>y+m&1;for(y=0;y<=24;y+=8)n<<=1,n|=i>>>y+m&1}for(m=6;m>=0;m-=2){for(y=1;y<=25;y+=8)p<<=1,p|=s>>>y+m&1;for(y=1;y<=25;y+=8)p<<=1,p|=i>>>y+m&1}a[u+0]=n>>>0,a[u+1]=p>>>0},rip:function(i,s,a,u){for(var n=0,p=0,m=0;m<4;m++)for(var y=24;y>=0;y-=8)n<<=1,n|=s>>>y+m&1,n<<=1,n|=i>>>y+m&1;for(m=4;m<8;m++)for(y=24;y>=0;y-=8)p<<=1,p|=s>>>y+m&1,p<<=1,p|=i>>>y+m&1;a[u+0]=n>>>0,a[u+1]=p>>>0},pc1:function(i,s,a,u){for(var n=0,p=0,m=7;m>=5;m--){for(var y=0;y<=24;y+=8)n<<=1,n|=s>>y+m&1;for(y=0;y<=24;y+=8)n<<=1,n|=i>>y+m&1}for(y=0;y<=24;y+=8)n<<=1,n|=s>>y+m&1;for(m=1;m<=3;m++){for(y=0;y<=24;y+=8)p<<=1,p|=s>>y+m&1;for(y=0;y<=24;y+=8)p<<=1,p|=i>>y+m&1}for(y=0;y<=24;y+=8)p<<=1,p|=i>>y+m&1;a[u+0]=n>>>0,a[u+1]=p>>>0},r28shl:function(i,s){return i<<s&268435455|i>>>28-s}},t0=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];js.pc2=function(i,s,a,u){for(var n=0,p=0,m=t0.length>>>1,y=0;y<m;y++)n<<=1,n|=i>>>t0[y]&1;for(y=m;y<t0.length;y++)p<<=1,p|=s>>>t0[y]&1;a[u+0]=n>>>0,a[u+1]=p>>>0},js.expand=function(i,s,a){var u=0,n=0;u=(1&i)<<5|i>>>27;for(var p=23;p>=15;p-=4)u<<=6,u|=i>>>p&63;for(p=11;p>=3;p-=4)n|=i>>>p&63,n<<=6;n|=(31&i)<<1|i>>>31,s[a+0]=u>>>0,s[a+1]=n>>>0};var Vw=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];js.substitute=function(i,s){for(var a=0,u=0;u<4;u++)a<<=4,a|=Vw[64*u+(i>>>18-6*u&63)];for(u=0;u<4;u++)a<<=4,a|=Vw[256+64*u+(s>>>18-6*u&63)];return a>>>0};var Ww=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];js.permute=function(i){for(var s=0,a=0;a<Ww.length;a++)s<<=1,s|=i>>>Ww[a]&1;return s>>>0},js.padSplit=function(i,s,a){for(var u=i.toString(2);u.length<s;)u="0"+u;for(var n=[],p=0;p<s;p+=a)n.push(u.slice(p,p+a));return n.join(" ")};var IE,jL=Dn;function Sn(i){this.options=i,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}IE=Sn,Sn.prototype._init=function(){},Sn.prototype.update=function(i){return i.length===0?[]:this.type==="decrypt"?this._updateDecrypt(i):this._updateEncrypt(i)},Sn.prototype._buffer=function(i,s){for(var a=Math.min(this.buffer.length-this.bufferOff,i.length-s),u=0;u<a;u++)this.buffer[this.bufferOff+u]=i[s+u];return this.bufferOff+=a,a},Sn.prototype._flushBuffer=function(i,s){return this._update(this.buffer,0,i,s),this.bufferOff=0,this.blockSize},Sn.prototype._updateEncrypt=function(i){var s=0,a=0,u=(this.bufferOff+i.length)/this.blockSize|0,n=new Array(u*this.blockSize);this.bufferOff!==0&&(s+=this._buffer(i,s),this.bufferOff===this.buffer.length&&(a+=this._flushBuffer(n,a)));for(var p=i.length-(i.length-s)%this.blockSize;s<p;s+=this.blockSize)this._update(i,s,n,a),a+=this.blockSize;for(;s<i.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=i[s];return n},Sn.prototype._updateDecrypt=function(i){for(var s=0,a=0,u=Math.ceil((this.bufferOff+i.length)/this.blockSize)-1,n=new Array(u*this.blockSize);u>0;u--)s+=this._buffer(i,s),a+=this._flushBuffer(n,a);return s+=this._buffer(i,s),n},Sn.prototype.final=function(i){var s,a;return i&&(s=this.update(i)),a=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),s?s.concat(a):a},Sn.prototype._pad=function(i,s){if(s===0)return!1;for(;s<i.length;)i[s++]=0;return!0},Sn.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var i=new Array(this.blockSize);return this._update(this.buffer,0,i,0),i},Sn.prototype._unpad=function(i){return i},Sn.prototype._finalDecrypt=function(){jL.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var i=new Array(this.blockSize);return this._flushBuffer(i,0),this._unpad(i)};var CE,Sb=IE,Xw=Dn,Jr=js,PE=Sb;function HL(){this.tmp=new Array(2),this.keys=null}function ko(i){PE.call(this,i);var s=new HL;this._desState=s,this.deriveKeys(s,i.key)}qe(ko,PE),CE=ko,ko.create=function(i){return new ko(i)};var KL=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];ko.prototype.deriveKeys=function(i,s){i.keys=new Array(32),Xw.equal(s.length,this.blockSize,"Invalid key length");var a=Jr.readUInt32BE(s,0),u=Jr.readUInt32BE(s,4);Jr.pc1(a,u,i.tmp,0),a=i.tmp[0],u=i.tmp[1];for(var n=0;n<i.keys.length;n+=2){var p=KL[n>>>1];a=Jr.r28shl(a,p),u=Jr.r28shl(u,p),Jr.pc2(a,u,i.keys,n)}},ko.prototype._update=function(i,s,a,u){var n=this._desState,p=Jr.readUInt32BE(i,s),m=Jr.readUInt32BE(i,s+4);Jr.ip(p,m,n.tmp,0),p=n.tmp[0],m=n.tmp[1],this.type==="encrypt"?this._encrypt(n,p,m,n.tmp,0):this._decrypt(n,p,m,n.tmp,0),p=n.tmp[0],m=n.tmp[1],Jr.writeUInt32BE(a,p,u),Jr.writeUInt32BE(a,m,u+4)},ko.prototype._pad=function(i,s){for(var a=i.length-s,u=s;u<i.length;u++)i[u]=a;return!0},ko.prototype._unpad=function(i){for(var s=i[i.length-1],a=i.length-s;a<i.length;a++)Xw.equal(i[a],s);return i.slice(0,i.length-s)},ko.prototype._encrypt=function(i,s,a,u,n){for(var p=s,m=a,y=0;y<i.keys.length;y+=2){var M=i.keys[y],b=i.keys[y+1];Jr.expand(m,i.tmp,0),M^=i.tmp[0],b^=i.tmp[1];var g=Jr.substitute(M,b),S=m;m=(p^Jr.permute(g))>>>0,p=S}Jr.rip(m,p,u,n)},ko.prototype._decrypt=function(i,s,a,u,n){for(var p=a,m=s,y=i.keys.length-2;y>=0;y-=2){var M=i.keys[y],b=i.keys[y+1];Jr.expand(p,i.tmp,0),M^=i.tmp[0],b^=i.tmp[1];var g=Jr.substitute(M,b),S=p;p=(m^Jr.permute(g))>>>0,m=S}Jr.rip(p,m,u,n)};var DE=CE,LE={},GL=Dn,ZL=qe,e0={};function VL(i){GL.equal(i.length,8,"Invalid IV length"),this.iv=new Array(8);for(var s=0;s<this.iv.length;s++)this.iv[s]=i[s]}LE.instantiate=function(i){function s(p){i.call(this,p),this._cbcInit()}ZL(s,i);for(var a=Object.keys(e0),u=0;u<a.length;u++){var n=a[u];s.prototype[n]=e0[n]}return s.create=function(p){return new s(p)},s},e0._cbcInit=function(){var i=new VL(this.options.iv);this._cbcState=i},e0._update=function(i,s,a,u){var n=this._cbcState,p=this.constructor.super_.prototype,m=n.iv;if(this.type==="encrypt"){for(var y=0;y<this.blockSize;y++)m[y]^=i[s+y];for(p._update.call(this,m,0,a,u),y=0;y<this.blockSize;y++)m[y]=a[u+y]}else{for(p._update.call(this,i,s,a,u),y=0;y<this.blockSize;y++)a[u+y]^=m[y];for(y=0;y<this.blockSize;y++)m[y]=i[s+y]}};var OE,WL=Dn,NE=Sb,Ca=DE;function XL(i,s){WL.equal(s.length,24,"Invalid key length");var a=s.slice(0,8),u=s.slice(8,16),n=s.slice(16,24);this.ciphers=i==="encrypt"?[Ca.create({type:"encrypt",key:a}),Ca.create({type:"decrypt",key:u}),Ca.create({type:"encrypt",key:n})]:[Ca.create({type:"decrypt",key:n}),Ca.create({type:"encrypt",key:u}),Ca.create({type:"decrypt",key:a})]}function vs(i){NE.call(this,i);var s=new XL(this.type,this.options.key);this._edeState=s}qe(vs,NE),OE=vs,vs.create=function(i){return new vs(i)},vs.prototype._update=function(i,s,a,u){var n=this._edeState;n.ciphers[0]._update(i,s,a,u),n.ciphers[1]._update(a,u,a,u),n.ciphers[2]._update(a,u,a,u)},vs.prototype._pad=Ca.prototype._pad,vs.prototype._unpad=Ca.prototype._unpad;var JL=OE,$h={};$h.utils=js,$h.Cipher=Sb,$h.DES=DE,$h.CBC=LE,$h.EDE=JL;var qE,Y0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,zE=Ua,Zo=$h,YL=qe,$s=er.Buffer,Uf={"des-ede3-cbc":Zo.CBC.instantiate(Zo.EDE),"des-ede3":Zo.EDE,"des-ede-cbc":Zo.CBC.instantiate(Zo.EDE),"des-ede":Zo.EDE,"des-cbc":Zo.CBC.instantiate(Zo.DES),"des-ecb":Zo.DES};function r0(i){zE.call(this||Y0);var s,a=i.mode.toLowerCase(),u=Uf[a];s=i.decrypt?"decrypt":"encrypt";var n=i.key;$s.isBuffer(n)||(n=$s.from(n)),a!=="des-ede"&&a!=="des-ede-cbc"||(n=$s.concat([n,n.slice(0,8)]));var p=i.iv;$s.isBuffer(p)||(p=$s.from(p)),(this||Y0)._des=u.create({key:n,iv:p,type:s})}Uf.des=Uf["des-cbc"],Uf.des3=Uf["des-ede3-cbc"],qE=r0,YL(r0,zE),r0.prototype._update=function(i){return $s.from((this||Y0)._des.update(i))},r0.prototype._final=function(){return $s.from((this||Y0)._des.final())};var QL=qE,tO=Pe.Buffer,cu=function(i,s){for(var a=Math.min(i.length,s.length),u=new tO(a),n=0;n<a;++n)u[n]=i[n]^s[n];return u},UE=function(i){for(var s,a=i.length;a--;){if((s=i.readUInt8(a))!==255){s++,i.writeUInt8(s,a);break}i.writeUInt8(0,a)}},eO={encrypt:function(i,s){return i._cipher.encryptBlock(s)},decrypt:function(i,s){return i._cipher.decryptBlock(s)}},Fg={},Jw=cu;Fg.encrypt=function(i,s){var a=Jw(s,i._prev);return i._prev=i._cipher.encryptBlock(a),i._prev},Fg.decrypt=function(i,s){var a=i._prev;i._prev=s;var u=i._cipher.decryptBlock(s);return Jw(u,a)};var FE={},Ff=er.Buffer,rO=cu;function Yw(i,s,a){var u=s.length,n=rO(s,i._cache);return i._cache=i._cache.slice(u),i._prev=Ff.concat([i._prev,a?s:n]),n}FE.encrypt=function(i,s,a){for(var u,n=Ff.allocUnsafe(0);s.length;){if(i._cache.length===0&&(i._cache=i._cipher.encryptBlock(i._prev),i._prev=Ff.allocUnsafe(0)),!(i._cache.length<=s.length)){n=Ff.concat([n,Yw(i,s,a)]);break}u=i._cache.length,n=Ff.concat([n,Yw(i,s.slice(0,u),a)]),s=s.slice(u)}return n};var jE={},jg=er.Buffer;function iO(i,s,a){var u=i._cipher.encryptBlock(i._prev)[0]^s;return i._prev=jg.concat([i._prev.slice(1),jg.from([a?s:u])]),u}jE.encrypt=function(i,s,a){for(var u=s.length,n=jg.allocUnsafe(u),p=-1;++p<u;)n[p]=iO(i,s[p],a);return n};var HE={},z0=er.Buffer;function nO(i,s,a){for(var u,n,p=-1,m=0;++p<8;)u=s&1<<7-p?128:0,m+=(128&(n=i._cipher.encryptBlock(i._prev)[0]^u))>>p%8,i._prev=oO(i._prev,a?u:n);return m}function oO(i,s){var a=i.length,u=-1,n=z0.allocUnsafe(i.length);for(i=z0.concat([i,z0.from([s])]);++u<a;)n[u]=i[u]<<1|i[u+1]>>7;return n}HE.encrypt=function(i,s,a){for(var u=s.length,n=z0.allocUnsafe(u),p=-1;++p<u;)n[p]=nO(i,s[p],a);return n};var KE={},aO=Pe.Buffer,sO=cu;function hO(i){return i._prev=i._cipher.encryptBlock(i._prev),i._prev}KE.encrypt=function(i,s){for(;i._cache.length<s.length;)i._cache=aO.concat([i._cache,hO(i)]);var a=i._cache.slice(0,s.length);return i._cache=i._cache.slice(s.length),sO(s,a)};var Hg={},fO=cu,Qw=er.Buffer,uO=UE;function lO(i){var s=i._cipher.encryptBlockRaw(i._prev);return uO(i._prev),s}Hg.encrypt=function(i,s){var a=Math.ceil(s.length/16),u=i._cache.length;i._cache=Qw.concat([i._cache,Qw.allocUnsafe(16*a)]);for(var n=0;n<a;n++){var p=lO(i),m=u+16*n;i._cache.writeUInt32BE(p[0],m+0),i._cache.writeUInt32BE(p[1],m+4),i._cache.writeUInt32BE(p[2],m+8),i._cache.writeUInt32BE(p[3],m+12)}var y=i._cache.slice(0,s.length);return i._cache=i._cache.slice(s.length),fO(s,y)};var GE={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}},cO={ECB:eO,CBC:Fg,CFB:FE,CFB8:jE,CFB1:HE,OFB:KE,CTR:Hg,GCM:Hg},U0=GE;for(Zm in U0)U0[Zm].module=cO[U0[Zm].mode];var Zm,xb=U0,$n=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,du={},Q0=er.Buffer;function Kg(i){Q0.isBuffer(i)||(i=Q0.from(i));for(var s=i.length/4|0,a=new Array(s),u=0;u<s;u++)a[u]=i.readUInt32BE(4*u);return a}function Vm(i){for(;0<i.length;i++)i[0]=0}function t9(i,s,a,u,n){for(var p,m,y,M,b=a[0],g=a[1],S=a[2],_=a[3],x=i[0]^s[0],E=i[1]^s[1],k=i[2]^s[2],B=i[3]^s[3],T=4,C=1;C<n;C++)p=b[x>>>24]^g[E>>>16&255]^S[k>>>8&255]^_[255&B]^s[T++],m=b[E>>>24]^g[k>>>16&255]^S[B>>>8&255]^_[255&x]^s[T++],y=b[k>>>24]^g[B>>>16&255]^S[x>>>8&255]^_[255&E]^s[T++],M=b[B>>>24]^g[x>>>16&255]^S[E>>>8&255]^_[255&k]^s[T++],x=p,E=m,k=y,B=M;return p=(u[x>>>24]<<24|u[E>>>16&255]<<16|u[k>>>8&255]<<8|u[255&B])^s[T++],m=(u[E>>>24]<<24|u[k>>>16&255]<<16|u[B>>>8&255]<<8|u[255&x])^s[T++],y=(u[k>>>24]<<24|u[B>>>16&255]<<16|u[x>>>8&255]<<8|u[255&E])^s[T++],M=(u[B>>>24]<<24|u[x>>>16&255]<<16|u[E>>>8&255]<<8|u[255&k])^s[T++],[p>>>=0,m>>>=0,y>>>=0,M>>>=0]}var dO=[0,1,2,4,8,16,32,64,128,27,54],Zr=function(){for(var i=new Array(256),s=0;s<256;s++)i[s]=s<128?s<<1:s<<1^283;for(var a=[],u=[],n=[[],[],[],[]],p=[[],[],[],[]],m=0,y=0,M=0;M<256;++M){var b=y^y<<1^y<<2^y<<3^y<<4;b=b>>>8^255&b^99,a[m]=b,u[b]=m;var g=i[m],S=i[g],_=i[S],x=257*i[b]^16843008*b;n[0][m]=x<<24|x>>>8,n[1][m]=x<<16|x>>>16,n[2][m]=x<<8|x>>>24,n[3][m]=x,x=16843009*_^65537*S^257*g^16843008*m,p[0][b]=x<<24|x>>>8,p[1][b]=x<<16|x>>>16,p[2][b]=x<<8|x>>>24,p[3][b]=x,m===0?m=y=1:(m=g^i[i[i[_^g]]],y^=i[i[y]])}return{SBOX:a,INV_SBOX:u,SUB_MIX:n,INV_SUB_MIX:p}}();function xn(i){(this||$n)._key=Kg(i),this._reset()}xn.blockSize=16,xn.keySize=32,xn.prototype.blockSize=xn.blockSize,xn.prototype.keySize=xn.keySize,xn.prototype._reset=function(){for(var i=(this||$n)._key,s=i.length,a=s+6,u=4*(a+1),n=[],p=0;p<s;p++)n[p]=i[p];for(p=s;p<u;p++){var m=n[p-1];p%s==0?(m=m<<8|m>>>24,m=Zr.SBOX[m>>>24]<<24|Zr.SBOX[m>>>16&255]<<16|Zr.SBOX[m>>>8&255]<<8|Zr.SBOX[255&m],m^=dO[p/s|0]<<24):s>6&&p%s==4&&(m=Zr.SBOX[m>>>24]<<24|Zr.SBOX[m>>>16&255]<<16|Zr.SBOX[m>>>8&255]<<8|Zr.SBOX[255&m]),n[p]=n[p-s]^m}for(var y=[],M=0;M<u;M++){var b=u-M,g=n[b-(M%4?0:4)];y[M]=M<4||b<=4?g:Zr.INV_SUB_MIX[0][Zr.SBOX[g>>>24]]^Zr.INV_SUB_MIX[1][Zr.SBOX[g>>>16&255]]^Zr.INV_SUB_MIX[2][Zr.SBOX[g>>>8&255]]^Zr.INV_SUB_MIX[3][Zr.SBOX[255&g]]}(this||$n)._nRounds=a,(this||$n)._keySchedule=n,(this||$n)._invKeySchedule=y},xn.prototype.encryptBlockRaw=function(i){return t9(i=Kg(i),(this||$n)._keySchedule,Zr.SUB_MIX,Zr.SBOX,(this||$n)._nRounds)},xn.prototype.encryptBlock=function(i){var s=this.encryptBlockRaw(i),a=Q0.allocUnsafe(16);return a.writeUInt32BE(s[0],0),a.writeUInt32BE(s[1],4),a.writeUInt32BE(s[2],8),a.writeUInt32BE(s[3],12),a},xn.prototype.decryptBlock=function(i){var s=(i=Kg(i))[1];i[1]=i[3],i[3]=s;var a=t9(i,(this||$n)._invKeySchedule,Zr.INV_SUB_MIX,Zr.INV_SBOX,(this||$n)._nRounds),u=Q0.allocUnsafe(16);return u.writeUInt32BE(a[0],0),u.writeUInt32BE(a[3],4),u.writeUInt32BE(a[2],8),u.writeUInt32BE(a[1],12),u},xn.prototype.scrub=function(){Vm((this||$n)._keySchedule),Vm((this||$n)._invKeySchedule),Vm((this||$n)._key)},du.AES=xn;var Ti=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,zh=er.Buffer,pO=zh.alloc(16,0);function e9(i){var s=zh.allocUnsafe(16);return s.writeUInt32BE(i[0]>>>0,0),s.writeUInt32BE(i[1]>>>0,4),s.writeUInt32BE(i[2]>>>0,8),s.writeUInt32BE(i[3]>>>0,12),s}function jf(i){(this||Ti).h=i,(this||Ti).state=zh.alloc(16,0),(this||Ti).cache=zh.allocUnsafe(0)}jf.prototype.ghash=function(i){for(var s=-1;++s<i.length;)(this||Ti).state[s]^=i[s];this._multiply()},jf.prototype._multiply=function(){for(var i,s,a,u=[(i=(this||Ti).h).readUInt32BE(0),i.readUInt32BE(4),i.readUInt32BE(8),i.readUInt32BE(12)],n=[0,0,0,0],p=-1;++p<128;){for((this||Ti).state[~~(p/8)]&1<<7-p%8&&(n[0]^=u[0],n[1]^=u[1],n[2]^=u[2],n[3]^=u[3]),a=(1&u[3])!=0,s=3;s>0;s--)u[s]=u[s]>>>1|(1&u[s-1])<<31;u[0]=u[0]>>>1,a&&(u[0]=u[0]^225<<24)}(this||Ti).state=e9(n)},jf.prototype.update=function(i){var s;for((this||Ti).cache=zh.concat([(this||Ti).cache,i]);(this||Ti).cache.length>=16;)s=(this||Ti).cache.slice(0,16),(this||Ti).cache=(this||Ti).cache.slice(16),this.ghash(s)},jf.prototype.final=function(i,s){return(this||Ti).cache.length&&this.ghash(zh.concat([(this||Ti).cache,pO],16)),this.ghash(e9([0,i,0,s])),(this||Ti).state};var mO=jf,Ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,vO=du,Vi=er.Buffer,ZE=Ua,r9=mO,gO=cu,bO=UE;function ks(i,s,a,u){ZE.call(this||Ke);var n=Vi.alloc(4,0);(this||Ke)._cipher=new vO.AES(s);var p=(this||Ke)._cipher.encryptBlock(n);(this||Ke)._ghash=new r9(p),a=function(m,y,M){if(y.length===12)return m._finID=Vi.concat([y,Vi.from([0,0,0,1])]),Vi.concat([y,Vi.from([0,0,0,2])]);var b=new r9(M),g=y.length,S=g%16;b.update(y),S&&(S=16-S,b.update(Vi.alloc(S,0))),b.update(Vi.alloc(8,0));var _=8*g,x=Vi.alloc(8);x.writeUIntBE(_,0,8),b.update(x),m._finID=b.state;var E=Vi.from(m._finID);return bO(E),E}(this||Ke,a,p),(this||Ke)._prev=Vi.from(a),(this||Ke)._cache=Vi.allocUnsafe(0),(this||Ke)._secCache=Vi.allocUnsafe(0),(this||Ke)._decrypt=u,(this||Ke)._alen=0,(this||Ke)._len=0,(this||Ke)._mode=i,(this||Ke)._authTag=null,(this||Ke)._called=!1}qe(ks,ZE),ks.prototype._update=function(i){if(!(this||Ke)._called&&(this||Ke)._alen){var s=16-(this||Ke)._alen%16;s<16&&(s=Vi.alloc(s,0),(this||Ke)._ghash.update(s))}(this||Ke)._called=!0;var a=(this||Ke)._mode.encrypt(this||Ke,i);return(this||Ke)._decrypt?(this||Ke)._ghash.update(i):(this||Ke)._ghash.update(a),(this||Ke)._len+=i.length,a},ks.prototype._final=function(){if((this||Ke)._decrypt&&!(this||Ke)._authTag)throw new Error("Unsupported state or unable to authenticate data");var i=gO((this||Ke)._ghash.final(8*(this||Ke)._alen,8*(this||Ke)._len),(this||Ke)._cipher.encryptBlock((this||Ke)._finID));if((this||Ke)._decrypt&&function(s,a){var u=0;s.length!==a.length&&u++;for(var n=Math.min(s.length,a.length),p=0;p<n;++p)u+=s[p]^a[p];return u}(i,(this||Ke)._authTag))throw new Error("Unsupported state or unable to authenticate data");(this||Ke)._authTag=i,(this||Ke)._cipher.scrub()},ks.prototype.getAuthTag=function(){if((this||Ke)._decrypt||!Vi.isBuffer((this||Ke)._authTag))throw new Error("Attempting to get auth tag in unsupported state");return(this||Ke)._authTag},ks.prototype.setAuthTag=function(i){if(!(this||Ke)._decrypt)throw new Error("Attempting to set auth tag in unsupported state");(this||Ke)._authTag=i},ks.prototype.setAAD=function(i){if((this||Ke)._called)throw new Error("Attempting to set AAD in unsupported state");(this||Ke)._ghash.update(i),(this||Ke)._alen+=i.length};var VE=ks,eo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,yO=du,Wm=er.Buffer,WE=Ua;function F0(i,s,a,u){WE.call(this||eo),(this||eo)._cipher=new yO.AES(s),(this||eo)._prev=Wm.from(a),(this||eo)._cache=Wm.allocUnsafe(0),(this||eo)._secCache=Wm.allocUnsafe(0),(this||eo)._decrypt=u,(this||eo)._mode=i}qe(F0,WE),F0.prototype._update=function(i){return(this||eo)._mode.encrypt(this||eo,i,(this||eo)._decrypt)},F0.prototype._final=function(){(this||eo)._cipher.scrub()};var XE=F0,gs=er.Buffer,wO=wb,pc=function(i,s,a,u){if(gs.isBuffer(i)||(i=gs.from(i,"binary")),s&&(gs.isBuffer(s)||(s=gs.from(s,"binary")),s.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=a/8,p=gs.alloc(n),m=gs.alloc(u||0),y=gs.alloc(0);n>0||u>0;){var M=new wO;M.update(y),M.update(i),s&&M.update(s),y=M.digest();var b=0;if(n>0){var g=p.length-n;b=Math.min(n,y.length),y.copy(p,g,0,b),n-=b}if(b<y.length&&u>0){var S=m.length-u,_=Math.min(u,y.length-b);y.copy(m,S,b,b+_),u-=_}}return y.fill(0),{key:p,iv:m}},dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,Gg={},MO=VE,Uh=er.Buffer,JE=xb,_O=XE,YE=Ua,SO=du,xO=pc;function Hf(i,s,a){YE.call(this||dr),(this||dr)._cache=new j0,(this||dr)._last=void 0,(this||dr)._cipher=new SO.AES(s),(this||dr)._prev=Uh.from(a),(this||dr)._mode=i,(this||dr)._autopadding=!0}function j0(){(this||dr).cache=Uh.allocUnsafe(0)}function i9(i,s,a){var u=JE[i.toLowerCase()];if(!u)throw new TypeError("invalid suite type");if(typeof a=="string"&&(a=Uh.from(a)),u.mode!=="GCM"&&a.length!==u.iv)throw new TypeError("invalid iv length "+a.length);if(typeof s=="string"&&(s=Uh.from(s)),s.length!==u.key/8)throw new TypeError("invalid key length "+s.length);return u.type==="stream"?new _O(u.module,s,a,!0):u.type==="auth"?new MO(u.module,s,a,!0):new Hf(u.module,s,a)}qe(Hf,YE),Hf.prototype._update=function(i){var s,a;(this||dr)._cache.add(i);for(var u=[];s=(this||dr)._cache.get((this||dr)._autopadding);)a=(this||dr)._mode.decrypt(this||dr,s),u.push(a);return Uh.concat(u)},Hf.prototype._final=function(){var i=(this||dr)._cache.flush();if((this||dr)._autopadding)return function(s){var a=s[15];if(a<1||a>16)throw new Error("unable to decrypt data");for(var u=-1;++u<a;)if(s[u+(16-a)]!==a)throw new Error("unable to decrypt data");if(a!==16)return s.slice(0,16-a)}((this||dr)._mode.decrypt(this||dr,i));if(i)throw new Error("data not multiple of block length")},Hf.prototype.setAutoPadding=function(i){return(this||dr)._autopadding=!!i,this||dr},j0.prototype.add=function(i){(this||dr).cache=Uh.concat([(this||dr).cache,i])},j0.prototype.get=function(i){var s;if(i){if((this||dr).cache.length>16)return s=(this||dr).cache.slice(0,16),(this||dr).cache=(this||dr).cache.slice(16),s}else if((this||dr).cache.length>=16)return s=(this||dr).cache.slice(0,16),(this||dr).cache=(this||dr).cache.slice(16),s;return null},j0.prototype.flush=function(){if((this||dr).cache.length)return(this||dr).cache},Gg.createDecipher=function(i,s){var a=JE[i.toLowerCase()];if(!a)throw new TypeError("invalid suite type");var u=xO(s,!1,a.key,a.iv);return i9(i,u.key,u.iv)},Gg.createDecipheriv=i9;var kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,Zg={},QE=xb,EO=VE,ea=er.Buffer,AO=XE,tA=Ua,kO=du,RO=pc;function ru(i,s,a){tA.call(this||kr),(this||kr)._cache=new H0,(this||kr)._cipher=new kO.AES(s),(this||kr)._prev=ea.from(a),(this||kr)._mode=i,(this||kr)._autopadding=!0}qe(ru,tA),ru.prototype._update=function(i){var s,a;(this||kr)._cache.add(i);for(var u=[];s=(this||kr)._cache.get();)a=(this||kr)._mode.encrypt(this||kr,s),u.push(a);return ea.concat(u)};var BO=ea.alloc(16,16);function H0(){(this||kr).cache=ea.allocUnsafe(0)}function n9(i,s,a){var u=QE[i.toLowerCase()];if(!u)throw new TypeError("invalid suite type");if(typeof s=="string"&&(s=ea.from(s)),s.length!==u.key/8)throw new TypeError("invalid key length "+s.length);if(typeof a=="string"&&(a=ea.from(a)),u.mode!=="GCM"&&a.length!==u.iv)throw new TypeError("invalid iv length "+a.length);return u.type==="stream"?new AO(u.module,s,a):u.type==="auth"?new EO(u.module,s,a):new ru(u.module,s,a)}ru.prototype._final=function(){var i=(this||kr)._cache.flush();if((this||kr)._autopadding)return i=(this||kr)._mode.encrypt(this||kr,i),(this||kr)._cipher.scrub(),i;if(!i.equals(BO))throw(this||kr)._cipher.scrub(),new Error("data not multiple of block length")},ru.prototype.setAutoPadding=function(i){return(this||kr)._autopadding=!!i,this||kr},H0.prototype.add=function(i){(this||kr).cache=ea.concat([(this||kr).cache,i])},H0.prototype.get=function(){if((this||kr).cache.length>15){var i=(this||kr).cache.slice(0,16);return(this||kr).cache=(this||kr).cache.slice(16),i}return null},H0.prototype.flush=function(){for(var i=16-(this||kr).cache.length,s=ea.allocUnsafe(i),a=-1;++a<i;)s.writeUInt8(i,a);return ea.concat([(this||kr).cache,s])},Zg.createCipheriv=n9,Zg.createCipher=function(i,s){var a=QE[i.toLowerCase()];if(!a)throw new TypeError("invalid suite type");var u=RO(s,!1,a.key,a.iv);return n9(i,u.key,u.iv)};var ln={},o9=Zg,a9=Gg,TO=GE;ln.createCipher=ln.Cipher=o9.createCipher,ln.createCipheriv=ln.Cipheriv=o9.createCipheriv,ln.createDecipher=ln.Decipher=a9.createDecipher,ln.createDecipheriv=ln.Decipheriv=a9.createDecipheriv,ln.listCiphers=ln.getCiphers=function(){return Object.keys(TO)};var Aa={"des-ecb":{key:8,iv:0}};Aa["des-cbc"]=Aa.des={key:8,iv:8},Aa["des-ede3-cbc"]=Aa.des3={key:24,iv:8},Aa["des-ede3"]={key:24,iv:0},Aa["des-ede-cbc"]={key:16,iv:8},Aa["des-ede"]={key:16,iv:0};var Yn={},eA=QL,Eb=ln,Pa=xb,Wo=Aa,s9=pc;function h9(i,s,a){if(i=i.toLowerCase(),Pa[i])return Eb.createCipheriv(i,s,a);if(Wo[i])return new eA({key:s,iv:a,mode:i});throw new TypeError("invalid suite type")}function f9(i,s,a){if(i=i.toLowerCase(),Pa[i])return Eb.createDecipheriv(i,s,a);if(Wo[i])return new eA({key:s,iv:a,mode:i,decrypt:!0});throw new TypeError("invalid suite type")}Yn.createCipher=Yn.Cipher=function(i,s){var a,u;if(i=i.toLowerCase(),Pa[i])a=Pa[i].key,u=Pa[i].iv;else{if(!Wo[i])throw new TypeError("invalid suite type");a=8*Wo[i].key,u=Wo[i].iv}var n=s9(s,!1,a,u);return h9(i,n.key,n.iv)},Yn.createCipheriv=Yn.Cipheriv=h9,Yn.createDecipher=Yn.Decipher=function(i,s){var a,u;if(i=i.toLowerCase(),Pa[i])a=Pa[i].key,u=Pa[i].iv;else{if(!Wo[i])throw new TypeError("invalid suite type");a=8*Wo[i].key,u=Wo[i].iv}var n=s9(s,!1,a,u);return f9(i,n.key,n.iv)},Yn.createDecipheriv=Yn.Decipheriv=f9,Yn.listCiphers=Yn.getCiphers=function(){return Object.keys(Wo).concat(Eb.getCiphers())};var $O=Object.freeze({}),ct=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,rA={},iA={exports:rA};(function(i,s){function a(I,D){if(!I)throw new Error(D||"Assertion failed")}function u(I,D){I.super_=D;var z=function(){};z.prototype=D.prototype,I.prototype=new z,I.prototype.constructor=I}function n(I,D,z){if(n.isBN(I))return I;(this||ct).negative=0,(this||ct).words=null,(this||ct).length=0,(this||ct).red=null,I!==null&&(D!=="le"&&D!=="be"||(z=D,D=10),this._init(I||0,D||10,z||"be"))}var p;typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;try{p=$O.Buffer}catch{}function m(I,D,z){for(var d=0,t=Math.min(I.length,z),r=D;r<t;r++){var o=I.charCodeAt(r)-48;d<<=4,d|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return d}function y(I,D,z,d){for(var t=0,r=Math.min(I.length,z),o=D;o<r;o++){var h=I.charCodeAt(o)-48;t*=d,t+=h>=49?h-49+10:h>=17?h-17+10:h}return t}n.isBN=function(I){return I instanceof n||I!==null&&typeof I=="object"&&I.constructor.wordSize===n.wordSize&&Array.isArray(I.words)},n.max=function(I,D){return I.cmp(D)>0?I:D},n.min=function(I,D){return I.cmp(D)<0?I:D},n.prototype._init=function(I,D,z){if(typeof I=="number")return this._initNumber(I,D,z);if(typeof I=="object")return this._initArray(I,D,z);D==="hex"&&(D=16),a(D===(0|D)&&D>=2&&D<=36);var d=0;(I=I.toString().replace(/\s+/g,""))[0]==="-"&&d++,D===16?this._parseHex(I,d):this._parseBase(I,D,d),I[0]==="-"&&((this||ct).negative=1),this.strip(),z==="le"&&this._initArray(this.toArray(),D,z)},n.prototype._initNumber=function(I,D,z){I<0&&((this||ct).negative=1,I=-I),I<67108864?((this||ct).words=[67108863&I],(this||ct).length=1):I<4503599627370496?((this||ct).words=[67108863&I,I/67108864&67108863],(this||ct).length=2):(a(I<9007199254740992),(this||ct).words=[67108863&I,I/67108864&67108863,1],(this||ct).length=3),z==="le"&&this._initArray(this.toArray(),D,z)},n.prototype._initArray=function(I,D,z){if(a(typeof I.length=="number"),I.length<=0)return(this||ct).words=[0],(this||ct).length=1,this||ct;(this||ct).length=Math.ceil(I.length/3),(this||ct).words=new Array((this||ct).length);for(var d=0;d<(this||ct).length;d++)(this||ct).words[d]=0;var t,r,o=0;if(z==="be")for(d=I.length-1,t=0;d>=0;d-=3)r=I[d]|I[d-1]<<8|I[d-2]<<16,(this||ct).words[t]|=r<<o&67108863,(this||ct).words[t+1]=r>>>26-o&67108863,(o+=24)>=26&&(o-=26,t++);else if(z==="le")for(d=0,t=0;d<I.length;d+=3)r=I[d]|I[d+1]<<8|I[d+2]<<16,(this||ct).words[t]|=r<<o&67108863,(this||ct).words[t+1]=r>>>26-o&67108863,(o+=24)>=26&&(o-=26,t++);return this.strip()},n.prototype._parseHex=function(I,D){(this||ct).length=Math.ceil((I.length-D)/6),(this||ct).words=new Array((this||ct).length);for(var z=0;z<(this||ct).length;z++)(this||ct).words[z]=0;var d,t,r=0;for(z=I.length-6,d=0;z>=D;z-=6)t=m(I,z,z+6),(this||ct).words[d]|=t<<r&67108863,(this||ct).words[d+1]|=t>>>26-r&4194303,(r+=24)>=26&&(r-=26,d++);z+6!==D&&(t=m(I,D,z+6),(this||ct).words[d]|=t<<r&67108863,(this||ct).words[d+1]|=t>>>26-r&4194303),this.strip()},n.prototype._parseBase=function(I,D,z){(this||ct).words=[0],(this||ct).length=1;for(var d=0,t=1;t<=67108863;t*=D)d++;d--,t=t/D|0;for(var r=I.length-z,o=r%d,h=Math.min(r,r-o)+z,f=0,v=z;v<h;v+=d)f=y(I,v,v+d,D),this.imuln(t),(this||ct).words[0]+f<67108864?(this||ct).words[0]+=f:this._iaddn(f);if(o!==0){var w=1;for(f=y(I,v,I.length,D),v=0;v<o;v++)w*=D;this.imuln(w),(this||ct).words[0]+f<67108864?(this||ct).words[0]+=f:this._iaddn(f)}},n.prototype.copy=function(I){I.words=new Array((this||ct).length);for(var D=0;D<(this||ct).length;D++)I.words[D]=(this||ct).words[D];I.length=(this||ct).length,I.negative=(this||ct).negative,I.red=(this||ct).red},n.prototype.clone=function(){var I=new n(null);return this.copy(I),I},n.prototype._expand=function(I){for(;(this||ct).length<I;)(this||ct).words[(this||ct).length++]=0;return this||ct},n.prototype.strip=function(){for(;(this||ct).length>1&&(this||ct).words[(this||ct).length-1]===0;)(this||ct).length--;return this._normSign()},n.prototype._normSign=function(){return(this||ct).length===1&&(this||ct).words[0]===0&&((this||ct).negative=0),this||ct},n.prototype.inspect=function(){return((this||ct).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function S(I,D,z){z.negative=D.negative^I.negative;var d=I.length+D.length|0;z.length=d,d=d-1|0;var t=0|I.words[0],r=0|D.words[0],o=t*r,h=67108863&o,f=o/67108864|0;z.words[0]=h;for(var v=1;v<d;v++){for(var w=f>>>26,l=67108863&f,e=Math.min(v,D.length-1),c=Math.max(0,v-I.length+1);c<=e;c++){var A=v-c|0;w+=(o=(t=0|I.words[A])*(r=0|D.words[c])+l)/67108864|0,l=67108863&o}z.words[v]=0|l,f=0|w}return f!==0?z.words[v]=0|f:z.length--,z.strip()}n.prototype.toString=function(I,D){var z;if(D=0|D||1,(I=I||10)===16||I==="hex"){z="";for(var d=0,t=0,r=0;r<(this||ct).length;r++){var o=(this||ct).words[r],h=(16777215&(o<<d|t)).toString(16);z=(t=o>>>24-d&16777215)!==0||r!==(this||ct).length-1?M[6-h.length]+h+z:h+z,(d+=2)>=26&&(d-=26,r--)}for(t!==0&&(z=t.toString(16)+z);z.length%D!=0;)z="0"+z;return(this||ct).negative!==0&&(z="-"+z),z}if(I===(0|I)&&I>=2&&I<=36){var f=b[I],v=g[I];z="";var w=this.clone();for(w.negative=0;!w.isZero();){var l=w.modn(v).toString(I);z=(w=w.idivn(v)).isZero()?l+z:M[f-l.length]+l+z}for(this.isZero()&&(z="0"+z);z.length%D!=0;)z="0"+z;return(this||ct).negative!==0&&(z="-"+z),z}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var I=(this||ct).words[0];return(this||ct).length===2?I+=67108864*(this||ct).words[1]:(this||ct).length===3&&(this||ct).words[2]===1?I+=4503599627370496+67108864*(this||ct).words[1]:(this||ct).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||ct).negative!==0?-I:I},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(I,D){return a(p!==void 0),this.toArrayLike(p,I,D)},n.prototype.toArray=function(I,D){return this.toArrayLike(Array,I,D)},n.prototype.toArrayLike=function(I,D,z){var d=this.byteLength(),t=z||Math.max(1,d);a(d<=t,"byte array longer than desired length"),a(t>0,"Requested array length <= 0"),this.strip();var r,o,h=D==="le",f=new I(t),v=this.clone();if(h){for(o=0;!v.isZero();o++)r=v.andln(255),v.iushrn(8),f[o]=r;for(;o<t;o++)f[o]=0}else{for(o=0;o<t-d;o++)f[o]=0;for(o=0;!v.isZero();o++)r=v.andln(255),v.iushrn(8),f[t-o-1]=r}return f},Math.clz32?n.prototype._countBits=function(I){return 32-Math.clz32(I)}:n.prototype._countBits=function(I){var D=I,z=0;return D>=4096&&(z+=13,D>>>=13),D>=64&&(z+=7,D>>>=7),D>=8&&(z+=4,D>>>=4),D>=2&&(z+=2,D>>>=2),z+D},n.prototype._zeroBits=function(I){if(I===0)return 26;var D=I,z=0;return!(8191&D)&&(z+=13,D>>>=13),!(127&D)&&(z+=7,D>>>=7),!(15&D)&&(z+=4,D>>>=4),!(3&D)&&(z+=2,D>>>=2),!(1&D)&&z++,z},n.prototype.bitLength=function(){var I=(this||ct).words[(this||ct).length-1],D=this._countBits(I);return 26*((this||ct).length-1)+D},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var I=0,D=0;D<(this||ct).length;D++){var z=this._zeroBits((this||ct).words[D]);if(I+=z,z!==26)break}return I},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(I){return(this||ct).negative!==0?this.abs().inotn(I).iaddn(1):this.clone()},n.prototype.fromTwos=function(I){return this.testn(I-1)?this.notn(I).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||ct).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||ct).negative^=1),this||ct},n.prototype.iuor=function(I){for(;(this||ct).length<I.length;)(this||ct).words[(this||ct).length++]=0;for(var D=0;D<I.length;D++)(this||ct).words[D]=(this||ct).words[D]|I.words[D];return this.strip()},n.prototype.ior=function(I){return a(((this||ct).negative|I.negative)==0),this.iuor(I)},n.prototype.or=function(I){return(this||ct).length>I.length?this.clone().ior(I):I.clone().ior(this||ct)},n.prototype.uor=function(I){return(this||ct).length>I.length?this.clone().iuor(I):I.clone().iuor(this||ct)},n.prototype.iuand=function(I){var D;D=(this||ct).length>I.length?I:this||ct;for(var z=0;z<D.length;z++)(this||ct).words[z]=(this||ct).words[z]&I.words[z];return(this||ct).length=D.length,this.strip()},n.prototype.iand=function(I){return a(((this||ct).negative|I.negative)==0),this.iuand(I)},n.prototype.and=function(I){return(this||ct).length>I.length?this.clone().iand(I):I.clone().iand(this||ct)},n.prototype.uand=function(I){return(this||ct).length>I.length?this.clone().iuand(I):I.clone().iuand(this||ct)},n.prototype.iuxor=function(I){var D,z;(this||ct).length>I.length?(D=this||ct,z=I):(D=I,z=this||ct);for(var d=0;d<z.length;d++)(this||ct).words[d]=D.words[d]^z.words[d];if((this||ct)!==D)for(;d<D.length;d++)(this||ct).words[d]=D.words[d];return(this||ct).length=D.length,this.strip()},n.prototype.ixor=function(I){return a(((this||ct).negative|I.negative)==0),this.iuxor(I)},n.prototype.xor=function(I){return(this||ct).length>I.length?this.clone().ixor(I):I.clone().ixor(this||ct)},n.prototype.uxor=function(I){return(this||ct).length>I.length?this.clone().iuxor(I):I.clone().iuxor(this||ct)},n.prototype.inotn=function(I){a(typeof I=="number"&&I>=0);var D=0|Math.ceil(I/26),z=I%26;this._expand(D),z>0&&D--;for(var d=0;d<D;d++)(this||ct).words[d]=67108863&~(this||ct).words[d];return z>0&&((this||ct).words[d]=~(this||ct).words[d]&67108863>>26-z),this.strip()},n.prototype.notn=function(I){return this.clone().inotn(I)},n.prototype.setn=function(I,D){a(typeof I=="number"&&I>=0);var z=I/26|0,d=I%26;return this._expand(z+1),(this||ct).words[z]=D?(this||ct).words[z]|1<<d:(this||ct).words[z]&~(1<<d),this.strip()},n.prototype.iadd=function(I){var D,z,d;if((this||ct).negative!==0&&I.negative===0)return(this||ct).negative=0,D=this.isub(I),(this||ct).negative^=1,this._normSign();if((this||ct).negative===0&&I.negative!==0)return I.negative=0,D=this.isub(I),I.negative=1,D._normSign();(this||ct).length>I.length?(z=this||ct,d=I):(z=I,d=this||ct);for(var t=0,r=0;r<d.length;r++)D=(0|z.words[r])+(0|d.words[r])+t,(this||ct).words[r]=67108863&D,t=D>>>26;for(;t!==0&&r<z.length;r++)D=(0|z.words[r])+t,(this||ct).words[r]=67108863&D,t=D>>>26;if((this||ct).length=z.length,t!==0)(this||ct).words[(this||ct).length]=t,(this||ct).length++;else if(z!==(this||ct))for(;r<z.length;r++)(this||ct).words[r]=z.words[r];return this||ct},n.prototype.add=function(I){var D;return I.negative!==0&&(this||ct).negative===0?(I.negative=0,D=this.sub(I),I.negative^=1,D):I.negative===0&&(this||ct).negative!==0?((this||ct).negative=0,D=I.sub(this||ct),(this||ct).negative=1,D):(this||ct).length>I.length?this.clone().iadd(I):I.clone().iadd(this||ct)},n.prototype.isub=function(I){if(I.negative!==0){I.negative=0;var D=this.iadd(I);return I.negative=1,D._normSign()}if((this||ct).negative!==0)return(this||ct).negative=0,this.iadd(I),(this||ct).negative=1,this._normSign();var z,d,t=this.cmp(I);if(t===0)return(this||ct).negative=0,(this||ct).length=1,(this||ct).words[0]=0,this||ct;t>0?(z=this||ct,d=I):(z=I,d=this||ct);for(var r=0,o=0;o<d.length;o++)r=(D=(0|z.words[o])-(0|d.words[o])+r)>>26,(this||ct).words[o]=67108863&D;for(;r!==0&&o<z.length;o++)r=(D=(0|z.words[o])+r)>>26,(this||ct).words[o]=67108863&D;if(r===0&&o<z.length&&z!==(this||ct))for(;o<z.length;o++)(this||ct).words[o]=z.words[o];return(this||ct).length=Math.max((this||ct).length,o),z!==(this||ct)&&((this||ct).negative=1),this.strip()},n.prototype.sub=function(I){return this.clone().isub(I)};var _=function(I,D,z){var d,t,r,o=I.words,h=D.words,f=z.words,v=0,w=0|o[0],l=8191&w,e=w>>>13,c=0|o[1],A=8191&c,R=c>>>13,$=0|o[2],L=8191&$,j=$>>>13,pt=0|o[3],W=8191&pt,N=pt>>>13,X=0|o[4],jt=8191&X,gt=X>>>13,q=0|o[5],K=8191&q,J=q>>>13,bt=0|o[6],Kt=8191&bt,mt=bt>>>13,Mt=0|o[7],Wt=8191&Mt,wt=Mt>>>13,Tt=0|o[8],Zt=8191&Tt,_t=Tt>>>13,Pt=0|o[9],Jt=8191&Pt,F=Pt>>>13,O=0|h[0],H=8191&O,Z=O>>>13,dt=0|h[1],Ht=8191&dt,vt=dt>>>13,$t=0|h[2],Vt=8191&$t,yt=$t>>>13,Ct=0|h[3],Gt=8191&Ct,St=Ct>>>13,Ot=0|h[4],Qt=8191&Ot,xt=Ot>>>13,Nt=0|h[5],te=8191&Nt,Et=Nt>>>13,qt=0|h[6],ee=8191&qt,At=qt>>>13,zt=0|h[7],re=8191&zt,kt=zt>>>13,Ut=0|h[8],ie=8191&Ut,Rt=Ut>>>13,Ft=0|h[9],ne=8191&Ft,Bt=Ft>>>13;z.negative=I.negative^D.negative,z.length=19;var Dt=(v+(d=Math.imul(l,H))|0)+((8191&(t=(t=Math.imul(l,Z))+Math.imul(e,H)|0))<<13)|0;v=((r=Math.imul(e,Z))+(t>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,d=Math.imul(A,H),t=(t=Math.imul(A,Z))+Math.imul(R,H)|0,r=Math.imul(R,Z);var ce=(v+(d=d+Math.imul(l,Ht)|0)|0)+((8191&(t=(t=t+Math.imul(l,vt)|0)+Math.imul(e,Ht)|0))<<13)|0;v=((r=r+Math.imul(e,vt)|0)+(t>>>13)|0)+(ce>>>26)|0,ce&=67108863,d=Math.imul(L,H),t=(t=Math.imul(L,Z))+Math.imul(j,H)|0,r=Math.imul(j,Z),d=d+Math.imul(A,Ht)|0,t=(t=t+Math.imul(A,vt)|0)+Math.imul(R,Ht)|0,r=r+Math.imul(R,vt)|0;var It=(v+(d=d+Math.imul(l,Vt)|0)|0)+((8191&(t=(t=t+Math.imul(l,yt)|0)+Math.imul(e,Vt)|0))<<13)|0;v=((r=r+Math.imul(e,yt)|0)+(t>>>13)|0)+(It>>>26)|0,It&=67108863,d=Math.imul(W,H),t=(t=Math.imul(W,Z))+Math.imul(N,H)|0,r=Math.imul(N,Z),d=d+Math.imul(L,Ht)|0,t=(t=t+Math.imul(L,vt)|0)+Math.imul(j,Ht)|0,r=r+Math.imul(j,vt)|0,d=d+Math.imul(A,Vt)|0,t=(t=t+Math.imul(A,yt)|0)+Math.imul(R,Vt)|0,r=r+Math.imul(R,yt)|0;var Lt=(v+(d=d+Math.imul(l,Gt)|0)|0)+((8191&(t=(t=t+Math.imul(l,St)|0)+Math.imul(e,Gt)|0))<<13)|0;v=((r=r+Math.imul(e,St)|0)+(t>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,d=Math.imul(jt,H),t=(t=Math.imul(jt,Z))+Math.imul(gt,H)|0,r=Math.imul(gt,Z),d=d+Math.imul(W,Ht)|0,t=(t=t+Math.imul(W,vt)|0)+Math.imul(N,Ht)|0,r=r+Math.imul(N,vt)|0,d=d+Math.imul(L,Vt)|0,t=(t=t+Math.imul(L,yt)|0)+Math.imul(j,Vt)|0,r=r+Math.imul(j,yt)|0,d=d+Math.imul(A,Gt)|0,t=(t=t+Math.imul(A,St)|0)+Math.imul(R,Gt)|0,r=r+Math.imul(R,St)|0;var ae=(v+(d=d+Math.imul(l,Qt)|0)|0)+((8191&(t=(t=t+Math.imul(l,xt)|0)+Math.imul(e,Qt)|0))<<13)|0;v=((r=r+Math.imul(e,xt)|0)+(t>>>13)|0)+(ae>>>26)|0,ae&=67108863,d=Math.imul(K,H),t=(t=Math.imul(K,Z))+Math.imul(J,H)|0,r=Math.imul(J,Z),d=d+Math.imul(jt,Ht)|0,t=(t=t+Math.imul(jt,vt)|0)+Math.imul(gt,Ht)|0,r=r+Math.imul(gt,vt)|0,d=d+Math.imul(W,Vt)|0,t=(t=t+Math.imul(W,yt)|0)+Math.imul(N,Vt)|0,r=r+Math.imul(N,yt)|0,d=d+Math.imul(L,Gt)|0,t=(t=t+Math.imul(L,St)|0)+Math.imul(j,Gt)|0,r=r+Math.imul(j,St)|0,d=d+Math.imul(A,Qt)|0,t=(t=t+Math.imul(A,xt)|0)+Math.imul(R,Qt)|0,r=r+Math.imul(R,xt)|0;var se=(v+(d=d+Math.imul(l,te)|0)|0)+((8191&(t=(t=t+Math.imul(l,Et)|0)+Math.imul(e,te)|0))<<13)|0;v=((r=r+Math.imul(e,Et)|0)+(t>>>13)|0)+(se>>>26)|0,se&=67108863,d=Math.imul(Kt,H),t=(t=Math.imul(Kt,Z))+Math.imul(mt,H)|0,r=Math.imul(mt,Z),d=d+Math.imul(K,Ht)|0,t=(t=t+Math.imul(K,vt)|0)+Math.imul(J,Ht)|0,r=r+Math.imul(J,vt)|0,d=d+Math.imul(jt,Vt)|0,t=(t=t+Math.imul(jt,yt)|0)+Math.imul(gt,Vt)|0,r=r+Math.imul(gt,yt)|0,d=d+Math.imul(W,Gt)|0,t=(t=t+Math.imul(W,St)|0)+Math.imul(N,Gt)|0,r=r+Math.imul(N,St)|0,d=d+Math.imul(L,Qt)|0,t=(t=t+Math.imul(L,xt)|0)+Math.imul(j,Qt)|0,r=r+Math.imul(j,xt)|0,d=d+Math.imul(A,te)|0,t=(t=t+Math.imul(A,Et)|0)+Math.imul(R,te)|0,r=r+Math.imul(R,Et)|0;var me=(v+(d=d+Math.imul(l,ee)|0)|0)+((8191&(t=(t=t+Math.imul(l,At)|0)+Math.imul(e,ee)|0))<<13)|0;v=((r=r+Math.imul(e,At)|0)+(t>>>13)|0)+(me>>>26)|0,me&=67108863,d=Math.imul(Wt,H),t=(t=Math.imul(Wt,Z))+Math.imul(wt,H)|0,r=Math.imul(wt,Z),d=d+Math.imul(Kt,Ht)|0,t=(t=t+Math.imul(Kt,vt)|0)+Math.imul(mt,Ht)|0,r=r+Math.imul(mt,vt)|0,d=d+Math.imul(K,Vt)|0,t=(t=t+Math.imul(K,yt)|0)+Math.imul(J,Vt)|0,r=r+Math.imul(J,yt)|0,d=d+Math.imul(jt,Gt)|0,t=(t=t+Math.imul(jt,St)|0)+Math.imul(gt,Gt)|0,r=r+Math.imul(gt,St)|0,d=d+Math.imul(W,Qt)|0,t=(t=t+Math.imul(W,xt)|0)+Math.imul(N,Qt)|0,r=r+Math.imul(N,xt)|0,d=d+Math.imul(L,te)|0,t=(t=t+Math.imul(L,Et)|0)+Math.imul(j,te)|0,r=r+Math.imul(j,Et)|0,d=d+Math.imul(A,ee)|0,t=(t=t+Math.imul(A,At)|0)+Math.imul(R,ee)|0,r=r+Math.imul(R,At)|0;var ve=(v+(d=d+Math.imul(l,re)|0)|0)+((8191&(t=(t=t+Math.imul(l,kt)|0)+Math.imul(e,re)|0))<<13)|0;v=((r=r+Math.imul(e,kt)|0)+(t>>>13)|0)+(ve>>>26)|0,ve&=67108863,d=Math.imul(Zt,H),t=(t=Math.imul(Zt,Z))+Math.imul(_t,H)|0,r=Math.imul(_t,Z),d=d+Math.imul(Wt,Ht)|0,t=(t=t+Math.imul(Wt,vt)|0)+Math.imul(wt,Ht)|0,r=r+Math.imul(wt,vt)|0,d=d+Math.imul(Kt,Vt)|0,t=(t=t+Math.imul(Kt,yt)|0)+Math.imul(mt,Vt)|0,r=r+Math.imul(mt,yt)|0,d=d+Math.imul(K,Gt)|0,t=(t=t+Math.imul(K,St)|0)+Math.imul(J,Gt)|0,r=r+Math.imul(J,St)|0,d=d+Math.imul(jt,Qt)|0,t=(t=t+Math.imul(jt,xt)|0)+Math.imul(gt,Qt)|0,r=r+Math.imul(gt,xt)|0,d=d+Math.imul(W,te)|0,t=(t=t+Math.imul(W,Et)|0)+Math.imul(N,te)|0,r=r+Math.imul(N,Et)|0,d=d+Math.imul(L,ee)|0,t=(t=t+Math.imul(L,At)|0)+Math.imul(j,ee)|0,r=r+Math.imul(j,At)|0,d=d+Math.imul(A,re)|0,t=(t=t+Math.imul(A,kt)|0)+Math.imul(R,re)|0,r=r+Math.imul(R,kt)|0;var ge=(v+(d=d+Math.imul(l,ie)|0)|0)+((8191&(t=(t=t+Math.imul(l,Rt)|0)+Math.imul(e,ie)|0))<<13)|0;v=((r=r+Math.imul(e,Rt)|0)+(t>>>13)|0)+(ge>>>26)|0,ge&=67108863,d=Math.imul(Jt,H),t=(t=Math.imul(Jt,Z))+Math.imul(F,H)|0,r=Math.imul(F,Z),d=d+Math.imul(Zt,Ht)|0,t=(t=t+Math.imul(Zt,vt)|0)+Math.imul(_t,Ht)|0,r=r+Math.imul(_t,vt)|0,d=d+Math.imul(Wt,Vt)|0,t=(t=t+Math.imul(Wt,yt)|0)+Math.imul(wt,Vt)|0,r=r+Math.imul(wt,yt)|0,d=d+Math.imul(Kt,Gt)|0,t=(t=t+Math.imul(Kt,St)|0)+Math.imul(mt,Gt)|0,r=r+Math.imul(mt,St)|0,d=d+Math.imul(K,Qt)|0,t=(t=t+Math.imul(K,xt)|0)+Math.imul(J,Qt)|0,r=r+Math.imul(J,xt)|0,d=d+Math.imul(jt,te)|0,t=(t=t+Math.imul(jt,Et)|0)+Math.imul(gt,te)|0,r=r+Math.imul(gt,Et)|0,d=d+Math.imul(W,ee)|0,t=(t=t+Math.imul(W,At)|0)+Math.imul(N,ee)|0,r=r+Math.imul(N,At)|0,d=d+Math.imul(L,re)|0,t=(t=t+Math.imul(L,kt)|0)+Math.imul(j,re)|0,r=r+Math.imul(j,kt)|0,d=d+Math.imul(A,ie)|0,t=(t=t+Math.imul(A,Rt)|0)+Math.imul(R,ie)|0,r=r+Math.imul(R,Rt)|0;var be=(v+(d=d+Math.imul(l,ne)|0)|0)+((8191&(t=(t=t+Math.imul(l,Bt)|0)+Math.imul(e,ne)|0))<<13)|0;v=((r=r+Math.imul(e,Bt)|0)+(t>>>13)|0)+(be>>>26)|0,be&=67108863,d=Math.imul(Jt,Ht),t=(t=Math.imul(Jt,vt))+Math.imul(F,Ht)|0,r=Math.imul(F,vt),d=d+Math.imul(Zt,Vt)|0,t=(t=t+Math.imul(Zt,yt)|0)+Math.imul(_t,Vt)|0,r=r+Math.imul(_t,yt)|0,d=d+Math.imul(Wt,Gt)|0,t=(t=t+Math.imul(Wt,St)|0)+Math.imul(wt,Gt)|0,r=r+Math.imul(wt,St)|0,d=d+Math.imul(Kt,Qt)|0,t=(t=t+Math.imul(Kt,xt)|0)+Math.imul(mt,Qt)|0,r=r+Math.imul(mt,xt)|0,d=d+Math.imul(K,te)|0,t=(t=t+Math.imul(K,Et)|0)+Math.imul(J,te)|0,r=r+Math.imul(J,Et)|0,d=d+Math.imul(jt,ee)|0,t=(t=t+Math.imul(jt,At)|0)+Math.imul(gt,ee)|0,r=r+Math.imul(gt,At)|0,d=d+Math.imul(W,re)|0,t=(t=t+Math.imul(W,kt)|0)+Math.imul(N,re)|0,r=r+Math.imul(N,kt)|0,d=d+Math.imul(L,ie)|0,t=(t=t+Math.imul(L,Rt)|0)+Math.imul(j,ie)|0,r=r+Math.imul(j,Rt)|0;var ye=(v+(d=d+Math.imul(A,ne)|0)|0)+((8191&(t=(t=t+Math.imul(A,Bt)|0)+Math.imul(R,ne)|0))<<13)|0;v=((r=r+Math.imul(R,Bt)|0)+(t>>>13)|0)+(ye>>>26)|0,ye&=67108863,d=Math.imul(Jt,Vt),t=(t=Math.imul(Jt,yt))+Math.imul(F,Vt)|0,r=Math.imul(F,yt),d=d+Math.imul(Zt,Gt)|0,t=(t=t+Math.imul(Zt,St)|0)+Math.imul(_t,Gt)|0,r=r+Math.imul(_t,St)|0,d=d+Math.imul(Wt,Qt)|0,t=(t=t+Math.imul(Wt,xt)|0)+Math.imul(wt,Qt)|0,r=r+Math.imul(wt,xt)|0,d=d+Math.imul(Kt,te)|0,t=(t=t+Math.imul(Kt,Et)|0)+Math.imul(mt,te)|0,r=r+Math.imul(mt,Et)|0,d=d+Math.imul(K,ee)|0,t=(t=t+Math.imul(K,At)|0)+Math.imul(J,ee)|0,r=r+Math.imul(J,At)|0,d=d+Math.imul(jt,re)|0,t=(t=t+Math.imul(jt,kt)|0)+Math.imul(gt,re)|0,r=r+Math.imul(gt,kt)|0,d=d+Math.imul(W,ie)|0,t=(t=t+Math.imul(W,Rt)|0)+Math.imul(N,ie)|0,r=r+Math.imul(N,Rt)|0;var we=(v+(d=d+Math.imul(L,ne)|0)|0)+((8191&(t=(t=t+Math.imul(L,Bt)|0)+Math.imul(j,ne)|0))<<13)|0;v=((r=r+Math.imul(j,Bt)|0)+(t>>>13)|0)+(we>>>26)|0,we&=67108863,d=Math.imul(Jt,Gt),t=(t=Math.imul(Jt,St))+Math.imul(F,Gt)|0,r=Math.imul(F,St),d=d+Math.imul(Zt,Qt)|0,t=(t=t+Math.imul(Zt,xt)|0)+Math.imul(_t,Qt)|0,r=r+Math.imul(_t,xt)|0,d=d+Math.imul(Wt,te)|0,t=(t=t+Math.imul(Wt,Et)|0)+Math.imul(wt,te)|0,r=r+Math.imul(wt,Et)|0,d=d+Math.imul(Kt,ee)|0,t=(t=t+Math.imul(Kt,At)|0)+Math.imul(mt,ee)|0,r=r+Math.imul(mt,At)|0,d=d+Math.imul(K,re)|0,t=(t=t+Math.imul(K,kt)|0)+Math.imul(J,re)|0,r=r+Math.imul(J,kt)|0,d=d+Math.imul(jt,ie)|0,t=(t=t+Math.imul(jt,Rt)|0)+Math.imul(gt,ie)|0,r=r+Math.imul(gt,Rt)|0;var Me=(v+(d=d+Math.imul(W,ne)|0)|0)+((8191&(t=(t=t+Math.imul(W,Bt)|0)+Math.imul(N,ne)|0))<<13)|0;v=((r=r+Math.imul(N,Bt)|0)+(t>>>13)|0)+(Me>>>26)|0,Me&=67108863,d=Math.imul(Jt,Qt),t=(t=Math.imul(Jt,xt))+Math.imul(F,Qt)|0,r=Math.imul(F,xt),d=d+Math.imul(Zt,te)|0,t=(t=t+Math.imul(Zt,Et)|0)+Math.imul(_t,te)|0,r=r+Math.imul(_t,Et)|0,d=d+Math.imul(Wt,ee)|0,t=(t=t+Math.imul(Wt,At)|0)+Math.imul(wt,ee)|0,r=r+Math.imul(wt,At)|0,d=d+Math.imul(Kt,re)|0,t=(t=t+Math.imul(Kt,kt)|0)+Math.imul(mt,re)|0,r=r+Math.imul(mt,kt)|0,d=d+Math.imul(K,ie)|0,t=(t=t+Math.imul(K,Rt)|0)+Math.imul(J,ie)|0,r=r+Math.imul(J,Rt)|0;var _e=(v+(d=d+Math.imul(jt,ne)|0)|0)+((8191&(t=(t=t+Math.imul(jt,Bt)|0)+Math.imul(gt,ne)|0))<<13)|0;v=((r=r+Math.imul(gt,Bt)|0)+(t>>>13)|0)+(_e>>>26)|0,_e&=67108863,d=Math.imul(Jt,te),t=(t=Math.imul(Jt,Et))+Math.imul(F,te)|0,r=Math.imul(F,Et),d=d+Math.imul(Zt,ee)|0,t=(t=t+Math.imul(Zt,At)|0)+Math.imul(_t,ee)|0,r=r+Math.imul(_t,At)|0,d=d+Math.imul(Wt,re)|0,t=(t=t+Math.imul(Wt,kt)|0)+Math.imul(wt,re)|0,r=r+Math.imul(wt,kt)|0,d=d+Math.imul(Kt,ie)|0,t=(t=t+Math.imul(Kt,Rt)|0)+Math.imul(mt,ie)|0,r=r+Math.imul(mt,Rt)|0;var Se=(v+(d=d+Math.imul(K,ne)|0)|0)+((8191&(t=(t=t+Math.imul(K,Bt)|0)+Math.imul(J,ne)|0))<<13)|0;v=((r=r+Math.imul(J,Bt)|0)+(t>>>13)|0)+(Se>>>26)|0,Se&=67108863,d=Math.imul(Jt,ee),t=(t=Math.imul(Jt,At))+Math.imul(F,ee)|0,r=Math.imul(F,At),d=d+Math.imul(Zt,re)|0,t=(t=t+Math.imul(Zt,kt)|0)+Math.imul(_t,re)|0,r=r+Math.imul(_t,kt)|0,d=d+Math.imul(Wt,ie)|0,t=(t=t+Math.imul(Wt,Rt)|0)+Math.imul(wt,ie)|0,r=r+Math.imul(wt,Rt)|0;var xe=(v+(d=d+Math.imul(Kt,ne)|0)|0)+((8191&(t=(t=t+Math.imul(Kt,Bt)|0)+Math.imul(mt,ne)|0))<<13)|0;v=((r=r+Math.imul(mt,Bt)|0)+(t>>>13)|0)+(xe>>>26)|0,xe&=67108863,d=Math.imul(Jt,re),t=(t=Math.imul(Jt,kt))+Math.imul(F,re)|0,r=Math.imul(F,kt),d=d+Math.imul(Zt,ie)|0,t=(t=t+Math.imul(Zt,Rt)|0)+Math.imul(_t,ie)|0,r=r+Math.imul(_t,Rt)|0;var Ee=(v+(d=d+Math.imul(Wt,ne)|0)|0)+((8191&(t=(t=t+Math.imul(Wt,Bt)|0)+Math.imul(wt,ne)|0))<<13)|0;v=((r=r+Math.imul(wt,Bt)|0)+(t>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,d=Math.imul(Jt,ie),t=(t=Math.imul(Jt,Rt))+Math.imul(F,ie)|0,r=Math.imul(F,Rt);var Ae=(v+(d=d+Math.imul(Zt,ne)|0)|0)+((8191&(t=(t=t+Math.imul(Zt,Bt)|0)+Math.imul(_t,ne)|0))<<13)|0;v=((r=r+Math.imul(_t,Bt)|0)+(t>>>13)|0)+(Ae>>>26)|0,Ae&=67108863;var ke=(v+(d=Math.imul(Jt,ne))|0)+((8191&(t=(t=Math.imul(Jt,Bt))+Math.imul(F,ne)|0))<<13)|0;return v=((r=Math.imul(F,Bt))+(t>>>13)|0)+(ke>>>26)|0,ke&=67108863,f[0]=Dt,f[1]=ce,f[2]=It,f[3]=Lt,f[4]=ae,f[5]=se,f[6]=me,f[7]=ve,f[8]=ge,f[9]=be,f[10]=ye,f[11]=we,f[12]=Me,f[13]=_e,f[14]=Se,f[15]=xe,f[16]=Ee,f[17]=Ae,f[18]=ke,v!==0&&(f[19]=v,z.length++),z};function x(I,D,z){return new E().mulp(I,D,z)}function E(I,D){(this||ct).x=I,(this||ct).y=D}Math.imul||(_=S),n.prototype.mulTo=function(I,D){var z=(this||ct).length+I.length;return(this||ct).length===10&&I.length===10?_(this||ct,I,D):z<63?S(this||ct,I,D):z<1024?function(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=67108863&o,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=(0|d.words[c])*(0|t.words[e]),R=67108863&A;w=67108863&(R=R+w|0),h+=(v=(v=v+(A/67108864|0)|0)+(R>>>26)|0)>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}(this||ct,I,D):x(this||ct,I,D)},E.prototype.makeRBT=function(I){for(var D=new Array(I),z=n.prototype._countBits(I)-1,d=0;d<I;d++)D[d]=this.revBin(d,z,I);return D},E.prototype.revBin=function(I,D,z){if(I===0||I===z-1)return I;for(var d=0,t=0;t<D;t++)d|=(1&I)<<D-t-1,I>>=1;return d},E.prototype.permute=function(I,D,z,d,t,r){for(var o=0;o<r;o++)d[o]=D[I[o]],t[o]=z[I[o]]},E.prototype.transform=function(I,D,z,d,t,r){this.permute(r,I,D,z,d,t);for(var o=1;o<t;o<<=1)for(var h=o<<1,f=Math.cos(2*Math.PI/h),v=Math.sin(2*Math.PI/h),w=0;w<t;w+=h)for(var l=f,e=v,c=0;c<o;c++){var A=z[w+c],R=d[w+c],$=z[w+c+o],L=d[w+c+o],j=l*$-e*L;L=l*L+e*$,$=j,z[w+c]=A+$,d[w+c]=R+L,z[w+c+o]=A-$,d[w+c+o]=R-L,c!==h&&(j=f*l-v*e,e=f*e+v*l,l=j)}},E.prototype.guessLen13b=function(I,D){var z=1|Math.max(D,I),d=1&z,t=0;for(z=z/2|0;z;z>>>=1)t++;return 1<<t+1+d},E.prototype.conjugate=function(I,D,z){if(!(z<=1))for(var d=0;d<z/2;d++){var t=I[d];I[d]=I[z-d-1],I[z-d-1]=t,t=D[d],D[d]=-D[z-d-1],D[z-d-1]=-t}},E.prototype.normalize13b=function(I,D){for(var z=0,d=0;d<D/2;d++){var t=8192*Math.round(I[2*d+1]/D)+Math.round(I[2*d]/D)+z;I[d]=67108863&t,z=t<67108864?0:t/67108864|0}return I},E.prototype.convert13b=function(I,D,z,d){for(var t=0,r=0;r<D;r++)t+=0|I[r],z[2*r]=8191&t,t>>>=13,z[2*r+1]=8191&t,t>>>=13;for(r=2*D;r<d;++r)z[r]=0;a(t===0),a((-8192&t)==0)},E.prototype.stub=function(I){for(var D=new Array(I),z=0;z<I;z++)D[z]=0;return D},E.prototype.mulp=function(I,D,z){var d=2*this.guessLen13b(I.length,D.length),t=this.makeRBT(d),r=this.stub(d),o=new Array(d),h=new Array(d),f=new Array(d),v=new Array(d),w=new Array(d),l=new Array(d),e=z.words;e.length=d,this.convert13b(I.words,I.length,o,d),this.convert13b(D.words,D.length,v,d),this.transform(o,r,h,f,d,t),this.transform(v,r,w,l,d,t);for(var c=0;c<d;c++){var A=h[c]*w[c]-f[c]*l[c];f[c]=h[c]*l[c]+f[c]*w[c],h[c]=A}return this.conjugate(h,f,d),this.transform(h,f,e,r,d,t),this.conjugate(e,r,d),this.normalize13b(e,d),z.negative=I.negative^D.negative,z.length=I.length+D.length,z.strip()},n.prototype.mul=function(I){var D=new n(null);return D.words=new Array((this||ct).length+I.length),this.mulTo(I,D)},n.prototype.mulf=function(I){var D=new n(null);return D.words=new Array((this||ct).length+I.length),x(this||ct,I,D)},n.prototype.imul=function(I){return this.clone().mulTo(I,this||ct)},n.prototype.imuln=function(I){a(typeof I=="number"),a(I<67108864);for(var D=0,z=0;z<(this||ct).length;z++){var d=(0|(this||ct).words[z])*I,t=(67108863&d)+(67108863&D);D>>=26,D+=d/67108864|0,D+=t>>>26,(this||ct).words[z]=67108863&t}return D!==0&&((this||ct).words[z]=D,(this||ct).length++),this||ct},n.prototype.muln=function(I){return this.clone().imuln(I)},n.prototype.sqr=function(){return this.mul(this||ct)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(I){var D=function(r){for(var o=new Array(r.bitLength()),h=0;h<o.length;h++){var f=h/26|0,v=h%26;o[h]=(r.words[f]&1<<v)>>>v}return o}(I);if(D.length===0)return new n(1);for(var z=this||ct,d=0;d<D.length&&D[d]===0;d++,z=z.sqr());if(++d<D.length)for(var t=z.sqr();d<D.length;d++,t=t.sqr())D[d]!==0&&(z=z.mul(t));return z},n.prototype.iushln=function(I){a(typeof I=="number"&&I>=0);var D,z=I%26,d=(I-z)/26,t=67108863>>>26-z<<26-z;if(z!==0){var r=0;for(D=0;D<(this||ct).length;D++){var o=(this||ct).words[D]&t,h=(0|(this||ct).words[D])-o<<z;(this||ct).words[D]=h|r,r=o>>>26-z}r&&((this||ct).words[D]=r,(this||ct).length++)}if(d!==0){for(D=(this||ct).length-1;D>=0;D--)(this||ct).words[D+d]=(this||ct).words[D];for(D=0;D<d;D++)(this||ct).words[D]=0;(this||ct).length+=d}return this.strip()},n.prototype.ishln=function(I){return a((this||ct).negative===0),this.iushln(I)},n.prototype.iushrn=function(I,D,z){var d;a(typeof I=="number"&&I>=0),d=D?(D-D%26)/26:0;var t=I%26,r=Math.min((I-t)/26,(this||ct).length),o=67108863^67108863>>>t<<t,h=z;if(d-=r,d=Math.max(0,d),h){for(var f=0;f<r;f++)h.words[f]=(this||ct).words[f];h.length=r}if(r!==0)if((this||ct).length>r)for((this||ct).length-=r,f=0;f<(this||ct).length;f++)(this||ct).words[f]=(this||ct).words[f+r];else(this||ct).words[0]=0,(this||ct).length=1;var v=0;for(f=(this||ct).length-1;f>=0&&(v!==0||f>=d);f--){var w=0|(this||ct).words[f];(this||ct).words[f]=v<<26-t|w>>>t,v=w&o}return h&&v!==0&&(h.words[h.length++]=v),(this||ct).length===0&&((this||ct).words[0]=0,(this||ct).length=1),this.strip()},n.prototype.ishrn=function(I,D,z){return a((this||ct).negative===0),this.iushrn(I,D,z)},n.prototype.shln=function(I){return this.clone().ishln(I)},n.prototype.ushln=function(I){return this.clone().iushln(I)},n.prototype.shrn=function(I){return this.clone().ishrn(I)},n.prototype.ushrn=function(I){return this.clone().iushrn(I)},n.prototype.testn=function(I){a(typeof I=="number"&&I>=0);var D=I%26,z=(I-D)/26,d=1<<D;return!((this||ct).length<=z)&&!!((this||ct).words[z]&d)},n.prototype.imaskn=function(I){a(typeof I=="number"&&I>=0);var D=I%26,z=(I-D)/26;if(a((this||ct).negative===0,"imaskn works only with positive numbers"),(this||ct).length<=z)return this||ct;if(D!==0&&z++,(this||ct).length=Math.min(z,(this||ct).length),D!==0){var d=67108863^67108863>>>D<<D;(this||ct).words[(this||ct).length-1]&=d}return this.strip()},n.prototype.maskn=function(I){return this.clone().imaskn(I)},n.prototype.iaddn=function(I){return a(typeof I=="number"),a(I<67108864),I<0?this.isubn(-I):(this||ct).negative!==0?(this||ct).length===1&&(0|(this||ct).words[0])<I?((this||ct).words[0]=I-(0|(this||ct).words[0]),(this||ct).negative=0,this||ct):((this||ct).negative=0,this.isubn(I),(this||ct).negative=1,this||ct):this._iaddn(I)},n.prototype._iaddn=function(I){(this||ct).words[0]+=I;for(var D=0;D<(this||ct).length&&(this||ct).words[D]>=67108864;D++)(this||ct).words[D]-=67108864,D===(this||ct).length-1?(this||ct).words[D+1]=1:(this||ct).words[D+1]++;return(this||ct).length=Math.max((this||ct).length,D+1),this||ct},n.prototype.isubn=function(I){if(a(typeof I=="number"),a(I<67108864),I<0)return this.iaddn(-I);if((this||ct).negative!==0)return(this||ct).negative=0,this.iaddn(I),(this||ct).negative=1,this||ct;if((this||ct).words[0]-=I,(this||ct).length===1&&(this||ct).words[0]<0)(this||ct).words[0]=-(this||ct).words[0],(this||ct).negative=1;else for(var D=0;D<(this||ct).length&&(this||ct).words[D]<0;D++)(this||ct).words[D]+=67108864,(this||ct).words[D+1]-=1;return this.strip()},n.prototype.addn=function(I){return this.clone().iaddn(I)},n.prototype.subn=function(I){return this.clone().isubn(I)},n.prototype.iabs=function(){return(this||ct).negative=0,this||ct},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(I,D,z){var d,t,r=I.length+z;this._expand(r);var o=0;for(d=0;d<I.length;d++){t=(0|(this||ct).words[d+z])+o;var h=(0|I.words[d])*D;o=((t-=67108863&h)>>26)-(h/67108864|0),(this||ct).words[d+z]=67108863&t}for(;d<(this||ct).length-z;d++)o=(t=(0|(this||ct).words[d+z])+o)>>26,(this||ct).words[d+z]=67108863&t;if(o===0)return this.strip();for(a(o===-1),o=0,d=0;d<(this||ct).length;d++)o=(t=-(0|(this||ct).words[d])+o)>>26,(this||ct).words[d]=67108863&t;return(this||ct).negative=1,this.strip()},n.prototype._wordDiv=function(I,D){var z=((this||ct).length,I.length),d=this.clone(),t=I,r=0|t.words[t.length-1];(z=26-this._countBits(r))!==0&&(t=t.ushln(z),d.iushln(z),r=0|t.words[t.length-1]);var o,h=d.length-t.length;if(D!=="mod"){(o=new n(null)).length=h+1,o.words=new Array(o.length);for(var f=0;f<o.length;f++)o.words[f]=0}var v=d.clone()._ishlnsubmul(t,1,h);v.negative===0&&(d=v,o&&(o.words[h]=1));for(var w=h-1;w>=0;w--){var l=67108864*(0|d.words[t.length+w])+(0|d.words[t.length+w-1]);for(l=Math.min(l/r|0,67108863),d._ishlnsubmul(t,l,w);d.negative!==0;)l--,d.negative=0,d._ishlnsubmul(t,1,w),d.isZero()||(d.negative^=1);o&&(o.words[w]=l)}return o&&o.strip(),d.strip(),D!=="div"&&z!==0&&d.iushrn(z),{div:o||null,mod:d}},n.prototype.divmod=function(I,D,z){return a(!I.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:(this||ct).negative!==0&&I.negative===0?(r=this.neg().divmod(I,D),D!=="mod"&&(d=r.div.neg()),D!=="div"&&(t=r.mod.neg(),z&&t.negative!==0&&t.iadd(I)),{div:d,mod:t}):(this||ct).negative===0&&I.negative!==0?(r=this.divmod(I.neg(),D),D!=="mod"&&(d=r.div.neg()),{div:d,mod:r.mod}):(this||ct).negative&I.negative?(r=this.neg().divmod(I.neg(),D),D!=="div"&&(t=r.mod.neg(),z&&t.negative!==0&&t.isub(I)),{div:r.div,mod:t}):I.length>(this||ct).length||this.cmp(I)<0?{div:new n(0),mod:this||ct}:I.length===1?D==="div"?{div:this.divn(I.words[0]),mod:null}:D==="mod"?{div:null,mod:new n(this.modn(I.words[0]))}:{div:this.divn(I.words[0]),mod:new n(this.modn(I.words[0]))}:this._wordDiv(I,D);var d,t,r},n.prototype.div=function(I){return this.divmod(I,"div",!1).div},n.prototype.mod=function(I){return this.divmod(I,"mod",!1).mod},n.prototype.umod=function(I){return this.divmod(I,"mod",!0).mod},n.prototype.divRound=function(I){var D=this.divmod(I);if(D.mod.isZero())return D.div;var z=D.div.negative!==0?D.mod.isub(I):D.mod,d=I.ushrn(1),t=I.andln(1),r=z.cmp(d);return r<0||t===1&&r===0?D.div:D.div.negative!==0?D.div.isubn(1):D.div.iaddn(1)},n.prototype.modn=function(I){a(I<=67108863);for(var D=(1<<26)%I,z=0,d=(this||ct).length-1;d>=0;d--)z=(D*z+(0|(this||ct).words[d]))%I;return z},n.prototype.idivn=function(I){a(I<=67108863);for(var D=0,z=(this||ct).length-1;z>=0;z--){var d=(0|(this||ct).words[z])+67108864*D;(this||ct).words[z]=d/I|0,D=d%I}return this.strip()},n.prototype.divn=function(I){return this.clone().idivn(I)},n.prototype.egcd=function(I){a(I.negative===0),a(!I.isZero());var D=this||ct,z=I.clone();D=D.negative!==0?D.umod(I):D.clone();for(var d=new n(1),t=new n(0),r=new n(0),o=new n(1),h=0;D.isEven()&&z.isEven();)D.iushrn(1),z.iushrn(1),++h;for(var f=z.clone(),v=D.clone();!D.isZero();){for(var w=0,l=1;!(D.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(D.iushrn(w);w-- >0;)(d.isOdd()||t.isOdd())&&(d.iadd(f),t.isub(v)),d.iushrn(1),t.iushrn(1);for(var e=0,c=1;!(z.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(z.iushrn(e);e-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(f),o.isub(v)),r.iushrn(1),o.iushrn(1);D.cmp(z)>=0?(D.isub(z),d.isub(r),t.isub(o)):(z.isub(D),r.isub(d),o.isub(t))}return{a:r,b:o,gcd:z.iushln(h)}},n.prototype._invmp=function(I){a(I.negative===0),a(!I.isZero());var D=this||ct,z=I.clone();D=D.negative!==0?D.umod(I):D.clone();for(var d,t=new n(1),r=new n(0),o=z.clone();D.cmpn(1)>0&&z.cmpn(1)>0;){for(var h=0,f=1;!(D.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(D.iushrn(h);h-- >0;)t.isOdd()&&t.iadd(o),t.iushrn(1);for(var v=0,w=1;!(z.words[0]&w)&&v<26;++v,w<<=1);if(v>0)for(z.iushrn(v);v-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);D.cmp(z)>=0?(D.isub(z),t.isub(r)):(z.isub(D),r.isub(t))}return(d=D.cmpn(1)===0?t:r).cmpn(0)<0&&d.iadd(I),d},n.prototype.gcd=function(I){if(this.isZero())return I.abs();if(I.isZero())return this.abs();var D=this.clone(),z=I.clone();D.negative=0,z.negative=0;for(var d=0;D.isEven()&&z.isEven();d++)D.iushrn(1),z.iushrn(1);for(;;){for(;D.isEven();)D.iushrn(1);for(;z.isEven();)z.iushrn(1);var t=D.cmp(z);if(t<0){var r=D;D=z,z=r}else if(t===0||z.cmpn(1)===0)break;D.isub(z)}return z.iushln(d)},n.prototype.invm=function(I){return this.egcd(I).a.umod(I)},n.prototype.isEven=function(){return(1&(this||ct).words[0])==0},n.prototype.isOdd=function(){return(1&(this||ct).words[0])==1},n.prototype.andln=function(I){return(this||ct).words[0]&I},n.prototype.bincn=function(I){a(typeof I=="number");var D=I%26,z=(I-D)/26,d=1<<D;if((this||ct).length<=z)return this._expand(z+1),(this||ct).words[z]|=d,this||ct;for(var t=d,r=z;t!==0&&r<(this||ct).length;r++){var o=0|(this||ct).words[r];t=(o+=t)>>>26,o&=67108863,(this||ct).words[r]=o}return t!==0&&((this||ct).words[r]=t,(this||ct).length++),this||ct},n.prototype.isZero=function(){return(this||ct).length===1&&(this||ct).words[0]===0},n.prototype.cmpn=function(I){var D,z=I<0;if((this||ct).negative!==0&&!z)return-1;if((this||ct).negative===0&&z)return 1;if(this.strip(),(this||ct).length>1)D=1;else{z&&(I=-I),a(I<=67108863,"Number is too big");var d=0|(this||ct).words[0];D=d===I?0:d<I?-1:1}return(this||ct).negative!==0?0|-D:D},n.prototype.cmp=function(I){if((this||ct).negative!==0&&I.negative===0)return-1;if((this||ct).negative===0&&I.negative!==0)return 1;var D=this.ucmp(I);return(this||ct).negative!==0?0|-D:D},n.prototype.ucmp=function(I){if((this||ct).length>I.length)return 1;if((this||ct).length<I.length)return-1;for(var D=0,z=(this||ct).length-1;z>=0;z--){var d=0|(this||ct).words[z],t=0|I.words[z];if(d!==t){d<t?D=-1:d>t&&(D=1);break}}return D},n.prototype.gtn=function(I){return this.cmpn(I)===1},n.prototype.gt=function(I){return this.cmp(I)===1},n.prototype.gten=function(I){return this.cmpn(I)>=0},n.prototype.gte=function(I){return this.cmp(I)>=0},n.prototype.ltn=function(I){return this.cmpn(I)===-1},n.prototype.lt=function(I){return this.cmp(I)===-1},n.prototype.lten=function(I){return this.cmpn(I)<=0},n.prototype.lte=function(I){return this.cmp(I)<=0},n.prototype.eqn=function(I){return this.cmpn(I)===0},n.prototype.eq=function(I){return this.cmp(I)===0},n.red=function(I){return new U(I)},n.prototype.toRed=function(I){return a(!(this||ct).red,"Already a number in reduction context"),a((this||ct).negative===0,"red works only with positives"),I.convertTo(this||ct)._forceRed(I)},n.prototype.fromRed=function(){return a((this||ct).red,"fromRed works only with numbers in reduction context"),(this||ct).red.convertFrom(this||ct)},n.prototype._forceRed=function(I){return(this||ct).red=I,this||ct},n.prototype.forceRed=function(I){return a(!(this||ct).red,"Already a number in reduction context"),this._forceRed(I)},n.prototype.redAdd=function(I){return a((this||ct).red,"redAdd works only with red numbers"),(this||ct).red.add(this||ct,I)},n.prototype.redIAdd=function(I){return a((this||ct).red,"redIAdd works only with red numbers"),(this||ct).red.iadd(this||ct,I)},n.prototype.redSub=function(I){return a((this||ct).red,"redSub works only with red numbers"),(this||ct).red.sub(this||ct,I)},n.prototype.redISub=function(I){return a((this||ct).red,"redISub works only with red numbers"),(this||ct).red.isub(this||ct,I)},n.prototype.redShl=function(I){return a((this||ct).red,"redShl works only with red numbers"),(this||ct).red.shl(this||ct,I)},n.prototype.redMul=function(I){return a((this||ct).red,"redMul works only with red numbers"),(this||ct).red._verify2(this||ct,I),(this||ct).red.mul(this||ct,I)},n.prototype.redIMul=function(I){return a((this||ct).red,"redMul works only with red numbers"),(this||ct).red._verify2(this||ct,I),(this||ct).red.imul(this||ct,I)},n.prototype.redSqr=function(){return a((this||ct).red,"redSqr works only with red numbers"),(this||ct).red._verify1(this||ct),(this||ct).red.sqr(this||ct)},n.prototype.redISqr=function(){return a((this||ct).red,"redISqr works only with red numbers"),(this||ct).red._verify1(this||ct),(this||ct).red.isqr(this||ct)},n.prototype.redSqrt=function(){return a((this||ct).red,"redSqrt works only with red numbers"),(this||ct).red._verify1(this||ct),(this||ct).red.sqrt(this||ct)},n.prototype.redInvm=function(){return a((this||ct).red,"redInvm works only with red numbers"),(this||ct).red._verify1(this||ct),(this||ct).red.invm(this||ct)},n.prototype.redNeg=function(){return a((this||ct).red,"redNeg works only with red numbers"),(this||ct).red._verify1(this||ct),(this||ct).red.neg(this||ct)},n.prototype.redPow=function(I){return a((this||ct).red&&!I.red,"redPow(normalNum)"),(this||ct).red._verify1(this||ct),(this||ct).red.pow(this||ct,I)};var k={k256:null,p224:null,p192:null,p25519:null};function B(I,D){(this||ct).name=I,(this||ct).p=new n(D,16),(this||ct).n=(this||ct).p.bitLength(),(this||ct).k=new n(1).iushln((this||ct).n).isub((this||ct).p),(this||ct).tmp=this._tmp()}function T(){B.call(this||ct,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){B.call(this||ct,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P(){B.call(this||ct,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function G(){B.call(this||ct,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function U(I){if(typeof I=="string"){var D=n._prime(I);(this||ct).m=D.p,(this||ct).prime=D}else a(I.gtn(1),"modulus must be greater than 1"),(this||ct).m=I,(this||ct).prime=null}function V(I){U.call(this||ct,I),(this||ct).shift=(this||ct).m.bitLength(),(this||ct).shift%26!=0&&((this||ct).shift+=26-(this||ct).shift%26),(this||ct).r=new n(1).iushln((this||ct).shift),(this||ct).r2=this.imod((this||ct).r.sqr()),(this||ct).rinv=(this||ct).r._invmp((this||ct).m),(this||ct).minv=(this||ct).rinv.mul((this||ct).r).isubn(1).div((this||ct).m),(this||ct).minv=(this||ct).minv.umod((this||ct).r),(this||ct).minv=(this||ct).r.sub((this||ct).minv)}B.prototype._tmp=function(){var I=new n(null);return I.words=new Array(Math.ceil((this||ct).n/13)),I},B.prototype.ireduce=function(I){var D,z=I;do this.split(z,(this||ct).tmp),D=(z=(z=this.imulK(z)).iadd((this||ct).tmp)).bitLength();while(D>(this||ct).n);var d=D<(this||ct).n?-1:z.ucmp((this||ct).p);return d===0?(z.words[0]=0,z.length=1):d>0?z.isub((this||ct).p):z.strip(),z},B.prototype.split=function(I,D){I.iushrn((this||ct).n,0,D)},B.prototype.imulK=function(I){return I.imul((this||ct).k)},u(T,B),T.prototype.split=function(I,D){for(var z=Math.min(I.length,9),d=0;d<z;d++)D.words[d]=I.words[d];if(D.length=z,I.length<=9)return I.words[0]=0,I.length=1,void 0;var t=I.words[9];for(D.words[D.length++]=4194303&t,d=10;d<I.length;d++){var r=0|I.words[d];I.words[d-10]=(4194303&r)<<4|t>>>22,t=r}t>>>=22,I.words[d-10]=t,t===0&&I.length>10?I.length-=10:I.length-=9},T.prototype.imulK=function(I){I.words[I.length]=0,I.words[I.length+1]=0,I.length+=2;for(var D=0,z=0;z<I.length;z++){var d=0|I.words[z];D+=977*d,I.words[z]=67108863&D,D=64*d+(D/67108864|0)}return I.words[I.length-1]===0&&(I.length--,I.words[I.length-1]===0&&I.length--),I},u(C,B),u(P,B),u(G,B),G.prototype.imulK=function(I){for(var D=0,z=0;z<I.length;z++){var d=19*(0|I.words[z])+D,t=67108863&d;d>>>=26,I.words[z]=t,D=d}return D!==0&&(I.words[I.length++]=D),I},n._prime=function(I){if(k[I])return k[I];var D;if(I==="k256")D=new T;else if(I==="p224")D=new C;else if(I==="p192")D=new P;else{if(I!=="p25519")throw new Error("Unknown prime "+I);D=new G}return k[I]=D,D},U.prototype._verify1=function(I){a(I.negative===0,"red works only with positives"),a(I.red,"red works only with red numbers")},U.prototype._verify2=function(I,D){a((I.negative|D.negative)==0,"red works only with positives"),a(I.red&&I.red===D.red,"red works only with red numbers")},U.prototype.imod=function(I){return(this||ct).prime?(this||ct).prime.ireduce(I)._forceRed(this||ct):I.umod((this||ct).m)._forceRed(this||ct)},U.prototype.neg=function(I){return I.isZero()?I.clone():(this||ct).m.sub(I)._forceRed(this||ct)},U.prototype.add=function(I,D){this._verify2(I,D);var z=I.add(D);return z.cmp((this||ct).m)>=0&&z.isub((this||ct).m),z._forceRed(this||ct)},U.prototype.iadd=function(I,D){this._verify2(I,D);var z=I.iadd(D);return z.cmp((this||ct).m)>=0&&z.isub((this||ct).m),z},U.prototype.sub=function(I,D){this._verify2(I,D);var z=I.sub(D);return z.cmpn(0)<0&&z.iadd((this||ct).m),z._forceRed(this||ct)},U.prototype.isub=function(I,D){this._verify2(I,D);var z=I.isub(D);return z.cmpn(0)<0&&z.iadd((this||ct).m),z},U.prototype.shl=function(I,D){return this._verify1(I),this.imod(I.ushln(D))},U.prototype.imul=function(I,D){return this._verify2(I,D),this.imod(I.imul(D))},U.prototype.mul=function(I,D){return this._verify2(I,D),this.imod(I.mul(D))},U.prototype.isqr=function(I){return this.imul(I,I.clone())},U.prototype.sqr=function(I){return this.mul(I,I)},U.prototype.sqrt=function(I){if(I.isZero())return I.clone();var D=(this||ct).m.andln(3);if(a(D%2==1),D===3){var z=(this||ct).m.add(new n(1)).iushrn(2);return this.pow(I,z)}for(var d=(this||ct).m.subn(1),t=0;!d.isZero()&&d.andln(1)===0;)t++,d.iushrn(1);a(!d.isZero());var r=new n(1).toRed(this||ct),o=r.redNeg(),h=(this||ct).m.subn(1).iushrn(1),f=(this||ct).m.bitLength();for(f=new n(2*f*f).toRed(this||ct);this.pow(f,h).cmp(o)!==0;)f.redIAdd(o);for(var v=this.pow(f,d),w=this.pow(I,d.addn(1).iushrn(1)),l=this.pow(I,d),e=t;l.cmp(r)!==0;){for(var c=l,A=0;c.cmp(r)!==0;A++)c=c.redSqr();a(A<e);var R=this.pow(v,new n(1).iushln(e-A-1));w=w.redMul(R),v=R.redSqr(),l=l.redMul(v),e=A}return w},U.prototype.invm=function(I){var D=I._invmp((this||ct).m);return D.negative!==0?(D.negative=0,this.imod(D).redNeg()):this.imod(D)},U.prototype.pow=function(I,D){if(D.isZero())return new n(1).toRed(this||ct);if(D.cmpn(1)===0)return I.clone();var z=new Array(16);z[0]=new n(1).toRed(this||ct),z[1]=I;for(var d=2;d<z.length;d++)z[d]=this.mul(z[d-1],I);var t=z[0],r=0,o=0,h=D.bitLength()%26;for(h===0&&(h=26),d=D.length-1;d>=0;d--){for(var f=D.words[d],v=h-1;v>=0;v--){var w=f>>v&1;t!==z[0]&&(t=this.sqr(t)),w!==0||r!==0?(r<<=1,r|=w,(++o===4||d===0&&v===0)&&(t=this.mul(t,z[r]),o=0,r=0)):o=0}h=26}return t},U.prototype.convertTo=function(I){var D=I.umod((this||ct).m);return D===I?D.clone():D},U.prototype.convertFrom=function(I){var D=I.clone();return D.red=null,D},n.mont=function(I){return new V(I)},u(V,U),V.prototype.convertTo=function(I){return this.imod(I.ushln((this||ct).shift))},V.prototype.convertFrom=function(I){var D=this.imod(I.mul((this||ct).rinv));return D.red=null,D},V.prototype.imul=function(I,D){if(I.isZero()||D.isZero())return I.words[0]=0,I.length=1,I;var z=I.imul(D),d=z.maskn((this||ct).shift).mul((this||ct).minv).imaskn((this||ct).shift).mul((this||ct).m),t=z.isub(d).iushrn((this||ct).shift),r=t;return t.cmp((this||ct).m)>=0?r=t.isub((this||ct).m):t.cmpn(0)<0&&(r=t.iadd((this||ct).m)),r._forceRed(this||ct)},V.prototype.mul=function(I,D){if(I.isZero()||D.isZero())return new n(0)._forceRed(this||ct);var z=I.mul(D),d=z.maskn((this||ct).shift).mul((this||ct).minv).imaskn((this||ct).shift).mul((this||ct).m),t=z.isub(d).iushrn((this||ct).shift),r=t;return t.cmp((this||ct).m)>=0?r=t.isub((this||ct).m):t.cmpn(0)<0&&(r=t.iadd((this||ct).m)),r._forceRed(this||ct)},V.prototype.invm=function(I){return this.imod(I._invmp((this||ct).m).mul((this||ct).r2))._forceRed(this||ct)}})(iA,rA);var Vr=iA.exports,nA,Xm,IO=Object.freeze({}),K0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function pa(i){(this||K0).rand=i}if((nA=function(i){return Xm||(Xm=new pa(null)),Xm.generate(i)}).Rand=pa,pa.prototype.generate=function(i){return this._rand(i)},pa.prototype._rand=function(i){if((this||K0).rand.getBytes)return(this||K0).rand.getBytes(i);for(var s=new Uint8Array(i),a=0;a<s.length;a++)s[a]=(this||K0).rand.getByte();return s},typeof self=="object")self.crypto&&self.crypto.getRandomValues?pa.prototype._rand=function(i){var s=new Uint8Array(i);return self.crypto.getRandomValues(s),s}:self.msCrypto&&self.msCrypto.getRandomValues?pa.prototype._rand=function(i){var s=new Uint8Array(i);return self.msCrypto.getRandomValues(s),s}:typeof window=="object"&&(pa.prototype._rand=function(){throw new Error("Not implemented yet")});else try{if(Jm=IO,typeof Jm.randomBytes!="function")throw new Error("Not supported");pa.prototype._rand=function(i){return Jm.randomBytes(i)}}catch{}var Jm,Ab=nA,oA,aA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,bs=Vr,CO=Ab;function ys(i){(this||aA).rand=i||new CO.Rand}oA=ys,ys.create=function(i){return new ys(i)},ys.prototype._randbelow=function(i){var s=i.bitLength(),a=Math.ceil(s/8);do var u=new bs((this||aA).rand.generate(a));while(u.cmp(i)>=0);return u},ys.prototype._randrange=function(i,s){var a=s.sub(i);return i.add(this._randbelow(a))},ys.prototype.test=function(i,s,a){var u=i.bitLength(),n=bs.mont(i),p=new bs(1).toRed(n);s||(s=Math.max(1,u/48|0));for(var m=i.subn(1),y=0;!m.testn(y);y++);for(var M=i.shrn(y),b=m.toRed(n);s>0;s--){var g=this._randrange(new bs(2),m);a&&a(g);var S=g.toRed(n).redPow(M);if(S.cmp(p)!==0&&S.cmp(b)!==0){for(var _=1;_<y;_++){if((S=S.redSqr()).cmp(p)===0)return!1;if(S.cmp(b)===0)break}if(_===y)return!1}}return!0},ys.prototype.getDivisor=function(i,s){var a=i.bitLength(),u=bs.mont(i),n=new bs(1).toRed(u);s||(s=Math.max(1,a/48|0));for(var p=i.subn(1),m=0;!p.testn(m);m++);for(var y=i.shrn(m),M=p.toRed(u);s>0;s--){var b=this._randrange(new bs(2),p),g=i.gcd(b);if(g.cmpn(1)!==0)return g;var S=b.toRed(u).redPow(y);if(S.cmp(n)!==0&&S.cmp(M)!==0){for(var _=1;_<m;_++){if((S=S.redSqr()).cmp(n)===0)return S.fromRed().subn(1).gcd(i);if(S.cmp(M)===0)break}if(_===m)return(S=S.redSqr()).fromRed().subn(1).gcd(i)}}return!1};var sA=oA,hA,PO=Zh;hA=Qm,Qm.simpleSieve=Wg,Qm.fermatTest=Xg;var Ii=Vr,DO=new Ii(24),u9=new sA,LO=new Ii(1),Vg=new Ii(2),OO=new Ii(5),NO=(new Ii(16),new Ii(8),new Ii(10)),qO=new Ii(3),zO=(new Ii(7),new Ii(11)),l9=new Ii(4),Ym=(new Ii(12),null);function UO(){if(Ym!==null)return Ym;var i=[];i[0]=2;for(var s=1,a=3;a<1048576;a+=2){for(var u=Math.ceil(Math.sqrt(a)),n=0;n<s&&i[n]<=u&&a%i[n]!=0;n++);s!==n&&i[n]<=u||(i[s++]=a)}return Ym=i,i}function Wg(i){for(var s=UO(),a=0;a<s.length;a++)if(i.modn(s[a])===0)return i.cmpn(s[a])===0;return!0}function Xg(i){var s=Ii.mont(i);return Vg.toRed(s).redPow(i.subn(1)).fromRed().cmpn(1)===0}function Qm(i,s){if(i<16)return new Ii(s===2||s===5?[140,123]:[140,39]);var a,u;for(s=new Ii(s);;){for(a=new Ii(PO(Math.ceil(i/8)));a.bitLength()>i;)a.ishrn(1);if(a.isEven()&&a.iadd(LO),a.testn(1)||a.iadd(Vg),s.cmp(Vg)){if(!s.cmp(OO))for(;a.mod(NO).cmp(qO);)a.iadd(l9)}else for(;a.mod(DO).cmp(zO);)a.iadd(l9);if(Wg(u=a.shrn(1))&&Wg(a)&&Xg(u)&&Xg(a)&&u9.test(u)&&u9.test(a))return a}}var fA,uA=hA,or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,Ro=Pe.Buffer,Cn=Vr,c9=new sA,FO=new Cn(24),jO=new Cn(11),HO=new Cn(10),KO=new Cn(3),GO=new Cn(7),d9=uA,ZO=Zh;function VO(i,s){return s=s||"utf8",Ro.isBuffer(i)||(i=new Ro(i,s)),(this||or)._pub=new Cn(i),this||or}function WO(i,s){return s=s||"utf8",Ro.isBuffer(i)||(i=new Ro(i,s)),(this||or)._priv=new Cn(i),this||or}fA=Vo;var i0={};function Vo(i,s,a){this.setGenerator(s),(this||or).__prime=new Cn(i),(this||or)._prime=Cn.mont((this||or).__prime),(this||or)._primeLen=i.length,(this||or)._pub=void 0,(this||or)._priv=void 0,(this||or)._primeCode=void 0,a?((this||or).setPublicKey=VO,(this||or).setPrivateKey=WO):(this||or)._primeCode=8}function n0(i,s){var a=new Ro(i.toArray());return s?a.toString(s):a}Object.defineProperty(Vo.prototype,"verifyError",{enumerable:!0,get:function(){return typeof(this||or)._primeCode!="number"&&((this||or)._primeCode=function(i,s){var a=s.toString("hex"),u=[a,i.toString(16)].join("_");if(u in i0)return i0[u];var n,p=0;if(i.isEven()||!d9.simpleSieve||!d9.fermatTest(i)||!c9.test(i))return p+=1,p+=a==="02"||a==="05"?8:4,i0[u]=p,p;switch(c9.test(i.shrn(1))||(p+=2),a){case"02":i.mod(FO).cmp(jO)&&(p+=8);break;case"05":(n=i.mod(HO)).cmp(KO)&&n.cmp(GO)&&(p+=8);break;default:p+=4}return i0[u]=p,p}((this||or).__prime,(this||or).__gen)),(this||or)._primeCode}}),Vo.prototype.generateKeys=function(){return(this||or)._priv||((this||or)._priv=new Cn(ZO((this||or)._primeLen))),(this||or)._pub=(this||or)._gen.toRed((this||or)._prime).redPow((this||or)._priv).fromRed(),this.getPublicKey()},Vo.prototype.computeSecret=function(i){var s=(i=(i=new Cn(i)).toRed((this||or)._prime)).redPow((this||or)._priv).fromRed(),a=new Ro(s.toArray()),u=this.getPrime();if(a.length<u.length){var n=new Ro(u.length-a.length);n.fill(0),a=Ro.concat([n,a])}return a},Vo.prototype.getPublicKey=function(i){return n0((this||or)._pub,i)},Vo.prototype.getPrivateKey=function(i){return n0((this||or)._priv,i)},Vo.prototype.getPrime=function(i){return n0((this||or).__prime,i)},Vo.prototype.getGenerator=function(i){return n0((this||or)._gen,i)},Vo.prototype.setGenerator=function(i,s){return s=s||"utf8",Ro.isBuffer(i)||(i=new Ro(i,s)),(this||or).__gen=i,(this||or)._gen=new Cn(i),this||or};var XO=fA,Ih={},ma=Pe.Buffer,JO=uA,p9={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},tv=XO,YO={binary:!0,hex:!0,base64:!0};Ih.DiffieHellmanGroup=Ih.createDiffieHellmanGroup=Ih.getDiffieHellman=function(i){var s=new ma(p9[i].prime,"hex"),a=new ma(p9[i].gen,"hex");return new tv(s,a)},Ih.createDiffieHellman=Ih.DiffieHellman=function i(s,a,u,n){return ma.isBuffer(a)||YO[a]===void 0?i(s,"binary",a,u):(a=a||"binary",n=n||"binary",u=u||new ma([2]),ma.isBuffer(u)||(u=new ma(u,n)),typeof s=="number"?new tv(JO(s,u),u,!0):(ma.isBuffer(s)||(s=new ma(s,a)),new tv(s,u,!0)))};var lA,QO=Pe.Buffer,Da=Vr,m9=Zh;function v9(i,s){var a=function(x){var E=cA(x);return{blinder:E.toRed(Da.mont(x.modulus)).redPow(new Da(x.publicExponent)).fromRed(),unblinder:E.invm(x.modulus)}}(s),u=s.modulus.byteLength(),n=(Da.mont(s.modulus),new Da(i).mul(a.blinder).umod(s.modulus)),p=n.toRed(Da.mont(s.prime1)),m=n.toRed(Da.mont(s.prime2)),y=s.coefficient,M=s.prime1,b=s.prime2,g=p.redPow(s.exponent1),S=m.redPow(s.exponent2);g=g.fromRed(),S=S.fromRed();var _=g.isub(S).imul(y).umod(M);return _.imul(b),S.iadd(_),new QO(S.imul(a.unblinder).umod(s.modulus).toArray(!1,u))}function cA(i){for(var s=i.modulus.byteLength(),a=new Da(m9(s));a.cmp(i.modulus)>=0||!a.umod(i.prime1)||!a.umod(i.prime2);)a=new Da(m9(s));return a}lA=v9,v9.getr=cA;var kb=lA,Rb={},o0=Rb;function dA(i){return i.length===1?"0"+i:i}function g9(i){for(var s="",a=0;a<i.length;a++)s+=dA(i[a].toString(16));return s}o0.toArray=function(i,s){if(Array.isArray(i))return i.slice();if(!i)return[];var a=[];if(typeof i!="string"){for(var u=0;u<i.length;u++)a[u]=0|i[u];return a}if(s==="hex")for((i=i.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(i="0"+i),u=0;u<i.length;u+=2)a.push(parseInt(i[u]+i[u+1],16));else for(u=0;u<i.length;u++){var n=i.charCodeAt(u),p=n>>8,m=255&n;p?a.push(p,m):a.push(m)}return a},o0.zero2=dA,o0.toHex=g9,o0.encode=function(i,s){return s==="hex"?g9(i):i};var cn={},Vn=cn,tN=Vr,eN=Dn,a0=Rb;Vn.assert=eN,Vn.toArray=a0.toArray,Vn.zero2=a0.zero2,Vn.toHex=a0.toHex,Vn.encode=a0.encode,Vn.getNAF=function(i,s,a){var u=new Array(Math.max(i.bitLength(),a)+1);u.fill(0);for(var n=1<<s+1,p=i.clone(),m=0;m<u.length;m++){var y,M=p.andln(n-1);p.isOdd()?(y=M>(n>>1)-1?(n>>1)-M:M,p.isubn(y)):y=0,u[m]=y,p.iushrn(1)}return u},Vn.getJSF=function(i,s){var a=[[],[]];i=i.clone(),s=s.clone();for(var u=0,n=0;i.cmpn(-u)>0||s.cmpn(-n)>0;){var p,m,y,M=i.andln(3)+u&3,b=s.andln(3)+n&3;M===3&&(M=-1),b===3&&(b=-1),(1&M)==0?p=0:p=(y=i.andln(7)+u&7)!==3&&y!==5||b!==2?M:-M,a[0].push(p),(1&b)==0?m=0:m=(y=s.andln(7)+n&7)!==3&&y!==5||M!==2?b:-b,a[1].push(m),2*u===p+1&&(u=1-u),2*n===m+1&&(n=1-n),i.iushrn(1),s.iushrn(1)}return a},Vn.cachedProperty=function(i,s,a){var u="_"+s;i.prototype[s]=function(){return this[u]!==void 0?this[u]:this[u]=a.call(this)}},Vn.parseBytes=function(i){return typeof i=="string"?Vn.toArray(i,"hex"):i},Vn.intFromLE=function(i){return new tN(i,"hex","le")};var pA,tc=Vr,Jg=cn,rN=Jg.assert;function G0(i,s){if(i instanceof G0)return i;this._importDER(i,s)||(rN(i.r&&i.s,"Signature without r or s"),this.r=new tc(i.r,16),this.s=new tc(i.s,16),i.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=i.recoveryParam)}function iN(){this.place=0}function ev(i,s){var a=i[s.place++];if(!(128&a))return a;for(var u=15&a,n=0,p=0,m=s.place;p<u;p++,m++)n<<=8,n|=i[m];return s.place=m,n}function b9(i){for(var s=0,a=i.length-1;!i[s]&&!(128&i[s+1])&&s<a;)s++;return s===0?i:i.slice(s)}function rv(i,s){if(s<128)return i.push(s),void 0;var a=1+(Math.log(s)/Math.LN2>>>3);for(i.push(128|a);--a;)i.push(s>>>(a<<3)&255);i.push(s)}pA=G0,G0.prototype._importDER=function(i,s){i=Jg.toArray(i,s);var a=new iN;if(i[a.place++]!==48||ev(i,a)+a.place!==i.length||i[a.place++]!==2)return!1;var u=ev(i,a),n=i.slice(a.place,u+a.place);if(a.place+=u,i[a.place++]!==2)return!1;var p=ev(i,a);if(i.length!==p+a.place)return!1;var m=i.slice(a.place,p+a.place);return n[0]===0&&128&n[1]&&(n=n.slice(1)),m[0]===0&&128&m[1]&&(m=m.slice(1)),this.r=new tc(n),this.s=new tc(m),this.recoveryParam=null,!0},G0.prototype.toDER=function(i){var s=this.r.toArray(),a=this.s.toArray();for(128&s[0]&&(s=[0].concat(s)),128&a[0]&&(a=[0].concat(a)),s=b9(s),a=b9(a);!(a[0]||128&a[1]);)a=a.slice(1);var u=[2];rv(u,s.length),(u=u.concat(s)).push(2),rv(u,a.length);var n=u.concat(a),p=[48];return rv(p,n.length),p=p.concat(n),Jg.encode(p,i)};var nN=pA,rr={},oN=Dn,aN=qe;function sN(i,s){return(64512&i.charCodeAt(s))==55296&&!(s<0||s+1>=i.length)&&(64512&i.charCodeAt(s+1))==56320}function y9(i){return(i>>>24|i>>>8&65280|i<<8&16711680|(255&i)<<24)>>>0}function w9(i){return i.length===1?"0"+i:i}function M9(i){return i.length===7?"0"+i:i.length===6?"00"+i:i.length===5?"000"+i:i.length===4?"0000"+i:i.length===3?"00000"+i:i.length===2?"000000"+i:i.length===1?"0000000"+i:i}rr.inherits=aN,rr.toArray=function(i,s){if(Array.isArray(i))return i.slice();if(!i)return[];var a=[];if(typeof i=="string")if(s){if(s==="hex")for((i=i.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(i="0"+i),n=0;n<i.length;n+=2)a.push(parseInt(i[n]+i[n+1],16))}else for(var u=0,n=0;n<i.length;n++){var p=i.charCodeAt(n);p<128?a[u++]=p:p<2048?(a[u++]=p>>6|192,a[u++]=63&p|128):sN(i,n)?(p=65536+((1023&p)<<10)+(1023&i.charCodeAt(++n)),a[u++]=p>>18|240,a[u++]=p>>12&63|128,a[u++]=p>>6&63|128,a[u++]=63&p|128):(a[u++]=p>>12|224,a[u++]=p>>6&63|128,a[u++]=63&p|128)}else for(n=0;n<i.length;n++)a[n]=0|i[n];return a},rr.toHex=function(i){for(var s="",a=0;a<i.length;a++)s+=w9(i[a].toString(16));return s},rr.htonl=y9,rr.toHex32=function(i,s){for(var a="",u=0;u<i.length;u++){var n=i[u];s==="little"&&(n=y9(n)),a+=M9(n.toString(16))}return a},rr.zero2=w9,rr.zero8=M9,rr.join32=function(i,s,a,u){var n=a-s;oN(n%4==0);for(var p=new Array(n/4),m=0,y=s;m<p.length;m++,y+=4){var M;M=u==="big"?i[y]<<24|i[y+1]<<16|i[y+2]<<8|i[y+3]:i[y+3]<<24|i[y+2]<<16|i[y+1]<<8|i[y],p[m]=M>>>0}return p},rr.split32=function(i,s){for(var a=new Array(4*i.length),u=0,n=0;u<i.length;u++,n+=4){var p=i[u];s==="big"?(a[n]=p>>>24,a[n+1]=p>>>16&255,a[n+2]=p>>>8&255,a[n+3]=255&p):(a[n+3]=p>>>24,a[n+2]=p>>>16&255,a[n+1]=p>>>8&255,a[n]=255&p)}return a},rr.rotr32=function(i,s){return i>>>s|i<<32-s},rr.rotl32=function(i,s){return i<<s|i>>>32-s},rr.sum32=function(i,s){return i+s>>>0},rr.sum32_3=function(i,s,a){return i+s+a>>>0},rr.sum32_4=function(i,s,a,u){return i+s+a+u>>>0},rr.sum32_5=function(i,s,a,u,n){return i+s+a+u+n>>>0},rr.sum64=function(i,s,a,u){var n=i[s],p=u+i[s+1]>>>0,m=(p<u?1:0)+a+n;i[s]=m>>>0,i[s+1]=p},rr.sum64_hi=function(i,s,a,u){return(s+u>>>0<s?1:0)+i+a>>>0},rr.sum64_lo=function(i,s,a,u){return s+u>>>0},rr.sum64_4_hi=function(i,s,a,u,n,p,m,y){var M=0,b=s;return M+=(b=b+u>>>0)<s?1:0,M+=(b=b+p>>>0)<p?1:0,i+a+n+m+(M+=(b=b+y>>>0)<y?1:0)>>>0},rr.sum64_4_lo=function(i,s,a,u,n,p,m,y){return s+u+p+y>>>0},rr.sum64_5_hi=function(i,s,a,u,n,p,m,y,M,b){var g=0,S=s;return g+=(S=S+u>>>0)<s?1:0,g+=(S=S+p>>>0)<p?1:0,g+=(S=S+y>>>0)<y?1:0,i+a+n+m+M+(g+=(S=S+b>>>0)<b?1:0)>>>0},rr.sum64_5_lo=function(i,s,a,u,n,p,m,y,M,b){return s+u+p+y+b>>>0},rr.rotr64_hi=function(i,s,a){return(s<<32-a|i>>>a)>>>0},rr.rotr64_lo=function(i,s,a){return(i<<32-a|s>>>a)>>>0},rr.shr64_hi=function(i,s,a){return i>>>a},rr.shr64_lo=function(i,s,a){return(i<<32-a|s>>>a)>>>0};var Wh={},_9=rr,hN=Dn;function s0(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Wh.BlockHash=s0,s0.prototype.update=function(i,s){if(i=_9.toArray(i,s),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){var a=(i=this.pending).length%this._delta8;this.pending=i.slice(i.length-a,i.length),this.pending.length===0&&(this.pending=null),i=_9.join32(i,0,i.length-a,this.endian);for(var u=0;u<i.length;u+=this._delta32)this._update(i,u,u+this._delta32)}return this},s0.prototype.digest=function(i){return this.update(this._pad()),hN(this.pending===null),this._digest(i)},s0.prototype._pad=function(){var i=this.pendingTotal,s=this._delta8,a=s-(i+this.padLength)%s,u=new Array(a+this.padLength);u[0]=128;for(var n=1;n<a;n++)u[n]=0;if(i<<=3,this.endian==="big"){for(var p=8;p<this.padLength;p++)u[n++]=0;u[n++]=0,u[n++]=0,u[n++]=0,u[n++]=0,u[n++]=i>>>24&255,u[n++]=i>>>16&255,u[n++]=i>>>8&255,u[n++]=255&i}else for(u[n++]=255&i,u[n++]=i>>>8&255,u[n++]=i>>>16&255,u[n++]=i>>>24&255,u[n++]=0,u[n++]=0,u[n++]=0,u[n++]=0,p=8;p<this.padLength;p++)u[n++]=0;return u};var mA,Ji=rr,fN=Wh,uN=Dn,Bo=Ji.rotr64_hi,To=Ji.rotr64_lo,vA=Ji.shr64_hi,gA=Ji.shr64_lo,va=Ji.sum64,iv=Ji.sum64_hi,nv=Ji.sum64_lo,lN=Ji.sum64_4_hi,cN=Ji.sum64_4_lo,dN=Ji.sum64_5_hi,pN=Ji.sum64_5_lo,bA=fN.BlockHash,mN=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Qn(){if(!(this instanceof Qn))return new Qn;bA.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=mN,this.W=new Array(160)}function vN(i,s,a,u,n){var p=i&a^~i&n;return p<0&&(p+=4294967296),p}function gN(i,s,a,u,n,p){var m=s&u^~s&p;return m<0&&(m+=4294967296),m}function bN(i,s,a,u,n){var p=i&a^i&n^a&n;return p<0&&(p+=4294967296),p}function yN(i,s,a,u,n,p){var m=s&u^s&p^u&p;return m<0&&(m+=4294967296),m}function wN(i,s){var a=Bo(i,s,28)^Bo(s,i,2)^Bo(s,i,7);return a<0&&(a+=4294967296),a}function MN(i,s){var a=To(i,s,28)^To(s,i,2)^To(s,i,7);return a<0&&(a+=4294967296),a}function _N(i,s){var a=Bo(i,s,14)^Bo(i,s,18)^Bo(s,i,9);return a<0&&(a+=4294967296),a}function SN(i,s){var a=To(i,s,14)^To(i,s,18)^To(s,i,9);return a<0&&(a+=4294967296),a}function xN(i,s){var a=Bo(i,s,1)^Bo(i,s,8)^vA(i,s,7);return a<0&&(a+=4294967296),a}function EN(i,s){var a=To(i,s,1)^To(i,s,8)^gA(i,s,7);return a<0&&(a+=4294967296),a}function AN(i,s){var a=Bo(i,s,19)^Bo(s,i,29)^vA(i,s,6);return a<0&&(a+=4294967296),a}function kN(i,s){var a=To(i,s,19)^To(s,i,29)^gA(i,s,6);return a<0&&(a+=4294967296),a}Ji.inherits(Qn,bA),mA=Qn,Qn.blockSize=1024,Qn.outSize=512,Qn.hmacStrength=192,Qn.padLength=128,Qn.prototype._prepareBlock=function(i,s){for(var a=this.W,u=0;u<32;u++)a[u]=i[s+u];for(;u<a.length;u+=2){var n=AN(a[u-4],a[u-3]),p=kN(a[u-4],a[u-3]),m=a[u-14],y=a[u-13],M=xN(a[u-30],a[u-29]),b=EN(a[u-30],a[u-29]),g=a[u-32],S=a[u-31];a[u]=lN(n,p,m,y,M,b,g,S),a[u+1]=cN(n,p,m,y,M,b,g,S)}},Qn.prototype._update=function(i,s){this._prepareBlock(i,s);var a=this.W,u=this.h[0],n=this.h[1],p=this.h[2],m=this.h[3],y=this.h[4],M=this.h[5],b=this.h[6],g=this.h[7],S=this.h[8],_=this.h[9],x=this.h[10],E=this.h[11],k=this.h[12],B=this.h[13],T=this.h[14],C=this.h[15];uN(this.k.length===a.length);for(var P=0;P<a.length;P+=2){var G=T,U=C,V=_N(S,_),I=SN(S,_),D=vN(S,_,x,E,k),z=gN(S,_,x,E,k,B),d=this.k[P],t=this.k[P+1],r=a[P],o=a[P+1],h=dN(G,U,V,I,D,z,d,t,r,o),f=pN(G,U,V,I,D,z,d,t,r,o);G=wN(u,n),U=MN(u,n),V=bN(u,n,p,m,y),I=yN(u,n,p,m,y,M);var v=iv(G,U,V,I),w=nv(G,U,V,I);T=k,C=B,k=x,B=E,x=S,E=_,S=iv(b,g,h,f),_=nv(g,g,h,f),b=y,g=M,y=p,M=m,p=u,m=n,u=iv(h,f,v,w),n=nv(h,f,v,w)}va(this.h,0,u,n),va(this.h,2,p,m),va(this.h,4,y,M),va(this.h,6,b,g),va(this.h,8,S,_),va(this.h,10,x,E),va(this.h,12,k,B),va(this.h,14,T,C)},Qn.prototype._digest=function(i){return i==="hex"?Ji.toHex32(this.h,"big"):Ji.split32(this.h,"big")};var yA=mA,So={},yo=rr.rotr32;function S9(i,s,a){return i&s^~i&a}function x9(i,s,a){return i&s^i&a^s&a}function E9(i,s,a){return i^s^a}So.ft_1=function(i,s,a,u){return i===0?S9(s,a,u):i===1||i===3?E9(s,a,u):i===2?x9(s,a,u):void 0},So.ch32=S9,So.maj32=x9,So.p32=E9,So.s0_256=function(i){return yo(i,2)^yo(i,13)^yo(i,22)},So.s1_256=function(i){return yo(i,6)^yo(i,11)^yo(i,25)},So.g0_256=function(i){return yo(i,7)^yo(i,18)^i>>>3},So.g1_256=function(i){return yo(i,17)^yo(i,19)^i>>>10};var wA,Oh=rr,RN=Wh,Xh=So,BN=Dn,Wn=Oh.sum32,TN=Oh.sum32_4,$N=Oh.sum32_5,IN=Xh.ch32,CN=Xh.maj32,PN=Xh.s0_256,DN=Xh.s1_256,LN=Xh.g0_256,ON=Xh.g1_256,MA=RN.BlockHash,NN=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function xo(){if(!(this instanceof xo))return new xo;MA.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=NN,this.W=new Array(64)}Oh.inherits(xo,MA),wA=xo,xo.blockSize=512,xo.outSize=256,xo.hmacStrength=192,xo.padLength=64,xo.prototype._update=function(i,s){for(var a=this.W,u=0;u<16;u++)a[u]=i[s+u];for(;u<a.length;u++)a[u]=TN(ON(a[u-2]),a[u-7],LN(a[u-15]),a[u-16]);var n=this.h[0],p=this.h[1],m=this.h[2],y=this.h[3],M=this.h[4],b=this.h[5],g=this.h[6],S=this.h[7];for(BN(this.k.length===a.length),u=0;u<a.length;u++){var _=$N(S,DN(M),IN(M,b,g),this.k[u],a[u]),x=Wn(PN(n),CN(n,p,m));S=g,g=b,b=M,M=Wn(y,_),y=m,m=p,p=n,n=Wn(_,x)}this.h[0]=Wn(this.h[0],n),this.h[1]=Wn(this.h[1],p),this.h[2]=Wn(this.h[2],m),this.h[3]=Wn(this.h[3],y),this.h[4]=Wn(this.h[4],M),this.h[5]=Wn(this.h[5],b),this.h[6]=Wn(this.h[6],g),this.h[7]=Wn(this.h[7],S)},xo.prototype._digest=function(i){return i==="hex"?Oh.toHex32(this.h,"big"):Oh.split32(this.h,"big")};var _A=wA,SA,Nh=rr,qN=Wh,zN=So,ov=Nh.rotl32,Rf=Nh.sum32,UN=Nh.sum32_5,FN=zN.ft_1,xA=qN.BlockHash,jN=[1518500249,1859775393,2400959708,3395469782];function Eo(){if(!(this instanceof Eo))return new Eo;xA.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Nh.inherits(Eo,xA),SA=Eo,Eo.blockSize=512,Eo.outSize=160,Eo.hmacStrength=80,Eo.padLength=64,Eo.prototype._update=function(i,s){for(var a=this.W,u=0;u<16;u++)a[u]=i[s+u];for(;u<a.length;u++)a[u]=ov(a[u-3]^a[u-8]^a[u-14]^a[u-16],1);var n=this.h[0],p=this.h[1],m=this.h[2],y=this.h[3],M=this.h[4];for(u=0;u<a.length;u++){var b=~~(u/20),g=UN(ov(n,5),FN(b,p,m,y),M,a[u],jN[b]);M=y,y=m,m=ov(p,30),p=n,n=g}this.h[0]=Rf(this.h[0],n),this.h[1]=Rf(this.h[1],p),this.h[2]=Rf(this.h[2],m),this.h[3]=Rf(this.h[3],y),this.h[4]=Rf(this.h[4],M)},Eo.prototype._digest=function(i){return i==="hex"?Nh.toHex32(this.h,"big"):Nh.split32(this.h,"big")};var EA,HN=SA,av=rr,AA=_A;function Xo(){if(!(this instanceof Xo))return new Xo;AA.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}av.inherits(Xo,AA),EA=Xo,Xo.blockSize=512,Xo.outSize=224,Xo.hmacStrength=192,Xo.padLength=64,Xo.prototype._digest=function(i){return i==="hex"?av.toHex32(this.h.slice(0,7),"big"):av.split32(this.h.slice(0,7),"big")};var kA,KN=EA,sv=rr,RA=yA;function Jo(){if(!(this instanceof Jo))return new Jo;RA.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}sv.inherits(Jo,RA),kA=Jo,Jo.blockSize=1024,Jo.outSize=384,Jo.hmacStrength=192,Jo.padLength=128,Jo.prototype._digest=function(i){return i==="hex"?sv.toHex32(this.h.slice(0,12),"big"):sv.split32(this.h.slice(0,12),"big")};var GN=kA,Ch={};Ch.sha1=HN,Ch.sha224=KN,Ch.sha256=_A,Ch.sha384=GN,Ch.sha512=yA;var BA={},zs=rr,ZN=Wh,h0=zs.rotl32,A9=zs.sum32,Bf=zs.sum32_3,k9=zs.sum32_4,TA=ZN.BlockHash;function Ao(){if(!(this instanceof Ao))return new Ao;TA.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function R9(i,s,a,u){return i<=15?s^a^u:i<=31?s&a|~s&u:i<=47?(s|~a)^u:i<=63?s&u|a&~u:s^(a|~u)}function VN(i){return i<=15?0:i<=31?1518500249:i<=47?1859775393:i<=63?2400959708:2840853838}function WN(i){return i<=15?1352829926:i<=31?1548603684:i<=47?1836072691:i<=63?2053994217:0}zs.inherits(Ao,TA),BA.ripemd160=Ao,Ao.blockSize=512,Ao.outSize=160,Ao.hmacStrength=192,Ao.padLength=64,Ao.prototype._update=function(i,s){for(var a=this.h[0],u=this.h[1],n=this.h[2],p=this.h[3],m=this.h[4],y=a,M=u,b=n,g=p,S=m,_=0;_<80;_++){var x=A9(h0(k9(a,R9(_,u,n,p),i[XN[_]+s],VN(_)),YN[_]),m);a=m,m=p,p=h0(n,10),n=u,u=x,x=A9(h0(k9(y,R9(79-_,M,b,g),i[JN[_]+s],WN(_)),QN[_]),S),y=S,S=g,g=h0(b,10),b=M,M=x}x=Bf(this.h[1],n,g),this.h[1]=Bf(this.h[2],p,S),this.h[2]=Bf(this.h[3],m,y),this.h[3]=Bf(this.h[4],a,M),this.h[4]=Bf(this.h[0],u,b),this.h[0]=x},Ao.prototype._digest=function(i){return i==="hex"?zs.toHex32(this.h,"little"):zs.split32(this.h,"little")};var $A,XN=[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],JN=[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],YN=[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],QN=[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],tq=rr,eq=Dn;function Ph(i,s,a){if(!(this instanceof Ph))return new Ph(i,s,a);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(tq.toArray(s,a))}$A=Ph,Ph.prototype._init=function(i){i.length>this.blockSize&&(i=new this.Hash().update(i).digest()),eq(i.length<=this.blockSize);for(var s=i.length;s<this.blockSize;s++)i.push(0);for(s=0;s<i.length;s++)i[s]^=54;for(this.inner=new this.Hash().update(i),s=0;s<i.length;s++)i[s]^=106;this.outer=new this.Hash().update(i)},Ph.prototype.update=function(i,s){return this.inner.update(i,s),this},Ph.prototype.digest=function(i){return this.outer.update(this.inner.digest()),this.outer.digest(i)};var rq=$A,mc={},vi=mc;vi.utils=rr,vi.common=Wh,vi.sha=Ch,vi.ripemd=BA,vi.hmac=rq,vi.sha1=vi.sha.sha1,vi.sha256=vi.sha.sha256,vi.sha224=vi.sha.sha224,vi.sha384=vi.sha.sha384,vi.sha512=vi.sha.sha512,vi.ripemd160=vi.ripemd.ripemd160;var IA,iq=mc,Ns=Rb,CA=Dn;function La(i){if(!(this instanceof La))return new La(i);this.hash=i.hash,this.predResist=!!i.predResist,this.outLen=this.hash.outSize,this.minEntropy=i.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var s=Ns.toArray(i.entropy,i.entropyEnc||"hex"),a=Ns.toArray(i.nonce,i.nonceEnc||"hex"),u=Ns.toArray(i.pers,i.persEnc||"hex");CA(s.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(s,a,u)}IA=La,La.prototype._init=function(i,s,a){var u=i.concat(s).concat(a);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(u),this._reseed=1,this.reseedInterval=281474976710656},La.prototype._hmac=function(){return new iq.hmac(this.hash,this.K)},La.prototype._update=function(i){var s=this._hmac().update(this.V).update([0]);i&&(s=s.update(i)),this.K=s.digest(),this.V=this._hmac().update(this.V).digest(),i&&(this.K=this._hmac().update(this.V).update([1]).update(i).digest(),this.V=this._hmac().update(this.V).digest())},La.prototype.reseed=function(i,s,a,u){typeof s!="string"&&(u=a,a=s,s=null),i=Ns.toArray(i,s),a=Ns.toArray(a,u),CA(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(i.concat(a||[])),this._reseed=1},La.prototype.generate=function(i,s,a,u){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof s!="string"&&(u=a,a=s,s=null),a&&(a=Ns.toArray(a,u||"hex"),this._update(a));for(var n=[];n.length<i;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var p=n.slice(0,i);return this._update(a),this._reseed++,Ns.encode(p,s)};var nq=IA,PA,ws=Vr,iu=cn,f0=iu.getNAF,oq=iu.getJSF,u0=iu.assert;function ga(i,s){this.type=i,this.p=new ws(s.p,16),this.red=s.prime?ws.red(s.prime):ws.mont(this.p),this.zero=new ws(0).toRed(this.red),this.one=new ws(1).toRed(this.red),this.two=new ws(2).toRed(this.red),this.n=s.n&&new ws(s.n,16),this.g=s.g&&this.pointFromJSON(s.g,s.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var a=this.n&&this.p.div(this.n);!a||a.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function En(i,s){this.curve=i,this.type=s,this.precomputed=null}PA=ga,ga.prototype.point=function(){throw new Error("Not implemented")},ga.prototype.validate=function(){throw new Error("Not implemented")},ga.prototype._fixedNafMul=function(i,s){u0(i.precomputed);var a=i._getDoubles(),u=f0(s,1,this._bitLength),n=(1<<a.step+1)-(a.step%2==0?2:1);n/=3;for(var p=[],m=0;m<u.length;m+=a.step){var y=0;for(s=m+a.step-1;s>=m;s--)y=(y<<1)+u[s];p.push(y)}for(var M=this.jpoint(null,null,null),b=this.jpoint(null,null,null),g=n;g>0;g--){for(m=0;m<p.length;m++)(y=p[m])===g?b=b.mixedAdd(a.points[m]):y===-g&&(b=b.mixedAdd(a.points[m].neg()));M=M.add(b)}return M.toP()},ga.prototype._wnafMul=function(i,s){var a=4,u=i._getNAFPoints(a);a=u.wnd;for(var n=u.points,p=f0(s,a,this._bitLength),m=this.jpoint(null,null,null),y=p.length-1;y>=0;y--){for(s=0;y>=0&&p[y]===0;y--)s++;if(y>=0&&s++,m=m.dblp(s),y<0)break;var M=p[y];u0(M!==0),m=i.type==="affine"?M>0?m.mixedAdd(n[M-1>>1]):m.mixedAdd(n[-M-1>>1].neg()):M>0?m.add(n[M-1>>1]):m.add(n[-M-1>>1].neg())}return i.type==="affine"?m.toP():m},ga.prototype._wnafMulAdd=function(i,s,a,u,n){for(var p=this._wnafT1,m=this._wnafT2,y=this._wnafT3,M=0,b=0;b<u;b++){var g=(I=s[b])._getNAFPoints(i);p[b]=g.wnd,m[b]=g.points}for(b=u-1;b>=1;b-=2){var S=b-1,_=b;if(p[S]===1&&p[_]===1){var x=[s[S],null,null,s[_]];s[S].y.cmp(s[_].y)===0?(x[1]=s[S].add(s[_]),x[2]=s[S].toJ().mixedAdd(s[_].neg())):s[S].y.cmp(s[_].y.redNeg())===0?(x[1]=s[S].toJ().mixedAdd(s[_]),x[2]=s[S].add(s[_].neg())):(x[1]=s[S].toJ().mixedAdd(s[_]),x[2]=s[S].toJ().mixedAdd(s[_].neg()));var E=[-3,-1,-5,-7,0,7,5,1,3],k=oq(a[S],a[_]);M=Math.max(k[0].length,M),y[S]=new Array(M),y[_]=new Array(M);for(var B=0;B<M;B++){var T=0|k[0][B],C=0|k[1][B];y[S][B]=E[3*(T+1)+(C+1)],y[_][B]=0,m[S]=x}}else y[S]=f0(a[S],p[S],this._bitLength),y[_]=f0(a[_],p[_],this._bitLength),M=Math.max(y[S].length,M),M=Math.max(y[_].length,M)}var P=this.jpoint(null,null,null),G=this._wnafT4;for(b=M;b>=0;b--){for(var U=0;b>=0;){var V=!0;for(B=0;B<u;B++)G[B]=0|y[B][b],G[B]!==0&&(V=!1);if(!V)break;U++,b--}if(b>=0&&U++,P=P.dblp(U),b<0)break;for(B=0;B<u;B++){var I,D=G[B];D!==0&&(D>0?I=m[B][D-1>>1]:D<0&&(I=m[B][-D-1>>1].neg()),P=I.type==="affine"?P.mixedAdd(I):P.add(I))}}for(b=0;b<u;b++)m[b]=null;return n?P:P.toP()},ga.BasePoint=En,En.prototype.eq=function(){throw new Error("Not implemented")},En.prototype.validate=function(){return this.curve.validate(this)},ga.prototype.decodePoint=function(i,s){i=iu.toArray(i,s);var a=this.p.byteLength();if((i[0]===4||i[0]===6||i[0]===7)&&i.length-1==2*a)return i[0]===6?u0(i[i.length-1]%2==0):i[0]===7&&u0(i[i.length-1]%2==1),this.point(i.slice(1,1+a),i.slice(1+a,1+2*a));if((i[0]===2||i[0]===3)&&i.length-1===a)return this.pointFromX(i.slice(1,1+a),i[0]===3);throw new Error("Unknown point format")},En.prototype.encodeCompressed=function(i){return this.encode(i,!0)},En.prototype._encode=function(i){var s=this.curve.p.byteLength(),a=this.getX().toArray("be",s);return i?[this.getY().isEven()?2:3].concat(a):[4].concat(a,this.getY().toArray("be",s))},En.prototype.encode=function(i,s){return iu.encode(this._encode(s),i)},En.prototype.precompute=function(i){if(this.precomputed)return this;var s={doubles:null,naf:null,beta:null};return s.naf=this._getNAFPoints(8),s.doubles=this._getDoubles(4,i),s.beta=this._getBeta(),this.precomputed=s,this},En.prototype._hasDoubles=function(i){if(!this.precomputed)return!1;var s=this.precomputed.doubles;return!!s&&s.points.length>=Math.ceil((i.bitLength()+1)/s.step)},En.prototype._getDoubles=function(i,s){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],u=this,n=0;n<s;n+=i){for(var p=0;p<i;p++)u=u.dbl();a.push(u)}return{step:i,points:a}},En.prototype._getNAFPoints=function(i){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var s=[this],a=(1<<i)-1,u=a===1?null:this.dbl(),n=1;n<a;n++)s[n]=s[n-1].add(u);return{wnd:i,points:s}},En.prototype._getBeta=function(){return null},En.prototype.dblp=function(i){for(var s=this,a=0;a<i;a++)s=s.dbl();return s};var DA,vc=PA,Ur=Vr,hv=qe,qh=vc,aq=cn.assert;function An(i){qh.call(this,"short",i),this.a=new Ur(i.a,16).toRed(this.red),this.b=new Ur(i.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(i),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function ui(i,s,a,u){qh.BasePoint.call(this,i,"affine"),s===null&&a===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Ur(s,16),this.y=new Ur(a,16),u&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function gi(i,s,a,u){qh.BasePoint.call(this,i,"jacobian"),s===null&&a===null&&u===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Ur(0)):(this.x=new Ur(s,16),this.y=new Ur(a,16),this.z=new Ur(u,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}hv(An,qh),DA=An,An.prototype._getEndomorphism=function(i){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var s,a;if(i.beta)s=new Ur(i.beta,16).toRed(this.red);else{var u=this._getEndoRoots(this.p);s=(s=u[0].cmp(u[1])<0?u[0]:u[1]).toRed(this.red)}if(i.lambda)a=new Ur(i.lambda,16);else{var n=this._getEndoRoots(this.n);this.g.mul(n[0]).x.cmp(this.g.x.redMul(s))===0?a=n[0]:(a=n[1],aq(this.g.mul(a).x.cmp(this.g.x.redMul(s))===0))}return{beta:s,lambda:a,basis:i.basis?i.basis.map(function(p){return{a:new Ur(p.a,16),b:new Ur(p.b,16)}}):this._getEndoBasis(a)}}},An.prototype._getEndoRoots=function(i){var s=i===this.p?this.red:Ur.mont(i),a=new Ur(2).toRed(s).redInvm(),u=a.redNeg(),n=new Ur(3).toRed(s).redNeg().redSqrt().redMul(a);return[u.redAdd(n).fromRed(),u.redSub(n).fromRed()]},An.prototype._getEndoBasis=function(i){for(var s,a,u,n,p,m,y,M,b,g=this.n.ushrn(Math.floor(this.n.bitLength()/2)),S=i,_=this.n.clone(),x=new Ur(1),E=new Ur(0),k=new Ur(0),B=new Ur(1),T=0;S.cmpn(0)!==0;){var C=_.div(S);M=_.sub(C.mul(S)),b=k.sub(C.mul(x));var P=B.sub(C.mul(E));if(!u&&M.cmp(g)<0)s=y.neg(),a=x,u=M.neg(),n=b;else if(u&&++T==2)break;y=M,_=S,S=M,k=x,x=b,B=E,E=P}p=M.neg(),m=b;var G=u.sqr().add(n.sqr());return p.sqr().add(m.sqr()).cmp(G)>=0&&(p=s,m=a),u.negative&&(u=u.neg(),n=n.neg()),p.negative&&(p=p.neg(),m=m.neg()),[{a:u,b:n},{a:p,b:m}]},An.prototype._endoSplit=function(i){var s=this.endo.basis,a=s[0],u=s[1],n=u.b.mul(i).divRound(this.n),p=a.b.neg().mul(i).divRound(this.n),m=n.mul(a.a),y=p.mul(u.a),M=n.mul(a.b),b=p.mul(u.b);return{k1:i.sub(m).sub(y),k2:M.add(b).neg()}},An.prototype.pointFromX=function(i,s){(i=new Ur(i,16)).red||(i=i.toRed(this.red));var a=i.redSqr().redMul(i).redIAdd(i.redMul(this.a)).redIAdd(this.b),u=a.redSqrt();if(u.redSqr().redSub(a).cmp(this.zero)!==0)throw new Error("invalid point");var n=u.fromRed().isOdd();return(s&&!n||!s&&n)&&(u=u.redNeg()),this.point(i,u)},An.prototype.validate=function(i){if(i.inf)return!0;var s=i.x,a=i.y,u=this.a.redMul(s),n=s.redSqr().redMul(s).redIAdd(u).redIAdd(this.b);return a.redSqr().redISub(n).cmpn(0)===0},An.prototype._endoWnafMulAdd=function(i,s,a){for(var u=this._endoWnafT1,n=this._endoWnafT2,p=0;p<i.length;p++){var m=this._endoSplit(s[p]),y=i[p],M=y._getBeta();m.k1.negative&&(m.k1.ineg(),y=y.neg(!0)),m.k2.negative&&(m.k2.ineg(),M=M.neg(!0)),u[2*p]=y,u[2*p+1]=M,n[2*p]=m.k1,n[2*p+1]=m.k2}for(var b=this._wnafMulAdd(1,u,n,2*p,a),g=0;g<2*p;g++)u[g]=null,n[g]=null;return b},hv(ui,qh.BasePoint),An.prototype.point=function(i,s,a){return new ui(this,i,s,a)},An.prototype.pointFromJSON=function(i,s){return ui.fromJSON(this,i,s)},ui.prototype._getBeta=function(){if(this.curve.endo){var i=this.precomputed;if(i&&i.beta)return i.beta;var s=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(i){var a=this.curve,u=function(n){return a.point(n.x.redMul(a.endo.beta),n.y)};i.beta=s,s.precomputed={beta:null,naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(u)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(u)}}}return s}},ui.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},ui.fromJSON=function(i,s,a){typeof s=="string"&&(s=JSON.parse(s));var u=i.point(s[0],s[1],a);if(!s[2])return u;function n(m){return i.point(m[0],m[1],a)}var p=s[2];return u.precomputed={beta:null,doubles:p.doubles&&{step:p.doubles.step,points:[u].concat(p.doubles.points.map(n))},naf:p.naf&&{wnd:p.naf.wnd,points:[u].concat(p.naf.points.map(n))}},u},ui.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},ui.prototype.isInfinity=function(){return this.inf},ui.prototype.add=function(i){if(this.inf)return i;if(i.inf)return this;if(this.eq(i))return this.dbl();if(this.neg().eq(i))return this.curve.point(null,null);if(this.x.cmp(i.x)===0)return this.curve.point(null,null);var s=this.y.redSub(i.y);s.cmpn(0)!==0&&(s=s.redMul(this.x.redSub(i.x).redInvm()));var a=s.redSqr().redISub(this.x).redISub(i.x),u=s.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,u)},ui.prototype.dbl=function(){if(this.inf)return this;var i=this.y.redAdd(this.y);if(i.cmpn(0)===0)return this.curve.point(null,null);var s=this.curve.a,a=this.x.redSqr(),u=i.redInvm(),n=a.redAdd(a).redIAdd(a).redIAdd(s).redMul(u),p=n.redSqr().redISub(this.x.redAdd(this.x)),m=n.redMul(this.x.redSub(p)).redISub(this.y);return this.curve.point(p,m)},ui.prototype.getX=function(){return this.x.fromRed()},ui.prototype.getY=function(){return this.y.fromRed()},ui.prototype.mul=function(i){return i=new Ur(i,16),this.isInfinity()?this:this._hasDoubles(i)?this.curve._fixedNafMul(this,i):this.curve.endo?this.curve._endoWnafMulAdd([this],[i]):this.curve._wnafMul(this,i)},ui.prototype.mulAdd=function(i,s,a){var u=[this,s],n=[i,a];return this.curve.endo?this.curve._endoWnafMulAdd(u,n):this.curve._wnafMulAdd(1,u,n,2)},ui.prototype.jmulAdd=function(i,s,a){var u=[this,s],n=[i,a];return this.curve.endo?this.curve._endoWnafMulAdd(u,n,!0):this.curve._wnafMulAdd(1,u,n,2,!0)},ui.prototype.eq=function(i){return this===i||this.inf===i.inf&&(this.inf||this.x.cmp(i.x)===0&&this.y.cmp(i.y)===0)},ui.prototype.neg=function(i){if(this.inf)return this;var s=this.curve.point(this.x,this.y.redNeg());if(i&&this.precomputed){var a=this.precomputed,u=function(n){return n.neg()};s.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(u)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(u)}}}return s},ui.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},hv(gi,qh.BasePoint),An.prototype.jpoint=function(i,s,a){return new gi(this,i,s,a)},gi.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var i=this.z.redInvm(),s=i.redSqr(),a=this.x.redMul(s),u=this.y.redMul(s).redMul(i);return this.curve.point(a,u)},gi.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},gi.prototype.add=function(i){if(this.isInfinity())return i;if(i.isInfinity())return this;var s=i.z.redSqr(),a=this.z.redSqr(),u=this.x.redMul(s),n=i.x.redMul(a),p=this.y.redMul(s.redMul(i.z)),m=i.y.redMul(a.redMul(this.z)),y=u.redSub(n),M=p.redSub(m);if(y.cmpn(0)===0)return M.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=y.redSqr(),g=b.redMul(y),S=u.redMul(b),_=M.redSqr().redIAdd(g).redISub(S).redISub(S),x=M.redMul(S.redISub(_)).redISub(p.redMul(g)),E=this.z.redMul(i.z).redMul(y);return this.curve.jpoint(_,x,E)},gi.prototype.mixedAdd=function(i){if(this.isInfinity())return i.toJ();if(i.isInfinity())return this;var s=this.z.redSqr(),a=this.x,u=i.x.redMul(s),n=this.y,p=i.y.redMul(s).redMul(this.z),m=a.redSub(u),y=n.redSub(p);if(m.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var M=m.redSqr(),b=M.redMul(m),g=a.redMul(M),S=y.redSqr().redIAdd(b).redISub(g).redISub(g),_=y.redMul(g.redISub(S)).redISub(n.redMul(b)),x=this.z.redMul(m);return this.curve.jpoint(S,_,x)},gi.prototype.dblp=function(i){if(i===0)return this;if(this.isInfinity())return this;if(!i)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var s=this,a=0;a<i;a++)s=s.dbl();return s}var u=this.curve.a,n=this.curve.tinv,p=this.x,m=this.y,y=this.z,M=y.redSqr().redSqr(),b=m.redAdd(m);for(a=0;a<i;a++){var g=p.redSqr(),S=b.redSqr(),_=S.redSqr(),x=g.redAdd(g).redIAdd(g).redIAdd(u.redMul(M)),E=p.redMul(S),k=x.redSqr().redISub(E.redAdd(E)),B=E.redISub(k),T=x.redMul(B);T=T.redIAdd(T).redISub(_);var C=b.redMul(y);a+1<i&&(M=M.redMul(_)),p=k,y=C,b=T}return this.curve.jpoint(p,b.redMul(n),y)},gi.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},gi.prototype._zeroDbl=function(){var i,s,a;if(this.zOne){var u=this.x.redSqr(),n=this.y.redSqr(),p=n.redSqr(),m=this.x.redAdd(n).redSqr().redISub(u).redISub(p);m=m.redIAdd(m);var y=u.redAdd(u).redIAdd(u),M=y.redSqr().redISub(m).redISub(m),b=p.redIAdd(p);b=(b=b.redIAdd(b)).redIAdd(b),i=M,s=y.redMul(m.redISub(M)).redISub(b),a=this.y.redAdd(this.y)}else{var g=this.x.redSqr(),S=this.y.redSqr(),_=S.redSqr(),x=this.x.redAdd(S).redSqr().redISub(g).redISub(_);x=x.redIAdd(x);var E=g.redAdd(g).redIAdd(g),k=E.redSqr(),B=_.redIAdd(_);B=(B=B.redIAdd(B)).redIAdd(B),i=k.redISub(x).redISub(x),s=E.redMul(x.redISub(i)).redISub(B),a=(a=this.y.redMul(this.z)).redIAdd(a)}return this.curve.jpoint(i,s,a)},gi.prototype._threeDbl=function(){var i,s,a;if(this.zOne){var u=this.x.redSqr(),n=this.y.redSqr(),p=n.redSqr(),m=this.x.redAdd(n).redSqr().redISub(u).redISub(p);m=m.redIAdd(m);var y=u.redAdd(u).redIAdd(u).redIAdd(this.curve.a),M=y.redSqr().redISub(m).redISub(m);i=M;var b=p.redIAdd(p);b=(b=b.redIAdd(b)).redIAdd(b),s=y.redMul(m.redISub(M)).redISub(b),a=this.y.redAdd(this.y)}else{var g=this.z.redSqr(),S=this.y.redSqr(),_=this.x.redMul(S),x=this.x.redSub(g).redMul(this.x.redAdd(g));x=x.redAdd(x).redIAdd(x);var E=_.redIAdd(_),k=(E=E.redIAdd(E)).redAdd(E);i=x.redSqr().redISub(k),a=this.y.redAdd(this.z).redSqr().redISub(S).redISub(g);var B=S.redSqr();B=(B=(B=B.redIAdd(B)).redIAdd(B)).redIAdd(B),s=x.redMul(E.redISub(i)).redISub(B)}return this.curve.jpoint(i,s,a)},gi.prototype._dbl=function(){var i=this.curve.a,s=this.x,a=this.y,u=this.z,n=u.redSqr().redSqr(),p=s.redSqr(),m=a.redSqr(),y=p.redAdd(p).redIAdd(p).redIAdd(i.redMul(n)),M=s.redAdd(s),b=(M=M.redIAdd(M)).redMul(m),g=y.redSqr().redISub(b.redAdd(b)),S=b.redISub(g),_=m.redSqr();_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_);var x=y.redMul(S).redISub(_),E=a.redAdd(a).redMul(u);return this.curve.jpoint(g,x,E)},gi.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var i=this.x.redSqr(),s=this.y.redSqr(),a=this.z.redSqr(),u=s.redSqr(),n=i.redAdd(i).redIAdd(i),p=n.redSqr(),m=this.x.redAdd(s).redSqr().redISub(i).redISub(u),y=(m=(m=(m=m.redIAdd(m)).redAdd(m).redIAdd(m)).redISub(p)).redSqr(),M=u.redIAdd(u);M=(M=(M=M.redIAdd(M)).redIAdd(M)).redIAdd(M);var b=n.redIAdd(m).redSqr().redISub(p).redISub(y).redISub(M),g=s.redMul(b);g=(g=g.redIAdd(g)).redIAdd(g);var S=this.x.redMul(y).redISub(g);S=(S=S.redIAdd(S)).redIAdd(S);var _=this.y.redMul(b.redMul(M.redISub(b)).redISub(m.redMul(y)));_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_);var x=this.z.redAdd(m).redSqr().redISub(a).redISub(y);return this.curve.jpoint(S,_,x)},gi.prototype.mul=function(i,s){return i=new Ur(i,s),this.curve._wnafMul(this,i)},gi.prototype.eq=function(i){if(i.type==="affine")return this.eq(i.toJ());if(this===i)return!0;var s=this.z.redSqr(),a=i.z.redSqr();if(this.x.redMul(a).redISub(i.x.redMul(s)).cmpn(0)!==0)return!1;var u=s.redMul(this.z),n=a.redMul(i.z);return this.y.redMul(n).redISub(i.y.redMul(u)).cmpn(0)===0},gi.prototype.eqXToP=function(i){var s=this.z.redSqr(),a=i.toRed(this.curve.red).redMul(s);if(this.x.cmp(a)===0)return!0;for(var u=i.clone(),n=this.curve.redN.redMul(s);;){if(u.iadd(this.curve.n),u.cmp(this.curve.p)>=0)return!1;if(a.redIAdd(n),this.x.cmp(a)===0)return!0}},gi.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},gi.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var LA,sq=DA,Dh=Vr,B9=qe,ec=vc,hq=cn;function Eh(i){ec.call(this,"mont",i),this.a=new Dh(i.a,16).toRed(this.red),this.b=new Dh(i.b,16).toRed(this.red),this.i4=new Dh(4).toRed(this.red).redInvm(),this.two=new Dh(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function li(i,s,a){ec.BasePoint.call(this,i,"projective"),s===null&&a===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Dh(s,16),this.z=new Dh(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}B9(Eh,ec),LA=Eh,Eh.prototype.validate=function(i){var s=i.normalize().x,a=s.redSqr(),u=a.redMul(s).redAdd(a.redMul(this.a)).redAdd(s);return u.redSqrt().redSqr().cmp(u)===0},B9(li,ec.BasePoint),Eh.prototype.decodePoint=function(i,s){return this.point(hq.toArray(i,s),1)},Eh.prototype.point=function(i,s){return new li(this,i,s)},Eh.prototype.pointFromJSON=function(i){return li.fromJSON(this,i)},li.prototype.precompute=function(){},li.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},li.fromJSON=function(i,s){return new li(i,s[0],s[1]||i.one)},li.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},li.prototype.isInfinity=function(){return this.z.cmpn(0)===0},li.prototype.dbl=function(){var i=this.x.redAdd(this.z).redSqr(),s=this.x.redSub(this.z).redSqr(),a=i.redSub(s),u=i.redMul(s),n=a.redMul(s.redAdd(this.curve.a24.redMul(a)));return this.curve.point(u,n)},li.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},li.prototype.diffAdd=function(i,s){var a=this.x.redAdd(this.z),u=this.x.redSub(this.z),n=i.x.redAdd(i.z),p=i.x.redSub(i.z).redMul(a),m=n.redMul(u),y=s.z.redMul(p.redAdd(m).redSqr()),M=s.x.redMul(p.redISub(m).redSqr());return this.curve.point(y,M)},li.prototype.mul=function(i){for(var s=i.clone(),a=this,u=this.curve.point(null,null),n=[];s.cmpn(0)!==0;s.iushrn(1))n.push(s.andln(1));for(var p=n.length-1;p>=0;p--)n[p]===0?(a=a.diffAdd(u,this),u=u.dbl()):(u=a.diffAdd(u,this),a=a.dbl());return u},li.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},li.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},li.prototype.eq=function(i){return this.getX().cmp(i.getX())===0},li.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},li.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var OA,fq=LA,ta=Vr,T9=qe,rc=vc,uq=cn.assert;function wo(i){this.twisted=(0|i.a)!=1,this.mOneA=this.twisted&&(0|i.a)==-1,this.extended=this.mOneA,rc.call(this,"edwards",i),this.a=new ta(i.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new ta(i.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new ta(i.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),uq(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|i.c)==1}function Br(i,s,a,u,n){rc.BasePoint.call(this,i,"projective"),s===null&&a===null&&u===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new ta(s,16),this.y=new ta(a,16),this.z=u?new ta(u,16):this.curve.one,this.t=n&&new ta(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}T9(wo,rc),OA=wo,wo.prototype._mulA=function(i){return this.mOneA?i.redNeg():this.a.redMul(i)},wo.prototype._mulC=function(i){return this.oneC?i:this.c.redMul(i)},wo.prototype.jpoint=function(i,s,a,u){return this.point(i,s,a,u)},wo.prototype.pointFromX=function(i,s){(i=new ta(i,16)).red||(i=i.toRed(this.red));var a=i.redSqr(),u=this.c2.redSub(this.a.redMul(a)),n=this.one.redSub(this.c2.redMul(this.d).redMul(a)),p=u.redMul(n.redInvm()),m=p.redSqrt();if(m.redSqr().redSub(p).cmp(this.zero)!==0)throw new Error("invalid point");var y=m.fromRed().isOdd();return(s&&!y||!s&&y)&&(m=m.redNeg()),this.point(i,m)},wo.prototype.pointFromY=function(i,s){(i=new ta(i,16)).red||(i=i.toRed(this.red));var a=i.redSqr(),u=a.redSub(this.c2),n=a.redMul(this.d).redMul(this.c2).redSub(this.a),p=u.redMul(n.redInvm());if(p.cmp(this.zero)===0){if(s)throw new Error("invalid point");return this.point(this.zero,i)}var m=p.redSqrt();if(m.redSqr().redSub(p).cmp(this.zero)!==0)throw new Error("invalid point");return m.fromRed().isOdd()!==s&&(m=m.redNeg()),this.point(m,i)},wo.prototype.validate=function(i){if(i.isInfinity())return!0;i.normalize();var s=i.x.redSqr(),a=i.y.redSqr(),u=s.redMul(this.a).redAdd(a),n=this.c2.redMul(this.one.redAdd(this.d.redMul(s).redMul(a)));return u.cmp(n)===0},T9(Br,rc.BasePoint),wo.prototype.pointFromJSON=function(i){return Br.fromJSON(this,i)},wo.prototype.point=function(i,s,a,u){return new Br(this,i,s,a,u)},Br.fromJSON=function(i,s){return new Br(i,s[0],s[1],s[2])},Br.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Br.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},Br.prototype._extDbl=function(){var i=this.x.redSqr(),s=this.y.redSqr(),a=this.z.redSqr();a=a.redIAdd(a);var u=this.curve._mulA(i),n=this.x.redAdd(this.y).redSqr().redISub(i).redISub(s),p=u.redAdd(s),m=p.redSub(a),y=u.redSub(s),M=n.redMul(m),b=p.redMul(y),g=n.redMul(y),S=m.redMul(p);return this.curve.point(M,b,S,g)},Br.prototype._projDbl=function(){var i,s,a,u=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),p=this.y.redSqr();if(this.curve.twisted){var m=(b=this.curve._mulA(n)).redAdd(p);if(this.zOne)i=u.redSub(n).redSub(p).redMul(m.redSub(this.curve.two)),s=m.redMul(b.redSub(p)),a=m.redSqr().redSub(m).redSub(m);else{var y=this.z.redSqr(),M=m.redSub(y).redISub(y);i=u.redSub(n).redISub(p).redMul(M),s=m.redMul(b.redSub(p)),a=m.redMul(M)}}else{var b=n.redAdd(p);y=this.curve._mulC(this.z).redSqr(),M=b.redSub(y).redSub(y),i=this.curve._mulC(u.redISub(b)).redMul(M),s=this.curve._mulC(b).redMul(n.redISub(p)),a=b.redMul(M)}return this.curve.point(i,s,a)},Br.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Br.prototype._extAdd=function(i){var s=this.y.redSub(this.x).redMul(i.y.redSub(i.x)),a=this.y.redAdd(this.x).redMul(i.y.redAdd(i.x)),u=this.t.redMul(this.curve.dd).redMul(i.t),n=this.z.redMul(i.z.redAdd(i.z)),p=a.redSub(s),m=n.redSub(u),y=n.redAdd(u),M=a.redAdd(s),b=p.redMul(m),g=y.redMul(M),S=p.redMul(M),_=m.redMul(y);return this.curve.point(b,g,_,S)},Br.prototype._projAdd=function(i){var s,a,u=this.z.redMul(i.z),n=u.redSqr(),p=this.x.redMul(i.x),m=this.y.redMul(i.y),y=this.curve.d.redMul(p).redMul(m),M=n.redSub(y),b=n.redAdd(y),g=this.x.redAdd(this.y).redMul(i.x.redAdd(i.y)).redISub(p).redISub(m),S=u.redMul(M).redMul(g);return this.curve.twisted?(s=u.redMul(b).redMul(m.redSub(this.curve._mulA(p))),a=M.redMul(b)):(s=u.redMul(b).redMul(m.redSub(p)),a=this.curve._mulC(M).redMul(b)),this.curve.point(S,s,a)},Br.prototype.add=function(i){return this.isInfinity()?i:i.isInfinity()?this:this.curve.extended?this._extAdd(i):this._projAdd(i)},Br.prototype.mul=function(i){return this._hasDoubles(i)?this.curve._fixedNafMul(this,i):this.curve._wnafMul(this,i)},Br.prototype.mulAdd=function(i,s,a){return this.curve._wnafMulAdd(1,[this,s],[i,a],2,!1)},Br.prototype.jmulAdd=function(i,s,a){return this.curve._wnafMulAdd(1,[this,s],[i,a],2,!0)},Br.prototype.normalize=function(){if(this.zOne)return this;var i=this.z.redInvm();return this.x=this.x.redMul(i),this.y=this.y.redMul(i),this.t&&(this.t=this.t.redMul(i)),this.z=this.curve.one,this.zOne=!0,this},Br.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Br.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Br.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Br.prototype.eq=function(i){return this===i||this.getX().cmp(i.getX())===0&&this.getY().cmp(i.getY())===0},Br.prototype.eqXToP=function(i){var s=i.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(s)===0)return!0;for(var a=i.clone(),u=this.curve.redN.redMul(this.z);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(s.redIAdd(u),this.x.cmp(s)===0)return!0}},Br.prototype.toP=Br.prototype.normalize,Br.prototype.mixedAdd=Br.prototype.add;var lq=OA,Bb={},l0=Bb;l0.base=vc,l0.short=sq,l0.mont=fq,l0.edwards=lq;var Yg,cq={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}},gc={},Qg=gc,ka=mc,fv=Bb,$9=cn.assert;function NA(i){i.type==="short"?this.curve=new fv.short(i):i.type==="edwards"?this.curve=new fv.edwards(i):this.curve=new fv.mont(i),this.g=this.curve.g,this.n=this.curve.n,this.hash=i.hash,$9(this.g.validate(),"Invalid curve"),$9(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function Ra(i,s){Object.defineProperty(Qg,i,{configurable:!0,enumerable:!0,get:function(){var a=new NA(s);return Object.defineProperty(Qg,i,{configurable:!0,enumerable:!0,value:a}),a}})}Qg.PresetCurve=NA,Ra("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:ka.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),Ra("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:ka.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),Ra("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:ka.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),Ra("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:ka.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),Ra("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:ka.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),Ra("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:ka.sha256,gRed:!1,g:["9"]}),Ra("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:ka.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{Yg=cq}catch{Yg=void 0}Ra("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:ka.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",Yg]});var qA,dq=Vr,I9=cn.assert;function Bi(i,s){this.ec=i,this.priv=null,this.pub=null,s.priv&&this._importPrivate(s.priv,s.privEnc),s.pub&&this._importPublic(s.pub,s.pubEnc)}qA=Bi,Bi.fromPublic=function(i,s,a){return s instanceof Bi?s:new Bi(i,{pub:s,pubEnc:a})},Bi.fromPrivate=function(i,s,a){return s instanceof Bi?s:new Bi(i,{priv:s,privEnc:a})},Bi.prototype.validate=function(){var i=this.getPublic();return i.isInfinity()?{result:!1,reason:"Invalid public key"}:i.validate()?i.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},Bi.prototype.getPublic=function(i,s){return typeof i=="string"&&(s=i,i=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),s?this.pub.encode(s,i):this.pub},Bi.prototype.getPrivate=function(i){return i==="hex"?this.priv.toString(16,2):this.priv},Bi.prototype._importPrivate=function(i,s){this.priv=new dq(i,s||16),this.priv=this.priv.umod(this.ec.curve.n)},Bi.prototype._importPublic=function(i,s){if(i.x||i.y)return this.ec.curve.type==="mont"?I9(i.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||I9(i.x&&i.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(i.x,i.y),void 0;this.pub=this.ec.curve.decodePoint(i,s)},Bi.prototype.derive=function(i){return i.mul(this.priv).getX()},Bi.prototype.sign=function(i,s,a){return this.ec.sign(i,this,s,a)},Bi.prototype.verify=function(i,s){return this.ec.verify(i,s,this)},Bi.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var zA,pq=qA,Ms=Vr,C9=nq,uv=gc,mq=Ab,UA=cn.assert,lv=pq,c0=nN;function In(i){if(!(this instanceof In))return new In(i);typeof i=="string"&&(UA(uv.hasOwnProperty(i),"Unknown curve "+i),i=uv[i]),i instanceof uv.PresetCurve&&(i={curve:i}),this.curve=i.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=i.curve.g,this.g.precompute(i.curve.n.bitLength()+1),this.hash=i.hash||i.curve.hash}zA=In,In.prototype.keyPair=function(i){return new lv(this,i)},In.prototype.keyFromPrivate=function(i,s){return lv.fromPrivate(this,i,s)},In.prototype.keyFromPublic=function(i,s){return lv.fromPublic(this,i,s)},In.prototype.genKeyPair=function(i){i||(i={});for(var s=new C9({hash:this.hash,pers:i.pers,persEnc:i.persEnc||"utf8",entropy:i.entropy||mq(this.hash.hmacStrength),entropyEnc:i.entropy&&i.entropyEnc||"utf8",nonce:this.n.toArray()}),a=this.n.byteLength(),u=this.n.sub(new Ms(2));;){var n=new Ms(s.generate(a));if(!(n.cmp(u)>0))return n.iaddn(1),this.keyFromPrivate(n)}},In.prototype._truncateToN=function(i,s){var a=8*i.byteLength()-this.n.bitLength();return a>0&&(i=i.ushrn(a)),!s&&i.cmp(this.n)>=0?i.sub(this.n):i},In.prototype.sign=function(i,s,a,u){typeof a=="object"&&(u=a,a=null),u||(u={}),s=this.keyFromPrivate(s,a),i=this._truncateToN(new Ms(i,16));for(var n=this.n.byteLength(),p=s.getPrivate().toArray("be",n),m=i.toArray("be",n),y=new C9({hash:this.hash,entropy:p,nonce:m,pers:u.pers,persEnc:u.persEnc||"utf8"}),M=this.n.sub(new Ms(1)),b=0;;b++){var g=u.k?u.k(b):new Ms(y.generate(this.n.byteLength()));if(!((g=this._truncateToN(g,!0)).cmpn(1)<=0||g.cmp(M)>=0)){var S=this.g.mul(g);if(!S.isInfinity()){var _=S.getX(),x=_.umod(this.n);if(x.cmpn(0)!==0){var E=g.invm(this.n).mul(x.mul(s.getPrivate()).iadd(i));if((E=E.umod(this.n)).cmpn(0)!==0){var k=(S.getY().isOdd()?1:0)|(_.cmp(x)!==0?2:0);return u.canonical&&E.cmp(this.nh)>0&&(E=this.n.sub(E),k^=1),new c0({r:x,s:E,recoveryParam:k})}}}}}},In.prototype.verify=function(i,s,a,u){i=this._truncateToN(new Ms(i,16)),a=this.keyFromPublic(a,u);var n=(s=new c0(s,"hex")).r,p=s.s;if(n.cmpn(1)<0||n.cmp(this.n)>=0||p.cmpn(1)<0||p.cmp(this.n)>=0)return!1;var m,y=p.invm(this.n),M=y.mul(i).umod(this.n),b=y.mul(n).umod(this.n);return this.curve._maxwellTrick?!(m=this.g.jmulAdd(M,a.getPublic(),b)).isInfinity()&&m.eqXToP(n):!(m=this.g.mulAdd(M,a.getPublic(),b)).isInfinity()&&m.getX().umod(this.n).cmp(n)===0},In.prototype.recoverPubKey=function(i,s,a,u){UA((3&a)===a,"The recovery param is more than two bits"),s=new c0(s,u);var n=this.n,p=new Ms(i),m=s.r,y=s.s,M=1&a,b=a>>1;if(m.cmp(this.curve.p.umod(this.curve.n))>=0&&b)throw new Error("Unable to find sencond key candinate");m=b?this.curve.pointFromX(m.add(this.curve.n),M):this.curve.pointFromX(m,M);var g=s.r.invm(n),S=n.sub(p).mul(g).umod(n),_=y.mul(g).umod(n);return this.g.mulAdd(S,m,_)},In.prototype.getKeyRecoveryParam=function(i,s,a,u){if((s=new c0(s,u)).recoveryParam!==null)return s.recoveryParam;for(var n=0;n<4;n++){var p;try{p=this.recoverPubKey(i,s,n)}catch{continue}if(p.eq(a))return n}throw new Error("Unable to find valid recovery factor")};var vq=zA,nu=cn,P9=nu.assert,D9=nu.parseBytes,Ah=nu.cachedProperty;function ci(i,s){this.eddsa=i,this._secret=D9(s.secret),i.isPoint(s.pub)?this._pub=s.pub:this._pubBytes=D9(s.pub)}ci.fromPublic=function(i,s){return s instanceof ci?s:new ci(i,{pub:s})},ci.fromSecret=function(i,s){return s instanceof ci?s:new ci(i,{secret:s})},ci.prototype.secret=function(){return this._secret},Ah(ci,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),Ah(ci,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),Ah(ci,"privBytes",function(){var i=this.eddsa,s=this.hash(),a=i.encodingLength-1,u=s.slice(0,i.encodingLength);return u[0]&=248,u[a]&=127,u[a]|=64,u}),Ah(ci,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),Ah(ci,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),Ah(ci,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),ci.prototype.sign=function(i){return P9(this._secret,"KeyPair can only verify"),this.eddsa.sign(i,this)},ci.prototype.verify=function(i,s){return this.eddsa.verify(i,s,this)},ci.prototype.getSecret=function(i){return P9(this._secret,"KeyPair is public only"),nu.encode(this.secret(),i)},ci.prototype.getPublic=function(i){return nu.encode(this.pubBytes(),i)};var gq=ci,bq=Vr,bc=cn,yq=bc.assert,d0=bc.cachedProperty,wq=bc.parseBytes;function Rs(i,s){this.eddsa=i,typeof s!="object"&&(s=wq(s)),Array.isArray(s)&&(s={R:s.slice(0,i.encodingLength),S:s.slice(i.encodingLength)}),yq(s.R&&s.S,"Signature without R or S"),i.isPoint(s.R)&&(this._R=s.R),s.S instanceof bq&&(this._S=s.S),this._Rencoded=Array.isArray(s.R)?s.R:s.Rencoded,this._Sencoded=Array.isArray(s.S)?s.S:s.Sencoded}d0(Rs,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),d0(Rs,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),d0(Rs,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),d0(Rs,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),Rs.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Rs.prototype.toHex=function(){return bc.encode(this.toBytes(),"hex").toUpperCase()};var FA,Mq=Rs,_q=mc,Sq=gc,Lh=cn,xq=Lh.assert,L9=Lh.parseBytes,O9=gq,N9=Mq;function Wi(i){if(xq(i==="ed25519","only tested with ed25519 so far"),!(this instanceof Wi))return new Wi(i);i=Sq[i].curve,this.curve=i,this.g=i.g,this.g.precompute(i.n.bitLength()+1),this.pointClass=i.point().constructor,this.encodingLength=Math.ceil(i.n.bitLength()/8),this.hash=_q.sha512}FA=Wi,Wi.prototype.sign=function(i,s){i=L9(i);var a=this.keyFromSecret(s),u=this.hashInt(a.messagePrefix(),i),n=this.g.mul(u),p=this.encodePoint(n),m=this.hashInt(p,a.pubBytes(),i).mul(a.priv()),y=u.add(m).umod(this.curve.n);return this.makeSignature({R:n,S:y,Rencoded:p})},Wi.prototype.verify=function(i,s,a){i=L9(i),s=this.makeSignature(s);var u=this.keyFromPublic(a),n=this.hashInt(s.Rencoded(),u.pubBytes(),i),p=this.g.mul(s.S());return s.R().add(u.pub().mul(n)).eq(p)},Wi.prototype.hashInt=function(){for(var i=this.hash(),s=0;s<arguments.length;s++)i.update(arguments[s]);return Lh.intFromLE(i.digest()).umod(this.curve.n)},Wi.prototype.keyFromPublic=function(i){return O9.fromPublic(this,i)},Wi.prototype.keyFromSecret=function(i){return O9.fromSecret(this,i)},Wi.prototype.makeSignature=function(i){return i instanceof N9?i:new N9(this,i)},Wi.prototype.encodePoint=function(i){var s=i.getY().toArray("le",this.encodingLength);return s[this.encodingLength-1]|=i.getX().isOdd()?128:0,s},Wi.prototype.decodePoint=function(i){var s=(i=Lh.parseBytes(i)).length-1,a=i.slice(0,s).concat(-129&i[s]),u=(128&i[s])!=0,n=Lh.intFromLE(a);return this.curve.pointFromY(n,u)},Wi.prototype.encodeInt=function(i){return i.toArray("le",this.encodingLength)},Wi.prototype.decodeInt=function(i){return Lh.intFromLE(i)},Wi.prototype.isPoint=function(i){return i instanceof this.pointClass};var Eq=FA,yc={},_s=yc;_s.version=["elliptic","6.5.2","EC cryptography","lib/elliptic.js",["lib"],{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},{type:"git",url:"git@github.com:indutny/elliptic"},["EC","Elliptic","curve","Cryptography"],"Fedor Indutny <fedor@indutny.com>","MIT",{url:"https://github.com/indutny/elliptic/issues"},"https://github.com/indutny/elliptic",{brfs:"^1.4.3",coveralls:"^3.0.8",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.10.3",mocha:"^6.2.2"},{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}][1],_s.utils=cn,_s.rand=Ab,_s.curve=Bb,_s.curves=gc,_s.ec=vq,_s.eddsa=Eq;var cv={},q9=!1,fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,ei=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,jA={},Aq=qe;function kn(i){(this||ei)._reporterState={obj:null,path:[],options:i||{},errors:[]}}function kh(i,s){(this||ei).path=i,this.rethrow(s)}jA.Reporter=kn,kn.prototype.isError=function(i){return i instanceof kh},kn.prototype.save=function(){var i=(this||ei)._reporterState;return{obj:i.obj,pathLen:i.path.length}},kn.prototype.restore=function(i){var s=(this||ei)._reporterState;s.obj=i.obj,s.path=s.path.slice(0,i.pathLen)},kn.prototype.enterKey=function(i){return(this||ei)._reporterState.path.push(i)},kn.prototype.exitKey=function(i){var s=(this||ei)._reporterState;s.path=s.path.slice(0,i-1)},kn.prototype.leaveKey=function(i,s,a){var u=(this||ei)._reporterState;this.exitKey(i),u.obj!==null&&(u.obj[s]=a)},kn.prototype.path=function(){return(this||ei)._reporterState.path.join("/")},kn.prototype.enterObject=function(){var i=(this||ei)._reporterState,s=i.obj;return i.obj={},s},kn.prototype.leaveObject=function(i){var s=(this||ei)._reporterState,a=s.obj;return s.obj=i,a},kn.prototype.error=function(i){var s,a=(this||ei)._reporterState,u=i instanceof kh;if(s=u?i:new kh(a.path.map(function(n){return"["+JSON.stringify(n)+"]"}).join(""),i.message||i,i.stack),!a.options.partial)throw s;return u||a.errors.push(s),s},kn.prototype.wrapResult=function(i){var s=(this||ei)._reporterState;return s.options.partial?{result:this.isError(i)?null:i,errors:s.errors}:i},Aq(kh,Error),kh.prototype.rethrow=function(i){if((this||ei).message=i+" at: "+((this||ei).path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this||ei,kh),!(this||ei).stack)try{throw new Error((this||ei).message)}catch(s){(this||ei).stack=s.stack}return this||ei};var p0={},z9=!1,Oe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function U9(){if(z9)return p0;z9=!0;var i=qe,s=Qf().Reporter,a=Pe.Buffer;function u(p,m){if(s.call(this||Oe,m),!a.isBuffer(p))return this.error("Input not Buffer"),void 0;(this||Oe).base=p,(this||Oe).offset=0,(this||Oe).length=p.length}function n(p,m){if(Array.isArray(p))(this||Oe).length=0,(this||Oe).value=p.map(function(y){return y instanceof n||(y=new n(y,m)),(this||Oe).length+=y.length,y},this||Oe);else if(typeof p=="number"){if(!(0<=p&&p<=255))return m.error("non-byte EncoderBuffer value");(this||Oe).value=p,(this||Oe).length=1}else if(typeof p=="string")(this||Oe).value=p,(this||Oe).length=a.byteLength(p);else{if(!a.isBuffer(p))return m.error("Unsupported type: "+typeof p);(this||Oe).value=p,(this||Oe).length=p.length}}return i(u,s),p0.DecoderBuffer=u,u.prototype.save=function(){return{offset:(this||Oe).offset,reporter:s.prototype.save.call(this||Oe)}},u.prototype.restore=function(p){var m=new u((this||Oe).base);return m.offset=p.offset,m.length=(this||Oe).offset,(this||Oe).offset=p.offset,s.prototype.restore.call(this||Oe,p.reporter),m},u.prototype.isEmpty=function(){return(this||Oe).offset===(this||Oe).length},u.prototype.readUInt8=function(p){return(this||Oe).offset+1<=(this||Oe).length?(this||Oe).base.readUInt8((this||Oe).offset++,!0):this.error(p||"DecoderBuffer overrun")},u.prototype.skip=function(p,m){if(!((this||Oe).offset+p<=(this||Oe).length))return this.error(m||"DecoderBuffer overrun");var y=new u((this||Oe).base);return y._reporterState=(this||Oe)._reporterState,y.offset=(this||Oe).offset,y.length=(this||Oe).offset+p,(this||Oe).offset+=p,y},u.prototype.raw=function(p){return(this||Oe).base.slice(p?p.offset:(this||Oe).offset,(this||Oe).length)},p0.EncoderBuffer=n,n.prototype.join=function(p,m){return p||(p=new a((this||Oe).length)),m||(m=0),(this||Oe).length===0||(Array.isArray((this||Oe).value)?(this||Oe).value.forEach(function(y){y.join(p,m),m+=y.length}):(typeof(this||Oe).value=="number"?p[m]=(this||Oe).value:typeof(this||Oe).value=="string"?p.write((this||Oe).value,m):a.isBuffer((this||Oe).value)&&(this||Oe).value.copy(p,m),m+=(this||Oe).length)),p},p0}var dv={},F9=!1,Ie=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,pv={},j9=!1;function Qf(){if(j9)return pv;j9=!0;var i=pv;return i.Reporter=jA.Reporter,i.DecoderBuffer=U9().DecoderBuffer,i.EncoderBuffer=U9().EncoderBuffer,i.Node=function(){if(F9)return dv;F9=!0;var s=Qf().Reporter,a=Qf().EncoderBuffer,u=Qf().DecoderBuffer,n=Dn,p=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],m=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(p);function y(b,g){var S={};(this||Ie)._baseState=S,S.enc=b,S.parent=g||null,S.children=null,S.tag=null,S.args=null,S.reverseArgs=null,S.choice=null,S.optional=!1,S.any=!1,S.obj=!1,S.use=null,S.useDecoder=null,S.key=null,S.default=null,S.explicit=null,S.implicit=null,S.contains=null,S.parent||(S.children=[],this._wrap())}dv=y;var M=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return y.prototype.clone=function(){var b=(this||Ie)._baseState,g={};M.forEach(function(_){g[_]=b[_]});var S=new(this||Ie).constructor(g.parent);return S._baseState=g,S},y.prototype._wrap=function(){var b=(this||Ie)._baseState;m.forEach(function(g){(this||Ie)[g]=function(){var S=new(this||Ie).constructor(this||Ie);return b.children.push(S),S[g].apply(S,arguments)}},this||Ie)},y.prototype._init=function(b){var g=(this||Ie)._baseState;n(g.parent===null),b.call(this||Ie),g.children=g.children.filter(function(S){return S._baseState.parent===(this||Ie)},this||Ie),n.equal(g.children.length,1,"Root node can have only one child")},y.prototype._useArgs=function(b){var g=(this||Ie)._baseState,S=b.filter(function(_){return _ instanceof(this||Ie).constructor},this||Ie);b=b.filter(function(_){return!(_ instanceof(this||Ie).constructor)},this||Ie),S.length!==0&&(n(g.children===null),g.children=S,S.forEach(function(_){_._baseState.parent=this||Ie},this||Ie)),b.length!==0&&(n(g.args===null),g.args=b,g.reverseArgs=b.map(function(_){if(typeof _!="object"||_.constructor!==Object)return _;var x={};return Object.keys(_).forEach(function(E){E==(0|E)&&(E|=0);var k=_[E];x[k]=E}),x}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(b){y.prototype[b]=function(){var g=(this||Ie)._baseState;throw new Error(b+" not implemented for encoding: "+g.enc)}}),p.forEach(function(b){y.prototype[b]=function(){var g=(this||Ie)._baseState,S=Array.prototype.slice.call(arguments);return n(g.tag===null),g.tag=b,this._useArgs(S),this||Ie}}),y.prototype.use=function(b){n(b);var g=(this||Ie)._baseState;return n(g.use===null),g.use=b,this||Ie},y.prototype.optional=function(){return(this||Ie)._baseState.optional=!0,this||Ie},y.prototype.def=function(b){var g=(this||Ie)._baseState;return n(g.default===null),g.default=b,g.optional=!0,this||Ie},y.prototype.explicit=function(b){var g=(this||Ie)._baseState;return n(g.explicit===null&&g.implicit===null),g.explicit=b,this||Ie},y.prototype.implicit=function(b){var g=(this||Ie)._baseState;return n(g.explicit===null&&g.implicit===null),g.implicit=b,this||Ie},y.prototype.obj=function(){var b=(this||Ie)._baseState,g=Array.prototype.slice.call(arguments);return b.obj=!0,g.length!==0&&this._useArgs(g),this||Ie},y.prototype.key=function(b){var g=(this||Ie)._baseState;return n(g.key===null),g.key=b,this||Ie},y.prototype.any=function(){return(this||Ie)._baseState.any=!0,this||Ie},y.prototype.choice=function(b){var g=(this||Ie)._baseState;return n(g.choice===null),g.choice=b,this._useArgs(Object.keys(b).map(function(S){return b[S]})),this||Ie},y.prototype.contains=function(b){var g=(this||Ie)._baseState;return n(g.use===null),g.contains=b,this||Ie},y.prototype._decode=function(b,g){var S=(this||Ie)._baseState;if(S.parent===null)return b.wrapResult(S.children[0]._decode(b,g));var _,x=S.default,E=!0,k=null;if(S.key!==null&&(k=b.enterKey(S.key)),S.optional){var B=null;if(S.explicit!==null?B=S.explicit:S.implicit!==null?B=S.implicit:S.tag!==null&&(B=S.tag),B!==null||S.any){if(E=this._peekTag(b,B,S.any),b.isError(E))return E}else{var T=b.save();try{S.choice===null?this._decodeGeneric(S.tag,b,g):this._decodeChoice(b,g),E=!0}catch{E=!1}b.restore(T)}}if(S.obj&&E&&(_=b.enterObject()),E){if(S.explicit!==null){var C=this._decodeTag(b,S.explicit);if(b.isError(C))return C;b=C}var P=b.offset;if(S.use===null&&S.choice===null){S.any&&(T=b.save());var G=this._decodeTag(b,S.implicit!==null?S.implicit:S.tag,S.any);if(b.isError(G))return G;S.any?x=b.raw(T):b=G}if(g&&g.track&&S.tag!==null&&g.track(b.path(),P,b.length,"tagged"),g&&g.track&&S.tag!==null&&g.track(b.path(),b.offset,b.length,"content"),x=S.any?x:S.choice===null?this._decodeGeneric(S.tag,b,g):this._decodeChoice(b,g),b.isError(x))return x;if(S.any||S.choice!==null||S.children===null||S.children.forEach(function(V){V._decode(b,g)}),S.contains&&(S.tag==="octstr"||S.tag==="bitstr")){var U=new u(x);x=this._getUse(S.contains,b._reporterState.obj)._decode(U,g)}}return S.obj&&E&&(x=b.leaveObject(_)),S.key===null||x===null&&E!==!0?k!==null&&b.exitKey(k):b.leaveKey(k,S.key,x),x},y.prototype._decodeGeneric=function(b,g,S){var _=(this||Ie)._baseState;return b==="seq"||b==="set"?null:b==="seqof"||b==="setof"?this._decodeList(g,b,_.args[0],S):/str$/.test(b)?this._decodeStr(g,b,S):b==="objid"&&_.args?this._decodeObjid(g,_.args[0],_.args[1],S):b==="objid"?this._decodeObjid(g,null,null,S):b==="gentime"||b==="utctime"?this._decodeTime(g,b,S):b==="null_"?this._decodeNull(g,S):b==="bool"?this._decodeBool(g,S):b==="objDesc"?this._decodeStr(g,b,S):b==="int"||b==="enum"?this._decodeInt(g,_.args&&_.args[0],S):_.use!==null?this._getUse(_.use,g._reporterState.obj)._decode(g,S):g.error("unknown tag: "+b)},y.prototype._getUse=function(b,g){var S=(this||Ie)._baseState;return S.useDecoder=this._use(b,g),n(S.useDecoder._baseState.parent===null),S.useDecoder=S.useDecoder._baseState.children[0],S.implicit!==S.useDecoder._baseState.implicit&&(S.useDecoder=S.useDecoder.clone(),S.useDecoder._baseState.implicit=S.implicit),S.useDecoder},y.prototype._decodeChoice=function(b,g){var S=(this||Ie)._baseState,_=null,x=!1;return Object.keys(S.choice).some(function(E){var k=b.save(),B=S.choice[E];try{var T=B._decode(b,g);if(b.isError(T))return!1;_={type:E,value:T},x=!0}catch{return b.restore(k),!1}return!0},this||Ie),x?_:b.error("Choice not matched")},y.prototype._createEncoderBuffer=function(b){return new a(b,(this||Ie).reporter)},y.prototype._encode=function(b,g,S){var _=(this||Ie)._baseState;if(_.default===null||_.default!==b){var x=this._encodeValue(b,g,S);if(x!==void 0&&!this._skipDefault(x,g,S))return x}},y.prototype._encodeValue=function(b,g,S){var _=(this||Ie)._baseState;if(_.parent===null)return _.children[0]._encode(b,g||new s);var x=null;if((this||Ie).reporter=g,_.optional&&b===void 0){if(_.default===null)return;b=_.default}var E=null,k=!1;if(_.any)x=this._createEncoderBuffer(b);else if(_.choice)x=this._encodeChoice(b,g);else if(_.contains)E=this._getUse(_.contains,S)._encode(b,g),k=!0;else if(_.children)E=_.children.map(function(P){if(P._baseState.tag==="null_")return P._encode(null,g,b);if(P._baseState.key===null)return g.error("Child should have a key");var G=g.enterKey(P._baseState.key);if(typeof b!="object")return g.error("Child expected, but input is not object");var U=P._encode(b[P._baseState.key],g,b);return g.leaveKey(G),U},this||Ie).filter(function(P){return P}),E=this._createEncoderBuffer(E);else if(_.tag==="seqof"||_.tag==="setof"){if(!_.args||_.args.length!==1)return g.error("Too many args for : "+_.tag);if(!Array.isArray(b))return g.error("seqof/setof, but data is not Array");var B=this.clone();B._baseState.implicit=null,E=this._createEncoderBuffer(b.map(function(P){var G=(this||Ie)._baseState;return this._getUse(G.args[0],b)._encode(P,g)},B))}else _.use!==null?x=this._getUse(_.use,S)._encode(b,g):(E=this._encodePrimitive(_.tag,b),k=!0);if(!_.any&&_.choice===null){var T=_.implicit!==null?_.implicit:_.tag,C=_.implicit===null?"universal":"context";T===null?_.use===null&&g.error("Tag could be omitted only for .use()"):_.use===null&&(x=this._encodeComposite(T,k,C,E))}return _.explicit!==null&&(x=this._encodeComposite(_.explicit,!1,"context",x)),x},y.prototype._encodeChoice=function(b,g){var S=(this||Ie)._baseState,_=S.choice[b.type];return _||n(!1,b.type+" not found in "+JSON.stringify(Object.keys(S.choice))),_._encode(b.value,g)},y.prototype._encodePrimitive=function(b,g){var S=(this||Ie)._baseState;if(/str$/.test(b))return this._encodeStr(g,b);if(b==="objid"&&S.args)return this._encodeObjid(g,S.reverseArgs[0],S.args[1]);if(b==="objid")return this._encodeObjid(g,null,null);if(b==="gentime"||b==="utctime")return this._encodeTime(g,b);if(b==="null_")return this._encodeNull();if(b==="int"||b==="enum")return this._encodeInt(g,S.args&&S.reverseArgs[0]);if(b==="bool")return this._encodeBool(g);if(b==="objDesc")return this._encodeStr(g,b);throw new Error("Unsupported tag: "+b)},y.prototype._isNumstr=function(b){return/^[0-9 ]*$/.test(b)},y.prototype._isPrintstr=function(b){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(b)},dv}(),pv}var ba={},H9=!1,mv={},K9=!1;function HA(){if(K9)return mv;K9=!0;var i=mv;return i._reverse=function(s){var a={};return Object.keys(s).forEach(function(u){(0|u)==u&&(u|=0);var n=s[u];a[n]=u}),a},i.der=function(){if(H9)return ba;H9=!0;var s=HA();return ba.tagClass={0:"universal",1:"application",2:"context",3:"private"},ba.tagClassByName=s._reverse(ba.tagClass),ba.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},ba.tagByName=s._reverse(ba.tag),ba}(),mv}var vv={},G9=!1,ya=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Z9(){if(G9)return vv;G9=!0;var i=qe,s=wc(),a=s.base,u=s.bignum,n=s.constants.der;function p(b){(this||ya).enc="der",(this||ya).name=b.name,(this||ya).entity=b,(this||ya).tree=new m,(this||ya).tree._init(b.body)}function m(b){a.Node.call(this||ya,"der",b)}function y(b,g){var S=b.readUInt8(g);if(b.isError(S))return S;var _=n.tagClass[S>>6],x=(32&S)==0;if((31&S)==31){var E=S;for(S=0;(128&E)==128;){if(E=b.readUInt8(g),b.isError(E))return E;S<<=7,S|=127&E}}else S&=31;return{cls:_,primitive:x,tag:S,tagStr:n.tag[S]}}function M(b,g,S){var _=b.readUInt8(S);if(b.isError(_))return _;if(!g&&_===128)return null;if(!(128&_))return _;var x=127&_;if(x>4)return b.error("length octect is too long");_=0;for(var E=0;E<x;E++){_<<=8;var k=b.readUInt8(S);if(b.isError(k))return k;_|=k}return _}return vv=p,p.prototype.decode=function(b,g){return b instanceof a.DecoderBuffer||(b=new a.DecoderBuffer(b,g)),(this||ya).tree._decode(b,g)},i(m,a.Node),m.prototype._peekTag=function(b,g,S){if(b.isEmpty())return!1;var _=b.save(),x=y(b,'Failed to peek tag: "'+g+'"');return b.isError(x)?x:(b.restore(_),x.tag===g||x.tagStr===g||x.tagStr+"of"===g||S)},m.prototype._decodeTag=function(b,g,S){var _=y(b,'Failed to decode tag of "'+g+'"');if(b.isError(_))return _;var x=M(b,_.primitive,'Failed to get length of "'+g+'"');if(b.isError(x))return x;if(!S&&_.tag!==g&&_.tagStr!==g&&_.tagStr+"of"!==g)return b.error('Failed to match tag: "'+g+'"');if(_.primitive||x!==null)return b.skip(x,'Failed to match body of: "'+g+'"');var E=b.save(),k=this._skipUntilEnd(b,'Failed to skip indefinite length body: "'+(this||ya).tag+'"');return b.isError(k)?k:(x=b.offset-E.offset,b.restore(E),b.skip(x,'Failed to match body of: "'+g+'"'))},m.prototype._skipUntilEnd=function(b,g){for(;;){var S=y(b,g);if(b.isError(S))return S;var _,x=M(b,S.primitive,g);if(b.isError(x))return x;if(_=S.primitive||x!==null?b.skip(x):this._skipUntilEnd(b,g),b.isError(_))return _;if(S.tagStr==="end")break}},m.prototype._decodeList=function(b,g,S,_){for(var x=[];!b.isEmpty();){var E=this._peekTag(b,"end");if(b.isError(E))return E;var k=S.decode(b,"der",_);if(b.isError(k)&&E)break;x.push(k)}return x},m.prototype._decodeStr=function(b,g){if(g==="bitstr"){var S=b.readUInt8();return b.isError(S)?S:{unused:S,data:b.raw()}}if(g==="bmpstr"){var _=b.raw();if(_.length%2==1)return b.error("Decoding of string type: bmpstr length mismatch");for(var x="",E=0;E<_.length/2;E++)x+=String.fromCharCode(_.readUInt16BE(2*E));return x}if(g==="numstr"){var k=b.raw().toString("ascii");return this._isNumstr(k)?k:b.error("Decoding of string type: numstr unsupported characters")}if(g==="octstr"||g==="objDesc")return b.raw();if(g==="printstr"){var B=b.raw().toString("ascii");return this._isPrintstr(B)?B:b.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(g)?b.raw().toString():b.error("Decoding of string type: "+g+" unsupported")},m.prototype._decodeObjid=function(b,g,S){for(var _,x=[],E=0;!b.isEmpty();){var k=b.readUInt8();E<<=7,E|=127&k,!(128&k)&&(x.push(E),E=0)}128&k&&x.push(E);var B=x[0]/40|0,T=x[0]%40;if(_=S?x:[B,T].concat(x.slice(1)),g){var C=g[_.join(" ")];C===void 0&&(C=g[_.join(".")]),C!==void 0&&(_=C)}return _},m.prototype._decodeTime=function(b,g){var S=b.raw().toString();if(g==="gentime")var _=0|S.slice(0,4),x=0|S.slice(4,6),E=0|S.slice(6,8),k=0|S.slice(8,10),B=0|S.slice(10,12),T=0|S.slice(12,14);else{if(g!=="utctime")return b.error("Decoding "+g+" time is not supported yet");_=0|S.slice(0,2),x=0|S.slice(2,4),E=0|S.slice(4,6),k=0|S.slice(6,8),B=0|S.slice(8,10),T=0|S.slice(10,12),_=_<70?2e3+_:1900+_}return Date.UTC(_,x-1,E,k,B,T,0)},m.prototype._decodeNull=function(b){return null},m.prototype._decodeBool=function(b){var g=b.readUInt8();return b.isError(g)?g:g!==0},m.prototype._decodeInt=function(b,g){var S=b.raw(),_=new u(S);return g&&(_=g[_.toString(10)]||_),_},m.prototype._use=function(b,g){return typeof b=="function"&&(b=b(g)),b._getDecoder("der").tree},vv}var gv={},V9=!1,bv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,yv={},W9=!1;function kq(){if(W9)return yv;W9=!0;var i=yv;return i.der=Z9(),i.pem=function(){if(V9)return gv;V9=!0;var s=qe,a=Pe.Buffer,u=Z9();function n(p){u.call(this||bv,p),(this||bv).enc="pem"}return s(n,u),gv=n,n.prototype.decode=function(p,m){for(var y=p.toString().split(/[\r\n]+/g),M=m.label.toUpperCase(),b=/^-----(BEGIN|END) ([^-]+)-----$/,g=-1,S=-1,_=0;_<y.length;_++){var x=y[_].match(b);if(x!==null&&x[2]===M){if(g!==-1){if(x[1]!=="END")break;S=_;break}if(x[1]!=="BEGIN")break;g=_}}if(g===-1||S===-1)throw new Error("PEM section not found for: "+M);var E=y.slice(g+1,S).join("");E.replace(/[^a-z0-9\+\/=]+/gi,"");var k=new a(E,"base64");return u.prototype.decode.call(this||bv,k,m)},gv}(),yv}var wv={},X9=!1,Yr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function J9(){if(X9)return wv;X9=!0;var i=qe,s=Pe.Buffer,a=wc(),u=a.base,n=a.constants.der;function p(M){(this||Yr).enc="der",(this||Yr).name=M.name,(this||Yr).entity=M,(this||Yr).tree=new m,(this||Yr).tree._init(M.body)}function m(M){u.Node.call(this||Yr,"der",M)}function y(M){return M<10?"0"+M:M}return wv=p,p.prototype.encode=function(M,b){return(this||Yr).tree._encode(M,b).join()},i(m,u.Node),m.prototype._encodeComposite=function(M,b,g,S){var _,x=function(T,C,P,G){var U;if(T==="seqof"?T="seq":T==="setof"&&(T="set"),n.tagByName.hasOwnProperty(T))U=n.tagByName[T];else{if(typeof T!="number"||(0|T)!==T)return G.error("Unknown tag: "+T);U=T}return U>=31?G.error("Multi-octet tag encoding unsupported"):(C||(U|=32),U|=n.tagClassByName[P||"universal"]<<6)}(M,b,g,(this||Yr).reporter);if(S.length<128)return(_=new s(2))[0]=x,_[1]=S.length,this._createEncoderBuffer([_,S]);for(var E=1,k=S.length;k>=256;k>>=8)E++;(_=new s(2+E))[0]=x,_[1]=128|E,k=1+E;for(var B=S.length;B>0;k--,B>>=8)_[k]=255&B;return this._createEncoderBuffer([_,S])},m.prototype._encodeStr=function(M,b){if(b==="bitstr")return this._createEncoderBuffer([0|M.unused,M.data]);if(b==="bmpstr"){for(var g=new s(2*M.length),S=0;S<M.length;S++)g.writeUInt16BE(M.charCodeAt(S),2*S);return this._createEncoderBuffer(g)}return b==="numstr"?this._isNumstr(M)?this._createEncoderBuffer(M):(this||Yr).reporter.error("Encoding of string type: numstr supports only digits and space"):b==="printstr"?this._isPrintstr(M)?this._createEncoderBuffer(M):(this||Yr).reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(b)||b==="objDesc"?this._createEncoderBuffer(M):(this||Yr).reporter.error("Encoding of string type: "+b+" unsupported")},m.prototype._encodeObjid=function(M,b,g){if(typeof M=="string"){if(!b)return(this||Yr).reporter.error("string objid given, but no values map found");if(!b.hasOwnProperty(M))return(this||Yr).reporter.error("objid not found in values map");M=b[M].split(/[\s\.]+/g);for(var S=0;S<M.length;S++)M[S]|=0}else if(Array.isArray(M))for(M=M.slice(),S=0;S<M.length;S++)M[S]|=0;if(!Array.isArray(M))return(this||Yr).reporter.error("objid() should be either array or string, got: "+JSON.stringify(M));if(!g){if(M[1]>=40)return(this||Yr).reporter.error("Second objid identifier OOB");M.splice(0,2,40*M[0]+M[1])}var _=0;for(S=0;S<M.length;S++){var x=M[S];for(_++;x>=128;x>>=7)_++}var E=new s(_),k=E.length-1;for(S=M.length-1;S>=0;S--)for(x=M[S],E[k--]=127&x;(x>>=7)>0;)E[k--]=128|127&x;return this._createEncoderBuffer(E)},m.prototype._encodeTime=function(M,b){var g,S=new Date(M);return b==="gentime"?g=[y(S.getFullYear()),y(S.getUTCMonth()+1),y(S.getUTCDate()),y(S.getUTCHours()),y(S.getUTCMinutes()),y(S.getUTCSeconds()),"Z"].join(""):b==="utctime"?g=[y(S.getFullYear()%100),y(S.getUTCMonth()+1),y(S.getUTCDate()),y(S.getUTCHours()),y(S.getUTCMinutes()),y(S.getUTCSeconds()),"Z"].join(""):(this||Yr).reporter.error("Encoding "+b+" time is not supported yet"),this._encodeStr(g,"octstr")},m.prototype._encodeNull=function(){return this._createEncoderBuffer("")},m.prototype._encodeInt=function(M,b){if(typeof M=="string"){if(!b)return(this||Yr).reporter.error("String int or enum given, but no values map");if(!b.hasOwnProperty(M))return(this||Yr).reporter.error("Values map doesn't contain: "+JSON.stringify(M));M=b[M]}if(typeof M!="number"&&!s.isBuffer(M)){var g=M.toArray();!M.sign&&128&g[0]&&g.unshift(0),M=new s(g)}if(s.isBuffer(M)){var S=M.length;M.length===0&&S++;var _=new s(S);return M.copy(_),M.length===0&&(_[0]=0),this._createEncoderBuffer(_)}if(M<128)return this._createEncoderBuffer(M);if(M<256)return this._createEncoderBuffer([0,M]);S=1;for(var x=M;x>=256;x>>=8)S++;for(x=(_=new Array(S)).length-1;x>=0;x--)_[x]=255&M,M>>=8;return 128&_[0]&&_.unshift(0),this._createEncoderBuffer(new s(_))},m.prototype._encodeBool=function(M){return this._createEncoderBuffer(M?255:0)},m.prototype._use=function(M,b){return typeof M=="function"&&(M=M(b)),M._getEncoder("der").tree},m.prototype._skipDefault=function(M,b,g){var S,_=(this||Yr)._baseState;if(_.default===null)return!1;var x=M.join();if(_.defaultBuffer===void 0&&(_.defaultBuffer=this._encodeValue(_.default,b,g).join()),x.length!==_.defaultBuffer.length)return!1;for(S=0;S<x.length;S++)if(x[S]!==_.defaultBuffer[S])return!1;return!0},wv}var Mv={},Y9=!1,_v=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,Sv={},Q9=!1;function Rq(){if(Q9)return Sv;Q9=!0;var i=Sv;return i.der=J9(),i.pem=function(){if(Y9)return Mv;Y9=!0;var s=qe,a=J9();function u(n){a.call(this||_v,n),(this||_v).enc="pem"}return s(u,a),Mv=u,u.prototype.encode=function(n,p){for(var m=a.prototype.encode.call(this||_v,n).toString("base64"),y=["-----BEGIN "+p.label+"-----"],M=0;M<m.length;M+=64)y.push(m.slice(M,M+64));return y.push("-----END "+p.label+"-----"),y.join(`
17
+ `)},Mv}(),Sv}var xv={},tM=!1;function wc(){if(tM)return xv;tM=!0;var i=xv;return i.bignum=Vr,i.define=function(){if(q9)return cv;q9=!0;var s=wc(),a=qe;function u(n,p){(this||fn).name=n,(this||fn).body=p,(this||fn).decoders={},(this||fn).encoders={}}return cv.define=function(n,p){return new u(n,p)},u.prototype._createNamed=function(n){var p;try{p=Xi.runInThisContext("(function "+(this||fn).name+`(entity) {
18
+ this._initNamed(entity);
19
+ })`)}catch{p=function(y){this._initNamed(y)}}return a(p,n),p.prototype._initNamed=function(m){n.call(this||fn,m)},new p(this||fn)},u.prototype._getDecoder=function(n){return n=n||"der",(this||fn).decoders.hasOwnProperty(n)||((this||fn).decoders[n]=this._createNamed(s.decoders[n])),(this||fn).decoders[n]},u.prototype.decode=function(n,p,m){return this._getDecoder(p).decode(n,m)},u.prototype._getEncoder=function(n){return n=n||"der",(this||fn).encoders.hasOwnProperty(n)||((this||fn).encoders[n]=this._createNamed(s.encoders[n])),(this||fn).encoders[n]},u.prototype.encode=function(n,p,m){return this._getEncoder(p).encode(n,m)},cv}().define,i.base=Qf(),i.constants=HA(),i.decoders=kq(),i.encoders=Rq(),xv}var KA=wc(),ao=KA,eM=ao.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),Bq=ao.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Tb=ao.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),Tq=ao.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Tb),this.key("subjectPublicKey").bitstr())}),$q=ao.define("RelativeDistinguishedName",function(){this.setof(Bq)}),Iq=ao.define("RDNSequence",function(){this.seqof($q)}),rM=ao.define("Name",function(){this.choice({rdnSequence:this.use(Iq)})}),Cq=ao.define("Validity",function(){this.seq().obj(this.key("notBefore").use(eM),this.key("notAfter").use(eM))}),Pq=ao.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),Dq=ao.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Tb),this.key("issuer").use(rM),this.key("validity").use(Cq),this.key("subject").use(rM),this.key("subjectPublicKeyInfo").use(Tq),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(Pq).optional())}),Lq=ao.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(Dq),this.key("signatureAlgorithm").use(Tb),this.key("signatureValue").bitstr())}),no={},so=KA;no.certificate=Lq;var Oq=so.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});no.RSAPrivateKey=Oq;var Nq=so.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});no.RSAPublicKey=Nq;var qq=so.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(GA),this.key("subjectPublicKey").bitstr())});no.PublicKey=qq;var GA=so.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),zq=so.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(GA),this.key("subjectPrivateKey").octstr())});no.PrivateKey=zq;var Uq=so.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});no.EncryptedPrivateKey=Uq;var Fq=so.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});no.DSAPrivateKey=Fq,no.DSAparam=so.define("DSAparam",function(){this.int()});var jq=so.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(Hq),this.key("publicKey").optional().explicit(1).bitstr())});no.ECPrivateKey=jq;var Hq=so.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});no.signature=so.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});var ZA,Kq=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,Gq=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,Zq=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,Vq=pc,Wq=ln,m0=er.Buffer,Zi=no,Xq={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"},Jq=function(i,s){var a,u=i.toString(),n=u.match(Kq);if(n){var p="aes"+n[1],m=m0.from(n[2],"hex"),y=m0.from(n[3].replace(/[\r\n]/g,""),"base64"),M=Vq(s,m.slice(0,8),parseInt(n[1],10)).key,b=[],g=Wq.createDecipheriv(p,M,m);b.push(g.update(y)),b.push(g.final()),a=m0.concat(b)}else{var S=u.match(Zq);a=new m0(S[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(Gq)[1],data:a}},Yq=ln,Qq=J0,Ev=er.Buffer;function iM(i){var s;typeof i!="object"||Ev.isBuffer(i)||(s=i.passphrase,i=i.key),typeof i=="string"&&(i=Ev.from(i));var a,u,n=Jq(i,s),p=n.tag,m=n.data;switch(p){case"CERTIFICATE":u=Zi.certificate.decode(m,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=Zi.PublicKey.decode(m,"der")),a=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return Zi.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=Zi.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+a)}case"ENCRYPTED PRIVATE KEY":m=function(y,M){var b=y.algorithm.decrypt.kde.kdeparams.salt,g=parseInt(y.algorithm.decrypt.kde.kdeparams.iters.toString(),10),S=Xq[y.algorithm.decrypt.cipher.algo.join(".")],_=y.algorithm.decrypt.cipher.iv,x=y.subjectPrivateKey,E=parseInt(S.split("-")[1],10)/8,k=Qq.pbkdf2Sync(M,b,g,E,"sha1"),B=Yq.createDecipheriv(S,k,_),T=[];return T.push(B.update(x)),T.push(B.final()),Ev.concat(T)}(m=Zi.EncryptedPrivateKey.decode(m,"der"),s);case"PRIVATE KEY":switch(a=(u=Zi.PrivateKey.decode(m,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return Zi.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:Zi.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=Zi.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+a)}case"RSA PUBLIC KEY":return Zi.RSAPublicKey.decode(m,"der");case"RSA PRIVATE KEY":return Zi.RSAPrivateKey.decode(m,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Zi.DSAPrivateKey.decode(m,"der")};case"EC PRIVATE KEY":return{curve:(m=Zi.ECPrivateKey.decode(m,"der")).parameters.value,privateKey:m.privateKey};default:throw new Error("unknown key type "+p)}}ZA=iM,iM.signature=Zi.signature;var Mc=ZA,VA={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"},tb={},$i=Pe.Buffer,qs=EE,tz=kb,ez=yc.ec,ic=Vr,rz=Mc,iz=VA;function nM(i,s,a,u){if((i=new $i(i.toArray())).length<s.byteLength()){var n=new $i(s.byteLength()-i.length);n.fill(0),i=$i.concat([n,i])}var p=a.length,m=function(b,g){b=(b=$b(b,g)).mod(g);var S=new $i(b.toArray());if(S.length<g.byteLength()){var _=new $i(g.byteLength()-S.length);_.fill(0),S=$i.concat([_,S])}return S}(a,s),y=new $i(p);y.fill(1);var M=new $i(p);return M.fill(0),M=qs(u,M).update(y).update(new $i([0])).update(i).update(m).digest(),y=qs(u,M).update(y).digest(),{k:M=qs(u,M).update(y).update(new $i([1])).update(i).update(m).digest(),v:y=qs(u,M).update(y).digest()}}function $b(i,s){var a=new ic(i),u=(i.length<<3)-s.bitLength();return u>0&&a.ishrn(u),a}function oM(i,s,a){var u,n;do{for(u=new $i(0);8*u.length<i.bitLength();)s.v=qs(a,s.k).update(s.v).digest(),u=$i.concat([u,s.v]);n=$b(u,i),s.k=qs(a,s.k).update(s.v).update(new $i([0])).digest(),s.v=qs(a,s.k).update(s.v).digest()}while(n.cmp(i)!==-1);return n}function nz(i,s,a,u){return i.toRed(ic.mont(a)).redPow(s).fromRed().mod(u)}(tb=function(i,s,a,u,n){var p=rz(s);if(p.curve){if(u!=="ecdsa"&&u!=="ecdsa/rsa")throw new Error("wrong private key type");return function(b,g){var S=iz[g.curve.join(".")];if(!S)throw new Error("unknown curve "+g.curve.join("."));var _=new ez(S).keyFromPrivate(g.privateKey).sign(b);return new $i(_.toDER())}(i,p)}if(p.type==="dsa"){if(u!=="dsa")throw new Error("wrong private key type");return function(b,g,S){for(var _,x=g.params.priv_key,E=g.params.p,k=g.params.q,B=g.params.g,T=new ic(0),C=$b(b,k).mod(k),P=!1,G=nM(x,k,b,S);P===!1;)_=oM(k,G,S),T=nz(B,_,E,k),(P=_.invm(k).imul(C.add(x.mul(T))).mod(k)).cmpn(0)===0&&(P=!1,T=new ic(0));return function(U,V){U=U.toArray(),V=V.toArray(),128&U[0]&&(U=[0].concat(U)),128&V[0]&&(V=[0].concat(V));var I=[48,U.length+V.length+4,2,U.length];return I=I.concat(U,[2,V.length],V),new $i(I)}(T,P)}(i,p,a)}if(u!=="rsa"&&u!=="ecdsa/rsa")throw new Error("wrong private key type");i=$i.concat([n,i]);for(var m=p.modulus.byteLength(),y=[0,1];i.length+y.length+1<m;)y.push(255);y.push(0);for(var M=-1;++M<i.length;)y.push(i[M]);return tz(y,p)}).getKey=nM,tb.makeKey=oM;var oz=tb,Av=Pe.Buffer,Tf=Vr,az=yc.ec,aM=Mc,sz=VA;function sM(i,s){if(i.cmpn(0)<=0)throw new Error("invalid sig");if(i.cmp(s)>=s)throw new Error("invalid sig")}var hz=function(i,s,a,u,n){var p=aM(a);if(p.type==="ec"){if(u!=="ecdsa"&&u!=="ecdsa/rsa")throw new Error("wrong public key type");return function(_,x,E){var k=sz[E.data.algorithm.curve.join(".")];if(!k)throw new Error("unknown curve "+E.data.algorithm.curve.join("."));var B=new az(k),T=E.data.subjectPrivateKey.data;return B.verify(x,_,T)}(i,s,p)}if(p.type==="dsa"){if(u!=="dsa")throw new Error("wrong public key type");return function(_,x,E){var k=E.data.p,B=E.data.q,T=E.data.g,C=E.data.pub_key,P=aM.signature.decode(_,"der"),G=P.s,U=P.r;sM(G,B),sM(U,B);var V=Tf.mont(k),I=G.invm(B);return T.toRed(V).redPow(new Tf(x).mul(I).mod(B)).fromRed().mul(C.toRed(V).redPow(U.mul(I).mod(B)).fromRed()).mod(k).mod(B).cmp(U)===0}(i,s,p)}if(u!=="rsa"&&u!=="ecdsa/rsa")throw new Error("wrong public key type");s=Av.concat([n,s]);for(var m=p.modulus.byteLength(),y=[1],M=0;s.length+y.length+2<m;)y.push(255),M++;y.push(0);for(var b=-1;++b<s.length;)y.push(s[b]);y=new Av(y);var g=Tf.mont(p.modulus);i=(i=new Tf(i).toRed(g)).redPow(new Tf(p.publicExponent)),i=new Av(i.fromRed().toArray());var S=M<8?1:0;for(m=Math.min(i.length,y.length),i.length!==y.length&&(S=1),b=-1;++b<m;)S|=i[b]^y[b];return S===0},jr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,v0=Pe.Buffer,WA=lu,nc=Pn,hM=qe,fz=oz,uz=hz,Is=AE;function Kf(i){nc.Writable.call(this||jr);var s=Is[i];if(!s)throw new Error("Unknown message digest");(this||jr)._hashType=s.hash,(this||jr)._hash=WA(s.hash),(this||jr)._tag=s.id,(this||jr)._signType=s.sign}function Gf(i){nc.Writable.call(this||jr);var s=Is[i];if(!s)throw new Error("Unknown message digest");(this||jr)._hash=WA(s.hash),(this||jr)._tag=s.id,(this||jr)._signType=s.sign}function fM(i){return new Kf(i)}function uM(i){return new Gf(i)}Object.keys(Is).forEach(function(i){Is[i].id=new v0(Is[i].id,"hex"),Is[i.toLowerCase()]=Is[i]}),hM(Kf,nc.Writable),Kf.prototype._write=function(i,s,a){(this||jr)._hash.update(i),a()},Kf.prototype.update=function(i,s){return typeof i=="string"&&(i=new v0(i,s)),(this||jr)._hash.update(i),this||jr},Kf.prototype.sign=function(i,s){this.end();var a=(this||jr)._hash.digest(),u=fz(a,i,(this||jr)._hashType,(this||jr)._signType,(this||jr)._tag);return s?u.toString(s):u},hM(Gf,nc.Writable),Gf.prototype._write=function(i,s,a){(this||jr)._hash.update(i),a()},Gf.prototype.update=function(i,s){return typeof i=="string"&&(i=new v0(i,s)),(this||jr)._hash.update(i),this||jr},Gf.prototype.verify=function(i,s,a){typeof s=="string"&&(s=new v0(s,a)),this.end();var u=(this||jr)._hash.digest();return uz(s,u,i,(this||jr)._signType,(this||jr)._tag)};var lz={Sign:fM,Verify:uM,createSign:fM,createVerify:uM},XA,ri=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,Qo=Pe.Buffer,cz=yc,dz=Vr;XA=function(i){return new Bs(i)};var un={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function Bs(i){(this||ri).curveType=un[i],(this||ri).curveType||((this||ri).curveType={name:i}),(this||ri).curve=new cz.ec((this||ri).curveType.name),(this||ri).keys=void 0}function kv(i,s,a){Array.isArray(i)||(i=i.toArray());var u=new Qo(i);if(a&&u.length<a){var n=new Qo(a-u.length);n.fill(0),u=Qo.concat([n,u])}return s?u.toString(s):u}un.p224=un.secp224r1,un.p256=un.secp256r1=un.prime256v1,un.p192=un.secp192r1=un.prime192v1,un.p384=un.secp384r1,un.p521=un.secp521r1,Bs.prototype.generateKeys=function(i,s){return(this||ri).keys=(this||ri).curve.genKeyPair(),this.getPublicKey(i,s)},Bs.prototype.computeSecret=function(i,s,a){return s=s||"utf8",Qo.isBuffer(i)||(i=new Qo(i,s)),kv((this||ri).curve.keyFromPublic(i).getPublic().mul((this||ri).keys.getPrivate()).getX(),a,(this||ri).curveType.byteLength)},Bs.prototype.getPublicKey=function(i,s){var a=(this||ri).keys.getPublic(s==="compressed",!0);return s==="hybrid"&&(a[a.length-1]%2?a[0]=7:a[0]=6),kv(a,i)},Bs.prototype.getPrivateKey=function(i){return kv((this||ri).keys.getPrivate(),i)},Bs.prototype.setPublicKey=function(i,s){return s=s||"utf8",Qo.isBuffer(i)||(i=new Qo(i,s)),(this||ri).keys._importPublic(i),this||ri},Bs.prototype.setPrivateKey=function(i,s){s=s||"utf8",Qo.isBuffer(i)||(i=new Qo(i,s));var a=new dz(i);return a=a.toString(16),(this||ri).keys=(this||ri).curve.genKeyPair(),(this||ri).keys._importPrivate(a),this||ri};var pz=XA,mz=lu,eb=er.Buffer;function vz(i){var s=eb.allocUnsafe(4);return s.writeUInt32BE(i,0),s}var JA=function(i,s){for(var a,u=eb.alloc(0),n=0;u.length<s;)a=vz(n++),u=eb.concat([u,mz("sha1").update(i).update(a).digest()]);return u.slice(0,s)},YA=function(i,s){for(var a=i.length,u=-1;++u<a;)i[u]^=s[u];return i},lM=Vr,gz=er.Buffer,QA=function(i,s){return gz.from(i.toRed(lM.mont(s.modulus)).redPow(new lM(s.publicExponent)).fromRed().toArray())},bz=Mc,Rv=Zh,yz=lu,cM=JA,dM=YA,Bv=Vr,wz=QA,Mz=kb,Xn=er.Buffer,_z=function(i,s,a){var u;u=i.padding?i.padding:a?1:4;var n,p=bz(i);if(u===4)n=function(m,y){var M=m.modulus.byteLength(),b=y.length,g=yz("sha1").update(Xn.alloc(0)).digest(),S=g.length,_=2*S;if(b>M-_-2)throw new Error("message too long");var x=Xn.alloc(M-b-_-2),E=M-S-1,k=Rv(S),B=dM(Xn.concat([g,x,Xn.alloc(1,1),y],E),cM(k,E)),T=dM(k,cM(B,S));return new Bv(Xn.concat([Xn.alloc(1),T,B],M))}(p,s);else if(u===1)n=function(m,y,M){var b,g=y.length,S=m.modulus.byteLength();if(g>S-11)throw new Error("message too long");return b=M?Xn.alloc(S-g-3,255):function(_){for(var x,E=Xn.allocUnsafe(_),k=0,B=Rv(2*_),T=0;k<_;)T===B.length&&(B=Rv(2*_),T=0),(x=B[T++])&&(E[k++]=x);return E}(S-g-3),new Bv(Xn.concat([Xn.from([0,M?1:2]),b,Xn.alloc(1),y],S))}(p,s,a);else{if(u!==3)throw new Error("unknown padding");if((n=new Bv(s)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return a?Mz(n,p):wz(n,p)},Sz=Mc,pM=JA,mM=YA,vM=Vr,xz=kb,Ez=lu,Az=QA,$f=er.Buffer,kz=function(i,s,a){var u;u=i.padding?i.padding:a?1:4;var n,p=Sz(i),m=p.modulus.byteLength();if(s.length>m||new vM(s).cmp(p.modulus)>=0)throw new Error("decryption error");n=a?Az(new vM(s),p):xz(s,p);var y=$f.alloc(m-n.length);if(n=$f.concat([y,n],m),u===4)return function(M,b){var g=M.modulus.byteLength(),S=Ez("sha1").update($f.alloc(0)).digest(),_=S.length;if(b[0]!==0)throw new Error("decryption error");var x=b.slice(1,_+1),E=b.slice(_+1),k=mM(x,pM(E,_)),B=mM(E,pM(k,g-_-1));if(function(C,P){C=$f.from(C),P=$f.from(P);var G=0,U=C.length;C.length!==P.length&&(G++,U=Math.min(C.length,P.length));for(var V=-1;++V<U;)G+=C[V]^P[V];return G}(S,B.slice(0,_)))throw new Error("decryption error");for(var T=_;B[T]===0;)T++;if(B[T++]!==1)throw new Error("decryption error");return B.slice(T)}(p,n);if(u===1)return function(M,b,g){for(var S=b.slice(0,2),_=2,x=0;b[_++]!==0;)if(_>=b.length){x++;break}var E=b.slice(2,_-1);if((S.toString("hex")!=="0002"&&!g||S.toString("hex")!=="0001"&&g)&&x++,E.length<8&&x++,x)throw new Error("decryption error");return b.slice(_)}(0,n,a);if(u===3)return n;throw new Error("unknown padding")},Ts={};Ts.publicEncrypt=_z,Ts.privateDecrypt=kz,Ts.privateEncrypt=function(i,s){return Ts.publicEncrypt(i,s,!0)},Ts.publicDecrypt=function(i,s){return Ts.privateDecrypt(i,s,!0)};var oc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis,Zf={},rb=Le;function gM(){throw new Error(`secure random number generation not supported by this browser
20
+ use chrome, FireFox or Internet Explorer 11`)}var tk=er,bM=Zh,yM=tk.Buffer,ek=tk.kMaxLength,ib=oc.crypto||oc.msCrypto,rk=Math.pow(2,32)-1;function wM(i,s){if(typeof i!="number"||i!=i)throw new TypeError("offset must be a number");if(i>rk||i<0)throw new TypeError("offset must be a uint32");if(i>ek||i>s)throw new RangeError("offset out of range")}function MM(i,s,a){if(typeof i!="number"||i!=i)throw new TypeError("size must be a number");if(i>rk||i<0)throw new TypeError("size must be a uint32");if(i+s>a||i>ek)throw new RangeError("buffer too small")}function _M(i,s,a,u){if(rb.browser){var n=i.buffer,p=new Uint8Array(n,s,a);return ib.getRandomValues(p),u?(rb.nextTick(function(){u(null,i)}),void 0):i}return u?(bM(a,function(m,y){if(m)return u(m);y.copy(i,s),u(null,i)}),void 0):(bM(a).copy(i,s),i)}ib&&ib.getRandomValues||!rb.browser?(Zf.randomFill=function(i,s,a,u){if(!(yM.isBuffer(i)||i instanceof oc.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof s=="function")u=s,s=0,a=i.length;else if(typeof a=="function")u=a,a=i.length-s;else if(typeof u!="function")throw new TypeError('"cb" argument must be a function');return wM(s,i.length),MM(a,s,i.length),_M(i,s,a,u)},Zf.randomFillSync=function(i,s,a){if(s===void 0&&(s=0),!(yM.isBuffer(i)||i instanceof oc.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return wM(s,i.length),a===void 0&&(a=i.length-s),MM(a,s,i.length),_M(i,s,a)}):(Zf.randomFill=gM,Zf.randomFillSync=gM);var We={};We.randomBytes=We.rng=We.pseudoRandomBytes=We.prng=Zh,We.createHash=We.Hash=lu,We.createHmac=We.Hmac=EE;var Rz=AE,Bz=Object.keys(Rz),Tz=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Bz);We.getHashes=function(){return Tz};var SM=J0;We.pbkdf2=SM.pbkdf2,We.pbkdf2Sync=SM.pbkdf2Sync;var Mo=Yn;We.Cipher=Mo.Cipher,We.createCipher=Mo.createCipher,We.Cipheriv=Mo.Cipheriv,We.createCipheriv=Mo.createCipheriv,We.Decipher=Mo.Decipher,We.createDecipher=Mo.createDecipher,We.Decipheriv=Mo.Decipheriv,We.createDecipheriv=Mo.createDecipheriv,We.getCiphers=Mo.getCiphers,We.listCiphers=Mo.listCiphers;var If=Ih;We.DiffieHellmanGroup=If.DiffieHellmanGroup,We.createDiffieHellmanGroup=If.createDiffieHellmanGroup,We.getDiffieHellman=If.getDiffieHellman,We.createDiffieHellman=If.createDiffieHellman,We.DiffieHellman=If.DiffieHellman;var g0=lz;We.createSign=g0.createSign,We.Sign=g0.Sign,We.createVerify=g0.createVerify,We.Verify=g0.Verify,We.createECDH=pz;var b0=Ts;We.publicEncrypt=b0.publicEncrypt,We.privateEncrypt=b0.privateEncrypt,We.publicDecrypt=b0.publicDecrypt,We.privateDecrypt=b0.privateDecrypt;var xM=Zf;We.randomFill=xM.randomFill,We.randomFillSync=xM.randomFillSync,We.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
21
+ `))},We.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6};var y0={},EM=!1,w0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Ib(){if(EM)return y0;EM=!0;var i;y0=function(n){return i||(i=new s(null)),i.generate(n)};function s(u){(this||w0).rand=u}if(y0.Rand=s,s.prototype.generate=function(n){return this._rand(n)},s.prototype._rand=function(n){if((this||w0).rand.getBytes)return(this||w0).rand.getBytes(n);for(var p=new Uint8Array(n),m=0;m<p.length;m++)p[m]=(this||w0).rand.getByte();return p},typeof self=="object")self.crypto&&self.crypto.getRandomValues?s.prototype._rand=function(n){var p=new Uint8Array(n);return self.crypto.getRandomValues(p),p}:self.msCrypto&&self.msCrypto.getRandomValues?s.prototype._rand=function(n){var p=new Uint8Array(n);return self.msCrypto.getRandomValues(p),p}:typeof window=="object"&&(s.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=We;if(typeof a.randomBytes!="function")throw new Error("Not supported");s.prototype._rand=function(n){return a.randomBytes(n)}}catch{}return y0}var Tv={},AM=!1,kM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function ik(){if(AM)return Tv;AM=!0;var i=SD(),s=Ib();function a(u){(this||kM).rand=u||new s.Rand}return Tv=a,a.create=function(n){return new a(n)},a.prototype._randbelow=function(n){var p=n.bitLength(),m=Math.ceil(p/8);do var y=new i((this||kM).rand.generate(m));while(y.cmp(n)>=0);return y},a.prototype._randrange=function(n,p){var m=p.sub(n);return n.add(this._randbelow(m))},a.prototype.test=function(n,p,m){var y=n.bitLength(),M=i.mont(n),b=new i(1).toRed(M);p||(p=Math.max(1,y/48|0));for(var g=n.subn(1),S=0;!g.testn(S);S++);for(var _=n.shrn(S),x=g.toRed(M),E=!0;p>0;p--){var k=this._randrange(new i(2),g);m&&m(k);var B=k.toRed(M).redPow(_);if(!(B.cmp(b)===0||B.cmp(x)===0)){for(var T=1;T<S;T++){if(B=B.redSqr(),B.cmp(b)===0)return!1;if(B.cmp(x)===0)break}if(T===S)return!1}}return E},a.prototype.getDivisor=function(n,p){var m=n.bitLength(),y=i.mont(n),M=new i(1).toRed(y);p||(p=Math.max(1,m/48|0));for(var b=n.subn(1),g=0;!b.testn(g);g++);for(var S=n.shrn(g),_=b.toRed(y);p>0;p--){var x=this._randrange(new i(2),b),E=n.gcd(x);if(E.cmpn(1)!==0)return E;var k=x.toRed(y).redPow(S);if(!(k.cmp(M)===0||k.cmp(_)===0)){for(var B=1;B<g;B++){if(k=k.redSqr(),k.cmp(M)===0)return k.fromRed().subn(1).gcd(n);if(k.cmp(_)===0)break}if(B===g)return k=k.redSqr(),k.fromRed().subn(1).gcd(n)}}return!1},Tv}var $v={},RM=!1;function nk(){if(RM)return $v;RM=!0;var i=Kh();$v=B,B.simpleSieve=E,B.fermatTest=k;var s=aE(),a=new s(24),u=ik(),n=new u,p=new s(1),m=new s(2),y=new s(5);new s(16),new s(8);var M=new s(10),b=new s(3);new s(7);var g=new s(11),S=new s(4);new s(12);var _=null;function x(){if(_!==null)return _;var T=1048576,C=[];C[0]=2;for(var P=1,G=3;G<T;G+=2){for(var U=Math.ceil(Math.sqrt(G)),V=0;V<P&&C[V]<=U&&G%C[V]!==0;V++);P!==V&&C[V]<=U||(C[P++]=G)}return _=C,C}function E(T){for(var C=x(),P=0;P<C.length;P++)if(T.modn(C[P])===0)return T.cmpn(C[P])===0;return!0}function k(T){var C=s.mont(T);return m.toRed(C).redPow(T.subn(1)).fromRed().cmpn(1)===0}function B(T,C){if(T<16)return C===2||C===5?new s([140,123]):new s([140,39]);C=new s(C);for(var P,G;;){for(P=new s(i(Math.ceil(T/8)));P.bitLength()>T;)P.ishrn(1);if(P.isEven()&&P.iadd(p),P.testn(1)||P.iadd(m),C.cmp(m)){if(!C.cmp(y))for(;P.mod(M).cmp(b);)P.iadd(S)}else for(;P.mod(a).cmp(g);)P.iadd(S);if(G=P.shrn(1),E(G)&&E(P)&&k(G)&&k(P)&&n.test(G)&&n.test(P))return P}}return $v}var $z={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},Iv={},BM=!1,ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Iz(){if(BM)return Iv;BM=!0;var i=Pe.Buffer,s=aE(),a=ik(),u=new a,n=new s(24),p=new s(11),m=new s(10),y=new s(3),M=new s(7),b=nk(),g=Kh();Iv=k;function S(T,C){return C=C||"utf8",i.isBuffer(T)||(T=new i(T,C)),(this||ir)._pub=new s(T),this||ir}function _(T,C){return C=C||"utf8",i.isBuffer(T)||(T=new i(T,C)),(this||ir)._priv=new s(T),this||ir}var x={};function E(T,C){var P=C.toString("hex"),G=[P,T.toString(16)].join("_");if(G in x)return x[G];var U=0;if(T.isEven()||!b.simpleSieve||!b.fermatTest(T)||!u.test(T))return U+=1,P==="02"||P==="05"?U+=8:U+=4,x[G]=U,U;u.test(T.shrn(1))||(U+=2);var V;switch(P){case"02":T.mod(n).cmp(p)&&(U+=8);break;case"05":V=T.mod(m),V.cmp(y)&&V.cmp(M)&&(U+=8);break;default:U+=4}return x[G]=U,U}function k(T,C,P){this.setGenerator(C),(this||ir).__prime=new s(T),(this||ir)._prime=s.mont((this||ir).__prime),(this||ir)._primeLen=T.length,(this||ir)._pub=void 0,(this||ir)._priv=void 0,(this||ir)._primeCode=void 0,P?((this||ir).setPublicKey=S,(this||ir).setPrivateKey=_):(this||ir)._primeCode=8}Object.defineProperty(k.prototype,"verifyError",{enumerable:!0,get:function(){return typeof(this||ir)._primeCode!="number"&&((this||ir)._primeCode=E((this||ir).__prime,(this||ir).__gen)),(this||ir)._primeCode}}),k.prototype.generateKeys=function(){return(this||ir)._priv||((this||ir)._priv=new s(g((this||ir)._primeLen))),(this||ir)._pub=(this||ir)._gen.toRed((this||ir)._prime).redPow((this||ir)._priv).fromRed(),this.getPublicKey()},k.prototype.computeSecret=function(T){T=new s(T),T=T.toRed((this||ir)._prime);var C=T.redPow((this||ir)._priv).fromRed(),P=new i(C.toArray()),G=this.getPrime();if(P.length<G.length){var U=new i(G.length-P.length);U.fill(0),P=i.concat([U,P])}return P},k.prototype.getPublicKey=function(C){return B((this||ir)._pub,C)},k.prototype.getPrivateKey=function(C){return B((this||ir)._priv,C)},k.prototype.getPrime=function(T){return B((this||ir).__prime,T)},k.prototype.getGenerator=function(T){return B((this||ir)._gen,T)},k.prototype.setGenerator=function(T,C){return C=C||"utf8",i.isBuffer(T)||(T=new i(T,C)),(this||ir).__gen=T,(this||ir)._gen=new s(T),this||ir};function B(T,C){var P=new i(T.toArray());return C?P.toString(C):P}return Iv}var Ss={},TM=!1;function Cz(){if(TM)return Ss;TM=!0;var i=Pe.Buffer,s=nk(),a=$z,u=Iz();function n(y){var M=new i(a[y].prime,"hex"),b=new i(a[y].gen,"hex");return new u(M,b)}var p={binary:!0,hex:!0,base64:!0};function m(y,M,b,g){return i.isBuffer(M)||p[M]===void 0?m(y,"binary",M,b):(M=M||"binary",g=g||"binary",b=b||new i([2]),i.isBuffer(b)||(b=new i(b,g)),typeof y=="number"?new u(s(y,b),b,!0):(i.isBuffer(y)||(y=new i(y,M)),new u(y,b,!0)))}return Ss.DiffieHellmanGroup=Ss.createDiffieHellmanGroup=Ss.getDiffieHellman=n,Ss.createDiffieHellman=Ss.DiffieHellman=m,Ss}var ok={},$M=!1,Cv={exports:ok},Y=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Cb(){return $M||($M=!0,function(i,s){function a(r,o){if(!r)throw new Error(o||"Assertion failed")}function u(r,o){r.super_=o;var h=function(){};h.prototype=o.prototype,r.prototype=new h,r.prototype.constructor=r}function n(r,o,h){if(n.isBN(r))return r;(this||Y).negative=0,(this||Y).words=null,(this||Y).length=0,(this||Y).red=null,r!==null&&((o==="le"||o==="be")&&(h=o,o=10),this._init(r||0,o||10,h||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Pe.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,h){return o.cmp(h)>0?o:h},n.min=function(o,h){return o.cmp(h)<0?o:h},n.prototype._init=function(o,h,f){if(typeof o=="number")return this._initNumber(o,h,f);if(typeof o=="object")return this._initArray(o,h,f);h==="hex"&&(h=16),a(h===(h|0)&&h>=2&&h<=36),o=o.toString().replace(/\s+/g,"");var v=0;o[0]==="-"&&(v++,(this||Y).negative=1),v<o.length&&(h===16?this._parseHex(o,v,f):(this._parseBase(o,h,v),f==="le"&&this._initArray(this.toArray(),h,f)))},n.prototype._initNumber=function(o,h,f){o<0&&((this||Y).negative=1,o=-o),o<67108864?((this||Y).words=[o&67108863],(this||Y).length=1):o<4503599627370496?((this||Y).words=[o&67108863,o/67108864&67108863],(this||Y).length=2):(a(o<9007199254740992),(this||Y).words=[o&67108863,o/67108864&67108863,1],(this||Y).length=3),f==="le"&&this._initArray(this.toArray(),h,f)},n.prototype._initArray=function(o,h,f){if(a(typeof o.length=="number"),o.length<=0)return(this||Y).words=[0],(this||Y).length=1,this||Y;(this||Y).length=Math.ceil(o.length/3),(this||Y).words=new Array((this||Y).length);for(var v=0;v<(this||Y).length;v++)(this||Y).words[v]=0;var w,l,e=0;if(f==="be")for(v=o.length-1,w=0;v>=0;v-=3)l=o[v]|o[v-1]<<8|o[v-2]<<16,(this||Y).words[w]|=l<<e&67108863,(this||Y).words[w+1]=l>>>26-e&67108863,e+=24,e>=26&&(e-=26,w++);else if(f==="le")for(v=0,w=0;v<o.length;v+=3)l=o[v]|o[v+1]<<8|o[v+2]<<16,(this||Y).words[w]|=l<<e&67108863,(this||Y).words[w+1]=l>>>26-e&67108863,e+=24,e>=26&&(e-=26,w++);return this._strip()};function m(r,o){var h=r.charCodeAt(o);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;a(!1,"Invalid character in "+r)}function y(r,o,h){var f=m(r,h);return h-1>=o&&(f|=m(r,h-1)<<4),f}n.prototype._parseHex=function(o,h,f){(this||Y).length=Math.ceil((o.length-h)/6),(this||Y).words=new Array((this||Y).length);for(var v=0;v<(this||Y).length;v++)(this||Y).words[v]=0;var w=0,l=0,e;if(f==="be")for(v=o.length-1;v>=h;v-=2)e=y(o,h,v)<<w,(this||Y).words[l]|=e&67108863,w>=18?(w-=18,l+=1,(this||Y).words[l]|=e>>>26):w+=8;else{var c=o.length-h;for(v=c%2===0?h+1:h;v<o.length;v+=2)e=y(o,h,v)<<w,(this||Y).words[l]|=e&67108863,w>=18?(w-=18,l+=1,(this||Y).words[l]|=e>>>26):w+=8}this._strip()};function M(r,o,h,f){for(var v=0,w=0,l=Math.min(r.length,h),e=o;e<l;e++){var c=r.charCodeAt(e)-48;v*=f,c>=49?w=c-49+10:c>=17?w=c-17+10:w=c,a(c>=0&&w<f,"Invalid character"),v+=w}return v}n.prototype._parseBase=function(o,h,f){(this||Y).words=[0],(this||Y).length=1;for(var v=0,w=1;w<=67108863;w*=h)v++;v--,w=w/h|0;for(var l=o.length-f,e=l%v,c=Math.min(l,l-e)+f,A=0,R=f;R<c;R+=v)A=M(o,R,R+v,h),this.imuln(w),(this||Y).words[0]+A<67108864?(this||Y).words[0]+=A:this._iaddn(A);if(e!==0){var $=1;for(A=M(o,R,o.length,h),R=0;R<e;R++)$*=h;this.imuln($),(this||Y).words[0]+A<67108864?(this||Y).words[0]+=A:this._iaddn(A)}this._strip()},n.prototype.copy=function(o){o.words=new Array((this||Y).length);for(var h=0;h<(this||Y).length;h++)o.words[h]=(this||Y).words[h];o.length=(this||Y).length,o.negative=(this||Y).negative,o.red=(this||Y).red};function b(r,o){r.words=o.words,r.length=o.length,r.negative=o.negative,r.red=o.red}if(n.prototype._move=function(o){b(o,this||Y)},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;(this||Y).length<o;)(this||Y).words[(this||Y).length++]=0;return this||Y},n.prototype._strip=function(){for(;(this||Y).length>1&&(this||Y).words[(this||Y).length-1]===0;)(this||Y).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Y).length===1&&(this||Y).words[0]===0&&((this||Y).negative=0),this||Y},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=g}catch{n.prototype.inspect=g}else n.prototype.inspect=g;function g(){return((this||Y).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],x=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,h){o=o||10,h=h|0||1;var f;if(o===16||o==="hex"){f="";for(var v=0,w=0,l=0;l<(this||Y).length;l++){var e=(this||Y).words[l],c=((e<<v|w)&16777215).toString(16);w=e>>>24-v&16777215,w!==0||l!==(this||Y).length-1?f=S[6-c.length]+c+f:f=c+f,v+=2,v>=26&&(v-=26,l--)}for(w!==0&&(f=w.toString(16)+f);f.length%h!==0;)f="0"+f;return(this||Y).negative!==0&&(f="-"+f),f}if(o===(o|0)&&o>=2&&o<=36){var A=_[o],R=x[o];f="";var $=this.clone();for($.negative=0;!$.isZero();){var L=$.modrn(R).toString(o);$=$.idivn(R),$.isZero()?f=L+f:f=S[A-L.length]+L+f}for(this.isZero()&&(f="0"+f);f.length%h!==0;)f="0"+f;return(this||Y).negative!==0&&(f="-"+f),f}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=(this||Y).words[0];return(this||Y).length===2?o+=(this||Y).words[1]*67108864:(this||Y).length===3&&(this||Y).words[2]===1?o+=4503599627370496+(this||Y).words[1]*67108864:(this||Y).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||Y).negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16,2)},p&&(n.prototype.toBuffer=function(o,h){return this.toArrayLike(p,o,h)}),n.prototype.toArray=function(o,h){return this.toArrayLike(Array,o,h)};var E=function(o,h){return o.allocUnsafe?o.allocUnsafe(h):new o(h)};n.prototype.toArrayLike=function(o,h,f){this._strip();var v=this.byteLength(),w=f||Math.max(1,v);a(v<=w,"byte array longer than desired length"),a(w>0,"Requested array length <= 0");var l=E(o,w),e=h==="le"?"LE":"BE";return this["_toArrayLike"+e](l,v),l},n.prototype._toArrayLikeLE=function(o,h){for(var f=0,v=0,w=0,l=0;w<(this||Y).length;w++){var e=(this||Y).words[w]<<l|v;o[f++]=e&255,f<o.length&&(o[f++]=e>>8&255),f<o.length&&(o[f++]=e>>16&255),l===6?(f<o.length&&(o[f++]=e>>24&255),v=0,l=0):(v=e>>>24,l+=2)}if(f<o.length)for(o[f++]=v;f<o.length;)o[f++]=0},n.prototype._toArrayLikeBE=function(o,h){for(var f=o.length-1,v=0,w=0,l=0;w<(this||Y).length;w++){var e=(this||Y).words[w]<<l|v;o[f--]=e&255,f>=0&&(o[f--]=e>>8&255),f>=0&&(o[f--]=e>>16&255),l===6?(f>=0&&(o[f--]=e>>24&255),v=0,l=0):(v=e>>>24,l+=2)}if(f>=0)for(o[f--]=v;f>=0;)o[f--]=0},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var h=o,f=0;return h>=4096&&(f+=13,h>>>=13),h>=64&&(f+=7,h>>>=7),h>=8&&(f+=4,h>>>=4),h>=2&&(f+=2,h>>>=2),f+h},n.prototype._zeroBits=function(o){if(o===0)return 26;var h=o,f=0;return h&8191||(f+=13,h>>>=13),h&127||(f+=7,h>>>=7),h&15||(f+=4,h>>>=4),h&3||(f+=2,h>>>=2),h&1||f++,f},n.prototype.bitLength=function(){var o=(this||Y).words[(this||Y).length-1],h=this._countBits(o);return((this||Y).length-1)*26+h};function k(r){for(var o=new Array(r.bitLength()),h=0;h<o.length;h++){var f=h/26|0,v=h%26;o[h]=r.words[f]>>>v&1}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,h=0;h<(this||Y).length;h++){var f=this._zeroBits((this||Y).words[h]);if(o+=f,f!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return(this||Y).negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Y).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Y).negative^=1),this||Y},n.prototype.iuor=function(o){for(;(this||Y).length<o.length;)(this||Y).words[(this||Y).length++]=0;for(var h=0;h<o.length;h++)(this||Y).words[h]=(this||Y).words[h]|o.words[h];return this._strip()},n.prototype.ior=function(o){return a(((this||Y).negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return(this||Y).length>o.length?this.clone().ior(o):o.clone().ior(this||Y)},n.prototype.uor=function(o){return(this||Y).length>o.length?this.clone().iuor(o):o.clone().iuor(this||Y)},n.prototype.iuand=function(o){var h;(this||Y).length>o.length?h=o:h=this||Y;for(var f=0;f<h.length;f++)(this||Y).words[f]=(this||Y).words[f]&o.words[f];return(this||Y).length=h.length,this._strip()},n.prototype.iand=function(o){return a(((this||Y).negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return(this||Y).length>o.length?this.clone().iand(o):o.clone().iand(this||Y)},n.prototype.uand=function(o){return(this||Y).length>o.length?this.clone().iuand(o):o.clone().iuand(this||Y)},n.prototype.iuxor=function(o){var h,f;(this||Y).length>o.length?(h=this||Y,f=o):(h=o,f=this||Y);for(var v=0;v<f.length;v++)(this||Y).words[v]=h.words[v]^f.words[v];if((this||Y)!==h)for(;v<h.length;v++)(this||Y).words[v]=h.words[v];return(this||Y).length=h.length,this._strip()},n.prototype.ixor=function(o){return a(((this||Y).negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return(this||Y).length>o.length?this.clone().ixor(o):o.clone().ixor(this||Y)},n.prototype.uxor=function(o){return(this||Y).length>o.length?this.clone().iuxor(o):o.clone().iuxor(this||Y)},n.prototype.inotn=function(o){a(typeof o=="number"&&o>=0);var h=Math.ceil(o/26)|0,f=o%26;this._expand(h),f>0&&h--;for(var v=0;v<h;v++)(this||Y).words[v]=~(this||Y).words[v]&67108863;return f>0&&((this||Y).words[v]=~(this||Y).words[v]&67108863>>26-f),this._strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,h){a(typeof o=="number"&&o>=0);var f=o/26|0,v=o%26;return this._expand(f+1),h?(this||Y).words[f]=(this||Y).words[f]|1<<v:(this||Y).words[f]=(this||Y).words[f]&~(1<<v),this._strip()},n.prototype.iadd=function(o){var h;if((this||Y).negative!==0&&o.negative===0)return(this||Y).negative=0,h=this.isub(o),(this||Y).negative^=1,this._normSign();if((this||Y).negative===0&&o.negative!==0)return o.negative=0,h=this.isub(o),o.negative=1,h._normSign();var f,v;(this||Y).length>o.length?(f=this||Y,v=o):(f=o,v=this||Y);for(var w=0,l=0;l<v.length;l++)h=(f.words[l]|0)+(v.words[l]|0)+w,(this||Y).words[l]=h&67108863,w=h>>>26;for(;w!==0&&l<f.length;l++)h=(f.words[l]|0)+w,(this||Y).words[l]=h&67108863,w=h>>>26;if((this||Y).length=f.length,w!==0)(this||Y).words[(this||Y).length]=w,(this||Y).length++;else if(f!==(this||Y))for(;l<f.length;l++)(this||Y).words[l]=f.words[l];return this||Y},n.prototype.add=function(o){var h;return o.negative!==0&&(this||Y).negative===0?(o.negative=0,h=this.sub(o),o.negative^=1,h):o.negative===0&&(this||Y).negative!==0?((this||Y).negative=0,h=o.sub(this||Y),(this||Y).negative=1,h):(this||Y).length>o.length?this.clone().iadd(o):o.clone().iadd(this||Y)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var h=this.iadd(o);return o.negative=1,h._normSign()}else if((this||Y).negative!==0)return(this||Y).negative=0,this.iadd(o),(this||Y).negative=1,this._normSign();var f=this.cmp(o);if(f===0)return(this||Y).negative=0,(this||Y).length=1,(this||Y).words[0]=0,this||Y;var v,w;f>0?(v=this||Y,w=o):(v=o,w=this||Y);for(var l=0,e=0;e<w.length;e++)h=(v.words[e]|0)-(w.words[e]|0)+l,l=h>>26,(this||Y).words[e]=h&67108863;for(;l!==0&&e<v.length;e++)h=(v.words[e]|0)+l,l=h>>26,(this||Y).words[e]=h&67108863;if(l===0&&e<v.length&&v!==(this||Y))for(;e<v.length;e++)(this||Y).words[e]=v.words[e];return(this||Y).length=Math.max((this||Y).length,e),v!==(this||Y)&&((this||Y).negative=1),this._strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function B(r,o,h){h.negative=o.negative^r.negative;var f=r.length+o.length|0;h.length=f,f=f-1|0;var v=r.words[0]|0,w=o.words[0]|0,l=v*w,e=l&67108863,c=l/67108864|0;h.words[0]=e;for(var A=1;A<f;A++){for(var R=c>>>26,$=c&67108863,L=Math.min(A,o.length-1),j=Math.max(0,A-r.length+1);j<=L;j++){var pt=A-j|0;v=r.words[pt]|0,w=o.words[j]|0,l=v*w+$,R+=l/67108864|0,$=l&67108863}h.words[A]=$|0,c=R|0}return c!==0?h.words[A]=c|0:h.length--,h._strip()}var T=function(o,h,f){var v=o.words,w=h.words,l=f.words,e=0,c,A,R,$=v[0]|0,L=$&8191,j=$>>>13,pt=v[1]|0,W=pt&8191,N=pt>>>13,X=v[2]|0,jt=X&8191,gt=X>>>13,q=v[3]|0,K=q&8191,J=q>>>13,bt=v[4]|0,Kt=bt&8191,mt=bt>>>13,Mt=v[5]|0,Wt=Mt&8191,wt=Mt>>>13,Tt=v[6]|0,Zt=Tt&8191,_t=Tt>>>13,Pt=v[7]|0,Jt=Pt&8191,F=Pt>>>13,O=v[8]|0,H=O&8191,Z=O>>>13,dt=v[9]|0,Ht=dt&8191,vt=dt>>>13,$t=w[0]|0,Vt=$t&8191,yt=$t>>>13,Ct=w[1]|0,Gt=Ct&8191,St=Ct>>>13,Ot=w[2]|0,Qt=Ot&8191,xt=Ot>>>13,Nt=w[3]|0,te=Nt&8191,Et=Nt>>>13,qt=w[4]|0,ee=qt&8191,At=qt>>>13,zt=w[5]|0,re=zt&8191,kt=zt>>>13,Ut=w[6]|0,ie=Ut&8191,Rt=Ut>>>13,Ft=w[7]|0,ne=Ft&8191,Bt=Ft>>>13,Dt=w[8]|0,ce=Dt&8191,It=Dt>>>13,Lt=w[9]|0,ae=Lt&8191,se=Lt>>>13;f.negative=o.negative^h.negative,f.length=19,c=Math.imul(L,Vt),A=Math.imul(L,yt),A=A+Math.imul(j,Vt)|0,R=Math.imul(j,yt);var me=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(me>>>26)|0,me&=67108863,c=Math.imul(W,Vt),A=Math.imul(W,yt),A=A+Math.imul(N,Vt)|0,R=Math.imul(N,yt),c=c+Math.imul(L,Gt)|0,A=A+Math.imul(L,St)|0,A=A+Math.imul(j,Gt)|0,R=R+Math.imul(j,St)|0;var ve=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(ve>>>26)|0,ve&=67108863,c=Math.imul(jt,Vt),A=Math.imul(jt,yt),A=A+Math.imul(gt,Vt)|0,R=Math.imul(gt,yt),c=c+Math.imul(W,Gt)|0,A=A+Math.imul(W,St)|0,A=A+Math.imul(N,Gt)|0,R=R+Math.imul(N,St)|0,c=c+Math.imul(L,Qt)|0,A=A+Math.imul(L,xt)|0,A=A+Math.imul(j,Qt)|0,R=R+Math.imul(j,xt)|0;var ge=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(ge>>>26)|0,ge&=67108863,c=Math.imul(K,Vt),A=Math.imul(K,yt),A=A+Math.imul(J,Vt)|0,R=Math.imul(J,yt),c=c+Math.imul(jt,Gt)|0,A=A+Math.imul(jt,St)|0,A=A+Math.imul(gt,Gt)|0,R=R+Math.imul(gt,St)|0,c=c+Math.imul(W,Qt)|0,A=A+Math.imul(W,xt)|0,A=A+Math.imul(N,Qt)|0,R=R+Math.imul(N,xt)|0,c=c+Math.imul(L,te)|0,A=A+Math.imul(L,Et)|0,A=A+Math.imul(j,te)|0,R=R+Math.imul(j,Et)|0;var be=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(be>>>26)|0,be&=67108863,c=Math.imul(Kt,Vt),A=Math.imul(Kt,yt),A=A+Math.imul(mt,Vt)|0,R=Math.imul(mt,yt),c=c+Math.imul(K,Gt)|0,A=A+Math.imul(K,St)|0,A=A+Math.imul(J,Gt)|0,R=R+Math.imul(J,St)|0,c=c+Math.imul(jt,Qt)|0,A=A+Math.imul(jt,xt)|0,A=A+Math.imul(gt,Qt)|0,R=R+Math.imul(gt,xt)|0,c=c+Math.imul(W,te)|0,A=A+Math.imul(W,Et)|0,A=A+Math.imul(N,te)|0,R=R+Math.imul(N,Et)|0,c=c+Math.imul(L,ee)|0,A=A+Math.imul(L,At)|0,A=A+Math.imul(j,ee)|0,R=R+Math.imul(j,At)|0;var ye=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(ye>>>26)|0,ye&=67108863,c=Math.imul(Wt,Vt),A=Math.imul(Wt,yt),A=A+Math.imul(wt,Vt)|0,R=Math.imul(wt,yt),c=c+Math.imul(Kt,Gt)|0,A=A+Math.imul(Kt,St)|0,A=A+Math.imul(mt,Gt)|0,R=R+Math.imul(mt,St)|0,c=c+Math.imul(K,Qt)|0,A=A+Math.imul(K,xt)|0,A=A+Math.imul(J,Qt)|0,R=R+Math.imul(J,xt)|0,c=c+Math.imul(jt,te)|0,A=A+Math.imul(jt,Et)|0,A=A+Math.imul(gt,te)|0,R=R+Math.imul(gt,Et)|0,c=c+Math.imul(W,ee)|0,A=A+Math.imul(W,At)|0,A=A+Math.imul(N,ee)|0,R=R+Math.imul(N,At)|0,c=c+Math.imul(L,re)|0,A=A+Math.imul(L,kt)|0,A=A+Math.imul(j,re)|0,R=R+Math.imul(j,kt)|0;var we=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(we>>>26)|0,we&=67108863,c=Math.imul(Zt,Vt),A=Math.imul(Zt,yt),A=A+Math.imul(_t,Vt)|0,R=Math.imul(_t,yt),c=c+Math.imul(Wt,Gt)|0,A=A+Math.imul(Wt,St)|0,A=A+Math.imul(wt,Gt)|0,R=R+Math.imul(wt,St)|0,c=c+Math.imul(Kt,Qt)|0,A=A+Math.imul(Kt,xt)|0,A=A+Math.imul(mt,Qt)|0,R=R+Math.imul(mt,xt)|0,c=c+Math.imul(K,te)|0,A=A+Math.imul(K,Et)|0,A=A+Math.imul(J,te)|0,R=R+Math.imul(J,Et)|0,c=c+Math.imul(jt,ee)|0,A=A+Math.imul(jt,At)|0,A=A+Math.imul(gt,ee)|0,R=R+Math.imul(gt,At)|0,c=c+Math.imul(W,re)|0,A=A+Math.imul(W,kt)|0,A=A+Math.imul(N,re)|0,R=R+Math.imul(N,kt)|0,c=c+Math.imul(L,ie)|0,A=A+Math.imul(L,Rt)|0,A=A+Math.imul(j,ie)|0,R=R+Math.imul(j,Rt)|0;var Me=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Me>>>26)|0,Me&=67108863,c=Math.imul(Jt,Vt),A=Math.imul(Jt,yt),A=A+Math.imul(F,Vt)|0,R=Math.imul(F,yt),c=c+Math.imul(Zt,Gt)|0,A=A+Math.imul(Zt,St)|0,A=A+Math.imul(_t,Gt)|0,R=R+Math.imul(_t,St)|0,c=c+Math.imul(Wt,Qt)|0,A=A+Math.imul(Wt,xt)|0,A=A+Math.imul(wt,Qt)|0,R=R+Math.imul(wt,xt)|0,c=c+Math.imul(Kt,te)|0,A=A+Math.imul(Kt,Et)|0,A=A+Math.imul(mt,te)|0,R=R+Math.imul(mt,Et)|0,c=c+Math.imul(K,ee)|0,A=A+Math.imul(K,At)|0,A=A+Math.imul(J,ee)|0,R=R+Math.imul(J,At)|0,c=c+Math.imul(jt,re)|0,A=A+Math.imul(jt,kt)|0,A=A+Math.imul(gt,re)|0,R=R+Math.imul(gt,kt)|0,c=c+Math.imul(W,ie)|0,A=A+Math.imul(W,Rt)|0,A=A+Math.imul(N,ie)|0,R=R+Math.imul(N,Rt)|0,c=c+Math.imul(L,ne)|0,A=A+Math.imul(L,Bt)|0,A=A+Math.imul(j,ne)|0,R=R+Math.imul(j,Bt)|0;var _e=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(_e>>>26)|0,_e&=67108863,c=Math.imul(H,Vt),A=Math.imul(H,yt),A=A+Math.imul(Z,Vt)|0,R=Math.imul(Z,yt),c=c+Math.imul(Jt,Gt)|0,A=A+Math.imul(Jt,St)|0,A=A+Math.imul(F,Gt)|0,R=R+Math.imul(F,St)|0,c=c+Math.imul(Zt,Qt)|0,A=A+Math.imul(Zt,xt)|0,A=A+Math.imul(_t,Qt)|0,R=R+Math.imul(_t,xt)|0,c=c+Math.imul(Wt,te)|0,A=A+Math.imul(Wt,Et)|0,A=A+Math.imul(wt,te)|0,R=R+Math.imul(wt,Et)|0,c=c+Math.imul(Kt,ee)|0,A=A+Math.imul(Kt,At)|0,A=A+Math.imul(mt,ee)|0,R=R+Math.imul(mt,At)|0,c=c+Math.imul(K,re)|0,A=A+Math.imul(K,kt)|0,A=A+Math.imul(J,re)|0,R=R+Math.imul(J,kt)|0,c=c+Math.imul(jt,ie)|0,A=A+Math.imul(jt,Rt)|0,A=A+Math.imul(gt,ie)|0,R=R+Math.imul(gt,Rt)|0,c=c+Math.imul(W,ne)|0,A=A+Math.imul(W,Bt)|0,A=A+Math.imul(N,ne)|0,R=R+Math.imul(N,Bt)|0,c=c+Math.imul(L,ce)|0,A=A+Math.imul(L,It)|0,A=A+Math.imul(j,ce)|0,R=R+Math.imul(j,It)|0;var Se=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Se>>>26)|0,Se&=67108863,c=Math.imul(Ht,Vt),A=Math.imul(Ht,yt),A=A+Math.imul(vt,Vt)|0,R=Math.imul(vt,yt),c=c+Math.imul(H,Gt)|0,A=A+Math.imul(H,St)|0,A=A+Math.imul(Z,Gt)|0,R=R+Math.imul(Z,St)|0,c=c+Math.imul(Jt,Qt)|0,A=A+Math.imul(Jt,xt)|0,A=A+Math.imul(F,Qt)|0,R=R+Math.imul(F,xt)|0,c=c+Math.imul(Zt,te)|0,A=A+Math.imul(Zt,Et)|0,A=A+Math.imul(_t,te)|0,R=R+Math.imul(_t,Et)|0,c=c+Math.imul(Wt,ee)|0,A=A+Math.imul(Wt,At)|0,A=A+Math.imul(wt,ee)|0,R=R+Math.imul(wt,At)|0,c=c+Math.imul(Kt,re)|0,A=A+Math.imul(Kt,kt)|0,A=A+Math.imul(mt,re)|0,R=R+Math.imul(mt,kt)|0,c=c+Math.imul(K,ie)|0,A=A+Math.imul(K,Rt)|0,A=A+Math.imul(J,ie)|0,R=R+Math.imul(J,Rt)|0,c=c+Math.imul(jt,ne)|0,A=A+Math.imul(jt,Bt)|0,A=A+Math.imul(gt,ne)|0,R=R+Math.imul(gt,Bt)|0,c=c+Math.imul(W,ce)|0,A=A+Math.imul(W,It)|0,A=A+Math.imul(N,ce)|0,R=R+Math.imul(N,It)|0,c=c+Math.imul(L,ae)|0,A=A+Math.imul(L,se)|0,A=A+Math.imul(j,ae)|0,R=R+Math.imul(j,se)|0;var xe=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(xe>>>26)|0,xe&=67108863,c=Math.imul(Ht,Gt),A=Math.imul(Ht,St),A=A+Math.imul(vt,Gt)|0,R=Math.imul(vt,St),c=c+Math.imul(H,Qt)|0,A=A+Math.imul(H,xt)|0,A=A+Math.imul(Z,Qt)|0,R=R+Math.imul(Z,xt)|0,c=c+Math.imul(Jt,te)|0,A=A+Math.imul(Jt,Et)|0,A=A+Math.imul(F,te)|0,R=R+Math.imul(F,Et)|0,c=c+Math.imul(Zt,ee)|0,A=A+Math.imul(Zt,At)|0,A=A+Math.imul(_t,ee)|0,R=R+Math.imul(_t,At)|0,c=c+Math.imul(Wt,re)|0,A=A+Math.imul(Wt,kt)|0,A=A+Math.imul(wt,re)|0,R=R+Math.imul(wt,kt)|0,c=c+Math.imul(Kt,ie)|0,A=A+Math.imul(Kt,Rt)|0,A=A+Math.imul(mt,ie)|0,R=R+Math.imul(mt,Rt)|0,c=c+Math.imul(K,ne)|0,A=A+Math.imul(K,Bt)|0,A=A+Math.imul(J,ne)|0,R=R+Math.imul(J,Bt)|0,c=c+Math.imul(jt,ce)|0,A=A+Math.imul(jt,It)|0,A=A+Math.imul(gt,ce)|0,R=R+Math.imul(gt,It)|0,c=c+Math.imul(W,ae)|0,A=A+Math.imul(W,se)|0,A=A+Math.imul(N,ae)|0,R=R+Math.imul(N,se)|0;var Ee=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,c=Math.imul(Ht,Qt),A=Math.imul(Ht,xt),A=A+Math.imul(vt,Qt)|0,R=Math.imul(vt,xt),c=c+Math.imul(H,te)|0,A=A+Math.imul(H,Et)|0,A=A+Math.imul(Z,te)|0,R=R+Math.imul(Z,Et)|0,c=c+Math.imul(Jt,ee)|0,A=A+Math.imul(Jt,At)|0,A=A+Math.imul(F,ee)|0,R=R+Math.imul(F,At)|0,c=c+Math.imul(Zt,re)|0,A=A+Math.imul(Zt,kt)|0,A=A+Math.imul(_t,re)|0,R=R+Math.imul(_t,kt)|0,c=c+Math.imul(Wt,ie)|0,A=A+Math.imul(Wt,Rt)|0,A=A+Math.imul(wt,ie)|0,R=R+Math.imul(wt,Rt)|0,c=c+Math.imul(Kt,ne)|0,A=A+Math.imul(Kt,Bt)|0,A=A+Math.imul(mt,ne)|0,R=R+Math.imul(mt,Bt)|0,c=c+Math.imul(K,ce)|0,A=A+Math.imul(K,It)|0,A=A+Math.imul(J,ce)|0,R=R+Math.imul(J,It)|0,c=c+Math.imul(jt,ae)|0,A=A+Math.imul(jt,se)|0,A=A+Math.imul(gt,ae)|0,R=R+Math.imul(gt,se)|0;var Ae=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,c=Math.imul(Ht,te),A=Math.imul(Ht,Et),A=A+Math.imul(vt,te)|0,R=Math.imul(vt,Et),c=c+Math.imul(H,ee)|0,A=A+Math.imul(H,At)|0,A=A+Math.imul(Z,ee)|0,R=R+Math.imul(Z,At)|0,c=c+Math.imul(Jt,re)|0,A=A+Math.imul(Jt,kt)|0,A=A+Math.imul(F,re)|0,R=R+Math.imul(F,kt)|0,c=c+Math.imul(Zt,ie)|0,A=A+Math.imul(Zt,Rt)|0,A=A+Math.imul(_t,ie)|0,R=R+Math.imul(_t,Rt)|0,c=c+Math.imul(Wt,ne)|0,A=A+Math.imul(Wt,Bt)|0,A=A+Math.imul(wt,ne)|0,R=R+Math.imul(wt,Bt)|0,c=c+Math.imul(Kt,ce)|0,A=A+Math.imul(Kt,It)|0,A=A+Math.imul(mt,ce)|0,R=R+Math.imul(mt,It)|0,c=c+Math.imul(K,ae)|0,A=A+Math.imul(K,se)|0,A=A+Math.imul(J,ae)|0,R=R+Math.imul(J,se)|0;var ke=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(ke>>>26)|0,ke&=67108863,c=Math.imul(Ht,ee),A=Math.imul(Ht,At),A=A+Math.imul(vt,ee)|0,R=Math.imul(vt,At),c=c+Math.imul(H,re)|0,A=A+Math.imul(H,kt)|0,A=A+Math.imul(Z,re)|0,R=R+Math.imul(Z,kt)|0,c=c+Math.imul(Jt,ie)|0,A=A+Math.imul(Jt,Rt)|0,A=A+Math.imul(F,ie)|0,R=R+Math.imul(F,Rt)|0,c=c+Math.imul(Zt,ne)|0,A=A+Math.imul(Zt,Bt)|0,A=A+Math.imul(_t,ne)|0,R=R+Math.imul(_t,Bt)|0,c=c+Math.imul(Wt,ce)|0,A=A+Math.imul(Wt,It)|0,A=A+Math.imul(wt,ce)|0,R=R+Math.imul(wt,It)|0,c=c+Math.imul(Kt,ae)|0,A=A+Math.imul(Kt,se)|0,A=A+Math.imul(mt,ae)|0,R=R+Math.imul(mt,se)|0;var Re=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Re>>>26)|0,Re&=67108863,c=Math.imul(Ht,re),A=Math.imul(Ht,kt),A=A+Math.imul(vt,re)|0,R=Math.imul(vt,kt),c=c+Math.imul(H,ie)|0,A=A+Math.imul(H,Rt)|0,A=A+Math.imul(Z,ie)|0,R=R+Math.imul(Z,Rt)|0,c=c+Math.imul(Jt,ne)|0,A=A+Math.imul(Jt,Bt)|0,A=A+Math.imul(F,ne)|0,R=R+Math.imul(F,Bt)|0,c=c+Math.imul(Zt,ce)|0,A=A+Math.imul(Zt,It)|0,A=A+Math.imul(_t,ce)|0,R=R+Math.imul(_t,It)|0,c=c+Math.imul(Wt,ae)|0,A=A+Math.imul(Wt,se)|0,A=A+Math.imul(wt,ae)|0,R=R+Math.imul(wt,se)|0;var Be=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Be>>>26)|0,Be&=67108863,c=Math.imul(Ht,ie),A=Math.imul(Ht,Rt),A=A+Math.imul(vt,ie)|0,R=Math.imul(vt,Rt),c=c+Math.imul(H,ne)|0,A=A+Math.imul(H,Bt)|0,A=A+Math.imul(Z,ne)|0,R=R+Math.imul(Z,Bt)|0,c=c+Math.imul(Jt,ce)|0,A=A+Math.imul(Jt,It)|0,A=A+Math.imul(F,ce)|0,R=R+Math.imul(F,It)|0,c=c+Math.imul(Zt,ae)|0,A=A+Math.imul(Zt,se)|0,A=A+Math.imul(_t,ae)|0,R=R+Math.imul(_t,se)|0;var Te=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Te>>>26)|0,Te&=67108863,c=Math.imul(Ht,ne),A=Math.imul(Ht,Bt),A=A+Math.imul(vt,ne)|0,R=Math.imul(vt,Bt),c=c+Math.imul(H,ce)|0,A=A+Math.imul(H,It)|0,A=A+Math.imul(Z,ce)|0,R=R+Math.imul(Z,It)|0,c=c+Math.imul(Jt,ae)|0,A=A+Math.imul(Jt,se)|0,A=A+Math.imul(F,ae)|0,R=R+Math.imul(F,se)|0;var $e=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+($e>>>26)|0,$e&=67108863,c=Math.imul(Ht,ce),A=Math.imul(Ht,It),A=A+Math.imul(vt,ce)|0,R=Math.imul(vt,It),c=c+Math.imul(H,ae)|0,A=A+Math.imul(H,se)|0,A=A+Math.imul(Z,ae)|0,R=R+Math.imul(Z,se)|0;var Ya=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Ya>>>26)|0,Ya&=67108863,c=Math.imul(Ht,ae),A=Math.imul(Ht,se),A=A+Math.imul(vt,ae)|0,R=Math.imul(vt,se);var Qa=(e+c|0)+((A&8191)<<13)|0;return e=(R+(A>>>13)|0)+(Qa>>>26)|0,Qa&=67108863,l[0]=me,l[1]=ve,l[2]=ge,l[3]=be,l[4]=ye,l[5]=we,l[6]=Me,l[7]=_e,l[8]=Se,l[9]=xe,l[10]=Ee,l[11]=Ae,l[12]=ke,l[13]=Re,l[14]=Be,l[15]=Te,l[16]=$e,l[17]=Ya,l[18]=Qa,e!==0&&(l[19]=e,f.length++),f};Math.imul||(T=B);function C(r,o,h){h.negative=o.negative^r.negative,h.length=r.length+o.length;for(var f=0,v=0,w=0;w<h.length-1;w++){var l=v;v=0;for(var e=f&67108863,c=Math.min(w,o.length-1),A=Math.max(0,w-r.length+1);A<=c;A++){var R=w-A,$=r.words[R]|0,L=o.words[A]|0,j=$*L,pt=j&67108863;l=l+(j/67108864|0)|0,pt=pt+e|0,e=pt&67108863,l=l+(pt>>>26)|0,v+=l>>>26,l&=67108863}h.words[w]=e,f=l,l=v}return f!==0?h.words[w]=f:h.length--,h._strip()}function P(r,o,h){return C(r,o,h)}n.prototype.mulTo=function(o,h){var f,v=(this||Y).length+o.length;return(this||Y).length===10&&o.length===10?f=T(this||Y,o,h):v<63?f=B(this||Y,o,h):v<1024?f=C(this||Y,o,h):f=P(this||Y,o,h),f},n.prototype.mul=function(o){var h=new n(null);return h.words=new Array((this||Y).length+o.length),this.mulTo(o,h)},n.prototype.mulf=function(o){var h=new n(null);return h.words=new Array((this||Y).length+o.length),P(this||Y,o,h)},n.prototype.imul=function(o){return this.clone().mulTo(o,this||Y)},n.prototype.imuln=function(o){var h=o<0;h&&(o=-o),a(typeof o=="number"),a(o<67108864);for(var f=0,v=0;v<(this||Y).length;v++){var w=((this||Y).words[v]|0)*o,l=(w&67108863)+(f&67108863);f>>=26,f+=w/67108864|0,f+=l>>>26,(this||Y).words[v]=l&67108863}return f!==0&&((this||Y).words[v]=f,(this||Y).length++),h?this.ineg():this||Y},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this||Y)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var h=k(o);if(h.length===0)return new n(1);for(var f=this||Y,v=0;v<h.length&&h[v]===0;v++,f=f.sqr());if(++v<h.length)for(var w=f.sqr();v<h.length;v++,w=w.sqr())h[v]!==0&&(f=f.mul(w));return f},n.prototype.iushln=function(o){a(typeof o=="number"&&o>=0);var h=o%26,f=(o-h)/26,v=67108863>>>26-h<<26-h,w;if(h!==0){var l=0;for(w=0;w<(this||Y).length;w++){var e=(this||Y).words[w]&v,c=((this||Y).words[w]|0)-e<<h;(this||Y).words[w]=c|l,l=e>>>26-h}l&&((this||Y).words[w]=l,(this||Y).length++)}if(f!==0){for(w=(this||Y).length-1;w>=0;w--)(this||Y).words[w+f]=(this||Y).words[w];for(w=0;w<f;w++)(this||Y).words[w]=0;(this||Y).length+=f}return this._strip()},n.prototype.ishln=function(o){return a((this||Y).negative===0),this.iushln(o)},n.prototype.iushrn=function(o,h,f){a(typeof o=="number"&&o>=0);var v;h?v=(h-h%26)/26:v=0;var w=o%26,l=Math.min((o-w)/26,(this||Y).length),e=67108863^67108863>>>w<<w,c=f;if(v-=l,v=Math.max(0,v),c){for(var A=0;A<l;A++)c.words[A]=(this||Y).words[A];c.length=l}if(l!==0)if((this||Y).length>l)for((this||Y).length-=l,A=0;A<(this||Y).length;A++)(this||Y).words[A]=(this||Y).words[A+l];else(this||Y).words[0]=0,(this||Y).length=1;var R=0;for(A=(this||Y).length-1;A>=0&&(R!==0||A>=v);A--){var $=(this||Y).words[A]|0;(this||Y).words[A]=R<<26-w|$>>>w,R=$&e}return c&&R!==0&&(c.words[c.length++]=R),(this||Y).length===0&&((this||Y).words[0]=0,(this||Y).length=1),this._strip()},n.prototype.ishrn=function(o,h,f){return a((this||Y).negative===0),this.iushrn(o,h,f)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){a(typeof o=="number"&&o>=0);var h=o%26,f=(o-h)/26,v=1<<h;if((this||Y).length<=f)return!1;var w=(this||Y).words[f];return!!(w&v)},n.prototype.imaskn=function(o){a(typeof o=="number"&&o>=0);var h=o%26,f=(o-h)/26;if(a((this||Y).negative===0,"imaskn works only with positive numbers"),(this||Y).length<=f)return this||Y;if(h!==0&&f++,(this||Y).length=Math.min(f,(this||Y).length),h!==0){var v=67108863^67108863>>>h<<h;(this||Y).words[(this||Y).length-1]&=v}return this._strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return a(typeof o=="number"),a(o<67108864),o<0?this.isubn(-o):(this||Y).negative!==0?(this||Y).length===1&&((this||Y).words[0]|0)<=o?((this||Y).words[0]=o-((this||Y).words[0]|0),(this||Y).negative=0,this||Y):((this||Y).negative=0,this.isubn(o),(this||Y).negative=1,this||Y):this._iaddn(o)},n.prototype._iaddn=function(o){(this||Y).words[0]+=o;for(var h=0;h<(this||Y).length&&(this||Y).words[h]>=67108864;h++)(this||Y).words[h]-=67108864,h===(this||Y).length-1?(this||Y).words[h+1]=1:(this||Y).words[h+1]++;return(this||Y).length=Math.max((this||Y).length,h+1),this||Y},n.prototype.isubn=function(o){if(a(typeof o=="number"),a(o<67108864),o<0)return this.iaddn(-o);if((this||Y).negative!==0)return(this||Y).negative=0,this.iaddn(o),(this||Y).negative=1,this||Y;if((this||Y).words[0]-=o,(this||Y).length===1&&(this||Y).words[0]<0)(this||Y).words[0]=-(this||Y).words[0],(this||Y).negative=1;else for(var h=0;h<(this||Y).length&&(this||Y).words[h]<0;h++)(this||Y).words[h]+=67108864,(this||Y).words[h+1]-=1;return this._strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return(this||Y).negative=0,this||Y},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,h,f){var v=o.length+f,w;this._expand(v);var l,e=0;for(w=0;w<o.length;w++){l=((this||Y).words[w+f]|0)+e;var c=(o.words[w]|0)*h;l-=c&67108863,e=(l>>26)-(c/67108864|0),(this||Y).words[w+f]=l&67108863}for(;w<(this||Y).length-f;w++)l=((this||Y).words[w+f]|0)+e,e=l>>26,(this||Y).words[w+f]=l&67108863;if(e===0)return this._strip();for(a(e===-1),e=0,w=0;w<(this||Y).length;w++)l=-((this||Y).words[w]|0)+e,e=l>>26,(this||Y).words[w]=l&67108863;return(this||Y).negative=1,this._strip()},n.prototype._wordDiv=function(o,h){var f=(this||Y).length-o.length,v=this.clone(),w=o,l=w.words[w.length-1]|0,e=this._countBits(l);f=26-e,f!==0&&(w=w.ushln(f),v.iushln(f),l=w.words[w.length-1]|0);var c=v.length-w.length,A;if(h!=="mod"){A=new n(null),A.length=c+1,A.words=new Array(A.length);for(var R=0;R<A.length;R++)A.words[R]=0}var $=v.clone()._ishlnsubmul(w,1,c);$.negative===0&&(v=$,A&&(A.words[c]=1));for(var L=c-1;L>=0;L--){var j=(v.words[w.length+L]|0)*67108864+(v.words[w.length+L-1]|0);for(j=Math.min(j/l|0,67108863),v._ishlnsubmul(w,j,L);v.negative!==0;)j--,v.negative=0,v._ishlnsubmul(w,1,L),v.isZero()||(v.negative^=1);A&&(A.words[L]=j)}return A&&A._strip(),v._strip(),h!=="div"&&f!==0&&v.iushrn(f),{div:A||null,mod:v}},n.prototype.divmod=function(o,h,f){if(a(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var v,w,l;return(this||Y).negative!==0&&o.negative===0?(l=this.neg().divmod(o,h),h!=="mod"&&(v=l.div.neg()),h!=="div"&&(w=l.mod.neg(),f&&w.negative!==0&&w.iadd(o)),{div:v,mod:w}):(this||Y).negative===0&&o.negative!==0?(l=this.divmod(o.neg(),h),h!=="mod"&&(v=l.div.neg()),{div:v,mod:l.mod}):(this||Y).negative&o.negative?(l=this.neg().divmod(o.neg(),h),h!=="div"&&(w=l.mod.neg(),f&&w.negative!==0&&w.isub(o)),{div:l.div,mod:w}):o.length>(this||Y).length||this.cmp(o)<0?{div:new n(0),mod:this||Y}:o.length===1?h==="div"?{div:this.divn(o.words[0]),mod:null}:h==="mod"?{div:null,mod:new n(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modrn(o.words[0]))}:this._wordDiv(o,h)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var h=this.divmod(o);if(h.mod.isZero())return h.div;var f=h.div.negative!==0?h.mod.isub(o):h.mod,v=o.ushrn(1),w=o.andln(1),l=f.cmp(v);return l<0||w===1&&l===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},n.prototype.modrn=function(o){var h=o<0;h&&(o=-o),a(o<=67108863);for(var f=(1<<26)%o,v=0,w=(this||Y).length-1;w>=0;w--)v=(f*v+((this||Y).words[w]|0))%o;return h?-v:v},n.prototype.modn=function(o){return this.modrn(o)},n.prototype.idivn=function(o){var h=o<0;h&&(o=-o),a(o<=67108863);for(var f=0,v=(this||Y).length-1;v>=0;v--){var w=((this||Y).words[v]|0)+f*67108864;(this||Y).words[v]=w/o|0,f=w%o}return this._strip(),h?this.ineg():this||Y},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){a(o.negative===0),a(!o.isZero());var h=this||Y,f=o.clone();h.negative!==0?h=h.umod(o):h=h.clone();for(var v=new n(1),w=new n(0),l=new n(0),e=new n(1),c=0;h.isEven()&&f.isEven();)h.iushrn(1),f.iushrn(1),++c;for(var A=f.clone(),R=h.clone();!h.isZero();){for(var $=0,L=1;!(h.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(h.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(A),w.isub(R)),v.iushrn(1),w.iushrn(1);for(var j=0,pt=1;!(f.words[0]&pt)&&j<26;++j,pt<<=1);if(j>0)for(f.iushrn(j);j-- >0;)(l.isOdd()||e.isOdd())&&(l.iadd(A),e.isub(R)),l.iushrn(1),e.iushrn(1);h.cmp(f)>=0?(h.isub(f),v.isub(l),w.isub(e)):(f.isub(h),l.isub(v),e.isub(w))}return{a:l,b:e,gcd:f.iushln(c)}},n.prototype._invmp=function(o){a(o.negative===0),a(!o.isZero());var h=this||Y,f=o.clone();h.negative!==0?h=h.umod(o):h=h.clone();for(var v=new n(1),w=new n(0),l=f.clone();h.cmpn(1)>0&&f.cmpn(1)>0;){for(var e=0,c=1;!(h.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(h.iushrn(e);e-- >0;)v.isOdd()&&v.iadd(l),v.iushrn(1);for(var A=0,R=1;!(f.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(f.iushrn(A);A-- >0;)w.isOdd()&&w.iadd(l),w.iushrn(1);h.cmp(f)>=0?(h.isub(f),v.isub(w)):(f.isub(h),w.isub(v))}var $;return h.cmpn(1)===0?$=v:$=w,$.cmpn(0)<0&&$.iadd(o),$},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var h=this.clone(),f=o.clone();h.negative=0,f.negative=0;for(var v=0;h.isEven()&&f.isEven();v++)h.iushrn(1),f.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;f.isEven();)f.iushrn(1);var w=h.cmp(f);if(w<0){var l=h;h=f,f=l}else if(w===0||f.cmpn(1)===0)break;h.isub(f)}while(!0);return f.iushln(v)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return((this||Y).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Y).words[0]&1)===1},n.prototype.andln=function(o){return(this||Y).words[0]&o},n.prototype.bincn=function(o){a(typeof o=="number");var h=o%26,f=(o-h)/26,v=1<<h;if((this||Y).length<=f)return this._expand(f+1),(this||Y).words[f]|=v,this||Y;for(var w=v,l=f;w!==0&&l<(this||Y).length;l++){var e=(this||Y).words[l]|0;e+=w,w=e>>>26,e&=67108863,(this||Y).words[l]=e}return w!==0&&((this||Y).words[l]=w,(this||Y).length++),this||Y},n.prototype.isZero=function(){return(this||Y).length===1&&(this||Y).words[0]===0},n.prototype.cmpn=function(o){var h=o<0;if((this||Y).negative!==0&&!h)return-1;if((this||Y).negative===0&&h)return 1;this._strip();var f;if((this||Y).length>1)f=1;else{h&&(o=-o),a(o<=67108863,"Number is too big");var v=(this||Y).words[0]|0;f=v===o?0:v<o?-1:1}return(this||Y).negative!==0?-f|0:f},n.prototype.cmp=function(o){if((this||Y).negative!==0&&o.negative===0)return-1;if((this||Y).negative===0&&o.negative!==0)return 1;var h=this.ucmp(o);return(this||Y).negative!==0?-h|0:h},n.prototype.ucmp=function(o){if((this||Y).length>o.length)return 1;if((this||Y).length<o.length)return-1;for(var h=0,f=(this||Y).length-1;f>=0;f--){var v=(this||Y).words[f]|0,w=o.words[f]|0;if(v!==w){v<w?h=-1:v>w&&(h=1);break}}return h},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new d(o)},n.prototype.toRed=function(o){return a(!(this||Y).red,"Already a number in reduction context"),a((this||Y).negative===0,"red works only with positives"),o.convertTo(this||Y)._forceRed(o)},n.prototype.fromRed=function(){return a((this||Y).red,"fromRed works only with numbers in reduction context"),(this||Y).red.convertFrom(this||Y)},n.prototype._forceRed=function(o){return(this||Y).red=o,this||Y},n.prototype.forceRed=function(o){return a(!(this||Y).red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return a((this||Y).red,"redAdd works only with red numbers"),(this||Y).red.add(this||Y,o)},n.prototype.redIAdd=function(o){return a((this||Y).red,"redIAdd works only with red numbers"),(this||Y).red.iadd(this||Y,o)},n.prototype.redSub=function(o){return a((this||Y).red,"redSub works only with red numbers"),(this||Y).red.sub(this||Y,o)},n.prototype.redISub=function(o){return a((this||Y).red,"redISub works only with red numbers"),(this||Y).red.isub(this||Y,o)},n.prototype.redShl=function(o){return a((this||Y).red,"redShl works only with red numbers"),(this||Y).red.shl(this||Y,o)},n.prototype.redMul=function(o){return a((this||Y).red,"redMul works only with red numbers"),(this||Y).red._verify2(this||Y,o),(this||Y).red.mul(this||Y,o)},n.prototype.redIMul=function(o){return a((this||Y).red,"redMul works only with red numbers"),(this||Y).red._verify2(this||Y,o),(this||Y).red.imul(this||Y,o)},n.prototype.redSqr=function(){return a((this||Y).red,"redSqr works only with red numbers"),(this||Y).red._verify1(this||Y),(this||Y).red.sqr(this||Y)},n.prototype.redISqr=function(){return a((this||Y).red,"redISqr works only with red numbers"),(this||Y).red._verify1(this||Y),(this||Y).red.isqr(this||Y)},n.prototype.redSqrt=function(){return a((this||Y).red,"redSqrt works only with red numbers"),(this||Y).red._verify1(this||Y),(this||Y).red.sqrt(this||Y)},n.prototype.redInvm=function(){return a((this||Y).red,"redInvm works only with red numbers"),(this||Y).red._verify1(this||Y),(this||Y).red.invm(this||Y)},n.prototype.redNeg=function(){return a((this||Y).red,"redNeg works only with red numbers"),(this||Y).red._verify1(this||Y),(this||Y).red.neg(this||Y)},n.prototype.redPow=function(o){return a((this||Y).red&&!o.red,"redPow(normalNum)"),(this||Y).red._verify1(this||Y),(this||Y).red.pow(this||Y,o)};var G={k256:null,p224:null,p192:null,p25519:null};function U(r,o){(this||Y).name=r,(this||Y).p=new n(o,16),(this||Y).n=(this||Y).p.bitLength(),(this||Y).k=new n(1).iushln((this||Y).n).isub((this||Y).p),(this||Y).tmp=this._tmp()}U.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil((this||Y).n/13)),o},U.prototype.ireduce=function(o){var h=o,f;do this.split(h,(this||Y).tmp),h=this.imulK(h),h=h.iadd((this||Y).tmp),f=h.bitLength();while(f>(this||Y).n);var v=f<(this||Y).n?-1:h.ucmp((this||Y).p);return v===0?(h.words[0]=0,h.length=1):v>0?h.isub((this||Y).p):h.strip!==void 0?h.strip():h._strip(),h},U.prototype.split=function(o,h){o.iushrn((this||Y).n,0,h)},U.prototype.imulK=function(o){return o.imul((this||Y).k)};function V(){U.call(this||Y,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(V,U),V.prototype.split=function(o,h){for(var f=4194303,v=Math.min(o.length,9),w=0;w<v;w++)h.words[w]=o.words[w];if(h.length=v,o.length<=9){o.words[0]=0,o.length=1;return}var l=o.words[9];for(h.words[h.length++]=l&f,w=10;w<o.length;w++){var e=o.words[w]|0;o.words[w-10]=(e&f)<<4|l>>>22,l=e}l>>>=22,o.words[w-10]=l,l===0&&o.length>10?o.length-=10:o.length-=9},V.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var h=0,f=0;f<o.length;f++){var v=o.words[f]|0;h+=v*977,o.words[f]=h&67108863,h=v*64+(h/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function I(){U.call(this||Y,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(I,U);function D(){U.call(this||Y,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(D,U);function z(){U.call(this||Y,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(z,U),z.prototype.imulK=function(o){for(var h=0,f=0;f<o.length;f++){var v=(o.words[f]|0)*19+h,w=v&67108863;v>>>=26,o.words[f]=w,h=v}return h!==0&&(o.words[o.length++]=h),o},n._prime=function(o){if(G[o])return G[o];var h;if(o==="k256")h=new V;else if(o==="p224")h=new I;else if(o==="p192")h=new D;else if(o==="p25519")h=new z;else throw new Error("Unknown prime "+o);return G[o]=h,h};function d(r){if(typeof r=="string"){var o=n._prime(r);(this||Y).m=o.p,(this||Y).prime=o}else a(r.gtn(1),"modulus must be greater than 1"),(this||Y).m=r,(this||Y).prime=null}d.prototype._verify1=function(o){a(o.negative===0,"red works only with positives"),a(o.red,"red works only with red numbers")},d.prototype._verify2=function(o,h){a((o.negative|h.negative)===0,"red works only with positives"),a(o.red&&o.red===h.red,"red works only with red numbers")},d.prototype.imod=function(o){return(this||Y).prime?(this||Y).prime.ireduce(o)._forceRed(this||Y):(b(o,o.umod((this||Y).m)._forceRed(this||Y)),o)},d.prototype.neg=function(o){return o.isZero()?o.clone():(this||Y).m.sub(o)._forceRed(this||Y)},d.prototype.add=function(o,h){this._verify2(o,h);var f=o.add(h);return f.cmp((this||Y).m)>=0&&f.isub((this||Y).m),f._forceRed(this||Y)},d.prototype.iadd=function(o,h){this._verify2(o,h);var f=o.iadd(h);return f.cmp((this||Y).m)>=0&&f.isub((this||Y).m),f},d.prototype.sub=function(o,h){this._verify2(o,h);var f=o.sub(h);return f.cmpn(0)<0&&f.iadd((this||Y).m),f._forceRed(this||Y)},d.prototype.isub=function(o,h){this._verify2(o,h);var f=o.isub(h);return f.cmpn(0)<0&&f.iadd((this||Y).m),f},d.prototype.shl=function(o,h){return this._verify1(o),this.imod(o.ushln(h))},d.prototype.imul=function(o,h){return this._verify2(o,h),this.imod(o.imul(h))},d.prototype.mul=function(o,h){return this._verify2(o,h),this.imod(o.mul(h))},d.prototype.isqr=function(o){return this.imul(o,o.clone())},d.prototype.sqr=function(o){return this.mul(o,o)},d.prototype.sqrt=function(o){if(o.isZero())return o.clone();var h=(this||Y).m.andln(3);if(a(h%2===1),h===3){var f=(this||Y).m.add(new n(1)).iushrn(2);return this.pow(o,f)}for(var v=(this||Y).m.subn(1),w=0;!v.isZero()&&v.andln(1)===0;)w++,v.iushrn(1);a(!v.isZero());var l=new n(1).toRed(this||Y),e=l.redNeg(),c=(this||Y).m.subn(1).iushrn(1),A=(this||Y).m.bitLength();for(A=new n(2*A*A).toRed(this||Y);this.pow(A,c).cmp(e)!==0;)A.redIAdd(e);for(var R=this.pow(A,v),$=this.pow(o,v.addn(1).iushrn(1)),L=this.pow(o,v),j=w;L.cmp(l)!==0;){for(var pt=L,W=0;pt.cmp(l)!==0;W++)pt=pt.redSqr();a(W<j);var N=this.pow(R,new n(1).iushln(j-W-1));$=$.redMul(N),R=N.redSqr(),L=L.redMul(R),j=W}return $},d.prototype.invm=function(o){var h=o._invmp((this||Y).m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},d.prototype.pow=function(o,h){if(h.isZero())return new n(1).toRed(this||Y);if(h.cmpn(1)===0)return o.clone();var f=4,v=new Array(1<<f);v[0]=new n(1).toRed(this||Y),v[1]=o;for(var w=2;w<v.length;w++)v[w]=this.mul(v[w-1],o);var l=v[0],e=0,c=0,A=h.bitLength()%26;for(A===0&&(A=26),w=h.length-1;w>=0;w--){for(var R=h.words[w],$=A-1;$>=0;$--){var L=R>>$&1;if(l!==v[0]&&(l=this.sqr(l)),L===0&&e===0){c=0;continue}e<<=1,e|=L,c++,!(c!==f&&(w!==0||$!==0))&&(l=this.mul(l,v[e]),c=0,e=0)}A=26}return l},d.prototype.convertTo=function(o){var h=o.umod((this||Y).m);return h===o?h.clone():h},d.prototype.convertFrom=function(o){var h=o.clone();return h.red=null,h},n.mont=function(o){return new t(o)};function t(r){d.call(this||Y,r),(this||Y).shift=(this||Y).m.bitLength(),(this||Y).shift%26!==0&&((this||Y).shift+=26-(this||Y).shift%26),(this||Y).r=new n(1).iushln((this||Y).shift),(this||Y).r2=this.imod((this||Y).r.sqr()),(this||Y).rinv=(this||Y).r._invmp((this||Y).m),(this||Y).minv=(this||Y).rinv.mul((this||Y).r).isubn(1).div((this||Y).m),(this||Y).minv=(this||Y).minv.umod((this||Y).r),(this||Y).minv=(this||Y).r.sub((this||Y).minv)}u(t,d),t.prototype.convertTo=function(o){return this.imod(o.ushln((this||Y).shift))},t.prototype.convertFrom=function(o){var h=this.imod(o.mul((this||Y).rinv));return h.red=null,h},t.prototype.imul=function(o,h){if(o.isZero()||h.isZero())return o.words[0]=0,o.length=1,o;var f=o.imul(h),v=f.maskn((this||Y).shift).mul((this||Y).minv).imaskn((this||Y).shift).mul((this||Y).m),w=f.isub(v).iushrn((this||Y).shift),l=w;return w.cmp((this||Y).m)>=0?l=w.isub((this||Y).m):w.cmpn(0)<0&&(l=w.iadd((this||Y).m)),l._forceRed(this||Y)},t.prototype.mul=function(o,h){if(o.isZero()||h.isZero())return new n(0)._forceRed(this||Y);var f=o.mul(h),v=f.maskn((this||Y).shift).mul((this||Y).minv).imaskn((this||Y).shift).mul((this||Y).m),w=f.isub(v).iushrn((this||Y).shift),l=w;return w.cmp((this||Y).m)>=0?l=w.isub((this||Y).m):w.cmpn(0)<0&&(l=w.iadd((this||Y).m)),l._forceRed(this||Y)},t.prototype.invm=function(o){var h=this.imod(o._invmp((this||Y).m).mul((this||Y).r2));return h._forceRed(this||Y)}}(Cv,ok)),Cv.exports}var Pv={},IM=!1;function Pb(){if(IM)return Pv;IM=!0;var i=Pe.Buffer,s=Cb(),a=Kh();function u(m){var y=n(m),M=y.toRed(s.mont(m.modulus)).redPow(new s(m.publicExponent)).fromRed();return{blinder:M,unblinder:y.invm(m.modulus)}}function n(m){var y=m.modulus.byteLength(),M;do M=new s(a(y));while(M.cmp(m.modulus)>=0||!M.umod(m.prime1)||!M.umod(m.prime2));return M}function p(m,y){var M=u(y),b=y.modulus.byteLength(),g=new s(m).mul(M.blinder).umod(y.modulus),S=g.toRed(s.mont(y.prime1)),_=g.toRed(s.mont(y.prime2)),x=y.coefficient,E=y.prime1,k=y.prime2,B=S.redPow(y.exponent1).fromRed(),T=_.redPow(y.exponent2).fromRed(),C=B.isub(T).imul(x).umod(E).imul(k);return T.iadd(C).imul(M.unblinder).umod(y.modulus).toArrayLike(i,"be",b)}return p.getr=n,Pv=p,Pv}var Pz={_args:[["elliptic@6.5.4","C:\\Users\\guybe\\Projects\\rollup-plugin-jspm"]],_from:"elliptic@6.5.4",_id:"elliptic@6.5.4",_inBundle:!1,_integrity:"sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",_location:"/@jspm/core/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.5.4",name:"elliptic",escapedName:"elliptic",rawSpec:"6.5.4",saveSpec:null,fetchSpec:"6.5.4"},_requiredBy:["/@jspm/core/browserify-sign","/@jspm/core/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",_spec:"6.5.4",_where:"C:\\Users\\guybe\\Projects\\rollup-plugin-jspm",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},description:"EC cryptography",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.5.4"},ak={},CM=!1,Dv={exports:ak},nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function ra(){return CM||(CM=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||nt).negative=0,(this||nt).words=null,(this||nt).length=0,(this||nt).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Pe.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||nt).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||nt).negative=1,t=-t),t<67108864?((this||nt).words=[t&67108863],(this||nt).length=1):t<4503599627370496?((this||nt).words=[t&67108863,t/67108864&67108863],(this||nt).length=2):(a(t<9007199254740992),(this||nt).words=[t&67108863,t/67108864&67108863,1],(this||nt).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||nt).words=[0],(this||nt).length=1,this||nt;(this||nt).length=Math.ceil(t.length/3),(this||nt).words=new Array((this||nt).length);for(var h=0;h<(this||nt).length;h++)(this||nt).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||nt).words[f]|=v<<w&67108863,(this||nt).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||nt).words[f]|=v<<w&67108863,(this||nt).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||nt).length=Math.ceil((t.length-r)/6),(this||nt).words=new Array((this||nt).length);for(var h=0;h<(this||nt).length;h++)(this||nt).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||nt).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||nt).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||nt).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||nt).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||nt).words=[0],(this||nt).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||nt).words[0]+e<67108864?(this||nt).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||nt).words[0]+e<67108864?(this||nt).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||nt).length);for(var r=0;r<(this||nt).length;r++)t.words[r]=(this||nt).words[r];t.length=(this||nt).length,t.negative=(this||nt).negative,t.red=(this||nt).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||nt).length<t;)(this||nt).words[(this||nt).length++]=0;return this||nt},n.prototype.strip=function(){for(;(this||nt).length>1&&(this||nt).words[(this||nt).length-1]===0;)(this||nt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||nt).length===1&&(this||nt).words[0]===0&&((this||nt).negative=0),this||nt},n.prototype.inspect=function(){return((this||nt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||nt).length;v++){var w=(this||nt).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||nt).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||nt).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||nt).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||nt).words[0];return(this||nt).length===2?t+=(this||nt).words[1]*67108864:(this||nt).length===3&&(this||nt).words[2]===1?t+=4503599627370496+(this||nt).words[1]*67108864:(this||nt).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||nt).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||nt).words[(this||nt).length-1],r=this._countBits(t);return((this||nt).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||nt).length;r++){var o=this._zeroBits((this||nt).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||nt).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||nt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||nt).negative^=1),this||nt},n.prototype.iuor=function(t){for(;(this||nt).length<t.length;)(this||nt).words[(this||nt).length++]=0;for(var r=0;r<t.length;r++)(this||nt).words[r]=(this||nt).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||nt).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||nt).length>t.length?this.clone().ior(t):t.clone().ior(this||nt)},n.prototype.uor=function(t){return(this||nt).length>t.length?this.clone().iuor(t):t.clone().iuor(this||nt)},n.prototype.iuand=function(t){var r;(this||nt).length>t.length?r=t:r=this||nt;for(var o=0;o<r.length;o++)(this||nt).words[o]=(this||nt).words[o]&t.words[o];return(this||nt).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||nt).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||nt).length>t.length?this.clone().iand(t):t.clone().iand(this||nt)},n.prototype.uand=function(t){return(this||nt).length>t.length?this.clone().iuand(t):t.clone().iuand(this||nt)},n.prototype.iuxor=function(t){var r,o;(this||nt).length>t.length?(r=this||nt,o=t):(r=t,o=this||nt);for(var h=0;h<o.length;h++)(this||nt).words[h]=r.words[h]^o.words[h];if((this||nt)!==r)for(;h<r.length;h++)(this||nt).words[h]=r.words[h];return(this||nt).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||nt).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||nt).length>t.length?this.clone().ixor(t):t.clone().ixor(this||nt)},n.prototype.uxor=function(t){return(this||nt).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||nt)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||nt).words[h]=~(this||nt).words[h]&67108863;return o>0&&((this||nt).words[h]=~(this||nt).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||nt).words[o]=(this||nt).words[o]|1<<h:(this||nt).words[o]=(this||nt).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||nt).negative!==0&&t.negative===0)return(this||nt).negative=0,r=this.isub(t),(this||nt).negative^=1,this._normSign();if((this||nt).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||nt).length>t.length?(o=this||nt,h=t):(o=t,h=this||nt);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||nt).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||nt).words[v]=r&67108863,f=r>>>26;if((this||nt).length=o.length,f!==0)(this||nt).words[(this||nt).length]=f,(this||nt).length++;else if(o!==(this||nt))for(;v<o.length;v++)(this||nt).words[v]=o.words[v];return this||nt},n.prototype.add=function(t){var r;return t.negative!==0&&(this||nt).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||nt).negative!==0?((this||nt).negative=0,r=t.sub(this||nt),(this||nt).negative=1,r):(this||nt).length>t.length?this.clone().iadd(t):t.clone().iadd(this||nt)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||nt).negative!==0)return(this||nt).negative=0,this.iadd(t),(this||nt).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||nt).negative=0,(this||nt).length=1,(this||nt).words[0]=0,this||nt;var h,f;o>0?(h=this||nt,f=t):(h=t,f=this||nt);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||nt).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||nt).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||nt))for(;w<h.length;w++)(this||nt).words[w]=h.words[w];return(this||nt).length=Math.max((this||nt).length,w),h!==(this||nt)&&((this||nt).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||nt).length+t.length;return(this||nt).length===10&&t.length===10?o=E(this||nt,t,r):h<63?o=x(this||nt,t,r):h<1024?o=k(this||nt,t,r):o=B(this||nt,t,r),o};function T(d,t){(this||nt).x=d,(this||nt).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||nt).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||nt).length+t.length),B(this||nt,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||nt)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||nt).length;o++){var h=((this||nt).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||nt).words[o]=f&67108863}return r!==0&&((this||nt).words[o]=r,(this||nt).length++),this||nt},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||nt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||nt,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||nt).length;f++){var w=(this||nt).words[f]&h,l=((this||nt).words[f]|0)-w<<r;(this||nt).words[f]=l|v,v=w>>>26-r}v&&((this||nt).words[f]=v,(this||nt).length++)}if(o!==0){for(f=(this||nt).length-1;f>=0;f--)(this||nt).words[f+o]=(this||nt).words[f];for(f=0;f<o;f++)(this||nt).words[f]=0;(this||nt).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||nt).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||nt).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||nt).words[e];l.length=v}if(v!==0)if((this||nt).length>v)for((this||nt).length-=v,e=0;e<(this||nt).length;e++)(this||nt).words[e]=(this||nt).words[e+v];else(this||nt).words[0]=0,(this||nt).length=1;var c=0;for(e=(this||nt).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||nt).words[e]|0;(this||nt).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||nt).length===0&&((this||nt).words[0]=0,(this||nt).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||nt).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||nt).length<=o)return!1;var f=(this||nt).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||nt).negative===0,"imaskn works only with positive numbers"),(this||nt).length<=o)return this||nt;if(r!==0&&o++,(this||nt).length=Math.min(o,(this||nt).length),r!==0){var h=67108863^67108863>>>r<<r;(this||nt).words[(this||nt).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||nt).negative!==0?(this||nt).length===1&&((this||nt).words[0]|0)<t?((this||nt).words[0]=t-((this||nt).words[0]|0),(this||nt).negative=0,this||nt):((this||nt).negative=0,this.isubn(t),(this||nt).negative=1,this||nt):this._iaddn(t)},n.prototype._iaddn=function(t){(this||nt).words[0]+=t;for(var r=0;r<(this||nt).length&&(this||nt).words[r]>=67108864;r++)(this||nt).words[r]-=67108864,r===(this||nt).length-1?(this||nt).words[r+1]=1:(this||nt).words[r+1]++;return(this||nt).length=Math.max((this||nt).length,r+1),this||nt},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||nt).negative!==0)return(this||nt).negative=0,this.iaddn(t),(this||nt).negative=1,this||nt;if((this||nt).words[0]-=t,(this||nt).length===1&&(this||nt).words[0]<0)(this||nt).words[0]=-(this||nt).words[0],(this||nt).negative=1;else for(var r=0;r<(this||nt).length&&(this||nt).words[r]<0;r++)(this||nt).words[r]+=67108864,(this||nt).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||nt).negative=0,this||nt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||nt).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||nt).words[f+o]=v&67108863}for(;f<(this||nt).length-o;f++)v=((this||nt).words[f+o]|0)+w,w=v>>26,(this||nt).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||nt).length;f++)v=-((this||nt).words[f]|0)+w,w=v>>26,(this||nt).words[f]=v&67108863;return(this||nt).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||nt).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||nt).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||nt).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||nt).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||nt).length||this.cmp(t)<0?{div:new n(0),mod:this||nt}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||nt).length-1;h>=0;h--)o=(r*o+((this||nt).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||nt).length-1;o>=0;o--){var h=((this||nt).words[o]|0)+r*67108864;(this||nt).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||nt,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||nt,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||nt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||nt).words[0]&1)===1},n.prototype.andln=function(t){return(this||nt).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||nt).length<=o)return this._expand(o+1),(this||nt).words[o]|=h,this||nt;for(var f=h,v=o;f!==0&&v<(this||nt).length;v++){var w=(this||nt).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||nt).words[v]=w}return f!==0&&((this||nt).words[v]=f,(this||nt).length++),this||nt},n.prototype.isZero=function(){return(this||nt).length===1&&(this||nt).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||nt).negative!==0&&!r)return-1;if((this||nt).negative===0&&r)return 1;this.strip();var o;if((this||nt).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||nt).words[0]|0;o=h===t?0:h<t?-1:1}return(this||nt).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||nt).negative!==0&&t.negative===0)return-1;if((this||nt).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||nt).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||nt).length>t.length)return 1;if((this||nt).length<t.length)return-1;for(var r=0,o=(this||nt).length-1;o>=0;o--){var h=(this||nt).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||nt).red,"Already a number in reduction context"),a((this||nt).negative===0,"red works only with positives"),t.convertTo(this||nt)._forceRed(t)},n.prototype.fromRed=function(){return a((this||nt).red,"fromRed works only with numbers in reduction context"),(this||nt).red.convertFrom(this||nt)},n.prototype._forceRed=function(t){return(this||nt).red=t,this||nt},n.prototype.forceRed=function(t){return a(!(this||nt).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||nt).red,"redAdd works only with red numbers"),(this||nt).red.add(this||nt,t)},n.prototype.redIAdd=function(t){return a((this||nt).red,"redIAdd works only with red numbers"),(this||nt).red.iadd(this||nt,t)},n.prototype.redSub=function(t){return a((this||nt).red,"redSub works only with red numbers"),(this||nt).red.sub(this||nt,t)},n.prototype.redISub=function(t){return a((this||nt).red,"redISub works only with red numbers"),(this||nt).red.isub(this||nt,t)},n.prototype.redShl=function(t){return a((this||nt).red,"redShl works only with red numbers"),(this||nt).red.shl(this||nt,t)},n.prototype.redMul=function(t){return a((this||nt).red,"redMul works only with red numbers"),(this||nt).red._verify2(this||nt,t),(this||nt).red.mul(this||nt,t)},n.prototype.redIMul=function(t){return a((this||nt).red,"redMul works only with red numbers"),(this||nt).red._verify2(this||nt,t),(this||nt).red.imul(this||nt,t)},n.prototype.redSqr=function(){return a((this||nt).red,"redSqr works only with red numbers"),(this||nt).red._verify1(this||nt),(this||nt).red.sqr(this||nt)},n.prototype.redISqr=function(){return a((this||nt).red,"redISqr works only with red numbers"),(this||nt).red._verify1(this||nt),(this||nt).red.isqr(this||nt)},n.prototype.redSqrt=function(){return a((this||nt).red,"redSqrt works only with red numbers"),(this||nt).red._verify1(this||nt),(this||nt).red.sqrt(this||nt)},n.prototype.redInvm=function(){return a((this||nt).red,"redInvm works only with red numbers"),(this||nt).red._verify1(this||nt),(this||nt).red.invm(this||nt)},n.prototype.redNeg=function(){return a((this||nt).red,"redNeg works only with red numbers"),(this||nt).red._verify1(this||nt),(this||nt).red.neg(this||nt)},n.prototype.redPow=function(t){return a((this||nt).red&&!t.red,"redPow(normalNum)"),(this||nt).red._verify1(this||nt),(this||nt).red.pow(this||nt,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||nt).name=d,(this||nt).p=new n(t,16),(this||nt).n=(this||nt).p.bitLength(),(this||nt).k=new n(1).iushln((this||nt).n).isub((this||nt).p),(this||nt).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||nt).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||nt).tmp),r=this.imulK(r),r=r.iadd((this||nt).tmp),o=r.bitLength();while(o>(this||nt).n);var h=o<(this||nt).n?-1:r.ucmp((this||nt).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||nt).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||nt).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||nt).k)};function G(){P.call(this||nt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||nt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||nt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||nt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||nt).m=t.p,(this||nt).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||nt).m=d,(this||nt).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||nt).prime?(this||nt).prime.ireduce(t)._forceRed(this||nt):t.umod((this||nt).m)._forceRed(this||nt)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||nt).m.sub(t)._forceRed(this||nt)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||nt).m)>=0&&o.isub((this||nt).m),o._forceRed(this||nt)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||nt).m)>=0&&o.isub((this||nt).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||nt).m),o._forceRed(this||nt)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||nt).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||nt).m.andln(3);if(a(r%2===1),r===3){var o=(this||nt).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||nt).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||nt),w=v.redNeg(),l=(this||nt).m.subn(1).iushrn(1),e=(this||nt).m.bitLength();for(e=new n(2*e*e).toRed(this||nt);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||nt).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||nt);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||nt),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||nt).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||nt,d),(this||nt).shift=(this||nt).m.bitLength(),(this||nt).shift%26!==0&&((this||nt).shift+=26-(this||nt).shift%26),(this||nt).r=new n(1).iushln((this||nt).shift),(this||nt).r2=this.imod((this||nt).r.sqr()),(this||nt).rinv=(this||nt).r._invmp((this||nt).m),(this||nt).minv=(this||nt).rinv.mul((this||nt).r).isubn(1).div((this||nt).m),(this||nt).minv=(this||nt).minv.umod((this||nt).r),(this||nt).minv=(this||nt).r.sub((this||nt).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||nt).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||nt).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||nt).shift).mul((this||nt).minv).imaskn((this||nt).shift).mul((this||nt).m),f=o.isub(h).iushrn((this||nt).shift),v=f;return f.cmp((this||nt).m)>=0?v=f.isub((this||nt).m):f.cmpn(0)<0&&(v=f.iadd((this||nt).m)),v._forceRed(this||nt)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||nt);var o=t.mul(r),h=o.maskn((this||nt).shift).mul((this||nt).minv).imaskn((this||nt).shift).mul((this||nt).m),f=o.isub(h).iushrn((this||nt).shift),v=f;return f.cmp((this||nt).m)>=0?v=f.isub((this||nt).m):f.cmpn(0)<0&&(v=f.iadd((this||nt).m)),v._forceRed(this||nt)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||nt).m).mul((this||nt).r2));return r._forceRed(this||nt)}}(Dv,ak)),Dv.exports}var Lv={},PM=!1;function sk(){if(PM)return Lv;PM=!0;var i=Lv;function s(n,p){if(Array.isArray(n))return n.slice();if(!n)return[];var m=[];if(typeof n!="string"){for(var y=0;y<n.length;y++)m[y]=n[y]|0;return m}if(p==="hex"){n=n.replace(/[^a-z0-9]+/ig,""),n.length%2!==0&&(n="0"+n);for(var y=0;y<n.length;y+=2)m.push(parseInt(n[y]+n[y+1],16))}else for(var y=0;y<n.length;y++){var M=n.charCodeAt(y),b=M>>8,g=M&255;b?m.push(b,g):m.push(g)}return m}i.toArray=s;function a(n){return n.length===1?"0"+n:n}i.zero2=a;function u(n){for(var p="",m=0;m<n.length;m++)p+=a(n[m].toString(16));return p}return i.toHex=u,i.encode=function(p,m){return m==="hex"?u(p):p},Lv}var Ov={},DM=!1;function Ln(){if(DM)return Ov;DM=!0;var i=Ov,s=ra(),a=Io(),u=sk();i.assert=a,i.toArray=u.toArray,i.zero2=u.zero2,i.toHex=u.toHex,i.encode=u.encode;function n(b,g,S){var _=new Array(Math.max(b.bitLength(),S)+1);_.fill(0);for(var x=1<<g+1,E=b.clone(),k=0;k<_.length;k++){var B,T=E.andln(x-1);E.isOdd()?(T>(x>>1)-1?B=(x>>1)-T:B=T,E.isubn(B)):B=0,_[k]=B,E.iushrn(1)}return _}i.getNAF=n;function p(b,g){var S=[[],[]];b=b.clone(),g=g.clone();for(var _=0,x=0,E;b.cmpn(-_)>0||g.cmpn(-x)>0;){var k=b.andln(3)+_&3,B=g.andln(3)+x&3;k===3&&(k=-1),B===3&&(B=-1);var T;k&1?(E=b.andln(7)+_&7,(E===3||E===5)&&B===2?T=-k:T=k):T=0,S[0].push(T);var C;B&1?(E=g.andln(7)+x&7,(E===3||E===5)&&k===2?C=-B:C=B):C=0,S[1].push(C),2*_===T+1&&(_=1-_),2*x===C+1&&(x=1-x),b.iushrn(1),g.iushrn(1)}return S}i.getJSF=p;function m(b,g,S){var _="_"+g;b.prototype[g]=function(){return this[_]!==void 0?this[_]:this[_]=S.call(this)}}i.cachedProperty=m;function y(b){return typeof b=="string"?i.toArray(b,"hex"):b}i.parseBytes=y;function M(b){return new s(b,"hex","le")}return i.intFromLE=M,Ov}var Nv={},LM=!1;function _c(){if(LM)return Nv;LM=!0;var i=ra(),s=Ln(),a=s.getNAF,u=s.getJSF,n=s.assert;function p(y,M){this.type=y,this.p=new i(M.p,16),this.red=M.prime?i.red(M.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=M.n&&new i(M.n,16),this.g=M.g&&this.pointFromJSON(M.g,M.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var b=this.n&&this.p.div(this.n);!b||b.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Nv=p,p.prototype.point=function(){throw new Error("Not implemented")},p.prototype.validate=function(){throw new Error("Not implemented")},p.prototype._fixedNafMul=function(M,b){n(M.precomputed);var g=M._getDoubles(),S=a(b,1,this._bitLength),_=(1<<g.step+1)-(g.step%2===0?2:1);_/=3;var x=[],E,k;for(E=0;E<S.length;E+=g.step){k=0;for(var B=E+g.step-1;B>=E;B--)k=(k<<1)+S[B];x.push(k)}for(var T=this.jpoint(null,null,null),C=this.jpoint(null,null,null),P=_;P>0;P--){for(E=0;E<x.length;E++)k=x[E],k===P?C=C.mixedAdd(g.points[E]):k===-P&&(C=C.mixedAdd(g.points[E].neg()));T=T.add(C)}return T.toP()},p.prototype._wnafMul=function(M,b){var g=4,S=M._getNAFPoints(g);g=S.wnd;for(var _=S.points,x=a(b,g,this._bitLength),E=this.jpoint(null,null,null),k=x.length-1;k>=0;k--){for(var B=0;k>=0&&x[k]===0;k--)B++;if(k>=0&&B++,E=E.dblp(B),k<0)break;var T=x[k];n(T!==0),M.type==="affine"?T>0?E=E.mixedAdd(_[T-1>>1]):E=E.mixedAdd(_[-T-1>>1].neg()):T>0?E=E.add(_[T-1>>1]):E=E.add(_[-T-1>>1].neg())}return M.type==="affine"?E.toP():E},p.prototype._wnafMulAdd=function(M,b,g,S,_){var x=this._wnafT1,E=this._wnafT2,k=this._wnafT3,B=0,T,C,P;for(T=0;T<S;T++){P=b[T];var G=P._getNAFPoints(M);x[T]=G.wnd,E[T]=G.points}for(T=S-1;T>=1;T-=2){var U=T-1,V=T;if(x[U]!==1||x[V]!==1){k[U]=a(g[U],x[U],this._bitLength),k[V]=a(g[V],x[V],this._bitLength),B=Math.max(k[U].length,B),B=Math.max(k[V].length,B);continue}var I=[b[U],null,null,b[V]];b[U].y.cmp(b[V].y)===0?(I[1]=b[U].add(b[V]),I[2]=b[U].toJ().mixedAdd(b[V].neg())):b[U].y.cmp(b[V].y.redNeg())===0?(I[1]=b[U].toJ().mixedAdd(b[V]),I[2]=b[U].add(b[V].neg())):(I[1]=b[U].toJ().mixedAdd(b[V]),I[2]=b[U].toJ().mixedAdd(b[V].neg()));var D=[-3,-1,-5,-7,0,7,5,1,3],z=u(g[U],g[V]);for(B=Math.max(z[0].length,B),k[U]=new Array(B),k[V]=new Array(B),C=0;C<B;C++){var d=z[0][C]|0,t=z[1][C]|0;k[U][C]=D[(d+1)*3+(t+1)],k[V][C]=0,E[U]=I}}var r=this.jpoint(null,null,null),o=this._wnafT4;for(T=B;T>=0;T--){for(var h=0;T>=0;){var f=!0;for(C=0;C<S;C++)o[C]=k[C][T]|0,o[C]!==0&&(f=!1);if(!f)break;h++,T--}if(T>=0&&h++,r=r.dblp(h),T<0)break;for(C=0;C<S;C++){var v=o[C];v!==0&&(v>0?P=E[C][v-1>>1]:v<0&&(P=E[C][-v-1>>1].neg()),P.type==="affine"?r=r.mixedAdd(P):r=r.add(P))}}for(T=0;T<S;T++)E[T]=null;return _?r:r.toP()};function m(y,M){this.curve=y,this.type=M,this.precomputed=null}return p.BasePoint=m,m.prototype.eq=function(){throw new Error("Not implemented")},m.prototype.validate=function(){return this.curve.validate(this)},p.prototype.decodePoint=function(M,b){M=s.toArray(M,b);var g=this.p.byteLength();if((M[0]===4||M[0]===6||M[0]===7)&&M.length-1===2*g){M[0]===6?n(M[M.length-1]%2===0):M[0]===7&&n(M[M.length-1]%2===1);var S=this.point(M.slice(1,1+g),M.slice(1+g,1+2*g));return S}else if((M[0]===2||M[0]===3)&&M.length-1===g)return this.pointFromX(M.slice(1,1+g),M[0]===3);throw new Error("Unknown point format")},m.prototype.encodeCompressed=function(M){return this.encode(M,!0)},m.prototype._encode=function(M){var b=this.curve.p.byteLength(),g=this.getX().toArray("be",b);return M?[this.getY().isEven()?2:3].concat(g):[4].concat(g,this.getY().toArray("be",b))},m.prototype.encode=function(M,b){return s.encode(this._encode(b),M)},m.prototype.precompute=function(M){if(this.precomputed)return this;var b={doubles:null,naf:null,beta:null};return b.naf=this._getNAFPoints(8),b.doubles=this._getDoubles(4,M),b.beta=this._getBeta(),this.precomputed=b,this},m.prototype._hasDoubles=function(M){if(!this.precomputed)return!1;var b=this.precomputed.doubles;return b?b.points.length>=Math.ceil((M.bitLength()+1)/b.step):!1},m.prototype._getDoubles=function(M,b){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var g=[this],S=this,_=0;_<b;_+=M){for(var x=0;x<M;x++)S=S.dbl();g.push(S)}return{step:M,points:g}},m.prototype._getNAFPoints=function(M){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var b=[this],g=(1<<M)-1,S=g===1?null:this.dbl(),_=1;_<g;_++)b[_]=b[_-1].add(S);return{wnd:M,points:b}},m.prototype._getBeta=function(){return null},m.prototype.dblp=function(M){for(var b=this,g=0;g<M;g++)b=b.dbl();return b},Nv}var qv={},OM=!1;function Dz(){if(OM)return qv;OM=!0;var i=Ln(),s=ra(),a=Ye(),u=_c(),n=i.assert;function p(M){u.call(this,"short",M),this.a=new s(M.a,16).toRed(this.red),this.b=new s(M.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(M),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}a(p,u),qv=p,p.prototype._getEndomorphism=function(b){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var g,S;if(b.beta)g=new s(b.beta,16).toRed(this.red);else{var _=this._getEndoRoots(this.p);g=_[0].cmp(_[1])<0?_[0]:_[1],g=g.toRed(this.red)}if(b.lambda)S=new s(b.lambda,16);else{var x=this._getEndoRoots(this.n);this.g.mul(x[0]).x.cmp(this.g.x.redMul(g))===0?S=x[0]:(S=x[1],n(this.g.mul(S).x.cmp(this.g.x.redMul(g))===0))}var E;return b.basis?E=b.basis.map(function(k){return{a:new s(k.a,16),b:new s(k.b,16)}}):E=this._getEndoBasis(S),{beta:g,lambda:S,basis:E}}},p.prototype._getEndoRoots=function(b){var g=b===this.p?this.red:s.mont(b),S=new s(2).toRed(g).redInvm(),_=S.redNeg(),x=new s(3).toRed(g).redNeg().redSqrt().redMul(S),E=_.redAdd(x).fromRed(),k=_.redSub(x).fromRed();return[E,k]},p.prototype._getEndoBasis=function(b){for(var g=this.n.ushrn(Math.floor(this.n.bitLength()/2)),S=b,_=this.n.clone(),x=new s(1),E=new s(0),k=new s(0),B=new s(1),T,C,P,G,U,V,I,D=0,z,d;S.cmpn(0)!==0;){var t=_.div(S);z=_.sub(t.mul(S)),d=k.sub(t.mul(x));var r=B.sub(t.mul(E));if(!P&&z.cmp(g)<0)T=I.neg(),C=x,P=z.neg(),G=d;else if(P&&++D===2)break;I=z,_=S,S=z,k=x,x=d,B=E,E=r}U=z.neg(),V=d;var o=P.sqr().add(G.sqr()),h=U.sqr().add(V.sqr());return h.cmp(o)>=0&&(U=T,V=C),P.negative&&(P=P.neg(),G=G.neg()),U.negative&&(U=U.neg(),V=V.neg()),[{a:P,b:G},{a:U,b:V}]},p.prototype._endoSplit=function(b){var g=this.endo.basis,S=g[0],_=g[1],x=_.b.mul(b).divRound(this.n),E=S.b.neg().mul(b).divRound(this.n),k=x.mul(S.a),B=E.mul(_.a),T=x.mul(S.b),C=E.mul(_.b),P=b.sub(k).sub(B),G=T.add(C).neg();return{k1:P,k2:G}},p.prototype.pointFromX=function(b,g){b=new s(b,16),b.red||(b=b.toRed(this.red));var S=b.redSqr().redMul(b).redIAdd(b.redMul(this.a)).redIAdd(this.b),_=S.redSqrt();if(_.redSqr().redSub(S).cmp(this.zero)!==0)throw new Error("invalid point");var x=_.fromRed().isOdd();return(g&&!x||!g&&x)&&(_=_.redNeg()),this.point(b,_)},p.prototype.validate=function(b){if(b.inf)return!0;var g=b.x,S=b.y,_=this.a.redMul(g),x=g.redSqr().redMul(g).redIAdd(_).redIAdd(this.b);return S.redSqr().redISub(x).cmpn(0)===0},p.prototype._endoWnafMulAdd=function(b,g,S){for(var _=this._endoWnafT1,x=this._endoWnafT2,E=0;E<b.length;E++){var k=this._endoSplit(g[E]),B=b[E],T=B._getBeta();k.k1.negative&&(k.k1.ineg(),B=B.neg(!0)),k.k2.negative&&(k.k2.ineg(),T=T.neg(!0)),_[E*2]=B,_[E*2+1]=T,x[E*2]=k.k1,x[E*2+1]=k.k2}for(var C=this._wnafMulAdd(1,_,x,E*2,S),P=0;P<E*2;P++)_[P]=null,x[P]=null;return C};function m(M,b,g,S){u.BasePoint.call(this,M,"affine"),b===null&&g===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new s(b,16),this.y=new s(g,16),S&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}a(m,u.BasePoint),p.prototype.point=function(b,g,S){return new m(this,b,g,S)},p.prototype.pointFromJSON=function(b,g){return m.fromJSON(this,b,g)},m.prototype._getBeta=function(){if(this.curve.endo){var b=this.precomputed;if(b&&b.beta)return b.beta;var g=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(b){var S=this.curve,_=function(x){return S.point(x.x.redMul(S.endo.beta),x.y)};b.beta=g,g.precomputed={beta:null,naf:b.naf&&{wnd:b.naf.wnd,points:b.naf.points.map(_)},doubles:b.doubles&&{step:b.doubles.step,points:b.doubles.points.map(_)}}}return g}},m.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},m.fromJSON=function(b,g,S){typeof g=="string"&&(g=JSON.parse(g));var _=b.point(g[0],g[1],S);if(!g[2])return _;function x(k){return b.point(k[0],k[1],S)}var E=g[2];return _.precomputed={beta:null,doubles:E.doubles&&{step:E.doubles.step,points:[_].concat(E.doubles.points.map(x))},naf:E.naf&&{wnd:E.naf.wnd,points:[_].concat(E.naf.points.map(x))}},_},m.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},m.prototype.isInfinity=function(){return this.inf},m.prototype.add=function(b){if(this.inf)return b;if(b.inf)return this;if(this.eq(b))return this.dbl();if(this.neg().eq(b))return this.curve.point(null,null);if(this.x.cmp(b.x)===0)return this.curve.point(null,null);var g=this.y.redSub(b.y);g.cmpn(0)!==0&&(g=g.redMul(this.x.redSub(b.x).redInvm()));var S=g.redSqr().redISub(this.x).redISub(b.x),_=g.redMul(this.x.redSub(S)).redISub(this.y);return this.curve.point(S,_)},m.prototype.dbl=function(){if(this.inf)return this;var b=this.y.redAdd(this.y);if(b.cmpn(0)===0)return this.curve.point(null,null);var g=this.curve.a,S=this.x.redSqr(),_=b.redInvm(),x=S.redAdd(S).redIAdd(S).redIAdd(g).redMul(_),E=x.redSqr().redISub(this.x.redAdd(this.x)),k=x.redMul(this.x.redSub(E)).redISub(this.y);return this.curve.point(E,k)},m.prototype.getX=function(){return this.x.fromRed()},m.prototype.getY=function(){return this.y.fromRed()},m.prototype.mul=function(b){return b=new s(b,16),this.isInfinity()?this:this._hasDoubles(b)?this.curve._fixedNafMul(this,b):this.curve.endo?this.curve._endoWnafMulAdd([this],[b]):this.curve._wnafMul(this,b)},m.prototype.mulAdd=function(b,g,S){var _=[this,g],x=[b,S];return this.curve.endo?this.curve._endoWnafMulAdd(_,x):this.curve._wnafMulAdd(1,_,x,2)},m.prototype.jmulAdd=function(b,g,S){var _=[this,g],x=[b,S];return this.curve.endo?this.curve._endoWnafMulAdd(_,x,!0):this.curve._wnafMulAdd(1,_,x,2,!0)},m.prototype.eq=function(b){return this===b||this.inf===b.inf&&(this.inf||this.x.cmp(b.x)===0&&this.y.cmp(b.y)===0)},m.prototype.neg=function(b){if(this.inf)return this;var g=this.curve.point(this.x,this.y.redNeg());if(b&&this.precomputed){var S=this.precomputed,_=function(x){return x.neg()};g.precomputed={naf:S.naf&&{wnd:S.naf.wnd,points:S.naf.points.map(_)},doubles:S.doubles&&{step:S.doubles.step,points:S.doubles.points.map(_)}}}return g},m.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var b=this.curve.jpoint(this.x,this.y,this.curve.one);return b};function y(M,b,g,S){u.BasePoint.call(this,M,"jacobian"),b===null&&g===null&&S===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new s(0)):(this.x=new s(b,16),this.y=new s(g,16),this.z=new s(S,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return a(y,u.BasePoint),p.prototype.jpoint=function(b,g,S){return new y(this,b,g,S)},y.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var b=this.z.redInvm(),g=b.redSqr(),S=this.x.redMul(g),_=this.y.redMul(g).redMul(b);return this.curve.point(S,_)},y.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},y.prototype.add=function(b){if(this.isInfinity())return b;if(b.isInfinity())return this;var g=b.z.redSqr(),S=this.z.redSqr(),_=this.x.redMul(g),x=b.x.redMul(S),E=this.y.redMul(g.redMul(b.z)),k=b.y.redMul(S.redMul(this.z)),B=_.redSub(x),T=E.redSub(k);if(B.cmpn(0)===0)return T.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var C=B.redSqr(),P=C.redMul(B),G=_.redMul(C),U=T.redSqr().redIAdd(P).redISub(G).redISub(G),V=T.redMul(G.redISub(U)).redISub(E.redMul(P)),I=this.z.redMul(b.z).redMul(B);return this.curve.jpoint(U,V,I)},y.prototype.mixedAdd=function(b){if(this.isInfinity())return b.toJ();if(b.isInfinity())return this;var g=this.z.redSqr(),S=this.x,_=b.x.redMul(g),x=this.y,E=b.y.redMul(g).redMul(this.z),k=S.redSub(_),B=x.redSub(E);if(k.cmpn(0)===0)return B.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var T=k.redSqr(),C=T.redMul(k),P=S.redMul(T),G=B.redSqr().redIAdd(C).redISub(P).redISub(P),U=B.redMul(P.redISub(G)).redISub(x.redMul(C)),V=this.z.redMul(k);return this.curve.jpoint(G,U,V)},y.prototype.dblp=function(b){if(b===0)return this;if(this.isInfinity())return this;if(!b)return this.dbl();var g;if(this.curve.zeroA||this.curve.threeA){var S=this;for(g=0;g<b;g++)S=S.dbl();return S}var _=this.curve.a,x=this.curve.tinv,E=this.x,k=this.y,B=this.z,T=B.redSqr().redSqr(),C=k.redAdd(k);for(g=0;g<b;g++){var P=E.redSqr(),G=C.redSqr(),U=G.redSqr(),V=P.redAdd(P).redIAdd(P).redIAdd(_.redMul(T)),I=E.redMul(G),D=V.redSqr().redISub(I.redAdd(I)),z=I.redISub(D),d=V.redMul(z);d=d.redIAdd(d).redISub(U);var t=C.redMul(B);g+1<b&&(T=T.redMul(U)),E=D,B=t,C=d}return this.curve.jpoint(E,C.redMul(x),B)},y.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},y.prototype._zeroDbl=function(){var b,g,S;if(this.zOne){var _=this.x.redSqr(),x=this.y.redSqr(),E=x.redSqr(),k=this.x.redAdd(x).redSqr().redISub(_).redISub(E);k=k.redIAdd(k);var B=_.redAdd(_).redIAdd(_),T=B.redSqr().redISub(k).redISub(k),C=E.redIAdd(E);C=C.redIAdd(C),C=C.redIAdd(C),b=T,g=B.redMul(k.redISub(T)).redISub(C),S=this.y.redAdd(this.y)}else{var P=this.x.redSqr(),G=this.y.redSqr(),U=G.redSqr(),V=this.x.redAdd(G).redSqr().redISub(P).redISub(U);V=V.redIAdd(V);var I=P.redAdd(P).redIAdd(P),D=I.redSqr(),z=U.redIAdd(U);z=z.redIAdd(z),z=z.redIAdd(z),b=D.redISub(V).redISub(V),g=I.redMul(V.redISub(b)).redISub(z),S=this.y.redMul(this.z),S=S.redIAdd(S)}return this.curve.jpoint(b,g,S)},y.prototype._threeDbl=function(){var b,g,S;if(this.zOne){var _=this.x.redSqr(),x=this.y.redSqr(),E=x.redSqr(),k=this.x.redAdd(x).redSqr().redISub(_).redISub(E);k=k.redIAdd(k);var B=_.redAdd(_).redIAdd(_).redIAdd(this.curve.a),T=B.redSqr().redISub(k).redISub(k);b=T;var C=E.redIAdd(E);C=C.redIAdd(C),C=C.redIAdd(C),g=B.redMul(k.redISub(T)).redISub(C),S=this.y.redAdd(this.y)}else{var P=this.z.redSqr(),G=this.y.redSqr(),U=this.x.redMul(G),V=this.x.redSub(P).redMul(this.x.redAdd(P));V=V.redAdd(V).redIAdd(V);var I=U.redIAdd(U);I=I.redIAdd(I);var D=I.redAdd(I);b=V.redSqr().redISub(D),S=this.y.redAdd(this.z).redSqr().redISub(G).redISub(P);var z=G.redSqr();z=z.redIAdd(z),z=z.redIAdd(z),z=z.redIAdd(z),g=V.redMul(I.redISub(b)).redISub(z)}return this.curve.jpoint(b,g,S)},y.prototype._dbl=function(){var b=this.curve.a,g=this.x,S=this.y,_=this.z,x=_.redSqr().redSqr(),E=g.redSqr(),k=S.redSqr(),B=E.redAdd(E).redIAdd(E).redIAdd(b.redMul(x)),T=g.redAdd(g);T=T.redIAdd(T);var C=T.redMul(k),P=B.redSqr().redISub(C.redAdd(C)),G=C.redISub(P),U=k.redSqr();U=U.redIAdd(U),U=U.redIAdd(U),U=U.redIAdd(U);var V=B.redMul(G).redISub(U),I=S.redAdd(S).redMul(_);return this.curve.jpoint(P,V,I)},y.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var b=this.x.redSqr(),g=this.y.redSqr(),S=this.z.redSqr(),_=g.redSqr(),x=b.redAdd(b).redIAdd(b),E=x.redSqr(),k=this.x.redAdd(g).redSqr().redISub(b).redISub(_);k=k.redIAdd(k),k=k.redAdd(k).redIAdd(k),k=k.redISub(E);var B=k.redSqr(),T=_.redIAdd(_);T=T.redIAdd(T),T=T.redIAdd(T),T=T.redIAdd(T);var C=x.redIAdd(k).redSqr().redISub(E).redISub(B).redISub(T),P=g.redMul(C);P=P.redIAdd(P),P=P.redIAdd(P);var G=this.x.redMul(B).redISub(P);G=G.redIAdd(G),G=G.redIAdd(G);var U=this.y.redMul(C.redMul(T.redISub(C)).redISub(k.redMul(B)));U=U.redIAdd(U),U=U.redIAdd(U),U=U.redIAdd(U);var V=this.z.redAdd(k).redSqr().redISub(S).redISub(B);return this.curve.jpoint(G,U,V)},y.prototype.mul=function(b,g){return b=new s(b,g),this.curve._wnafMul(this,b)},y.prototype.eq=function(b){if(b.type==="affine")return this.eq(b.toJ());if(this===b)return!0;var g=this.z.redSqr(),S=b.z.redSqr();if(this.x.redMul(S).redISub(b.x.redMul(g)).cmpn(0)!==0)return!1;var _=g.redMul(this.z),x=S.redMul(b.z);return this.y.redMul(x).redISub(b.y.redMul(_)).cmpn(0)===0},y.prototype.eqXToP=function(b){var g=this.z.redSqr(),S=b.toRed(this.curve.red).redMul(g);if(this.x.cmp(S)===0)return!0;for(var _=b.clone(),x=this.curve.redN.redMul(g);;){if(_.iadd(this.curve.n),_.cmp(this.curve.p)>=0)return!1;if(S.redIAdd(x),this.x.cmp(S)===0)return!0}},y.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},y.prototype.isInfinity=function(){return this.z.cmpn(0)===0},qv}var zv={},NM=!1;function Lz(){if(NM)return zv;NM=!0;var i=ra(),s=Ye(),a=_c(),u=Ln();function n(m){a.call(this,"mont",m),this.a=new i(m.a,16).toRed(this.red),this.b=new i(m.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}s(n,a),zv=n,n.prototype.validate=function(y){var M=y.normalize().x,b=M.redSqr(),g=b.redMul(M).redAdd(b.redMul(this.a)).redAdd(M),S=g.redSqrt();return S.redSqr().cmp(g)===0};function p(m,y,M){a.BasePoint.call(this,m,"projective"),y===null&&M===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(y,16),this.z=new i(M,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return s(p,a.BasePoint),n.prototype.decodePoint=function(y,M){return this.point(u.toArray(y,M),1)},n.prototype.point=function(y,M){return new p(this,y,M)},n.prototype.pointFromJSON=function(y){return p.fromJSON(this,y)},p.prototype.precompute=function(){},p.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},p.fromJSON=function(y,M){return new p(y,M[0],M[1]||y.one)},p.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},p.prototype.isInfinity=function(){return this.z.cmpn(0)===0},p.prototype.dbl=function(){var y=this.x.redAdd(this.z),M=y.redSqr(),b=this.x.redSub(this.z),g=b.redSqr(),S=M.redSub(g),_=M.redMul(g),x=S.redMul(g.redAdd(this.curve.a24.redMul(S)));return this.curve.point(_,x)},p.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.diffAdd=function(y,M){var b=this.x.redAdd(this.z),g=this.x.redSub(this.z),S=y.x.redAdd(y.z),_=y.x.redSub(y.z),x=_.redMul(b),E=S.redMul(g),k=M.z.redMul(x.redAdd(E).redSqr()),B=M.x.redMul(x.redISub(E).redSqr());return this.curve.point(k,B)},p.prototype.mul=function(y){for(var M=y.clone(),b=this,g=this.curve.point(null,null),S=this,_=[];M.cmpn(0)!==0;M.iushrn(1))_.push(M.andln(1));for(var x=_.length-1;x>=0;x--)_[x]===0?(b=b.diffAdd(g,S),g=g.dbl()):(g=b.diffAdd(g,S),b=b.dbl());return g},p.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.eq=function(y){return this.getX().cmp(y.getX())===0},p.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},p.prototype.getX=function(){return this.normalize(),this.x.fromRed()},zv}var Uv={},qM=!1;function Oz(){if(qM)return Uv;qM=!0;var i=Ln(),s=ra(),a=Ye(),u=_c(),n=i.assert;function p(y){this.twisted=(y.a|0)!==1,this.mOneA=this.twisted&&(y.a|0)===-1,this.extended=this.mOneA,u.call(this,"edwards",y),this.a=new s(y.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new s(y.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new s(y.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),n(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(y.c|0)===1}a(p,u),Uv=p,p.prototype._mulA=function(M){return this.mOneA?M.redNeg():this.a.redMul(M)},p.prototype._mulC=function(M){return this.oneC?M:this.c.redMul(M)},p.prototype.jpoint=function(M,b,g,S){return this.point(M,b,g,S)},p.prototype.pointFromX=function(M,b){M=new s(M,16),M.red||(M=M.toRed(this.red));var g=M.redSqr(),S=this.c2.redSub(this.a.redMul(g)),_=this.one.redSub(this.c2.redMul(this.d).redMul(g)),x=S.redMul(_.redInvm()),E=x.redSqrt();if(E.redSqr().redSub(x).cmp(this.zero)!==0)throw new Error("invalid point");var k=E.fromRed().isOdd();return(b&&!k||!b&&k)&&(E=E.redNeg()),this.point(M,E)},p.prototype.pointFromY=function(M,b){M=new s(M,16),M.red||(M=M.toRed(this.red));var g=M.redSqr(),S=g.redSub(this.c2),_=g.redMul(this.d).redMul(this.c2).redSub(this.a),x=S.redMul(_.redInvm());if(x.cmp(this.zero)===0){if(b)throw new Error("invalid point");return this.point(this.zero,M)}var E=x.redSqrt();if(E.redSqr().redSub(x).cmp(this.zero)!==0)throw new Error("invalid point");return E.fromRed().isOdd()!==b&&(E=E.redNeg()),this.point(E,M)},p.prototype.validate=function(M){if(M.isInfinity())return!0;M.normalize();var b=M.x.redSqr(),g=M.y.redSqr(),S=b.redMul(this.a).redAdd(g),_=this.c2.redMul(this.one.redAdd(this.d.redMul(b).redMul(g)));return S.cmp(_)===0};function m(y,M,b,g,S){u.BasePoint.call(this,y,"projective"),M===null&&b===null&&g===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new s(M,16),this.y=new s(b,16),this.z=g?new s(g,16):this.curve.one,this.t=S&&new s(S,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return a(m,u.BasePoint),p.prototype.pointFromJSON=function(M){return m.fromJSON(this,M)},p.prototype.point=function(M,b,g,S){return new m(this,M,b,g,S)},m.fromJSON=function(M,b){return new m(M,b[0],b[1],b[2])},m.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},m.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},m.prototype._extDbl=function(){var M=this.x.redSqr(),b=this.y.redSqr(),g=this.z.redSqr();g=g.redIAdd(g);var S=this.curve._mulA(M),_=this.x.redAdd(this.y).redSqr().redISub(M).redISub(b),x=S.redAdd(b),E=x.redSub(g),k=S.redSub(b),B=_.redMul(E),T=x.redMul(k),C=_.redMul(k),P=E.redMul(x);return this.curve.point(B,T,P,C)},m.prototype._projDbl=function(){var M=this.x.redAdd(this.y).redSqr(),b=this.x.redSqr(),g=this.y.redSqr(),S,_,x,E,k,B;if(this.curve.twisted){E=this.curve._mulA(b);var T=E.redAdd(g);this.zOne?(S=M.redSub(b).redSub(g).redMul(T.redSub(this.curve.two)),_=T.redMul(E.redSub(g)),x=T.redSqr().redSub(T).redSub(T)):(k=this.z.redSqr(),B=T.redSub(k).redISub(k),S=M.redSub(b).redISub(g).redMul(B),_=T.redMul(E.redSub(g)),x=T.redMul(B))}else E=b.redAdd(g),k=this.curve._mulC(this.z).redSqr(),B=E.redSub(k).redSub(k),S=this.curve._mulC(M.redISub(E)).redMul(B),_=this.curve._mulC(E).redMul(b.redISub(g)),x=E.redMul(B);return this.curve.point(S,_,x)},m.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},m.prototype._extAdd=function(M){var b=this.y.redSub(this.x).redMul(M.y.redSub(M.x)),g=this.y.redAdd(this.x).redMul(M.y.redAdd(M.x)),S=this.t.redMul(this.curve.dd).redMul(M.t),_=this.z.redMul(M.z.redAdd(M.z)),x=g.redSub(b),E=_.redSub(S),k=_.redAdd(S),B=g.redAdd(b),T=x.redMul(E),C=k.redMul(B),P=x.redMul(B),G=E.redMul(k);return this.curve.point(T,C,G,P)},m.prototype._projAdd=function(M){var b=this.z.redMul(M.z),g=b.redSqr(),S=this.x.redMul(M.x),_=this.y.redMul(M.y),x=this.curve.d.redMul(S).redMul(_),E=g.redSub(x),k=g.redAdd(x),B=this.x.redAdd(this.y).redMul(M.x.redAdd(M.y)).redISub(S).redISub(_),T=b.redMul(E).redMul(B),C,P;return this.curve.twisted?(C=b.redMul(k).redMul(_.redSub(this.curve._mulA(S))),P=E.redMul(k)):(C=b.redMul(k).redMul(_.redSub(S)),P=this.curve._mulC(E).redMul(k)),this.curve.point(T,C,P)},m.prototype.add=function(M){return this.isInfinity()?M:M.isInfinity()?this:this.curve.extended?this._extAdd(M):this._projAdd(M)},m.prototype.mul=function(M){return this._hasDoubles(M)?this.curve._fixedNafMul(this,M):this.curve._wnafMul(this,M)},m.prototype.mulAdd=function(M,b,g){return this.curve._wnafMulAdd(1,[this,b],[M,g],2,!1)},m.prototype.jmulAdd=function(M,b,g){return this.curve._wnafMulAdd(1,[this,b],[M,g],2,!0)},m.prototype.normalize=function(){if(this.zOne)return this;var M=this.z.redInvm();return this.x=this.x.redMul(M),this.y=this.y.redMul(M),this.t&&(this.t=this.t.redMul(M)),this.z=this.curve.one,this.zOne=!0,this},m.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},m.prototype.getX=function(){return this.normalize(),this.x.fromRed()},m.prototype.getY=function(){return this.normalize(),this.y.fromRed()},m.prototype.eq=function(M){return this===M||this.getX().cmp(M.getX())===0&&this.getY().cmp(M.getY())===0},m.prototype.eqXToP=function(M){var b=M.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(b)===0)return!0;for(var g=M.clone(),S=this.curve.redN.redMul(this.z);;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)>=0)return!1;if(b.redIAdd(S),this.x.cmp(b)===0)return!0}},m.prototype.toP=m.prototype.normalize,m.prototype.mixedAdd=m.prototype.add,Uv}var Fv={},zM=!1;function hk(){if(zM)return Fv;zM=!0;var i=Fv;return i.base=_c(),i.short=Dz(),i.mont=Lz(),i.edwards=Oz(),Fv}var Sr={},UM=!1;function Sc(){if(UM)return Sr;UM=!0;var i=Io(),s=Ye();Sr.inherits=s;function a(r,o){return(r.charCodeAt(o)&64512)!==55296||o<0||o+1>=r.length?!1:(r.charCodeAt(o+1)&64512)===56320}function u(r,o){if(Array.isArray(r))return r.slice();if(!r)return[];var h=[];if(typeof r=="string")if(o){if(o==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),v=0;v<r.length;v+=2)h.push(parseInt(r[v]+r[v+1],16))}else for(var f=0,v=0;v<r.length;v++){var w=r.charCodeAt(v);w<128?h[f++]=w:w<2048?(h[f++]=w>>6|192,h[f++]=w&63|128):a(r,v)?(w=65536+((w&1023)<<10)+(r.charCodeAt(++v)&1023),h[f++]=w>>18|240,h[f++]=w>>12&63|128,h[f++]=w>>6&63|128,h[f++]=w&63|128):(h[f++]=w>>12|224,h[f++]=w>>6&63|128,h[f++]=w&63|128)}else for(v=0;v<r.length;v++)h[v]=r[v]|0;return h}Sr.toArray=u;function n(r){for(var o="",h=0;h<r.length;h++)o+=y(r[h].toString(16));return o}Sr.toHex=n;function p(r){var o=r>>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return o>>>0}Sr.htonl=p;function m(r,o){for(var h="",f=0;f<r.length;f++){var v=r[f];o==="little"&&(v=p(v)),h+=M(v.toString(16))}return h}Sr.toHex32=m;function y(r){return r.length===1?"0"+r:r}Sr.zero2=y;function M(r){return r.length===7?"0"+r:r.length===6?"00"+r:r.length===5?"000"+r:r.length===4?"0000"+r:r.length===3?"00000"+r:r.length===2?"000000"+r:r.length===1?"0000000"+r:r}Sr.zero8=M;function b(r,o,h,f){var v=h-o;i(v%4===0);for(var w=new Array(v/4),l=0,e=o;l<w.length;l++,e+=4){var c;f==="big"?c=r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3]:c=r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e],w[l]=c>>>0}return w}Sr.join32=b;function g(r,o){for(var h=new Array(r.length*4),f=0,v=0;f<r.length;f++,v+=4){var w=r[f];o==="big"?(h[v]=w>>>24,h[v+1]=w>>>16&255,h[v+2]=w>>>8&255,h[v+3]=w&255):(h[v+3]=w>>>24,h[v+2]=w>>>16&255,h[v+1]=w>>>8&255,h[v]=w&255)}return h}Sr.split32=g;function S(r,o){return r>>>o|r<<32-o}Sr.rotr32=S;function _(r,o){return r<<o|r>>>32-o}Sr.rotl32=_;function x(r,o){return r+o>>>0}Sr.sum32=x;function E(r,o,h){return r+o+h>>>0}Sr.sum32_3=E;function k(r,o,h,f){return r+o+h+f>>>0}Sr.sum32_4=k;function B(r,o,h,f,v){return r+o+h+f+v>>>0}Sr.sum32_5=B;function T(r,o,h,f){var v=r[o],w=r[o+1],l=f+w>>>0,e=(l<f?1:0)+h+v;r[o]=e>>>0,r[o+1]=l}Sr.sum64=T;function C(r,o,h,f){var v=o+f>>>0,w=(v<o?1:0)+r+h;return w>>>0}Sr.sum64_hi=C;function P(r,o,h,f){var v=o+f;return v>>>0}Sr.sum64_lo=P;function G(r,o,h,f,v,w,l,e){var c=0,A=o;A=A+f>>>0,c+=A<o?1:0,A=A+w>>>0,c+=A<w?1:0,A=A+e>>>0,c+=A<e?1:0;var R=r+h+v+l+c;return R>>>0}Sr.sum64_4_hi=G;function U(r,o,h,f,v,w,l,e){var c=o+f+w+e;return c>>>0}Sr.sum64_4_lo=U;function V(r,o,h,f,v,w,l,e,c,A){var R=0,$=o;$=$+f>>>0,R+=$<o?1:0,$=$+w>>>0,R+=$<w?1:0,$=$+e>>>0,R+=$<e?1:0,$=$+A>>>0,R+=$<A?1:0;var L=r+h+v+l+c+R;return L>>>0}Sr.sum64_5_hi=V;function I(r,o,h,f,v,w,l,e,c,A){var R=o+f+w+e+A;return R>>>0}Sr.sum64_5_lo=I;function D(r,o,h){var f=o<<32-h|r>>>h;return f>>>0}Sr.rotr64_hi=D;function z(r,o,h){var f=r<<32-h|o>>>h;return f>>>0}Sr.rotr64_lo=z;function d(r,o,h){return r>>>h}Sr.shr64_hi=d;function t(r,o,h){var f=r<<32-h|o>>>h;return f>>>0}return Sr.shr64_lo=t,Sr}var jv={},FM=!1;function fk(){if(FM)return jv;FM=!0;var i=Sc(),s=Io();function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return jv.BlockHash=a,a.prototype.update=function(n,p){if(n=i.toArray(n,p),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){n=this.pending;var m=n.length%this._delta8;this.pending=n.slice(n.length-m,n.length),this.pending.length===0&&(this.pending=null),n=i.join32(n,0,n.length-m,this.endian);for(var y=0;y<n.length;y+=this._delta32)this._update(n,y,y+this._delta32)}return this},a.prototype.digest=function(n){return this.update(this._pad()),s(this.pending===null),this._digest(n)},a.prototype._pad=function(){var n=this.pendingTotal,p=this._delta8,m=p-(n+this.padLength)%p,y=new Array(m+this.padLength);y[0]=128;for(var M=1;M<m;M++)y[M]=0;if(n<<=3,this.endian==="big"){for(var b=8;b<this.padLength;b++)y[M++]=0;y[M++]=0,y[M++]=0,y[M++]=0,y[M++]=0,y[M++]=n>>>24&255,y[M++]=n>>>16&255,y[M++]=n>>>8&255,y[M++]=n&255}else for(y[M++]=n&255,y[M++]=n>>>8&255,y[M++]=n>>>16&255,y[M++]=n>>>24&255,y[M++]=0,y[M++]=0,y[M++]=0,y[M++]=0,b=8;b<this.padLength;b++)y[M++]=0;return y},jv}var jM={},HM=!1;function Nz(){return HM||(HM=!0),jM}var Hv={},KM=!1;function qz(){if(KM)return Hv;KM=!0;var i=Sc(),s=fk(),a=i.rotl32,u=i.sum32,n=i.sum32_3,p=i.sum32_4,m=s.BlockHash;function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}i.inherits(y,m),Hv.ripemd160=y,y.blockSize=512,y.outSize=160,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(B,T){for(var C=this.h[0],P=this.h[1],G=this.h[2],U=this.h[3],V=this.h[4],I=C,D=P,z=G,d=U,t=V,r=0;r<80;r++){var o=u(a(p(C,M(r,P,G,U),B[S[r]+T],b(r)),x[r]),V);C=V,V=U,U=a(G,10),G=P,P=o,o=u(a(p(I,M(79-r,D,z,d),B[_[r]+T],g(r)),E[r]),t),I=t,t=d,d=a(z,10),z=D,D=o}o=n(this.h[1],G,d),this.h[1]=n(this.h[2],U,t),this.h[2]=n(this.h[3],V,I),this.h[3]=n(this.h[4],C,D),this.h[4]=n(this.h[0],P,z),this.h[0]=o},y.prototype._digest=function(B){return B==="hex"?i.toHex32(this.h,"little"):i.split32(this.h,"little")};function M(k,B,T,C){return k<=15?B^T^C:k<=31?B&T|~B&C:k<=47?(B|~T)^C:k<=63?B&C|T&~C:B^(T|~C)}function b(k){return k<=15?0:k<=31?1518500249:k<=47?1859775393:k<=63?2400959708:2840853838}function g(k){return k<=15?1352829926:k<=31?1548603684:k<=47?1836072691:k<=63?2053994217:0}var S=[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],_=[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],x=[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],E=[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];return Hv}var Kv={},GM=!1;function zz(){if(GM)return Kv;GM=!0;var i=Sc(),s=Io();function a(u,n,p){if(!(this instanceof a))return new a(u,n,p);this.Hash=u,this.blockSize=u.blockSize/8,this.outSize=u.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(n,p))}return Kv=a,a.prototype._init=function(n){n.length>this.blockSize&&(n=new this.Hash().update(n).digest()),s(n.length<=this.blockSize);for(var p=n.length;p<this.blockSize;p++)n.push(0);for(p=0;p<n.length;p++)n[p]^=54;for(this.inner=new this.Hash().update(n),p=0;p<n.length;p++)n[p]^=106;this.outer=new this.Hash().update(n)},a.prototype.update=function(n,p){return this.inner.update(n,p),this},a.prototype.digest=function(n){return this.outer.update(this.inner.digest()),this.outer.digest(n)},Kv}var Gv={},ZM=!1;function Db(){if(ZM)return Gv;ZM=!0;var i=Gv;return i.utils=Sc(),i.common=fk(),i.sha=Nz(),i.ripemd=qz(),i.hmac=zz(),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160,Gv}var Zv={},VM=!1;function Uz(){return VM||(VM=!0,Zv={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),Zv}var Vv={},WM=!1;function Lb(){if(WM)return Vv;WM=!0;var i=Vv,s=Db(),a=hk(),u=Ln(),n=u.assert;function p(M){M.type==="short"?this.curve=new a.short(M):M.type==="edwards"?this.curve=new a.edwards(M):this.curve=new a.mont(M),this.g=this.curve.g,this.n=this.curve.n,this.hash=M.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}i.PresetCurve=p;function m(M,b){Object.defineProperty(i,M,{configurable:!0,enumerable:!0,get:function(){var g=new p(b);return Object.defineProperty(i,M,{configurable:!0,enumerable:!0,value:g}),g}})}m("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),m("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),m("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),m("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),m("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),m("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),m("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var y;try{y=Uz()}catch{y=void 0}return m("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",y]}),Vv}var Wv={},XM=!1;function Fz(){if(XM)return Wv;XM=!0;var i=Db(),s=sk(),a=Io();function u(n){if(!(this instanceof u))return new u(n);this.hash=n.hash,this.predResist=!!n.predResist,this.outLen=this.hash.outSize,this.minEntropy=n.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var p=s.toArray(n.entropy,n.entropyEnc||"hex"),m=s.toArray(n.nonce,n.nonceEnc||"hex"),y=s.toArray(n.pers,n.persEnc||"hex");a(p.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(p,m,y)}return Wv=u,u.prototype._init=function(p,m,y){var M=p.concat(m).concat(y);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var b=0;b<this.V.length;b++)this.K[b]=0,this.V[b]=1;this._update(M),this._reseed=1,this.reseedInterval=281474976710656},u.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},u.prototype._update=function(p){var m=this._hmac().update(this.V).update([0]);p&&(m=m.update(p)),this.K=m.digest(),this.V=this._hmac().update(this.V).digest(),p&&(this.K=this._hmac().update(this.V).update([1]).update(p).digest(),this.V=this._hmac().update(this.V).digest())},u.prototype.reseed=function(p,m,y,M){typeof m!="string"&&(M=y,y=m,m=null),p=s.toArray(p,m),y=s.toArray(y,M),a(p.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(p.concat(y||[])),this._reseed=1},u.prototype.generate=function(p,m,y,M){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof m!="string"&&(M=y,y=m,m=null),y&&(y=s.toArray(y,M||"hex"),this._update(y));for(var b=[];b.length<p;)this.V=this._hmac().update(this.V).digest(),b=b.concat(this.V);var g=b.slice(0,p);return this._update(y),this._reseed++,s.encode(g,m)},Wv}var Xv={},JM=!1;function jz(){if(JM)return Xv;JM=!0;var i=ra(),s=Ln(),a=s.assert;function u(n,p){this.ec=n,this.priv=null,this.pub=null,p.priv&&this._importPrivate(p.priv,p.privEnc),p.pub&&this._importPublic(p.pub,p.pubEnc)}return Xv=u,u.fromPublic=function(p,m,y){return m instanceof u?m:new u(p,{pub:m,pubEnc:y})},u.fromPrivate=function(p,m,y){return m instanceof u?m:new u(p,{priv:m,privEnc:y})},u.prototype.validate=function(){var p=this.getPublic();return p.isInfinity()?{result:!1,reason:"Invalid public key"}:p.validate()?p.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},u.prototype.getPublic=function(p,m){return typeof p=="string"&&(m=p,p=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),m?this.pub.encode(m,p):this.pub},u.prototype.getPrivate=function(p){return p==="hex"?this.priv.toString(16,2):this.priv},u.prototype._importPrivate=function(p,m){this.priv=new i(p,m||16),this.priv=this.priv.umod(this.ec.curve.n)},u.prototype._importPublic=function(p,m){if(p.x||p.y){this.ec.curve.type==="mont"?a(p.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&a(p.x&&p.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(p.x,p.y);return}this.pub=this.ec.curve.decodePoint(p,m)},u.prototype.derive=function(p){return p.validate()||a(p.validate(),"public point not validated"),p.mul(this.priv).getX()},u.prototype.sign=function(p,m,y){return this.ec.sign(p,this,m,y)},u.prototype.verify=function(p,m){return this.ec.verify(p,m,this)},u.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},Xv}var Jv={},YM=!1;function Hz(){if(YM)return Jv;YM=!0;var i=ra(),s=Ln(),a=s.assert;function u(M,b){if(M instanceof u)return M;this._importDER(M,b)||(a(M.r&&M.s,"Signature without r or s"),this.r=new i(M.r,16),this.s=new i(M.s,16),M.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=M.recoveryParam)}Jv=u;function n(){this.place=0}function p(M,b){var g=M[b.place++];if(!(g&128))return g;var S=g&15;if(S===0||S>4)return!1;for(var _=0,x=0,E=b.place;x<S;x++,E++)_<<=8,_|=M[E],_>>>=0;return _<=127?!1:(b.place=E,_)}function m(M){for(var b=0,g=M.length-1;!M[b]&&!(M[b+1]&128)&&b<g;)b++;return b===0?M:M.slice(b)}u.prototype._importDER=function(b,g){b=s.toArray(b,g);var S=new n;if(b[S.place++]!==48)return!1;var _=p(b,S);if(_===!1||_+S.place!==b.length||b[S.place++]!==2)return!1;var x=p(b,S);if(x===!1)return!1;var E=b.slice(S.place,x+S.place);if(S.place+=x,b[S.place++]!==2)return!1;var k=p(b,S);if(k===!1||b.length!==k+S.place)return!1;var B=b.slice(S.place,k+S.place);if(E[0]===0)if(E[1]&128)E=E.slice(1);else return!1;if(B[0]===0)if(B[1]&128)B=B.slice(1);else return!1;return this.r=new i(E),this.s=new i(B),this.recoveryParam=null,!0};function y(M,b){if(b<128){M.push(b);return}var g=1+(Math.log(b)/Math.LN2>>>3);for(M.push(g|128);--g;)M.push(b>>>(g<<3)&255);M.push(b)}return u.prototype.toDER=function(b){var g=this.r.toArray(),S=this.s.toArray();for(g[0]&128&&(g=[0].concat(g)),S[0]&128&&(S=[0].concat(S)),g=m(g),S=m(S);!S[0]&&!(S[1]&128);)S=S.slice(1);var _=[2];y(_,g.length),_=_.concat(g),_.push(2),y(_,S.length);var x=_.concat(S),E=[48];return y(E,x.length),E=E.concat(x),s.encode(E,b)},Jv}var Yv={},QM=!1;function Kz(){if(QM)return Yv;QM=!0;var i=ra(),s=Fz(),a=Ln(),u=Lb(),n=Ib(),p=a.assert,m=jz(),y=Hz();function M(b){if(!(this instanceof M))return new M(b);typeof b=="string"&&(p(Object.prototype.hasOwnProperty.call(u,b),"Unknown curve "+b),b=u[b]),b instanceof u.PresetCurve&&(b={curve:b}),this.curve=b.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=b.curve.g,this.g.precompute(b.curve.n.bitLength()+1),this.hash=b.hash||b.curve.hash}return Yv=M,M.prototype.keyPair=function(g){return new m(this,g)},M.prototype.keyFromPrivate=function(g,S){return m.fromPrivate(this,g,S)},M.prototype.keyFromPublic=function(g,S){return m.fromPublic(this,g,S)},M.prototype.genKeyPair=function(g){g||(g={});for(var S=new s({hash:this.hash,pers:g.pers,persEnc:g.persEnc||"utf8",entropy:g.entropy||n(this.hash.hmacStrength),entropyEnc:g.entropy&&g.entropyEnc||"utf8",nonce:this.n.toArray()}),_=this.n.byteLength(),x=this.n.sub(new i(2));;){var E=new i(S.generate(_));if(!(E.cmp(x)>0))return E.iaddn(1),this.keyFromPrivate(E)}},M.prototype._truncateToN=function(g,S){var _=g.byteLength()*8-this.n.bitLength();return _>0&&(g=g.ushrn(_)),!S&&g.cmp(this.n)>=0?g.sub(this.n):g},M.prototype.sign=function(g,S,_,x){typeof _=="object"&&(x=_,_=null),x||(x={}),S=this.keyFromPrivate(S,_),g=this._truncateToN(new i(g,16));for(var E=this.n.byteLength(),k=S.getPrivate().toArray("be",E),B=g.toArray("be",E),T=new s({hash:this.hash,entropy:k,nonce:B,pers:x.pers,persEnc:x.persEnc||"utf8"}),C=this.n.sub(new i(1)),P=0;;P++){var G=x.k?x.k(P):new i(T.generate(this.n.byteLength()));if(G=this._truncateToN(G,!0),!(G.cmpn(1)<=0||G.cmp(C)>=0)){var U=this.g.mul(G);if(!U.isInfinity()){var V=U.getX(),I=V.umod(this.n);if(I.cmpn(0)!==0){var D=G.invm(this.n).mul(I.mul(S.getPrivate()).iadd(g));if(D=D.umod(this.n),D.cmpn(0)!==0){var z=(U.getY().isOdd()?1:0)|(V.cmp(I)!==0?2:0);return x.canonical&&D.cmp(this.nh)>0&&(D=this.n.sub(D),z^=1),new y({r:I,s:D,recoveryParam:z})}}}}}},M.prototype.verify=function(g,S,_,x){g=this._truncateToN(new i(g,16)),_=this.keyFromPublic(_,x),S=new y(S,"hex");var E=S.r,k=S.s;if(E.cmpn(1)<0||E.cmp(this.n)>=0||k.cmpn(1)<0||k.cmp(this.n)>=0)return!1;var B=k.invm(this.n),T=B.mul(g).umod(this.n),C=B.mul(E).umod(this.n),P;return this.curve._maxwellTrick?(P=this.g.jmulAdd(T,_.getPublic(),C),P.isInfinity()?!1:P.eqXToP(E)):(P=this.g.mulAdd(T,_.getPublic(),C),P.isInfinity()?!1:P.getX().umod(this.n).cmp(E)===0)},M.prototype.recoverPubKey=function(b,g,S,_){p((3&S)===S,"The recovery param is more than two bits"),g=new y(g,_);var x=this.n,E=new i(b),k=g.r,B=g.s,T=S&1,C=S>>1;if(k.cmp(this.curve.p.umod(this.curve.n))>=0&&C)throw new Error("Unable to find sencond key candinate");C?k=this.curve.pointFromX(k.add(this.curve.n),T):k=this.curve.pointFromX(k,T);var P=g.r.invm(x),G=x.sub(E).mul(P).umod(x),U=B.mul(P).umod(x);return this.g.mulAdd(G,k,U)},M.prototype.getKeyRecoveryParam=function(b,g,S,_){if(g=new y(g,_),g.recoveryParam!==null)return g.recoveryParam;for(var x=0;x<4;x++){var E;try{E=this.recoverPubKey(b,g,x)}catch{continue}if(E.eq(S))return x}throw new Error("Unable to find valid recovery factor")},Yv}var Qv={},t_=!1;function Gz(){if(t_)return Qv;t_=!0;var i=Ln(),s=i.assert,a=i.parseBytes,u=i.cachedProperty;function n(p,m){this.eddsa=p,this._secret=a(m.secret),p.isPoint(m.pub)?this._pub=m.pub:this._pubBytes=a(m.pub)}return n.fromPublic=function(m,y){return y instanceof n?y:new n(m,{pub:y})},n.fromSecret=function(m,y){return y instanceof n?y:new n(m,{secret:y})},n.prototype.secret=function(){return this._secret},u(n,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),u(n,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),u(n,"privBytes",function(){var m=this.eddsa,y=this.hash(),M=m.encodingLength-1,b=y.slice(0,m.encodingLength);return b[0]&=248,b[M]&=127,b[M]|=64,b}),u(n,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),u(n,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),u(n,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),n.prototype.sign=function(m){return s(this._secret,"KeyPair can only verify"),this.eddsa.sign(m,this)},n.prototype.verify=function(m,y){return this.eddsa.verify(m,y,this)},n.prototype.getSecret=function(m){return s(this._secret,"KeyPair is public only"),i.encode(this.secret(),m)},n.prototype.getPublic=function(m){return i.encode(this.pubBytes(),m)},Qv=n,Qv}var t2={},e_=!1;function Zz(){if(e_)return t2;e_=!0;var i=ra(),s=Ln(),a=s.assert,u=s.cachedProperty,n=s.parseBytes;function p(m,y){this.eddsa=m,typeof y!="object"&&(y=n(y)),Array.isArray(y)&&(y={R:y.slice(0,m.encodingLength),S:y.slice(m.encodingLength)}),a(y.R&&y.S,"Signature without R or S"),m.isPoint(y.R)&&(this._R=y.R),y.S instanceof i&&(this._S=y.S),this._Rencoded=Array.isArray(y.R)?y.R:y.Rencoded,this._Sencoded=Array.isArray(y.S)?y.S:y.Sencoded}return u(p,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),u(p,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),u(p,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),u(p,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),p.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},p.prototype.toHex=function(){return s.encode(this.toBytes(),"hex").toUpperCase()},t2=p,t2}var e2={},r_=!1;function Vz(){if(r_)return e2;r_=!0;var i=Db(),s=Lb(),a=Ln(),u=a.assert,n=a.parseBytes,p=Gz(),m=Zz();function y(M){if(u(M==="ed25519","only tested with ed25519 so far"),!(this instanceof y))return new y(M);M=s[M].curve,this.curve=M,this.g=M.g,this.g.precompute(M.n.bitLength()+1),this.pointClass=M.point().constructor,this.encodingLength=Math.ceil(M.n.bitLength()/8),this.hash=i.sha512}return e2=y,y.prototype.sign=function(b,g){b=n(b);var S=this.keyFromSecret(g),_=this.hashInt(S.messagePrefix(),b),x=this.g.mul(_),E=this.encodePoint(x),k=this.hashInt(E,S.pubBytes(),b).mul(S.priv()),B=_.add(k).umod(this.curve.n);return this.makeSignature({R:x,S:B,Rencoded:E})},y.prototype.verify=function(b,g,S){b=n(b),g=this.makeSignature(g);var _=this.keyFromPublic(S),x=this.hashInt(g.Rencoded(),_.pubBytes(),b),E=this.g.mul(g.S()),k=g.R().add(_.pub().mul(x));return k.eq(E)},y.prototype.hashInt=function(){for(var b=this.hash(),g=0;g<arguments.length;g++)b.update(arguments[g]);return a.intFromLE(b.digest()).umod(this.curve.n)},y.prototype.keyFromPublic=function(b){return p.fromPublic(this,b)},y.prototype.keyFromSecret=function(b){return p.fromSecret(this,b)},y.prototype.makeSignature=function(b){return b instanceof m?b:new m(this,b)},y.prototype.encodePoint=function(b){var g=b.getY().toArray("le",this.encodingLength);return g[this.encodingLength-1]|=b.getX().isOdd()?128:0,g},y.prototype.decodePoint=function(b){b=a.parseBytes(b);var g=b.length-1,S=b.slice(0,g).concat(b[g]&-129),_=(b[g]&128)!==0,x=a.intFromLE(S);return this.curve.pointFromY(x,_)},y.prototype.encodeInt=function(b){return b.toArray("le",this.encodingLength)},y.prototype.decodeInt=function(b){return a.intFromLE(b)},y.prototype.isPoint=function(b){return b instanceof this.pointClass},e2}var r2={},i_=!1;function Ob(){if(i_)return r2;i_=!0;var i=r2;return i.version=Pz.version,i.utils=Ln(),i.rand=Ib(),i.curve=hk(),i.curves=Lb(),i.ec=Kz(),i.eddsa=Vz(),r2}var uk={},n_=!1,i2={exports:uk},ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function lk(){return n_||(n_=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||ot).negative=0,(this||ot).words=null,(this||ot).length=0,(this||ot).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Pe.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||ot).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||ot).negative=1,t=-t),t<67108864?((this||ot).words=[t&67108863],(this||ot).length=1):t<4503599627370496?((this||ot).words=[t&67108863,t/67108864&67108863],(this||ot).length=2):(a(t<9007199254740992),(this||ot).words=[t&67108863,t/67108864&67108863,1],(this||ot).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||ot).words=[0],(this||ot).length=1,this||ot;(this||ot).length=Math.ceil(t.length/3),(this||ot).words=new Array((this||ot).length);for(var h=0;h<(this||ot).length;h++)(this||ot).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||ot).words[f]|=v<<w&67108863,(this||ot).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||ot).words[f]|=v<<w&67108863,(this||ot).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||ot).length=Math.ceil((t.length-r)/6),(this||ot).words=new Array((this||ot).length);for(var h=0;h<(this||ot).length;h++)(this||ot).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||ot).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||ot).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||ot).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||ot).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||ot).words=[0],(this||ot).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||ot).words[0]+e<67108864?(this||ot).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||ot).words[0]+e<67108864?(this||ot).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||ot).length);for(var r=0;r<(this||ot).length;r++)t.words[r]=(this||ot).words[r];t.length=(this||ot).length,t.negative=(this||ot).negative,t.red=(this||ot).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||ot).length<t;)(this||ot).words[(this||ot).length++]=0;return this||ot},n.prototype.strip=function(){for(;(this||ot).length>1&&(this||ot).words[(this||ot).length-1]===0;)(this||ot).length--;return this._normSign()},n.prototype._normSign=function(){return(this||ot).length===1&&(this||ot).words[0]===0&&((this||ot).negative=0),this||ot},n.prototype.inspect=function(){return((this||ot).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||ot).length;v++){var w=(this||ot).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||ot).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||ot).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||ot).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||ot).words[0];return(this||ot).length===2?t+=(this||ot).words[1]*67108864:(this||ot).length===3&&(this||ot).words[2]===1?t+=4503599627370496+(this||ot).words[1]*67108864:(this||ot).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||ot).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||ot).words[(this||ot).length-1],r=this._countBits(t);return((this||ot).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||ot).length;r++){var o=this._zeroBits((this||ot).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||ot).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||ot).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||ot).negative^=1),this||ot},n.prototype.iuor=function(t){for(;(this||ot).length<t.length;)(this||ot).words[(this||ot).length++]=0;for(var r=0;r<t.length;r++)(this||ot).words[r]=(this||ot).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||ot).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||ot).length>t.length?this.clone().ior(t):t.clone().ior(this||ot)},n.prototype.uor=function(t){return(this||ot).length>t.length?this.clone().iuor(t):t.clone().iuor(this||ot)},n.prototype.iuand=function(t){var r;(this||ot).length>t.length?r=t:r=this||ot;for(var o=0;o<r.length;o++)(this||ot).words[o]=(this||ot).words[o]&t.words[o];return(this||ot).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||ot).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||ot).length>t.length?this.clone().iand(t):t.clone().iand(this||ot)},n.prototype.uand=function(t){return(this||ot).length>t.length?this.clone().iuand(t):t.clone().iuand(this||ot)},n.prototype.iuxor=function(t){var r,o;(this||ot).length>t.length?(r=this||ot,o=t):(r=t,o=this||ot);for(var h=0;h<o.length;h++)(this||ot).words[h]=r.words[h]^o.words[h];if((this||ot)!==r)for(;h<r.length;h++)(this||ot).words[h]=r.words[h];return(this||ot).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||ot).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||ot).length>t.length?this.clone().ixor(t):t.clone().ixor(this||ot)},n.prototype.uxor=function(t){return(this||ot).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||ot)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||ot).words[h]=~(this||ot).words[h]&67108863;return o>0&&((this||ot).words[h]=~(this||ot).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||ot).words[o]=(this||ot).words[o]|1<<h:(this||ot).words[o]=(this||ot).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||ot).negative!==0&&t.negative===0)return(this||ot).negative=0,r=this.isub(t),(this||ot).negative^=1,this._normSign();if((this||ot).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||ot).length>t.length?(o=this||ot,h=t):(o=t,h=this||ot);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||ot).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||ot).words[v]=r&67108863,f=r>>>26;if((this||ot).length=o.length,f!==0)(this||ot).words[(this||ot).length]=f,(this||ot).length++;else if(o!==(this||ot))for(;v<o.length;v++)(this||ot).words[v]=o.words[v];return this||ot},n.prototype.add=function(t){var r;return t.negative!==0&&(this||ot).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||ot).negative!==0?((this||ot).negative=0,r=t.sub(this||ot),(this||ot).negative=1,r):(this||ot).length>t.length?this.clone().iadd(t):t.clone().iadd(this||ot)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||ot).negative!==0)return(this||ot).negative=0,this.iadd(t),(this||ot).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||ot).negative=0,(this||ot).length=1,(this||ot).words[0]=0,this||ot;var h,f;o>0?(h=this||ot,f=t):(h=t,f=this||ot);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||ot).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||ot).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||ot))for(;w<h.length;w++)(this||ot).words[w]=h.words[w];return(this||ot).length=Math.max((this||ot).length,w),h!==(this||ot)&&((this||ot).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||ot).length+t.length;return(this||ot).length===10&&t.length===10?o=E(this||ot,t,r):h<63?o=x(this||ot,t,r):h<1024?o=k(this||ot,t,r):o=B(this||ot,t,r),o};function T(d,t){(this||ot).x=d,(this||ot).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||ot).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||ot).length+t.length),B(this||ot,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||ot)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||ot).length;o++){var h=((this||ot).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||ot).words[o]=f&67108863}return r!==0&&((this||ot).words[o]=r,(this||ot).length++),this||ot},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||ot)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||ot,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||ot).length;f++){var w=(this||ot).words[f]&h,l=((this||ot).words[f]|0)-w<<r;(this||ot).words[f]=l|v,v=w>>>26-r}v&&((this||ot).words[f]=v,(this||ot).length++)}if(o!==0){for(f=(this||ot).length-1;f>=0;f--)(this||ot).words[f+o]=(this||ot).words[f];for(f=0;f<o;f++)(this||ot).words[f]=0;(this||ot).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||ot).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||ot).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||ot).words[e];l.length=v}if(v!==0)if((this||ot).length>v)for((this||ot).length-=v,e=0;e<(this||ot).length;e++)(this||ot).words[e]=(this||ot).words[e+v];else(this||ot).words[0]=0,(this||ot).length=1;var c=0;for(e=(this||ot).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||ot).words[e]|0;(this||ot).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||ot).length===0&&((this||ot).words[0]=0,(this||ot).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||ot).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||ot).length<=o)return!1;var f=(this||ot).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||ot).negative===0,"imaskn works only with positive numbers"),(this||ot).length<=o)return this||ot;if(r!==0&&o++,(this||ot).length=Math.min(o,(this||ot).length),r!==0){var h=67108863^67108863>>>r<<r;(this||ot).words[(this||ot).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||ot).negative!==0?(this||ot).length===1&&((this||ot).words[0]|0)<t?((this||ot).words[0]=t-((this||ot).words[0]|0),(this||ot).negative=0,this||ot):((this||ot).negative=0,this.isubn(t),(this||ot).negative=1,this||ot):this._iaddn(t)},n.prototype._iaddn=function(t){(this||ot).words[0]+=t;for(var r=0;r<(this||ot).length&&(this||ot).words[r]>=67108864;r++)(this||ot).words[r]-=67108864,r===(this||ot).length-1?(this||ot).words[r+1]=1:(this||ot).words[r+1]++;return(this||ot).length=Math.max((this||ot).length,r+1),this||ot},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||ot).negative!==0)return(this||ot).negative=0,this.iaddn(t),(this||ot).negative=1,this||ot;if((this||ot).words[0]-=t,(this||ot).length===1&&(this||ot).words[0]<0)(this||ot).words[0]=-(this||ot).words[0],(this||ot).negative=1;else for(var r=0;r<(this||ot).length&&(this||ot).words[r]<0;r++)(this||ot).words[r]+=67108864,(this||ot).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||ot).negative=0,this||ot},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||ot).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||ot).words[f+o]=v&67108863}for(;f<(this||ot).length-o;f++)v=((this||ot).words[f+o]|0)+w,w=v>>26,(this||ot).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||ot).length;f++)v=-((this||ot).words[f]|0)+w,w=v>>26,(this||ot).words[f]=v&67108863;return(this||ot).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||ot).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||ot).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||ot).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||ot).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||ot).length||this.cmp(t)<0?{div:new n(0),mod:this||ot}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||ot).length-1;h>=0;h--)o=(r*o+((this||ot).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||ot).length-1;o>=0;o--){var h=((this||ot).words[o]|0)+r*67108864;(this||ot).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||ot,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||ot,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||ot).words[0]&1)===0},n.prototype.isOdd=function(){return((this||ot).words[0]&1)===1},n.prototype.andln=function(t){return(this||ot).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||ot).length<=o)return this._expand(o+1),(this||ot).words[o]|=h,this||ot;for(var f=h,v=o;f!==0&&v<(this||ot).length;v++){var w=(this||ot).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||ot).words[v]=w}return f!==0&&((this||ot).words[v]=f,(this||ot).length++),this||ot},n.prototype.isZero=function(){return(this||ot).length===1&&(this||ot).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||ot).negative!==0&&!r)return-1;if((this||ot).negative===0&&r)return 1;this.strip();var o;if((this||ot).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||ot).words[0]|0;o=h===t?0:h<t?-1:1}return(this||ot).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||ot).negative!==0&&t.negative===0)return-1;if((this||ot).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||ot).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||ot).length>t.length)return 1;if((this||ot).length<t.length)return-1;for(var r=0,o=(this||ot).length-1;o>=0;o--){var h=(this||ot).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||ot).red,"Already a number in reduction context"),a((this||ot).negative===0,"red works only with positives"),t.convertTo(this||ot)._forceRed(t)},n.prototype.fromRed=function(){return a((this||ot).red,"fromRed works only with numbers in reduction context"),(this||ot).red.convertFrom(this||ot)},n.prototype._forceRed=function(t){return(this||ot).red=t,this||ot},n.prototype.forceRed=function(t){return a(!(this||ot).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||ot).red,"redAdd works only with red numbers"),(this||ot).red.add(this||ot,t)},n.prototype.redIAdd=function(t){return a((this||ot).red,"redIAdd works only with red numbers"),(this||ot).red.iadd(this||ot,t)},n.prototype.redSub=function(t){return a((this||ot).red,"redSub works only with red numbers"),(this||ot).red.sub(this||ot,t)},n.prototype.redISub=function(t){return a((this||ot).red,"redISub works only with red numbers"),(this||ot).red.isub(this||ot,t)},n.prototype.redShl=function(t){return a((this||ot).red,"redShl works only with red numbers"),(this||ot).red.shl(this||ot,t)},n.prototype.redMul=function(t){return a((this||ot).red,"redMul works only with red numbers"),(this||ot).red._verify2(this||ot,t),(this||ot).red.mul(this||ot,t)},n.prototype.redIMul=function(t){return a((this||ot).red,"redMul works only with red numbers"),(this||ot).red._verify2(this||ot,t),(this||ot).red.imul(this||ot,t)},n.prototype.redSqr=function(){return a((this||ot).red,"redSqr works only with red numbers"),(this||ot).red._verify1(this||ot),(this||ot).red.sqr(this||ot)},n.prototype.redISqr=function(){return a((this||ot).red,"redISqr works only with red numbers"),(this||ot).red._verify1(this||ot),(this||ot).red.isqr(this||ot)},n.prototype.redSqrt=function(){return a((this||ot).red,"redSqrt works only with red numbers"),(this||ot).red._verify1(this||ot),(this||ot).red.sqrt(this||ot)},n.prototype.redInvm=function(){return a((this||ot).red,"redInvm works only with red numbers"),(this||ot).red._verify1(this||ot),(this||ot).red.invm(this||ot)},n.prototype.redNeg=function(){return a((this||ot).red,"redNeg works only with red numbers"),(this||ot).red._verify1(this||ot),(this||ot).red.neg(this||ot)},n.prototype.redPow=function(t){return a((this||ot).red&&!t.red,"redPow(normalNum)"),(this||ot).red._verify1(this||ot),(this||ot).red.pow(this||ot,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||ot).name=d,(this||ot).p=new n(t,16),(this||ot).n=(this||ot).p.bitLength(),(this||ot).k=new n(1).iushln((this||ot).n).isub((this||ot).p),(this||ot).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||ot).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||ot).tmp),r=this.imulK(r),r=r.iadd((this||ot).tmp),o=r.bitLength();while(o>(this||ot).n);var h=o<(this||ot).n?-1:r.ucmp((this||ot).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||ot).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||ot).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||ot).k)};function G(){P.call(this||ot,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||ot,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||ot,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||ot,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||ot).m=t.p,(this||ot).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||ot).m=d,(this||ot).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||ot).prime?(this||ot).prime.ireduce(t)._forceRed(this||ot):t.umod((this||ot).m)._forceRed(this||ot)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||ot).m.sub(t)._forceRed(this||ot)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||ot).m)>=0&&o.isub((this||ot).m),o._forceRed(this||ot)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||ot).m)>=0&&o.isub((this||ot).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||ot).m),o._forceRed(this||ot)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||ot).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||ot).m.andln(3);if(a(r%2===1),r===3){var o=(this||ot).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||ot).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||ot),w=v.redNeg(),l=(this||ot).m.subn(1).iushrn(1),e=(this||ot).m.bitLength();for(e=new n(2*e*e).toRed(this||ot);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||ot).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||ot);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||ot),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||ot).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||ot,d),(this||ot).shift=(this||ot).m.bitLength(),(this||ot).shift%26!==0&&((this||ot).shift+=26-(this||ot).shift%26),(this||ot).r=new n(1).iushln((this||ot).shift),(this||ot).r2=this.imod((this||ot).r.sqr()),(this||ot).rinv=(this||ot).r._invmp((this||ot).m),(this||ot).minv=(this||ot).rinv.mul((this||ot).r).isubn(1).div((this||ot).m),(this||ot).minv=(this||ot).minv.umod((this||ot).r),(this||ot).minv=(this||ot).r.sub((this||ot).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||ot).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||ot).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||ot).shift).mul((this||ot).minv).imaskn((this||ot).shift).mul((this||ot).m),f=o.isub(h).iushrn((this||ot).shift),v=f;return f.cmp((this||ot).m)>=0?v=f.isub((this||ot).m):f.cmpn(0)<0&&(v=f.iadd((this||ot).m)),v._forceRed(this||ot)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||ot);var o=t.mul(r),h=o.maskn((this||ot).shift).mul((this||ot).minv).imaskn((this||ot).shift).mul((this||ot).m),f=o.isub(h).iushrn((this||ot).shift),v=f;return f.cmp((this||ot).m)>=0?v=f.isub((this||ot).m):f.cmpn(0)<0&&(v=f.iadd((this||ot).m)),v._forceRed(this||ot)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||ot).m).mul((this||ot).r2));return r._forceRed(this||ot)}}(i2,uk)),i2.exports}var n2={},o_=!1;function Nb(){if(o_)return n2;o_=!0;var i=Le,s=Pe,a=s.Buffer,u={},n;for(n in s)s.hasOwnProperty(n)&&(n==="SlowBuffer"||n==="Buffer"||(u[n]=s[n]));var p=u.Buffer={};for(n in a)a.hasOwnProperty(n)&&(n==="allocUnsafe"||n==="allocUnsafeSlow"||(p[n]=a[n]));if(u.Buffer.prototype=a.prototype,(!p.from||p.from===Uint8Array.from)&&(p.from=function(m,y,M){if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof m);if(m&&typeof m.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);return a(m,y,M)}),p.alloc||(p.alloc=function(m,y,M){if(typeof m!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof m);if(m<0||m>=2*(1<<30))throw new RangeError('The value "'+m+'" is invalid for option "size"');var b=a(m);return!y||y.length===0?b.fill(0):typeof M=="string"?b.fill(y,M):b.fill(y),b}),!u.kStringMaxLength)try{u.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch{}return u.constants||(u.constants={MAX_LENGTH:u.kMaxLength},u.kStringMaxLength&&(u.constants.MAX_STRING_LENGTH=u.kStringMaxLength)),n2=u,n2}var o2={},a_=!1;function qb(){if(a_)return o2;a_=!0;let i=Ye();function s(u){this._reporterState={obj:null,path:[],options:u||{},errors:[]}}o2.Reporter=s,s.prototype.isError=function(n){return n instanceof a},s.prototype.save=function(){let n=this._reporterState;return{obj:n.obj,pathLen:n.path.length}},s.prototype.restore=function(n){let p=this._reporterState;p.obj=n.obj,p.path=p.path.slice(0,n.pathLen)},s.prototype.enterKey=function(n){return this._reporterState.path.push(n)},s.prototype.exitKey=function(n){let p=this._reporterState;p.path=p.path.slice(0,n-1)},s.prototype.leaveKey=function(n,p,m){let y=this._reporterState;this.exitKey(n),y.obj!==null&&(y.obj[p]=m)},s.prototype.path=function(){return this._reporterState.path.join("/")},s.prototype.enterObject=function(){let n=this._reporterState,p=n.obj;return n.obj={},p},s.prototype.leaveObject=function(n){let p=this._reporterState,m=p.obj;return p.obj=n,m},s.prototype.error=function(n){let p,m=this._reporterState,y=n instanceof a;if(y?p=n:p=new a(m.path.map(function(M){return"["+JSON.stringify(M)+"]"}).join(""),n.message||n,n.stack),!m.options.partial)throw p;return y||m.errors.push(p),p},s.prototype.wrapResult=function(n){let p=this._reporterState;return p.options.partial?{result:this.isError(n)?null:n,errors:p.errors}:n};function a(u,n){this.path=u,this.rethrow(n)}return i(a,Error),a.prototype.rethrow=function(n){if(this.message=n+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(p){this.stack=p.stack}return this},o2}var M0={},s_=!1;function ou(){if(s_)return M0;s_=!0;let i=Ye(),s=qb().Reporter,a=Nb().Buffer;function u(p,m){if(s.call(this,m),!a.isBuffer(p)){this.error("Input not Buffer");return}this.base=p,this.offset=0,this.length=p.length}i(u,s),M0.DecoderBuffer=u,u.isDecoderBuffer=function(m){return m instanceof u?!0:typeof m=="object"&&a.isBuffer(m.base)&&m.constructor.name==="DecoderBuffer"&&typeof m.offset=="number"&&typeof m.length=="number"&&typeof m.save=="function"&&typeof m.restore=="function"&&typeof m.isEmpty=="function"&&typeof m.readUInt8=="function"&&typeof m.skip=="function"&&typeof m.raw=="function"},u.prototype.save=function(){return{offset:this.offset,reporter:s.prototype.save.call(this)}},u.prototype.restore=function(m){let y=new u(this.base);return y.offset=m.offset,y.length=this.offset,this.offset=m.offset,s.prototype.restore.call(this,m.reporter),y},u.prototype.isEmpty=function(){return this.offset===this.length},u.prototype.readUInt8=function(m){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(m||"DecoderBuffer overrun")},u.prototype.skip=function(m,y){if(!(this.offset+m<=this.length))return this.error(y||"DecoderBuffer overrun");let M=new u(this.base);return M._reporterState=this._reporterState,M.offset=this.offset,M.length=this.offset+m,this.offset+=m,M},u.prototype.raw=function(m){return this.base.slice(m?m.offset:this.offset,this.length)};function n(p,m){if(Array.isArray(p))this.length=0,this.value=p.map(function(y){return n.isEncoderBuffer(y)||(y=new n(y,m)),this.length+=y.length,y},this);else if(typeof p=="number"){if(!(0<=p&&p<=255))return m.error("non-byte EncoderBuffer value");this.value=p,this.length=1}else if(typeof p=="string")this.value=p,this.length=a.byteLength(p);else if(a.isBuffer(p))this.value=p,this.length=p.length;else return m.error("Unsupported type: "+typeof p)}return M0.EncoderBuffer=n,n.isEncoderBuffer=function(m){return m instanceof n?!0:typeof m=="object"&&m.constructor.name==="EncoderBuffer"&&typeof m.length=="number"&&typeof m.join=="function"},n.prototype.join=function(m,y){return m||(m=a.alloc(this.length)),y||(y=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(M){M.join(m,y),y+=M.length}):(typeof this.value=="number"?m[y]=this.value:typeof this.value=="string"?m.write(this.value,y):a.isBuffer(this.value)&&this.value.copy(m,y),y+=this.length)),m},M0}var a2={},h_=!1;function zb(){if(h_)return a2;h_=!0;let i=qb().Reporter,s=ou().EncoderBuffer,a=ou().DecoderBuffer,u=Io(),n=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],p=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(n),m=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function y(b,g,S){let _={};this._baseState=_,_.name=S,_.enc=b,_.parent=g||null,_.children=null,_.tag=null,_.args=null,_.reverseArgs=null,_.choice=null,_.optional=!1,_.any=!1,_.obj=!1,_.use=null,_.useDecoder=null,_.key=null,_.default=null,_.explicit=null,_.implicit=null,_.contains=null,_.parent||(_.children=[],this._wrap())}a2=y;let M=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return y.prototype.clone=function(){let g=this._baseState,S={};M.forEach(function(x){S[x]=g[x]});let _=new this.constructor(S.parent);return _._baseState=S,_},y.prototype._wrap=function(){let g=this._baseState;p.forEach(function(S){this[S]=function(){let x=new this.constructor(this);return g.children.push(x),x[S].apply(x,arguments)}},this)},y.prototype._init=function(g){let S=this._baseState;u(S.parent===null),g.call(this),S.children=S.children.filter(function(_){return _._baseState.parent===this},this),u.equal(S.children.length,1,"Root node can have only one child")},y.prototype._useArgs=function(g){let S=this._baseState,_=g.filter(function(x){return x instanceof this.constructor},this);g=g.filter(function(x){return!(x instanceof this.constructor)},this),_.length!==0&&(u(S.children===null),S.children=_,_.forEach(function(x){x._baseState.parent=this},this)),g.length!==0&&(u(S.args===null),S.args=g,S.reverseArgs=g.map(function(x){if(typeof x!="object"||x.constructor!==Object)return x;let E={};return Object.keys(x).forEach(function(k){k==(k|0)&&(k|=0);let B=x[k];E[B]=k}),E}))},m.forEach(function(b){y.prototype[b]=function(){let S=this._baseState;throw new Error(b+" not implemented for encoding: "+S.enc)}}),n.forEach(function(b){y.prototype[b]=function(){let S=this._baseState,_=Array.prototype.slice.call(arguments);return u(S.tag===null),S.tag=b,this._useArgs(_),this}}),y.prototype.use=function(g){u(g);let S=this._baseState;return u(S.use===null),S.use=g,this},y.prototype.optional=function(){let g=this._baseState;return g.optional=!0,this},y.prototype.def=function(g){let S=this._baseState;return u(S.default===null),S.default=g,S.optional=!0,this},y.prototype.explicit=function(g){let S=this._baseState;return u(S.explicit===null&&S.implicit===null),S.explicit=g,this},y.prototype.implicit=function(g){let S=this._baseState;return u(S.explicit===null&&S.implicit===null),S.implicit=g,this},y.prototype.obj=function(){let g=this._baseState,S=Array.prototype.slice.call(arguments);return g.obj=!0,S.length!==0&&this._useArgs(S),this},y.prototype.key=function(g){let S=this._baseState;return u(S.key===null),S.key=g,this},y.prototype.any=function(){let g=this._baseState;return g.any=!0,this},y.prototype.choice=function(g){let S=this._baseState;return u(S.choice===null),S.choice=g,this._useArgs(Object.keys(g).map(function(_){return g[_]})),this},y.prototype.contains=function(g){let S=this._baseState;return u(S.use===null),S.contains=g,this},y.prototype._decode=function(g,S){let _=this._baseState;if(_.parent===null)return g.wrapResult(_.children[0]._decode(g,S));let x=_.default,E=!0,k=null;if(_.key!==null&&(k=g.enterKey(_.key)),_.optional){let T=null;if(_.explicit!==null?T=_.explicit:_.implicit!==null?T=_.implicit:_.tag!==null&&(T=_.tag),T===null&&!_.any){let C=g.save();try{_.choice===null?this._decodeGeneric(_.tag,g,S):this._decodeChoice(g,S),E=!0}catch{E=!1}g.restore(C)}else if(E=this._peekTag(g,T,_.any),g.isError(E))return E}let B;if(_.obj&&E&&(B=g.enterObject()),E){if(_.explicit!==null){let C=this._decodeTag(g,_.explicit);if(g.isError(C))return C;g=C}let T=g.offset;if(_.use===null&&_.choice===null){let C;_.any&&(C=g.save());let P=this._decodeTag(g,_.implicit!==null?_.implicit:_.tag,_.any);if(g.isError(P))return P;_.any?x=g.raw(C):g=P}if(S&&S.track&&_.tag!==null&&S.track(g.path(),T,g.length,"tagged"),S&&S.track&&_.tag!==null&&S.track(g.path(),g.offset,g.length,"content"),_.any||(_.choice===null?x=this._decodeGeneric(_.tag,g,S):x=this._decodeChoice(g,S)),g.isError(x))return x;if(!_.any&&_.choice===null&&_.children!==null&&_.children.forEach(function(P){P._decode(g,S)}),_.contains&&(_.tag==="octstr"||_.tag==="bitstr")){let C=new a(x);x=this._getUse(_.contains,g._reporterState.obj)._decode(C,S)}}return _.obj&&E&&(x=g.leaveObject(B)),_.key!==null&&(x!==null||E===!0)?g.leaveKey(k,_.key,x):k!==null&&g.exitKey(k),x},y.prototype._decodeGeneric=function(g,S,_){let x=this._baseState;return g==="seq"||g==="set"?null:g==="seqof"||g==="setof"?this._decodeList(S,g,x.args[0],_):/str$/.test(g)?this._decodeStr(S,g,_):g==="objid"&&x.args?this._decodeObjid(S,x.args[0],x.args[1],_):g==="objid"?this._decodeObjid(S,null,null,_):g==="gentime"||g==="utctime"?this._decodeTime(S,g,_):g==="null_"?this._decodeNull(S,_):g==="bool"?this._decodeBool(S,_):g==="objDesc"?this._decodeStr(S,g,_):g==="int"||g==="enum"?this._decodeInt(S,x.args&&x.args[0],_):x.use!==null?this._getUse(x.use,S._reporterState.obj)._decode(S,_):S.error("unknown tag: "+g)},y.prototype._getUse=function(g,S){let _=this._baseState;return _.useDecoder=this._use(g,S),u(_.useDecoder._baseState.parent===null),_.useDecoder=_.useDecoder._baseState.children[0],_.implicit!==_.useDecoder._baseState.implicit&&(_.useDecoder=_.useDecoder.clone(),_.useDecoder._baseState.implicit=_.implicit),_.useDecoder},y.prototype._decodeChoice=function(g,S){let _=this._baseState,x=null,E=!1;return Object.keys(_.choice).some(function(k){let B=g.save(),T=_.choice[k];try{let C=T._decode(g,S);if(g.isError(C))return!1;x={type:k,value:C},E=!0}catch{return g.restore(B),!1}return!0},this),E?x:g.error("Choice not matched")},y.prototype._createEncoderBuffer=function(g){return new s(g,this.reporter)},y.prototype._encode=function(g,S,_){let x=this._baseState;if(x.default!==null&&x.default===g)return;let E=this._encodeValue(g,S,_);if(E!==void 0&&!this._skipDefault(E,S,_))return E},y.prototype._encodeValue=function(g,S,_){let x=this._baseState;if(x.parent===null)return x.children[0]._encode(g,S||new i);let E=null;if(this.reporter=S,x.optional&&g===void 0)if(x.default!==null)g=x.default;else return;let k=null,B=!1;if(x.any)E=this._createEncoderBuffer(g);else if(x.choice)E=this._encodeChoice(g,S);else if(x.contains)k=this._getUse(x.contains,_)._encode(g,S),B=!0;else if(x.children)k=x.children.map(function(T){if(T._baseState.tag==="null_")return T._encode(null,S,g);if(T._baseState.key===null)return S.error("Child should have a key");let C=S.enterKey(T._baseState.key);if(typeof g!="object")return S.error("Child expected, but input is not object");let P=T._encode(g[T._baseState.key],S,g);return S.leaveKey(C),P},this).filter(function(T){return T}),k=this._createEncoderBuffer(k);else if(x.tag==="seqof"||x.tag==="setof"){if(!(x.args&&x.args.length===1))return S.error("Too many args for : "+x.tag);if(!Array.isArray(g))return S.error("seqof/setof, but data is not Array");let T=this.clone();T._baseState.implicit=null,k=this._createEncoderBuffer(g.map(function(C){let P=this._baseState;return this._getUse(P.args[0],g)._encode(C,S)},T))}else x.use!==null?E=this._getUse(x.use,_)._encode(g,S):(k=this._encodePrimitive(x.tag,g),B=!0);if(!x.any&&x.choice===null){let T=x.implicit!==null?x.implicit:x.tag,C=x.implicit===null?"universal":"context";T===null?x.use===null&&S.error("Tag could be omitted only for .use()"):x.use===null&&(E=this._encodeComposite(T,B,C,k))}return x.explicit!==null&&(E=this._encodeComposite(x.explicit,!1,"context",E)),E},y.prototype._encodeChoice=function(g,S){let _=this._baseState,x=_.choice[g.type];return x||u(!1,g.type+" not found in "+JSON.stringify(Object.keys(_.choice))),x._encode(g.value,S)},y.prototype._encodePrimitive=function(g,S){let _=this._baseState;if(/str$/.test(g))return this._encodeStr(S,g);if(g==="objid"&&_.args)return this._encodeObjid(S,_.reverseArgs[0],_.args[1]);if(g==="objid")return this._encodeObjid(S,null,null);if(g==="gentime"||g==="utctime")return this._encodeTime(S,g);if(g==="null_")return this._encodeNull();if(g==="int"||g==="enum")return this._encodeInt(S,_.args&&_.reverseArgs[0]);if(g==="bool")return this._encodeBool(S);if(g==="objDesc")return this._encodeStr(S,g);throw new Error("Unsupported tag: "+g)},y.prototype._isNumstr=function(g){return/^[0-9 ]*$/.test(g)},y.prototype._isPrintstr=function(g){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(g)},a2}var wa={},f_=!1;function Ub(){if(f_)return wa;f_=!0;function i(s){let a={};return Object.keys(s).forEach(function(u){(u|0)==u&&(u=u|0);let n=s[u];a[n]=u}),a}return wa.tagClass={0:"universal",1:"application",2:"context",3:"private"},wa.tagClassByName=i(wa.tagClass),wa.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},wa.tagByName=i(wa.tag),wa}var s2={},u_=!1;function ck(){if(u_)return s2;u_=!0;let i=Ye(),s=Nb().Buffer,a=zb(),u=Ub();function n(M){this.enc="der",this.name=M.name,this.entity=M,this.tree=new p,this.tree._init(M.body)}s2=n,n.prototype.encode=function(b,g){return this.tree._encode(b,g).join()};function p(M){a.call(this,"der",M)}i(p,a),p.prototype._encodeComposite=function(b,g,S,_){let x=y(b,g,S,this.reporter);if(_.length<128){let B=s.alloc(2);return B[0]=x,B[1]=_.length,this._createEncoderBuffer([B,_])}let E=1;for(let B=_.length;B>=256;B>>=8)E++;let k=s.alloc(1+1+E);k[0]=x,k[1]=128|E;for(let B=1+E,T=_.length;T>0;B--,T>>=8)k[B]=T&255;return this._createEncoderBuffer([k,_])},p.prototype._encodeStr=function(b,g){if(g==="bitstr")return this._createEncoderBuffer([b.unused|0,b.data]);if(g==="bmpstr"){let S=s.alloc(b.length*2);for(let _=0;_<b.length;_++)S.writeUInt16BE(b.charCodeAt(_),_*2);return this._createEncoderBuffer(S)}else return g==="numstr"?this._isNumstr(b)?this._createEncoderBuffer(b):this.reporter.error("Encoding of string type: numstr supports only digits and space"):g==="printstr"?this._isPrintstr(b)?this._createEncoderBuffer(b):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(g)?this._createEncoderBuffer(b):g==="objDesc"?this._createEncoderBuffer(b):this.reporter.error("Encoding of string type: "+g+" unsupported")},p.prototype._encodeObjid=function(b,g,S){if(typeof b=="string"){if(!g)return this.reporter.error("string objid given, but no values map found");if(!g.hasOwnProperty(b))return this.reporter.error("objid not found in values map");b=g[b].split(/[\s.]+/g);for(let k=0;k<b.length;k++)b[k]|=0}else if(Array.isArray(b)){b=b.slice();for(let k=0;k<b.length;k++)b[k]|=0}if(!Array.isArray(b))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(b));if(!S){if(b[1]>=40)return this.reporter.error("Second objid identifier OOB");b.splice(0,2,b[0]*40+b[1])}let _=0;for(let k=0;k<b.length;k++){let B=b[k];for(_++;B>=128;B>>=7)_++}let x=s.alloc(_),E=x.length-1;for(let k=b.length-1;k>=0;k--){let B=b[k];for(x[E--]=B&127;(B>>=7)>0;)x[E--]=128|B&127}return this._createEncoderBuffer(x)};function m(M){return M<10?"0"+M:M}p.prototype._encodeTime=function(b,g){let S,_=new Date(b);return g==="gentime"?S=[m(_.getUTCFullYear()),m(_.getUTCMonth()+1),m(_.getUTCDate()),m(_.getUTCHours()),m(_.getUTCMinutes()),m(_.getUTCSeconds()),"Z"].join(""):g==="utctime"?S=[m(_.getUTCFullYear()%100),m(_.getUTCMonth()+1),m(_.getUTCDate()),m(_.getUTCHours()),m(_.getUTCMinutes()),m(_.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+g+" time is not supported yet"),this._encodeStr(S,"octstr")},p.prototype._encodeNull=function(){return this._createEncoderBuffer("")},p.prototype._encodeInt=function(b,g){if(typeof b=="string"){if(!g)return this.reporter.error("String int or enum given, but no values map");if(!g.hasOwnProperty(b))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(b));b=g[b]}if(typeof b!="number"&&!s.isBuffer(b)){let x=b.toArray();!b.sign&&x[0]&128&&x.unshift(0),b=s.from(x)}if(s.isBuffer(b)){let x=b.length;b.length===0&&x++;let E=s.alloc(x);return b.copy(E),b.length===0&&(E[0]=0),this._createEncoderBuffer(E)}if(b<128)return this._createEncoderBuffer(b);if(b<256)return this._createEncoderBuffer([0,b]);let S=1;for(let x=b;x>=256;x>>=8)S++;let _=new Array(S);for(let x=_.length-1;x>=0;x--)_[x]=b&255,b>>=8;return _[0]&128&&_.unshift(0),this._createEncoderBuffer(s.from(_))},p.prototype._encodeBool=function(b){return this._createEncoderBuffer(b?255:0)},p.prototype._use=function(b,g){return typeof b=="function"&&(b=b(g)),b._getEncoder("der").tree},p.prototype._skipDefault=function(b,g,S){let _=this._baseState,x;if(_.default===null)return!1;let E=b.join();if(_.defaultBuffer===void 0&&(_.defaultBuffer=this._encodeValue(_.default,g,S).join()),E.length!==_.defaultBuffer.length)return!1;for(x=0;x<E.length;x++)if(E[x]!==_.defaultBuffer[x])return!1;return!0};function y(M,b,g,S){let _;if(M==="seqof"?M="seq":M==="setof"&&(M="set"),u.tagByName.hasOwnProperty(M))_=u.tagByName[M];else if(typeof M=="number"&&(M|0)===M)_=M;else return S.error("Unknown tag: "+M);return _>=31?S.error("Multi-octet tag encoding unsupported"):(b||(_|=32),_|=u.tagClassByName[g||"universal"]<<6,_)}return s2}var h2={},l_=!1;function Wz(){if(l_)return h2;l_=!0;let i=Ye(),s=ck();function a(u){s.call(this,u),this.enc="pem"}return i(a,s),h2=a,a.prototype.encode=function(n,p){let y=s.prototype.encode.call(this,n).toString("base64"),M=["-----BEGIN "+p.label+"-----"];for(let b=0;b<y.length;b+=64)M.push(y.slice(b,b+64));return M.push("-----END "+p.label+"-----"),M.join(`
22
+ `)},h2}var f2={},c_=!1;function dk(){if(c_)return f2;c_=!0;let i=f2;return i.der=ck(),i.pem=Wz(),f2}var u2={},d_=!1;function pk(){if(d_)return u2;d_=!0;let i=Ye(),s=lk(),a=ou().DecoderBuffer,u=zb(),n=Ub();function p(b){this.enc="der",this.name=b.name,this.entity=b,this.tree=new m,this.tree._init(b.body)}u2=p,p.prototype.decode=function(g,S){return a.isDecoderBuffer(g)||(g=new a(g,S)),this.tree._decode(g,S)};function m(b){u.call(this,"der",b)}i(m,u),m.prototype._peekTag=function(g,S,_){if(g.isEmpty())return!1;let x=g.save(),E=y(g,'Failed to peek tag: "'+S+'"');return g.isError(E)?E:(g.restore(x),E.tag===S||E.tagStr===S||E.tagStr+"of"===S||_)},m.prototype._decodeTag=function(g,S,_){let x=y(g,'Failed to decode tag of "'+S+'"');if(g.isError(x))return x;let E=M(g,x.primitive,'Failed to get length of "'+S+'"');if(g.isError(E))return E;if(!_&&x.tag!==S&&x.tagStr!==S&&x.tagStr+"of"!==S)return g.error('Failed to match tag: "'+S+'"');if(x.primitive||E!==null)return g.skip(E,'Failed to match body of: "'+S+'"');let k=g.save(),B=this._skipUntilEnd(g,'Failed to skip indefinite length body: "'+this.tag+'"');return g.isError(B)?B:(E=g.offset-k.offset,g.restore(k),g.skip(E,'Failed to match body of: "'+S+'"'))},m.prototype._skipUntilEnd=function(g,S){for(;;){let _=y(g,S);if(g.isError(_))return _;let x=M(g,_.primitive,S);if(g.isError(x))return x;let E;if(_.primitive||x!==null?E=g.skip(x):E=this._skipUntilEnd(g,S),g.isError(E))return E;if(_.tagStr==="end")break}},m.prototype._decodeList=function(g,S,_,x){let E=[];for(;!g.isEmpty();){let k=this._peekTag(g,"end");if(g.isError(k))return k;let B=_.decode(g,"der",x);if(g.isError(B)&&k)break;E.push(B)}return E},m.prototype._decodeStr=function(g,S){if(S==="bitstr"){let _=g.readUInt8();return g.isError(_)?_:{unused:_,data:g.raw()}}else if(S==="bmpstr"){let _=g.raw();if(_.length%2===1)return g.error("Decoding of string type: bmpstr length mismatch");let x="";for(let E=0;E<_.length/2;E++)x+=String.fromCharCode(_.readUInt16BE(E*2));return x}else if(S==="numstr"){let _=g.raw().toString("ascii");return this._isNumstr(_)?_:g.error("Decoding of string type: numstr unsupported characters")}else{if(S==="octstr")return g.raw();if(S==="objDesc")return g.raw();if(S==="printstr"){let _=g.raw().toString("ascii");return this._isPrintstr(_)?_:g.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(S)?g.raw().toString():g.error("Decoding of string type: "+S+" unsupported")}},m.prototype._decodeObjid=function(g,S,_){let x,E=[],k=0,B=0;for(;!g.isEmpty();)B=g.readUInt8(),k<<=7,k|=B&127,B&128||(E.push(k),k=0);B&128&&E.push(k);let T=E[0]/40|0,C=E[0]%40;if(_?x=E:x=[T,C].concat(E.slice(1)),S){let P=S[x.join(" ")];P===void 0&&(P=S[x.join(".")]),P!==void 0&&(x=P)}return x},m.prototype._decodeTime=function(g,S){let _=g.raw().toString(),x,E,k,B,T,C;if(S==="gentime")x=_.slice(0,4)|0,E=_.slice(4,6)|0,k=_.slice(6,8)|0,B=_.slice(8,10)|0,T=_.slice(10,12)|0,C=_.slice(12,14)|0;else if(S==="utctime")x=_.slice(0,2)|0,E=_.slice(2,4)|0,k=_.slice(4,6)|0,B=_.slice(6,8)|0,T=_.slice(8,10)|0,C=_.slice(10,12)|0,x<70?x=2e3+x:x=1900+x;else return g.error("Decoding "+S+" time is not supported yet");return Date.UTC(x,E-1,k,B,T,C,0)},m.prototype._decodeNull=function(){return null},m.prototype._decodeBool=function(g){let S=g.readUInt8();return g.isError(S)?S:S!==0},m.prototype._decodeInt=function(g,S){let _=g.raw(),x=new s(_);return S&&(x=S[x.toString(10)]||x),x},m.prototype._use=function(g,S){return typeof g=="function"&&(g=g(S)),g._getDecoder("der").tree};function y(b,g){let S=b.readUInt8(g);if(b.isError(S))return S;let _=n.tagClass[S>>6],x=(S&32)===0;if((S&31)===31){let k=S;for(S=0;(k&128)===128;){if(k=b.readUInt8(g),b.isError(k))return k;S<<=7,S|=k&127}}else S&=31;let E=n.tag[S];return{cls:_,primitive:x,tag:S,tagStr:E}}function M(b,g,S){let _=b.readUInt8(S);if(b.isError(_))return _;if(!g&&_===128)return null;if(!(_&128))return _;let x=_&127;if(x>4)return b.error("length octect is too long");_=0;for(let E=0;E<x;E++){_<<=8;let k=b.readUInt8(S);if(b.isError(k))return k;_|=k}return _}return u2}var l2={},p_=!1;function Xz(){if(p_)return l2;p_=!0;let i=Ye(),s=Nb().Buffer,a=pk();function u(n){a.call(this,n),this.enc="pem"}return i(u,a),l2=u,u.prototype.decode=function(p,m){let y=p.toString().split(/[\r\n]+/g),M=m.label.toUpperCase(),b=/^-----(BEGIN|END) ([^-]+)-----$/,g=-1,S=-1;for(let E=0;E<y.length;E++){let k=y[E].match(b);if(k!==null&&k[2]===M)if(g===-1){if(k[1]!=="BEGIN")break;g=E}else{if(k[1]!=="END")break;S=E;break}}if(g===-1||S===-1)throw new Error("PEM section not found for: "+M);let _=y.slice(g+1,S).join("");_.replace(/[^a-z0-9+/=]+/gi,"");let x=s.from(_,"base64");return a.prototype.decode.call(this,x,m)},l2}var c2={},m_=!1;function mk(){if(m_)return c2;m_=!0;let i=c2;return i.der=pk(),i.pem=Xz(),c2}var d2={},v_=!1;function Jz(){if(v_)return d2;v_=!0;let i=dk(),s=mk(),a=Ye(),u=d2;u.define=function(m,y){return new n(m,y)};function n(p,m){this.name=p,this.body=m,this.decoders={},this.encoders={}}return n.prototype._createNamed=function(m){let y=this.name;function M(b){this._initNamed(b,y)}return a(M,m),M.prototype._initNamed=function(g,S){m.call(this,g,S)},new M(this)},n.prototype._getDecoder=function(m){return m=m||"der",this.decoders.hasOwnProperty(m)||(this.decoders[m]=this._createNamed(s[m])),this.decoders[m]},n.prototype.decode=function(m,y,M){return this._getDecoder(y).decode(m,M)},n.prototype._getEncoder=function(m){return m=m||"der",this.encoders.hasOwnProperty(m)||(this.encoders[m]=this._createNamed(i[m])),this.encoders[m]},n.prototype.encode=function(m,y,M){return this._getEncoder(y).encode(m,M)},d2}var p2={},g_=!1;function Yz(){if(g_)return p2;g_=!0;let i=p2;return i.Reporter=qb().Reporter,i.DecoderBuffer=ou().DecoderBuffer,i.EncoderBuffer=ou().EncoderBuffer,i.Node=zb(),p2}var m2={},b_=!1;function Qz(){if(b_)return m2;b_=!0;let i=m2;return i._reverse=function(a){let u={};return Object.keys(a).forEach(function(n){(n|0)==n&&(n=n|0);let p=a[n];u[p]=n}),u},i.der=Ub(),m2}var v2={},y_=!1;function vk(){if(y_)return v2;y_=!0;let i=v2;return i.bignum=lk(),i.define=Jz().define,i.base=Yz(),i.constants=Qz(),i.decoders=mk(),i.encoders=dk(),v2}var g2={},w_=!1;function tU(){if(w_)return g2;w_=!0;var i=vk(),s=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),u=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),n=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(u),this.key("subjectPublicKey").bitstr())}),p=i.define("RelativeDistinguishedName",function(){this.setof(a)}),m=i.define("RDNSequence",function(){this.seqof(p)}),y=i.define("Name",function(){this.choice({rdnSequence:this.use(m)})}),M=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(s),this.key("notAfter").use(s))}),b=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),g=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(u),this.key("issuer").use(y),this.key("validity").use(M),this.key("subject").use(y),this.key("subjectPublicKeyInfo").use(n),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(b).optional())}),S=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(g),this.key("signatureAlgorithm").use(u),this.key("signatureValue").bitstr())});return g2=S,g2}var Rn={},M_=!1;function eU(){if(M_)return Rn;M_=!0;var i=vk();Rn.certificate=tU();var s=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Rn.RSAPrivateKey=s;var a=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Rn.RSAPublicKey=a;var u=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())});Rn.PublicKey=u;var n=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),p=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())});Rn.PrivateKey=p;var m=i.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Rn.EncryptedPrivateKey=m;var y=i.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Rn.DSAPrivateKey=y,Rn.DSAparam=i.define("DSAparam",function(){this.int()});var M=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(b),this.key("publicKey").optional().explicit(1).bitstr())});Rn.ECPrivateKey=M;var b=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});return Rn.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),Rn}var rU={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"},b2={},__=!1;function iU(){if(__)return b2;__=!0;var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,u=cc(),n=yb(),p=Qe().Buffer;return b2=function(m,y){var M=m.toString(),b=M.match(i),g;if(b){var _="aes"+b[1],x=p.from(b[2],"hex"),E=p.from(b[3].replace(/[\r\n]/g,""),"base64"),k=u(y,x.slice(0,8),parseInt(b[1],10)).key,B=[],T=n.createDecipheriv(_,k,x);B.push(T.update(E)),B.push(T.final()),g=p.concat(B)}else{var S=M.match(a);g=p.from(S[2].replace(/[\r\n]/g,""),"base64")}var C=M.match(s)[1];return{tag:C,data:g}},b2}var y2={},S_=!1;function xc(){if(S_)return y2;S_=!0;var i=eU(),s=rU,a=iU(),u=yb(),n=Yx(),p=Qe().Buffer;y2=m;function m(M){var b;typeof M=="object"&&!p.isBuffer(M)&&(b=M.passphrase,M=M.key),typeof M=="string"&&(M=p.from(M));var g=a(M,b),S=g.tag,_=g.data,x,E;switch(S){case"CERTIFICATE":E=i.certificate.decode(_,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(E||(E=i.PublicKey.decode(_,"der")),x=E.algorithm.algorithm.join("."),x){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(E.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return E.subjectPrivateKey=E.subjectPublicKey,{type:"ec",data:E};case"1.2.840.10040.4.1":return E.algorithm.params.pub_key=i.DSAparam.decode(E.subjectPublicKey.data,"der"),{type:"dsa",data:E.algorithm.params};default:throw new Error("unknown key id "+x)}case"ENCRYPTED PRIVATE KEY":_=i.EncryptedPrivateKey.decode(_,"der"),_=y(_,b);case"PRIVATE KEY":switch(E=i.PrivateKey.decode(_,"der"),x=E.algorithm.algorithm.join("."),x){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(E.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:E.algorithm.curve,privateKey:i.ECPrivateKey.decode(E.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return E.algorithm.params.priv_key=i.DSAparam.decode(E.subjectPrivateKey,"der"),{type:"dsa",params:E.algorithm.params};default:throw new Error("unknown key id "+x)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(_,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(_,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(_,"der")};case"EC PRIVATE KEY":return _=i.ECPrivateKey.decode(_,"der"),{curve:_.parameters.value,privateKey:_.privateKey};default:throw new Error("unknown key type "+S)}}m.signature=i.signature;function y(M,b){var g=M.algorithm.decrypt.kde.kdeparams.salt,S=parseInt(M.algorithm.decrypt.kde.kdeparams.iters.toString(),10),_=s[M.algorithm.decrypt.cipher.algo.join(".")],x=M.algorithm.decrypt.cipher.iv,E=M.subjectPrivateKey,k=parseInt(_.split("-")[1],10)/8,B=n.pbkdf2Sync(b,g,S,k,"sha1"),T=u.createDecipheriv(_,B,x),C=[];return C.push(T.update(E)),C.push(T.final()),p.concat(C)}return y2}var gk={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"},Cf={},x_=!1;function nU(){if(x_)return Cf;x_=!0;var i=Qe().Buffer,s=Gx(),a=Pb(),u=Ob().ec,n=Cb(),p=xc(),m=gk;function y(B,T,C,P,G){var U=p(T);if(U.curve){if(P!=="ecdsa"&&P!=="ecdsa/rsa")throw new Error("wrong private key type");return M(B,U)}else if(U.type==="dsa"){if(P!=="dsa")throw new Error("wrong private key type");return b(B,U,C)}else if(P!=="rsa"&&P!=="ecdsa/rsa")throw new Error("wrong private key type");B=i.concat([G,B]);for(var V=U.modulus.byteLength(),I=[0,1];B.length+I.length+1<V;)I.push(255);I.push(0);for(var D=-1;++D<B.length;)I.push(B[D]);var z=a(I,U);return z}function M(B,T){var C=m[T.curve.join(".")];if(!C)throw new Error("unknown curve "+T.curve.join("."));var P=new u(C),G=P.keyFromPrivate(T.privateKey),U=G.sign(B);return i.from(U.toDER())}function b(B,T,C){for(var P=T.params.priv_key,G=T.params.p,U=T.params.q,V=T.params.g,I=new n(0),D,z=_(B,U).mod(U),d=!1,t=S(P,U,B,C);d===!1;)D=E(U,t,C),I=k(V,D,G,U),d=D.invm(U).imul(z.add(P.mul(I))).mod(U),d.cmpn(0)===0&&(d=!1,I=new n(0));return g(I,d)}function g(B,T){B=B.toArray(),T=T.toArray(),B[0]&128&&(B=[0].concat(B)),T[0]&128&&(T=[0].concat(T));var C=B.length+T.length+4,P=[48,C,2,B.length];return P=P.concat(B,[2,T.length],T),i.from(P)}function S(B,T,C,P){if(B=i.from(B.toArray()),B.length<T.byteLength()){var G=i.alloc(T.byteLength()-B.length);B=i.concat([G,B])}var U=C.length,V=x(C,T),I=i.alloc(U);I.fill(1);var D=i.alloc(U);return D=s(P,D).update(I).update(i.from([0])).update(B).update(V).digest(),I=s(P,D).update(I).digest(),D=s(P,D).update(I).update(i.from([1])).update(B).update(V).digest(),I=s(P,D).update(I).digest(),{k:D,v:I}}function _(B,T){var C=new n(B),P=(B.length<<3)-T.bitLength();return P>0&&C.ishrn(P),C}function x(B,T){B=_(B,T),B=B.mod(T);var C=i.from(B.toArray());if(C.length<T.byteLength()){var P=i.alloc(T.byteLength()-C.length);C=i.concat([P,C])}return C}function E(B,T,C){var P,G;do{for(P=i.alloc(0);P.length*8<B.bitLength();)T.v=s(C,T.k).update(T.v).digest(),P=i.concat([P,T.v]);G=_(P,B),T.k=s(C,T.k).update(T.v).update(i.from([0])).digest(),T.v=s(C,T.k).update(T.v).digest()}while(G.cmp(B)!==-1);return G}function k(B,T,C,P){return B.toRed(n.mont(C)).redPow(T).fromRed().mod(P)}return Cf=y,Cf.getKey=S,Cf.makeKey=E,Cf}var w2={},E_=!1;function oU(){if(E_)return w2;E_=!0;var i=Qe().Buffer,s=Cb(),a=Ob().ec,u=xc(),n=gk;function p(b,g,S,_,x){var E=u(S);if(E.type==="ec"){if(_!=="ecdsa"&&_!=="ecdsa/rsa")throw new Error("wrong public key type");return m(b,g,E)}else if(E.type==="dsa"){if(_!=="dsa")throw new Error("wrong public key type");return y(b,g,E)}else if(_!=="rsa"&&_!=="ecdsa/rsa")throw new Error("wrong public key type");g=i.concat([x,g]);for(var k=E.modulus.byteLength(),B=[1],T=0;g.length+B.length+2<k;)B.push(255),T++;B.push(0);for(var C=-1;++C<g.length;)B.push(g[C]);B=i.from(B);var P=s.mont(E.modulus);b=new s(b).toRed(P),b=b.redPow(new s(E.publicExponent)),b=i.from(b.fromRed().toArray());var G=T<8?1:0;for(k=Math.min(b.length,B.length),b.length!==B.length&&(G=1),C=-1;++C<k;)G|=b[C]^B[C];return G===0}function m(b,g,S){var _=n[S.data.algorithm.curve.join(".")];if(!_)throw new Error("unknown curve "+S.data.algorithm.curve.join("."));var x=new a(_),E=S.data.subjectPrivateKey.data;return x.verify(g,b,E)}function y(b,g,S){var _=S.data.p,x=S.data.q,E=S.data.g,k=S.data.pub_key,B=u.signature.decode(b,"der"),T=B.s,C=B.r;M(T,x),M(C,x);var P=s.mont(_),G=T.invm(x),U=E.toRed(P).redPow(new s(g).mul(G).mod(x)).fromRed().mul(k.toRed(P).redPow(C.mul(G).mod(x)).fromRed()).mod(_).mod(x);return U.cmp(C)===0}function M(b,g){if(b.cmpn(0)<=0)throw new Error("invalid sig");if(b.cmp(g)>=g)throw new Error("invalid sig")}return w2=p,w2}var M2={},A_=!1,qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function aU(){if(A_)return M2;A_=!0;var i=Qe().Buffer,s=fu(),a=Sx(),u=Ye(),n=nU(),p=oU(),m=Zx;Object.keys(m).forEach(function(S){m[S].id=i.from(m[S].id,"hex"),m[S.toLowerCase()]=m[S]});function y(S){a.Writable.call(this||qr);var _=m[S];if(!_)throw new Error("Unknown message digest");(this||qr)._hashType=_.hash,(this||qr)._hash=s(_.hash),(this||qr)._tag=_.id,(this||qr)._signType=_.sign}u(y,a.Writable),y.prototype._write=function(_,x,E){(this||qr)._hash.update(_),E()},y.prototype.update=function(_,x){return typeof _=="string"&&(_=i.from(_,x)),(this||qr)._hash.update(_),this||qr},y.prototype.sign=function(_,x){this.end();var E=(this||qr)._hash.digest(),k=n(E,_,(this||qr)._hashType,(this||qr)._signType,(this||qr)._tag);return x?k.toString(x):k};function M(S){a.Writable.call(this||qr);var _=m[S];if(!_)throw new Error("Unknown message digest");(this||qr)._hash=s(_.hash),(this||qr)._tag=_.id,(this||qr)._signType=_.sign}u(M,a.Writable),M.prototype._write=function(_,x,E){(this||qr)._hash.update(_),E()},M.prototype.update=function(_,x){return typeof _=="string"&&(_=i.from(_,x)),(this||qr)._hash.update(_),this||qr},M.prototype.verify=function(_,x,E){typeof x=="string"&&(x=i.from(x,E)),this.end();var k=(this||qr)._hash.digest();return p(x,k,_,(this||qr)._signType,(this||qr)._tag)};function b(S){return new y(S)}function g(S){return new M(S)}return M2={Sign:b,Verify:g,createSign:b,createVerify:g},M2}var bk={},k_=!1,_2={exports:bk},at=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function sU(){return k_||(k_=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||at).negative=0,(this||at).words=null,(this||at).length=0,(this||at).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Pe.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||at).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||at).negative=1,t=-t),t<67108864?((this||at).words=[t&67108863],(this||at).length=1):t<4503599627370496?((this||at).words=[t&67108863,t/67108864&67108863],(this||at).length=2):(a(t<9007199254740992),(this||at).words=[t&67108863,t/67108864&67108863,1],(this||at).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||at).words=[0],(this||at).length=1,this||at;(this||at).length=Math.ceil(t.length/3),(this||at).words=new Array((this||at).length);for(var h=0;h<(this||at).length;h++)(this||at).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||at).words[f]|=v<<w&67108863,(this||at).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||at).words[f]|=v<<w&67108863,(this||at).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||at).length=Math.ceil((t.length-r)/6),(this||at).words=new Array((this||at).length);for(var h=0;h<(this||at).length;h++)(this||at).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||at).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||at).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||at).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||at).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||at).words=[0],(this||at).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||at).words[0]+e<67108864?(this||at).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||at).words[0]+e<67108864?(this||at).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||at).length);for(var r=0;r<(this||at).length;r++)t.words[r]=(this||at).words[r];t.length=(this||at).length,t.negative=(this||at).negative,t.red=(this||at).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||at).length<t;)(this||at).words[(this||at).length++]=0;return this||at},n.prototype.strip=function(){for(;(this||at).length>1&&(this||at).words[(this||at).length-1]===0;)(this||at).length--;return this._normSign()},n.prototype._normSign=function(){return(this||at).length===1&&(this||at).words[0]===0&&((this||at).negative=0),this||at},n.prototype.inspect=function(){return((this||at).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||at).length;v++){var w=(this||at).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||at).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||at).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||at).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||at).words[0];return(this||at).length===2?t+=(this||at).words[1]*67108864:(this||at).length===3&&(this||at).words[2]===1?t+=4503599627370496+(this||at).words[1]*67108864:(this||at).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||at).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||at).words[(this||at).length-1],r=this._countBits(t);return((this||at).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||at).length;r++){var o=this._zeroBits((this||at).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||at).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||at).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||at).negative^=1),this||at},n.prototype.iuor=function(t){for(;(this||at).length<t.length;)(this||at).words[(this||at).length++]=0;for(var r=0;r<t.length;r++)(this||at).words[r]=(this||at).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||at).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||at).length>t.length?this.clone().ior(t):t.clone().ior(this||at)},n.prototype.uor=function(t){return(this||at).length>t.length?this.clone().iuor(t):t.clone().iuor(this||at)},n.prototype.iuand=function(t){var r;(this||at).length>t.length?r=t:r=this||at;for(var o=0;o<r.length;o++)(this||at).words[o]=(this||at).words[o]&t.words[o];return(this||at).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||at).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||at).length>t.length?this.clone().iand(t):t.clone().iand(this||at)},n.prototype.uand=function(t){return(this||at).length>t.length?this.clone().iuand(t):t.clone().iuand(this||at)},n.prototype.iuxor=function(t){var r,o;(this||at).length>t.length?(r=this||at,o=t):(r=t,o=this||at);for(var h=0;h<o.length;h++)(this||at).words[h]=r.words[h]^o.words[h];if((this||at)!==r)for(;h<r.length;h++)(this||at).words[h]=r.words[h];return(this||at).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||at).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||at).length>t.length?this.clone().ixor(t):t.clone().ixor(this||at)},n.prototype.uxor=function(t){return(this||at).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||at)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||at).words[h]=~(this||at).words[h]&67108863;return o>0&&((this||at).words[h]=~(this||at).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||at).words[o]=(this||at).words[o]|1<<h:(this||at).words[o]=(this||at).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||at).negative!==0&&t.negative===0)return(this||at).negative=0,r=this.isub(t),(this||at).negative^=1,this._normSign();if((this||at).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||at).length>t.length?(o=this||at,h=t):(o=t,h=this||at);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||at).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||at).words[v]=r&67108863,f=r>>>26;if((this||at).length=o.length,f!==0)(this||at).words[(this||at).length]=f,(this||at).length++;else if(o!==(this||at))for(;v<o.length;v++)(this||at).words[v]=o.words[v];return this||at},n.prototype.add=function(t){var r;return t.negative!==0&&(this||at).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||at).negative!==0?((this||at).negative=0,r=t.sub(this||at),(this||at).negative=1,r):(this||at).length>t.length?this.clone().iadd(t):t.clone().iadd(this||at)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||at).negative!==0)return(this||at).negative=0,this.iadd(t),(this||at).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||at).negative=0,(this||at).length=1,(this||at).words[0]=0,this||at;var h,f;o>0?(h=this||at,f=t):(h=t,f=this||at);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||at).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||at).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||at))for(;w<h.length;w++)(this||at).words[w]=h.words[w];return(this||at).length=Math.max((this||at).length,w),h!==(this||at)&&((this||at).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||at).length+t.length;return(this||at).length===10&&t.length===10?o=E(this||at,t,r):h<63?o=x(this||at,t,r):h<1024?o=k(this||at,t,r):o=B(this||at,t,r),o};function T(d,t){(this||at).x=d,(this||at).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||at).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||at).length+t.length),B(this||at,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||at)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||at).length;o++){var h=((this||at).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||at).words[o]=f&67108863}return r!==0&&((this||at).words[o]=r,(this||at).length++),this||at},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||at)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||at,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||at).length;f++){var w=(this||at).words[f]&h,l=((this||at).words[f]|0)-w<<r;(this||at).words[f]=l|v,v=w>>>26-r}v&&((this||at).words[f]=v,(this||at).length++)}if(o!==0){for(f=(this||at).length-1;f>=0;f--)(this||at).words[f+o]=(this||at).words[f];for(f=0;f<o;f++)(this||at).words[f]=0;(this||at).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||at).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||at).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||at).words[e];l.length=v}if(v!==0)if((this||at).length>v)for((this||at).length-=v,e=0;e<(this||at).length;e++)(this||at).words[e]=(this||at).words[e+v];else(this||at).words[0]=0,(this||at).length=1;var c=0;for(e=(this||at).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||at).words[e]|0;(this||at).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||at).length===0&&((this||at).words[0]=0,(this||at).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||at).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||at).length<=o)return!1;var f=(this||at).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||at).negative===0,"imaskn works only with positive numbers"),(this||at).length<=o)return this||at;if(r!==0&&o++,(this||at).length=Math.min(o,(this||at).length),r!==0){var h=67108863^67108863>>>r<<r;(this||at).words[(this||at).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||at).negative!==0?(this||at).length===1&&((this||at).words[0]|0)<t?((this||at).words[0]=t-((this||at).words[0]|0),(this||at).negative=0,this||at):((this||at).negative=0,this.isubn(t),(this||at).negative=1,this||at):this._iaddn(t)},n.prototype._iaddn=function(t){(this||at).words[0]+=t;for(var r=0;r<(this||at).length&&(this||at).words[r]>=67108864;r++)(this||at).words[r]-=67108864,r===(this||at).length-1?(this||at).words[r+1]=1:(this||at).words[r+1]++;return(this||at).length=Math.max((this||at).length,r+1),this||at},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||at).negative!==0)return(this||at).negative=0,this.iaddn(t),(this||at).negative=1,this||at;if((this||at).words[0]-=t,(this||at).length===1&&(this||at).words[0]<0)(this||at).words[0]=-(this||at).words[0],(this||at).negative=1;else for(var r=0;r<(this||at).length&&(this||at).words[r]<0;r++)(this||at).words[r]+=67108864,(this||at).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||at).negative=0,this||at},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||at).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||at).words[f+o]=v&67108863}for(;f<(this||at).length-o;f++)v=((this||at).words[f+o]|0)+w,w=v>>26,(this||at).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||at).length;f++)v=-((this||at).words[f]|0)+w,w=v>>26,(this||at).words[f]=v&67108863;return(this||at).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||at).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||at).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||at).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||at).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||at).length||this.cmp(t)<0?{div:new n(0),mod:this||at}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||at).length-1;h>=0;h--)o=(r*o+((this||at).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||at).length-1;o>=0;o--){var h=((this||at).words[o]|0)+r*67108864;(this||at).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||at,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||at,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||at).words[0]&1)===0},n.prototype.isOdd=function(){return((this||at).words[0]&1)===1},n.prototype.andln=function(t){return(this||at).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||at).length<=o)return this._expand(o+1),(this||at).words[o]|=h,this||at;for(var f=h,v=o;f!==0&&v<(this||at).length;v++){var w=(this||at).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||at).words[v]=w}return f!==0&&((this||at).words[v]=f,(this||at).length++),this||at},n.prototype.isZero=function(){return(this||at).length===1&&(this||at).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||at).negative!==0&&!r)return-1;if((this||at).negative===0&&r)return 1;this.strip();var o;if((this||at).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||at).words[0]|0;o=h===t?0:h<t?-1:1}return(this||at).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||at).negative!==0&&t.negative===0)return-1;if((this||at).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||at).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||at).length>t.length)return 1;if((this||at).length<t.length)return-1;for(var r=0,o=(this||at).length-1;o>=0;o--){var h=(this||at).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||at).red,"Already a number in reduction context"),a((this||at).negative===0,"red works only with positives"),t.convertTo(this||at)._forceRed(t)},n.prototype.fromRed=function(){return a((this||at).red,"fromRed works only with numbers in reduction context"),(this||at).red.convertFrom(this||at)},n.prototype._forceRed=function(t){return(this||at).red=t,this||at},n.prototype.forceRed=function(t){return a(!(this||at).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||at).red,"redAdd works only with red numbers"),(this||at).red.add(this||at,t)},n.prototype.redIAdd=function(t){return a((this||at).red,"redIAdd works only with red numbers"),(this||at).red.iadd(this||at,t)},n.prototype.redSub=function(t){return a((this||at).red,"redSub works only with red numbers"),(this||at).red.sub(this||at,t)},n.prototype.redISub=function(t){return a((this||at).red,"redISub works only with red numbers"),(this||at).red.isub(this||at,t)},n.prototype.redShl=function(t){return a((this||at).red,"redShl works only with red numbers"),(this||at).red.shl(this||at,t)},n.prototype.redMul=function(t){return a((this||at).red,"redMul works only with red numbers"),(this||at).red._verify2(this||at,t),(this||at).red.mul(this||at,t)},n.prototype.redIMul=function(t){return a((this||at).red,"redMul works only with red numbers"),(this||at).red._verify2(this||at,t),(this||at).red.imul(this||at,t)},n.prototype.redSqr=function(){return a((this||at).red,"redSqr works only with red numbers"),(this||at).red._verify1(this||at),(this||at).red.sqr(this||at)},n.prototype.redISqr=function(){return a((this||at).red,"redISqr works only with red numbers"),(this||at).red._verify1(this||at),(this||at).red.isqr(this||at)},n.prototype.redSqrt=function(){return a((this||at).red,"redSqrt works only with red numbers"),(this||at).red._verify1(this||at),(this||at).red.sqrt(this||at)},n.prototype.redInvm=function(){return a((this||at).red,"redInvm works only with red numbers"),(this||at).red._verify1(this||at),(this||at).red.invm(this||at)},n.prototype.redNeg=function(){return a((this||at).red,"redNeg works only with red numbers"),(this||at).red._verify1(this||at),(this||at).red.neg(this||at)},n.prototype.redPow=function(t){return a((this||at).red&&!t.red,"redPow(normalNum)"),(this||at).red._verify1(this||at),(this||at).red.pow(this||at,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||at).name=d,(this||at).p=new n(t,16),(this||at).n=(this||at).p.bitLength(),(this||at).k=new n(1).iushln((this||at).n).isub((this||at).p),(this||at).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||at).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||at).tmp),r=this.imulK(r),r=r.iadd((this||at).tmp),o=r.bitLength();while(o>(this||at).n);var h=o<(this||at).n?-1:r.ucmp((this||at).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||at).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||at).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||at).k)};function G(){P.call(this||at,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||at,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||at,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||at,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||at).m=t.p,(this||at).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||at).m=d,(this||at).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||at).prime?(this||at).prime.ireduce(t)._forceRed(this||at):t.umod((this||at).m)._forceRed(this||at)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||at).m.sub(t)._forceRed(this||at)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||at).m)>=0&&o.isub((this||at).m),o._forceRed(this||at)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||at).m)>=0&&o.isub((this||at).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||at).m),o._forceRed(this||at)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||at).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||at).m.andln(3);if(a(r%2===1),r===3){var o=(this||at).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||at).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||at),w=v.redNeg(),l=(this||at).m.subn(1).iushrn(1),e=(this||at).m.bitLength();for(e=new n(2*e*e).toRed(this||at);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||at).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||at);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||at),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||at).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||at,d),(this||at).shift=(this||at).m.bitLength(),(this||at).shift%26!==0&&((this||at).shift+=26-(this||at).shift%26),(this||at).r=new n(1).iushln((this||at).shift),(this||at).r2=this.imod((this||at).r.sqr()),(this||at).rinv=(this||at).r._invmp((this||at).m),(this||at).minv=(this||at).rinv.mul((this||at).r).isubn(1).div((this||at).m),(this||at).minv=(this||at).minv.umod((this||at).r),(this||at).minv=(this||at).r.sub((this||at).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||at).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||at).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||at).shift).mul((this||at).minv).imaskn((this||at).shift).mul((this||at).m),f=o.isub(h).iushrn((this||at).shift),v=f;return f.cmp((this||at).m)>=0?v=f.isub((this||at).m):f.cmpn(0)<0&&(v=f.iadd((this||at).m)),v._forceRed(this||at)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||at);var o=t.mul(r),h=o.maskn((this||at).shift).mul((this||at).minv).imaskn((this||at).shift).mul((this||at).m),f=o.isub(h).iushrn((this||at).shift),v=f;return f.cmp((this||at).m)>=0?v=f.isub((this||at).m):f.cmpn(0)<0&&(v=f.iadd((this||at).m)),v._forceRed(this||at)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||at).m).mul((this||at).r2));return r._forceRed(this||at)}}(_2,bk)),_2.exports}var S2={},R_=!1,Qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function hU(){if(R_)return S2;R_=!0;var i=Pe.Buffer,s=Ob(),a=sU();S2=function(y){return new n(y)};var u={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};u.p224=u.secp224r1,u.p256=u.secp256r1=u.prime256v1,u.p192=u.secp192r1=u.prime192v1,u.p384=u.secp384r1,u.p521=u.secp521r1;function n(m){(this||Qr).curveType=u[m],(this||Qr).curveType||((this||Qr).curveType={name:m}),(this||Qr).curve=new s.ec((this||Qr).curveType.name),(this||Qr).keys=void 0}n.prototype.generateKeys=function(m,y){return(this||Qr).keys=(this||Qr).curve.genKeyPair(),this.getPublicKey(m,y)},n.prototype.computeSecret=function(m,y,M){y=y||"utf8",i.isBuffer(m)||(m=new i(m,y));var b=(this||Qr).curve.keyFromPublic(m).getPublic(),g=b.mul((this||Qr).keys.getPrivate()).getX();return p(g,M,(this||Qr).curveType.byteLength)},n.prototype.getPublicKey=function(m,y){var M=(this||Qr).keys.getPublic(y==="compressed",!0);return y==="hybrid"&&(M[M.length-1]%2?M[0]=7:M[0]=6),p(M,m)},n.prototype.getPrivateKey=function(m){return p((this||Qr).keys.getPrivate(),m)},n.prototype.setPublicKey=function(m,y){return y=y||"utf8",i.isBuffer(m)||(m=new i(m,y)),(this||Qr).keys._importPublic(m),this||Qr},n.prototype.setPrivateKey=function(m,y){y=y||"utf8",i.isBuffer(m)||(m=new i(m,y));var M=new a(m);return M=M.toString(16),(this||Qr).keys=(this||Qr).curve.genKeyPair(),(this||Qr).keys._importPrivate(M),this||Qr};function p(m,y,M){Array.isArray(m)||(m=m.toArray());var b=new i(m);if(M&&b.length<M){var g=new i(M-b.length);g.fill(0),b=i.concat([g,b])}return y?b.toString(y):b}return S2}var x2={},B_=!1;function yk(){if(B_)return x2;B_=!0;var i=fu(),s=Qe().Buffer;x2=function(u,n){for(var p=s.alloc(0),m=0,y;p.length<n;)y=a(m++),p=s.concat([p,i("sha1").update(u).update(y).digest()]);return p.slice(0,n)};function a(u){var n=s.allocUnsafe(4);return n.writeUInt32BE(u,0),n}return x2}var E2={},T_=!1;function wk(){return T_||(T_=!0,E2=function(s,a){for(var u=s.length,n=-1;++n<u;)s[n]^=a[n];return s}),E2}var Mk={},$_=!1,A2={exports:Mk},st=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Fb(){return $_||($_=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||st).negative=0,(this||st).words=null,(this||st).length=0,(this||st).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Pe.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||st).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||st).negative=1,t=-t),t<67108864?((this||st).words=[t&67108863],(this||st).length=1):t<4503599627370496?((this||st).words=[t&67108863,t/67108864&67108863],(this||st).length=2):(a(t<9007199254740992),(this||st).words=[t&67108863,t/67108864&67108863,1],(this||st).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||st).words=[0],(this||st).length=1,this||st;(this||st).length=Math.ceil(t.length/3),(this||st).words=new Array((this||st).length);for(var h=0;h<(this||st).length;h++)(this||st).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||st).words[f]|=v<<w&67108863,(this||st).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||st).words[f]|=v<<w&67108863,(this||st).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||st).length=Math.ceil((t.length-r)/6),(this||st).words=new Array((this||st).length);for(var h=0;h<(this||st).length;h++)(this||st).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||st).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||st).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||st).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||st).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||st).words=[0],(this||st).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||st).words[0]+e<67108864?(this||st).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||st).words[0]+e<67108864?(this||st).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||st).length);for(var r=0;r<(this||st).length;r++)t.words[r]=(this||st).words[r];t.length=(this||st).length,t.negative=(this||st).negative,t.red=(this||st).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||st).length<t;)(this||st).words[(this||st).length++]=0;return this||st},n.prototype.strip=function(){for(;(this||st).length>1&&(this||st).words[(this||st).length-1]===0;)(this||st).length--;return this._normSign()},n.prototype._normSign=function(){return(this||st).length===1&&(this||st).words[0]===0&&((this||st).negative=0),this||st},n.prototype.inspect=function(){return((this||st).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||st).length;v++){var w=(this||st).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||st).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||st).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||st).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||st).words[0];return(this||st).length===2?t+=(this||st).words[1]*67108864:(this||st).length===3&&(this||st).words[2]===1?t+=4503599627370496+(this||st).words[1]*67108864:(this||st).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||st).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||st).words[(this||st).length-1],r=this._countBits(t);return((this||st).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||st).length;r++){var o=this._zeroBits((this||st).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||st).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||st).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||st).negative^=1),this||st},n.prototype.iuor=function(t){for(;(this||st).length<t.length;)(this||st).words[(this||st).length++]=0;for(var r=0;r<t.length;r++)(this||st).words[r]=(this||st).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||st).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||st).length>t.length?this.clone().ior(t):t.clone().ior(this||st)},n.prototype.uor=function(t){return(this||st).length>t.length?this.clone().iuor(t):t.clone().iuor(this||st)},n.prototype.iuand=function(t){var r;(this||st).length>t.length?r=t:r=this||st;for(var o=0;o<r.length;o++)(this||st).words[o]=(this||st).words[o]&t.words[o];return(this||st).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||st).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||st).length>t.length?this.clone().iand(t):t.clone().iand(this||st)},n.prototype.uand=function(t){return(this||st).length>t.length?this.clone().iuand(t):t.clone().iuand(this||st)},n.prototype.iuxor=function(t){var r,o;(this||st).length>t.length?(r=this||st,o=t):(r=t,o=this||st);for(var h=0;h<o.length;h++)(this||st).words[h]=r.words[h]^o.words[h];if((this||st)!==r)for(;h<r.length;h++)(this||st).words[h]=r.words[h];return(this||st).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||st).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||st).length>t.length?this.clone().ixor(t):t.clone().ixor(this||st)},n.prototype.uxor=function(t){return(this||st).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||st)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||st).words[h]=~(this||st).words[h]&67108863;return o>0&&((this||st).words[h]=~(this||st).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||st).words[o]=(this||st).words[o]|1<<h:(this||st).words[o]=(this||st).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||st).negative!==0&&t.negative===0)return(this||st).negative=0,r=this.isub(t),(this||st).negative^=1,this._normSign();if((this||st).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||st).length>t.length?(o=this||st,h=t):(o=t,h=this||st);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||st).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||st).words[v]=r&67108863,f=r>>>26;if((this||st).length=o.length,f!==0)(this||st).words[(this||st).length]=f,(this||st).length++;else if(o!==(this||st))for(;v<o.length;v++)(this||st).words[v]=o.words[v];return this||st},n.prototype.add=function(t){var r;return t.negative!==0&&(this||st).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||st).negative!==0?((this||st).negative=0,r=t.sub(this||st),(this||st).negative=1,r):(this||st).length>t.length?this.clone().iadd(t):t.clone().iadd(this||st)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||st).negative!==0)return(this||st).negative=0,this.iadd(t),(this||st).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||st).negative=0,(this||st).length=1,(this||st).words[0]=0,this||st;var h,f;o>0?(h=this||st,f=t):(h=t,f=this||st);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||st).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||st).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||st))for(;w<h.length;w++)(this||st).words[w]=h.words[w];return(this||st).length=Math.max((this||st).length,w),h!==(this||st)&&((this||st).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||st).length+t.length;return(this||st).length===10&&t.length===10?o=E(this||st,t,r):h<63?o=x(this||st,t,r):h<1024?o=k(this||st,t,r):o=B(this||st,t,r),o};function T(d,t){(this||st).x=d,(this||st).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||st).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||st).length+t.length),B(this||st,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||st)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||st).length;o++){var h=((this||st).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||st).words[o]=f&67108863}return r!==0&&((this||st).words[o]=r,(this||st).length++),this||st},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||st)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||st,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||st).length;f++){var w=(this||st).words[f]&h,l=((this||st).words[f]|0)-w<<r;(this||st).words[f]=l|v,v=w>>>26-r}v&&((this||st).words[f]=v,(this||st).length++)}if(o!==0){for(f=(this||st).length-1;f>=0;f--)(this||st).words[f+o]=(this||st).words[f];for(f=0;f<o;f++)(this||st).words[f]=0;(this||st).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||st).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||st).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||st).words[e];l.length=v}if(v!==0)if((this||st).length>v)for((this||st).length-=v,e=0;e<(this||st).length;e++)(this||st).words[e]=(this||st).words[e+v];else(this||st).words[0]=0,(this||st).length=1;var c=0;for(e=(this||st).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||st).words[e]|0;(this||st).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||st).length===0&&((this||st).words[0]=0,(this||st).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||st).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||st).length<=o)return!1;var f=(this||st).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||st).negative===0,"imaskn works only with positive numbers"),(this||st).length<=o)return this||st;if(r!==0&&o++,(this||st).length=Math.min(o,(this||st).length),r!==0){var h=67108863^67108863>>>r<<r;(this||st).words[(this||st).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||st).negative!==0?(this||st).length===1&&((this||st).words[0]|0)<t?((this||st).words[0]=t-((this||st).words[0]|0),(this||st).negative=0,this||st):((this||st).negative=0,this.isubn(t),(this||st).negative=1,this||st):this._iaddn(t)},n.prototype._iaddn=function(t){(this||st).words[0]+=t;for(var r=0;r<(this||st).length&&(this||st).words[r]>=67108864;r++)(this||st).words[r]-=67108864,r===(this||st).length-1?(this||st).words[r+1]=1:(this||st).words[r+1]++;return(this||st).length=Math.max((this||st).length,r+1),this||st},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||st).negative!==0)return(this||st).negative=0,this.iaddn(t),(this||st).negative=1,this||st;if((this||st).words[0]-=t,(this||st).length===1&&(this||st).words[0]<0)(this||st).words[0]=-(this||st).words[0],(this||st).negative=1;else for(var r=0;r<(this||st).length&&(this||st).words[r]<0;r++)(this||st).words[r]+=67108864,(this||st).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||st).negative=0,this||st},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||st).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||st).words[f+o]=v&67108863}for(;f<(this||st).length-o;f++)v=((this||st).words[f+o]|0)+w,w=v>>26,(this||st).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||st).length;f++)v=-((this||st).words[f]|0)+w,w=v>>26,(this||st).words[f]=v&67108863;return(this||st).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||st).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||st).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||st).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||st).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||st).length||this.cmp(t)<0?{div:new n(0),mod:this||st}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||st).length-1;h>=0;h--)o=(r*o+((this||st).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||st).length-1;o>=0;o--){var h=((this||st).words[o]|0)+r*67108864;(this||st).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||st,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||st,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||st).words[0]&1)===0},n.prototype.isOdd=function(){return((this||st).words[0]&1)===1},n.prototype.andln=function(t){return(this||st).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||st).length<=o)return this._expand(o+1),(this||st).words[o]|=h,this||st;for(var f=h,v=o;f!==0&&v<(this||st).length;v++){var w=(this||st).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||st).words[v]=w}return f!==0&&((this||st).words[v]=f,(this||st).length++),this||st},n.prototype.isZero=function(){return(this||st).length===1&&(this||st).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||st).negative!==0&&!r)return-1;if((this||st).negative===0&&r)return 1;this.strip();var o;if((this||st).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||st).words[0]|0;o=h===t?0:h<t?-1:1}return(this||st).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||st).negative!==0&&t.negative===0)return-1;if((this||st).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||st).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||st).length>t.length)return 1;if((this||st).length<t.length)return-1;for(var r=0,o=(this||st).length-1;o>=0;o--){var h=(this||st).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||st).red,"Already a number in reduction context"),a((this||st).negative===0,"red works only with positives"),t.convertTo(this||st)._forceRed(t)},n.prototype.fromRed=function(){return a((this||st).red,"fromRed works only with numbers in reduction context"),(this||st).red.convertFrom(this||st)},n.prototype._forceRed=function(t){return(this||st).red=t,this||st},n.prototype.forceRed=function(t){return a(!(this||st).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||st).red,"redAdd works only with red numbers"),(this||st).red.add(this||st,t)},n.prototype.redIAdd=function(t){return a((this||st).red,"redIAdd works only with red numbers"),(this||st).red.iadd(this||st,t)},n.prototype.redSub=function(t){return a((this||st).red,"redSub works only with red numbers"),(this||st).red.sub(this||st,t)},n.prototype.redISub=function(t){return a((this||st).red,"redISub works only with red numbers"),(this||st).red.isub(this||st,t)},n.prototype.redShl=function(t){return a((this||st).red,"redShl works only with red numbers"),(this||st).red.shl(this||st,t)},n.prototype.redMul=function(t){return a((this||st).red,"redMul works only with red numbers"),(this||st).red._verify2(this||st,t),(this||st).red.mul(this||st,t)},n.prototype.redIMul=function(t){return a((this||st).red,"redMul works only with red numbers"),(this||st).red._verify2(this||st,t),(this||st).red.imul(this||st,t)},n.prototype.redSqr=function(){return a((this||st).red,"redSqr works only with red numbers"),(this||st).red._verify1(this||st),(this||st).red.sqr(this||st)},n.prototype.redISqr=function(){return a((this||st).red,"redISqr works only with red numbers"),(this||st).red._verify1(this||st),(this||st).red.isqr(this||st)},n.prototype.redSqrt=function(){return a((this||st).red,"redSqrt works only with red numbers"),(this||st).red._verify1(this||st),(this||st).red.sqrt(this||st)},n.prototype.redInvm=function(){return a((this||st).red,"redInvm works only with red numbers"),(this||st).red._verify1(this||st),(this||st).red.invm(this||st)},n.prototype.redNeg=function(){return a((this||st).red,"redNeg works only with red numbers"),(this||st).red._verify1(this||st),(this||st).red.neg(this||st)},n.prototype.redPow=function(t){return a((this||st).red&&!t.red,"redPow(normalNum)"),(this||st).red._verify1(this||st),(this||st).red.pow(this||st,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||st).name=d,(this||st).p=new n(t,16),(this||st).n=(this||st).p.bitLength(),(this||st).k=new n(1).iushln((this||st).n).isub((this||st).p),(this||st).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||st).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||st).tmp),r=this.imulK(r),r=r.iadd((this||st).tmp),o=r.bitLength();while(o>(this||st).n);var h=o<(this||st).n?-1:r.ucmp((this||st).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||st).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||st).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||st).k)};function G(){P.call(this||st,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||st,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||st,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||st,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||st).m=t.p,(this||st).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||st).m=d,(this||st).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||st).prime?(this||st).prime.ireduce(t)._forceRed(this||st):t.umod((this||st).m)._forceRed(this||st)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||st).m.sub(t)._forceRed(this||st)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||st).m)>=0&&o.isub((this||st).m),o._forceRed(this||st)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||st).m)>=0&&o.isub((this||st).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||st).m),o._forceRed(this||st)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||st).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||st).m.andln(3);if(a(r%2===1),r===3){var o=(this||st).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||st).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||st),w=v.redNeg(),l=(this||st).m.subn(1).iushrn(1),e=(this||st).m.bitLength();for(e=new n(2*e*e).toRed(this||st);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||st).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||st);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||st),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||st).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||st,d),(this||st).shift=(this||st).m.bitLength(),(this||st).shift%26!==0&&((this||st).shift+=26-(this||st).shift%26),(this||st).r=new n(1).iushln((this||st).shift),(this||st).r2=this.imod((this||st).r.sqr()),(this||st).rinv=(this||st).r._invmp((this||st).m),(this||st).minv=(this||st).rinv.mul((this||st).r).isubn(1).div((this||st).m),(this||st).minv=(this||st).minv.umod((this||st).r),(this||st).minv=(this||st).r.sub((this||st).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||st).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||st).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||st).shift).mul((this||st).minv).imaskn((this||st).shift).mul((this||st).m),f=o.isub(h).iushrn((this||st).shift),v=f;return f.cmp((this||st).m)>=0?v=f.isub((this||st).m):f.cmpn(0)<0&&(v=f.iadd((this||st).m)),v._forceRed(this||st)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||st);var o=t.mul(r),h=o.maskn((this||st).shift).mul((this||st).minv).imaskn((this||st).shift).mul((this||st).m),f=o.isub(h).iushrn((this||st).shift),v=f;return f.cmp((this||st).m)>=0?v=f.isub((this||st).m):f.cmpn(0)<0&&(v=f.iadd((this||st).m)),v._forceRed(this||st)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||st).m).mul((this||st).r2));return r._forceRed(this||st)}}(A2,Mk)),A2.exports}var k2={},I_=!1;function _k(){if(I_)return k2;I_=!0;var i=Fb(),s=Qe().Buffer;function a(u,n){return s.from(u.toRed(i.mont(n.modulus)).redPow(new i(n.publicExponent)).fromRed().toArray())}return k2=a,k2}var R2={},C_=!1;function fU(){if(C_)return R2;C_=!0;var i=xc(),s=Kh(),a=fu(),u=yk(),n=wk(),p=Fb(),m=_k(),y=Pb(),M=Qe().Buffer;R2=function(x,E,k){var B;x.padding?B=x.padding:k?B=1:B=4;var T=i(x),C;if(B===4)C=b(T,E);else if(B===1)C=g(T,E,k);else if(B===3){if(C=new p(E),C.cmp(T.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return k?y(C,T):m(C,T)};function b(_,x){var E=_.modulus.byteLength(),k=x.length,B=a("sha1").update(M.alloc(0)).digest(),T=B.length,C=2*T;if(k>E-C-2)throw new Error("message too long");var P=M.alloc(E-k-C-2),G=E-T-1,U=s(T),V=n(M.concat([B,P,M.alloc(1,1),x],G),u(U,G)),I=n(U,u(V,T));return new p(M.concat([M.alloc(1),I,V],E))}function g(_,x,E){var k=x.length,B=_.modulus.byteLength();if(k>B-11)throw new Error("message too long");var T;return E?T=M.alloc(B-k-3,255):T=S(B-k-3),new p(M.concat([M.from([0,E?1:2]),T,M.alloc(1),x],B))}function S(_){for(var x=M.allocUnsafe(_),E=0,k=s(_*2),B=0,T;E<_;)B===k.length&&(k=s(_*2),B=0),T=k[B++],T&&(x[E++]=T);return x}return R2}var B2={},P_=!1;function uU(){if(P_)return B2;P_=!0;var i=xc(),s=yk(),a=wk(),u=Fb(),n=Pb(),p=fu(),m=_k(),y=Qe().Buffer;B2=function(_,x,E){var k;_.padding?k=_.padding:E?k=1:k=4;var B=i(_),T=B.modulus.byteLength();if(x.length>T||new u(x).cmp(B.modulus)>=0)throw new Error("decryption error");var C;E?C=m(new u(x),B):C=n(x,B);var P=y.alloc(T-C.length);if(C=y.concat([P,C],T),k===4)return M(B,C);if(k===1)return b(B,C,E);if(k===3)return C;throw new Error("unknown padding")};function M(S,_){var x=S.modulus.byteLength(),E=p("sha1").update(y.alloc(0)).digest(),k=E.length;if(_[0]!==0)throw new Error("decryption error");var B=_.slice(1,k+1),T=_.slice(k+1),C=a(B,s(T,k)),P=a(T,s(C,x-k-1));if(g(E,P.slice(0,k)))throw new Error("decryption error");for(var G=k;P[G]===0;)G++;if(P[G++]!==1)throw new Error("decryption error");return P.slice(G)}function b(S,_,x){for(var E=_.slice(0,2),k=2,B=0;_[k++]!==0;)if(k>=_.length){B++;break}var T=_.slice(2,k-1);if((E.toString("hex")!=="0002"&&!x||E.toString("hex")!=="0001"&&x)&&B++,T.length<8&&B++,B)throw new Error("decryption error");return _.slice(k)}function g(S,_){S=y.from(S),_=y.from(_);var x=0,E=S.length;S.length!==_.length&&(x++,E=Math.min(S.length,_.length));for(var k=-1;++k<E;)x+=S[k]^_[k];return x}return B2}var Ma={},D_=!1;function lU(){return D_||(D_=!0,Ma.publicEncrypt=fU(),Ma.privateDecrypt=uU(),Ma.privateEncrypt=function(s,a){return Ma.publicEncrypt(s,a,!0)},Ma.publicDecrypt=function(s,a){return Ma.privateDecrypt(s,a,!0)}),Ma}var Rh={},L_=!1,_0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function cU(){if(L_)return Rh;L_=!0;var i=Le;function s(){throw new Error(`secure random number generation not supported by this browser
23
+ use chrome, FireFox or Internet Explorer 11`)}var a=Qe(),u=Kh(),n=a.Buffer,p=a.kMaxLength,m=_0.crypto||_0.msCrypto,y=Math.pow(2,32)-1;function M(x,E){if(typeof x!="number"||x!==x)throw new TypeError("offset must be a number");if(x>y||x<0)throw new TypeError("offset must be a uint32");if(x>p||x>E)throw new RangeError("offset out of range")}function b(x,E,k){if(typeof x!="number"||x!==x)throw new TypeError("size must be a number");if(x>y||x<0)throw new TypeError("size must be a uint32");if(x+E>k||x>p)throw new RangeError("buffer too small")}m&&m.getRandomValues||!i.browser?(Rh.randomFill=g,Rh.randomFillSync=_):(Rh.randomFill=s,Rh.randomFillSync=s);function g(x,E,k,B){if(!n.isBuffer(x)&&!(x instanceof _0.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof E=="function")B=E,E=0,k=x.length;else if(typeof k=="function")B=k,k=x.length-E;else if(typeof B!="function")throw new TypeError('"cb" argument must be a function');return M(E,x.length),b(k,E,x.length),S(x,E,k,B)}function S(x,E,k,B){if(i.browser){var T=x.buffer,C=new Uint8Array(T,E,k);if(m.getRandomValues(C),B){i.nextTick(function(){B(null,x)});return}return x}if(B){u(k,function(G,U){if(G)return B(G);U.copy(x,E),B(null,x)});return}var P=u(k);return P.copy(x,E),x}function _(x,E,k){if(typeof E>"u"&&(E=0),!n.isBuffer(x)&&!(x instanceof _0.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return M(E,x.length),k===void 0&&(k=x.length-E),b(k,E,x.length),S(x,E,k)}return Rh}var Ge={},O_=!1;function dU(){if(O_)return Ge;O_=!0,Ge.randomBytes=Ge.rng=Ge.pseudoRandomBytes=Ge.prng=Kh(),Ge.createHash=Ge.Hash=fu(),Ge.createHmac=Ge.Hmac=Gx();var i=aD(),s=Object.keys(i),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(s);Ge.getHashes=function(){return a};var u=Yx();Ge.pbkdf2=u.pbkdf2,Ge.pbkdf2Sync=u.pbkdf2Sync;var n=_D();Ge.Cipher=n.Cipher,Ge.createCipher=n.createCipher,Ge.Cipheriv=n.Cipheriv,Ge.createCipheriv=n.createCipheriv,Ge.Decipher=n.Decipher,Ge.createDecipher=n.createDecipher,Ge.Decipheriv=n.Decipheriv,Ge.createDecipheriv=n.createDecipheriv,Ge.getCiphers=n.getCiphers,Ge.listCiphers=n.listCiphers;var p=Cz();Ge.DiffieHellmanGroup=p.DiffieHellmanGroup,Ge.createDiffieHellmanGroup=p.createDiffieHellmanGroup,Ge.getDiffieHellman=p.getDiffieHellman,Ge.createDiffieHellman=p.createDiffieHellman,Ge.DiffieHellman=p.DiffieHellman;var m=aU();Ge.createSign=m.createSign,Ge.Sign=m.Sign,Ge.createVerify=m.createVerify,Ge.Verify=m.Verify,Ge.createECDH=hU();var y=lU();Ge.publicEncrypt=y.publicEncrypt,Ge.privateEncrypt=y.privateEncrypt,Ge.publicDecrypt=y.publicDecrypt,Ge.privateDecrypt=y.privateDecrypt;var M=cU();return Ge.randomFill=M.randomFill,Ge.randomFillSync=M.randomFillSync,Ge.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
24
+ `))},Ge.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},Ge}var Xe=dU();Xe.Cipher;Xe.Cipheriv;Xe.Decipher;Xe.Decipheriv;Xe.DiffieHellman;Xe.DiffieHellmanGroup;Xe.Hash;Xe.Hmac;Xe.Sign;Xe.Verify;Xe.constants;Xe.createCipher;Xe.createCipheriv;Xe.createCredentials;Xe.createDecipher;Xe.createDecipheriv;Xe.createDiffieHellman;Xe.createDiffieHellmanGroup;Xe.createECDH;Xe.createHash;Xe.createHmac;Xe.createSign;Xe.createVerify;Xe.getCiphers;Xe.getDiffieHellman;Xe.getHashes;Xe.listCiphers;Xe.pbkdf2;Xe.pbkdf2Sync;Xe.privateDecrypt;Xe.privateEncrypt;Xe.prng;Xe.pseudoRandomBytes;Xe.publicDecrypt;Xe.publicEncrypt;Xe.randomBytes;Xe.randomFill;Xe.randomFillSync;Xe.rng;var S0={},N_=!1,x0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function jb(){if(N_)return S0;N_=!0;var i;S0=function(n){return i||(i=new s(null)),i.generate(n)};function s(u){(this||x0).rand=u}if(S0.Rand=s,s.prototype.generate=function(n){return this._rand(n)},s.prototype._rand=function(n){if((this||x0).rand.getBytes)return(this||x0).rand.getBytes(n);for(var p=new Uint8Array(n),m=0;m<p.length;m++)p[m]=(this||x0).rand.getByte();return p},typeof self=="object")self.crypto&&self.crypto.getRandomValues?s.prototype._rand=function(n){var p=new Uint8Array(n);return self.crypto.getRandomValues(p),p}:self.msCrypto&&self.msCrypto.getRandomValues?s.prototype._rand=function(n){var p=new Uint8Array(n);return self.msCrypto.getRandomValues(p),p}:typeof window=="object"&&(s.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=Xe;if(typeof a.randomBytes!="function")throw new Error("Not supported");s.prototype._rand=function(n){return a.randomBytes(n)}}catch{}return S0}var T2={},q_=!1,z_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Sk(){if(q_)return T2;q_=!0;var i=sP(),s=jb();function a(u){(this||z_).rand=u||new s.Rand}return T2=a,a.create=function(n){return new a(n)},a.prototype._randbelow=function(n){var p=n.bitLength(),m=Math.ceil(p/8);do var y=new i((this||z_).rand.generate(m));while(y.cmp(n)>=0);return y},a.prototype._randrange=function(n,p){var m=p.sub(n);return n.add(this._randbelow(m))},a.prototype.test=function(n,p,m){var y=n.bitLength(),M=i.mont(n),b=new i(1).toRed(M);p||(p=Math.max(1,y/48|0));for(var g=n.subn(1),S=0;!g.testn(S);S++);for(var _=n.shrn(S),x=g.toRed(M),E=!0;p>0;p--){var k=this._randrange(new i(2),g);m&&m(k);var B=k.toRed(M).redPow(_);if(!(B.cmp(b)===0||B.cmp(x)===0)){for(var T=1;T<S;T++){if(B=B.redSqr(),B.cmp(b)===0)return!1;if(B.cmp(x)===0)break}if(T===S)return!1}}return E},a.prototype.getDivisor=function(n,p){var m=n.bitLength(),y=i.mont(n),M=new i(1).toRed(y);p||(p=Math.max(1,m/48|0));for(var b=n.subn(1),g=0;!b.testn(g);g++);for(var S=n.shrn(g),_=b.toRed(y);p>0;p--){var x=this._randrange(new i(2),b),E=n.gcd(x);if(E.cmpn(1)!==0)return E;var k=x.toRed(y).redPow(S);if(!(k.cmp(M)===0||k.cmp(_)===0)){for(var B=1;B<g;B++){if(k=k.redSqr(),k.cmp(M)===0)return k.fromRed().subn(1).gcd(n);if(k.cmp(_)===0)break}if(B===g)return k=k.redSqr(),k.fromRed().subn(1).gcd(n)}}return!1},T2}var $2={},U_=!1;function xk(){if(U_)return $2;U_=!0;var i=Fh();$2=B,B.simpleSieve=E,B.fermatTest=k;var s=Mx(),a=new s(24),u=Sk(),n=new u,p=new s(1),m=new s(2),y=new s(5);new s(16),new s(8);var M=new s(10),b=new s(3);new s(7);var g=new s(11),S=new s(4);new s(12);var _=null;function x(){if(_!==null)return _;var T=1048576,C=[];C[0]=2;for(var P=1,G=3;G<T;G+=2){for(var U=Math.ceil(Math.sqrt(G)),V=0;V<P&&C[V]<=U&&G%C[V]!==0;V++);P!==V&&C[V]<=U||(C[P++]=G)}return _=C,C}function E(T){for(var C=x(),P=0;P<C.length;P++)if(T.modn(C[P])===0)return T.cmpn(C[P])===0;return!0}function k(T){var C=s.mont(T);return m.toRed(C).redPow(T.subn(1)).fromRed().cmpn(1)===0}function B(T,C){if(T<16)return C===2||C===5?new s([140,123]):new s([140,39]);C=new s(C);for(var P,G;;){for(P=new s(i(Math.ceil(T/8)));P.bitLength()>T;)P.ishrn(1);if(P.isEven()&&P.iadd(p),P.testn(1)||P.iadd(m),C.cmp(m)){if(!C.cmp(y))for(;P.mod(M).cmp(b);)P.iadd(S)}else for(;P.mod(a).cmp(g);)P.iadd(S);if(G=P.shrn(1),E(G)&&E(P)&&k(G)&&k(P)&&n.test(G)&&n.test(P))return P}}return $2}var pU={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}},I2={},F_=!1,nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function mU(){if(F_)return I2;F_=!0;var i=Tr.Buffer,s=Mx(),a=Sk(),u=new a,n=new s(24),p=new s(11),m=new s(10),y=new s(3),M=new s(7),b=xk(),g=Fh();I2=k;function S(T,C){return C=C||"utf8",i.isBuffer(T)||(T=new i(T,C)),(this||nr)._pub=new s(T),this||nr}function _(T,C){return C=C||"utf8",i.isBuffer(T)||(T=new i(T,C)),(this||nr)._priv=new s(T),this||nr}var x={};function E(T,C){var P=C.toString("hex"),G=[P,T.toString(16)].join("_");if(G in x)return x[G];var U=0;if(T.isEven()||!b.simpleSieve||!b.fermatTest(T)||!u.test(T))return U+=1,P==="02"||P==="05"?U+=8:U+=4,x[G]=U,U;u.test(T.shrn(1))||(U+=2);var V;switch(P){case"02":T.mod(n).cmp(p)&&(U+=8);break;case"05":V=T.mod(m),V.cmp(y)&&V.cmp(M)&&(U+=8);break;default:U+=4}return x[G]=U,U}function k(T,C,P){this.setGenerator(C),(this||nr).__prime=new s(T),(this||nr)._prime=s.mont((this||nr).__prime),(this||nr)._primeLen=T.length,(this||nr)._pub=void 0,(this||nr)._priv=void 0,(this||nr)._primeCode=void 0,P?((this||nr).setPublicKey=S,(this||nr).setPrivateKey=_):(this||nr)._primeCode=8}Object.defineProperty(k.prototype,"verifyError",{enumerable:!0,get:function(){return typeof(this||nr)._primeCode!="number"&&((this||nr)._primeCode=E((this||nr).__prime,(this||nr).__gen)),(this||nr)._primeCode}}),k.prototype.generateKeys=function(){return(this||nr)._priv||((this||nr)._priv=new s(g((this||nr)._primeLen))),(this||nr)._pub=(this||nr)._gen.toRed((this||nr)._prime).redPow((this||nr)._priv).fromRed(),this.getPublicKey()},k.prototype.computeSecret=function(T){T=new s(T),T=T.toRed((this||nr)._prime);var C=T.redPow((this||nr)._priv).fromRed(),P=new i(C.toArray()),G=this.getPrime();if(P.length<G.length){var U=new i(G.length-P.length);U.fill(0),P=i.concat([U,P])}return P},k.prototype.getPublicKey=function(C){return B((this||nr)._pub,C)},k.prototype.getPrivateKey=function(C){return B((this||nr)._priv,C)},k.prototype.getPrime=function(T){return B((this||nr).__prime,T)},k.prototype.getGenerator=function(T){return B((this||nr)._gen,T)},k.prototype.setGenerator=function(T,C){return C=C||"utf8",i.isBuffer(T)||(T=new i(T,C)),(this||nr).__gen=T,(this||nr)._gen=new s(T),this||nr};function B(T,C){var P=new i(T.toArray());return C?P.toString(C):P}return I2}var xs={},j_=!1;function vU(){if(j_)return xs;j_=!0;var i=Tr.Buffer,s=xk(),a=pU,u=mU();function n(y){var M=new i(a[y].prime,"hex"),b=new i(a[y].gen,"hex");return new u(M,b)}var p={binary:!0,hex:!0,base64:!0};function m(y,M,b,g){return i.isBuffer(M)||p[M]===void 0?m(y,"binary",M,b):(M=M||"binary",g=g||"binary",b=b||new i([2]),i.isBuffer(b)||(b=new i(b,g)),typeof y=="number"?new u(s(y,b),b,!0):(i.isBuffer(y)||(y=new i(y,M)),new u(y,b,!0)))}return xs.DiffieHellmanGroup=xs.createDiffieHellmanGroup=xs.getDiffieHellman=n,xs.createDiffieHellman=xs.DiffieHellman=m,xs}var Pf={},H_=!1;function Hb(){if(H_)return Pf;H_=!0;var i=Tr,s=i.Buffer;function a(n,p){for(var m in n)p[m]=n[m]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?Pf=i:(a(i,Pf),Pf.Buffer=u);function u(n,p,m){return s(n,p,m)}return u.prototype=Object.create(s.prototype),a(s,u),u.from=function(n,p,m){if(typeof n=="number")throw new TypeError("Argument must not be a number");return s(n,p,m)},u.alloc=function(n,p,m){if(typeof n!="number")throw new TypeError("Argument must be a number");var y=s(n);return p!==void 0?typeof m=="string"?y.fill(p,m):y.fill(p):y.fill(0),y},u.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return s(n)},u.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return i.SlowBuffer(n)},Pf}var Ek={},K_=!1,C2={exports:Ek},Q=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function Kb(){return K_||(K_=!0,function(i,s){function a(r,o){if(!r)throw new Error(o||"Assertion failed")}function u(r,o){r.super_=o;var h=function(){};h.prototype=o.prototype,r.prototype=new h,r.prototype.constructor=r}function n(r,o,h){if(n.isBN(r))return r;(this||Q).negative=0,(this||Q).words=null,(this||Q).length=0,(this||Q).red=null,r!==null&&((o==="le"||o==="be")&&(h=o,o=10),this._init(r||0,o||10,h||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Tr.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,h){return o.cmp(h)>0?o:h},n.min=function(o,h){return o.cmp(h)<0?o:h},n.prototype._init=function(o,h,f){if(typeof o=="number")return this._initNumber(o,h,f);if(typeof o=="object")return this._initArray(o,h,f);h==="hex"&&(h=16),a(h===(h|0)&&h>=2&&h<=36),o=o.toString().replace(/\s+/g,"");var v=0;o[0]==="-"&&(v++,(this||Q).negative=1),v<o.length&&(h===16?this._parseHex(o,v,f):(this._parseBase(o,h,v),f==="le"&&this._initArray(this.toArray(),h,f)))},n.prototype._initNumber=function(o,h,f){o<0&&((this||Q).negative=1,o=-o),o<67108864?((this||Q).words=[o&67108863],(this||Q).length=1):o<4503599627370496?((this||Q).words=[o&67108863,o/67108864&67108863],(this||Q).length=2):(a(o<9007199254740992),(this||Q).words=[o&67108863,o/67108864&67108863,1],(this||Q).length=3),f==="le"&&this._initArray(this.toArray(),h,f)},n.prototype._initArray=function(o,h,f){if(a(typeof o.length=="number"),o.length<=0)return(this||Q).words=[0],(this||Q).length=1,this||Q;(this||Q).length=Math.ceil(o.length/3),(this||Q).words=new Array((this||Q).length);for(var v=0;v<(this||Q).length;v++)(this||Q).words[v]=0;var w,l,e=0;if(f==="be")for(v=o.length-1,w=0;v>=0;v-=3)l=o[v]|o[v-1]<<8|o[v-2]<<16,(this||Q).words[w]|=l<<e&67108863,(this||Q).words[w+1]=l>>>26-e&67108863,e+=24,e>=26&&(e-=26,w++);else if(f==="le")for(v=0,w=0;v<o.length;v+=3)l=o[v]|o[v+1]<<8|o[v+2]<<16,(this||Q).words[w]|=l<<e&67108863,(this||Q).words[w+1]=l>>>26-e&67108863,e+=24,e>=26&&(e-=26,w++);return this._strip()};function m(r,o){var h=r.charCodeAt(o);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;a(!1,"Invalid character in "+r)}function y(r,o,h){var f=m(r,h);return h-1>=o&&(f|=m(r,h-1)<<4),f}n.prototype._parseHex=function(o,h,f){(this||Q).length=Math.ceil((o.length-h)/6),(this||Q).words=new Array((this||Q).length);for(var v=0;v<(this||Q).length;v++)(this||Q).words[v]=0;var w=0,l=0,e;if(f==="be")for(v=o.length-1;v>=h;v-=2)e=y(o,h,v)<<w,(this||Q).words[l]|=e&67108863,w>=18?(w-=18,l+=1,(this||Q).words[l]|=e>>>26):w+=8;else{var c=o.length-h;for(v=c%2===0?h+1:h;v<o.length;v+=2)e=y(o,h,v)<<w,(this||Q).words[l]|=e&67108863,w>=18?(w-=18,l+=1,(this||Q).words[l]|=e>>>26):w+=8}this._strip()};function M(r,o,h,f){for(var v=0,w=0,l=Math.min(r.length,h),e=o;e<l;e++){var c=r.charCodeAt(e)-48;v*=f,c>=49?w=c-49+10:c>=17?w=c-17+10:w=c,a(c>=0&&w<f,"Invalid character"),v+=w}return v}n.prototype._parseBase=function(o,h,f){(this||Q).words=[0],(this||Q).length=1;for(var v=0,w=1;w<=67108863;w*=h)v++;v--,w=w/h|0;for(var l=o.length-f,e=l%v,c=Math.min(l,l-e)+f,A=0,R=f;R<c;R+=v)A=M(o,R,R+v,h),this.imuln(w),(this||Q).words[0]+A<67108864?(this||Q).words[0]+=A:this._iaddn(A);if(e!==0){var $=1;for(A=M(o,R,o.length,h),R=0;R<e;R++)$*=h;this.imuln($),(this||Q).words[0]+A<67108864?(this||Q).words[0]+=A:this._iaddn(A)}this._strip()},n.prototype.copy=function(o){o.words=new Array((this||Q).length);for(var h=0;h<(this||Q).length;h++)o.words[h]=(this||Q).words[h];o.length=(this||Q).length,o.negative=(this||Q).negative,o.red=(this||Q).red};function b(r,o){r.words=o.words,r.length=o.length,r.negative=o.negative,r.red=o.red}if(n.prototype._move=function(o){b(o,this||Q)},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;(this||Q).length<o;)(this||Q).words[(this||Q).length++]=0;return this||Q},n.prototype._strip=function(){for(;(this||Q).length>1&&(this||Q).words[(this||Q).length-1]===0;)(this||Q).length--;return this._normSign()},n.prototype._normSign=function(){return(this||Q).length===1&&(this||Q).words[0]===0&&((this||Q).negative=0),this||Q},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=g}catch{n.prototype.inspect=g}else n.prototype.inspect=g;function g(){return((this||Q).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var S=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],x=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,h){o=o||10,h=h|0||1;var f;if(o===16||o==="hex"){f="";for(var v=0,w=0,l=0;l<(this||Q).length;l++){var e=(this||Q).words[l],c=((e<<v|w)&16777215).toString(16);w=e>>>24-v&16777215,w!==0||l!==(this||Q).length-1?f=S[6-c.length]+c+f:f=c+f,v+=2,v>=26&&(v-=26,l--)}for(w!==0&&(f=w.toString(16)+f);f.length%h!==0;)f="0"+f;return(this||Q).negative!==0&&(f="-"+f),f}if(o===(o|0)&&o>=2&&o<=36){var A=_[o],R=x[o];f="";var $=this.clone();for($.negative=0;!$.isZero();){var L=$.modrn(R).toString(o);$=$.idivn(R),$.isZero()?f=L+f:f=S[A-L.length]+L+f}for(this.isZero()&&(f="0"+f);f.length%h!==0;)f="0"+f;return(this||Q).negative!==0&&(f="-"+f),f}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=(this||Q).words[0];return(this||Q).length===2?o+=(this||Q).words[1]*67108864:(this||Q).length===3&&(this||Q).words[2]===1?o+=4503599627370496+(this||Q).words[1]*67108864:(this||Q).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||Q).negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16,2)},p&&(n.prototype.toBuffer=function(o,h){return this.toArrayLike(p,o,h)}),n.prototype.toArray=function(o,h){return this.toArrayLike(Array,o,h)};var E=function(o,h){return o.allocUnsafe?o.allocUnsafe(h):new o(h)};n.prototype.toArrayLike=function(o,h,f){this._strip();var v=this.byteLength(),w=f||Math.max(1,v);a(v<=w,"byte array longer than desired length"),a(w>0,"Requested array length <= 0");var l=E(o,w),e=h==="le"?"LE":"BE";return this["_toArrayLike"+e](l,v),l},n.prototype._toArrayLikeLE=function(o,h){for(var f=0,v=0,w=0,l=0;w<(this||Q).length;w++){var e=(this||Q).words[w]<<l|v;o[f++]=e&255,f<o.length&&(o[f++]=e>>8&255),f<o.length&&(o[f++]=e>>16&255),l===6?(f<o.length&&(o[f++]=e>>24&255),v=0,l=0):(v=e>>>24,l+=2)}if(f<o.length)for(o[f++]=v;f<o.length;)o[f++]=0},n.prototype._toArrayLikeBE=function(o,h){for(var f=o.length-1,v=0,w=0,l=0;w<(this||Q).length;w++){var e=(this||Q).words[w]<<l|v;o[f--]=e&255,f>=0&&(o[f--]=e>>8&255),f>=0&&(o[f--]=e>>16&255),l===6?(f>=0&&(o[f--]=e>>24&255),v=0,l=0):(v=e>>>24,l+=2)}if(f>=0)for(o[f--]=v;f>=0;)o[f--]=0},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var h=o,f=0;return h>=4096&&(f+=13,h>>>=13),h>=64&&(f+=7,h>>>=7),h>=8&&(f+=4,h>>>=4),h>=2&&(f+=2,h>>>=2),f+h},n.prototype._zeroBits=function(o){if(o===0)return 26;var h=o,f=0;return h&8191||(f+=13,h>>>=13),h&127||(f+=7,h>>>=7),h&15||(f+=4,h>>>=4),h&3||(f+=2,h>>>=2),h&1||f++,f},n.prototype.bitLength=function(){var o=(this||Q).words[(this||Q).length-1],h=this._countBits(o);return((this||Q).length-1)*26+h};function k(r){for(var o=new Array(r.bitLength()),h=0;h<o.length;h++){var f=h/26|0,v=h%26;o[h]=r.words[f]>>>v&1}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,h=0;h<(this||Q).length;h++){var f=this._zeroBits((this||Q).words[h]);if(o+=f,f!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return(this||Q).negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||Q).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||Q).negative^=1),this||Q},n.prototype.iuor=function(o){for(;(this||Q).length<o.length;)(this||Q).words[(this||Q).length++]=0;for(var h=0;h<o.length;h++)(this||Q).words[h]=(this||Q).words[h]|o.words[h];return this._strip()},n.prototype.ior=function(o){return a(((this||Q).negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return(this||Q).length>o.length?this.clone().ior(o):o.clone().ior(this||Q)},n.prototype.uor=function(o){return(this||Q).length>o.length?this.clone().iuor(o):o.clone().iuor(this||Q)},n.prototype.iuand=function(o){var h;(this||Q).length>o.length?h=o:h=this||Q;for(var f=0;f<h.length;f++)(this||Q).words[f]=(this||Q).words[f]&o.words[f];return(this||Q).length=h.length,this._strip()},n.prototype.iand=function(o){return a(((this||Q).negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return(this||Q).length>o.length?this.clone().iand(o):o.clone().iand(this||Q)},n.prototype.uand=function(o){return(this||Q).length>o.length?this.clone().iuand(o):o.clone().iuand(this||Q)},n.prototype.iuxor=function(o){var h,f;(this||Q).length>o.length?(h=this||Q,f=o):(h=o,f=this||Q);for(var v=0;v<f.length;v++)(this||Q).words[v]=h.words[v]^f.words[v];if((this||Q)!==h)for(;v<h.length;v++)(this||Q).words[v]=h.words[v];return(this||Q).length=h.length,this._strip()},n.prototype.ixor=function(o){return a(((this||Q).negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return(this||Q).length>o.length?this.clone().ixor(o):o.clone().ixor(this||Q)},n.prototype.uxor=function(o){return(this||Q).length>o.length?this.clone().iuxor(o):o.clone().iuxor(this||Q)},n.prototype.inotn=function(o){a(typeof o=="number"&&o>=0);var h=Math.ceil(o/26)|0,f=o%26;this._expand(h),f>0&&h--;for(var v=0;v<h;v++)(this||Q).words[v]=~(this||Q).words[v]&67108863;return f>0&&((this||Q).words[v]=~(this||Q).words[v]&67108863>>26-f),this._strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,h){a(typeof o=="number"&&o>=0);var f=o/26|0,v=o%26;return this._expand(f+1),h?(this||Q).words[f]=(this||Q).words[f]|1<<v:(this||Q).words[f]=(this||Q).words[f]&~(1<<v),this._strip()},n.prototype.iadd=function(o){var h;if((this||Q).negative!==0&&o.negative===0)return(this||Q).negative=0,h=this.isub(o),(this||Q).negative^=1,this._normSign();if((this||Q).negative===0&&o.negative!==0)return o.negative=0,h=this.isub(o),o.negative=1,h._normSign();var f,v;(this||Q).length>o.length?(f=this||Q,v=o):(f=o,v=this||Q);for(var w=0,l=0;l<v.length;l++)h=(f.words[l]|0)+(v.words[l]|0)+w,(this||Q).words[l]=h&67108863,w=h>>>26;for(;w!==0&&l<f.length;l++)h=(f.words[l]|0)+w,(this||Q).words[l]=h&67108863,w=h>>>26;if((this||Q).length=f.length,w!==0)(this||Q).words[(this||Q).length]=w,(this||Q).length++;else if(f!==(this||Q))for(;l<f.length;l++)(this||Q).words[l]=f.words[l];return this||Q},n.prototype.add=function(o){var h;return o.negative!==0&&(this||Q).negative===0?(o.negative=0,h=this.sub(o),o.negative^=1,h):o.negative===0&&(this||Q).negative!==0?((this||Q).negative=0,h=o.sub(this||Q),(this||Q).negative=1,h):(this||Q).length>o.length?this.clone().iadd(o):o.clone().iadd(this||Q)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var h=this.iadd(o);return o.negative=1,h._normSign()}else if((this||Q).negative!==0)return(this||Q).negative=0,this.iadd(o),(this||Q).negative=1,this._normSign();var f=this.cmp(o);if(f===0)return(this||Q).negative=0,(this||Q).length=1,(this||Q).words[0]=0,this||Q;var v,w;f>0?(v=this||Q,w=o):(v=o,w=this||Q);for(var l=0,e=0;e<w.length;e++)h=(v.words[e]|0)-(w.words[e]|0)+l,l=h>>26,(this||Q).words[e]=h&67108863;for(;l!==0&&e<v.length;e++)h=(v.words[e]|0)+l,l=h>>26,(this||Q).words[e]=h&67108863;if(l===0&&e<v.length&&v!==(this||Q))for(;e<v.length;e++)(this||Q).words[e]=v.words[e];return(this||Q).length=Math.max((this||Q).length,e),v!==(this||Q)&&((this||Q).negative=1),this._strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function B(r,o,h){h.negative=o.negative^r.negative;var f=r.length+o.length|0;h.length=f,f=f-1|0;var v=r.words[0]|0,w=o.words[0]|0,l=v*w,e=l&67108863,c=l/67108864|0;h.words[0]=e;for(var A=1;A<f;A++){for(var R=c>>>26,$=c&67108863,L=Math.min(A,o.length-1),j=Math.max(0,A-r.length+1);j<=L;j++){var pt=A-j|0;v=r.words[pt]|0,w=o.words[j]|0,l=v*w+$,R+=l/67108864|0,$=l&67108863}h.words[A]=$|0,c=R|0}return c!==0?h.words[A]=c|0:h.length--,h._strip()}var T=function(o,h,f){var v=o.words,w=h.words,l=f.words,e=0,c,A,R,$=v[0]|0,L=$&8191,j=$>>>13,pt=v[1]|0,W=pt&8191,N=pt>>>13,X=v[2]|0,jt=X&8191,gt=X>>>13,q=v[3]|0,K=q&8191,J=q>>>13,bt=v[4]|0,Kt=bt&8191,mt=bt>>>13,Mt=v[5]|0,Wt=Mt&8191,wt=Mt>>>13,Tt=v[6]|0,Zt=Tt&8191,_t=Tt>>>13,Pt=v[7]|0,Jt=Pt&8191,F=Pt>>>13,O=v[8]|0,H=O&8191,Z=O>>>13,dt=v[9]|0,Ht=dt&8191,vt=dt>>>13,$t=w[0]|0,Vt=$t&8191,yt=$t>>>13,Ct=w[1]|0,Gt=Ct&8191,St=Ct>>>13,Ot=w[2]|0,Qt=Ot&8191,xt=Ot>>>13,Nt=w[3]|0,te=Nt&8191,Et=Nt>>>13,qt=w[4]|0,ee=qt&8191,At=qt>>>13,zt=w[5]|0,re=zt&8191,kt=zt>>>13,Ut=w[6]|0,ie=Ut&8191,Rt=Ut>>>13,Ft=w[7]|0,ne=Ft&8191,Bt=Ft>>>13,Dt=w[8]|0,ce=Dt&8191,It=Dt>>>13,Lt=w[9]|0,ae=Lt&8191,se=Lt>>>13;f.negative=o.negative^h.negative,f.length=19,c=Math.imul(L,Vt),A=Math.imul(L,yt),A=A+Math.imul(j,Vt)|0,R=Math.imul(j,yt);var me=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(me>>>26)|0,me&=67108863,c=Math.imul(W,Vt),A=Math.imul(W,yt),A=A+Math.imul(N,Vt)|0,R=Math.imul(N,yt),c=c+Math.imul(L,Gt)|0,A=A+Math.imul(L,St)|0,A=A+Math.imul(j,Gt)|0,R=R+Math.imul(j,St)|0;var ve=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(ve>>>26)|0,ve&=67108863,c=Math.imul(jt,Vt),A=Math.imul(jt,yt),A=A+Math.imul(gt,Vt)|0,R=Math.imul(gt,yt),c=c+Math.imul(W,Gt)|0,A=A+Math.imul(W,St)|0,A=A+Math.imul(N,Gt)|0,R=R+Math.imul(N,St)|0,c=c+Math.imul(L,Qt)|0,A=A+Math.imul(L,xt)|0,A=A+Math.imul(j,Qt)|0,R=R+Math.imul(j,xt)|0;var ge=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(ge>>>26)|0,ge&=67108863,c=Math.imul(K,Vt),A=Math.imul(K,yt),A=A+Math.imul(J,Vt)|0,R=Math.imul(J,yt),c=c+Math.imul(jt,Gt)|0,A=A+Math.imul(jt,St)|0,A=A+Math.imul(gt,Gt)|0,R=R+Math.imul(gt,St)|0,c=c+Math.imul(W,Qt)|0,A=A+Math.imul(W,xt)|0,A=A+Math.imul(N,Qt)|0,R=R+Math.imul(N,xt)|0,c=c+Math.imul(L,te)|0,A=A+Math.imul(L,Et)|0,A=A+Math.imul(j,te)|0,R=R+Math.imul(j,Et)|0;var be=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(be>>>26)|0,be&=67108863,c=Math.imul(Kt,Vt),A=Math.imul(Kt,yt),A=A+Math.imul(mt,Vt)|0,R=Math.imul(mt,yt),c=c+Math.imul(K,Gt)|0,A=A+Math.imul(K,St)|0,A=A+Math.imul(J,Gt)|0,R=R+Math.imul(J,St)|0,c=c+Math.imul(jt,Qt)|0,A=A+Math.imul(jt,xt)|0,A=A+Math.imul(gt,Qt)|0,R=R+Math.imul(gt,xt)|0,c=c+Math.imul(W,te)|0,A=A+Math.imul(W,Et)|0,A=A+Math.imul(N,te)|0,R=R+Math.imul(N,Et)|0,c=c+Math.imul(L,ee)|0,A=A+Math.imul(L,At)|0,A=A+Math.imul(j,ee)|0,R=R+Math.imul(j,At)|0;var ye=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(ye>>>26)|0,ye&=67108863,c=Math.imul(Wt,Vt),A=Math.imul(Wt,yt),A=A+Math.imul(wt,Vt)|0,R=Math.imul(wt,yt),c=c+Math.imul(Kt,Gt)|0,A=A+Math.imul(Kt,St)|0,A=A+Math.imul(mt,Gt)|0,R=R+Math.imul(mt,St)|0,c=c+Math.imul(K,Qt)|0,A=A+Math.imul(K,xt)|0,A=A+Math.imul(J,Qt)|0,R=R+Math.imul(J,xt)|0,c=c+Math.imul(jt,te)|0,A=A+Math.imul(jt,Et)|0,A=A+Math.imul(gt,te)|0,R=R+Math.imul(gt,Et)|0,c=c+Math.imul(W,ee)|0,A=A+Math.imul(W,At)|0,A=A+Math.imul(N,ee)|0,R=R+Math.imul(N,At)|0,c=c+Math.imul(L,re)|0,A=A+Math.imul(L,kt)|0,A=A+Math.imul(j,re)|0,R=R+Math.imul(j,kt)|0;var we=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(we>>>26)|0,we&=67108863,c=Math.imul(Zt,Vt),A=Math.imul(Zt,yt),A=A+Math.imul(_t,Vt)|0,R=Math.imul(_t,yt),c=c+Math.imul(Wt,Gt)|0,A=A+Math.imul(Wt,St)|0,A=A+Math.imul(wt,Gt)|0,R=R+Math.imul(wt,St)|0,c=c+Math.imul(Kt,Qt)|0,A=A+Math.imul(Kt,xt)|0,A=A+Math.imul(mt,Qt)|0,R=R+Math.imul(mt,xt)|0,c=c+Math.imul(K,te)|0,A=A+Math.imul(K,Et)|0,A=A+Math.imul(J,te)|0,R=R+Math.imul(J,Et)|0,c=c+Math.imul(jt,ee)|0,A=A+Math.imul(jt,At)|0,A=A+Math.imul(gt,ee)|0,R=R+Math.imul(gt,At)|0,c=c+Math.imul(W,re)|0,A=A+Math.imul(W,kt)|0,A=A+Math.imul(N,re)|0,R=R+Math.imul(N,kt)|0,c=c+Math.imul(L,ie)|0,A=A+Math.imul(L,Rt)|0,A=A+Math.imul(j,ie)|0,R=R+Math.imul(j,Rt)|0;var Me=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Me>>>26)|0,Me&=67108863,c=Math.imul(Jt,Vt),A=Math.imul(Jt,yt),A=A+Math.imul(F,Vt)|0,R=Math.imul(F,yt),c=c+Math.imul(Zt,Gt)|0,A=A+Math.imul(Zt,St)|0,A=A+Math.imul(_t,Gt)|0,R=R+Math.imul(_t,St)|0,c=c+Math.imul(Wt,Qt)|0,A=A+Math.imul(Wt,xt)|0,A=A+Math.imul(wt,Qt)|0,R=R+Math.imul(wt,xt)|0,c=c+Math.imul(Kt,te)|0,A=A+Math.imul(Kt,Et)|0,A=A+Math.imul(mt,te)|0,R=R+Math.imul(mt,Et)|0,c=c+Math.imul(K,ee)|0,A=A+Math.imul(K,At)|0,A=A+Math.imul(J,ee)|0,R=R+Math.imul(J,At)|0,c=c+Math.imul(jt,re)|0,A=A+Math.imul(jt,kt)|0,A=A+Math.imul(gt,re)|0,R=R+Math.imul(gt,kt)|0,c=c+Math.imul(W,ie)|0,A=A+Math.imul(W,Rt)|0,A=A+Math.imul(N,ie)|0,R=R+Math.imul(N,Rt)|0,c=c+Math.imul(L,ne)|0,A=A+Math.imul(L,Bt)|0,A=A+Math.imul(j,ne)|0,R=R+Math.imul(j,Bt)|0;var _e=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(_e>>>26)|0,_e&=67108863,c=Math.imul(H,Vt),A=Math.imul(H,yt),A=A+Math.imul(Z,Vt)|0,R=Math.imul(Z,yt),c=c+Math.imul(Jt,Gt)|0,A=A+Math.imul(Jt,St)|0,A=A+Math.imul(F,Gt)|0,R=R+Math.imul(F,St)|0,c=c+Math.imul(Zt,Qt)|0,A=A+Math.imul(Zt,xt)|0,A=A+Math.imul(_t,Qt)|0,R=R+Math.imul(_t,xt)|0,c=c+Math.imul(Wt,te)|0,A=A+Math.imul(Wt,Et)|0,A=A+Math.imul(wt,te)|0,R=R+Math.imul(wt,Et)|0,c=c+Math.imul(Kt,ee)|0,A=A+Math.imul(Kt,At)|0,A=A+Math.imul(mt,ee)|0,R=R+Math.imul(mt,At)|0,c=c+Math.imul(K,re)|0,A=A+Math.imul(K,kt)|0,A=A+Math.imul(J,re)|0,R=R+Math.imul(J,kt)|0,c=c+Math.imul(jt,ie)|0,A=A+Math.imul(jt,Rt)|0,A=A+Math.imul(gt,ie)|0,R=R+Math.imul(gt,Rt)|0,c=c+Math.imul(W,ne)|0,A=A+Math.imul(W,Bt)|0,A=A+Math.imul(N,ne)|0,R=R+Math.imul(N,Bt)|0,c=c+Math.imul(L,ce)|0,A=A+Math.imul(L,It)|0,A=A+Math.imul(j,ce)|0,R=R+Math.imul(j,It)|0;var Se=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Se>>>26)|0,Se&=67108863,c=Math.imul(Ht,Vt),A=Math.imul(Ht,yt),A=A+Math.imul(vt,Vt)|0,R=Math.imul(vt,yt),c=c+Math.imul(H,Gt)|0,A=A+Math.imul(H,St)|0,A=A+Math.imul(Z,Gt)|0,R=R+Math.imul(Z,St)|0,c=c+Math.imul(Jt,Qt)|0,A=A+Math.imul(Jt,xt)|0,A=A+Math.imul(F,Qt)|0,R=R+Math.imul(F,xt)|0,c=c+Math.imul(Zt,te)|0,A=A+Math.imul(Zt,Et)|0,A=A+Math.imul(_t,te)|0,R=R+Math.imul(_t,Et)|0,c=c+Math.imul(Wt,ee)|0,A=A+Math.imul(Wt,At)|0,A=A+Math.imul(wt,ee)|0,R=R+Math.imul(wt,At)|0,c=c+Math.imul(Kt,re)|0,A=A+Math.imul(Kt,kt)|0,A=A+Math.imul(mt,re)|0,R=R+Math.imul(mt,kt)|0,c=c+Math.imul(K,ie)|0,A=A+Math.imul(K,Rt)|0,A=A+Math.imul(J,ie)|0,R=R+Math.imul(J,Rt)|0,c=c+Math.imul(jt,ne)|0,A=A+Math.imul(jt,Bt)|0,A=A+Math.imul(gt,ne)|0,R=R+Math.imul(gt,Bt)|0,c=c+Math.imul(W,ce)|0,A=A+Math.imul(W,It)|0,A=A+Math.imul(N,ce)|0,R=R+Math.imul(N,It)|0,c=c+Math.imul(L,ae)|0,A=A+Math.imul(L,se)|0,A=A+Math.imul(j,ae)|0,R=R+Math.imul(j,se)|0;var xe=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(xe>>>26)|0,xe&=67108863,c=Math.imul(Ht,Gt),A=Math.imul(Ht,St),A=A+Math.imul(vt,Gt)|0,R=Math.imul(vt,St),c=c+Math.imul(H,Qt)|0,A=A+Math.imul(H,xt)|0,A=A+Math.imul(Z,Qt)|0,R=R+Math.imul(Z,xt)|0,c=c+Math.imul(Jt,te)|0,A=A+Math.imul(Jt,Et)|0,A=A+Math.imul(F,te)|0,R=R+Math.imul(F,Et)|0,c=c+Math.imul(Zt,ee)|0,A=A+Math.imul(Zt,At)|0,A=A+Math.imul(_t,ee)|0,R=R+Math.imul(_t,At)|0,c=c+Math.imul(Wt,re)|0,A=A+Math.imul(Wt,kt)|0,A=A+Math.imul(wt,re)|0,R=R+Math.imul(wt,kt)|0,c=c+Math.imul(Kt,ie)|0,A=A+Math.imul(Kt,Rt)|0,A=A+Math.imul(mt,ie)|0,R=R+Math.imul(mt,Rt)|0,c=c+Math.imul(K,ne)|0,A=A+Math.imul(K,Bt)|0,A=A+Math.imul(J,ne)|0,R=R+Math.imul(J,Bt)|0,c=c+Math.imul(jt,ce)|0,A=A+Math.imul(jt,It)|0,A=A+Math.imul(gt,ce)|0,R=R+Math.imul(gt,It)|0,c=c+Math.imul(W,ae)|0,A=A+Math.imul(W,se)|0,A=A+Math.imul(N,ae)|0,R=R+Math.imul(N,se)|0;var Ee=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,c=Math.imul(Ht,Qt),A=Math.imul(Ht,xt),A=A+Math.imul(vt,Qt)|0,R=Math.imul(vt,xt),c=c+Math.imul(H,te)|0,A=A+Math.imul(H,Et)|0,A=A+Math.imul(Z,te)|0,R=R+Math.imul(Z,Et)|0,c=c+Math.imul(Jt,ee)|0,A=A+Math.imul(Jt,At)|0,A=A+Math.imul(F,ee)|0,R=R+Math.imul(F,At)|0,c=c+Math.imul(Zt,re)|0,A=A+Math.imul(Zt,kt)|0,A=A+Math.imul(_t,re)|0,R=R+Math.imul(_t,kt)|0,c=c+Math.imul(Wt,ie)|0,A=A+Math.imul(Wt,Rt)|0,A=A+Math.imul(wt,ie)|0,R=R+Math.imul(wt,Rt)|0,c=c+Math.imul(Kt,ne)|0,A=A+Math.imul(Kt,Bt)|0,A=A+Math.imul(mt,ne)|0,R=R+Math.imul(mt,Bt)|0,c=c+Math.imul(K,ce)|0,A=A+Math.imul(K,It)|0,A=A+Math.imul(J,ce)|0,R=R+Math.imul(J,It)|0,c=c+Math.imul(jt,ae)|0,A=A+Math.imul(jt,se)|0,A=A+Math.imul(gt,ae)|0,R=R+Math.imul(gt,se)|0;var Ae=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,c=Math.imul(Ht,te),A=Math.imul(Ht,Et),A=A+Math.imul(vt,te)|0,R=Math.imul(vt,Et),c=c+Math.imul(H,ee)|0,A=A+Math.imul(H,At)|0,A=A+Math.imul(Z,ee)|0,R=R+Math.imul(Z,At)|0,c=c+Math.imul(Jt,re)|0,A=A+Math.imul(Jt,kt)|0,A=A+Math.imul(F,re)|0,R=R+Math.imul(F,kt)|0,c=c+Math.imul(Zt,ie)|0,A=A+Math.imul(Zt,Rt)|0,A=A+Math.imul(_t,ie)|0,R=R+Math.imul(_t,Rt)|0,c=c+Math.imul(Wt,ne)|0,A=A+Math.imul(Wt,Bt)|0,A=A+Math.imul(wt,ne)|0,R=R+Math.imul(wt,Bt)|0,c=c+Math.imul(Kt,ce)|0,A=A+Math.imul(Kt,It)|0,A=A+Math.imul(mt,ce)|0,R=R+Math.imul(mt,It)|0,c=c+Math.imul(K,ae)|0,A=A+Math.imul(K,se)|0,A=A+Math.imul(J,ae)|0,R=R+Math.imul(J,se)|0;var ke=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(ke>>>26)|0,ke&=67108863,c=Math.imul(Ht,ee),A=Math.imul(Ht,At),A=A+Math.imul(vt,ee)|0,R=Math.imul(vt,At),c=c+Math.imul(H,re)|0,A=A+Math.imul(H,kt)|0,A=A+Math.imul(Z,re)|0,R=R+Math.imul(Z,kt)|0,c=c+Math.imul(Jt,ie)|0,A=A+Math.imul(Jt,Rt)|0,A=A+Math.imul(F,ie)|0,R=R+Math.imul(F,Rt)|0,c=c+Math.imul(Zt,ne)|0,A=A+Math.imul(Zt,Bt)|0,A=A+Math.imul(_t,ne)|0,R=R+Math.imul(_t,Bt)|0,c=c+Math.imul(Wt,ce)|0,A=A+Math.imul(Wt,It)|0,A=A+Math.imul(wt,ce)|0,R=R+Math.imul(wt,It)|0,c=c+Math.imul(Kt,ae)|0,A=A+Math.imul(Kt,se)|0,A=A+Math.imul(mt,ae)|0,R=R+Math.imul(mt,se)|0;var Re=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Re>>>26)|0,Re&=67108863,c=Math.imul(Ht,re),A=Math.imul(Ht,kt),A=A+Math.imul(vt,re)|0,R=Math.imul(vt,kt),c=c+Math.imul(H,ie)|0,A=A+Math.imul(H,Rt)|0,A=A+Math.imul(Z,ie)|0,R=R+Math.imul(Z,Rt)|0,c=c+Math.imul(Jt,ne)|0,A=A+Math.imul(Jt,Bt)|0,A=A+Math.imul(F,ne)|0,R=R+Math.imul(F,Bt)|0,c=c+Math.imul(Zt,ce)|0,A=A+Math.imul(Zt,It)|0,A=A+Math.imul(_t,ce)|0,R=R+Math.imul(_t,It)|0,c=c+Math.imul(Wt,ae)|0,A=A+Math.imul(Wt,se)|0,A=A+Math.imul(wt,ae)|0,R=R+Math.imul(wt,se)|0;var Be=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Be>>>26)|0,Be&=67108863,c=Math.imul(Ht,ie),A=Math.imul(Ht,Rt),A=A+Math.imul(vt,ie)|0,R=Math.imul(vt,Rt),c=c+Math.imul(H,ne)|0,A=A+Math.imul(H,Bt)|0,A=A+Math.imul(Z,ne)|0,R=R+Math.imul(Z,Bt)|0,c=c+Math.imul(Jt,ce)|0,A=A+Math.imul(Jt,It)|0,A=A+Math.imul(F,ce)|0,R=R+Math.imul(F,It)|0,c=c+Math.imul(Zt,ae)|0,A=A+Math.imul(Zt,se)|0,A=A+Math.imul(_t,ae)|0,R=R+Math.imul(_t,se)|0;var Te=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Te>>>26)|0,Te&=67108863,c=Math.imul(Ht,ne),A=Math.imul(Ht,Bt),A=A+Math.imul(vt,ne)|0,R=Math.imul(vt,Bt),c=c+Math.imul(H,ce)|0,A=A+Math.imul(H,It)|0,A=A+Math.imul(Z,ce)|0,R=R+Math.imul(Z,It)|0,c=c+Math.imul(Jt,ae)|0,A=A+Math.imul(Jt,se)|0,A=A+Math.imul(F,ae)|0,R=R+Math.imul(F,se)|0;var $e=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+($e>>>26)|0,$e&=67108863,c=Math.imul(Ht,ce),A=Math.imul(Ht,It),A=A+Math.imul(vt,ce)|0,R=Math.imul(vt,It),c=c+Math.imul(H,ae)|0,A=A+Math.imul(H,se)|0,A=A+Math.imul(Z,ae)|0,R=R+Math.imul(Z,se)|0;var Ya=(e+c|0)+((A&8191)<<13)|0;e=(R+(A>>>13)|0)+(Ya>>>26)|0,Ya&=67108863,c=Math.imul(Ht,ae),A=Math.imul(Ht,se),A=A+Math.imul(vt,ae)|0,R=Math.imul(vt,se);var Qa=(e+c|0)+((A&8191)<<13)|0;return e=(R+(A>>>13)|0)+(Qa>>>26)|0,Qa&=67108863,l[0]=me,l[1]=ve,l[2]=ge,l[3]=be,l[4]=ye,l[5]=we,l[6]=Me,l[7]=_e,l[8]=Se,l[9]=xe,l[10]=Ee,l[11]=Ae,l[12]=ke,l[13]=Re,l[14]=Be,l[15]=Te,l[16]=$e,l[17]=Ya,l[18]=Qa,e!==0&&(l[19]=e,f.length++),f};Math.imul||(T=B);function C(r,o,h){h.negative=o.negative^r.negative,h.length=r.length+o.length;for(var f=0,v=0,w=0;w<h.length-1;w++){var l=v;v=0;for(var e=f&67108863,c=Math.min(w,o.length-1),A=Math.max(0,w-r.length+1);A<=c;A++){var R=w-A,$=r.words[R]|0,L=o.words[A]|0,j=$*L,pt=j&67108863;l=l+(j/67108864|0)|0,pt=pt+e|0,e=pt&67108863,l=l+(pt>>>26)|0,v+=l>>>26,l&=67108863}h.words[w]=e,f=l,l=v}return f!==0?h.words[w]=f:h.length--,h._strip()}function P(r,o,h){return C(r,o,h)}n.prototype.mulTo=function(o,h){var f,v=(this||Q).length+o.length;return(this||Q).length===10&&o.length===10?f=T(this||Q,o,h):v<63?f=B(this||Q,o,h):v<1024?f=C(this||Q,o,h):f=P(this||Q,o,h),f},n.prototype.mul=function(o){var h=new n(null);return h.words=new Array((this||Q).length+o.length),this.mulTo(o,h)},n.prototype.mulf=function(o){var h=new n(null);return h.words=new Array((this||Q).length+o.length),P(this||Q,o,h)},n.prototype.imul=function(o){return this.clone().mulTo(o,this||Q)},n.prototype.imuln=function(o){var h=o<0;h&&(o=-o),a(typeof o=="number"),a(o<67108864);for(var f=0,v=0;v<(this||Q).length;v++){var w=((this||Q).words[v]|0)*o,l=(w&67108863)+(f&67108863);f>>=26,f+=w/67108864|0,f+=l>>>26,(this||Q).words[v]=l&67108863}return f!==0&&((this||Q).words[v]=f,(this||Q).length++),h?this.ineg():this||Q},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this||Q)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var h=k(o);if(h.length===0)return new n(1);for(var f=this||Q,v=0;v<h.length&&h[v]===0;v++,f=f.sqr());if(++v<h.length)for(var w=f.sqr();v<h.length;v++,w=w.sqr())h[v]!==0&&(f=f.mul(w));return f},n.prototype.iushln=function(o){a(typeof o=="number"&&o>=0);var h=o%26,f=(o-h)/26,v=67108863>>>26-h<<26-h,w;if(h!==0){var l=0;for(w=0;w<(this||Q).length;w++){var e=(this||Q).words[w]&v,c=((this||Q).words[w]|0)-e<<h;(this||Q).words[w]=c|l,l=e>>>26-h}l&&((this||Q).words[w]=l,(this||Q).length++)}if(f!==0){for(w=(this||Q).length-1;w>=0;w--)(this||Q).words[w+f]=(this||Q).words[w];for(w=0;w<f;w++)(this||Q).words[w]=0;(this||Q).length+=f}return this._strip()},n.prototype.ishln=function(o){return a((this||Q).negative===0),this.iushln(o)},n.prototype.iushrn=function(o,h,f){a(typeof o=="number"&&o>=0);var v;h?v=(h-h%26)/26:v=0;var w=o%26,l=Math.min((o-w)/26,(this||Q).length),e=67108863^67108863>>>w<<w,c=f;if(v-=l,v=Math.max(0,v),c){for(var A=0;A<l;A++)c.words[A]=(this||Q).words[A];c.length=l}if(l!==0)if((this||Q).length>l)for((this||Q).length-=l,A=0;A<(this||Q).length;A++)(this||Q).words[A]=(this||Q).words[A+l];else(this||Q).words[0]=0,(this||Q).length=1;var R=0;for(A=(this||Q).length-1;A>=0&&(R!==0||A>=v);A--){var $=(this||Q).words[A]|0;(this||Q).words[A]=R<<26-w|$>>>w,R=$&e}return c&&R!==0&&(c.words[c.length++]=R),(this||Q).length===0&&((this||Q).words[0]=0,(this||Q).length=1),this._strip()},n.prototype.ishrn=function(o,h,f){return a((this||Q).negative===0),this.iushrn(o,h,f)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){a(typeof o=="number"&&o>=0);var h=o%26,f=(o-h)/26,v=1<<h;if((this||Q).length<=f)return!1;var w=(this||Q).words[f];return!!(w&v)},n.prototype.imaskn=function(o){a(typeof o=="number"&&o>=0);var h=o%26,f=(o-h)/26;if(a((this||Q).negative===0,"imaskn works only with positive numbers"),(this||Q).length<=f)return this||Q;if(h!==0&&f++,(this||Q).length=Math.min(f,(this||Q).length),h!==0){var v=67108863^67108863>>>h<<h;(this||Q).words[(this||Q).length-1]&=v}return this._strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return a(typeof o=="number"),a(o<67108864),o<0?this.isubn(-o):(this||Q).negative!==0?(this||Q).length===1&&((this||Q).words[0]|0)<=o?((this||Q).words[0]=o-((this||Q).words[0]|0),(this||Q).negative=0,this||Q):((this||Q).negative=0,this.isubn(o),(this||Q).negative=1,this||Q):this._iaddn(o)},n.prototype._iaddn=function(o){(this||Q).words[0]+=o;for(var h=0;h<(this||Q).length&&(this||Q).words[h]>=67108864;h++)(this||Q).words[h]-=67108864,h===(this||Q).length-1?(this||Q).words[h+1]=1:(this||Q).words[h+1]++;return(this||Q).length=Math.max((this||Q).length,h+1),this||Q},n.prototype.isubn=function(o){if(a(typeof o=="number"),a(o<67108864),o<0)return this.iaddn(-o);if((this||Q).negative!==0)return(this||Q).negative=0,this.iaddn(o),(this||Q).negative=1,this||Q;if((this||Q).words[0]-=o,(this||Q).length===1&&(this||Q).words[0]<0)(this||Q).words[0]=-(this||Q).words[0],(this||Q).negative=1;else for(var h=0;h<(this||Q).length&&(this||Q).words[h]<0;h++)(this||Q).words[h]+=67108864,(this||Q).words[h+1]-=1;return this._strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return(this||Q).negative=0,this||Q},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,h,f){var v=o.length+f,w;this._expand(v);var l,e=0;for(w=0;w<o.length;w++){l=((this||Q).words[w+f]|0)+e;var c=(o.words[w]|0)*h;l-=c&67108863,e=(l>>26)-(c/67108864|0),(this||Q).words[w+f]=l&67108863}for(;w<(this||Q).length-f;w++)l=((this||Q).words[w+f]|0)+e,e=l>>26,(this||Q).words[w+f]=l&67108863;if(e===0)return this._strip();for(a(e===-1),e=0,w=0;w<(this||Q).length;w++)l=-((this||Q).words[w]|0)+e,e=l>>26,(this||Q).words[w]=l&67108863;return(this||Q).negative=1,this._strip()},n.prototype._wordDiv=function(o,h){var f=(this||Q).length-o.length,v=this.clone(),w=o,l=w.words[w.length-1]|0,e=this._countBits(l);f=26-e,f!==0&&(w=w.ushln(f),v.iushln(f),l=w.words[w.length-1]|0);var c=v.length-w.length,A;if(h!=="mod"){A=new n(null),A.length=c+1,A.words=new Array(A.length);for(var R=0;R<A.length;R++)A.words[R]=0}var $=v.clone()._ishlnsubmul(w,1,c);$.negative===0&&(v=$,A&&(A.words[c]=1));for(var L=c-1;L>=0;L--){var j=(v.words[w.length+L]|0)*67108864+(v.words[w.length+L-1]|0);for(j=Math.min(j/l|0,67108863),v._ishlnsubmul(w,j,L);v.negative!==0;)j--,v.negative=0,v._ishlnsubmul(w,1,L),v.isZero()||(v.negative^=1);A&&(A.words[L]=j)}return A&&A._strip(),v._strip(),h!=="div"&&f!==0&&v.iushrn(f),{div:A||null,mod:v}},n.prototype.divmod=function(o,h,f){if(a(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var v,w,l;return(this||Q).negative!==0&&o.negative===0?(l=this.neg().divmod(o,h),h!=="mod"&&(v=l.div.neg()),h!=="div"&&(w=l.mod.neg(),f&&w.negative!==0&&w.iadd(o)),{div:v,mod:w}):(this||Q).negative===0&&o.negative!==0?(l=this.divmod(o.neg(),h),h!=="mod"&&(v=l.div.neg()),{div:v,mod:l.mod}):(this||Q).negative&o.negative?(l=this.neg().divmod(o.neg(),h),h!=="div"&&(w=l.mod.neg(),f&&w.negative!==0&&w.isub(o)),{div:l.div,mod:w}):o.length>(this||Q).length||this.cmp(o)<0?{div:new n(0),mod:this||Q}:o.length===1?h==="div"?{div:this.divn(o.words[0]),mod:null}:h==="mod"?{div:null,mod:new n(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modrn(o.words[0]))}:this._wordDiv(o,h)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var h=this.divmod(o);if(h.mod.isZero())return h.div;var f=h.div.negative!==0?h.mod.isub(o):h.mod,v=o.ushrn(1),w=o.andln(1),l=f.cmp(v);return l<0||w===1&&l===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},n.prototype.modrn=function(o){var h=o<0;h&&(o=-o),a(o<=67108863);for(var f=(1<<26)%o,v=0,w=(this||Q).length-1;w>=0;w--)v=(f*v+((this||Q).words[w]|0))%o;return h?-v:v},n.prototype.modn=function(o){return this.modrn(o)},n.prototype.idivn=function(o){var h=o<0;h&&(o=-o),a(o<=67108863);for(var f=0,v=(this||Q).length-1;v>=0;v--){var w=((this||Q).words[v]|0)+f*67108864;(this||Q).words[v]=w/o|0,f=w%o}return this._strip(),h?this.ineg():this||Q},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){a(o.negative===0),a(!o.isZero());var h=this||Q,f=o.clone();h.negative!==0?h=h.umod(o):h=h.clone();for(var v=new n(1),w=new n(0),l=new n(0),e=new n(1),c=0;h.isEven()&&f.isEven();)h.iushrn(1),f.iushrn(1),++c;for(var A=f.clone(),R=h.clone();!h.isZero();){for(var $=0,L=1;!(h.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(h.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(A),w.isub(R)),v.iushrn(1),w.iushrn(1);for(var j=0,pt=1;!(f.words[0]&pt)&&j<26;++j,pt<<=1);if(j>0)for(f.iushrn(j);j-- >0;)(l.isOdd()||e.isOdd())&&(l.iadd(A),e.isub(R)),l.iushrn(1),e.iushrn(1);h.cmp(f)>=0?(h.isub(f),v.isub(l),w.isub(e)):(f.isub(h),l.isub(v),e.isub(w))}return{a:l,b:e,gcd:f.iushln(c)}},n.prototype._invmp=function(o){a(o.negative===0),a(!o.isZero());var h=this||Q,f=o.clone();h.negative!==0?h=h.umod(o):h=h.clone();for(var v=new n(1),w=new n(0),l=f.clone();h.cmpn(1)>0&&f.cmpn(1)>0;){for(var e=0,c=1;!(h.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(h.iushrn(e);e-- >0;)v.isOdd()&&v.iadd(l),v.iushrn(1);for(var A=0,R=1;!(f.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(f.iushrn(A);A-- >0;)w.isOdd()&&w.iadd(l),w.iushrn(1);h.cmp(f)>=0?(h.isub(f),v.isub(w)):(f.isub(h),w.isub(v))}var $;return h.cmpn(1)===0?$=v:$=w,$.cmpn(0)<0&&$.iadd(o),$},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var h=this.clone(),f=o.clone();h.negative=0,f.negative=0;for(var v=0;h.isEven()&&f.isEven();v++)h.iushrn(1),f.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;f.isEven();)f.iushrn(1);var w=h.cmp(f);if(w<0){var l=h;h=f,f=l}else if(w===0||f.cmpn(1)===0)break;h.isub(f)}while(!0);return f.iushln(v)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return((this||Q).words[0]&1)===0},n.prototype.isOdd=function(){return((this||Q).words[0]&1)===1},n.prototype.andln=function(o){return(this||Q).words[0]&o},n.prototype.bincn=function(o){a(typeof o=="number");var h=o%26,f=(o-h)/26,v=1<<h;if((this||Q).length<=f)return this._expand(f+1),(this||Q).words[f]|=v,this||Q;for(var w=v,l=f;w!==0&&l<(this||Q).length;l++){var e=(this||Q).words[l]|0;e+=w,w=e>>>26,e&=67108863,(this||Q).words[l]=e}return w!==0&&((this||Q).words[l]=w,(this||Q).length++),this||Q},n.prototype.isZero=function(){return(this||Q).length===1&&(this||Q).words[0]===0},n.prototype.cmpn=function(o){var h=o<0;if((this||Q).negative!==0&&!h)return-1;if((this||Q).negative===0&&h)return 1;this._strip();var f;if((this||Q).length>1)f=1;else{h&&(o=-o),a(o<=67108863,"Number is too big");var v=(this||Q).words[0]|0;f=v===o?0:v<o?-1:1}return(this||Q).negative!==0?-f|0:f},n.prototype.cmp=function(o){if((this||Q).negative!==0&&o.negative===0)return-1;if((this||Q).negative===0&&o.negative!==0)return 1;var h=this.ucmp(o);return(this||Q).negative!==0?-h|0:h},n.prototype.ucmp=function(o){if((this||Q).length>o.length)return 1;if((this||Q).length<o.length)return-1;for(var h=0,f=(this||Q).length-1;f>=0;f--){var v=(this||Q).words[f]|0,w=o.words[f]|0;if(v!==w){v<w?h=-1:v>w&&(h=1);break}}return h},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new d(o)},n.prototype.toRed=function(o){return a(!(this||Q).red,"Already a number in reduction context"),a((this||Q).negative===0,"red works only with positives"),o.convertTo(this||Q)._forceRed(o)},n.prototype.fromRed=function(){return a((this||Q).red,"fromRed works only with numbers in reduction context"),(this||Q).red.convertFrom(this||Q)},n.prototype._forceRed=function(o){return(this||Q).red=o,this||Q},n.prototype.forceRed=function(o){return a(!(this||Q).red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return a((this||Q).red,"redAdd works only with red numbers"),(this||Q).red.add(this||Q,o)},n.prototype.redIAdd=function(o){return a((this||Q).red,"redIAdd works only with red numbers"),(this||Q).red.iadd(this||Q,o)},n.prototype.redSub=function(o){return a((this||Q).red,"redSub works only with red numbers"),(this||Q).red.sub(this||Q,o)},n.prototype.redISub=function(o){return a((this||Q).red,"redISub works only with red numbers"),(this||Q).red.isub(this||Q,o)},n.prototype.redShl=function(o){return a((this||Q).red,"redShl works only with red numbers"),(this||Q).red.shl(this||Q,o)},n.prototype.redMul=function(o){return a((this||Q).red,"redMul works only with red numbers"),(this||Q).red._verify2(this||Q,o),(this||Q).red.mul(this||Q,o)},n.prototype.redIMul=function(o){return a((this||Q).red,"redMul works only with red numbers"),(this||Q).red._verify2(this||Q,o),(this||Q).red.imul(this||Q,o)},n.prototype.redSqr=function(){return a((this||Q).red,"redSqr works only with red numbers"),(this||Q).red._verify1(this||Q),(this||Q).red.sqr(this||Q)},n.prototype.redISqr=function(){return a((this||Q).red,"redISqr works only with red numbers"),(this||Q).red._verify1(this||Q),(this||Q).red.isqr(this||Q)},n.prototype.redSqrt=function(){return a((this||Q).red,"redSqrt works only with red numbers"),(this||Q).red._verify1(this||Q),(this||Q).red.sqrt(this||Q)},n.prototype.redInvm=function(){return a((this||Q).red,"redInvm works only with red numbers"),(this||Q).red._verify1(this||Q),(this||Q).red.invm(this||Q)},n.prototype.redNeg=function(){return a((this||Q).red,"redNeg works only with red numbers"),(this||Q).red._verify1(this||Q),(this||Q).red.neg(this||Q)},n.prototype.redPow=function(o){return a((this||Q).red&&!o.red,"redPow(normalNum)"),(this||Q).red._verify1(this||Q),(this||Q).red.pow(this||Q,o)};var G={k256:null,p224:null,p192:null,p25519:null};function U(r,o){(this||Q).name=r,(this||Q).p=new n(o,16),(this||Q).n=(this||Q).p.bitLength(),(this||Q).k=new n(1).iushln((this||Q).n).isub((this||Q).p),(this||Q).tmp=this._tmp()}U.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil((this||Q).n/13)),o},U.prototype.ireduce=function(o){var h=o,f;do this.split(h,(this||Q).tmp),h=this.imulK(h),h=h.iadd((this||Q).tmp),f=h.bitLength();while(f>(this||Q).n);var v=f<(this||Q).n?-1:h.ucmp((this||Q).p);return v===0?(h.words[0]=0,h.length=1):v>0?h.isub((this||Q).p):h.strip!==void 0?h.strip():h._strip(),h},U.prototype.split=function(o,h){o.iushrn((this||Q).n,0,h)},U.prototype.imulK=function(o){return o.imul((this||Q).k)};function V(){U.call(this||Q,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(V,U),V.prototype.split=function(o,h){for(var f=4194303,v=Math.min(o.length,9),w=0;w<v;w++)h.words[w]=o.words[w];if(h.length=v,o.length<=9){o.words[0]=0,o.length=1;return}var l=o.words[9];for(h.words[h.length++]=l&f,w=10;w<o.length;w++){var e=o.words[w]|0;o.words[w-10]=(e&f)<<4|l>>>22,l=e}l>>>=22,o.words[w-10]=l,l===0&&o.length>10?o.length-=10:o.length-=9},V.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var h=0,f=0;f<o.length;f++){var v=o.words[f]|0;h+=v*977,o.words[f]=h&67108863,h=v*64+(h/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function I(){U.call(this||Q,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(I,U);function D(){U.call(this||Q,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(D,U);function z(){U.call(this||Q,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(z,U),z.prototype.imulK=function(o){for(var h=0,f=0;f<o.length;f++){var v=(o.words[f]|0)*19+h,w=v&67108863;v>>>=26,o.words[f]=w,h=v}return h!==0&&(o.words[o.length++]=h),o},n._prime=function(o){if(G[o])return G[o];var h;if(o==="k256")h=new V;else if(o==="p224")h=new I;else if(o==="p192")h=new D;else if(o==="p25519")h=new z;else throw new Error("Unknown prime "+o);return G[o]=h,h};function d(r){if(typeof r=="string"){var o=n._prime(r);(this||Q).m=o.p,(this||Q).prime=o}else a(r.gtn(1),"modulus must be greater than 1"),(this||Q).m=r,(this||Q).prime=null}d.prototype._verify1=function(o){a(o.negative===0,"red works only with positives"),a(o.red,"red works only with red numbers")},d.prototype._verify2=function(o,h){a((o.negative|h.negative)===0,"red works only with positives"),a(o.red&&o.red===h.red,"red works only with red numbers")},d.prototype.imod=function(o){return(this||Q).prime?(this||Q).prime.ireduce(o)._forceRed(this||Q):(b(o,o.umod((this||Q).m)._forceRed(this||Q)),o)},d.prototype.neg=function(o){return o.isZero()?o.clone():(this||Q).m.sub(o)._forceRed(this||Q)},d.prototype.add=function(o,h){this._verify2(o,h);var f=o.add(h);return f.cmp((this||Q).m)>=0&&f.isub((this||Q).m),f._forceRed(this||Q)},d.prototype.iadd=function(o,h){this._verify2(o,h);var f=o.iadd(h);return f.cmp((this||Q).m)>=0&&f.isub((this||Q).m),f},d.prototype.sub=function(o,h){this._verify2(o,h);var f=o.sub(h);return f.cmpn(0)<0&&f.iadd((this||Q).m),f._forceRed(this||Q)},d.prototype.isub=function(o,h){this._verify2(o,h);var f=o.isub(h);return f.cmpn(0)<0&&f.iadd((this||Q).m),f},d.prototype.shl=function(o,h){return this._verify1(o),this.imod(o.ushln(h))},d.prototype.imul=function(o,h){return this._verify2(o,h),this.imod(o.imul(h))},d.prototype.mul=function(o,h){return this._verify2(o,h),this.imod(o.mul(h))},d.prototype.isqr=function(o){return this.imul(o,o.clone())},d.prototype.sqr=function(o){return this.mul(o,o)},d.prototype.sqrt=function(o){if(o.isZero())return o.clone();var h=(this||Q).m.andln(3);if(a(h%2===1),h===3){var f=(this||Q).m.add(new n(1)).iushrn(2);return this.pow(o,f)}for(var v=(this||Q).m.subn(1),w=0;!v.isZero()&&v.andln(1)===0;)w++,v.iushrn(1);a(!v.isZero());var l=new n(1).toRed(this||Q),e=l.redNeg(),c=(this||Q).m.subn(1).iushrn(1),A=(this||Q).m.bitLength();for(A=new n(2*A*A).toRed(this||Q);this.pow(A,c).cmp(e)!==0;)A.redIAdd(e);for(var R=this.pow(A,v),$=this.pow(o,v.addn(1).iushrn(1)),L=this.pow(o,v),j=w;L.cmp(l)!==0;){for(var pt=L,W=0;pt.cmp(l)!==0;W++)pt=pt.redSqr();a(W<j);var N=this.pow(R,new n(1).iushln(j-W-1));$=$.redMul(N),R=N.redSqr(),L=L.redMul(R),j=W}return $},d.prototype.invm=function(o){var h=o._invmp((this||Q).m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},d.prototype.pow=function(o,h){if(h.isZero())return new n(1).toRed(this||Q);if(h.cmpn(1)===0)return o.clone();var f=4,v=new Array(1<<f);v[0]=new n(1).toRed(this||Q),v[1]=o;for(var w=2;w<v.length;w++)v[w]=this.mul(v[w-1],o);var l=v[0],e=0,c=0,A=h.bitLength()%26;for(A===0&&(A=26),w=h.length-1;w>=0;w--){for(var R=h.words[w],$=A-1;$>=0;$--){var L=R>>$&1;if(l!==v[0]&&(l=this.sqr(l)),L===0&&e===0){c=0;continue}e<<=1,e|=L,c++,!(c!==f&&(w!==0||$!==0))&&(l=this.mul(l,v[e]),c=0,e=0)}A=26}return l},d.prototype.convertTo=function(o){var h=o.umod((this||Q).m);return h===o?h.clone():h},d.prototype.convertFrom=function(o){var h=o.clone();return h.red=null,h},n.mont=function(o){return new t(o)};function t(r){d.call(this||Q,r),(this||Q).shift=(this||Q).m.bitLength(),(this||Q).shift%26!==0&&((this||Q).shift+=26-(this||Q).shift%26),(this||Q).r=new n(1).iushln((this||Q).shift),(this||Q).r2=this.imod((this||Q).r.sqr()),(this||Q).rinv=(this||Q).r._invmp((this||Q).m),(this||Q).minv=(this||Q).rinv.mul((this||Q).r).isubn(1).div((this||Q).m),(this||Q).minv=(this||Q).minv.umod((this||Q).r),(this||Q).minv=(this||Q).r.sub((this||Q).minv)}u(t,d),t.prototype.convertTo=function(o){return this.imod(o.ushln((this||Q).shift))},t.prototype.convertFrom=function(o){var h=this.imod(o.mul((this||Q).rinv));return h.red=null,h},t.prototype.imul=function(o,h){if(o.isZero()||h.isZero())return o.words[0]=0,o.length=1,o;var f=o.imul(h),v=f.maskn((this||Q).shift).mul((this||Q).minv).imaskn((this||Q).shift).mul((this||Q).m),w=f.isub(v).iushrn((this||Q).shift),l=w;return w.cmp((this||Q).m)>=0?l=w.isub((this||Q).m):w.cmpn(0)<0&&(l=w.iadd((this||Q).m)),l._forceRed(this||Q)},t.prototype.mul=function(o,h){if(o.isZero()||h.isZero())return new n(0)._forceRed(this||Q);var f=o.mul(h),v=f.maskn((this||Q).shift).mul((this||Q).minv).imaskn((this||Q).shift).mul((this||Q).m),w=f.isub(v).iushrn((this||Q).shift),l=w;return w.cmp((this||Q).m)>=0?l=w.isub((this||Q).m):w.cmpn(0)<0&&(l=w.iadd((this||Q).m)),l._forceRed(this||Q)},t.prototype.invm=function(o){var h=this.imod(o._invmp((this||Q).m).mul((this||Q).r2));return h._forceRed(this||Q)}}(C2,Ek)),C2.exports}var P2={},G_=!1;function Gb(){if(G_)return P2;G_=!0;var i=Tr.Buffer,s=Kb(),a=Fh();function u(m){var y=n(m),M=y.toRed(s.mont(m.modulus)).redPow(new s(m.publicExponent)).fromRed();return{blinder:M,unblinder:y.invm(m.modulus)}}function n(m){var y=m.modulus.byteLength(),M;do M=new s(a(y));while(M.cmp(m.modulus)>=0||!M.umod(m.prime1)||!M.umod(m.prime2));return M}function p(m,y){var M=u(y),b=y.modulus.byteLength(),g=new s(m).mul(M.blinder).umod(y.modulus),S=g.toRed(s.mont(y.prime1)),_=g.toRed(s.mont(y.prime2)),x=y.coefficient,E=y.prime1,k=y.prime2,B=S.redPow(y.exponent1).fromRed(),T=_.redPow(y.exponent2).fromRed(),C=B.isub(T).imul(x).umod(E).imul(k);return T.iadd(C).imul(M.unblinder).umod(y.modulus).toArrayLike(i,"be",b)}return p.getr=n,P2=p,P2}var gU={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}},Ak={},Z_=!1,D2={exports:Ak},ht=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function ia(){return Z_||(Z_=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||ht).negative=0,(this||ht).words=null,(this||ht).length=0,(this||ht).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Tr.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||ht).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||ht).negative=1,t=-t),t<67108864?((this||ht).words=[t&67108863],(this||ht).length=1):t<4503599627370496?((this||ht).words=[t&67108863,t/67108864&67108863],(this||ht).length=2):(a(t<9007199254740992),(this||ht).words=[t&67108863,t/67108864&67108863,1],(this||ht).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||ht).words=[0],(this||ht).length=1,this||ht;(this||ht).length=Math.ceil(t.length/3),(this||ht).words=new Array((this||ht).length);for(var h=0;h<(this||ht).length;h++)(this||ht).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||ht).words[f]|=v<<w&67108863,(this||ht).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||ht).words[f]|=v<<w&67108863,(this||ht).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||ht).length=Math.ceil((t.length-r)/6),(this||ht).words=new Array((this||ht).length);for(var h=0;h<(this||ht).length;h++)(this||ht).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||ht).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||ht).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||ht).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||ht).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||ht).words=[0],(this||ht).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||ht).words[0]+e<67108864?(this||ht).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||ht).words[0]+e<67108864?(this||ht).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||ht).length);for(var r=0;r<(this||ht).length;r++)t.words[r]=(this||ht).words[r];t.length=(this||ht).length,t.negative=(this||ht).negative,t.red=(this||ht).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||ht).length<t;)(this||ht).words[(this||ht).length++]=0;return this||ht},n.prototype.strip=function(){for(;(this||ht).length>1&&(this||ht).words[(this||ht).length-1]===0;)(this||ht).length--;return this._normSign()},n.prototype._normSign=function(){return(this||ht).length===1&&(this||ht).words[0]===0&&((this||ht).negative=0),this||ht},n.prototype.inspect=function(){return((this||ht).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||ht).length;v++){var w=(this||ht).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||ht).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||ht).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||ht).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||ht).words[0];return(this||ht).length===2?t+=(this||ht).words[1]*67108864:(this||ht).length===3&&(this||ht).words[2]===1?t+=4503599627370496+(this||ht).words[1]*67108864:(this||ht).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||ht).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||ht).words[(this||ht).length-1],r=this._countBits(t);return((this||ht).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||ht).length;r++){var o=this._zeroBits((this||ht).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||ht).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||ht).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||ht).negative^=1),this||ht},n.prototype.iuor=function(t){for(;(this||ht).length<t.length;)(this||ht).words[(this||ht).length++]=0;for(var r=0;r<t.length;r++)(this||ht).words[r]=(this||ht).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||ht).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||ht).length>t.length?this.clone().ior(t):t.clone().ior(this||ht)},n.prototype.uor=function(t){return(this||ht).length>t.length?this.clone().iuor(t):t.clone().iuor(this||ht)},n.prototype.iuand=function(t){var r;(this||ht).length>t.length?r=t:r=this||ht;for(var o=0;o<r.length;o++)(this||ht).words[o]=(this||ht).words[o]&t.words[o];return(this||ht).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||ht).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||ht).length>t.length?this.clone().iand(t):t.clone().iand(this||ht)},n.prototype.uand=function(t){return(this||ht).length>t.length?this.clone().iuand(t):t.clone().iuand(this||ht)},n.prototype.iuxor=function(t){var r,o;(this||ht).length>t.length?(r=this||ht,o=t):(r=t,o=this||ht);for(var h=0;h<o.length;h++)(this||ht).words[h]=r.words[h]^o.words[h];if((this||ht)!==r)for(;h<r.length;h++)(this||ht).words[h]=r.words[h];return(this||ht).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||ht).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||ht).length>t.length?this.clone().ixor(t):t.clone().ixor(this||ht)},n.prototype.uxor=function(t){return(this||ht).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||ht)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||ht).words[h]=~(this||ht).words[h]&67108863;return o>0&&((this||ht).words[h]=~(this||ht).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||ht).words[o]=(this||ht).words[o]|1<<h:(this||ht).words[o]=(this||ht).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||ht).negative!==0&&t.negative===0)return(this||ht).negative=0,r=this.isub(t),(this||ht).negative^=1,this._normSign();if((this||ht).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||ht).length>t.length?(o=this||ht,h=t):(o=t,h=this||ht);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||ht).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||ht).words[v]=r&67108863,f=r>>>26;if((this||ht).length=o.length,f!==0)(this||ht).words[(this||ht).length]=f,(this||ht).length++;else if(o!==(this||ht))for(;v<o.length;v++)(this||ht).words[v]=o.words[v];return this||ht},n.prototype.add=function(t){var r;return t.negative!==0&&(this||ht).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||ht).negative!==0?((this||ht).negative=0,r=t.sub(this||ht),(this||ht).negative=1,r):(this||ht).length>t.length?this.clone().iadd(t):t.clone().iadd(this||ht)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||ht).negative!==0)return(this||ht).negative=0,this.iadd(t),(this||ht).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||ht).negative=0,(this||ht).length=1,(this||ht).words[0]=0,this||ht;var h,f;o>0?(h=this||ht,f=t):(h=t,f=this||ht);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||ht).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||ht).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||ht))for(;w<h.length;w++)(this||ht).words[w]=h.words[w];return(this||ht).length=Math.max((this||ht).length,w),h!==(this||ht)&&((this||ht).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||ht).length+t.length;return(this||ht).length===10&&t.length===10?o=E(this||ht,t,r):h<63?o=x(this||ht,t,r):h<1024?o=k(this||ht,t,r):o=B(this||ht,t,r),o};function T(d,t){(this||ht).x=d,(this||ht).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||ht).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||ht).length+t.length),B(this||ht,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||ht)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||ht).length;o++){var h=((this||ht).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||ht).words[o]=f&67108863}return r!==0&&((this||ht).words[o]=r,(this||ht).length++),this||ht},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||ht)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||ht,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||ht).length;f++){var w=(this||ht).words[f]&h,l=((this||ht).words[f]|0)-w<<r;(this||ht).words[f]=l|v,v=w>>>26-r}v&&((this||ht).words[f]=v,(this||ht).length++)}if(o!==0){for(f=(this||ht).length-1;f>=0;f--)(this||ht).words[f+o]=(this||ht).words[f];for(f=0;f<o;f++)(this||ht).words[f]=0;(this||ht).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||ht).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||ht).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||ht).words[e];l.length=v}if(v!==0)if((this||ht).length>v)for((this||ht).length-=v,e=0;e<(this||ht).length;e++)(this||ht).words[e]=(this||ht).words[e+v];else(this||ht).words[0]=0,(this||ht).length=1;var c=0;for(e=(this||ht).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||ht).words[e]|0;(this||ht).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||ht).length===0&&((this||ht).words[0]=0,(this||ht).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||ht).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||ht).length<=o)return!1;var f=(this||ht).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||ht).negative===0,"imaskn works only with positive numbers"),(this||ht).length<=o)return this||ht;if(r!==0&&o++,(this||ht).length=Math.min(o,(this||ht).length),r!==0){var h=67108863^67108863>>>r<<r;(this||ht).words[(this||ht).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||ht).negative!==0?(this||ht).length===1&&((this||ht).words[0]|0)<t?((this||ht).words[0]=t-((this||ht).words[0]|0),(this||ht).negative=0,this||ht):((this||ht).negative=0,this.isubn(t),(this||ht).negative=1,this||ht):this._iaddn(t)},n.prototype._iaddn=function(t){(this||ht).words[0]+=t;for(var r=0;r<(this||ht).length&&(this||ht).words[r]>=67108864;r++)(this||ht).words[r]-=67108864,r===(this||ht).length-1?(this||ht).words[r+1]=1:(this||ht).words[r+1]++;return(this||ht).length=Math.max((this||ht).length,r+1),this||ht},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||ht).negative!==0)return(this||ht).negative=0,this.iaddn(t),(this||ht).negative=1,this||ht;if((this||ht).words[0]-=t,(this||ht).length===1&&(this||ht).words[0]<0)(this||ht).words[0]=-(this||ht).words[0],(this||ht).negative=1;else for(var r=0;r<(this||ht).length&&(this||ht).words[r]<0;r++)(this||ht).words[r]+=67108864,(this||ht).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||ht).negative=0,this||ht},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||ht).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||ht).words[f+o]=v&67108863}for(;f<(this||ht).length-o;f++)v=((this||ht).words[f+o]|0)+w,w=v>>26,(this||ht).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||ht).length;f++)v=-((this||ht).words[f]|0)+w,w=v>>26,(this||ht).words[f]=v&67108863;return(this||ht).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||ht).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||ht).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||ht).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||ht).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||ht).length||this.cmp(t)<0?{div:new n(0),mod:this||ht}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||ht).length-1;h>=0;h--)o=(r*o+((this||ht).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||ht).length-1;o>=0;o--){var h=((this||ht).words[o]|0)+r*67108864;(this||ht).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||ht,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||ht,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||ht).words[0]&1)===0},n.prototype.isOdd=function(){return((this||ht).words[0]&1)===1},n.prototype.andln=function(t){return(this||ht).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||ht).length<=o)return this._expand(o+1),(this||ht).words[o]|=h,this||ht;for(var f=h,v=o;f!==0&&v<(this||ht).length;v++){var w=(this||ht).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||ht).words[v]=w}return f!==0&&((this||ht).words[v]=f,(this||ht).length++),this||ht},n.prototype.isZero=function(){return(this||ht).length===1&&(this||ht).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||ht).negative!==0&&!r)return-1;if((this||ht).negative===0&&r)return 1;this.strip();var o;if((this||ht).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||ht).words[0]|0;o=h===t?0:h<t?-1:1}return(this||ht).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||ht).negative!==0&&t.negative===0)return-1;if((this||ht).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||ht).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||ht).length>t.length)return 1;if((this||ht).length<t.length)return-1;for(var r=0,o=(this||ht).length-1;o>=0;o--){var h=(this||ht).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||ht).red,"Already a number in reduction context"),a((this||ht).negative===0,"red works only with positives"),t.convertTo(this||ht)._forceRed(t)},n.prototype.fromRed=function(){return a((this||ht).red,"fromRed works only with numbers in reduction context"),(this||ht).red.convertFrom(this||ht)},n.prototype._forceRed=function(t){return(this||ht).red=t,this||ht},n.prototype.forceRed=function(t){return a(!(this||ht).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||ht).red,"redAdd works only with red numbers"),(this||ht).red.add(this||ht,t)},n.prototype.redIAdd=function(t){return a((this||ht).red,"redIAdd works only with red numbers"),(this||ht).red.iadd(this||ht,t)},n.prototype.redSub=function(t){return a((this||ht).red,"redSub works only with red numbers"),(this||ht).red.sub(this||ht,t)},n.prototype.redISub=function(t){return a((this||ht).red,"redISub works only with red numbers"),(this||ht).red.isub(this||ht,t)},n.prototype.redShl=function(t){return a((this||ht).red,"redShl works only with red numbers"),(this||ht).red.shl(this||ht,t)},n.prototype.redMul=function(t){return a((this||ht).red,"redMul works only with red numbers"),(this||ht).red._verify2(this||ht,t),(this||ht).red.mul(this||ht,t)},n.prototype.redIMul=function(t){return a((this||ht).red,"redMul works only with red numbers"),(this||ht).red._verify2(this||ht,t),(this||ht).red.imul(this||ht,t)},n.prototype.redSqr=function(){return a((this||ht).red,"redSqr works only with red numbers"),(this||ht).red._verify1(this||ht),(this||ht).red.sqr(this||ht)},n.prototype.redISqr=function(){return a((this||ht).red,"redISqr works only with red numbers"),(this||ht).red._verify1(this||ht),(this||ht).red.isqr(this||ht)},n.prototype.redSqrt=function(){return a((this||ht).red,"redSqrt works only with red numbers"),(this||ht).red._verify1(this||ht),(this||ht).red.sqrt(this||ht)},n.prototype.redInvm=function(){return a((this||ht).red,"redInvm works only with red numbers"),(this||ht).red._verify1(this||ht),(this||ht).red.invm(this||ht)},n.prototype.redNeg=function(){return a((this||ht).red,"redNeg works only with red numbers"),(this||ht).red._verify1(this||ht),(this||ht).red.neg(this||ht)},n.prototype.redPow=function(t){return a((this||ht).red&&!t.red,"redPow(normalNum)"),(this||ht).red._verify1(this||ht),(this||ht).red.pow(this||ht,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||ht).name=d,(this||ht).p=new n(t,16),(this||ht).n=(this||ht).p.bitLength(),(this||ht).k=new n(1).iushln((this||ht).n).isub((this||ht).p),(this||ht).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||ht).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||ht).tmp),r=this.imulK(r),r=r.iadd((this||ht).tmp),o=r.bitLength();while(o>(this||ht).n);var h=o<(this||ht).n?-1:r.ucmp((this||ht).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||ht).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||ht).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||ht).k)};function G(){P.call(this||ht,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||ht,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||ht,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||ht,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||ht).m=t.p,(this||ht).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||ht).m=d,(this||ht).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||ht).prime?(this||ht).prime.ireduce(t)._forceRed(this||ht):t.umod((this||ht).m)._forceRed(this||ht)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||ht).m.sub(t)._forceRed(this||ht)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||ht).m)>=0&&o.isub((this||ht).m),o._forceRed(this||ht)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||ht).m)>=0&&o.isub((this||ht).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||ht).m),o._forceRed(this||ht)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||ht).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||ht).m.andln(3);if(a(r%2===1),r===3){var o=(this||ht).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||ht).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||ht),w=v.redNeg(),l=(this||ht).m.subn(1).iushrn(1),e=(this||ht).m.bitLength();for(e=new n(2*e*e).toRed(this||ht);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||ht).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||ht);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||ht),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||ht).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||ht,d),(this||ht).shift=(this||ht).m.bitLength(),(this||ht).shift%26!==0&&((this||ht).shift+=26-(this||ht).shift%26),(this||ht).r=new n(1).iushln((this||ht).shift),(this||ht).r2=this.imod((this||ht).r.sqr()),(this||ht).rinv=(this||ht).r._invmp((this||ht).m),(this||ht).minv=(this||ht).rinv.mul((this||ht).r).isubn(1).div((this||ht).m),(this||ht).minv=(this||ht).minv.umod((this||ht).r),(this||ht).minv=(this||ht).r.sub((this||ht).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||ht).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||ht).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||ht).shift).mul((this||ht).minv).imaskn((this||ht).shift).mul((this||ht).m),f=o.isub(h).iushrn((this||ht).shift),v=f;return f.cmp((this||ht).m)>=0?v=f.isub((this||ht).m):f.cmpn(0)<0&&(v=f.iadd((this||ht).m)),v._forceRed(this||ht)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||ht);var o=t.mul(r),h=o.maskn((this||ht).shift).mul((this||ht).minv).imaskn((this||ht).shift).mul((this||ht).m),f=o.isub(h).iushrn((this||ht).shift),v=f;return f.cmp((this||ht).m)>=0?v=f.isub((this||ht).m):f.cmpn(0)<0&&(v=f.iadd((this||ht).m)),v._forceRed(this||ht)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||ht).m).mul((this||ht).r2));return r._forceRed(this||ht)}}(D2,Ak)),D2.exports}var L2={},V_=!1;function kk(){if(V_)return L2;V_=!0;var i=L2;function s(n,p){if(Array.isArray(n))return n.slice();if(!n)return[];var m=[];if(typeof n!="string"){for(var y=0;y<n.length;y++)m[y]=n[y]|0;return m}if(p==="hex"){n=n.replace(/[^a-z0-9]+/ig,""),n.length%2!==0&&(n="0"+n);for(var y=0;y<n.length;y+=2)m.push(parseInt(n[y]+n[y+1],16))}else for(var y=0;y<n.length;y++){var M=n.charCodeAt(y),b=M>>8,g=M&255;b?m.push(b,g):m.push(g)}return m}i.toArray=s;function a(n){return n.length===1?"0"+n:n}i.zero2=a;function u(n){for(var p="",m=0;m<n.length;m++)p+=a(n[m].toString(16));return p}return i.toHex=u,i.encode=function(p,m){return m==="hex"?u(p):p},L2}var O2={},W_=!1;function On(){if(W_)return O2;W_=!0;var i=O2,s=ia(),a=$o(),u=kk();i.assert=a,i.toArray=u.toArray,i.zero2=u.zero2,i.toHex=u.toHex,i.encode=u.encode;function n(b,g,S){var _=new Array(Math.max(b.bitLength(),S)+1);_.fill(0);for(var x=1<<g+1,E=b.clone(),k=0;k<_.length;k++){var B,T=E.andln(x-1);E.isOdd()?(T>(x>>1)-1?B=(x>>1)-T:B=T,E.isubn(B)):B=0,_[k]=B,E.iushrn(1)}return _}i.getNAF=n;function p(b,g){var S=[[],[]];b=b.clone(),g=g.clone();for(var _=0,x=0,E;b.cmpn(-_)>0||g.cmpn(-x)>0;){var k=b.andln(3)+_&3,B=g.andln(3)+x&3;k===3&&(k=-1),B===3&&(B=-1);var T;k&1?(E=b.andln(7)+_&7,(E===3||E===5)&&B===2?T=-k:T=k):T=0,S[0].push(T);var C;B&1?(E=g.andln(7)+x&7,(E===3||E===5)&&k===2?C=-B:C=B):C=0,S[1].push(C),2*_===T+1&&(_=1-_),2*x===C+1&&(x=1-x),b.iushrn(1),g.iushrn(1)}return S}i.getJSF=p;function m(b,g,S){var _="_"+g;b.prototype[g]=function(){return this[_]!==void 0?this[_]:this[_]=S.call(this)}}i.cachedProperty=m;function y(b){return typeof b=="string"?i.toArray(b,"hex"):b}i.parseBytes=y;function M(b){return new s(b,"hex","le")}return i.intFromLE=M,O2}var N2={},X_=!1;function Ec(){if(X_)return N2;X_=!0;var i=ia(),s=On(),a=s.getNAF,u=s.getJSF,n=s.assert;function p(y,M){this.type=y,this.p=new i(M.p,16),this.red=M.prime?i.red(M.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=M.n&&new i(M.n,16),this.g=M.g&&this.pointFromJSON(M.g,M.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var b=this.n&&this.p.div(this.n);!b||b.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}N2=p,p.prototype.point=function(){throw new Error("Not implemented")},p.prototype.validate=function(){throw new Error("Not implemented")},p.prototype._fixedNafMul=function(M,b){n(M.precomputed);var g=M._getDoubles(),S=a(b,1,this._bitLength),_=(1<<g.step+1)-(g.step%2===0?2:1);_/=3;var x=[],E,k;for(E=0;E<S.length;E+=g.step){k=0;for(var B=E+g.step-1;B>=E;B--)k=(k<<1)+S[B];x.push(k)}for(var T=this.jpoint(null,null,null),C=this.jpoint(null,null,null),P=_;P>0;P--){for(E=0;E<x.length;E++)k=x[E],k===P?C=C.mixedAdd(g.points[E]):k===-P&&(C=C.mixedAdd(g.points[E].neg()));T=T.add(C)}return T.toP()},p.prototype._wnafMul=function(M,b){var g=4,S=M._getNAFPoints(g);g=S.wnd;for(var _=S.points,x=a(b,g,this._bitLength),E=this.jpoint(null,null,null),k=x.length-1;k>=0;k--){for(var B=0;k>=0&&x[k]===0;k--)B++;if(k>=0&&B++,E=E.dblp(B),k<0)break;var T=x[k];n(T!==0),M.type==="affine"?T>0?E=E.mixedAdd(_[T-1>>1]):E=E.mixedAdd(_[-T-1>>1].neg()):T>0?E=E.add(_[T-1>>1]):E=E.add(_[-T-1>>1].neg())}return M.type==="affine"?E.toP():E},p.prototype._wnafMulAdd=function(M,b,g,S,_){var x=this._wnafT1,E=this._wnafT2,k=this._wnafT3,B=0,T,C,P;for(T=0;T<S;T++){P=b[T];var G=P._getNAFPoints(M);x[T]=G.wnd,E[T]=G.points}for(T=S-1;T>=1;T-=2){var U=T-1,V=T;if(x[U]!==1||x[V]!==1){k[U]=a(g[U],x[U],this._bitLength),k[V]=a(g[V],x[V],this._bitLength),B=Math.max(k[U].length,B),B=Math.max(k[V].length,B);continue}var I=[b[U],null,null,b[V]];b[U].y.cmp(b[V].y)===0?(I[1]=b[U].add(b[V]),I[2]=b[U].toJ().mixedAdd(b[V].neg())):b[U].y.cmp(b[V].y.redNeg())===0?(I[1]=b[U].toJ().mixedAdd(b[V]),I[2]=b[U].add(b[V].neg())):(I[1]=b[U].toJ().mixedAdd(b[V]),I[2]=b[U].toJ().mixedAdd(b[V].neg()));var D=[-3,-1,-5,-7,0,7,5,1,3],z=u(g[U],g[V]);for(B=Math.max(z[0].length,B),k[U]=new Array(B),k[V]=new Array(B),C=0;C<B;C++){var d=z[0][C]|0,t=z[1][C]|0;k[U][C]=D[(d+1)*3+(t+1)],k[V][C]=0,E[U]=I}}var r=this.jpoint(null,null,null),o=this._wnafT4;for(T=B;T>=0;T--){for(var h=0;T>=0;){var f=!0;for(C=0;C<S;C++)o[C]=k[C][T]|0,o[C]!==0&&(f=!1);if(!f)break;h++,T--}if(T>=0&&h++,r=r.dblp(h),T<0)break;for(C=0;C<S;C++){var v=o[C];v!==0&&(v>0?P=E[C][v-1>>1]:v<0&&(P=E[C][-v-1>>1].neg()),P.type==="affine"?r=r.mixedAdd(P):r=r.add(P))}}for(T=0;T<S;T++)E[T]=null;return _?r:r.toP()};function m(y,M){this.curve=y,this.type=M,this.precomputed=null}return p.BasePoint=m,m.prototype.eq=function(){throw new Error("Not implemented")},m.prototype.validate=function(){return this.curve.validate(this)},p.prototype.decodePoint=function(M,b){M=s.toArray(M,b);var g=this.p.byteLength();if((M[0]===4||M[0]===6||M[0]===7)&&M.length-1===2*g){M[0]===6?n(M[M.length-1]%2===0):M[0]===7&&n(M[M.length-1]%2===1);var S=this.point(M.slice(1,1+g),M.slice(1+g,1+2*g));return S}else if((M[0]===2||M[0]===3)&&M.length-1===g)return this.pointFromX(M.slice(1,1+g),M[0]===3);throw new Error("Unknown point format")},m.prototype.encodeCompressed=function(M){return this.encode(M,!0)},m.prototype._encode=function(M){var b=this.curve.p.byteLength(),g=this.getX().toArray("be",b);return M?[this.getY().isEven()?2:3].concat(g):[4].concat(g,this.getY().toArray("be",b))},m.prototype.encode=function(M,b){return s.encode(this._encode(b),M)},m.prototype.precompute=function(M){if(this.precomputed)return this;var b={doubles:null,naf:null,beta:null};return b.naf=this._getNAFPoints(8),b.doubles=this._getDoubles(4,M),b.beta=this._getBeta(),this.precomputed=b,this},m.prototype._hasDoubles=function(M){if(!this.precomputed)return!1;var b=this.precomputed.doubles;return b?b.points.length>=Math.ceil((M.bitLength()+1)/b.step):!1},m.prototype._getDoubles=function(M,b){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var g=[this],S=this,_=0;_<b;_+=M){for(var x=0;x<M;x++)S=S.dbl();g.push(S)}return{step:M,points:g}},m.prototype._getNAFPoints=function(M){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var b=[this],g=(1<<M)-1,S=g===1?null:this.dbl(),_=1;_<g;_++)b[_]=b[_-1].add(S);return{wnd:M,points:b}},m.prototype._getBeta=function(){return null},m.prototype.dblp=function(M){for(var b=this,g=0;g<M;g++)b=b.dbl();return b},N2}var q2={},J_=!1;function bU(){if(J_)return q2;J_=!0;var i=On(),s=ia(),a=Je(),u=Ec(),n=i.assert;function p(M){u.call(this,"short",M),this.a=new s(M.a,16).toRed(this.red),this.b=new s(M.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(M),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}a(p,u),q2=p,p.prototype._getEndomorphism=function(b){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var g,S;if(b.beta)g=new s(b.beta,16).toRed(this.red);else{var _=this._getEndoRoots(this.p);g=_[0].cmp(_[1])<0?_[0]:_[1],g=g.toRed(this.red)}if(b.lambda)S=new s(b.lambda,16);else{var x=this._getEndoRoots(this.n);this.g.mul(x[0]).x.cmp(this.g.x.redMul(g))===0?S=x[0]:(S=x[1],n(this.g.mul(S).x.cmp(this.g.x.redMul(g))===0))}var E;return b.basis?E=b.basis.map(function(k){return{a:new s(k.a,16),b:new s(k.b,16)}}):E=this._getEndoBasis(S),{beta:g,lambda:S,basis:E}}},p.prototype._getEndoRoots=function(b){var g=b===this.p?this.red:s.mont(b),S=new s(2).toRed(g).redInvm(),_=S.redNeg(),x=new s(3).toRed(g).redNeg().redSqrt().redMul(S),E=_.redAdd(x).fromRed(),k=_.redSub(x).fromRed();return[E,k]},p.prototype._getEndoBasis=function(b){for(var g=this.n.ushrn(Math.floor(this.n.bitLength()/2)),S=b,_=this.n.clone(),x=new s(1),E=new s(0),k=new s(0),B=new s(1),T,C,P,G,U,V,I,D=0,z,d;S.cmpn(0)!==0;){var t=_.div(S);z=_.sub(t.mul(S)),d=k.sub(t.mul(x));var r=B.sub(t.mul(E));if(!P&&z.cmp(g)<0)T=I.neg(),C=x,P=z.neg(),G=d;else if(P&&++D===2)break;I=z,_=S,S=z,k=x,x=d,B=E,E=r}U=z.neg(),V=d;var o=P.sqr().add(G.sqr()),h=U.sqr().add(V.sqr());return h.cmp(o)>=0&&(U=T,V=C),P.negative&&(P=P.neg(),G=G.neg()),U.negative&&(U=U.neg(),V=V.neg()),[{a:P,b:G},{a:U,b:V}]},p.prototype._endoSplit=function(b){var g=this.endo.basis,S=g[0],_=g[1],x=_.b.mul(b).divRound(this.n),E=S.b.neg().mul(b).divRound(this.n),k=x.mul(S.a),B=E.mul(_.a),T=x.mul(S.b),C=E.mul(_.b),P=b.sub(k).sub(B),G=T.add(C).neg();return{k1:P,k2:G}},p.prototype.pointFromX=function(b,g){b=new s(b,16),b.red||(b=b.toRed(this.red));var S=b.redSqr().redMul(b).redIAdd(b.redMul(this.a)).redIAdd(this.b),_=S.redSqrt();if(_.redSqr().redSub(S).cmp(this.zero)!==0)throw new Error("invalid point");var x=_.fromRed().isOdd();return(g&&!x||!g&&x)&&(_=_.redNeg()),this.point(b,_)},p.prototype.validate=function(b){if(b.inf)return!0;var g=b.x,S=b.y,_=this.a.redMul(g),x=g.redSqr().redMul(g).redIAdd(_).redIAdd(this.b);return S.redSqr().redISub(x).cmpn(0)===0},p.prototype._endoWnafMulAdd=function(b,g,S){for(var _=this._endoWnafT1,x=this._endoWnafT2,E=0;E<b.length;E++){var k=this._endoSplit(g[E]),B=b[E],T=B._getBeta();k.k1.negative&&(k.k1.ineg(),B=B.neg(!0)),k.k2.negative&&(k.k2.ineg(),T=T.neg(!0)),_[E*2]=B,_[E*2+1]=T,x[E*2]=k.k1,x[E*2+1]=k.k2}for(var C=this._wnafMulAdd(1,_,x,E*2,S),P=0;P<E*2;P++)_[P]=null,x[P]=null;return C};function m(M,b,g,S){u.BasePoint.call(this,M,"affine"),b===null&&g===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new s(b,16),this.y=new s(g,16),S&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}a(m,u.BasePoint),p.prototype.point=function(b,g,S){return new m(this,b,g,S)},p.prototype.pointFromJSON=function(b,g){return m.fromJSON(this,b,g)},m.prototype._getBeta=function(){if(this.curve.endo){var b=this.precomputed;if(b&&b.beta)return b.beta;var g=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(b){var S=this.curve,_=function(x){return S.point(x.x.redMul(S.endo.beta),x.y)};b.beta=g,g.precomputed={beta:null,naf:b.naf&&{wnd:b.naf.wnd,points:b.naf.points.map(_)},doubles:b.doubles&&{step:b.doubles.step,points:b.doubles.points.map(_)}}}return g}},m.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},m.fromJSON=function(b,g,S){typeof g=="string"&&(g=JSON.parse(g));var _=b.point(g[0],g[1],S);if(!g[2])return _;function x(k){return b.point(k[0],k[1],S)}var E=g[2];return _.precomputed={beta:null,doubles:E.doubles&&{step:E.doubles.step,points:[_].concat(E.doubles.points.map(x))},naf:E.naf&&{wnd:E.naf.wnd,points:[_].concat(E.naf.points.map(x))}},_},m.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},m.prototype.isInfinity=function(){return this.inf},m.prototype.add=function(b){if(this.inf)return b;if(b.inf)return this;if(this.eq(b))return this.dbl();if(this.neg().eq(b))return this.curve.point(null,null);if(this.x.cmp(b.x)===0)return this.curve.point(null,null);var g=this.y.redSub(b.y);g.cmpn(0)!==0&&(g=g.redMul(this.x.redSub(b.x).redInvm()));var S=g.redSqr().redISub(this.x).redISub(b.x),_=g.redMul(this.x.redSub(S)).redISub(this.y);return this.curve.point(S,_)},m.prototype.dbl=function(){if(this.inf)return this;var b=this.y.redAdd(this.y);if(b.cmpn(0)===0)return this.curve.point(null,null);var g=this.curve.a,S=this.x.redSqr(),_=b.redInvm(),x=S.redAdd(S).redIAdd(S).redIAdd(g).redMul(_),E=x.redSqr().redISub(this.x.redAdd(this.x)),k=x.redMul(this.x.redSub(E)).redISub(this.y);return this.curve.point(E,k)},m.prototype.getX=function(){return this.x.fromRed()},m.prototype.getY=function(){return this.y.fromRed()},m.prototype.mul=function(b){return b=new s(b,16),this.isInfinity()?this:this._hasDoubles(b)?this.curve._fixedNafMul(this,b):this.curve.endo?this.curve._endoWnafMulAdd([this],[b]):this.curve._wnafMul(this,b)},m.prototype.mulAdd=function(b,g,S){var _=[this,g],x=[b,S];return this.curve.endo?this.curve._endoWnafMulAdd(_,x):this.curve._wnafMulAdd(1,_,x,2)},m.prototype.jmulAdd=function(b,g,S){var _=[this,g],x=[b,S];return this.curve.endo?this.curve._endoWnafMulAdd(_,x,!0):this.curve._wnafMulAdd(1,_,x,2,!0)},m.prototype.eq=function(b){return this===b||this.inf===b.inf&&(this.inf||this.x.cmp(b.x)===0&&this.y.cmp(b.y)===0)},m.prototype.neg=function(b){if(this.inf)return this;var g=this.curve.point(this.x,this.y.redNeg());if(b&&this.precomputed){var S=this.precomputed,_=function(x){return x.neg()};g.precomputed={naf:S.naf&&{wnd:S.naf.wnd,points:S.naf.points.map(_)},doubles:S.doubles&&{step:S.doubles.step,points:S.doubles.points.map(_)}}}return g},m.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var b=this.curve.jpoint(this.x,this.y,this.curve.one);return b};function y(M,b,g,S){u.BasePoint.call(this,M,"jacobian"),b===null&&g===null&&S===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new s(0)):(this.x=new s(b,16),this.y=new s(g,16),this.z=new s(S,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}return a(y,u.BasePoint),p.prototype.jpoint=function(b,g,S){return new y(this,b,g,S)},y.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var b=this.z.redInvm(),g=b.redSqr(),S=this.x.redMul(g),_=this.y.redMul(g).redMul(b);return this.curve.point(S,_)},y.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},y.prototype.add=function(b){if(this.isInfinity())return b;if(b.isInfinity())return this;var g=b.z.redSqr(),S=this.z.redSqr(),_=this.x.redMul(g),x=b.x.redMul(S),E=this.y.redMul(g.redMul(b.z)),k=b.y.redMul(S.redMul(this.z)),B=_.redSub(x),T=E.redSub(k);if(B.cmpn(0)===0)return T.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var C=B.redSqr(),P=C.redMul(B),G=_.redMul(C),U=T.redSqr().redIAdd(P).redISub(G).redISub(G),V=T.redMul(G.redISub(U)).redISub(E.redMul(P)),I=this.z.redMul(b.z).redMul(B);return this.curve.jpoint(U,V,I)},y.prototype.mixedAdd=function(b){if(this.isInfinity())return b.toJ();if(b.isInfinity())return this;var g=this.z.redSqr(),S=this.x,_=b.x.redMul(g),x=this.y,E=b.y.redMul(g).redMul(this.z),k=S.redSub(_),B=x.redSub(E);if(k.cmpn(0)===0)return B.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var T=k.redSqr(),C=T.redMul(k),P=S.redMul(T),G=B.redSqr().redIAdd(C).redISub(P).redISub(P),U=B.redMul(P.redISub(G)).redISub(x.redMul(C)),V=this.z.redMul(k);return this.curve.jpoint(G,U,V)},y.prototype.dblp=function(b){if(b===0)return this;if(this.isInfinity())return this;if(!b)return this.dbl();var g;if(this.curve.zeroA||this.curve.threeA){var S=this;for(g=0;g<b;g++)S=S.dbl();return S}var _=this.curve.a,x=this.curve.tinv,E=this.x,k=this.y,B=this.z,T=B.redSqr().redSqr(),C=k.redAdd(k);for(g=0;g<b;g++){var P=E.redSqr(),G=C.redSqr(),U=G.redSqr(),V=P.redAdd(P).redIAdd(P).redIAdd(_.redMul(T)),I=E.redMul(G),D=V.redSqr().redISub(I.redAdd(I)),z=I.redISub(D),d=V.redMul(z);d=d.redIAdd(d).redISub(U);var t=C.redMul(B);g+1<b&&(T=T.redMul(U)),E=D,B=t,C=d}return this.curve.jpoint(E,C.redMul(x),B)},y.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},y.prototype._zeroDbl=function(){var b,g,S;if(this.zOne){var _=this.x.redSqr(),x=this.y.redSqr(),E=x.redSqr(),k=this.x.redAdd(x).redSqr().redISub(_).redISub(E);k=k.redIAdd(k);var B=_.redAdd(_).redIAdd(_),T=B.redSqr().redISub(k).redISub(k),C=E.redIAdd(E);C=C.redIAdd(C),C=C.redIAdd(C),b=T,g=B.redMul(k.redISub(T)).redISub(C),S=this.y.redAdd(this.y)}else{var P=this.x.redSqr(),G=this.y.redSqr(),U=G.redSqr(),V=this.x.redAdd(G).redSqr().redISub(P).redISub(U);V=V.redIAdd(V);var I=P.redAdd(P).redIAdd(P),D=I.redSqr(),z=U.redIAdd(U);z=z.redIAdd(z),z=z.redIAdd(z),b=D.redISub(V).redISub(V),g=I.redMul(V.redISub(b)).redISub(z),S=this.y.redMul(this.z),S=S.redIAdd(S)}return this.curve.jpoint(b,g,S)},y.prototype._threeDbl=function(){var b,g,S;if(this.zOne){var _=this.x.redSqr(),x=this.y.redSqr(),E=x.redSqr(),k=this.x.redAdd(x).redSqr().redISub(_).redISub(E);k=k.redIAdd(k);var B=_.redAdd(_).redIAdd(_).redIAdd(this.curve.a),T=B.redSqr().redISub(k).redISub(k);b=T;var C=E.redIAdd(E);C=C.redIAdd(C),C=C.redIAdd(C),g=B.redMul(k.redISub(T)).redISub(C),S=this.y.redAdd(this.y)}else{var P=this.z.redSqr(),G=this.y.redSqr(),U=this.x.redMul(G),V=this.x.redSub(P).redMul(this.x.redAdd(P));V=V.redAdd(V).redIAdd(V);var I=U.redIAdd(U);I=I.redIAdd(I);var D=I.redAdd(I);b=V.redSqr().redISub(D),S=this.y.redAdd(this.z).redSqr().redISub(G).redISub(P);var z=G.redSqr();z=z.redIAdd(z),z=z.redIAdd(z),z=z.redIAdd(z),g=V.redMul(I.redISub(b)).redISub(z)}return this.curve.jpoint(b,g,S)},y.prototype._dbl=function(){var b=this.curve.a,g=this.x,S=this.y,_=this.z,x=_.redSqr().redSqr(),E=g.redSqr(),k=S.redSqr(),B=E.redAdd(E).redIAdd(E).redIAdd(b.redMul(x)),T=g.redAdd(g);T=T.redIAdd(T);var C=T.redMul(k),P=B.redSqr().redISub(C.redAdd(C)),G=C.redISub(P),U=k.redSqr();U=U.redIAdd(U),U=U.redIAdd(U),U=U.redIAdd(U);var V=B.redMul(G).redISub(U),I=S.redAdd(S).redMul(_);return this.curve.jpoint(P,V,I)},y.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var b=this.x.redSqr(),g=this.y.redSqr(),S=this.z.redSqr(),_=g.redSqr(),x=b.redAdd(b).redIAdd(b),E=x.redSqr(),k=this.x.redAdd(g).redSqr().redISub(b).redISub(_);k=k.redIAdd(k),k=k.redAdd(k).redIAdd(k),k=k.redISub(E);var B=k.redSqr(),T=_.redIAdd(_);T=T.redIAdd(T),T=T.redIAdd(T),T=T.redIAdd(T);var C=x.redIAdd(k).redSqr().redISub(E).redISub(B).redISub(T),P=g.redMul(C);P=P.redIAdd(P),P=P.redIAdd(P);var G=this.x.redMul(B).redISub(P);G=G.redIAdd(G),G=G.redIAdd(G);var U=this.y.redMul(C.redMul(T.redISub(C)).redISub(k.redMul(B)));U=U.redIAdd(U),U=U.redIAdd(U),U=U.redIAdd(U);var V=this.z.redAdd(k).redSqr().redISub(S).redISub(B);return this.curve.jpoint(G,U,V)},y.prototype.mul=function(b,g){return b=new s(b,g),this.curve._wnafMul(this,b)},y.prototype.eq=function(b){if(b.type==="affine")return this.eq(b.toJ());if(this===b)return!0;var g=this.z.redSqr(),S=b.z.redSqr();if(this.x.redMul(S).redISub(b.x.redMul(g)).cmpn(0)!==0)return!1;var _=g.redMul(this.z),x=S.redMul(b.z);return this.y.redMul(x).redISub(b.y.redMul(_)).cmpn(0)===0},y.prototype.eqXToP=function(b){var g=this.z.redSqr(),S=b.toRed(this.curve.red).redMul(g);if(this.x.cmp(S)===0)return!0;for(var _=b.clone(),x=this.curve.redN.redMul(g);;){if(_.iadd(this.curve.n),_.cmp(this.curve.p)>=0)return!1;if(S.redIAdd(x),this.x.cmp(S)===0)return!0}},y.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},y.prototype.isInfinity=function(){return this.z.cmpn(0)===0},q2}var z2={},Y_=!1;function yU(){if(Y_)return z2;Y_=!0;var i=ia(),s=Je(),a=Ec(),u=On();function n(m){a.call(this,"mont",m),this.a=new i(m.a,16).toRed(this.red),this.b=new i(m.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}s(n,a),z2=n,n.prototype.validate=function(y){var M=y.normalize().x,b=M.redSqr(),g=b.redMul(M).redAdd(b.redMul(this.a)).redAdd(M),S=g.redSqrt();return S.redSqr().cmp(g)===0};function p(m,y,M){a.BasePoint.call(this,m,"projective"),y===null&&M===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(y,16),this.z=new i(M,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return s(p,a.BasePoint),n.prototype.decodePoint=function(y,M){return this.point(u.toArray(y,M),1)},n.prototype.point=function(y,M){return new p(this,y,M)},n.prototype.pointFromJSON=function(y){return p.fromJSON(this,y)},p.prototype.precompute=function(){},p.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},p.fromJSON=function(y,M){return new p(y,M[0],M[1]||y.one)},p.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},p.prototype.isInfinity=function(){return this.z.cmpn(0)===0},p.prototype.dbl=function(){var y=this.x.redAdd(this.z),M=y.redSqr(),b=this.x.redSub(this.z),g=b.redSqr(),S=M.redSub(g),_=M.redMul(g),x=S.redMul(g.redAdd(this.curve.a24.redMul(S)));return this.curve.point(_,x)},p.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.diffAdd=function(y,M){var b=this.x.redAdd(this.z),g=this.x.redSub(this.z),S=y.x.redAdd(y.z),_=y.x.redSub(y.z),x=_.redMul(b),E=S.redMul(g),k=M.z.redMul(x.redAdd(E).redSqr()),B=M.x.redMul(x.redISub(E).redSqr());return this.curve.point(k,B)},p.prototype.mul=function(y){for(var M=y.clone(),b=this,g=this.curve.point(null,null),S=this,_=[];M.cmpn(0)!==0;M.iushrn(1))_.push(M.andln(1));for(var x=_.length-1;x>=0;x--)_[x]===0?(b=b.diffAdd(g,S),g=g.dbl()):(g=b.diffAdd(g,S),b=b.dbl());return g},p.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.eq=function(y){return this.getX().cmp(y.getX())===0},p.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},p.prototype.getX=function(){return this.normalize(),this.x.fromRed()},z2}var U2={},Q_=!1;function wU(){if(Q_)return U2;Q_=!0;var i=On(),s=ia(),a=Je(),u=Ec(),n=i.assert;function p(y){this.twisted=(y.a|0)!==1,this.mOneA=this.twisted&&(y.a|0)===-1,this.extended=this.mOneA,u.call(this,"edwards",y),this.a=new s(y.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new s(y.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new s(y.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),n(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(y.c|0)===1}a(p,u),U2=p,p.prototype._mulA=function(M){return this.mOneA?M.redNeg():this.a.redMul(M)},p.prototype._mulC=function(M){return this.oneC?M:this.c.redMul(M)},p.prototype.jpoint=function(M,b,g,S){return this.point(M,b,g,S)},p.prototype.pointFromX=function(M,b){M=new s(M,16),M.red||(M=M.toRed(this.red));var g=M.redSqr(),S=this.c2.redSub(this.a.redMul(g)),_=this.one.redSub(this.c2.redMul(this.d).redMul(g)),x=S.redMul(_.redInvm()),E=x.redSqrt();if(E.redSqr().redSub(x).cmp(this.zero)!==0)throw new Error("invalid point");var k=E.fromRed().isOdd();return(b&&!k||!b&&k)&&(E=E.redNeg()),this.point(M,E)},p.prototype.pointFromY=function(M,b){M=new s(M,16),M.red||(M=M.toRed(this.red));var g=M.redSqr(),S=g.redSub(this.c2),_=g.redMul(this.d).redMul(this.c2).redSub(this.a),x=S.redMul(_.redInvm());if(x.cmp(this.zero)===0){if(b)throw new Error("invalid point");return this.point(this.zero,M)}var E=x.redSqrt();if(E.redSqr().redSub(x).cmp(this.zero)!==0)throw new Error("invalid point");return E.fromRed().isOdd()!==b&&(E=E.redNeg()),this.point(E,M)},p.prototype.validate=function(M){if(M.isInfinity())return!0;M.normalize();var b=M.x.redSqr(),g=M.y.redSqr(),S=b.redMul(this.a).redAdd(g),_=this.c2.redMul(this.one.redAdd(this.d.redMul(b).redMul(g)));return S.cmp(_)===0};function m(y,M,b,g,S){u.BasePoint.call(this,y,"projective"),M===null&&b===null&&g===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new s(M,16),this.y=new s(b,16),this.z=g?new s(g,16):this.curve.one,this.t=S&&new s(S,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}return a(m,u.BasePoint),p.prototype.pointFromJSON=function(M){return m.fromJSON(this,M)},p.prototype.point=function(M,b,g,S){return new m(this,M,b,g,S)},m.fromJSON=function(M,b){return new m(M,b[0],b[1],b[2])},m.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},m.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},m.prototype._extDbl=function(){var M=this.x.redSqr(),b=this.y.redSqr(),g=this.z.redSqr();g=g.redIAdd(g);var S=this.curve._mulA(M),_=this.x.redAdd(this.y).redSqr().redISub(M).redISub(b),x=S.redAdd(b),E=x.redSub(g),k=S.redSub(b),B=_.redMul(E),T=x.redMul(k),C=_.redMul(k),P=E.redMul(x);return this.curve.point(B,T,P,C)},m.prototype._projDbl=function(){var M=this.x.redAdd(this.y).redSqr(),b=this.x.redSqr(),g=this.y.redSqr(),S,_,x,E,k,B;if(this.curve.twisted){E=this.curve._mulA(b);var T=E.redAdd(g);this.zOne?(S=M.redSub(b).redSub(g).redMul(T.redSub(this.curve.two)),_=T.redMul(E.redSub(g)),x=T.redSqr().redSub(T).redSub(T)):(k=this.z.redSqr(),B=T.redSub(k).redISub(k),S=M.redSub(b).redISub(g).redMul(B),_=T.redMul(E.redSub(g)),x=T.redMul(B))}else E=b.redAdd(g),k=this.curve._mulC(this.z).redSqr(),B=E.redSub(k).redSub(k),S=this.curve._mulC(M.redISub(E)).redMul(B),_=this.curve._mulC(E).redMul(b.redISub(g)),x=E.redMul(B);return this.curve.point(S,_,x)},m.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},m.prototype._extAdd=function(M){var b=this.y.redSub(this.x).redMul(M.y.redSub(M.x)),g=this.y.redAdd(this.x).redMul(M.y.redAdd(M.x)),S=this.t.redMul(this.curve.dd).redMul(M.t),_=this.z.redMul(M.z.redAdd(M.z)),x=g.redSub(b),E=_.redSub(S),k=_.redAdd(S),B=g.redAdd(b),T=x.redMul(E),C=k.redMul(B),P=x.redMul(B),G=E.redMul(k);return this.curve.point(T,C,G,P)},m.prototype._projAdd=function(M){var b=this.z.redMul(M.z),g=b.redSqr(),S=this.x.redMul(M.x),_=this.y.redMul(M.y),x=this.curve.d.redMul(S).redMul(_),E=g.redSub(x),k=g.redAdd(x),B=this.x.redAdd(this.y).redMul(M.x.redAdd(M.y)).redISub(S).redISub(_),T=b.redMul(E).redMul(B),C,P;return this.curve.twisted?(C=b.redMul(k).redMul(_.redSub(this.curve._mulA(S))),P=E.redMul(k)):(C=b.redMul(k).redMul(_.redSub(S)),P=this.curve._mulC(E).redMul(k)),this.curve.point(T,C,P)},m.prototype.add=function(M){return this.isInfinity()?M:M.isInfinity()?this:this.curve.extended?this._extAdd(M):this._projAdd(M)},m.prototype.mul=function(M){return this._hasDoubles(M)?this.curve._fixedNafMul(this,M):this.curve._wnafMul(this,M)},m.prototype.mulAdd=function(M,b,g){return this.curve._wnafMulAdd(1,[this,b],[M,g],2,!1)},m.prototype.jmulAdd=function(M,b,g){return this.curve._wnafMulAdd(1,[this,b],[M,g],2,!0)},m.prototype.normalize=function(){if(this.zOne)return this;var M=this.z.redInvm();return this.x=this.x.redMul(M),this.y=this.y.redMul(M),this.t&&(this.t=this.t.redMul(M)),this.z=this.curve.one,this.zOne=!0,this},m.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},m.prototype.getX=function(){return this.normalize(),this.x.fromRed()},m.prototype.getY=function(){return this.normalize(),this.y.fromRed()},m.prototype.eq=function(M){return this===M||this.getX().cmp(M.getX())===0&&this.getY().cmp(M.getY())===0},m.prototype.eqXToP=function(M){var b=M.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(b)===0)return!0;for(var g=M.clone(),S=this.curve.redN.redMul(this.z);;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)>=0)return!1;if(b.redIAdd(S),this.x.cmp(b)===0)return!0}},m.prototype.toP=m.prototype.normalize,m.prototype.mixedAdd=m.prototype.add,U2}var F2={},tS=!1;function Rk(){if(tS)return F2;tS=!0;var i=F2;return i.base=Ec(),i.short=bU(),i.mont=yU(),i.edwards=wU(),F2}var xr={},eS=!1;function Ac(){if(eS)return xr;eS=!0;var i=$o(),s=Je();xr.inherits=s;function a(r,o){return(r.charCodeAt(o)&64512)!==55296||o<0||o+1>=r.length?!1:(r.charCodeAt(o+1)&64512)===56320}function u(r,o){if(Array.isArray(r))return r.slice();if(!r)return[];var h=[];if(typeof r=="string")if(o){if(o==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),v=0;v<r.length;v+=2)h.push(parseInt(r[v]+r[v+1],16))}else for(var f=0,v=0;v<r.length;v++){var w=r.charCodeAt(v);w<128?h[f++]=w:w<2048?(h[f++]=w>>6|192,h[f++]=w&63|128):a(r,v)?(w=65536+((w&1023)<<10)+(r.charCodeAt(++v)&1023),h[f++]=w>>18|240,h[f++]=w>>12&63|128,h[f++]=w>>6&63|128,h[f++]=w&63|128):(h[f++]=w>>12|224,h[f++]=w>>6&63|128,h[f++]=w&63|128)}else for(v=0;v<r.length;v++)h[v]=r[v]|0;return h}xr.toArray=u;function n(r){for(var o="",h=0;h<r.length;h++)o+=y(r[h].toString(16));return o}xr.toHex=n;function p(r){var o=r>>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return o>>>0}xr.htonl=p;function m(r,o){for(var h="",f=0;f<r.length;f++){var v=r[f];o==="little"&&(v=p(v)),h+=M(v.toString(16))}return h}xr.toHex32=m;function y(r){return r.length===1?"0"+r:r}xr.zero2=y;function M(r){return r.length===7?"0"+r:r.length===6?"00"+r:r.length===5?"000"+r:r.length===4?"0000"+r:r.length===3?"00000"+r:r.length===2?"000000"+r:r.length===1?"0000000"+r:r}xr.zero8=M;function b(r,o,h,f){var v=h-o;i(v%4===0);for(var w=new Array(v/4),l=0,e=o;l<w.length;l++,e+=4){var c;f==="big"?c=r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3]:c=r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e],w[l]=c>>>0}return w}xr.join32=b;function g(r,o){for(var h=new Array(r.length*4),f=0,v=0;f<r.length;f++,v+=4){var w=r[f];o==="big"?(h[v]=w>>>24,h[v+1]=w>>>16&255,h[v+2]=w>>>8&255,h[v+3]=w&255):(h[v+3]=w>>>24,h[v+2]=w>>>16&255,h[v+1]=w>>>8&255,h[v]=w&255)}return h}xr.split32=g;function S(r,o){return r>>>o|r<<32-o}xr.rotr32=S;function _(r,o){return r<<o|r>>>32-o}xr.rotl32=_;function x(r,o){return r+o>>>0}xr.sum32=x;function E(r,o,h){return r+o+h>>>0}xr.sum32_3=E;function k(r,o,h,f){return r+o+h+f>>>0}xr.sum32_4=k;function B(r,o,h,f,v){return r+o+h+f+v>>>0}xr.sum32_5=B;function T(r,o,h,f){var v=r[o],w=r[o+1],l=f+w>>>0,e=(l<f?1:0)+h+v;r[o]=e>>>0,r[o+1]=l}xr.sum64=T;function C(r,o,h,f){var v=o+f>>>0,w=(v<o?1:0)+r+h;return w>>>0}xr.sum64_hi=C;function P(r,o,h,f){var v=o+f;return v>>>0}xr.sum64_lo=P;function G(r,o,h,f,v,w,l,e){var c=0,A=o;A=A+f>>>0,c+=A<o?1:0,A=A+w>>>0,c+=A<w?1:0,A=A+e>>>0,c+=A<e?1:0;var R=r+h+v+l+c;return R>>>0}xr.sum64_4_hi=G;function U(r,o,h,f,v,w,l,e){var c=o+f+w+e;return c>>>0}xr.sum64_4_lo=U;function V(r,o,h,f,v,w,l,e,c,A){var R=0,$=o;$=$+f>>>0,R+=$<o?1:0,$=$+w>>>0,R+=$<w?1:0,$=$+e>>>0,R+=$<e?1:0,$=$+A>>>0,R+=$<A?1:0;var L=r+h+v+l+c+R;return L>>>0}xr.sum64_5_hi=V;function I(r,o,h,f,v,w,l,e,c,A){var R=o+f+w+e+A;return R>>>0}xr.sum64_5_lo=I;function D(r,o,h){var f=o<<32-h|r>>>h;return f>>>0}xr.rotr64_hi=D;function z(r,o,h){var f=r<<32-h|o>>>h;return f>>>0}xr.rotr64_lo=z;function d(r,o,h){return r>>>h}xr.shr64_hi=d;function t(r,o,h){var f=r<<32-h|o>>>h;return f>>>0}return xr.shr64_lo=t,xr}var j2={},rS=!1;function Bk(){if(rS)return j2;rS=!0;var i=Ac(),s=$o();function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return j2.BlockHash=a,a.prototype.update=function(n,p){if(n=i.toArray(n,p),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){n=this.pending;var m=n.length%this._delta8;this.pending=n.slice(n.length-m,n.length),this.pending.length===0&&(this.pending=null),n=i.join32(n,0,n.length-m,this.endian);for(var y=0;y<n.length;y+=this._delta32)this._update(n,y,y+this._delta32)}return this},a.prototype.digest=function(n){return this.update(this._pad()),s(this.pending===null),this._digest(n)},a.prototype._pad=function(){var n=this.pendingTotal,p=this._delta8,m=p-(n+this.padLength)%p,y=new Array(m+this.padLength);y[0]=128;for(var M=1;M<m;M++)y[M]=0;if(n<<=3,this.endian==="big"){for(var b=8;b<this.padLength;b++)y[M++]=0;y[M++]=0,y[M++]=0,y[M++]=0,y[M++]=0,y[M++]=n>>>24&255,y[M++]=n>>>16&255,y[M++]=n>>>8&255,y[M++]=n&255}else for(y[M++]=n&255,y[M++]=n>>>8&255,y[M++]=n>>>16&255,y[M++]=n>>>24&255,y[M++]=0,y[M++]=0,y[M++]=0,y[M++]=0,b=8;b<this.padLength;b++)y[M++]=0;return y},j2}var iS={},nS=!1;function MU(){return nS||(nS=!0),iS}var H2={},oS=!1;function _U(){if(oS)return H2;oS=!0;var i=Ac(),s=Bk(),a=i.rotl32,u=i.sum32,n=i.sum32_3,p=i.sum32_4,m=s.BlockHash;function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}i.inherits(y,m),H2.ripemd160=y,y.blockSize=512,y.outSize=160,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(B,T){for(var C=this.h[0],P=this.h[1],G=this.h[2],U=this.h[3],V=this.h[4],I=C,D=P,z=G,d=U,t=V,r=0;r<80;r++){var o=u(a(p(C,M(r,P,G,U),B[S[r]+T],b(r)),x[r]),V);C=V,V=U,U=a(G,10),G=P,P=o,o=u(a(p(I,M(79-r,D,z,d),B[_[r]+T],g(r)),E[r]),t),I=t,t=d,d=a(z,10),z=D,D=o}o=n(this.h[1],G,d),this.h[1]=n(this.h[2],U,t),this.h[2]=n(this.h[3],V,I),this.h[3]=n(this.h[4],C,D),this.h[4]=n(this.h[0],P,z),this.h[0]=o},y.prototype._digest=function(B){return B==="hex"?i.toHex32(this.h,"little"):i.split32(this.h,"little")};function M(k,B,T,C){return k<=15?B^T^C:k<=31?B&T|~B&C:k<=47?(B|~T)^C:k<=63?B&C|T&~C:B^(T|~C)}function b(k){return k<=15?0:k<=31?1518500249:k<=47?1859775393:k<=63?2400959708:2840853838}function g(k){return k<=15?1352829926:k<=31?1548603684:k<=47?1836072691:k<=63?2053994217:0}var S=[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],_=[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],x=[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],E=[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];return H2}var K2={},aS=!1;function SU(){if(aS)return K2;aS=!0;var i=Ac(),s=$o();function a(u,n,p){if(!(this instanceof a))return new a(u,n,p);this.Hash=u,this.blockSize=u.blockSize/8,this.outSize=u.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(n,p))}return K2=a,a.prototype._init=function(n){n.length>this.blockSize&&(n=new this.Hash().update(n).digest()),s(n.length<=this.blockSize);for(var p=n.length;p<this.blockSize;p++)n.push(0);for(p=0;p<n.length;p++)n[p]^=54;for(this.inner=new this.Hash().update(n),p=0;p<n.length;p++)n[p]^=106;this.outer=new this.Hash().update(n)},a.prototype.update=function(n,p){return this.inner.update(n,p),this},a.prototype.digest=function(n){return this.outer.update(this.inner.digest()),this.outer.digest(n)},K2}var G2={},sS=!1;function Zb(){if(sS)return G2;sS=!0;var i=G2;return i.utils=Ac(),i.common=Bk(),i.sha=MU(),i.ripemd=_U(),i.hmac=SU(),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160,G2}var Z2={},hS=!1;function xU(){return hS||(hS=!0,Z2={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),Z2}var V2={},fS=!1;function Vb(){if(fS)return V2;fS=!0;var i=V2,s=Zb(),a=Rk(),u=On(),n=u.assert;function p(M){M.type==="short"?this.curve=new a.short(M):M.type==="edwards"?this.curve=new a.edwards(M):this.curve=new a.mont(M),this.g=this.curve.g,this.n=this.curve.n,this.hash=M.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}i.PresetCurve=p;function m(M,b){Object.defineProperty(i,M,{configurable:!0,enumerable:!0,get:function(){var g=new p(b);return Object.defineProperty(i,M,{configurable:!0,enumerable:!0,value:g}),g}})}m("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),m("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),m("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),m("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),m("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),m("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),m("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var y;try{y=xU()}catch{y=void 0}return m("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",y]}),V2}var W2={},uS=!1;function EU(){if(uS)return W2;uS=!0;var i=Zb(),s=kk(),a=$o();function u(n){if(!(this instanceof u))return new u(n);this.hash=n.hash,this.predResist=!!n.predResist,this.outLen=this.hash.outSize,this.minEntropy=n.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var p=s.toArray(n.entropy,n.entropyEnc||"hex"),m=s.toArray(n.nonce,n.nonceEnc||"hex"),y=s.toArray(n.pers,n.persEnc||"hex");a(p.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(p,m,y)}return W2=u,u.prototype._init=function(p,m,y){var M=p.concat(m).concat(y);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var b=0;b<this.V.length;b++)this.K[b]=0,this.V[b]=1;this._update(M),this._reseed=1,this.reseedInterval=281474976710656},u.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},u.prototype._update=function(p){var m=this._hmac().update(this.V).update([0]);p&&(m=m.update(p)),this.K=m.digest(),this.V=this._hmac().update(this.V).digest(),p&&(this.K=this._hmac().update(this.V).update([1]).update(p).digest(),this.V=this._hmac().update(this.V).digest())},u.prototype.reseed=function(p,m,y,M){typeof m!="string"&&(M=y,y=m,m=null),p=s.toArray(p,m),y=s.toArray(y,M),a(p.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(p.concat(y||[])),this._reseed=1},u.prototype.generate=function(p,m,y,M){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof m!="string"&&(M=y,y=m,m=null),y&&(y=s.toArray(y,M||"hex"),this._update(y));for(var b=[];b.length<p;)this.V=this._hmac().update(this.V).digest(),b=b.concat(this.V);var g=b.slice(0,p);return this._update(y),this._reseed++,s.encode(g,m)},W2}var X2={},lS=!1;function AU(){if(lS)return X2;lS=!0;var i=ia(),s=On(),a=s.assert;function u(n,p){this.ec=n,this.priv=null,this.pub=null,p.priv&&this._importPrivate(p.priv,p.privEnc),p.pub&&this._importPublic(p.pub,p.pubEnc)}return X2=u,u.fromPublic=function(p,m,y){return m instanceof u?m:new u(p,{pub:m,pubEnc:y})},u.fromPrivate=function(p,m,y){return m instanceof u?m:new u(p,{priv:m,privEnc:y})},u.prototype.validate=function(){var p=this.getPublic();return p.isInfinity()?{result:!1,reason:"Invalid public key"}:p.validate()?p.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},u.prototype.getPublic=function(p,m){return typeof p=="string"&&(m=p,p=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),m?this.pub.encode(m,p):this.pub},u.prototype.getPrivate=function(p){return p==="hex"?this.priv.toString(16,2):this.priv},u.prototype._importPrivate=function(p,m){this.priv=new i(p,m||16),this.priv=this.priv.umod(this.ec.curve.n)},u.prototype._importPublic=function(p,m){if(p.x||p.y){this.ec.curve.type==="mont"?a(p.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&a(p.x&&p.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(p.x,p.y);return}this.pub=this.ec.curve.decodePoint(p,m)},u.prototype.derive=function(p){return p.validate()||a(p.validate(),"public point not validated"),p.mul(this.priv).getX()},u.prototype.sign=function(p,m,y){return this.ec.sign(p,this,m,y)},u.prototype.verify=function(p,m){return this.ec.verify(p,m,this)},u.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},X2}var J2={},cS=!1;function kU(){if(cS)return J2;cS=!0;var i=ia(),s=On(),a=s.assert;function u(M,b){if(M instanceof u)return M;this._importDER(M,b)||(a(M.r&&M.s,"Signature without r or s"),this.r=new i(M.r,16),this.s=new i(M.s,16),M.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=M.recoveryParam)}J2=u;function n(){this.place=0}function p(M,b){var g=M[b.place++];if(!(g&128))return g;var S=g&15;if(S===0||S>4)return!1;for(var _=0,x=0,E=b.place;x<S;x++,E++)_<<=8,_|=M[E],_>>>=0;return _<=127?!1:(b.place=E,_)}function m(M){for(var b=0,g=M.length-1;!M[b]&&!(M[b+1]&128)&&b<g;)b++;return b===0?M:M.slice(b)}u.prototype._importDER=function(b,g){b=s.toArray(b,g);var S=new n;if(b[S.place++]!==48)return!1;var _=p(b,S);if(_===!1||_+S.place!==b.length||b[S.place++]!==2)return!1;var x=p(b,S);if(x===!1)return!1;var E=b.slice(S.place,x+S.place);if(S.place+=x,b[S.place++]!==2)return!1;var k=p(b,S);if(k===!1||b.length!==k+S.place)return!1;var B=b.slice(S.place,k+S.place);if(E[0]===0)if(E[1]&128)E=E.slice(1);else return!1;if(B[0]===0)if(B[1]&128)B=B.slice(1);else return!1;return this.r=new i(E),this.s=new i(B),this.recoveryParam=null,!0};function y(M,b){if(b<128){M.push(b);return}var g=1+(Math.log(b)/Math.LN2>>>3);for(M.push(g|128);--g;)M.push(b>>>(g<<3)&255);M.push(b)}return u.prototype.toDER=function(b){var g=this.r.toArray(),S=this.s.toArray();for(g[0]&128&&(g=[0].concat(g)),S[0]&128&&(S=[0].concat(S)),g=m(g),S=m(S);!S[0]&&!(S[1]&128);)S=S.slice(1);var _=[2];y(_,g.length),_=_.concat(g),_.push(2),y(_,S.length);var x=_.concat(S),E=[48];return y(E,x.length),E=E.concat(x),s.encode(E,b)},J2}var Y2={},dS=!1;function RU(){if(dS)return Y2;dS=!0;var i=ia(),s=EU(),a=On(),u=Vb(),n=jb(),p=a.assert,m=AU(),y=kU();function M(b){if(!(this instanceof M))return new M(b);typeof b=="string"&&(p(Object.prototype.hasOwnProperty.call(u,b),"Unknown curve "+b),b=u[b]),b instanceof u.PresetCurve&&(b={curve:b}),this.curve=b.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=b.curve.g,this.g.precompute(b.curve.n.bitLength()+1),this.hash=b.hash||b.curve.hash}return Y2=M,M.prototype.keyPair=function(g){return new m(this,g)},M.prototype.keyFromPrivate=function(g,S){return m.fromPrivate(this,g,S)},M.prototype.keyFromPublic=function(g,S){return m.fromPublic(this,g,S)},M.prototype.genKeyPair=function(g){g||(g={});for(var S=new s({hash:this.hash,pers:g.pers,persEnc:g.persEnc||"utf8",entropy:g.entropy||n(this.hash.hmacStrength),entropyEnc:g.entropy&&g.entropyEnc||"utf8",nonce:this.n.toArray()}),_=this.n.byteLength(),x=this.n.sub(new i(2));;){var E=new i(S.generate(_));if(!(E.cmp(x)>0))return E.iaddn(1),this.keyFromPrivate(E)}},M.prototype._truncateToN=function(g,S){var _=g.byteLength()*8-this.n.bitLength();return _>0&&(g=g.ushrn(_)),!S&&g.cmp(this.n)>=0?g.sub(this.n):g},M.prototype.sign=function(g,S,_,x){typeof _=="object"&&(x=_,_=null),x||(x={}),S=this.keyFromPrivate(S,_),g=this._truncateToN(new i(g,16));for(var E=this.n.byteLength(),k=S.getPrivate().toArray("be",E),B=g.toArray("be",E),T=new s({hash:this.hash,entropy:k,nonce:B,pers:x.pers,persEnc:x.persEnc||"utf8"}),C=this.n.sub(new i(1)),P=0;;P++){var G=x.k?x.k(P):new i(T.generate(this.n.byteLength()));if(G=this._truncateToN(G,!0),!(G.cmpn(1)<=0||G.cmp(C)>=0)){var U=this.g.mul(G);if(!U.isInfinity()){var V=U.getX(),I=V.umod(this.n);if(I.cmpn(0)!==0){var D=G.invm(this.n).mul(I.mul(S.getPrivate()).iadd(g));if(D=D.umod(this.n),D.cmpn(0)!==0){var z=(U.getY().isOdd()?1:0)|(V.cmp(I)!==0?2:0);return x.canonical&&D.cmp(this.nh)>0&&(D=this.n.sub(D),z^=1),new y({r:I,s:D,recoveryParam:z})}}}}}},M.prototype.verify=function(g,S,_,x){g=this._truncateToN(new i(g,16)),_=this.keyFromPublic(_,x),S=new y(S,"hex");var E=S.r,k=S.s;if(E.cmpn(1)<0||E.cmp(this.n)>=0||k.cmpn(1)<0||k.cmp(this.n)>=0)return!1;var B=k.invm(this.n),T=B.mul(g).umod(this.n),C=B.mul(E).umod(this.n),P;return this.curve._maxwellTrick?(P=this.g.jmulAdd(T,_.getPublic(),C),P.isInfinity()?!1:P.eqXToP(E)):(P=this.g.mulAdd(T,_.getPublic(),C),P.isInfinity()?!1:P.getX().umod(this.n).cmp(E)===0)},M.prototype.recoverPubKey=function(b,g,S,_){p((3&S)===S,"The recovery param is more than two bits"),g=new y(g,_);var x=this.n,E=new i(b),k=g.r,B=g.s,T=S&1,C=S>>1;if(k.cmp(this.curve.p.umod(this.curve.n))>=0&&C)throw new Error("Unable to find sencond key candinate");C?k=this.curve.pointFromX(k.add(this.curve.n),T):k=this.curve.pointFromX(k,T);var P=g.r.invm(x),G=x.sub(E).mul(P).umod(x),U=B.mul(P).umod(x);return this.g.mulAdd(G,k,U)},M.prototype.getKeyRecoveryParam=function(b,g,S,_){if(g=new y(g,_),g.recoveryParam!==null)return g.recoveryParam;for(var x=0;x<4;x++){var E;try{E=this.recoverPubKey(b,g,x)}catch{continue}if(E.eq(S))return x}throw new Error("Unable to find valid recovery factor")},Y2}var Q2={},pS=!1;function BU(){if(pS)return Q2;pS=!0;var i=On(),s=i.assert,a=i.parseBytes,u=i.cachedProperty;function n(p,m){this.eddsa=p,this._secret=a(m.secret),p.isPoint(m.pub)?this._pub=m.pub:this._pubBytes=a(m.pub)}return n.fromPublic=function(m,y){return y instanceof n?y:new n(m,{pub:y})},n.fromSecret=function(m,y){return y instanceof n?y:new n(m,{secret:y})},n.prototype.secret=function(){return this._secret},u(n,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),u(n,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),u(n,"privBytes",function(){var m=this.eddsa,y=this.hash(),M=m.encodingLength-1,b=y.slice(0,m.encodingLength);return b[0]&=248,b[M]&=127,b[M]|=64,b}),u(n,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),u(n,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),u(n,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),n.prototype.sign=function(m){return s(this._secret,"KeyPair can only verify"),this.eddsa.sign(m,this)},n.prototype.verify=function(m,y){return this.eddsa.verify(m,y,this)},n.prototype.getSecret=function(m){return s(this._secret,"KeyPair is public only"),i.encode(this.secret(),m)},n.prototype.getPublic=function(m){return i.encode(this.pubBytes(),m)},Q2=n,Q2}var tg={},mS=!1;function TU(){if(mS)return tg;mS=!0;var i=ia(),s=On(),a=s.assert,u=s.cachedProperty,n=s.parseBytes;function p(m,y){this.eddsa=m,typeof y!="object"&&(y=n(y)),Array.isArray(y)&&(y={R:y.slice(0,m.encodingLength),S:y.slice(m.encodingLength)}),a(y.R&&y.S,"Signature without R or S"),m.isPoint(y.R)&&(this._R=y.R),y.S instanceof i&&(this._S=y.S),this._Rencoded=Array.isArray(y.R)?y.R:y.Rencoded,this._Sencoded=Array.isArray(y.S)?y.S:y.Sencoded}return u(p,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),u(p,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),u(p,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),u(p,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),p.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},p.prototype.toHex=function(){return s.encode(this.toBytes(),"hex").toUpperCase()},tg=p,tg}var eg={},vS=!1;function $U(){if(vS)return eg;vS=!0;var i=Zb(),s=Vb(),a=On(),u=a.assert,n=a.parseBytes,p=BU(),m=TU();function y(M){if(u(M==="ed25519","only tested with ed25519 so far"),!(this instanceof y))return new y(M);M=s[M].curve,this.curve=M,this.g=M.g,this.g.precompute(M.n.bitLength()+1),this.pointClass=M.point().constructor,this.encodingLength=Math.ceil(M.n.bitLength()/8),this.hash=i.sha512}return eg=y,y.prototype.sign=function(b,g){b=n(b);var S=this.keyFromSecret(g),_=this.hashInt(S.messagePrefix(),b),x=this.g.mul(_),E=this.encodePoint(x),k=this.hashInt(E,S.pubBytes(),b).mul(S.priv()),B=_.add(k).umod(this.curve.n);return this.makeSignature({R:x,S:B,Rencoded:E})},y.prototype.verify=function(b,g,S){b=n(b),g=this.makeSignature(g);var _=this.keyFromPublic(S),x=this.hashInt(g.Rencoded(),_.pubBytes(),b),E=this.g.mul(g.S()),k=g.R().add(_.pub().mul(x));return k.eq(E)},y.prototype.hashInt=function(){for(var b=this.hash(),g=0;g<arguments.length;g++)b.update(arguments[g]);return a.intFromLE(b.digest()).umod(this.curve.n)},y.prototype.keyFromPublic=function(b){return p.fromPublic(this,b)},y.prototype.keyFromSecret=function(b){return p.fromSecret(this,b)},y.prototype.makeSignature=function(b){return b instanceof m?b:new m(this,b)},y.prototype.encodePoint=function(b){var g=b.getY().toArray("le",this.encodingLength);return g[this.encodingLength-1]|=b.getX().isOdd()?128:0,g},y.prototype.decodePoint=function(b){b=a.parseBytes(b);var g=b.length-1,S=b.slice(0,g).concat(b[g]&-129),_=(b[g]&128)!==0,x=a.intFromLE(S);return this.curve.pointFromY(x,_)},y.prototype.encodeInt=function(b){return b.toArray("le",this.encodingLength)},y.prototype.decodeInt=function(b){return a.intFromLE(b)},y.prototype.isPoint=function(b){return b instanceof this.pointClass},eg}var rg={},gS=!1;function Wb(){if(gS)return rg;gS=!0;var i=rg;return i.version=gU.version,i.utils=On(),i.rand=jb(),i.curve=Rk(),i.curves=Vb(),i.ec=RU(),i.eddsa=$U(),rg}var Tk={},bS=!1,ig={exports:Tk},ft=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function $k(){return bS||(bS=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||ft).negative=0,(this||ft).words=null,(this||ft).length=0,(this||ft).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Tr.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||ft).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||ft).negative=1,t=-t),t<67108864?((this||ft).words=[t&67108863],(this||ft).length=1):t<4503599627370496?((this||ft).words=[t&67108863,t/67108864&67108863],(this||ft).length=2):(a(t<9007199254740992),(this||ft).words=[t&67108863,t/67108864&67108863,1],(this||ft).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||ft).words=[0],(this||ft).length=1,this||ft;(this||ft).length=Math.ceil(t.length/3),(this||ft).words=new Array((this||ft).length);for(var h=0;h<(this||ft).length;h++)(this||ft).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||ft).words[f]|=v<<w&67108863,(this||ft).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||ft).words[f]|=v<<w&67108863,(this||ft).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||ft).length=Math.ceil((t.length-r)/6),(this||ft).words=new Array((this||ft).length);for(var h=0;h<(this||ft).length;h++)(this||ft).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||ft).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||ft).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||ft).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||ft).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||ft).words=[0],(this||ft).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||ft).words[0]+e<67108864?(this||ft).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||ft).words[0]+e<67108864?(this||ft).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||ft).length);for(var r=0;r<(this||ft).length;r++)t.words[r]=(this||ft).words[r];t.length=(this||ft).length,t.negative=(this||ft).negative,t.red=(this||ft).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||ft).length<t;)(this||ft).words[(this||ft).length++]=0;return this||ft},n.prototype.strip=function(){for(;(this||ft).length>1&&(this||ft).words[(this||ft).length-1]===0;)(this||ft).length--;return this._normSign()},n.prototype._normSign=function(){return(this||ft).length===1&&(this||ft).words[0]===0&&((this||ft).negative=0),this||ft},n.prototype.inspect=function(){return((this||ft).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||ft).length;v++){var w=(this||ft).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||ft).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||ft).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||ft).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||ft).words[0];return(this||ft).length===2?t+=(this||ft).words[1]*67108864:(this||ft).length===3&&(this||ft).words[2]===1?t+=4503599627370496+(this||ft).words[1]*67108864:(this||ft).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||ft).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||ft).words[(this||ft).length-1],r=this._countBits(t);return((this||ft).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||ft).length;r++){var o=this._zeroBits((this||ft).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||ft).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||ft).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||ft).negative^=1),this||ft},n.prototype.iuor=function(t){for(;(this||ft).length<t.length;)(this||ft).words[(this||ft).length++]=0;for(var r=0;r<t.length;r++)(this||ft).words[r]=(this||ft).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||ft).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||ft).length>t.length?this.clone().ior(t):t.clone().ior(this||ft)},n.prototype.uor=function(t){return(this||ft).length>t.length?this.clone().iuor(t):t.clone().iuor(this||ft)},n.prototype.iuand=function(t){var r;(this||ft).length>t.length?r=t:r=this||ft;for(var o=0;o<r.length;o++)(this||ft).words[o]=(this||ft).words[o]&t.words[o];return(this||ft).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||ft).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||ft).length>t.length?this.clone().iand(t):t.clone().iand(this||ft)},n.prototype.uand=function(t){return(this||ft).length>t.length?this.clone().iuand(t):t.clone().iuand(this||ft)},n.prototype.iuxor=function(t){var r,o;(this||ft).length>t.length?(r=this||ft,o=t):(r=t,o=this||ft);for(var h=0;h<o.length;h++)(this||ft).words[h]=r.words[h]^o.words[h];if((this||ft)!==r)for(;h<r.length;h++)(this||ft).words[h]=r.words[h];return(this||ft).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||ft).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||ft).length>t.length?this.clone().ixor(t):t.clone().ixor(this||ft)},n.prototype.uxor=function(t){return(this||ft).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||ft)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||ft).words[h]=~(this||ft).words[h]&67108863;return o>0&&((this||ft).words[h]=~(this||ft).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||ft).words[o]=(this||ft).words[o]|1<<h:(this||ft).words[o]=(this||ft).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||ft).negative!==0&&t.negative===0)return(this||ft).negative=0,r=this.isub(t),(this||ft).negative^=1,this._normSign();if((this||ft).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||ft).length>t.length?(o=this||ft,h=t):(o=t,h=this||ft);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||ft).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||ft).words[v]=r&67108863,f=r>>>26;if((this||ft).length=o.length,f!==0)(this||ft).words[(this||ft).length]=f,(this||ft).length++;else if(o!==(this||ft))for(;v<o.length;v++)(this||ft).words[v]=o.words[v];return this||ft},n.prototype.add=function(t){var r;return t.negative!==0&&(this||ft).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||ft).negative!==0?((this||ft).negative=0,r=t.sub(this||ft),(this||ft).negative=1,r):(this||ft).length>t.length?this.clone().iadd(t):t.clone().iadd(this||ft)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||ft).negative!==0)return(this||ft).negative=0,this.iadd(t),(this||ft).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||ft).negative=0,(this||ft).length=1,(this||ft).words[0]=0,this||ft;var h,f;o>0?(h=this||ft,f=t):(h=t,f=this||ft);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||ft).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||ft).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||ft))for(;w<h.length;w++)(this||ft).words[w]=h.words[w];return(this||ft).length=Math.max((this||ft).length,w),h!==(this||ft)&&((this||ft).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||ft).length+t.length;return(this||ft).length===10&&t.length===10?o=E(this||ft,t,r):h<63?o=x(this||ft,t,r):h<1024?o=k(this||ft,t,r):o=B(this||ft,t,r),o};function T(d,t){(this||ft).x=d,(this||ft).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||ft).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||ft).length+t.length),B(this||ft,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||ft)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||ft).length;o++){var h=((this||ft).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||ft).words[o]=f&67108863}return r!==0&&((this||ft).words[o]=r,(this||ft).length++),this||ft},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||ft)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||ft,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||ft).length;f++){var w=(this||ft).words[f]&h,l=((this||ft).words[f]|0)-w<<r;(this||ft).words[f]=l|v,v=w>>>26-r}v&&((this||ft).words[f]=v,(this||ft).length++)}if(o!==0){for(f=(this||ft).length-1;f>=0;f--)(this||ft).words[f+o]=(this||ft).words[f];for(f=0;f<o;f++)(this||ft).words[f]=0;(this||ft).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||ft).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||ft).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||ft).words[e];l.length=v}if(v!==0)if((this||ft).length>v)for((this||ft).length-=v,e=0;e<(this||ft).length;e++)(this||ft).words[e]=(this||ft).words[e+v];else(this||ft).words[0]=0,(this||ft).length=1;var c=0;for(e=(this||ft).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||ft).words[e]|0;(this||ft).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||ft).length===0&&((this||ft).words[0]=0,(this||ft).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||ft).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||ft).length<=o)return!1;var f=(this||ft).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||ft).negative===0,"imaskn works only with positive numbers"),(this||ft).length<=o)return this||ft;if(r!==0&&o++,(this||ft).length=Math.min(o,(this||ft).length),r!==0){var h=67108863^67108863>>>r<<r;(this||ft).words[(this||ft).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||ft).negative!==0?(this||ft).length===1&&((this||ft).words[0]|0)<t?((this||ft).words[0]=t-((this||ft).words[0]|0),(this||ft).negative=0,this||ft):((this||ft).negative=0,this.isubn(t),(this||ft).negative=1,this||ft):this._iaddn(t)},n.prototype._iaddn=function(t){(this||ft).words[0]+=t;for(var r=0;r<(this||ft).length&&(this||ft).words[r]>=67108864;r++)(this||ft).words[r]-=67108864,r===(this||ft).length-1?(this||ft).words[r+1]=1:(this||ft).words[r+1]++;return(this||ft).length=Math.max((this||ft).length,r+1),this||ft},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||ft).negative!==0)return(this||ft).negative=0,this.iaddn(t),(this||ft).negative=1,this||ft;if((this||ft).words[0]-=t,(this||ft).length===1&&(this||ft).words[0]<0)(this||ft).words[0]=-(this||ft).words[0],(this||ft).negative=1;else for(var r=0;r<(this||ft).length&&(this||ft).words[r]<0;r++)(this||ft).words[r]+=67108864,(this||ft).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||ft).negative=0,this||ft},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||ft).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||ft).words[f+o]=v&67108863}for(;f<(this||ft).length-o;f++)v=((this||ft).words[f+o]|0)+w,w=v>>26,(this||ft).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||ft).length;f++)v=-((this||ft).words[f]|0)+w,w=v>>26,(this||ft).words[f]=v&67108863;return(this||ft).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||ft).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||ft).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||ft).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||ft).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||ft).length||this.cmp(t)<0?{div:new n(0),mod:this||ft}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||ft).length-1;h>=0;h--)o=(r*o+((this||ft).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||ft).length-1;o>=0;o--){var h=((this||ft).words[o]|0)+r*67108864;(this||ft).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||ft,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||ft,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||ft).words[0]&1)===0},n.prototype.isOdd=function(){return((this||ft).words[0]&1)===1},n.prototype.andln=function(t){return(this||ft).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||ft).length<=o)return this._expand(o+1),(this||ft).words[o]|=h,this||ft;for(var f=h,v=o;f!==0&&v<(this||ft).length;v++){var w=(this||ft).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||ft).words[v]=w}return f!==0&&((this||ft).words[v]=f,(this||ft).length++),this||ft},n.prototype.isZero=function(){return(this||ft).length===1&&(this||ft).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||ft).negative!==0&&!r)return-1;if((this||ft).negative===0&&r)return 1;this.strip();var o;if((this||ft).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||ft).words[0]|0;o=h===t?0:h<t?-1:1}return(this||ft).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||ft).negative!==0&&t.negative===0)return-1;if((this||ft).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||ft).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||ft).length>t.length)return 1;if((this||ft).length<t.length)return-1;for(var r=0,o=(this||ft).length-1;o>=0;o--){var h=(this||ft).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||ft).red,"Already a number in reduction context"),a((this||ft).negative===0,"red works only with positives"),t.convertTo(this||ft)._forceRed(t)},n.prototype.fromRed=function(){return a((this||ft).red,"fromRed works only with numbers in reduction context"),(this||ft).red.convertFrom(this||ft)},n.prototype._forceRed=function(t){return(this||ft).red=t,this||ft},n.prototype.forceRed=function(t){return a(!(this||ft).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||ft).red,"redAdd works only with red numbers"),(this||ft).red.add(this||ft,t)},n.prototype.redIAdd=function(t){return a((this||ft).red,"redIAdd works only with red numbers"),(this||ft).red.iadd(this||ft,t)},n.prototype.redSub=function(t){return a((this||ft).red,"redSub works only with red numbers"),(this||ft).red.sub(this||ft,t)},n.prototype.redISub=function(t){return a((this||ft).red,"redISub works only with red numbers"),(this||ft).red.isub(this||ft,t)},n.prototype.redShl=function(t){return a((this||ft).red,"redShl works only with red numbers"),(this||ft).red.shl(this||ft,t)},n.prototype.redMul=function(t){return a((this||ft).red,"redMul works only with red numbers"),(this||ft).red._verify2(this||ft,t),(this||ft).red.mul(this||ft,t)},n.prototype.redIMul=function(t){return a((this||ft).red,"redMul works only with red numbers"),(this||ft).red._verify2(this||ft,t),(this||ft).red.imul(this||ft,t)},n.prototype.redSqr=function(){return a((this||ft).red,"redSqr works only with red numbers"),(this||ft).red._verify1(this||ft),(this||ft).red.sqr(this||ft)},n.prototype.redISqr=function(){return a((this||ft).red,"redISqr works only with red numbers"),(this||ft).red._verify1(this||ft),(this||ft).red.isqr(this||ft)},n.prototype.redSqrt=function(){return a((this||ft).red,"redSqrt works only with red numbers"),(this||ft).red._verify1(this||ft),(this||ft).red.sqrt(this||ft)},n.prototype.redInvm=function(){return a((this||ft).red,"redInvm works only with red numbers"),(this||ft).red._verify1(this||ft),(this||ft).red.invm(this||ft)},n.prototype.redNeg=function(){return a((this||ft).red,"redNeg works only with red numbers"),(this||ft).red._verify1(this||ft),(this||ft).red.neg(this||ft)},n.prototype.redPow=function(t){return a((this||ft).red&&!t.red,"redPow(normalNum)"),(this||ft).red._verify1(this||ft),(this||ft).red.pow(this||ft,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||ft).name=d,(this||ft).p=new n(t,16),(this||ft).n=(this||ft).p.bitLength(),(this||ft).k=new n(1).iushln((this||ft).n).isub((this||ft).p),(this||ft).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||ft).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||ft).tmp),r=this.imulK(r),r=r.iadd((this||ft).tmp),o=r.bitLength();while(o>(this||ft).n);var h=o<(this||ft).n?-1:r.ucmp((this||ft).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||ft).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||ft).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||ft).k)};function G(){P.call(this||ft,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||ft,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||ft,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||ft,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||ft).m=t.p,(this||ft).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||ft).m=d,(this||ft).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||ft).prime?(this||ft).prime.ireduce(t)._forceRed(this||ft):t.umod((this||ft).m)._forceRed(this||ft)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||ft).m.sub(t)._forceRed(this||ft)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||ft).m)>=0&&o.isub((this||ft).m),o._forceRed(this||ft)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||ft).m)>=0&&o.isub((this||ft).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||ft).m),o._forceRed(this||ft)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||ft).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||ft).m.andln(3);if(a(r%2===1),r===3){var o=(this||ft).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||ft).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||ft),w=v.redNeg(),l=(this||ft).m.subn(1).iushrn(1),e=(this||ft).m.bitLength();for(e=new n(2*e*e).toRed(this||ft);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||ft).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||ft);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||ft),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||ft).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||ft,d),(this||ft).shift=(this||ft).m.bitLength(),(this||ft).shift%26!==0&&((this||ft).shift+=26-(this||ft).shift%26),(this||ft).r=new n(1).iushln((this||ft).shift),(this||ft).r2=this.imod((this||ft).r.sqr()),(this||ft).rinv=(this||ft).r._invmp((this||ft).m),(this||ft).minv=(this||ft).rinv.mul((this||ft).r).isubn(1).div((this||ft).m),(this||ft).minv=(this||ft).minv.umod((this||ft).r),(this||ft).minv=(this||ft).r.sub((this||ft).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||ft).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||ft).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||ft).shift).mul((this||ft).minv).imaskn((this||ft).shift).mul((this||ft).m),f=o.isub(h).iushrn((this||ft).shift),v=f;return f.cmp((this||ft).m)>=0?v=f.isub((this||ft).m):f.cmpn(0)<0&&(v=f.iadd((this||ft).m)),v._forceRed(this||ft)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||ft);var o=t.mul(r),h=o.maskn((this||ft).shift).mul((this||ft).minv).imaskn((this||ft).shift).mul((this||ft).m),f=o.isub(h).iushrn((this||ft).shift),v=f;return f.cmp((this||ft).m)>=0?v=f.isub((this||ft).m):f.cmpn(0)<0&&(v=f.iadd((this||ft).m)),v._forceRed(this||ft)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||ft).m).mul((this||ft).r2));return r._forceRed(this||ft)}}(ig,Tk)),ig.exports}var ng={},yS=!1;function Xb(){if(yS)return ng;yS=!0;var i=sr,s=Tr,a=s.Buffer,u={},n;for(n in s)s.hasOwnProperty(n)&&(n==="SlowBuffer"||n==="Buffer"||(u[n]=s[n]));var p=u.Buffer={};for(n in a)a.hasOwnProperty(n)&&(n==="allocUnsafe"||n==="allocUnsafeSlow"||(p[n]=a[n]));if(u.Buffer.prototype=a.prototype,(!p.from||p.from===Uint8Array.from)&&(p.from=function(m,y,M){if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof m);if(m&&typeof m.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);return a(m,y,M)}),p.alloc||(p.alloc=function(m,y,M){if(typeof m!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof m);if(m<0||m>=2*(1<<30))throw new RangeError('The value "'+m+'" is invalid for option "size"');var b=a(m);return!y||y.length===0?b.fill(0):typeof M=="string"?b.fill(y,M):b.fill(y),b}),!u.kStringMaxLength)try{u.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch{}return u.constants||(u.constants={MAX_LENGTH:u.kMaxLength},u.kStringMaxLength&&(u.constants.MAX_STRING_LENGTH=u.kStringMaxLength)),ng=u,ng}var og={},wS=!1;function Jb(){if(wS)return og;wS=!0;let i=Je();function s(u){this._reporterState={obj:null,path:[],options:u||{},errors:[]}}og.Reporter=s,s.prototype.isError=function(n){return n instanceof a},s.prototype.save=function(){let n=this._reporterState;return{obj:n.obj,pathLen:n.path.length}},s.prototype.restore=function(n){let p=this._reporterState;p.obj=n.obj,p.path=p.path.slice(0,n.pathLen)},s.prototype.enterKey=function(n){return this._reporterState.path.push(n)},s.prototype.exitKey=function(n){let p=this._reporterState;p.path=p.path.slice(0,n-1)},s.prototype.leaveKey=function(n,p,m){let y=this._reporterState;this.exitKey(n),y.obj!==null&&(y.obj[p]=m)},s.prototype.path=function(){return this._reporterState.path.join("/")},s.prototype.enterObject=function(){let n=this._reporterState,p=n.obj;return n.obj={},p},s.prototype.leaveObject=function(n){let p=this._reporterState,m=p.obj;return p.obj=n,m},s.prototype.error=function(n){let p,m=this._reporterState,y=n instanceof a;if(y?p=n:p=new a(m.path.map(function(M){return"["+JSON.stringify(M)+"]"}).join(""),n.message||n,n.stack),!m.options.partial)throw p;return y||m.errors.push(p),p},s.prototype.wrapResult=function(n){let p=this._reporterState;return p.options.partial?{result:this.isError(n)?null:n,errors:p.errors}:n};function a(u,n){this.path=u,this.rethrow(n)}return i(a,Error),a.prototype.rethrow=function(n){if(this.message=n+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(p){this.stack=p.stack}return this},og}var E0={},MS=!1;function au(){if(MS)return E0;MS=!0;let i=Je(),s=Jb().Reporter,a=Xb().Buffer;function u(p,m){if(s.call(this,m),!a.isBuffer(p)){this.error("Input not Buffer");return}this.base=p,this.offset=0,this.length=p.length}i(u,s),E0.DecoderBuffer=u,u.isDecoderBuffer=function(m){return m instanceof u?!0:typeof m=="object"&&a.isBuffer(m.base)&&m.constructor.name==="DecoderBuffer"&&typeof m.offset=="number"&&typeof m.length=="number"&&typeof m.save=="function"&&typeof m.restore=="function"&&typeof m.isEmpty=="function"&&typeof m.readUInt8=="function"&&typeof m.skip=="function"&&typeof m.raw=="function"},u.prototype.save=function(){return{offset:this.offset,reporter:s.prototype.save.call(this)}},u.prototype.restore=function(m){let y=new u(this.base);return y.offset=m.offset,y.length=this.offset,this.offset=m.offset,s.prototype.restore.call(this,m.reporter),y},u.prototype.isEmpty=function(){return this.offset===this.length},u.prototype.readUInt8=function(m){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(m||"DecoderBuffer overrun")},u.prototype.skip=function(m,y){if(!(this.offset+m<=this.length))return this.error(y||"DecoderBuffer overrun");let M=new u(this.base);return M._reporterState=this._reporterState,M.offset=this.offset,M.length=this.offset+m,this.offset+=m,M},u.prototype.raw=function(m){return this.base.slice(m?m.offset:this.offset,this.length)};function n(p,m){if(Array.isArray(p))this.length=0,this.value=p.map(function(y){return n.isEncoderBuffer(y)||(y=new n(y,m)),this.length+=y.length,y},this);else if(typeof p=="number"){if(!(0<=p&&p<=255))return m.error("non-byte EncoderBuffer value");this.value=p,this.length=1}else if(typeof p=="string")this.value=p,this.length=a.byteLength(p);else if(a.isBuffer(p))this.value=p,this.length=p.length;else return m.error("Unsupported type: "+typeof p)}return E0.EncoderBuffer=n,n.isEncoderBuffer=function(m){return m instanceof n?!0:typeof m=="object"&&m.constructor.name==="EncoderBuffer"&&typeof m.length=="number"&&typeof m.join=="function"},n.prototype.join=function(m,y){return m||(m=a.alloc(this.length)),y||(y=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(M){M.join(m,y),y+=M.length}):(typeof this.value=="number"?m[y]=this.value:typeof this.value=="string"?m.write(this.value,y):a.isBuffer(this.value)&&this.value.copy(m,y),y+=this.length)),m},E0}var ag={},_S=!1;function Yb(){if(_S)return ag;_S=!0;let i=Jb().Reporter,s=au().EncoderBuffer,a=au().DecoderBuffer,u=$o(),n=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],p=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(n),m=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function y(b,g,S){let _={};this._baseState=_,_.name=S,_.enc=b,_.parent=g||null,_.children=null,_.tag=null,_.args=null,_.reverseArgs=null,_.choice=null,_.optional=!1,_.any=!1,_.obj=!1,_.use=null,_.useDecoder=null,_.key=null,_.default=null,_.explicit=null,_.implicit=null,_.contains=null,_.parent||(_.children=[],this._wrap())}ag=y;let M=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return y.prototype.clone=function(){let g=this._baseState,S={};M.forEach(function(x){S[x]=g[x]});let _=new this.constructor(S.parent);return _._baseState=S,_},y.prototype._wrap=function(){let g=this._baseState;p.forEach(function(S){this[S]=function(){let x=new this.constructor(this);return g.children.push(x),x[S].apply(x,arguments)}},this)},y.prototype._init=function(g){let S=this._baseState;u(S.parent===null),g.call(this),S.children=S.children.filter(function(_){return _._baseState.parent===this},this),u.equal(S.children.length,1,"Root node can have only one child")},y.prototype._useArgs=function(g){let S=this._baseState,_=g.filter(function(x){return x instanceof this.constructor},this);g=g.filter(function(x){return!(x instanceof this.constructor)},this),_.length!==0&&(u(S.children===null),S.children=_,_.forEach(function(x){x._baseState.parent=this},this)),g.length!==0&&(u(S.args===null),S.args=g,S.reverseArgs=g.map(function(x){if(typeof x!="object"||x.constructor!==Object)return x;let E={};return Object.keys(x).forEach(function(k){k==(k|0)&&(k|=0);let B=x[k];E[B]=k}),E}))},m.forEach(function(b){y.prototype[b]=function(){let S=this._baseState;throw new Error(b+" not implemented for encoding: "+S.enc)}}),n.forEach(function(b){y.prototype[b]=function(){let S=this._baseState,_=Array.prototype.slice.call(arguments);return u(S.tag===null),S.tag=b,this._useArgs(_),this}}),y.prototype.use=function(g){u(g);let S=this._baseState;return u(S.use===null),S.use=g,this},y.prototype.optional=function(){let g=this._baseState;return g.optional=!0,this},y.prototype.def=function(g){let S=this._baseState;return u(S.default===null),S.default=g,S.optional=!0,this},y.prototype.explicit=function(g){let S=this._baseState;return u(S.explicit===null&&S.implicit===null),S.explicit=g,this},y.prototype.implicit=function(g){let S=this._baseState;return u(S.explicit===null&&S.implicit===null),S.implicit=g,this},y.prototype.obj=function(){let g=this._baseState,S=Array.prototype.slice.call(arguments);return g.obj=!0,S.length!==0&&this._useArgs(S),this},y.prototype.key=function(g){let S=this._baseState;return u(S.key===null),S.key=g,this},y.prototype.any=function(){let g=this._baseState;return g.any=!0,this},y.prototype.choice=function(g){let S=this._baseState;return u(S.choice===null),S.choice=g,this._useArgs(Object.keys(g).map(function(_){return g[_]})),this},y.prototype.contains=function(g){let S=this._baseState;return u(S.use===null),S.contains=g,this},y.prototype._decode=function(g,S){let _=this._baseState;if(_.parent===null)return g.wrapResult(_.children[0]._decode(g,S));let x=_.default,E=!0,k=null;if(_.key!==null&&(k=g.enterKey(_.key)),_.optional){let T=null;if(_.explicit!==null?T=_.explicit:_.implicit!==null?T=_.implicit:_.tag!==null&&(T=_.tag),T===null&&!_.any){let C=g.save();try{_.choice===null?this._decodeGeneric(_.tag,g,S):this._decodeChoice(g,S),E=!0}catch{E=!1}g.restore(C)}else if(E=this._peekTag(g,T,_.any),g.isError(E))return E}let B;if(_.obj&&E&&(B=g.enterObject()),E){if(_.explicit!==null){let C=this._decodeTag(g,_.explicit);if(g.isError(C))return C;g=C}let T=g.offset;if(_.use===null&&_.choice===null){let C;_.any&&(C=g.save());let P=this._decodeTag(g,_.implicit!==null?_.implicit:_.tag,_.any);if(g.isError(P))return P;_.any?x=g.raw(C):g=P}if(S&&S.track&&_.tag!==null&&S.track(g.path(),T,g.length,"tagged"),S&&S.track&&_.tag!==null&&S.track(g.path(),g.offset,g.length,"content"),_.any||(_.choice===null?x=this._decodeGeneric(_.tag,g,S):x=this._decodeChoice(g,S)),g.isError(x))return x;if(!_.any&&_.choice===null&&_.children!==null&&_.children.forEach(function(P){P._decode(g,S)}),_.contains&&(_.tag==="octstr"||_.tag==="bitstr")){let C=new a(x);x=this._getUse(_.contains,g._reporterState.obj)._decode(C,S)}}return _.obj&&E&&(x=g.leaveObject(B)),_.key!==null&&(x!==null||E===!0)?g.leaveKey(k,_.key,x):k!==null&&g.exitKey(k),x},y.prototype._decodeGeneric=function(g,S,_){let x=this._baseState;return g==="seq"||g==="set"?null:g==="seqof"||g==="setof"?this._decodeList(S,g,x.args[0],_):/str$/.test(g)?this._decodeStr(S,g,_):g==="objid"&&x.args?this._decodeObjid(S,x.args[0],x.args[1],_):g==="objid"?this._decodeObjid(S,null,null,_):g==="gentime"||g==="utctime"?this._decodeTime(S,g,_):g==="null_"?this._decodeNull(S,_):g==="bool"?this._decodeBool(S,_):g==="objDesc"?this._decodeStr(S,g,_):g==="int"||g==="enum"?this._decodeInt(S,x.args&&x.args[0],_):x.use!==null?this._getUse(x.use,S._reporterState.obj)._decode(S,_):S.error("unknown tag: "+g)},y.prototype._getUse=function(g,S){let _=this._baseState;return _.useDecoder=this._use(g,S),u(_.useDecoder._baseState.parent===null),_.useDecoder=_.useDecoder._baseState.children[0],_.implicit!==_.useDecoder._baseState.implicit&&(_.useDecoder=_.useDecoder.clone(),_.useDecoder._baseState.implicit=_.implicit),_.useDecoder},y.prototype._decodeChoice=function(g,S){let _=this._baseState,x=null,E=!1;return Object.keys(_.choice).some(function(k){let B=g.save(),T=_.choice[k];try{let C=T._decode(g,S);if(g.isError(C))return!1;x={type:k,value:C},E=!0}catch{return g.restore(B),!1}return!0},this),E?x:g.error("Choice not matched")},y.prototype._createEncoderBuffer=function(g){return new s(g,this.reporter)},y.prototype._encode=function(g,S,_){let x=this._baseState;if(x.default!==null&&x.default===g)return;let E=this._encodeValue(g,S,_);if(E!==void 0&&!this._skipDefault(E,S,_))return E},y.prototype._encodeValue=function(g,S,_){let x=this._baseState;if(x.parent===null)return x.children[0]._encode(g,S||new i);let E=null;if(this.reporter=S,x.optional&&g===void 0)if(x.default!==null)g=x.default;else return;let k=null,B=!1;if(x.any)E=this._createEncoderBuffer(g);else if(x.choice)E=this._encodeChoice(g,S);else if(x.contains)k=this._getUse(x.contains,_)._encode(g,S),B=!0;else if(x.children)k=x.children.map(function(T){if(T._baseState.tag==="null_")return T._encode(null,S,g);if(T._baseState.key===null)return S.error("Child should have a key");let C=S.enterKey(T._baseState.key);if(typeof g!="object")return S.error("Child expected, but input is not object");let P=T._encode(g[T._baseState.key],S,g);return S.leaveKey(C),P},this).filter(function(T){return T}),k=this._createEncoderBuffer(k);else if(x.tag==="seqof"||x.tag==="setof"){if(!(x.args&&x.args.length===1))return S.error("Too many args for : "+x.tag);if(!Array.isArray(g))return S.error("seqof/setof, but data is not Array");let T=this.clone();T._baseState.implicit=null,k=this._createEncoderBuffer(g.map(function(C){let P=this._baseState;return this._getUse(P.args[0],g)._encode(C,S)},T))}else x.use!==null?E=this._getUse(x.use,_)._encode(g,S):(k=this._encodePrimitive(x.tag,g),B=!0);if(!x.any&&x.choice===null){let T=x.implicit!==null?x.implicit:x.tag,C=x.implicit===null?"universal":"context";T===null?x.use===null&&S.error("Tag could be omitted only for .use()"):x.use===null&&(E=this._encodeComposite(T,B,C,k))}return x.explicit!==null&&(E=this._encodeComposite(x.explicit,!1,"context",E)),E},y.prototype._encodeChoice=function(g,S){let _=this._baseState,x=_.choice[g.type];return x||u(!1,g.type+" not found in "+JSON.stringify(Object.keys(_.choice))),x._encode(g.value,S)},y.prototype._encodePrimitive=function(g,S){let _=this._baseState;if(/str$/.test(g))return this._encodeStr(S,g);if(g==="objid"&&_.args)return this._encodeObjid(S,_.reverseArgs[0],_.args[1]);if(g==="objid")return this._encodeObjid(S,null,null);if(g==="gentime"||g==="utctime")return this._encodeTime(S,g);if(g==="null_")return this._encodeNull();if(g==="int"||g==="enum")return this._encodeInt(S,_.args&&_.reverseArgs[0]);if(g==="bool")return this._encodeBool(S);if(g==="objDesc")return this._encodeStr(S,g);throw new Error("Unsupported tag: "+g)},y.prototype._isNumstr=function(g){return/^[0-9 ]*$/.test(g)},y.prototype._isPrintstr=function(g){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(g)},ag}var _a={},SS=!1;function Qb(){if(SS)return _a;SS=!0;function i(s){let a={};return Object.keys(s).forEach(function(u){(u|0)==u&&(u=u|0);let n=s[u];a[n]=u}),a}return _a.tagClass={0:"universal",1:"application",2:"context",3:"private"},_a.tagClassByName=i(_a.tagClass),_a.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},_a.tagByName=i(_a.tag),_a}var sg={},xS=!1;function Ik(){if(xS)return sg;xS=!0;let i=Je(),s=Xb().Buffer,a=Yb(),u=Qb();function n(M){this.enc="der",this.name=M.name,this.entity=M,this.tree=new p,this.tree._init(M.body)}sg=n,n.prototype.encode=function(b,g){return this.tree._encode(b,g).join()};function p(M){a.call(this,"der",M)}i(p,a),p.prototype._encodeComposite=function(b,g,S,_){let x=y(b,g,S,this.reporter);if(_.length<128){let B=s.alloc(2);return B[0]=x,B[1]=_.length,this._createEncoderBuffer([B,_])}let E=1;for(let B=_.length;B>=256;B>>=8)E++;let k=s.alloc(1+1+E);k[0]=x,k[1]=128|E;for(let B=1+E,T=_.length;T>0;B--,T>>=8)k[B]=T&255;return this._createEncoderBuffer([k,_])},p.prototype._encodeStr=function(b,g){if(g==="bitstr")return this._createEncoderBuffer([b.unused|0,b.data]);if(g==="bmpstr"){let S=s.alloc(b.length*2);for(let _=0;_<b.length;_++)S.writeUInt16BE(b.charCodeAt(_),_*2);return this._createEncoderBuffer(S)}else return g==="numstr"?this._isNumstr(b)?this._createEncoderBuffer(b):this.reporter.error("Encoding of string type: numstr supports only digits and space"):g==="printstr"?this._isPrintstr(b)?this._createEncoderBuffer(b):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(g)?this._createEncoderBuffer(b):g==="objDesc"?this._createEncoderBuffer(b):this.reporter.error("Encoding of string type: "+g+" unsupported")},p.prototype._encodeObjid=function(b,g,S){if(typeof b=="string"){if(!g)return this.reporter.error("string objid given, but no values map found");if(!g.hasOwnProperty(b))return this.reporter.error("objid not found in values map");b=g[b].split(/[\s.]+/g);for(let k=0;k<b.length;k++)b[k]|=0}else if(Array.isArray(b)){b=b.slice();for(let k=0;k<b.length;k++)b[k]|=0}if(!Array.isArray(b))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(b));if(!S){if(b[1]>=40)return this.reporter.error("Second objid identifier OOB");b.splice(0,2,b[0]*40+b[1])}let _=0;for(let k=0;k<b.length;k++){let B=b[k];for(_++;B>=128;B>>=7)_++}let x=s.alloc(_),E=x.length-1;for(let k=b.length-1;k>=0;k--){let B=b[k];for(x[E--]=B&127;(B>>=7)>0;)x[E--]=128|B&127}return this._createEncoderBuffer(x)};function m(M){return M<10?"0"+M:M}p.prototype._encodeTime=function(b,g){let S,_=new Date(b);return g==="gentime"?S=[m(_.getUTCFullYear()),m(_.getUTCMonth()+1),m(_.getUTCDate()),m(_.getUTCHours()),m(_.getUTCMinutes()),m(_.getUTCSeconds()),"Z"].join(""):g==="utctime"?S=[m(_.getUTCFullYear()%100),m(_.getUTCMonth()+1),m(_.getUTCDate()),m(_.getUTCHours()),m(_.getUTCMinutes()),m(_.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+g+" time is not supported yet"),this._encodeStr(S,"octstr")},p.prototype._encodeNull=function(){return this._createEncoderBuffer("")},p.prototype._encodeInt=function(b,g){if(typeof b=="string"){if(!g)return this.reporter.error("String int or enum given, but no values map");if(!g.hasOwnProperty(b))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(b));b=g[b]}if(typeof b!="number"&&!s.isBuffer(b)){let x=b.toArray();!b.sign&&x[0]&128&&x.unshift(0),b=s.from(x)}if(s.isBuffer(b)){let x=b.length;b.length===0&&x++;let E=s.alloc(x);return b.copy(E),b.length===0&&(E[0]=0),this._createEncoderBuffer(E)}if(b<128)return this._createEncoderBuffer(b);if(b<256)return this._createEncoderBuffer([0,b]);let S=1;for(let x=b;x>=256;x>>=8)S++;let _=new Array(S);for(let x=_.length-1;x>=0;x--)_[x]=b&255,b>>=8;return _[0]&128&&_.unshift(0),this._createEncoderBuffer(s.from(_))},p.prototype._encodeBool=function(b){return this._createEncoderBuffer(b?255:0)},p.prototype._use=function(b,g){return typeof b=="function"&&(b=b(g)),b._getEncoder("der").tree},p.prototype._skipDefault=function(b,g,S){let _=this._baseState,x;if(_.default===null)return!1;let E=b.join();if(_.defaultBuffer===void 0&&(_.defaultBuffer=this._encodeValue(_.default,g,S).join()),E.length!==_.defaultBuffer.length)return!1;for(x=0;x<E.length;x++)if(E[x]!==_.defaultBuffer[x])return!1;return!0};function y(M,b,g,S){let _;if(M==="seqof"?M="seq":M==="setof"&&(M="set"),u.tagByName.hasOwnProperty(M))_=u.tagByName[M];else if(typeof M=="number"&&(M|0)===M)_=M;else return S.error("Unknown tag: "+M);return _>=31?S.error("Multi-octet tag encoding unsupported"):(b||(_|=32),_|=u.tagClassByName[g||"universal"]<<6,_)}return sg}var hg={},ES=!1;function IU(){if(ES)return hg;ES=!0;let i=Je(),s=Ik();function a(u){s.call(this,u),this.enc="pem"}return i(a,s),hg=a,a.prototype.encode=function(n,p){let y=s.prototype.encode.call(this,n).toString("base64"),M=["-----BEGIN "+p.label+"-----"];for(let b=0;b<y.length;b+=64)M.push(y.slice(b,b+64));return M.push("-----END "+p.label+"-----"),M.join(`
25
+ `)},hg}var fg={},AS=!1;function Ck(){if(AS)return fg;AS=!0;let i=fg;return i.der=Ik(),i.pem=IU(),fg}var ug={},kS=!1;function Pk(){if(kS)return ug;kS=!0;let i=Je(),s=$k(),a=au().DecoderBuffer,u=Yb(),n=Qb();function p(b){this.enc="der",this.name=b.name,this.entity=b,this.tree=new m,this.tree._init(b.body)}ug=p,p.prototype.decode=function(g,S){return a.isDecoderBuffer(g)||(g=new a(g,S)),this.tree._decode(g,S)};function m(b){u.call(this,"der",b)}i(m,u),m.prototype._peekTag=function(g,S,_){if(g.isEmpty())return!1;let x=g.save(),E=y(g,'Failed to peek tag: "'+S+'"');return g.isError(E)?E:(g.restore(x),E.tag===S||E.tagStr===S||E.tagStr+"of"===S||_)},m.prototype._decodeTag=function(g,S,_){let x=y(g,'Failed to decode tag of "'+S+'"');if(g.isError(x))return x;let E=M(g,x.primitive,'Failed to get length of "'+S+'"');if(g.isError(E))return E;if(!_&&x.tag!==S&&x.tagStr!==S&&x.tagStr+"of"!==S)return g.error('Failed to match tag: "'+S+'"');if(x.primitive||E!==null)return g.skip(E,'Failed to match body of: "'+S+'"');let k=g.save(),B=this._skipUntilEnd(g,'Failed to skip indefinite length body: "'+this.tag+'"');return g.isError(B)?B:(E=g.offset-k.offset,g.restore(k),g.skip(E,'Failed to match body of: "'+S+'"'))},m.prototype._skipUntilEnd=function(g,S){for(;;){let _=y(g,S);if(g.isError(_))return _;let x=M(g,_.primitive,S);if(g.isError(x))return x;let E;if(_.primitive||x!==null?E=g.skip(x):E=this._skipUntilEnd(g,S),g.isError(E))return E;if(_.tagStr==="end")break}},m.prototype._decodeList=function(g,S,_,x){let E=[];for(;!g.isEmpty();){let k=this._peekTag(g,"end");if(g.isError(k))return k;let B=_.decode(g,"der",x);if(g.isError(B)&&k)break;E.push(B)}return E},m.prototype._decodeStr=function(g,S){if(S==="bitstr"){let _=g.readUInt8();return g.isError(_)?_:{unused:_,data:g.raw()}}else if(S==="bmpstr"){let _=g.raw();if(_.length%2===1)return g.error("Decoding of string type: bmpstr length mismatch");let x="";for(let E=0;E<_.length/2;E++)x+=String.fromCharCode(_.readUInt16BE(E*2));return x}else if(S==="numstr"){let _=g.raw().toString("ascii");return this._isNumstr(_)?_:g.error("Decoding of string type: numstr unsupported characters")}else{if(S==="octstr")return g.raw();if(S==="objDesc")return g.raw();if(S==="printstr"){let _=g.raw().toString("ascii");return this._isPrintstr(_)?_:g.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(S)?g.raw().toString():g.error("Decoding of string type: "+S+" unsupported")}},m.prototype._decodeObjid=function(g,S,_){let x,E=[],k=0,B=0;for(;!g.isEmpty();)B=g.readUInt8(),k<<=7,k|=B&127,B&128||(E.push(k),k=0);B&128&&E.push(k);let T=E[0]/40|0,C=E[0]%40;if(_?x=E:x=[T,C].concat(E.slice(1)),S){let P=S[x.join(" ")];P===void 0&&(P=S[x.join(".")]),P!==void 0&&(x=P)}return x},m.prototype._decodeTime=function(g,S){let _=g.raw().toString(),x,E,k,B,T,C;if(S==="gentime")x=_.slice(0,4)|0,E=_.slice(4,6)|0,k=_.slice(6,8)|0,B=_.slice(8,10)|0,T=_.slice(10,12)|0,C=_.slice(12,14)|0;else if(S==="utctime")x=_.slice(0,2)|0,E=_.slice(2,4)|0,k=_.slice(4,6)|0,B=_.slice(6,8)|0,T=_.slice(8,10)|0,C=_.slice(10,12)|0,x<70?x=2e3+x:x=1900+x;else return g.error("Decoding "+S+" time is not supported yet");return Date.UTC(x,E-1,k,B,T,C,0)},m.prototype._decodeNull=function(){return null},m.prototype._decodeBool=function(g){let S=g.readUInt8();return g.isError(S)?S:S!==0},m.prototype._decodeInt=function(g,S){let _=g.raw(),x=new s(_);return S&&(x=S[x.toString(10)]||x),x},m.prototype._use=function(g,S){return typeof g=="function"&&(g=g(S)),g._getDecoder("der").tree};function y(b,g){let S=b.readUInt8(g);if(b.isError(S))return S;let _=n.tagClass[S>>6],x=(S&32)===0;if((S&31)===31){let k=S;for(S=0;(k&128)===128;){if(k=b.readUInt8(g),b.isError(k))return k;S<<=7,S|=k&127}}else S&=31;let E=n.tag[S];return{cls:_,primitive:x,tag:S,tagStr:E}}function M(b,g,S){let _=b.readUInt8(S);if(b.isError(_))return _;if(!g&&_===128)return null;if(!(_&128))return _;let x=_&127;if(x>4)return b.error("length octect is too long");_=0;for(let E=0;E<x;E++){_<<=8;let k=b.readUInt8(S);if(b.isError(k))return k;_|=k}return _}return ug}var lg={},RS=!1;function CU(){if(RS)return lg;RS=!0;let i=Je(),s=Xb().Buffer,a=Pk();function u(n){a.call(this,n),this.enc="pem"}return i(u,a),lg=u,u.prototype.decode=function(p,m){let y=p.toString().split(/[\r\n]+/g),M=m.label.toUpperCase(),b=/^-----(BEGIN|END) ([^-]+)-----$/,g=-1,S=-1;for(let E=0;E<y.length;E++){let k=y[E].match(b);if(k!==null&&k[2]===M)if(g===-1){if(k[1]!=="BEGIN")break;g=E}else{if(k[1]!=="END")break;S=E;break}}if(g===-1||S===-1)throw new Error("PEM section not found for: "+M);let _=y.slice(g+1,S).join("");_.replace(/[^a-z0-9+/=]+/gi,"");let x=s.from(_,"base64");return a.prototype.decode.call(this,x,m)},lg}var cg={},BS=!1;function Dk(){if(BS)return cg;BS=!0;let i=cg;return i.der=Pk(),i.pem=CU(),cg}var dg={},TS=!1;function PU(){if(TS)return dg;TS=!0;let i=Ck(),s=Dk(),a=Je(),u=dg;u.define=function(m,y){return new n(m,y)};function n(p,m){this.name=p,this.body=m,this.decoders={},this.encoders={}}return n.prototype._createNamed=function(m){let y=this.name;function M(b){this._initNamed(b,y)}return a(M,m),M.prototype._initNamed=function(g,S){m.call(this,g,S)},new M(this)},n.prototype._getDecoder=function(m){return m=m||"der",this.decoders.hasOwnProperty(m)||(this.decoders[m]=this._createNamed(s[m])),this.decoders[m]},n.prototype.decode=function(m,y,M){return this._getDecoder(y).decode(m,M)},n.prototype._getEncoder=function(m){return m=m||"der",this.encoders.hasOwnProperty(m)||(this.encoders[m]=this._createNamed(i[m])),this.encoders[m]},n.prototype.encode=function(m,y,M){return this._getEncoder(y).encode(m,M)},dg}var pg={},$S=!1;function DU(){if($S)return pg;$S=!0;let i=pg;return i.Reporter=Jb().Reporter,i.DecoderBuffer=au().DecoderBuffer,i.EncoderBuffer=au().EncoderBuffer,i.Node=Yb(),pg}var mg={},IS=!1;function LU(){if(IS)return mg;IS=!0;let i=mg;return i._reverse=function(a){let u={};return Object.keys(a).forEach(function(n){(n|0)==n&&(n=n|0);let p=a[n];u[p]=n}),u},i.der=Qb(),mg}var vg={},CS=!1;function Lk(){if(CS)return vg;CS=!0;let i=vg;return i.bignum=$k(),i.define=PU().define,i.base=DU(),i.constants=LU(),i.decoders=Dk(),i.encoders=Ck(),vg}var gg={},PS=!1;function OU(){if(PS)return gg;PS=!0;var i=Lk(),s=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),u=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),n=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(u),this.key("subjectPublicKey").bitstr())}),p=i.define("RelativeDistinguishedName",function(){this.setof(a)}),m=i.define("RDNSequence",function(){this.seqof(p)}),y=i.define("Name",function(){this.choice({rdnSequence:this.use(m)})}),M=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(s),this.key("notAfter").use(s))}),b=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),g=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(u),this.key("issuer").use(y),this.key("validity").use(M),this.key("subject").use(y),this.key("subjectPublicKeyInfo").use(n),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(b).optional())}),S=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(g),this.key("signatureAlgorithm").use(u),this.key("signatureValue").bitstr())});return gg=S,gg}var Bn={},DS=!1;function NU(){if(DS)return Bn;DS=!0;var i=Lk();Bn.certificate=OU();var s=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Bn.RSAPrivateKey=s;var a=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Bn.RSAPublicKey=a;var u=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())});Bn.PublicKey=u;var n=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),p=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())});Bn.PrivateKey=p;var m=i.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Bn.EncryptedPrivateKey=m;var y=i.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Bn.DSAPrivateKey=y,Bn.DSAparam=i.define("DSAparam",function(){this.int()});var M=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(b),this.key("publicKey").optional().explicit(1).bitstr())});Bn.ECPrivateKey=M;var b=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});return Bn.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),Bn}var qU={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"},bg={},LS=!1;function zU(){if(LS)return bg;LS=!0;var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,u=hc(),n=cb(),p=ar().Buffer;return bg=function(m,y){var M=m.toString(),b=M.match(i),g;if(b){var _="aes"+b[1],x=p.from(b[2],"hex"),E=p.from(b[3].replace(/[\r\n]/g,""),"base64"),k=u(y,x.slice(0,8),parseInt(b[1],10)).key,B=[],T=n.createDecipheriv(_,k,x);B.push(T.update(E)),B.push(T.final()),g=p.concat(B)}else{var S=M.match(a);g=p.from(S[2].replace(/[\r\n]/g,""),"base64")}var C=M.match(s)[1];return{tag:C,data:g}},bg}var yg={},OS=!1;function kc(){if(OS)return yg;OS=!0;var i=NU(),s=qU,a=zU(),u=cb(),n=dx(),p=ar().Buffer;yg=m;function m(M){var b;typeof M=="object"&&!p.isBuffer(M)&&(b=M.passphrase,M=M.key),typeof M=="string"&&(M=p.from(M));var g=a(M,b),S=g.tag,_=g.data,x,E;switch(S){case"CERTIFICATE":E=i.certificate.decode(_,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(E||(E=i.PublicKey.decode(_,"der")),x=E.algorithm.algorithm.join("."),x){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(E.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return E.subjectPrivateKey=E.subjectPublicKey,{type:"ec",data:E};case"1.2.840.10040.4.1":return E.algorithm.params.pub_key=i.DSAparam.decode(E.subjectPublicKey.data,"der"),{type:"dsa",data:E.algorithm.params};default:throw new Error("unknown key id "+x)}case"ENCRYPTED PRIVATE KEY":_=i.EncryptedPrivateKey.decode(_,"der"),_=y(_,b);case"PRIVATE KEY":switch(E=i.PrivateKey.decode(_,"der"),x=E.algorithm.algorithm.join("."),x){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(E.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:E.algorithm.curve,privateKey:i.ECPrivateKey.decode(E.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return E.algorithm.params.priv_key=i.DSAparam.decode(E.subjectPrivateKey,"der"),{type:"dsa",params:E.algorithm.params};default:throw new Error("unknown key id "+x)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(_,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(_,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(_,"der")};case"EC PRIVATE KEY":return _=i.ECPrivateKey.decode(_,"der"),{curve:_.parameters.value,privateKey:_.privateKey};default:throw new Error("unknown key type "+S)}}m.signature=i.signature;function y(M,b){var g=M.algorithm.decrypt.kde.kdeparams.salt,S=parseInt(M.algorithm.decrypt.kde.kdeparams.iters.toString(),10),_=s[M.algorithm.decrypt.cipher.algo.join(".")],x=M.algorithm.decrypt.cipher.iv,E=M.subjectPrivateKey,k=parseInt(_.split("-")[1],10)/8,B=n.pbkdf2Sync(b,g,S,k,"sha1"),T=u.createDecipheriv(_,B,x),C=[];return C.push(T.update(E)),C.push(T.final()),p.concat(C)}return yg}var Ok={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"},Df={},NS=!1;function UU(){if(NS)return Df;NS=!0;var i=Hb().Buffer,s=sx(),a=Gb(),u=Wb().ec,n=Kb(),p=kc(),m=Ok;function y(B,T,C,P,G){var U=p(T);if(U.curve){if(P!=="ecdsa"&&P!=="ecdsa/rsa")throw new Error("wrong private key type");return M(B,U)}else if(U.type==="dsa"){if(P!=="dsa")throw new Error("wrong private key type");return b(B,U,C)}else if(P!=="rsa"&&P!=="ecdsa/rsa")throw new Error("wrong private key type");B=i.concat([G,B]);for(var V=U.modulus.byteLength(),I=[0,1];B.length+I.length+1<V;)I.push(255);I.push(0);for(var D=-1;++D<B.length;)I.push(B[D]);var z=a(I,U);return z}function M(B,T){var C=m[T.curve.join(".")];if(!C)throw new Error("unknown curve "+T.curve.join("."));var P=new u(C),G=P.keyFromPrivate(T.privateKey),U=G.sign(B);return i.from(U.toDER())}function b(B,T,C){for(var P=T.params.priv_key,G=T.params.p,U=T.params.q,V=T.params.g,I=new n(0),D,z=_(B,U).mod(U),d=!1,t=S(P,U,B,C);d===!1;)D=E(U,t,C),I=k(V,D,G,U),d=D.invm(U).imul(z.add(P.mul(I))).mod(U),d.cmpn(0)===0&&(d=!1,I=new n(0));return g(I,d)}function g(B,T){B=B.toArray(),T=T.toArray(),B[0]&128&&(B=[0].concat(B)),T[0]&128&&(T=[0].concat(T));var C=B.length+T.length+4,P=[48,C,2,B.length];return P=P.concat(B,[2,T.length],T),i.from(P)}function S(B,T,C,P){if(B=i.from(B.toArray()),B.length<T.byteLength()){var G=i.alloc(T.byteLength()-B.length);B=i.concat([G,B])}var U=C.length,V=x(C,T),I=i.alloc(U);I.fill(1);var D=i.alloc(U);return D=s(P,D).update(I).update(i.from([0])).update(B).update(V).digest(),I=s(P,D).update(I).digest(),D=s(P,D).update(I).update(i.from([1])).update(B).update(V).digest(),I=s(P,D).update(I).digest(),{k:D,v:I}}function _(B,T){var C=new n(B),P=(B.length<<3)-T.bitLength();return P>0&&C.ishrn(P),C}function x(B,T){B=_(B,T),B=B.mod(T);var C=i.from(B.toArray());if(C.length<T.byteLength()){var P=i.alloc(T.byteLength()-C.length);C=i.concat([P,C])}return C}function E(B,T,C){var P,G;do{for(P=i.alloc(0);P.length*8<B.bitLength();)T.v=s(C,T.k).update(T.v).digest(),P=i.concat([P,T.v]);G=_(P,B),T.k=s(C,T.k).update(T.v).update(i.from([0])).digest(),T.v=s(C,T.k).update(T.v).digest()}while(G.cmp(B)!==-1);return G}function k(B,T,C,P){return B.toRed(n.mont(C)).redPow(T).fromRed().mod(P)}return Df=y,Df.getKey=S,Df.makeKey=E,Df}var wg={},qS=!1;function FU(){if(qS)return wg;qS=!0;var i=Hb().Buffer,s=Kb(),a=Wb().ec,u=kc(),n=Ok;function p(b,g,S,_,x){var E=u(S);if(E.type==="ec"){if(_!=="ecdsa"&&_!=="ecdsa/rsa")throw new Error("wrong public key type");return m(b,g,E)}else if(E.type==="dsa"){if(_!=="dsa")throw new Error("wrong public key type");return y(b,g,E)}else if(_!=="rsa"&&_!=="ecdsa/rsa")throw new Error("wrong public key type");g=i.concat([x,g]);for(var k=E.modulus.byteLength(),B=[1],T=0;g.length+B.length+2<k;)B.push(255),T++;B.push(0);for(var C=-1;++C<g.length;)B.push(g[C]);B=i.from(B);var P=s.mont(E.modulus);b=new s(b).toRed(P),b=b.redPow(new s(E.publicExponent)),b=i.from(b.fromRed().toArray());var G=T<8?1:0;for(k=Math.min(b.length,B.length),b.length!==B.length&&(G=1),C=-1;++C<k;)G|=b[C]^B[C];return G===0}function m(b,g,S){var _=n[S.data.algorithm.curve.join(".")];if(!_)throw new Error("unknown curve "+S.data.algorithm.curve.join("."));var x=new a(_),E=S.data.subjectPrivateKey.data;return x.verify(g,b,E)}function y(b,g,S){var _=S.data.p,x=S.data.q,E=S.data.g,k=S.data.pub_key,B=u.signature.decode(b,"der"),T=B.s,C=B.r;M(T,x),M(C,x);var P=s.mont(_),G=T.invm(x),U=E.toRed(P).redPow(new s(g).mul(G).mod(x)).fromRed().mul(k.toRed(P).redPow(C.mul(G).mod(x)).fromRed()).mod(_).mod(x);return U.cmp(C)===0}function M(b,g){if(b.cmpn(0)<=0)throw new Error("invalid sig");if(b.cmp(g)>=g)throw new Error("invalid sig")}return wg=p,wg}var Mg={},zS=!1,zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function jU(){if(zS)return Mg;zS=!0;var i=Hb().Buffer,s=su(),a=L1(),u=Je(),n=UU(),p=FU(),m=hx;Object.keys(m).forEach(function(S){m[S].id=i.from(m[S].id,"hex"),m[S.toLowerCase()]=m[S]});function y(S){a.Writable.call(this||zr);var _=m[S];if(!_)throw new Error("Unknown message digest");(this||zr)._hashType=_.hash,(this||zr)._hash=s(_.hash),(this||zr)._tag=_.id,(this||zr)._signType=_.sign}u(y,a.Writable),y.prototype._write=function(_,x,E){(this||zr)._hash.update(_),E()},y.prototype.update=function(_,x){return typeof _=="string"&&(_=i.from(_,x)),(this||zr)._hash.update(_),this||zr},y.prototype.sign=function(_,x){this.end();var E=(this||zr)._hash.digest(),k=n(E,_,(this||zr)._hashType,(this||zr)._signType,(this||zr)._tag);return x?k.toString(x):k};function M(S){a.Writable.call(this||zr);var _=m[S];if(!_)throw new Error("Unknown message digest");(this||zr)._hash=s(_.hash),(this||zr)._tag=_.id,(this||zr)._signType=_.sign}u(M,a.Writable),M.prototype._write=function(_,x,E){(this||zr)._hash.update(_),E()},M.prototype.update=function(_,x){return typeof _=="string"&&(_=i.from(_,x)),(this||zr)._hash.update(_),this||zr},M.prototype.verify=function(_,x,E){typeof x=="string"&&(x=i.from(x,E)),this.end();var k=(this||zr)._hash.digest();return p(x,k,_,(this||zr)._signType,(this||zr)._tag)};function b(S){return new y(S)}function g(S){return new M(S)}return Mg={Sign:b,Verify:g,createSign:b,createVerify:g},Mg}var Nk={},US=!1,_g={exports:Nk},ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function HU(){return US||(US=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||ut).negative=0,(this||ut).words=null,(this||ut).length=0,(this||ut).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Tr.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||ut).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||ut).negative=1,t=-t),t<67108864?((this||ut).words=[t&67108863],(this||ut).length=1):t<4503599627370496?((this||ut).words=[t&67108863,t/67108864&67108863],(this||ut).length=2):(a(t<9007199254740992),(this||ut).words=[t&67108863,t/67108864&67108863,1],(this||ut).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||ut).words=[0],(this||ut).length=1,this||ut;(this||ut).length=Math.ceil(t.length/3),(this||ut).words=new Array((this||ut).length);for(var h=0;h<(this||ut).length;h++)(this||ut).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||ut).words[f]|=v<<w&67108863,(this||ut).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||ut).words[f]|=v<<w&67108863,(this||ut).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||ut).length=Math.ceil((t.length-r)/6),(this||ut).words=new Array((this||ut).length);for(var h=0;h<(this||ut).length;h++)(this||ut).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||ut).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||ut).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||ut).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||ut).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||ut).words=[0],(this||ut).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||ut).words[0]+e<67108864?(this||ut).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||ut).words[0]+e<67108864?(this||ut).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||ut).length);for(var r=0;r<(this||ut).length;r++)t.words[r]=(this||ut).words[r];t.length=(this||ut).length,t.negative=(this||ut).negative,t.red=(this||ut).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||ut).length<t;)(this||ut).words[(this||ut).length++]=0;return this||ut},n.prototype.strip=function(){for(;(this||ut).length>1&&(this||ut).words[(this||ut).length-1]===0;)(this||ut).length--;return this._normSign()},n.prototype._normSign=function(){return(this||ut).length===1&&(this||ut).words[0]===0&&((this||ut).negative=0),this||ut},n.prototype.inspect=function(){return((this||ut).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||ut).length;v++){var w=(this||ut).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||ut).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||ut).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||ut).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||ut).words[0];return(this||ut).length===2?t+=(this||ut).words[1]*67108864:(this||ut).length===3&&(this||ut).words[2]===1?t+=4503599627370496+(this||ut).words[1]*67108864:(this||ut).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||ut).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||ut).words[(this||ut).length-1],r=this._countBits(t);return((this||ut).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||ut).length;r++){var o=this._zeroBits((this||ut).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||ut).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||ut).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||ut).negative^=1),this||ut},n.prototype.iuor=function(t){for(;(this||ut).length<t.length;)(this||ut).words[(this||ut).length++]=0;for(var r=0;r<t.length;r++)(this||ut).words[r]=(this||ut).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||ut).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||ut).length>t.length?this.clone().ior(t):t.clone().ior(this||ut)},n.prototype.uor=function(t){return(this||ut).length>t.length?this.clone().iuor(t):t.clone().iuor(this||ut)},n.prototype.iuand=function(t){var r;(this||ut).length>t.length?r=t:r=this||ut;for(var o=0;o<r.length;o++)(this||ut).words[o]=(this||ut).words[o]&t.words[o];return(this||ut).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||ut).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||ut).length>t.length?this.clone().iand(t):t.clone().iand(this||ut)},n.prototype.uand=function(t){return(this||ut).length>t.length?this.clone().iuand(t):t.clone().iuand(this||ut)},n.prototype.iuxor=function(t){var r,o;(this||ut).length>t.length?(r=this||ut,o=t):(r=t,o=this||ut);for(var h=0;h<o.length;h++)(this||ut).words[h]=r.words[h]^o.words[h];if((this||ut)!==r)for(;h<r.length;h++)(this||ut).words[h]=r.words[h];return(this||ut).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||ut).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||ut).length>t.length?this.clone().ixor(t):t.clone().ixor(this||ut)},n.prototype.uxor=function(t){return(this||ut).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||ut)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||ut).words[h]=~(this||ut).words[h]&67108863;return o>0&&((this||ut).words[h]=~(this||ut).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||ut).words[o]=(this||ut).words[o]|1<<h:(this||ut).words[o]=(this||ut).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||ut).negative!==0&&t.negative===0)return(this||ut).negative=0,r=this.isub(t),(this||ut).negative^=1,this._normSign();if((this||ut).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||ut).length>t.length?(o=this||ut,h=t):(o=t,h=this||ut);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||ut).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||ut).words[v]=r&67108863,f=r>>>26;if((this||ut).length=o.length,f!==0)(this||ut).words[(this||ut).length]=f,(this||ut).length++;else if(o!==(this||ut))for(;v<o.length;v++)(this||ut).words[v]=o.words[v];return this||ut},n.prototype.add=function(t){var r;return t.negative!==0&&(this||ut).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||ut).negative!==0?((this||ut).negative=0,r=t.sub(this||ut),(this||ut).negative=1,r):(this||ut).length>t.length?this.clone().iadd(t):t.clone().iadd(this||ut)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||ut).negative!==0)return(this||ut).negative=0,this.iadd(t),(this||ut).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||ut).negative=0,(this||ut).length=1,(this||ut).words[0]=0,this||ut;var h,f;o>0?(h=this||ut,f=t):(h=t,f=this||ut);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||ut).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||ut).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||ut))for(;w<h.length;w++)(this||ut).words[w]=h.words[w];return(this||ut).length=Math.max((this||ut).length,w),h!==(this||ut)&&((this||ut).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||ut).length+t.length;return(this||ut).length===10&&t.length===10?o=E(this||ut,t,r):h<63?o=x(this||ut,t,r):h<1024?o=k(this||ut,t,r):o=B(this||ut,t,r),o};function T(d,t){(this||ut).x=d,(this||ut).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||ut).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||ut).length+t.length),B(this||ut,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||ut)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||ut).length;o++){var h=((this||ut).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||ut).words[o]=f&67108863}return r!==0&&((this||ut).words[o]=r,(this||ut).length++),this||ut},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||ut)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||ut,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||ut).length;f++){var w=(this||ut).words[f]&h,l=((this||ut).words[f]|0)-w<<r;(this||ut).words[f]=l|v,v=w>>>26-r}v&&((this||ut).words[f]=v,(this||ut).length++)}if(o!==0){for(f=(this||ut).length-1;f>=0;f--)(this||ut).words[f+o]=(this||ut).words[f];for(f=0;f<o;f++)(this||ut).words[f]=0;(this||ut).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||ut).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||ut).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||ut).words[e];l.length=v}if(v!==0)if((this||ut).length>v)for((this||ut).length-=v,e=0;e<(this||ut).length;e++)(this||ut).words[e]=(this||ut).words[e+v];else(this||ut).words[0]=0,(this||ut).length=1;var c=0;for(e=(this||ut).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||ut).words[e]|0;(this||ut).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||ut).length===0&&((this||ut).words[0]=0,(this||ut).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||ut).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||ut).length<=o)return!1;var f=(this||ut).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||ut).negative===0,"imaskn works only with positive numbers"),(this||ut).length<=o)return this||ut;if(r!==0&&o++,(this||ut).length=Math.min(o,(this||ut).length),r!==0){var h=67108863^67108863>>>r<<r;(this||ut).words[(this||ut).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||ut).negative!==0?(this||ut).length===1&&((this||ut).words[0]|0)<t?((this||ut).words[0]=t-((this||ut).words[0]|0),(this||ut).negative=0,this||ut):((this||ut).negative=0,this.isubn(t),(this||ut).negative=1,this||ut):this._iaddn(t)},n.prototype._iaddn=function(t){(this||ut).words[0]+=t;for(var r=0;r<(this||ut).length&&(this||ut).words[r]>=67108864;r++)(this||ut).words[r]-=67108864,r===(this||ut).length-1?(this||ut).words[r+1]=1:(this||ut).words[r+1]++;return(this||ut).length=Math.max((this||ut).length,r+1),this||ut},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||ut).negative!==0)return(this||ut).negative=0,this.iaddn(t),(this||ut).negative=1,this||ut;if((this||ut).words[0]-=t,(this||ut).length===1&&(this||ut).words[0]<0)(this||ut).words[0]=-(this||ut).words[0],(this||ut).negative=1;else for(var r=0;r<(this||ut).length&&(this||ut).words[r]<0;r++)(this||ut).words[r]+=67108864,(this||ut).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||ut).negative=0,this||ut},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||ut).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||ut).words[f+o]=v&67108863}for(;f<(this||ut).length-o;f++)v=((this||ut).words[f+o]|0)+w,w=v>>26,(this||ut).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||ut).length;f++)v=-((this||ut).words[f]|0)+w,w=v>>26,(this||ut).words[f]=v&67108863;return(this||ut).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||ut).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||ut).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||ut).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||ut).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||ut).length||this.cmp(t)<0?{div:new n(0),mod:this||ut}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||ut).length-1;h>=0;h--)o=(r*o+((this||ut).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||ut).length-1;o>=0;o--){var h=((this||ut).words[o]|0)+r*67108864;(this||ut).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||ut,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||ut,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||ut).words[0]&1)===0},n.prototype.isOdd=function(){return((this||ut).words[0]&1)===1},n.prototype.andln=function(t){return(this||ut).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||ut).length<=o)return this._expand(o+1),(this||ut).words[o]|=h,this||ut;for(var f=h,v=o;f!==0&&v<(this||ut).length;v++){var w=(this||ut).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||ut).words[v]=w}return f!==0&&((this||ut).words[v]=f,(this||ut).length++),this||ut},n.prototype.isZero=function(){return(this||ut).length===1&&(this||ut).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||ut).negative!==0&&!r)return-1;if((this||ut).negative===0&&r)return 1;this.strip();var o;if((this||ut).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||ut).words[0]|0;o=h===t?0:h<t?-1:1}return(this||ut).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||ut).negative!==0&&t.negative===0)return-1;if((this||ut).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||ut).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||ut).length>t.length)return 1;if((this||ut).length<t.length)return-1;for(var r=0,o=(this||ut).length-1;o>=0;o--){var h=(this||ut).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||ut).red,"Already a number in reduction context"),a((this||ut).negative===0,"red works only with positives"),t.convertTo(this||ut)._forceRed(t)},n.prototype.fromRed=function(){return a((this||ut).red,"fromRed works only with numbers in reduction context"),(this||ut).red.convertFrom(this||ut)},n.prototype._forceRed=function(t){return(this||ut).red=t,this||ut},n.prototype.forceRed=function(t){return a(!(this||ut).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||ut).red,"redAdd works only with red numbers"),(this||ut).red.add(this||ut,t)},n.prototype.redIAdd=function(t){return a((this||ut).red,"redIAdd works only with red numbers"),(this||ut).red.iadd(this||ut,t)},n.prototype.redSub=function(t){return a((this||ut).red,"redSub works only with red numbers"),(this||ut).red.sub(this||ut,t)},n.prototype.redISub=function(t){return a((this||ut).red,"redISub works only with red numbers"),(this||ut).red.isub(this||ut,t)},n.prototype.redShl=function(t){return a((this||ut).red,"redShl works only with red numbers"),(this||ut).red.shl(this||ut,t)},n.prototype.redMul=function(t){return a((this||ut).red,"redMul works only with red numbers"),(this||ut).red._verify2(this||ut,t),(this||ut).red.mul(this||ut,t)},n.prototype.redIMul=function(t){return a((this||ut).red,"redMul works only with red numbers"),(this||ut).red._verify2(this||ut,t),(this||ut).red.imul(this||ut,t)},n.prototype.redSqr=function(){return a((this||ut).red,"redSqr works only with red numbers"),(this||ut).red._verify1(this||ut),(this||ut).red.sqr(this||ut)},n.prototype.redISqr=function(){return a((this||ut).red,"redISqr works only with red numbers"),(this||ut).red._verify1(this||ut),(this||ut).red.isqr(this||ut)},n.prototype.redSqrt=function(){return a((this||ut).red,"redSqrt works only with red numbers"),(this||ut).red._verify1(this||ut),(this||ut).red.sqrt(this||ut)},n.prototype.redInvm=function(){return a((this||ut).red,"redInvm works only with red numbers"),(this||ut).red._verify1(this||ut),(this||ut).red.invm(this||ut)},n.prototype.redNeg=function(){return a((this||ut).red,"redNeg works only with red numbers"),(this||ut).red._verify1(this||ut),(this||ut).red.neg(this||ut)},n.prototype.redPow=function(t){return a((this||ut).red&&!t.red,"redPow(normalNum)"),(this||ut).red._verify1(this||ut),(this||ut).red.pow(this||ut,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||ut).name=d,(this||ut).p=new n(t,16),(this||ut).n=(this||ut).p.bitLength(),(this||ut).k=new n(1).iushln((this||ut).n).isub((this||ut).p),(this||ut).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||ut).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||ut).tmp),r=this.imulK(r),r=r.iadd((this||ut).tmp),o=r.bitLength();while(o>(this||ut).n);var h=o<(this||ut).n?-1:r.ucmp((this||ut).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||ut).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||ut).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||ut).k)};function G(){P.call(this||ut,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||ut,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||ut,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||ut,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||ut).m=t.p,(this||ut).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||ut).m=d,(this||ut).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||ut).prime?(this||ut).prime.ireduce(t)._forceRed(this||ut):t.umod((this||ut).m)._forceRed(this||ut)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||ut).m.sub(t)._forceRed(this||ut)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||ut).m)>=0&&o.isub((this||ut).m),o._forceRed(this||ut)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||ut).m)>=0&&o.isub((this||ut).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||ut).m),o._forceRed(this||ut)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||ut).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||ut).m.andln(3);if(a(r%2===1),r===3){var o=(this||ut).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||ut).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||ut),w=v.redNeg(),l=(this||ut).m.subn(1).iushrn(1),e=(this||ut).m.bitLength();for(e=new n(2*e*e).toRed(this||ut);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||ut).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||ut);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||ut),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||ut).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||ut,d),(this||ut).shift=(this||ut).m.bitLength(),(this||ut).shift%26!==0&&((this||ut).shift+=26-(this||ut).shift%26),(this||ut).r=new n(1).iushln((this||ut).shift),(this||ut).r2=this.imod((this||ut).r.sqr()),(this||ut).rinv=(this||ut).r._invmp((this||ut).m),(this||ut).minv=(this||ut).rinv.mul((this||ut).r).isubn(1).div((this||ut).m),(this||ut).minv=(this||ut).minv.umod((this||ut).r),(this||ut).minv=(this||ut).r.sub((this||ut).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||ut).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||ut).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||ut).shift).mul((this||ut).minv).imaskn((this||ut).shift).mul((this||ut).m),f=o.isub(h).iushrn((this||ut).shift),v=f;return f.cmp((this||ut).m)>=0?v=f.isub((this||ut).m):f.cmpn(0)<0&&(v=f.iadd((this||ut).m)),v._forceRed(this||ut)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||ut);var o=t.mul(r),h=o.maskn((this||ut).shift).mul((this||ut).minv).imaskn((this||ut).shift).mul((this||ut).m),f=o.isub(h).iushrn((this||ut).shift),v=f;return f.cmp((this||ut).m)>=0?v=f.isub((this||ut).m):f.cmpn(0)<0&&(v=f.iadd((this||ut).m)),v._forceRed(this||ut)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||ut).m).mul((this||ut).r2));return r._forceRed(this||ut)}}(_g,Nk)),_g.exports}var Sg={},FS=!1,ti=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function KU(){if(FS)return Sg;FS=!0;var i=Tr.Buffer,s=Wb(),a=HU();Sg=function(y){return new n(y)};var u={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};u.p224=u.secp224r1,u.p256=u.secp256r1=u.prime256v1,u.p192=u.secp192r1=u.prime192v1,u.p384=u.secp384r1,u.p521=u.secp521r1;function n(m){(this||ti).curveType=u[m],(this||ti).curveType||((this||ti).curveType={name:m}),(this||ti).curve=new s.ec((this||ti).curveType.name),(this||ti).keys=void 0}n.prototype.generateKeys=function(m,y){return(this||ti).keys=(this||ti).curve.genKeyPair(),this.getPublicKey(m,y)},n.prototype.computeSecret=function(m,y,M){y=y||"utf8",i.isBuffer(m)||(m=new i(m,y));var b=(this||ti).curve.keyFromPublic(m).getPublic(),g=b.mul((this||ti).keys.getPrivate()).getX();return p(g,M,(this||ti).curveType.byteLength)},n.prototype.getPublicKey=function(m,y){var M=(this||ti).keys.getPublic(y==="compressed",!0);return y==="hybrid"&&(M[M.length-1]%2?M[0]=7:M[0]=6),p(M,m)},n.prototype.getPrivateKey=function(m){return p((this||ti).keys.getPrivate(),m)},n.prototype.setPublicKey=function(m,y){return y=y||"utf8",i.isBuffer(m)||(m=new i(m,y)),(this||ti).keys._importPublic(m),this||ti},n.prototype.setPrivateKey=function(m,y){y=y||"utf8",i.isBuffer(m)||(m=new i(m,y));var M=new a(m);return M=M.toString(16),(this||ti).keys=(this||ti).curve.genKeyPair(),(this||ti).keys._importPrivate(M),this||ti};function p(m,y,M){Array.isArray(m)||(m=m.toArray());var b=new i(m);if(M&&b.length<M){var g=new i(M-b.length);g.fill(0),b=i.concat([g,b])}return y?b.toString(y):b}return Sg}var xg={},jS=!1;function qk(){if(jS)return xg;jS=!0;var i=su(),s=ar().Buffer;xg=function(u,n){for(var p=s.alloc(0),m=0,y;p.length<n;)y=a(m++),p=s.concat([p,i("sha1").update(u).update(y).digest()]);return p.slice(0,n)};function a(u){var n=s.allocUnsafe(4);return n.writeUInt32BE(u,0),n}return xg}var Eg={},HS=!1;function zk(){return HS||(HS=!0,Eg=function(s,a){for(var u=s.length,n=-1;++n<u;)s[n]^=a[n];return s}),Eg}var Uk={},KS=!1,Ag={exports:Uk},lt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function t6(){return KS||(KS=!0,function(i,s){function a(d,t){if(!d)throw new Error(t||"Assertion failed")}function u(d,t){d.super_=t;var r=function(){};r.prototype=t.prototype,d.prototype=new r,d.prototype.constructor=d}function n(d,t,r){if(n.isBN(d))return d;(this||lt).negative=0,(this||lt).words=null,(this||lt).length=0,(this||lt).red=null,d!==null&&((t==="le"||t==="be")&&(r=t,t=10),this._init(d||0,t||10,r||"be"))}typeof i=="object"?i.exports=n:s.BN=n,n.BN=n,n.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=Tr.Buffer}catch{}n.isBN=function(t){return t instanceof n?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===n.wordSize&&Array.isArray(t.words)},n.max=function(t,r){return t.cmp(r)>0?t:r},n.min=function(t,r){return t.cmp(r)<0?t:r},n.prototype._init=function(t,r,o){if(typeof t=="number")return this._initNumber(t,r,o);if(typeof t=="object")return this._initArray(t,r,o);r==="hex"&&(r=16),a(r===(r|0)&&r>=2&&r<=36),t=t.toString().replace(/\s+/g,"");var h=0;t[0]==="-"&&(h++,(this||lt).negative=1),h<t.length&&(r===16?this._parseHex(t,h,o):(this._parseBase(t,r,h),o==="le"&&this._initArray(this.toArray(),r,o)))},n.prototype._initNumber=function(t,r,o){t<0&&((this||lt).negative=1,t=-t),t<67108864?((this||lt).words=[t&67108863],(this||lt).length=1):t<4503599627370496?((this||lt).words=[t&67108863,t/67108864&67108863],(this||lt).length=2):(a(t<9007199254740992),(this||lt).words=[t&67108863,t/67108864&67108863,1],(this||lt).length=3),o==="le"&&this._initArray(this.toArray(),r,o)},n.prototype._initArray=function(t,r,o){if(a(typeof t.length=="number"),t.length<=0)return(this||lt).words=[0],(this||lt).length=1,this||lt;(this||lt).length=Math.ceil(t.length/3),(this||lt).words=new Array((this||lt).length);for(var h=0;h<(this||lt).length;h++)(this||lt).words[h]=0;var f,v,w=0;if(o==="be")for(h=t.length-1,f=0;h>=0;h-=3)v=t[h]|t[h-1]<<8|t[h-2]<<16,(this||lt).words[f]|=v<<w&67108863,(this||lt).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);else if(o==="le")for(h=0,f=0;h<t.length;h+=3)v=t[h]|t[h+1]<<8|t[h+2]<<16,(this||lt).words[f]|=v<<w&67108863,(this||lt).words[f+1]=v>>>26-w&67108863,w+=24,w>=26&&(w-=26,f++);return this.strip()};function m(d,t){var r=d.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function y(d,t,r){var o=m(d,r);return r-1>=t&&(o|=m(d,r-1)<<4),o}n.prototype._parseHex=function(t,r,o){(this||lt).length=Math.ceil((t.length-r)/6),(this||lt).words=new Array((this||lt).length);for(var h=0;h<(this||lt).length;h++)(this||lt).words[h]=0;var f=0,v=0,w;if(o==="be")for(h=t.length-1;h>=r;h-=2)w=y(t,r,h)<<f,(this||lt).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||lt).words[v]|=w>>>26):f+=8;else{var l=t.length-r;for(h=l%2===0?r+1:r;h<t.length;h+=2)w=y(t,r,h)<<f,(this||lt).words[v]|=w&67108863,f>=18?(f-=18,v+=1,(this||lt).words[v]|=w>>>26):f+=8}this.strip()};function M(d,t,r,o){for(var h=0,f=Math.min(d.length,r),v=t;v<f;v++){var w=d.charCodeAt(v)-48;h*=o,w>=49?h+=w-49+10:w>=17?h+=w-17+10:h+=w}return h}n.prototype._parseBase=function(t,r,o){(this||lt).words=[0],(this||lt).length=1;for(var h=0,f=1;f<=67108863;f*=r)h++;h--,f=f/r|0;for(var v=t.length-o,w=v%h,l=Math.min(v,v-w)+o,e=0,c=o;c<l;c+=h)e=M(t,c,c+h,r),this.imuln(f),(this||lt).words[0]+e<67108864?(this||lt).words[0]+=e:this._iaddn(e);if(w!==0){var A=1;for(e=M(t,c,t.length,r),c=0;c<w;c++)A*=r;this.imuln(A),(this||lt).words[0]+e<67108864?(this||lt).words[0]+=e:this._iaddn(e)}this.strip()},n.prototype.copy=function(t){t.words=new Array((this||lt).length);for(var r=0;r<(this||lt).length;r++)t.words[r]=(this||lt).words[r];t.length=(this||lt).length,t.negative=(this||lt).negative,t.red=(this||lt).red},n.prototype.clone=function(){var t=new n(null);return this.copy(t),t},n.prototype._expand=function(t){for(;(this||lt).length<t;)(this||lt).words[(this||lt).length++]=0;return this||lt},n.prototype.strip=function(){for(;(this||lt).length>1&&(this||lt).words[(this||lt).length-1]===0;)(this||lt).length--;return this._normSign()},n.prototype._normSign=function(){return(this||lt).length===1&&(this||lt).words[0]===0&&((this||lt).negative=0),this||lt},n.prototype.inspect=function(){return((this||lt).red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(t,r){t=t||10,r=r|0||1;var o;if(t===16||t==="hex"){o="";for(var h=0,f=0,v=0;v<(this||lt).length;v++){var w=(this||lt).words[v],l=((w<<h|f)&16777215).toString(16);f=w>>>24-h&16777215,f!==0||v!==(this||lt).length-1?o=b[6-l.length]+l+o:o=l+o,h+=2,h>=26&&(h-=26,v--)}for(f!==0&&(o=f.toString(16)+o);o.length%r!==0;)o="0"+o;return(this||lt).negative!==0&&(o="-"+o),o}if(t===(t|0)&&t>=2&&t<=36){var e=g[t],c=S[t];o="";var A=this.clone();for(A.negative=0;!A.isZero();){var R=A.modn(c).toString(t);A=A.idivn(c),A.isZero()?o=R+o:o=b[e-R.length]+R+o}for(this.isZero()&&(o="0"+o);o.length%r!==0;)o="0"+o;return(this||lt).negative!==0&&(o="-"+o),o}a(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var t=(this||lt).words[0];return(this||lt).length===2?t+=(this||lt).words[1]*67108864:(this||lt).length===3&&(this||lt).words[2]===1?t+=4503599627370496+(this||lt).words[1]*67108864:(this||lt).length>2&&a(!1,"Number can only safely store up to 53 bits"),(this||lt).negative!==0?-t:t},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(t,r){return a(typeof p<"u"),this.toArrayLike(p,t,r)},n.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},n.prototype.toArrayLike=function(t,r,o){var h=this.byteLength(),f=o||Math.max(1,h);a(h<=f,"byte array longer than desired length"),a(f>0,"Requested array length <= 0"),this.strip();var v=r==="le",w=new t(f),l,e,c=this.clone();if(v){for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[e]=l;for(;e<f;e++)w[e]=0}else{for(e=0;e<f-h;e++)w[e]=0;for(e=0;!c.isZero();e++)l=c.andln(255),c.iushrn(8),w[f-e-1]=l}return w},Math.clz32?n.prototype._countBits=function(t){return 32-Math.clz32(t)}:n.prototype._countBits=function(t){var r=t,o=0;return r>=4096&&(o+=13,r>>>=13),r>=64&&(o+=7,r>>>=7),r>=8&&(o+=4,r>>>=4),r>=2&&(o+=2,r>>>=2),o+r},n.prototype._zeroBits=function(t){if(t===0)return 26;var r=t,o=0;return r&8191||(o+=13,r>>>=13),r&127||(o+=7,r>>>=7),r&15||(o+=4,r>>>=4),r&3||(o+=2,r>>>=2),r&1||o++,o},n.prototype.bitLength=function(){var t=(this||lt).words[(this||lt).length-1],r=this._countBits(t);return((this||lt).length-1)*26+r};function _(d){for(var t=new Array(d.bitLength()),r=0;r<t.length;r++){var o=r/26|0,h=r%26;t[r]=(d.words[o]&1<<h)>>>h}return t}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<(this||lt).length;r++){var o=this._zeroBits((this||lt).words[r]);if(t+=o,o!==26)break}return t},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(t){return(this||lt).negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},n.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return(this||lt).negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||((this||lt).negative^=1),this||lt},n.prototype.iuor=function(t){for(;(this||lt).length<t.length;)(this||lt).words[(this||lt).length++]=0;for(var r=0;r<t.length;r++)(this||lt).words[r]=(this||lt).words[r]|t.words[r];return this.strip()},n.prototype.ior=function(t){return a(((this||lt).negative|t.negative)===0),this.iuor(t)},n.prototype.or=function(t){return(this||lt).length>t.length?this.clone().ior(t):t.clone().ior(this||lt)},n.prototype.uor=function(t){return(this||lt).length>t.length?this.clone().iuor(t):t.clone().iuor(this||lt)},n.prototype.iuand=function(t){var r;(this||lt).length>t.length?r=t:r=this||lt;for(var o=0;o<r.length;o++)(this||lt).words[o]=(this||lt).words[o]&t.words[o];return(this||lt).length=r.length,this.strip()},n.prototype.iand=function(t){return a(((this||lt).negative|t.negative)===0),this.iuand(t)},n.prototype.and=function(t){return(this||lt).length>t.length?this.clone().iand(t):t.clone().iand(this||lt)},n.prototype.uand=function(t){return(this||lt).length>t.length?this.clone().iuand(t):t.clone().iuand(this||lt)},n.prototype.iuxor=function(t){var r,o;(this||lt).length>t.length?(r=this||lt,o=t):(r=t,o=this||lt);for(var h=0;h<o.length;h++)(this||lt).words[h]=r.words[h]^o.words[h];if((this||lt)!==r)for(;h<r.length;h++)(this||lt).words[h]=r.words[h];return(this||lt).length=r.length,this.strip()},n.prototype.ixor=function(t){return a(((this||lt).negative|t.negative)===0),this.iuxor(t)},n.prototype.xor=function(t){return(this||lt).length>t.length?this.clone().ixor(t):t.clone().ixor(this||lt)},n.prototype.uxor=function(t){return(this||lt).length>t.length?this.clone().iuxor(t):t.clone().iuxor(this||lt)},n.prototype.inotn=function(t){a(typeof t=="number"&&t>=0);var r=Math.ceil(t/26)|0,o=t%26;this._expand(r),o>0&&r--;for(var h=0;h<r;h++)(this||lt).words[h]=~(this||lt).words[h]&67108863;return o>0&&((this||lt).words[h]=~(this||lt).words[h]&67108863>>26-o),this.strip()},n.prototype.notn=function(t){return this.clone().inotn(t)},n.prototype.setn=function(t,r){a(typeof t=="number"&&t>=0);var o=t/26|0,h=t%26;return this._expand(o+1),r?(this||lt).words[o]=(this||lt).words[o]|1<<h:(this||lt).words[o]=(this||lt).words[o]&~(1<<h),this.strip()},n.prototype.iadd=function(t){var r;if((this||lt).negative!==0&&t.negative===0)return(this||lt).negative=0,r=this.isub(t),(this||lt).negative^=1,this._normSign();if((this||lt).negative===0&&t.negative!==0)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();var o,h;(this||lt).length>t.length?(o=this||lt,h=t):(o=t,h=this||lt);for(var f=0,v=0;v<h.length;v++)r=(o.words[v]|0)+(h.words[v]|0)+f,(this||lt).words[v]=r&67108863,f=r>>>26;for(;f!==0&&v<o.length;v++)r=(o.words[v]|0)+f,(this||lt).words[v]=r&67108863,f=r>>>26;if((this||lt).length=o.length,f!==0)(this||lt).words[(this||lt).length]=f,(this||lt).length++;else if(o!==(this||lt))for(;v<o.length;v++)(this||lt).words[v]=o.words[v];return this||lt},n.prototype.add=function(t){var r;return t.negative!==0&&(this||lt).negative===0?(t.negative=0,r=this.sub(t),t.negative^=1,r):t.negative===0&&(this||lt).negative!==0?((this||lt).negative=0,r=t.sub(this||lt),(this||lt).negative=1,r):(this||lt).length>t.length?this.clone().iadd(t):t.clone().iadd(this||lt)},n.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}else if((this||lt).negative!==0)return(this||lt).negative=0,this.iadd(t),(this||lt).negative=1,this._normSign();var o=this.cmp(t);if(o===0)return(this||lt).negative=0,(this||lt).length=1,(this||lt).words[0]=0,this||lt;var h,f;o>0?(h=this||lt,f=t):(h=t,f=this||lt);for(var v=0,w=0;w<f.length;w++)r=(h.words[w]|0)-(f.words[w]|0)+v,v=r>>26,(this||lt).words[w]=r&67108863;for(;v!==0&&w<h.length;w++)r=(h.words[w]|0)+v,v=r>>26,(this||lt).words[w]=r&67108863;if(v===0&&w<h.length&&h!==(this||lt))for(;w<h.length;w++)(this||lt).words[w]=h.words[w];return(this||lt).length=Math.max((this||lt).length,w),h!==(this||lt)&&((this||lt).negative=1),this.strip()},n.prototype.sub=function(t){return this.clone().isub(t)};function x(d,t,r){r.negative=t.negative^d.negative;var o=d.length+t.length|0;r.length=o,o=o-1|0;var h=d.words[0]|0,f=t.words[0]|0,v=h*f,w=v&67108863,l=v/67108864|0;r.words[0]=w;for(var e=1;e<o;e++){for(var c=l>>>26,A=l&67108863,R=Math.min(e,t.length-1),$=Math.max(0,e-d.length+1);$<=R;$++){var L=e-$|0;h=d.words[L]|0,f=t.words[$]|0,v=h*f+A,c+=v/67108864|0,A=v&67108863}r.words[e]=A|0,l=c|0}return l!==0?r.words[e]=l|0:r.length--,r.strip()}var E=function(t,r,o){var h=t.words,f=r.words,v=o.words,w=0,l,e,c,A=h[0]|0,R=A&8191,$=A>>>13,L=h[1]|0,j=L&8191,pt=L>>>13,W=h[2]|0,N=W&8191,X=W>>>13,jt=h[3]|0,gt=jt&8191,q=jt>>>13,K=h[4]|0,J=K&8191,bt=K>>>13,Kt=h[5]|0,mt=Kt&8191,Mt=Kt>>>13,Wt=h[6]|0,wt=Wt&8191,Tt=Wt>>>13,Zt=h[7]|0,_t=Zt&8191,Pt=Zt>>>13,Jt=h[8]|0,F=Jt&8191,O=Jt>>>13,H=h[9]|0,Z=H&8191,dt=H>>>13,Ht=f[0]|0,vt=Ht&8191,$t=Ht>>>13,Vt=f[1]|0,yt=Vt&8191,Ct=Vt>>>13,Gt=f[2]|0,St=Gt&8191,Ot=Gt>>>13,Qt=f[3]|0,xt=Qt&8191,Nt=Qt>>>13,te=f[4]|0,Et=te&8191,qt=te>>>13,ee=f[5]|0,At=ee&8191,zt=ee>>>13,re=f[6]|0,kt=re&8191,Ut=re>>>13,ie=f[7]|0,Rt=ie&8191,Ft=ie>>>13,ne=f[8]|0,Bt=ne&8191,Dt=ne>>>13,ce=f[9]|0,It=ce&8191,Lt=ce>>>13;o.negative=t.negative^r.negative,o.length=19,l=Math.imul(R,vt),e=Math.imul(R,$t),e=e+Math.imul($,vt)|0,c=Math.imul($,$t);var ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ae>>>26)|0,ae&=67108863,l=Math.imul(j,vt),e=Math.imul(j,$t),e=e+Math.imul(pt,vt)|0,c=Math.imul(pt,$t),l=l+Math.imul(R,yt)|0,e=e+Math.imul(R,Ct)|0,e=e+Math.imul($,yt)|0,c=c+Math.imul($,Ct)|0;var se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(se>>>26)|0,se&=67108863,l=Math.imul(N,vt),e=Math.imul(N,$t),e=e+Math.imul(X,vt)|0,c=Math.imul(X,$t),l=l+Math.imul(j,yt)|0,e=e+Math.imul(j,Ct)|0,e=e+Math.imul(pt,yt)|0,c=c+Math.imul(pt,Ct)|0,l=l+Math.imul(R,St)|0,e=e+Math.imul(R,Ot)|0,e=e+Math.imul($,St)|0,c=c+Math.imul($,Ot)|0;var me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(me>>>26)|0,me&=67108863,l=Math.imul(gt,vt),e=Math.imul(gt,$t),e=e+Math.imul(q,vt)|0,c=Math.imul(q,$t),l=l+Math.imul(N,yt)|0,e=e+Math.imul(N,Ct)|0,e=e+Math.imul(X,yt)|0,c=c+Math.imul(X,Ct)|0,l=l+Math.imul(j,St)|0,e=e+Math.imul(j,Ot)|0,e=e+Math.imul(pt,St)|0,c=c+Math.imul(pt,Ot)|0,l=l+Math.imul(R,xt)|0,e=e+Math.imul(R,Nt)|0,e=e+Math.imul($,xt)|0,c=c+Math.imul($,Nt)|0;var ve=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ve>>>26)|0,ve&=67108863,l=Math.imul(J,vt),e=Math.imul(J,$t),e=e+Math.imul(bt,vt)|0,c=Math.imul(bt,$t),l=l+Math.imul(gt,yt)|0,e=e+Math.imul(gt,Ct)|0,e=e+Math.imul(q,yt)|0,c=c+Math.imul(q,Ct)|0,l=l+Math.imul(N,St)|0,e=e+Math.imul(N,Ot)|0,e=e+Math.imul(X,St)|0,c=c+Math.imul(X,Ot)|0,l=l+Math.imul(j,xt)|0,e=e+Math.imul(j,Nt)|0,e=e+Math.imul(pt,xt)|0,c=c+Math.imul(pt,Nt)|0,l=l+Math.imul(R,Et)|0,e=e+Math.imul(R,qt)|0,e=e+Math.imul($,Et)|0,c=c+Math.imul($,qt)|0;var ge=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ge>>>26)|0,ge&=67108863,l=Math.imul(mt,vt),e=Math.imul(mt,$t),e=e+Math.imul(Mt,vt)|0,c=Math.imul(Mt,$t),l=l+Math.imul(J,yt)|0,e=e+Math.imul(J,Ct)|0,e=e+Math.imul(bt,yt)|0,c=c+Math.imul(bt,Ct)|0,l=l+Math.imul(gt,St)|0,e=e+Math.imul(gt,Ot)|0,e=e+Math.imul(q,St)|0,c=c+Math.imul(q,Ot)|0,l=l+Math.imul(N,xt)|0,e=e+Math.imul(N,Nt)|0,e=e+Math.imul(X,xt)|0,c=c+Math.imul(X,Nt)|0,l=l+Math.imul(j,Et)|0,e=e+Math.imul(j,qt)|0,e=e+Math.imul(pt,Et)|0,c=c+Math.imul(pt,qt)|0,l=l+Math.imul(R,At)|0,e=e+Math.imul(R,zt)|0,e=e+Math.imul($,At)|0,c=c+Math.imul($,zt)|0;var be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(be>>>26)|0,be&=67108863,l=Math.imul(wt,vt),e=Math.imul(wt,$t),e=e+Math.imul(Tt,vt)|0,c=Math.imul(Tt,$t),l=l+Math.imul(mt,yt)|0,e=e+Math.imul(mt,Ct)|0,e=e+Math.imul(Mt,yt)|0,c=c+Math.imul(Mt,Ct)|0,l=l+Math.imul(J,St)|0,e=e+Math.imul(J,Ot)|0,e=e+Math.imul(bt,St)|0,c=c+Math.imul(bt,Ot)|0,l=l+Math.imul(gt,xt)|0,e=e+Math.imul(gt,Nt)|0,e=e+Math.imul(q,xt)|0,c=c+Math.imul(q,Nt)|0,l=l+Math.imul(N,Et)|0,e=e+Math.imul(N,qt)|0,e=e+Math.imul(X,Et)|0,c=c+Math.imul(X,qt)|0,l=l+Math.imul(j,At)|0,e=e+Math.imul(j,zt)|0,e=e+Math.imul(pt,At)|0,c=c+Math.imul(pt,zt)|0,l=l+Math.imul(R,kt)|0,e=e+Math.imul(R,Ut)|0,e=e+Math.imul($,kt)|0,c=c+Math.imul($,Ut)|0;var ye=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ye>>>26)|0,ye&=67108863,l=Math.imul(_t,vt),e=Math.imul(_t,$t),e=e+Math.imul(Pt,vt)|0,c=Math.imul(Pt,$t),l=l+Math.imul(wt,yt)|0,e=e+Math.imul(wt,Ct)|0,e=e+Math.imul(Tt,yt)|0,c=c+Math.imul(Tt,Ct)|0,l=l+Math.imul(mt,St)|0,e=e+Math.imul(mt,Ot)|0,e=e+Math.imul(Mt,St)|0,c=c+Math.imul(Mt,Ot)|0,l=l+Math.imul(J,xt)|0,e=e+Math.imul(J,Nt)|0,e=e+Math.imul(bt,xt)|0,c=c+Math.imul(bt,Nt)|0,l=l+Math.imul(gt,Et)|0,e=e+Math.imul(gt,qt)|0,e=e+Math.imul(q,Et)|0,c=c+Math.imul(q,qt)|0,l=l+Math.imul(N,At)|0,e=e+Math.imul(N,zt)|0,e=e+Math.imul(X,At)|0,c=c+Math.imul(X,zt)|0,l=l+Math.imul(j,kt)|0,e=e+Math.imul(j,Ut)|0,e=e+Math.imul(pt,kt)|0,c=c+Math.imul(pt,Ut)|0,l=l+Math.imul(R,Rt)|0,e=e+Math.imul(R,Ft)|0,e=e+Math.imul($,Rt)|0,c=c+Math.imul($,Ft)|0;var we=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(we>>>26)|0,we&=67108863,l=Math.imul(F,vt),e=Math.imul(F,$t),e=e+Math.imul(O,vt)|0,c=Math.imul(O,$t),l=l+Math.imul(_t,yt)|0,e=e+Math.imul(_t,Ct)|0,e=e+Math.imul(Pt,yt)|0,c=c+Math.imul(Pt,Ct)|0,l=l+Math.imul(wt,St)|0,e=e+Math.imul(wt,Ot)|0,e=e+Math.imul(Tt,St)|0,c=c+Math.imul(Tt,Ot)|0,l=l+Math.imul(mt,xt)|0,e=e+Math.imul(mt,Nt)|0,e=e+Math.imul(Mt,xt)|0,c=c+Math.imul(Mt,Nt)|0,l=l+Math.imul(J,Et)|0,e=e+Math.imul(J,qt)|0,e=e+Math.imul(bt,Et)|0,c=c+Math.imul(bt,qt)|0,l=l+Math.imul(gt,At)|0,e=e+Math.imul(gt,zt)|0,e=e+Math.imul(q,At)|0,c=c+Math.imul(q,zt)|0,l=l+Math.imul(N,kt)|0,e=e+Math.imul(N,Ut)|0,e=e+Math.imul(X,kt)|0,c=c+Math.imul(X,Ut)|0,l=l+Math.imul(j,Rt)|0,e=e+Math.imul(j,Ft)|0,e=e+Math.imul(pt,Rt)|0,c=c+Math.imul(pt,Ft)|0,l=l+Math.imul(R,Bt)|0,e=e+Math.imul(R,Dt)|0,e=e+Math.imul($,Bt)|0,c=c+Math.imul($,Dt)|0;var Me=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Me>>>26)|0,Me&=67108863,l=Math.imul(Z,vt),e=Math.imul(Z,$t),e=e+Math.imul(dt,vt)|0,c=Math.imul(dt,$t),l=l+Math.imul(F,yt)|0,e=e+Math.imul(F,Ct)|0,e=e+Math.imul(O,yt)|0,c=c+Math.imul(O,Ct)|0,l=l+Math.imul(_t,St)|0,e=e+Math.imul(_t,Ot)|0,e=e+Math.imul(Pt,St)|0,c=c+Math.imul(Pt,Ot)|0,l=l+Math.imul(wt,xt)|0,e=e+Math.imul(wt,Nt)|0,e=e+Math.imul(Tt,xt)|0,c=c+Math.imul(Tt,Nt)|0,l=l+Math.imul(mt,Et)|0,e=e+Math.imul(mt,qt)|0,e=e+Math.imul(Mt,Et)|0,c=c+Math.imul(Mt,qt)|0,l=l+Math.imul(J,At)|0,e=e+Math.imul(J,zt)|0,e=e+Math.imul(bt,At)|0,c=c+Math.imul(bt,zt)|0,l=l+Math.imul(gt,kt)|0,e=e+Math.imul(gt,Ut)|0,e=e+Math.imul(q,kt)|0,c=c+Math.imul(q,Ut)|0,l=l+Math.imul(N,Rt)|0,e=e+Math.imul(N,Ft)|0,e=e+Math.imul(X,Rt)|0,c=c+Math.imul(X,Ft)|0,l=l+Math.imul(j,Bt)|0,e=e+Math.imul(j,Dt)|0,e=e+Math.imul(pt,Bt)|0,c=c+Math.imul(pt,Dt)|0,l=l+Math.imul(R,It)|0,e=e+Math.imul(R,Lt)|0,e=e+Math.imul($,It)|0,c=c+Math.imul($,Lt)|0;var _e=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(_e>>>26)|0,_e&=67108863,l=Math.imul(Z,yt),e=Math.imul(Z,Ct),e=e+Math.imul(dt,yt)|0,c=Math.imul(dt,Ct),l=l+Math.imul(F,St)|0,e=e+Math.imul(F,Ot)|0,e=e+Math.imul(O,St)|0,c=c+Math.imul(O,Ot)|0,l=l+Math.imul(_t,xt)|0,e=e+Math.imul(_t,Nt)|0,e=e+Math.imul(Pt,xt)|0,c=c+Math.imul(Pt,Nt)|0,l=l+Math.imul(wt,Et)|0,e=e+Math.imul(wt,qt)|0,e=e+Math.imul(Tt,Et)|0,c=c+Math.imul(Tt,qt)|0,l=l+Math.imul(mt,At)|0,e=e+Math.imul(mt,zt)|0,e=e+Math.imul(Mt,At)|0,c=c+Math.imul(Mt,zt)|0,l=l+Math.imul(J,kt)|0,e=e+Math.imul(J,Ut)|0,e=e+Math.imul(bt,kt)|0,c=c+Math.imul(bt,Ut)|0,l=l+Math.imul(gt,Rt)|0,e=e+Math.imul(gt,Ft)|0,e=e+Math.imul(q,Rt)|0,c=c+Math.imul(q,Ft)|0,l=l+Math.imul(N,Bt)|0,e=e+Math.imul(N,Dt)|0,e=e+Math.imul(X,Bt)|0,c=c+Math.imul(X,Dt)|0,l=l+Math.imul(j,It)|0,e=e+Math.imul(j,Lt)|0,e=e+Math.imul(pt,It)|0,c=c+Math.imul(pt,Lt)|0;var Se=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Se>>>26)|0,Se&=67108863,l=Math.imul(Z,St),e=Math.imul(Z,Ot),e=e+Math.imul(dt,St)|0,c=Math.imul(dt,Ot),l=l+Math.imul(F,xt)|0,e=e+Math.imul(F,Nt)|0,e=e+Math.imul(O,xt)|0,c=c+Math.imul(O,Nt)|0,l=l+Math.imul(_t,Et)|0,e=e+Math.imul(_t,qt)|0,e=e+Math.imul(Pt,Et)|0,c=c+Math.imul(Pt,qt)|0,l=l+Math.imul(wt,At)|0,e=e+Math.imul(wt,zt)|0,e=e+Math.imul(Tt,At)|0,c=c+Math.imul(Tt,zt)|0,l=l+Math.imul(mt,kt)|0,e=e+Math.imul(mt,Ut)|0,e=e+Math.imul(Mt,kt)|0,c=c+Math.imul(Mt,Ut)|0,l=l+Math.imul(J,Rt)|0,e=e+Math.imul(J,Ft)|0,e=e+Math.imul(bt,Rt)|0,c=c+Math.imul(bt,Ft)|0,l=l+Math.imul(gt,Bt)|0,e=e+Math.imul(gt,Dt)|0,e=e+Math.imul(q,Bt)|0,c=c+Math.imul(q,Dt)|0,l=l+Math.imul(N,It)|0,e=e+Math.imul(N,Lt)|0,e=e+Math.imul(X,It)|0,c=c+Math.imul(X,Lt)|0;var xe=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(xe>>>26)|0,xe&=67108863,l=Math.imul(Z,xt),e=Math.imul(Z,Nt),e=e+Math.imul(dt,xt)|0,c=Math.imul(dt,Nt),l=l+Math.imul(F,Et)|0,e=e+Math.imul(F,qt)|0,e=e+Math.imul(O,Et)|0,c=c+Math.imul(O,qt)|0,l=l+Math.imul(_t,At)|0,e=e+Math.imul(_t,zt)|0,e=e+Math.imul(Pt,At)|0,c=c+Math.imul(Pt,zt)|0,l=l+Math.imul(wt,kt)|0,e=e+Math.imul(wt,Ut)|0,e=e+Math.imul(Tt,kt)|0,c=c+Math.imul(Tt,Ut)|0,l=l+Math.imul(mt,Rt)|0,e=e+Math.imul(mt,Ft)|0,e=e+Math.imul(Mt,Rt)|0,c=c+Math.imul(Mt,Ft)|0,l=l+Math.imul(J,Bt)|0,e=e+Math.imul(J,Dt)|0,e=e+Math.imul(bt,Bt)|0,c=c+Math.imul(bt,Dt)|0,l=l+Math.imul(gt,It)|0,e=e+Math.imul(gt,Lt)|0,e=e+Math.imul(q,It)|0,c=c+Math.imul(q,Lt)|0;var Ee=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l=Math.imul(Z,Et),e=Math.imul(Z,qt),e=e+Math.imul(dt,Et)|0,c=Math.imul(dt,qt),l=l+Math.imul(F,At)|0,e=e+Math.imul(F,zt)|0,e=e+Math.imul(O,At)|0,c=c+Math.imul(O,zt)|0,l=l+Math.imul(_t,kt)|0,e=e+Math.imul(_t,Ut)|0,e=e+Math.imul(Pt,kt)|0,c=c+Math.imul(Pt,Ut)|0,l=l+Math.imul(wt,Rt)|0,e=e+Math.imul(wt,Ft)|0,e=e+Math.imul(Tt,Rt)|0,c=c+Math.imul(Tt,Ft)|0,l=l+Math.imul(mt,Bt)|0,e=e+Math.imul(mt,Dt)|0,e=e+Math.imul(Mt,Bt)|0,c=c+Math.imul(Mt,Dt)|0,l=l+Math.imul(J,It)|0,e=e+Math.imul(J,Lt)|0,e=e+Math.imul(bt,It)|0,c=c+Math.imul(bt,Lt)|0;var Ae=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l=Math.imul(Z,At),e=Math.imul(Z,zt),e=e+Math.imul(dt,At)|0,c=Math.imul(dt,zt),l=l+Math.imul(F,kt)|0,e=e+Math.imul(F,Ut)|0,e=e+Math.imul(O,kt)|0,c=c+Math.imul(O,Ut)|0,l=l+Math.imul(_t,Rt)|0,e=e+Math.imul(_t,Ft)|0,e=e+Math.imul(Pt,Rt)|0,c=c+Math.imul(Pt,Ft)|0,l=l+Math.imul(wt,Bt)|0,e=e+Math.imul(wt,Dt)|0,e=e+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Dt)|0,l=l+Math.imul(mt,It)|0,e=e+Math.imul(mt,Lt)|0,e=e+Math.imul(Mt,It)|0,c=c+Math.imul(Mt,Lt)|0;var ke=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(ke>>>26)|0,ke&=67108863,l=Math.imul(Z,kt),e=Math.imul(Z,Ut),e=e+Math.imul(dt,kt)|0,c=Math.imul(dt,Ut),l=l+Math.imul(F,Rt)|0,e=e+Math.imul(F,Ft)|0,e=e+Math.imul(O,Rt)|0,c=c+Math.imul(O,Ft)|0,l=l+Math.imul(_t,Bt)|0,e=e+Math.imul(_t,Dt)|0,e=e+Math.imul(Pt,Bt)|0,c=c+Math.imul(Pt,Dt)|0,l=l+Math.imul(wt,It)|0,e=e+Math.imul(wt,Lt)|0,e=e+Math.imul(Tt,It)|0,c=c+Math.imul(Tt,Lt)|0;var Re=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Re>>>26)|0,Re&=67108863,l=Math.imul(Z,Rt),e=Math.imul(Z,Ft),e=e+Math.imul(dt,Rt)|0,c=Math.imul(dt,Ft),l=l+Math.imul(F,Bt)|0,e=e+Math.imul(F,Dt)|0,e=e+Math.imul(O,Bt)|0,c=c+Math.imul(O,Dt)|0,l=l+Math.imul(_t,It)|0,e=e+Math.imul(_t,Lt)|0,e=e+Math.imul(Pt,It)|0,c=c+Math.imul(Pt,Lt)|0;var Be=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Be>>>26)|0,Be&=67108863,l=Math.imul(Z,Bt),e=Math.imul(Z,Dt),e=e+Math.imul(dt,Bt)|0,c=Math.imul(dt,Dt),l=l+Math.imul(F,It)|0,e=e+Math.imul(F,Lt)|0,e=e+Math.imul(O,It)|0,c=c+Math.imul(O,Lt)|0;var Te=(w+l|0)+((e&8191)<<13)|0;w=(c+(e>>>13)|0)+(Te>>>26)|0,Te&=67108863,l=Math.imul(Z,It),e=Math.imul(Z,Lt),e=e+Math.imul(dt,It)|0,c=Math.imul(dt,Lt);var $e=(w+l|0)+((e&8191)<<13)|0;return w=(c+(e>>>13)|0)+($e>>>26)|0,$e&=67108863,v[0]=ae,v[1]=se,v[2]=me,v[3]=ve,v[4]=ge,v[5]=be,v[6]=ye,v[7]=we,v[8]=Me,v[9]=_e,v[10]=Se,v[11]=xe,v[12]=Ee,v[13]=Ae,v[14]=ke,v[15]=Re,v[16]=Be,v[17]=Te,v[18]=$e,w!==0&&(v[19]=w,o.length++),o};Math.imul||(E=x);function k(d,t,r){r.negative=t.negative^d.negative,r.length=d.length+t.length;for(var o=0,h=0,f=0;f<r.length-1;f++){var v=h;h=0;for(var w=o&67108863,l=Math.min(f,t.length-1),e=Math.max(0,f-d.length+1);e<=l;e++){var c=f-e,A=d.words[c]|0,R=t.words[e]|0,$=A*R,L=$&67108863;v=v+($/67108864|0)|0,L=L+w|0,w=L&67108863,v=v+(L>>>26)|0,h+=v>>>26,v&=67108863}r.words[f]=w,o=v,v=h}return o!==0?r.words[f]=o:r.length--,r.strip()}function B(d,t,r){var o=new T;return o.mulp(d,t,r)}n.prototype.mulTo=function(t,r){var o,h=(this||lt).length+t.length;return(this||lt).length===10&&t.length===10?o=E(this||lt,t,r):h<63?o=x(this||lt,t,r):h<1024?o=k(this||lt,t,r):o=B(this||lt,t,r),o};function T(d,t){(this||lt).x=d,(this||lt).y=t}T.prototype.makeRBT=function(t){for(var r=new Array(t),o=n.prototype._countBits(t)-1,h=0;h<t;h++)r[h]=this.revBin(h,o,t);return r},T.prototype.revBin=function(t,r,o){if(t===0||t===o-1)return t;for(var h=0,f=0;f<r;f++)h|=(t&1)<<r-f-1,t>>=1;return h},T.prototype.permute=function(t,r,o,h,f,v){for(var w=0;w<v;w++)h[w]=r[t[w]],f[w]=o[t[w]]},T.prototype.transform=function(t,r,o,h,f,v){this.permute(v,t,r,o,h,f);for(var w=1;w<f;w<<=1)for(var l=w<<1,e=Math.cos(2*Math.PI/l),c=Math.sin(2*Math.PI/l),A=0;A<f;A+=l)for(var R=e,$=c,L=0;L<w;L++){var j=o[A+L],pt=h[A+L],W=o[A+L+w],N=h[A+L+w],X=R*W-$*N;N=R*N+$*W,W=X,o[A+L]=j+W,h[A+L]=pt+N,o[A+L+w]=j-W,h[A+L+w]=pt-N,L!==l&&(X=e*R-c*$,$=e*$+c*R,R=X)}},T.prototype.guessLen13b=function(t,r){var o=Math.max(r,t)|1,h=o&1,f=0;for(o=o/2|0;o;o=o>>>1)f++;return 1<<f+1+h},T.prototype.conjugate=function(t,r,o){if(!(o<=1))for(var h=0;h<o/2;h++){var f=t[h];t[h]=t[o-h-1],t[o-h-1]=f,f=r[h],r[h]=-r[o-h-1],r[o-h-1]=-f}},T.prototype.normalize13b=function(t,r){for(var o=0,h=0;h<r/2;h++){var f=Math.round(t[2*h+1]/r)*8192+Math.round(t[2*h]/r)+o;t[h]=f&67108863,f<67108864?o=0:o=f/67108864|0}return t},T.prototype.convert13b=function(t,r,o,h){for(var f=0,v=0;v<r;v++)f=f+(t[v]|0),o[2*v]=f&8191,f=f>>>13,o[2*v+1]=f&8191,f=f>>>13;for(v=2*r;v<h;++v)o[v]=0;a(f===0),a((f&-8192)===0)},T.prototype.stub=function(t){for(var r=new Array(t),o=0;o<t;o++)r[o]=0;return r},T.prototype.mulp=function(t,r,o){var h=2*this.guessLen13b(t.length,r.length),f=this.makeRBT(h),v=this.stub(h),w=new Array(h),l=new Array(h),e=new Array(h),c=new Array(h),A=new Array(h),R=new Array(h),$=o.words;$.length=h,this.convert13b(t.words,t.length,w,h),this.convert13b(r.words,r.length,c,h),this.transform(w,v,l,e,h,f),this.transform(c,v,A,R,h,f);for(var L=0;L<h;L++){var j=l[L]*A[L]-e[L]*R[L];e[L]=l[L]*R[L]+e[L]*A[L],l[L]=j}return this.conjugate(l,e,h),this.transform(l,e,$,v,h,f),this.conjugate($,v,h),this.normalize13b($,h),o.negative=t.negative^r.negative,o.length=t.length+r.length,o.strip()},n.prototype.mul=function(t){var r=new n(null);return r.words=new Array((this||lt).length+t.length),this.mulTo(t,r)},n.prototype.mulf=function(t){var r=new n(null);return r.words=new Array((this||lt).length+t.length),B(this||lt,t,r)},n.prototype.imul=function(t){return this.clone().mulTo(t,this||lt)},n.prototype.imuln=function(t){a(typeof t=="number"),a(t<67108864);for(var r=0,o=0;o<(this||lt).length;o++){var h=((this||lt).words[o]|0)*t,f=(h&67108863)+(r&67108863);r>>=26,r+=h/67108864|0,r+=f>>>26,(this||lt).words[o]=f&67108863}return r!==0&&((this||lt).words[o]=r,(this||lt).length++),this||lt},n.prototype.muln=function(t){return this.clone().imuln(t)},n.prototype.sqr=function(){return this.mul(this||lt)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(t){var r=_(t);if(r.length===0)return new n(1);for(var o=this||lt,h=0;h<r.length&&r[h]===0;h++,o=o.sqr());if(++h<r.length)for(var f=o.sqr();h<r.length;h++,f=f.sqr())r[h]!==0&&(o=o.mul(f));return o},n.prototype.iushln=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=67108863>>>26-r<<26-r,f;if(r!==0){var v=0;for(f=0;f<(this||lt).length;f++){var w=(this||lt).words[f]&h,l=((this||lt).words[f]|0)-w<<r;(this||lt).words[f]=l|v,v=w>>>26-r}v&&((this||lt).words[f]=v,(this||lt).length++)}if(o!==0){for(f=(this||lt).length-1;f>=0;f--)(this||lt).words[f+o]=(this||lt).words[f];for(f=0;f<o;f++)(this||lt).words[f]=0;(this||lt).length+=o}return this.strip()},n.prototype.ishln=function(t){return a((this||lt).negative===0),this.iushln(t)},n.prototype.iushrn=function(t,r,o){a(typeof t=="number"&&t>=0);var h;r?h=(r-r%26)/26:h=0;var f=t%26,v=Math.min((t-f)/26,(this||lt).length),w=67108863^67108863>>>f<<f,l=o;if(h-=v,h=Math.max(0,h),l){for(var e=0;e<v;e++)l.words[e]=(this||lt).words[e];l.length=v}if(v!==0)if((this||lt).length>v)for((this||lt).length-=v,e=0;e<(this||lt).length;e++)(this||lt).words[e]=(this||lt).words[e+v];else(this||lt).words[0]=0,(this||lt).length=1;var c=0;for(e=(this||lt).length-1;e>=0&&(c!==0||e>=h);e--){var A=(this||lt).words[e]|0;(this||lt).words[e]=c<<26-f|A>>>f,c=A&w}return l&&c!==0&&(l.words[l.length++]=c),(this||lt).length===0&&((this||lt).words[0]=0,(this||lt).length=1),this.strip()},n.prototype.ishrn=function(t,r,o){return a((this||lt).negative===0),this.iushrn(t,r,o)},n.prototype.shln=function(t){return this.clone().ishln(t)},n.prototype.ushln=function(t){return this.clone().iushln(t)},n.prototype.shrn=function(t){return this.clone().ishrn(t)},n.prototype.ushrn=function(t){return this.clone().iushrn(t)},n.prototype.testn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26,h=1<<r;if((this||lt).length<=o)return!1;var f=(this||lt).words[o];return!!(f&h)},n.prototype.imaskn=function(t){a(typeof t=="number"&&t>=0);var r=t%26,o=(t-r)/26;if(a((this||lt).negative===0,"imaskn works only with positive numbers"),(this||lt).length<=o)return this||lt;if(r!==0&&o++,(this||lt).length=Math.min(o,(this||lt).length),r!==0){var h=67108863^67108863>>>r<<r;(this||lt).words[(this||lt).length-1]&=h}return this.strip()},n.prototype.maskn=function(t){return this.clone().imaskn(t)},n.prototype.iaddn=function(t){return a(typeof t=="number"),a(t<67108864),t<0?this.isubn(-t):(this||lt).negative!==0?(this||lt).length===1&&((this||lt).words[0]|0)<t?((this||lt).words[0]=t-((this||lt).words[0]|0),(this||lt).negative=0,this||lt):((this||lt).negative=0,this.isubn(t),(this||lt).negative=1,this||lt):this._iaddn(t)},n.prototype._iaddn=function(t){(this||lt).words[0]+=t;for(var r=0;r<(this||lt).length&&(this||lt).words[r]>=67108864;r++)(this||lt).words[r]-=67108864,r===(this||lt).length-1?(this||lt).words[r+1]=1:(this||lt).words[r+1]++;return(this||lt).length=Math.max((this||lt).length,r+1),this||lt},n.prototype.isubn=function(t){if(a(typeof t=="number"),a(t<67108864),t<0)return this.iaddn(-t);if((this||lt).negative!==0)return(this||lt).negative=0,this.iaddn(t),(this||lt).negative=1,this||lt;if((this||lt).words[0]-=t,(this||lt).length===1&&(this||lt).words[0]<0)(this||lt).words[0]=-(this||lt).words[0],(this||lt).negative=1;else for(var r=0;r<(this||lt).length&&(this||lt).words[r]<0;r++)(this||lt).words[r]+=67108864,(this||lt).words[r+1]-=1;return this.strip()},n.prototype.addn=function(t){return this.clone().iaddn(t)},n.prototype.subn=function(t){return this.clone().isubn(t)},n.prototype.iabs=function(){return(this||lt).negative=0,this||lt},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(t,r,o){var h=t.length+o,f;this._expand(h);var v,w=0;for(f=0;f<t.length;f++){v=((this||lt).words[f+o]|0)+w;var l=(t.words[f]|0)*r;v-=l&67108863,w=(v>>26)-(l/67108864|0),(this||lt).words[f+o]=v&67108863}for(;f<(this||lt).length-o;f++)v=((this||lt).words[f+o]|0)+w,w=v>>26,(this||lt).words[f+o]=v&67108863;if(w===0)return this.strip();for(a(w===-1),w=0,f=0;f<(this||lt).length;f++)v=-((this||lt).words[f]|0)+w,w=v>>26,(this||lt).words[f]=v&67108863;return(this||lt).negative=1,this.strip()},n.prototype._wordDiv=function(t,r){var o=(this||lt).length-t.length,h=this.clone(),f=t,v=f.words[f.length-1]|0,w=this._countBits(v);o=26-w,o!==0&&(f=f.ushln(o),h.iushln(o),v=f.words[f.length-1]|0);var l=h.length-f.length,e;if(r!=="mod"){e=new n(null),e.length=l+1,e.words=new Array(e.length);for(var c=0;c<e.length;c++)e.words[c]=0}var A=h.clone()._ishlnsubmul(f,1,l);A.negative===0&&(h=A,e&&(e.words[l]=1));for(var R=l-1;R>=0;R--){var $=(h.words[f.length+R]|0)*67108864+(h.words[f.length+R-1]|0);for($=Math.min($/v|0,67108863),h._ishlnsubmul(f,$,R);h.negative!==0;)$--,h.negative=0,h._ishlnsubmul(f,1,R),h.isZero()||(h.negative^=1);e&&(e.words[R]=$)}return e&&e.strip(),h.strip(),r!=="div"&&o!==0&&h.iushrn(o),{div:e||null,mod:h}},n.prototype.divmod=function(t,r,o){if(a(!t.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,f,v;return(this||lt).negative!==0&&t.negative===0?(v=this.neg().divmod(t,r),r!=="mod"&&(h=v.div.neg()),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.iadd(t)),{div:h,mod:f}):(this||lt).negative===0&&t.negative!==0?(v=this.divmod(t.neg(),r),r!=="mod"&&(h=v.div.neg()),{div:h,mod:v.mod}):(this||lt).negative&t.negative?(v=this.neg().divmod(t.neg(),r),r!=="div"&&(f=v.mod.neg(),o&&f.negative!==0&&f.isub(t)),{div:v.div,mod:f}):t.length>(this||lt).length||this.cmp(t)<0?{div:new n(0),mod:this||lt}:t.length===1?r==="div"?{div:this.divn(t.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new n(this.modn(t.words[0]))}:this._wordDiv(t,r)},n.prototype.div=function(t){return this.divmod(t,"div",!1).div},n.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},n.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},n.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var o=r.div.negative!==0?r.mod.isub(t):r.mod,h=t.ushrn(1),f=t.andln(1),v=o.cmp(h);return v<0||f===1&&v===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(t){a(t<=67108863);for(var r=(1<<26)%t,o=0,h=(this||lt).length-1;h>=0;h--)o=(r*o+((this||lt).words[h]|0))%t;return o},n.prototype.idivn=function(t){a(t<=67108863);for(var r=0,o=(this||lt).length-1;o>=0;o--){var h=((this||lt).words[o]|0)+r*67108864;(this||lt).words[o]=h/t|0,r=h%t}return this.strip()},n.prototype.divn=function(t){return this.clone().idivn(t)},n.prototype.egcd=function(t){a(t.negative===0),a(!t.isZero());var r=this||lt,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=new n(0),w=new n(1),l=0;r.isEven()&&o.isEven();)r.iushrn(1),o.iushrn(1),++l;for(var e=o.clone(),c=r.clone();!r.isZero();){for(var A=0,R=1;!(r.words[0]&R)&&A<26;++A,R<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(h.isOdd()||f.isOdd())&&(h.iadd(e),f.isub(c)),h.iushrn(1),f.iushrn(1);for(var $=0,L=1;!(o.words[0]&L)&&$<26;++$,L<<=1);if($>0)for(o.iushrn($);$-- >0;)(v.isOdd()||w.isOdd())&&(v.iadd(e),w.isub(c)),v.iushrn(1),w.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(v),f.isub(w)):(o.isub(r),v.isub(h),w.isub(f))}return{a:v,b:w,gcd:o.iushln(l)}},n.prototype._invmp=function(t){a(t.negative===0),a(!t.isZero());var r=this||lt,o=t.clone();r.negative!==0?r=r.umod(t):r=r.clone();for(var h=new n(1),f=new n(0),v=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var w=0,l=1;!(r.words[0]&l)&&w<26;++w,l<<=1);if(w>0)for(r.iushrn(w);w-- >0;)h.isOdd()&&h.iadd(v),h.iushrn(1);for(var e=0,c=1;!(o.words[0]&c)&&e<26;++e,c<<=1);if(e>0)for(o.iushrn(e);e-- >0;)f.isOdd()&&f.iadd(v),f.iushrn(1);r.cmp(o)>=0?(r.isub(o),h.isub(f)):(o.isub(r),f.isub(h))}var A;return r.cmpn(1)===0?A=h:A=f,A.cmpn(0)<0&&A.iadd(t),A},n.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),o=t.clone();r.negative=0,o.negative=0;for(var h=0;r.isEven()&&o.isEven();h++)r.iushrn(1),o.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;o.isEven();)o.iushrn(1);var f=r.cmp(o);if(f<0){var v=r;r=o,o=v}else if(f===0||o.cmpn(1)===0)break;r.isub(o)}while(!0);return o.iushln(h)},n.prototype.invm=function(t){return this.egcd(t).a.umod(t)},n.prototype.isEven=function(){return((this||lt).words[0]&1)===0},n.prototype.isOdd=function(){return((this||lt).words[0]&1)===1},n.prototype.andln=function(t){return(this||lt).words[0]&t},n.prototype.bincn=function(t){a(typeof t=="number");var r=t%26,o=(t-r)/26,h=1<<r;if((this||lt).length<=o)return this._expand(o+1),(this||lt).words[o]|=h,this||lt;for(var f=h,v=o;f!==0&&v<(this||lt).length;v++){var w=(this||lt).words[v]|0;w+=f,f=w>>>26,w&=67108863,(this||lt).words[v]=w}return f!==0&&((this||lt).words[v]=f,(this||lt).length++),this||lt},n.prototype.isZero=function(){return(this||lt).length===1&&(this||lt).words[0]===0},n.prototype.cmpn=function(t){var r=t<0;if((this||lt).negative!==0&&!r)return-1;if((this||lt).negative===0&&r)return 1;this.strip();var o;if((this||lt).length>1)o=1;else{r&&(t=-t),a(t<=67108863,"Number is too big");var h=(this||lt).words[0]|0;o=h===t?0:h<t?-1:1}return(this||lt).negative!==0?-o|0:o},n.prototype.cmp=function(t){if((this||lt).negative!==0&&t.negative===0)return-1;if((this||lt).negative===0&&t.negative!==0)return 1;var r=this.ucmp(t);return(this||lt).negative!==0?-r|0:r},n.prototype.ucmp=function(t){if((this||lt).length>t.length)return 1;if((this||lt).length<t.length)return-1;for(var r=0,o=(this||lt).length-1;o>=0;o--){var h=(this||lt).words[o]|0,f=t.words[o]|0;if(h!==f){h<f?r=-1:h>f&&(r=1);break}}return r},n.prototype.gtn=function(t){return this.cmpn(t)===1},n.prototype.gt=function(t){return this.cmp(t)===1},n.prototype.gten=function(t){return this.cmpn(t)>=0},n.prototype.gte=function(t){return this.cmp(t)>=0},n.prototype.ltn=function(t){return this.cmpn(t)===-1},n.prototype.lt=function(t){return this.cmp(t)===-1},n.prototype.lten=function(t){return this.cmpn(t)<=0},n.prototype.lte=function(t){return this.cmp(t)<=0},n.prototype.eqn=function(t){return this.cmpn(t)===0},n.prototype.eq=function(t){return this.cmp(t)===0},n.red=function(t){return new D(t)},n.prototype.toRed=function(t){return a(!(this||lt).red,"Already a number in reduction context"),a((this||lt).negative===0,"red works only with positives"),t.convertTo(this||lt)._forceRed(t)},n.prototype.fromRed=function(){return a((this||lt).red,"fromRed works only with numbers in reduction context"),(this||lt).red.convertFrom(this||lt)},n.prototype._forceRed=function(t){return(this||lt).red=t,this||lt},n.prototype.forceRed=function(t){return a(!(this||lt).red,"Already a number in reduction context"),this._forceRed(t)},n.prototype.redAdd=function(t){return a((this||lt).red,"redAdd works only with red numbers"),(this||lt).red.add(this||lt,t)},n.prototype.redIAdd=function(t){return a((this||lt).red,"redIAdd works only with red numbers"),(this||lt).red.iadd(this||lt,t)},n.prototype.redSub=function(t){return a((this||lt).red,"redSub works only with red numbers"),(this||lt).red.sub(this||lt,t)},n.prototype.redISub=function(t){return a((this||lt).red,"redISub works only with red numbers"),(this||lt).red.isub(this||lt,t)},n.prototype.redShl=function(t){return a((this||lt).red,"redShl works only with red numbers"),(this||lt).red.shl(this||lt,t)},n.prototype.redMul=function(t){return a((this||lt).red,"redMul works only with red numbers"),(this||lt).red._verify2(this||lt,t),(this||lt).red.mul(this||lt,t)},n.prototype.redIMul=function(t){return a((this||lt).red,"redMul works only with red numbers"),(this||lt).red._verify2(this||lt,t),(this||lt).red.imul(this||lt,t)},n.prototype.redSqr=function(){return a((this||lt).red,"redSqr works only with red numbers"),(this||lt).red._verify1(this||lt),(this||lt).red.sqr(this||lt)},n.prototype.redISqr=function(){return a((this||lt).red,"redISqr works only with red numbers"),(this||lt).red._verify1(this||lt),(this||lt).red.isqr(this||lt)},n.prototype.redSqrt=function(){return a((this||lt).red,"redSqrt works only with red numbers"),(this||lt).red._verify1(this||lt),(this||lt).red.sqrt(this||lt)},n.prototype.redInvm=function(){return a((this||lt).red,"redInvm works only with red numbers"),(this||lt).red._verify1(this||lt),(this||lt).red.invm(this||lt)},n.prototype.redNeg=function(){return a((this||lt).red,"redNeg works only with red numbers"),(this||lt).red._verify1(this||lt),(this||lt).red.neg(this||lt)},n.prototype.redPow=function(t){return a((this||lt).red&&!t.red,"redPow(normalNum)"),(this||lt).red._verify1(this||lt),(this||lt).red.pow(this||lt,t)};var C={k256:null,p224:null,p192:null,p25519:null};function P(d,t){(this||lt).name=d,(this||lt).p=new n(t,16),(this||lt).n=(this||lt).p.bitLength(),(this||lt).k=new n(1).iushln((this||lt).n).isub((this||lt).p),(this||lt).tmp=this._tmp()}P.prototype._tmp=function(){var t=new n(null);return t.words=new Array(Math.ceil((this||lt).n/13)),t},P.prototype.ireduce=function(t){var r=t,o;do this.split(r,(this||lt).tmp),r=this.imulK(r),r=r.iadd((this||lt).tmp),o=r.bitLength();while(o>(this||lt).n);var h=o<(this||lt).n?-1:r.ucmp((this||lt).p);return h===0?(r.words[0]=0,r.length=1):h>0?r.isub((this||lt).p):r.strip!==void 0?r.strip():r._strip(),r},P.prototype.split=function(t,r){t.iushrn((this||lt).n,0,r)},P.prototype.imulK=function(t){return t.imul((this||lt).k)};function G(){P.call(this||lt,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(G,P),G.prototype.split=function(t,r){for(var o=4194303,h=Math.min(t.length,9),f=0;f<h;f++)r.words[f]=t.words[f];if(r.length=h,t.length<=9){t.words[0]=0,t.length=1;return}var v=t.words[9];for(r.words[r.length++]=v&o,f=10;f<t.length;f++){var w=t.words[f]|0;t.words[f-10]=(w&o)<<4|v>>>22,v=w}v>>>=22,t.words[f-10]=v,v===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,o=0;o<t.length;o++){var h=t.words[o]|0;r+=h*977,t.words[o]=r&67108863,r=h*64+(r/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function U(){P.call(this||lt,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(U,P);function V(){P.call(this||lt,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(V,P);function I(){P.call(this||lt,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(I,P),I.prototype.imulK=function(t){for(var r=0,o=0;o<t.length;o++){var h=(t.words[o]|0)*19+r,f=h&67108863;h>>>=26,t.words[o]=f,r=h}return r!==0&&(t.words[t.length++]=r),t},n._prime=function(t){if(C[t])return C[t];var r;if(t==="k256")r=new G;else if(t==="p224")r=new U;else if(t==="p192")r=new V;else if(t==="p25519")r=new I;else throw new Error("Unknown prime "+t);return C[t]=r,r};function D(d){if(typeof d=="string"){var t=n._prime(d);(this||lt).m=t.p,(this||lt).prime=t}else a(d.gtn(1),"modulus must be greater than 1"),(this||lt).m=d,(this||lt).prime=null}D.prototype._verify1=function(t){a(t.negative===0,"red works only with positives"),a(t.red,"red works only with red numbers")},D.prototype._verify2=function(t,r){a((t.negative|r.negative)===0,"red works only with positives"),a(t.red&&t.red===r.red,"red works only with red numbers")},D.prototype.imod=function(t){return(this||lt).prime?(this||lt).prime.ireduce(t)._forceRed(this||lt):t.umod((this||lt).m)._forceRed(this||lt)},D.prototype.neg=function(t){return t.isZero()?t.clone():(this||lt).m.sub(t)._forceRed(this||lt)},D.prototype.add=function(t,r){this._verify2(t,r);var o=t.add(r);return o.cmp((this||lt).m)>=0&&o.isub((this||lt).m),o._forceRed(this||lt)},D.prototype.iadd=function(t,r){this._verify2(t,r);var o=t.iadd(r);return o.cmp((this||lt).m)>=0&&o.isub((this||lt).m),o},D.prototype.sub=function(t,r){this._verify2(t,r);var o=t.sub(r);return o.cmpn(0)<0&&o.iadd((this||lt).m),o._forceRed(this||lt)},D.prototype.isub=function(t,r){this._verify2(t,r);var o=t.isub(r);return o.cmpn(0)<0&&o.iadd((this||lt).m),o},D.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},D.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},D.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},D.prototype.isqr=function(t){return this.imul(t,t.clone())},D.prototype.sqr=function(t){return this.mul(t,t)},D.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=(this||lt).m.andln(3);if(a(r%2===1),r===3){var o=(this||lt).m.add(new n(1)).iushrn(2);return this.pow(t,o)}for(var h=(this||lt).m.subn(1),f=0;!h.isZero()&&h.andln(1)===0;)f++,h.iushrn(1);a(!h.isZero());var v=new n(1).toRed(this||lt),w=v.redNeg(),l=(this||lt).m.subn(1).iushrn(1),e=(this||lt).m.bitLength();for(e=new n(2*e*e).toRed(this||lt);this.pow(e,l).cmp(w)!==0;)e.redIAdd(w);for(var c=this.pow(e,h),A=this.pow(t,h.addn(1).iushrn(1)),R=this.pow(t,h),$=f;R.cmp(v)!==0;){for(var L=R,j=0;L.cmp(v)!==0;j++)L=L.redSqr();a(j<$);var pt=this.pow(c,new n(1).iushln($-j-1));A=A.redMul(pt),c=pt.redSqr(),R=R.redMul(c),$=j}return A},D.prototype.invm=function(t){var r=t._invmp((this||lt).m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},D.prototype.pow=function(t,r){if(r.isZero())return new n(1).toRed(this||lt);if(r.cmpn(1)===0)return t.clone();var o=4,h=new Array(1<<o);h[0]=new n(1).toRed(this||lt),h[1]=t;for(var f=2;f<h.length;f++)h[f]=this.mul(h[f-1],t);var v=h[0],w=0,l=0,e=r.bitLength()%26;for(e===0&&(e=26),f=r.length-1;f>=0;f--){for(var c=r.words[f],A=e-1;A>=0;A--){var R=c>>A&1;if(v!==h[0]&&(v=this.sqr(v)),R===0&&w===0){l=0;continue}w<<=1,w|=R,l++,!(l!==o&&(f!==0||A!==0))&&(v=this.mul(v,h[w]),l=0,w=0)}e=26}return v},D.prototype.convertTo=function(t){var r=t.umod((this||lt).m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},n.mont=function(t){return new z(t)};function z(d){D.call(this||lt,d),(this||lt).shift=(this||lt).m.bitLength(),(this||lt).shift%26!==0&&((this||lt).shift+=26-(this||lt).shift%26),(this||lt).r=new n(1).iushln((this||lt).shift),(this||lt).r2=this.imod((this||lt).r.sqr()),(this||lt).rinv=(this||lt).r._invmp((this||lt).m),(this||lt).minv=(this||lt).rinv.mul((this||lt).r).isubn(1).div((this||lt).m),(this||lt).minv=(this||lt).minv.umod((this||lt).r),(this||lt).minv=(this||lt).r.sub((this||lt).minv)}u(z,D),z.prototype.convertTo=function(t){return this.imod(t.ushln((this||lt).shift))},z.prototype.convertFrom=function(t){var r=this.imod(t.mul((this||lt).rinv));return r.red=null,r},z.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var o=t.imul(r),h=o.maskn((this||lt).shift).mul((this||lt).minv).imaskn((this||lt).shift).mul((this||lt).m),f=o.isub(h).iushrn((this||lt).shift),v=f;return f.cmp((this||lt).m)>=0?v=f.isub((this||lt).m):f.cmpn(0)<0&&(v=f.iadd((this||lt).m)),v._forceRed(this||lt)},z.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new n(0)._forceRed(this||lt);var o=t.mul(r),h=o.maskn((this||lt).shift).mul((this||lt).minv).imaskn((this||lt).shift).mul((this||lt).m),f=o.isub(h).iushrn((this||lt).shift),v=f;return f.cmp((this||lt).m)>=0?v=f.isub((this||lt).m):f.cmpn(0)<0&&(v=f.iadd((this||lt).m)),v._forceRed(this||lt)},z.prototype.invm=function(t){var r=this.imod(t._invmp((this||lt).m).mul((this||lt).r2));return r._forceRed(this||lt)}}(Ag,Uk)),Ag.exports}var kg={},GS=!1;function Fk(){if(GS)return kg;GS=!0;var i=t6(),s=ar().Buffer;function a(u,n){return s.from(u.toRed(i.mont(n.modulus)).redPow(new i(n.publicExponent)).fromRed().toArray())}return kg=a,kg}var Rg={},ZS=!1;function GU(){if(ZS)return Rg;ZS=!0;var i=kc(),s=Fh(),a=su(),u=qk(),n=zk(),p=t6(),m=Fk(),y=Gb(),M=ar().Buffer;Rg=function(x,E,k){var B;x.padding?B=x.padding:k?B=1:B=4;var T=i(x),C;if(B===4)C=b(T,E);else if(B===1)C=g(T,E,k);else if(B===3){if(C=new p(E),C.cmp(T.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return k?y(C,T):m(C,T)};function b(_,x){var E=_.modulus.byteLength(),k=x.length,B=a("sha1").update(M.alloc(0)).digest(),T=B.length,C=2*T;if(k>E-C-2)throw new Error("message too long");var P=M.alloc(E-k-C-2),G=E-T-1,U=s(T),V=n(M.concat([B,P,M.alloc(1,1),x],G),u(U,G)),I=n(U,u(V,T));return new p(M.concat([M.alloc(1),I,V],E))}function g(_,x,E){var k=x.length,B=_.modulus.byteLength();if(k>B-11)throw new Error("message too long");var T;return E?T=M.alloc(B-k-3,255):T=S(B-k-3),new p(M.concat([M.from([0,E?1:2]),T,M.alloc(1),x],B))}function S(_){for(var x=M.allocUnsafe(_),E=0,k=s(_*2),B=0,T;E<_;)B===k.length&&(k=s(_*2),B=0),T=k[B++],T&&(x[E++]=T);return x}return Rg}var Bg={},VS=!1;function ZU(){if(VS)return Bg;VS=!0;var i=kc(),s=qk(),a=zk(),u=t6(),n=Gb(),p=su(),m=Fk(),y=ar().Buffer;Bg=function(_,x,E){var k;_.padding?k=_.padding:E?k=1:k=4;var B=i(_),T=B.modulus.byteLength();if(x.length>T||new u(x).cmp(B.modulus)>=0)throw new Error("decryption error");var C;E?C=m(new u(x),B):C=n(x,B);var P=y.alloc(T-C.length);if(C=y.concat([P,C],T),k===4)return M(B,C);if(k===1)return b(B,C,E);if(k===3)return C;throw new Error("unknown padding")};function M(S,_){var x=S.modulus.byteLength(),E=p("sha1").update(y.alloc(0)).digest(),k=E.length;if(_[0]!==0)throw new Error("decryption error");var B=_.slice(1,k+1),T=_.slice(k+1),C=a(B,s(T,k)),P=a(T,s(C,x-k-1));if(g(E,P.slice(0,k)))throw new Error("decryption error");for(var G=k;P[G]===0;)G++;if(P[G++]!==1)throw new Error("decryption error");return P.slice(G)}function b(S,_,x){for(var E=_.slice(0,2),k=2,B=0;_[k++]!==0;)if(k>=_.length){B++;break}var T=_.slice(2,k-1);if((E.toString("hex")!=="0002"&&!x||E.toString("hex")!=="0001"&&x)&&B++,T.length<8&&B++,B)throw new Error("decryption error");return _.slice(k)}function g(S,_){S=y.from(S),_=y.from(_);var x=0,E=S.length;S.length!==_.length&&(x++,E=Math.min(S.length,_.length));for(var k=-1;++k<E;)x+=S[k]^_[k];return x}return Bg}var Sa={},WS=!1;function VU(){return WS||(WS=!0,Sa.publicEncrypt=GU(),Sa.privateDecrypt=ZU(),Sa.privateEncrypt=function(s,a){return Sa.publicEncrypt(s,a,!0)},Sa.publicDecrypt=function(s,a){return Sa.privateDecrypt(s,a,!0)}),Sa}var Bh={},XS=!1,A0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:globalThis;function WU(){if(XS)return Bh;XS=!0;var i=sr;function s(){throw new Error(`secure random number generation not supported by this browser
26
+ use chrome, FireFox or Internet Explorer 11`)}var a=ar(),u=Fh(),n=a.Buffer,p=a.kMaxLength,m=A0.crypto||A0.msCrypto,y=Math.pow(2,32)-1;function M(x,E){if(typeof x!="number"||x!==x)throw new TypeError("offset must be a number");if(x>y||x<0)throw new TypeError("offset must be a uint32");if(x>p||x>E)throw new RangeError("offset out of range")}function b(x,E,k){if(typeof x!="number"||x!==x)throw new TypeError("size must be a number");if(x>y||x<0)throw new TypeError("size must be a uint32");if(x+E>k||x>p)throw new RangeError("buffer too small")}m&&m.getRandomValues||!i.browser?(Bh.randomFill=g,Bh.randomFillSync=_):(Bh.randomFill=s,Bh.randomFillSync=s);function g(x,E,k,B){if(!n.isBuffer(x)&&!(x instanceof A0.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof E=="function")B=E,E=0,k=x.length;else if(typeof k=="function")B=k,k=x.length-E;else if(typeof B!="function")throw new TypeError('"cb" argument must be a function');return M(E,x.length),b(k,E,x.length),S(x,E,k,B)}function S(x,E,k,B){if(i.browser){var T=x.buffer,C=new Uint8Array(T,E,k);if(m.getRandomValues(C),B){i.nextTick(function(){B(null,x)});return}return x}if(B){u(k,function(G,U){if(G)return B(G);U.copy(x,E),B(null,x)});return}var P=u(k);return P.copy(x,E),x}function _(x,E,k){if(typeof E>"u"&&(E=0),!n.isBuffer(x)&&!(x instanceof A0.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return M(E,x.length),k===void 0&&(k=x.length-E),b(k,E,x.length),S(x,E,k)}return Bh}var Ze={},JS=!1;function XU(){if(JS)return Ze;JS=!0,Ze.randomBytes=Ze.rng=Ze.pseudoRandomBytes=Ze.prng=Fh(),Ze.createHash=Ze.Hash=su(),Ze.createHmac=Ze.Hmac=sx();var i=HC(),s=Object.keys(i),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(s);Ze.getHashes=function(){return a};var u=dx();Ze.pbkdf2=u.pbkdf2,Ze.pbkdf2Sync=u.pbkdf2Sync;var n=aP();Ze.Cipher=n.Cipher,Ze.createCipher=n.createCipher,Ze.Cipheriv=n.Cipheriv,Ze.createCipheriv=n.createCipheriv,Ze.Decipher=n.Decipher,Ze.createDecipher=n.createDecipher,Ze.Decipheriv=n.Decipheriv,Ze.createDecipheriv=n.createDecipheriv,Ze.getCiphers=n.getCiphers,Ze.listCiphers=n.listCiphers;var p=vU();Ze.DiffieHellmanGroup=p.DiffieHellmanGroup,Ze.createDiffieHellmanGroup=p.createDiffieHellmanGroup,Ze.getDiffieHellman=p.getDiffieHellman,Ze.createDiffieHellman=p.createDiffieHellman,Ze.DiffieHellman=p.DiffieHellman;var m=jU();Ze.createSign=m.createSign,Ze.Sign=m.Sign,Ze.createVerify=m.createVerify,Ze.Verify=m.Verify,Ze.createECDH=KU();var y=VU();Ze.publicEncrypt=y.publicEncrypt,Ze.privateEncrypt=y.privateEncrypt,Ze.publicDecrypt=y.publicDecrypt,Ze.privateDecrypt=y.privateDecrypt;var M=WU();return Ze.randomFill=M.randomFill,Ze.randomFillSync=M.randomFillSync,Ze.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
27
+ `))},Ze.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},Ze}var de=XU();de.randomBytes;de.rng;de.pseudoRandomBytes;de.prng;de.createHash;de.Hash;de.createHmac;de.Hmac;de.getHashes;de.pbkdf2;de.pbkdf2Sync;de.Cipher;de.createCipher;de.Cipheriv;de.createCipheriv;de.Decipher;de.createDecipher;de.Decipheriv;de.createDecipheriv;de.getCiphers;de.listCiphers;de.DiffieHellmanGroup;de.createDiffieHellmanGroup;de.getDiffieHellman;de.createDiffieHellman;de.DiffieHellman;de.createSign;de.Sign;de.createVerify;de.Verify;de.createECDH;de.publicEncrypt;de.privateEncrypt;de.publicDecrypt;de.privateDecrypt;de.randomFill;de.randomFillSync;de.createCredentials;de.constants;de.webcrypto=globalThis.crypto;var bV=de.Cipher,yV=de.Cipheriv,wV=de.Decipher,MV=de.Decipheriv,_V=de.DiffieHellman,SV=de.DiffieHellmanGroup,xV=de.Hash,EV=de.Hmac,AV=de.Sign,kV=de.Verify,RV=de.constants,BV=de.createCipher,TV=de.createCipheriv,$V=de.createCredentials,IV=de.createDecipher,CV=de.createDecipheriv,PV=de.createDiffieHellman,DV=de.createDiffieHellmanGroup,LV=de.createECDH,jk=de.createHash,OV=de.createHmac,NV=de.createSign,qV=de.createVerify,zV=de.getCiphers,UV=de.getDiffieHellman,FV=de.getHashes,jV=de.listCiphers,HV=de.pbkdf2,KV=de.pbkdf2Sync,GV=de.privateDecrypt,ZV=de.privateEncrypt,VV=de.prng,WV=de.pseudoRandomBytes,XV=de.publicDecrypt,JV=de.publicEncrypt,YV=de.randomBytes,QV=de.randomFill,tW=de.randomFillSync,eW=de.rng,rW=de.webcrypto;var Jh={FILE_TYPE:"File type",TRUCK_FACTOR:"Truck factor",TOP_CONTRIBUTOR:"Top contributor",MOST_COMMITS:"Commits",SINGLE_AUTHOR:"Single author",LAST_CHANGED:"Last changed"};function Kk(i,s,a){let u=JU(i.repodata2.authors,s,a);return[QU(i.repodata2.fileTree,YU(i,u)),u]}function Gk(i){switch(i){case"FILE_TYPE":return"Where are different types of files located?";case"MOST_COMMITS":return"Which files have had the most commits, throughout the repository's history?";case"LAST_CHANGED":return"How long ago did the files change?";case"SINGLE_AUTHOR":return"Which files are authored by only one person, throughout the repository's history?";case"TOP_CONTRIBUTOR":return"Which person has made the most line-changes to a file, throughout the repository's history?";case"TRUCK_FACTOR":return"How many authors have contributed to a given file?";default:throw new Error("Uknown metric type: "+i)}}function Zk(i){switch(i){case"FILE_TYPE":case"TOP_CONTRIBUTOR":case"SINGLE_AUTHOR":return"POINT";case"MOST_COMMITS":return"GRADIENT";case"LAST_CHANGED":case"TRUCK_FACTOR":return"SEGMENTS";default:throw new Error("Uknown metric type: "+i)}}function JU(i,s,a){let u=new Map,n=s!=null?s:"";for(let p=0;p<i.length;p++){let m=i[p],y=a.get(m);if(y){u.set(m,y);continue}let M=jk("sha1");M.update(m+n);let b=M.digest("hex"),g=(0,Hk.default)(b).color;u.set(m,g)}return u}function YU(i,s){let a=i.repodata2.maxCommitCount,u=i.repodata2.minCommitCount,n=new hl(u,a),p=new ul(i.repodata2.authors.length);return[["FILE_TYPE",(m,y)=>{y.legend||(y.legend=new Map),Q3(m,y)}],["SINGLE_AUTHOR",(m,y)=>{y.legend||(y.legend=new Map),ty(m,y,s,i.repodata2.dominantAuthors,i.repodata2.authorCounts)}],["MOST_COMMITS",(m,y)=>{y.legend||(y.legend=[`${u}`,`${a}`,void 0,void 0,n.getColor(u),n.getColor(a)]),n.setColor(m,y,i.repodata2.commitCounts)}],["LAST_CHANGED",(m,y)=>{let M=i.repodata2.newestChangeDate,b=ey(M);y.legend||(y.legend=[fl(b,M,i.repodata2.oldestChangeDate)+1,_=>b[_].text,_=>b[_].color,_=>{var x,E;return(E=fl(b,M,(x=i.repodata2.lastChanged.get(oi(_.path)))!=null?x:0))!=null?E:-1}]);let g=i.repodata2.lastChanged.get(oi(m.path)),S=g?b[fl(b,M,g)].color:Oi;y.colormap.set(m.path,S)}],["TOP_CONTRIBUTOR",(m,y)=>{y.legend||(y.legend=new Map),ry(s,m,y,i.repodata2.dominantAuthors)}],["TRUCK_FACTOR",(m,y)=>{y.legend||(y.legend=[Math.floor(Math.log2(i.repodata2.authors.length))+1,M=>`${Math.pow(2,M)}`,M=>`hsl(0,75%,${50+M*(40/(Math.floor(Math.log2(i.repodata2.authors.length))+1))}%)`,M=>{var b;return Math.floor(Math.log2((b=i.repodata2.authorCounts.get(oi(M.path)))!=null?b:0))}]),p.setColor(m,y,i.repodata2.authorCounts)}]]}function QU(i,s){let a=new Map;return Vk(i,s,a),a}function Vk(i,s,a){var u;for(let n of i.children)switch(n.type){case"tree":Vk(n,s,a);break;case"blob":for(let[p,m]of s)a.has(p)||a.set(p,{legend:void 0,colormap:new Map}),m(n,(u=a.get(p))!=null?u:{legend:void 0,colormap:new Map});break}}var Rc={FILE_SIZE:"File size",TRUCK_FACTOR:"Truck factor",MOST_COMMITS:"Commits",LAST_CHANGED:"Last changed",EQUAL_SIZE:"Equal"};var Bc={Full:"Full",One:"1",Two:"2",Three:"3",Four:"4",Five:"5"},Wk={Full:g3,One:o3,Two:a3,Three:s3,Four:h3,Five:f3};var e6={BUBBLE_CHART:"Bubble chart",TREE_MAP:"Tree map"},r6={NESTED:"Nested",FLAT:"Flat"},pu={DATE:"By date",AUTHOR:"By author"},i6=i=>({ASCENDING:i?"Latest first":"Ascending",DESCENDING:i?"Oldest first":"Descending"}),n6=(0,Tc.createContext)(void 0);function Mi(){let i=(0,Tc.useContext)(n6);if(!i)throw new Error("useOptions must be used within a SearchProvider");return i}var tF={hasLoadedSavedOptions:!1,metricType:Object.keys(Jh)[0],chartType:Object.keys(e6)[0],depthType:Object.keys(Bc)[0],hierarchyType:Object.keys(r6)[0],sizeMetric:Object.keys(Rc)[0],commitSortingMethodsType:Object.keys(pu)[0],commitSortingOrdersType:Object.keys(i6(!0))[0],commitSearch:"",transitionsEnabled:!0,labelsVisible:!0,renderCutoff:2};function Ci(i={}){return{...tF,...i,setChartType:()=>{throw new Error("No chartTypeSetter provided")},setMetricType:()=>{throw new Error("No metricTypeSetter provided")},setSizeMetricType:()=>{throw new Error("No sizeMetricTypeSetter provided")},setDepthType:()=>{throw new Error("No DepthTypeSetter provided")},setHierarchyType:()=>{throw new Error("No HiearchyTypeSetter provided")},setCommitSortingMethodsType:()=>{throw new Error("No CommitSortingMethodsTypeSetter provided")},setCommitSortingOrdersType:()=>{throw new Error("No CommitSortingOrdersTypeSetter provided")},setCommitSearch:()=>{throw new Error("No CommitSearchSetter provided")},setTransitionsEnabled:()=>{throw new Error("No transitionsEnabledSetter provided")},setLabelsVisible:()=>{throw new Error("No labelsVisibleSetter provided")},setRenderCutoff:()=>{throw new Error("No renderCutoffSetter provided")}}}var $c=Xt(pr()),o6=(0,$c.createContext)(void 0);function na(){let i=(0,$c.useContext)(o6);if(!i)throw new Error("useOptions must be used within a PathProvider");return i}var Yk={},Xk=new WeakMap,Jk={metric:[{from:0,to:1e3,unit:"B",long:"bytes"},{from:1e3,to:1e6,unit:"kB",long:"kilobytes"},{from:1e6,to:1e9,unit:"MB",long:"megabytes"},{from:1e9,to:1e12,unit:"GB",long:"gigabytes"},{from:1e12,to:1e15,unit:"TB",long:"terabytes"},{from:1e15,to:1e18,unit:"PB",long:"petabytes"},{from:1e18,to:1e21,unit:"EB",long:"exabytes"},{from:1e21,to:1e24,unit:"ZB",long:"zettabytes"},{from:1e24,to:1e27,unit:"YB",long:"yottabytes"}],metric_octet:[{from:0,to:1e3,unit:"o",long:"octets"},{from:1e3,to:1e6,unit:"ko",long:"kilooctets"},{from:1e6,to:1e9,unit:"Mo",long:"megaoctets"},{from:1e9,to:1e12,unit:"Go",long:"gigaoctets"},{from:1e12,to:1e15,unit:"To",long:"teraoctets"},{from:1e15,to:1e18,unit:"Po",long:"petaoctets"},{from:1e18,to:1e21,unit:"Eo",long:"exaoctets"},{from:1e21,to:1e24,unit:"Zo",long:"zettaoctets"},{from:1e24,to:1e27,unit:"Yo",long:"yottaoctets"}],iec:[{from:0,to:Math.pow(1024,1),unit:"B",long:"bytes"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"KiB",long:"kibibytes"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"MiB",long:"mebibytes"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"GiB",long:"gibibytes"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"TiB",long:"tebibytes"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"PiB",long:"pebibytes"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"EiB",long:"exbibytes"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"ZiB",long:"zebibytes"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"YiB",long:"yobibytes"}],iec_octet:[{from:0,to:Math.pow(1024,1),unit:"o",long:"octets"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"Kio",long:"kibioctets"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"Mio",long:"mebioctets"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"Gio",long:"gibioctets"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"Tio",long:"tebioctets"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"Pio",long:"pebioctets"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"Eio",long:"exbioctets"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"Zio",long:"zebioctets"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"Yio",long:"yobioctets"}]},a6=class{constructor(s,a){a=Object.assign({units:"metric",precision:1,locale:void 0},Yk,a),Xk.set(this,a),Object.assign(Jk,a.customUnits);let u=s<0?"-":"";s=Math.abs(s);let n=Jk[a.units];if(n){let p=n.find(m=>s>=m.from&&s<m.to);if(p){let m=new Intl.NumberFormat(a.locale,{style:"decimal",minimumFractionDigits:a.precision,maximumFractionDigits:a.precision}),y=p.from===0?u+s:u+m.format(s/p.from);this.value=y,this.unit=p.unit,this.long=p.long}else this.value=u+s,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${a.units}`)}toString(){let s=Xk.get(this);return s.toStringFn?s.toStringFn.bind(this)():`${this.value} ${this.unit}`}};function Qk(i,s){return new a6(i,s)}Qk.defaultOptions=function(i){Yk=i};var tR=Qk;var Ks=Xt(tn());var Yh=Xt(pr()),Fa=Xt(Ce()),eR="MENUITEM",Ic=i=>i.children;Ic.defaultProps={__TYPE:eR};var rR=i=>{let[s,a]=(0,Yh.useState)(0),u=i.selectedItemIndex?i.selectedItemIndex:s,n=Yh.Children.toArray(i.children).map(p=>(0,Yh.isValidElement)(p)&&p.props.__TYPE&&p.props.__TYPE==eR?{title:p.props.title,children:p.props.children}:!1);return(0,Fa.jsxs)(Fa.Fragment,{children:[(0,Fa.jsx)("div",{className:"flex w-full flex-row justify-center overflow-hidden",children:n.map((p,m)=>(0,Fa.jsx)("button",{className:Wr("btn btn--outlined flex-1",{"opacity-50":u===m,"rounded-br-none rounded-tr-none":m!==n.length-1,"rounded-bl-none rounded-tl-none":m===n.length-1}),onClick:()=>{i.onChange&&i.onChange(m),a(y=>y!==m?m:y)},children:p.title},p.title+m+"--tab"))}),n.map((p,m)=>m==u?(0,Fa.jsx)("div",{className:"border-t-0",children:p.children},u+p.title+"--selected"):null)]})};var oa=Xt(pr());var nR=Xt(pr());var Hs=Xt(Ce());function eF({data:i,isOpen:s,btnOnClick:a,titleLabels:u}){return(0,Hs.jsxs)("li",{className:"border-0 ",children:[(0,Hs.jsx)("h2",{className:"m-0 w-full hover:opacity-70",children:(0,Hs.jsx)("div",{className:Wr("b-0 flex w-full cursor-pointer items-center"+"after:content-[''] after:shrink-0 after:w-[14px] after:h-[14px] after:ml-auto after:transition-[transform] after:duration-[200ms] after:ease-out after:bg-[length:14px_14px] after:bg-no-repeat after:bg-arrow",{"text-[16px] font-semibold":u,"text-[14px] font-normal":!u,"after:-rotate-180":s,"after:rotate-0":!s}),onClick:a,title:i.title,children:i.title})}),(0,Hs.jsx)("ul",{className:"m-0 block p-0 text-sm transition-[height] duration-[200ms] ease-out",style:{height:s?"auto":"0"},children:s&&(0,Hs.jsx)("div",{children:i.content})})]})}var iR=eF;var s6=Xt(Ce());function rF({items:i,multipleOpen:s,openByDefault:a,titleLabels:u,currentState:n,actionClickLabels:p}){let[m,y]=(0,nR.useState)(new Array),M=b=>{y(s?g=>g.includes(b)?g.filter(S=>S!==b):[...g,b]:g=>g.includes(b)?[]:[b])};return a&&!s&&y([0]),(0,s6.jsx)("ul",{className:"m-0 block overflow-x-hidden",children:i.map((b,g)=>(0,s6.jsx)(iR,{data:b,isOpen:n&&n[g]?n[g]:a&&s?!m.includes(g):m.includes(g),titleLabels:u,btnOnClick:()=>{M(g),p&&p(g)}},b.title+g+"--accordion"))})}var oR=rF;var Cc=Xt(pI());var De=Xt(Ce());function iF(i){let s=i.sortBy!==void 0?i.sortBy:"date",[,a]=Di(),{commitSortingOrdersType:u,commitSortingMethodsType:n}=Mi(),p=n==Object.keys(pu)[0],m=u==Object.keys(i6(p))[0],y=aF(i.items.slice(0,i.count),s),M=new Array;for(let[b,g]of Object.entries(y))M.push({title:b,content:(0,De.jsx)(De.Fragment,{children:g.map(S=>{var _;return(0,De.jsx)(oF,{authorColor:(_=a.get(S.author))!=null?_:"grey",value:S},S.hash+"--itemContentAccordion")})})});return(0,De.jsx)(oR,{titleLabels:!0,multipleOpen:!0,openByDefault:!0,items:m?M:M.reverse()},M.length>0?M[0].title:new Date().toDateString())}function ja(i){return(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("div",{className:"flex grow overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:i.keyString}),(0,De.jsx)("p",{className:"overflow-ellipsis break-all text-sm",children:i.value})]})}function nF(i){return(0,De.jsx)("div",{className:"max-h-64 overflow-scroll",children:(0,De.jsx)("div",{className:"grid max-w-lg grid-cols-[auto,auto,1fr] gap-x-3 gap-y-1",children:i.filechanges.map(s=>(0,De.jsxs)(oa.Fragment,{children:[(0,De.jsxs)("div",{className:"text-green-600 flex grow overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:["+",s.insertions]}),(0,De.jsxs)("div",{className:"text-red-600 flex grow overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:["-",s.deletions]}),(0,De.jsx)("div",{className:"whitespace-nowrap flex-grow overflow-hidden overflow-ellipsis",children:s.path})]},s.path))})})}function oF(i){let[s,a]=(0,oa.useState)(!1);return(0,De.jsxs)("div",{title:`By: ${i.value.author}`,className:"flex items-center gap-2 overflow-hidden overflow-ellipsis",children:[(0,De.jsx)(en,{className:"ml-1",dotColor:i.authorColor,authorColorToChange:i.value.author}),(0,De.jsx)(Cc.Popover,{isOpen:s,positions:["left","top","bottom","right"],content:({position:u,childRect:n,popoverRect:p})=>(0,De.jsx)(Cc.ArrowContainer,{position:u,childRect:n,popoverRect:p,arrowSize:10,arrowColor:"white",children:(0,De.jsxs)("div",{className:"card bg-gray-100/50 pr-10 backdrop-blur dark:bg-gray-800/40",children:[(0,De.jsxs)("div",{className:"grid max-w-lg grid-cols-[auto,1fr] gap-x-3 gap-y-1",children:[(0,De.jsx)(ca,{absolute:!0,onClick:()=>a(!1)}),(0,De.jsx)(ja,{keyString:"Hash",value:i.value.hash}),(0,De.jsx)(ja,{keyString:"Author",value:i.value.author}),i.value.committertime===i.value.authortime?(0,De.jsx)(ja,{keyString:"Date",value:`${ch(i.value.committertime*1e3)} (${dh(i.value.committertime)})`}):(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(ja,{keyString:"Date committed",value:`${ch(i.value.committertime*1e3)} (${dh(i.value.committertime)})`}),(0,De.jsx)(ja,{keyString:"Date authored",value:`${ch(i.value.authortime*1e3)} (${dh(i.value.authortime)})`})]}),(0,De.jsx)(ja,{keyString:"Message",value:i.value.message}),(0,De.jsx)(ja,{keyString:"Body",value:i.value.body.length>0?i.value.body:"<none>"}),(0,De.jsx)(ja,{keyString:"File changes",value:i.value.fileChanges.length+" files (+"+i.value.fileChanges.reduce((m,y)=>m+y.insertions,0)+", -"+i.value.fileChanges.reduce((m,y)=>m+y.deletions,0)+")"})]}),(0,De.jsx)(nF,{filechanges:i.value.fileChanges})]})}),onClickOutside:()=>a(!1),children:(0,De.jsx)("p",{onClick:()=>a(!s),className:"cursor-pointer overflow-hidden overflow-ellipsis font-bold opacity-80 hover:opacity-70",children:i.value.message})})]})}function aR(i){let s=Rr(),[a,u]=(0,oa.useState)(null),[n,p]=(0,oa.useState)(10),m=10,{clickedObject:y}=Li(),M=hh();function b(){if(!y)return;p(S=>S+m);let g=new URLSearchParams;g.set("branch",s.repodata2.branch),g.set("repo",s.repodata2.repo),g.set("path",y.path),g.set("count",n+m+""),M.load(`/commits?${g.toString()}`)}return(0,oa.useEffect)(()=>{p(0),b()},[y]),(0,oa.useEffect)(()=>{if(M.state!=="idle")return;let g=M.data;u(g)},[M]),y?a?a.length===0?(0,De.jsx)("h3",{className:"font-bold",children:"No commit history"}):(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("div",{className:"flex justify-between",children:(0,De.jsx)("h3",{className:"font-bold",children:"Commit history"})}),(0,De.jsxs)("div",{children:[(0,De.jsx)(iF,{items:a,count:n}),M.state==="idle"?n<i.commitCount?(0,De.jsx)("span",{onClick:b,className:"whitespace-pre text-xs font-medium opacity-70 hover:cursor-pointer",children:"Show more commits"}):null:(0,De.jsx)("h3",{children:"Loading commits..."})]})]}):(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("h3",{className:"font-bold",children:"Commit history"}),(0,De.jsx)("h3",{children:"Loading commits..."})]}):null}function aF(i,s){let a={};switch(s){case Object.keys(pu)[1]:for(let u of i){let n=u.author;a[n]||(a[n]=[]),a[n].push(u)}break;case Object.keys(pu)[0]:default:for(let u of i){let n=Vu(u.committertime);a[n]||(a[n]=[]),a[n].push(u)}}return a}var Qh=Xt(Ce());function sR(i){let{clickedObject:s}=Li();return s?(0,Qh.jsx)(Qh.Fragment,{children:(0,Qh.jsx)("div",{className:"card bg-white/70 text-black",children:(0,Qh.jsx)(aR,{commitCount:i.commitCount})})}):null}var he=Xt(Ce());function sF(i){let s=i.lastIndexOf("/"),a=i.lastIndexOf("\\");return s!==-1?i.slice(0,s):a!==-1?i.slice(0,a):i}function hR({className:i="",showUnionAuthorsModal:s}){let{setClickedObject:a,clickedObject:u}=Li(),n=ah(),{metricType:p}=Mi(),{state:m}=Qi(),{setPath:y,path:M}=na(),{repodata2:b}=Rr(),g=(0,ii.useRef)(!1),[S,_]=(0,ii.useState)(null),x=(0,ii.useMemo)(()=>{var t;return oi((t=u==null?void 0:u.path)!=null?t:"")},[u]),E=b.commitCounts.get(x),k=hh();(0,ii.useEffect)(()=>{(u==null?void 0:u.type)==="blob"&&E?_(E):B()},[b,u]);function B(){let t=new URLSearchParams;t.set("branch",b.branch),t.set("repo",b.repo),u!=null&&u.path&&(t.set("path",u.path),k.load(`/commitcount?${t.toString()}`))}(0,ii.useEffect)(()=>{if(k.state==="idle"){let t=k.data;_(t)}},[k]);let[T,C]=(0,ii.useState)(null),P=(0,ii.useMemo)(()=>T?T.reduce((t,r)=>t+r.contribs,0):0,[T]),G=hh();(0,ii.useEffect)(()=>{let t=new URLSearchParams;t.set("branch",b.branch),t.set("repo",b.repo),u!=null&&u.path&&(t.set("path",u.path),t.set("isblob",String(u.type==="blob")),G.load(`/authordist?${t.toString()}`))},[u,b]),(0,ii.useEffect)(()=>{var t;if(G.state==="idle"){let r=(t=G.data)!=null?t:[];C(r)}},[G]);let U=rl();(0,ii.useEffect)(()=>{g.current&&(a(null),g.current=!1)},[u,a,m]),(0,ii.useEffect)(()=>{a(t=>hF(b.fileTree,t))},[b,a]);let[V]=Di(),{backgroundColor:I,lightBackground:D}=(0,ii.useMemo)(()=>{var h,f;if(!u)return{backgroundColor:null,color:null};let t=(h=V.get(p))==null?void 0:h.colormap,r=(f=t==null?void 0:t.get(u.path))!=null?f:U?"#808080":"#262626",o=r?Wu(r):null;return{backgroundColor:r,color:o,lightBackground:o==="#000000"}},[u,V,p,U]);if(!u)return null;let z=u.type==="blob",d=x3(u.name.split("."));return(0,he.jsxs)("div",{className:Wr(i,"card flex flex-col gap-2 transition-colors",{"text-gray-100":!D,"text-gray-800":D}),...I?{style:{backgroundColor:I}}:{},children:[(0,he.jsx)("div",{className:"flex",children:(0,he.jsxs)("h2",{className:"card__title grid w-full grid-cols-[auto,1fr,auto] gap-2",children:[(0,he.jsx)(Ks.Icon,{path:u.type==="blob"?H8:lh,size:"1.25em"}),(0,he.jsx)("span",{className:"truncate",title:u.name,children:u.name}),(0,he.jsx)(ca,{absolute:!1,onClick:()=>a(null)})]})}),(0,he.jsxs)(rR,{children:[(0,he.jsxs)(Ic,{title:"General",children:[(0,he.jsxs)("div",{className:"flex grow flex-col gap-2",children:[(0,he.jsxs)("div",{className:"grid grid-cols-[auto,1fr] gap-x-3 gap-y-1",children:[(0,he.jsx)(uF,{count:S!=null?S:0}),z?(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(dF,{size:u.sizeInBytes,isBinary:!1}),(0,he.jsx)(lF,{epoch:b.lastChanged.get(x)})]}):(0,he.jsx)(fF,{clickedTree:u}),(0,he.jsx)(cF,{path:u.path})]}),(0,he.jsx)("div",{className:"card bg-white/70 text-black",children:(0,he.jsx)(pF,{authors:T,contribSum:P,fetcher:G})}),(0,he.jsxs)("button",{className:"btn btn--outlined",onClick:s,children:[(0,he.jsx)(Ks.Icon,{path:fh}),"Group authors"]})]}),(0,he.jsx)("div",{className:"mt-2 flex gap-2",children:z?(0,he.jsxs)(he.Fragment,{children:[(0,he.jsxs)(qo,{className:"w-max",method:"post",action:n.pathname,children:[(0,he.jsx)("input",{type:"hidden",name:"ignore",value:u.path}),(0,he.jsxs)("button",{className:"btn btn--outlined",type:"submit",disabled:m!=="idle",onClick:()=>{g.current=!0},title:"Hide this file",children:[(0,he.jsx)(Ks.Icon,{path:Zu}),"Hide"]})]}),u.name.includes(".")?(0,he.jsxs)(qo,{className:"w-max",method:"post",action:n.pathname,children:[(0,he.jsx)("input",{type:"hidden",name:"ignore",value:`*.${d}`}),(0,he.jsxs)("button",{className:"btn btn--outlined",type:"submit",disabled:m!=="idle",onClick:()=>{g.current=!0},children:[(0,he.jsx)(Ks.Icon,{path:Zu}),(0,he.jsxs)("span",{children:["Hide .",d," files"]})]})]}):null]}):(0,he.jsx)(he.Fragment,{children:(0,he.jsxs)(qo,{method:"post",action:n.pathname,children:[(0,he.jsx)("input",{type:"hidden",name:"ignore",value:u.path}),(0,he.jsxs)("button",{className:"btn btn--outlined",type:"submit",disabled:m!=="idle",onClick:()=>{g.current=!0,y(sF(M))},children:[(0,he.jsx)(Ks.Icon,{path:Zu}),"Hide this folder"]})]})})})]}),(0,he.jsx)(Ic,{title:"Commits",children:(0,he.jsx)(sR,{commitCount:S!=null?S:0})})]})]})}function hF(i,s){if(s===null)return null;let a=i,u=s.path.split("/");for(let n=0;n<u.length;n++)for(let p of a.children){if(p.hash===s.hash)return p;if(p.type==="tree"){let m=p.name.split("/");if(m[0]===u[n]){a=p,n+=m.length-1;break}}}return a}function fF(i){let s=i.clickedTree.children.filter(u=>u.type==="tree").length,a=i.clickedTree.children.length-s;return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Files"}),(0,he.jsx)("p",{className:"break-all text-sm",children:a}),(0,he.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Folders"}),(0,he.jsx)("p",{className:"break-all text-sm",children:s})]})}function uF(i){var s;return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Commits"}),(0,he.jsx)("p",{className:"break-all text-sm",children:(s=i.count)!=null?s:"unknown"})]})}function lF(i){return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Last changed"}),(0,he.jsx)("p",{className:"break-all text-sm",children:i.epoch?Vu(i.epoch):"unknown"})]})}function cF(i){let{state:s}=Qi(),{clickedObject:a}=Li();return a?(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Located at"}),(0,he.jsxs)("div",{className:"grid grid-cols-[1fr,auto] items-center justify-between gap-2 break-all text-sm",children:[(0,he.jsx)("p",{className:"truncate",title:i.path,children:i.path}),(0,he.jsxs)(qo,{method:"post",action:location.pathname,title:a.name,children:[(0,he.jsx)("input",{type:"hidden",name:"open",value:a.path}),(0,he.jsx)("button",{className:"btn--icon",disabled:s!=="idle",children:(0,he.jsx)(Ks.Icon,{path:u3,size:"1.25em",className:"w-max",title:a.type==="blob"?"Open file in default app":"Browse folder in system explorer"})})]})]})]}):null}function dF(i){var a;let s=tR((a=i.size)!=null?a:0);return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("div",{className:"flex items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Size"}),(0,he.jsxs)("p",{className:"break-all text-sm",children:[s.value," ",s.unit," ",(0,he.jsx)("span",{className:"opacity-50",children:i.isBinary?(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("br",{}),"(binary file)"]}):null})]})]})}var Pc=2;function pF(i){var p,m,y,M,b,g,S,_,x,E;let s=(0,ii.useId)(),[a,u]=(0,ii.useState)(!0),n=((m=(p=i.authors)==null?void 0:p.length)!=null?m:0)>Pc+1;return(0,he.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,he.jsxs)("div",{className:`flex justify-between ${n?"cursor-pointer hover:opacity-70":""}`,children:[(0,he.jsx)("label",{className:"label grow",htmlFor:s,children:(0,he.jsx)("h3",{className:"font-bold",children:"Author distribution"})}),n?(0,he.jsx)(vh,{id:s,open:!a,onClick:()=>u(!a)}):null]}),(0,he.jsx)("div",{className:"grid grid-cols-[1fr,auto] gap-1",children:i.fetcher.state!=="idle"?(0,he.jsx)("p",{children:"Loading authors..."}):(0,he.jsx)(he.Fragment,{children:n?(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(nl,{show:!0,items:(M=(y=i.authors)==null?void 0:y.slice(0,Pc))!=null?M:[],contribSum:i.contribSum}),(0,he.jsx)(nl,{show:!a,items:(g=(b=i.authors)==null?void 0:b.slice(Pc))!=null?g:[],contribSum:i.contribSum}),a?(0,he.jsxs)("button",{className:"text-left text-xs opacity-70 hover:opacity-100",onClick:()=>u(!a),children:["+ ",((_=(S=i.authors)==null?void 0:S.slice(Pc))!=null?_:[]).length," more"]}):null]}):(0,he.jsx)(he.Fragment,{children:((x=i.authors)!=null?x:[]).length>0&&mF(i.authors)?(0,he.jsx)(nl,{show:!0,items:(E=i.authors)!=null?E:[],contribSum:i.contribSum}):(0,he.jsx)("p",{children:"No authors found"})})})})]})}function mF(i){if(!i)return!1;for(let{contribs:s}of i)if(s>0)return!0;return!1}var Ha=Xt(pr());var Dc=Xt(tn());var Mr=Xt(Ce()),vF="Git Truck",gF="Analyzing | Git Truck",fR=(0,Ha.memo)(function(){var x;let s=el(),{repodata2:a,repo:u}=Rr(),n=Qi(),p=ah(),m=$8(),[y,M]=(0,Ha.useState)(!1),[b,g]=(0,Ha.useState)(!1);(0,Ha.useEffect)(()=>{document.title=y?gF:vF},[y]);let S=E=>{M(!0),m(["",u.name,E].join("/"))};(0,Ha.useEffect)(()=>{n.state==="idle"&&M(!1)},[n.state]);let _=new Date(a.lastRunInfo.time).toISOString();return(0,Mr.jsx)("div",{className:"flex flex-col gap-2",children:(0,Mr.jsxs)("div",{className:"card",children:[(0,Mr.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,Mr.jsxs)("div",{className:"relative flex items-center",children:[(0,Mr.jsx)("button",{className:"btn--icon btn--primary",title:"See analysis details",onClick:()=>g(!0),children:(0,Mr.jsx)(Dc.Icon,{path:Q8,size:"1.5em"})}),(0,Mr.jsxs)("div",{className:Wr("card absolute left-0 top-0 z-10 h-max w-max shadow transition-opacity",{"hidden opacity-0":!b}),children:[(0,Mr.jsx)("h2",{className:"card__title",children:"Analysis details"}),(0,Mr.jsx)(ca,{onClick:()=>g(!1)}),(0,Mr.jsxs)("div",{className:"grid auto-rows-fr grid-cols-2 gap-0",children:[(0,Mr.jsx)("span",{children:"Analyzed"}),(0,Mr.jsx)("time",{className:"text-right",dateTime:_,title:_,children:s?ch(a.lastRunInfo.time):""}),(0,Mr.jsx)("span",{children:"As of commit"}),(0,Mr.jsx)("span",{className:"text-right",children:(0,Mr.jsxs)(ph,{inline:!0,children:["#",a.lastRunInfo.hash.slice(0,7)]})}),(0,Mr.jsx)("span",{children:"Files analyzed"}),(0,Mr.jsx)("span",{className:"text-right",children:(x=a.fileCount)!=null?x:0})]})]})]}),(0,Mr.jsx)("h2",{className:"card__title grow justify-start gap-2",title:u.name,children:u.name})]}),(0,Mr.jsxs)("div",{className:"flex w-full auto-cols-max place-items-stretch gap-2",children:[(0,Mr.jsxs)(ts,{className:"btn btn--primary grow",to:"..",title:"See all repositories",children:[(0,Mr.jsx)(Dc.Icon,{path:L8,size:.75}),(0,Mr.jsx)("p",{children:"See more repositories"})]}),(0,Mr.jsxs)(qo,{method:"post",action:p.pathname,onSubmit:()=>{M(!0)},children:[(0,Mr.jsx)("input",{type:"hidden",name:"refresh",value:"true"}),(0,Mr.jsxs)("button",{className:"btn",disabled:n.state!=="idle",children:[(0,Mr.jsx)(Dc.Icon,{path:p3,size:"1.25em"}),y?"Analyzing...":"Refresh"]})]})]}),(0,Mr.jsx)(D3,{disabled:y,onChange:E=>S(E.target.value),defaultValue:a.branch,headGroups:u.refs,analyzedHeads:u.analyzedHeads},a.branch)]})})});var Lc=Xt(tn()),Oc=Xt(pr()),Ni=Xt(Ce());function bF(i){if(!i.includes("/"))return i;let s=i.split("/");return s[s.length-1]}var uR=(0,Oc.memo)(function(){let s=ah(),[a,u]=Qu(!1),n=Qi(),{repodata2:p}=Rr(),m=(0,Oc.useId)();return(0,Ni.jsxs)("div",{className:"card flex flex-col gap-2",children:[(0,Ni.jsx)("h2",{className:"card__title",children:(0,Ni.jsxs)("button",{className:"flex justify-start gap-2 hover:opacity-70",onClick:()=>u(!a),children:[(0,Ni.jsx)(Lc.Icon,{path:qd,size:"1.25em"}),"Hidden files (",p.hiddenFiles.length,")",(0,Ni.jsx)(vh,{id:m,className:"absolute right-2 top-2",open:a})]})}),a?(0,Ni.jsx)("div",{children:p.hiddenFiles.map(y=>(0,Ni.jsxs)("div",{className:"grid grid-cols-[auto_1fr] gap-2",title:y,children:[(0,Ni.jsxs)(qo,{className:"w-4",method:"post",action:s.pathname,children:[(0,Ni.jsx)("input",{type:"hidden",name:"unignore",value:y}),(0,Ni.jsxs)("button",{className:"btn--icon btn--hover-swap h-4",title:"Show file",disabled:n.state!=="idle",children:[(0,Ni.jsx)(Lc.Icon,{path:qd,className:"inline-block h-full"}),(0,Ni.jsx)(Lc.Icon,{path:F8,className:"hover-swap inline-block h-full"})]})]}),(0,Ni.jsx)("span",{className:"text-sm opacity-70",children:bF(y)})]},y))}):null]})});var h6=Xt(tn());var Pr=Xt(Ce());function lR({hoveredObject:i,metricCache:s}){var g,S;let[a,u,n,p]=s.legend,m=100/a,y=!1,M=0,b=(S=(g=Li().clickedObject)!=null?g:i)!=null?S:null;return Un(b)&&(y=!0,M=m/2+m*p(b)),(0,Pr.jsx)(Pr.Fragment,{children:(0,Pr.jsxs)("div",{className:"relative",children:[(0,Pr.jsx)("div",{className:"flex",children:[...Array(a)].map((_,x)=>a>=4?(0,Pr.jsx)(yF,{width:m,color:n(x),text:u(x),top:x%2===0},`legend-${x}`):(0,Pr.jsx)(wF,{width:m,color:n(x),text:u(x)},`legend-${x}`))}),(0,Pr.jsx)(Yu,{offset:M,visible:y})]})})}function yF({width:i,color:s,text:a,top:u}){return u?(0,Pr.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${i}%`},children:[(0,Pr.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:a}),(0,Pr.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,Pr.jsx)("div",{style:{backgroundColor:s,height:"20px"}}),(0,Pr.jsx)("div",{style:{textAlign:"left",height:"40px"}})]}):(0,Pr.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${i}%`},children:[(0,Pr.jsx)("div",{style:{textAlign:"left",height:"32px"}}),(0,Pr.jsx)("div",{style:{backgroundColor:s,height:"20px"}}),(0,Pr.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-7px"},children:"\\"}),(0,Pr.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-4px"},children:a})]})}function wF({width:i,color:s,text:a}){return(0,Pr.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${i}%`},children:[(0,Pr.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:a}),(0,Pr.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,Pr.jsx)("div",{style:{backgroundColor:s,height:"20px"}})]})}var cR=Xt(pr());var Co=Xt(Ce());function dR({hoveredObject:i,metricCache:s}){var E,k;let[a,u,n,p,m,y]=s.legend,{clickedObject:M}=Li(),b=(k=(E=M==null?void 0:M.path)!=null?E:i==null?void 0:i.path)!=null?k:null,g=b?s.colormap.get(b):null,S=g?Ju(g):-1,_=(0,cR.useMemo)(()=>{let B=Ju(m),C=Ju(y)-B;return C===0?1:(S-B)/C},[S,y,m]),x=b!==null;return(0,Co.jsxs)(Co.Fragment,{children:[(0,Co.jsxs)("div",{className:"flex justify-between",children:[(0,Co.jsx)("span",{className:"font-bold",title:n,children:a}),(0,Co.jsx)("span",{className:"font-bold",title:p,children:u})]}),(0,Co.jsx)("div",{className:"relative h-6 w-full rounded-full",style:{backgroundImage:`linear-gradient(to right, ${m}, ${y})`},children:(0,Co.jsx)(Yu,{offset:_*100,visible:x})})]})}var pR=Xt(pr());var pi=Xt(Ce());function mR({hoveredObject:i,showUnionAuthorsModal:s,className:a=""}){var _;let u=sh(),{metricType:n}=Mi(),[p]=Di(),m=(0,pR.useDeferredValue)(i),{repo:y}=Rr(),M=Qi(),b=(_=p.get(n))!=null?_:void 0;if(b===void 0)return null;let g=(0,pi.jsx)(pi.Fragment,{});switch(Zk(n)){case"POINT":g=(0,pi.jsx)(Y3,{metricCache:b,hoveredObject:m});break;case"GRADIENT":g=(0,pi.jsx)(dR,{metricCache:b,hoveredObject:m});break;case"SEGMENTS":g=(0,pi.jsx)(lR,{metricCache:b,hoveredObject:m});break}function S(){let x=new FormData;x.append("rerollColors",""),u(x,{action:`/${co(y.name,y.currentHead)}`,method:"post"})}return(0,pi.jsxs)("div",{className:`card flex-shrink-0 overflow-hidden ${a}`,children:[(0,pi.jsx)("h2",{className:"card__title",children:"Legend"}),(0,pi.jsx)("h3",{className:"card__subtitle",children:Jh[n]}),(0,pi.jsx)("p",{className:"card-p",children:Gk(n)}),n==="TOP_CONTRIBUTOR"||n==="SINGLE_AUTHOR"?(0,pi.jsxs)(pi.Fragment,{children:[(0,pi.jsxs)("button",{className:"btn",onClick:s,children:[(0,pi.jsx)(h6.Icon,{path:fh}),"Group authors"]}),(0,pi.jsxs)("button",{className:"btn",disabled:M.state!=="idle",onClick:S,children:[(0,pi.jsx)(h6.Icon,{path:U8}),"Generate new author colors"]})]}):null,g]})}var vR=Xt(tn());var mu=Xt(Ce());function Gs(i){let s=Object.entries(i.enum);return(0,mu.jsx)("div",{className:"flex flex-wrap gap-0",children:s.map(([a,u])=>(0,mu.jsxs)("button",{className:Wr("btn flex h-auto w-max justify-between gap-2 rounded-lg px-1 py-1 text-xs/none",{"btn--primary":a===i.defaultValue,"btn--outlined border-transparent hover:text-blue-500":a!==i.defaultValue}),onClick:()=>i.onChange(a),children:[(0,mu.jsx)(vR.default,{path:i.iconMap[a],size:"1rem",color:"inherit"}),u]},a))})}var Nn=Xt(tn()),Nc=Xt(pr());var Ne=Xt(Ce()),gR=(0,Nc.memo)(function(){let[s,a]=P3();console.log(s);let{metricType:u,chartType:n,depthType:p,sizeMetric:m,hierarchyType:y,transitionsEnabled:M,renderCutoff:b,setTransitionsEnabled:g,labelsVisible:S,setLabelsVisible:_,setMetricType:x,setChartType:E,setDepthType:k,setHierarchyType:B,setSizeMetricType:T,setRenderCutoff:C}=Mi(),[P,G]=$3("LINK_METRIC_AND_SIZE_METRIC",!1),U={FILE_TYPE:K8,LAST_CHANGED:Fd,MOST_COMMITS:zd,SINGLE_AUTHOR:D8,TOP_CONTRIBUTOR:c3,TRUCK_FACTOR:Ud},V={FILE_SIZE:m3,EQUAL_SIZE:v3,MOST_COMMITS:zd,TRUCK_FACTOR:Ud,LAST_CHANGED:Fd},I={BUBBLE_CHART:N8,TREE_MAP:Ld},D={NESTED:Z8,FLAT:Ld},z={SYSTEM:Nd,LIGHT:M3,DARK:n3},d={FILE_TYPE:"FILE_SIZE",TRUCK_FACTOR:"TRUCK_FACTOR",TOP_CONTRIBUTOR:"TRUCK_FACTOR",MOST_COMMITS:"MOST_COMMITS",SINGLE_AUTHOR:"TRUCK_FACTOR",LAST_CHANGED:"LAST_CHANGED"},[t,r]=(0,Nc.useTransition)();return(0,Ne.jsx)(Ne.Fragment,{children:(0,Ne.jsxs)("div",{className:"card",children:[(0,Ne.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,Ne.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,Ne.jsx)(Nn.Icon,{path:d3,size:"1.25em"}),"Layout"]}),(0,Ne.jsx)(Gs,{enum:e6,defaultValue:n,onChange:o=>E(o),iconMap:I})]}),(0,Ne.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,Ne.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,Ne.jsx)(Nn.Icon,{path:l3,size:"1.25em"}),"Color"]}),(0,Ne.jsx)(Gs,{enum:Jh,defaultValue:u,onChange:o=>{if(x(o),!P)return;let h=d[o];h&&T(h)},iconMap:U})]}),(0,Ne.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,Ne.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,Ne.jsx)(Nn.Icon,{path:Y8,size:"1.25em"}),"Size"]}),(0,Ne.jsx)(Gs,{enum:Rc,defaultValue:m,onChange:o=>T(o),iconMap:V})]}),(0,Ne.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,Ne.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,Ne.jsx)(Nn.Icon,{path:j8,size:"1.25em"}),"Hiearchy"]}),(0,Ne.jsx)(Gs,{enum:r6,defaultValue:y,onChange:o=>B(o),iconMap:D})]}),y==="NESTED"?(0,Ne.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,Ne.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,Ne.jsx)(Nn.Icon,{path:w3,size:"1.25em"}),"Depth"]}),(0,Ne.jsx)(Gs,{enum:Bc,defaultValue:p,onChange:o=>k(o),iconMap:Wk})]}):null,(0,Ne.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,Ne.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,Ne.jsx)(Nn.Icon,{path:b3,size:"1.25em"}),"Theme"]}),(0,Ne.jsx)(Gs,{enum:C3,defaultValue:s,onChange:o=>a(o),iconMap:z})]}),(0,Ne.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,Ne.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,Ne.jsx)(Nn.Icon,{path:Nd,size:"1.25em"}),"Settings"]}),(0,Ne.jsxs)(mh,{className:"text-sm",checked:Boolean(P),onChange:o=>{G(o.target.checked),o.target.checked&&T(d[u])},title:"Enable to sync size metric with color metric",children:[(0,Ne.jsx)(Nn.Icon,{className:"ml-1.5",path:e3,size:"1.25em"}),(0,Ne.jsx)("span",{children:"Link size and color option"})]}),(0,Ne.jsxs)(mh,{className:"text-sm",checked:M,onChange:o=>g(o.target.checked),title:"Disable to improve performance when zooming",children:[(0,Ne.jsx)(Nn.Icon,{className:"ml-1.5",path:y3,size:"1.25em"}),"Transitions"]}),(0,Ne.jsxs)(mh,{className:"text-sm",checked:S,onChange:o=>_(o.target.checked),title:"Disable to improve performance",children:[(0,Ne.jsx)(Nn.Icon,{className:"ml-1.5",path:t3,size:"1.25em"}),"Labels"]}),(0,Ne.jsxs)("label",{className:"label flex w-full items-center justify-start gap-2 text-sm",title:"Adjust the item rendering size threshold",children:[(0,Ne.jsxs)("span",{className:"flex grow items-center gap-2",children:[(0,Ne.jsx)(Nn.Icon,{className:"ml-1.5",path:z8,size:"1.25em"}),"Pixel render cut-off ",t?(0,Ne.jsx)("img",{src:_3,alt:"...",className:"h-5"}):""]}),(0,Ne.jsx)("input",{type:"number",min:0,defaultValue:b,className:"mr-1 w-12 place-self-end border-b-2",onChange:o=>r(()=>C(o.target.valueAsNumber))})]})]})]})})});var dn=Xt(pr());var qc=Xt(pr()),f6=(0,qc.createContext)(void 0);function vu(){let i=(0,qc.useContext)(f6);if(!i)throw new Error("useSearch must be used within a SearchProvider");return i}var zc="options";var u6=Xt(pr()),bR=(0,u6.createContext)(null);function Uc(){return{startDate:null,endDate:null,setStartDate:()=>{throw new Error("No setStartDate provided")},setEndDate:()=>{throw new Error("No setEndDate provided")}}}var Ka=Xt(Ce());function yR({children:i,data:s}){let[a,u]=(0,dn.useState)(null),[n,p]=(0,dn.useState)(null),[m,y]=(0,dn.useState)({}),[M,b]=(0,dn.useState)(s.repo.name),[g,S]=(0,dn.useState)(null),_=(0,dn.useMemo)(()=>{console.time("metrics");let k=Kk(s,s.repodata2.colorSeed,s.repodata2.authorColors);return console.timeEnd("metrics"),k},[s]),x=(0,dn.useMemo)(()=>({...Uc(),...n,setStartDate:k=>{p(B=>({...B!=null?B:Uc(),startDate:k}))},setEndDate:k=>{p(B=>({...B!=null?B:Uc(),endDate:k}))}}),[n]),E=(0,dn.useMemo)(()=>({...Ci(),...a,setMetricType:k=>u(B=>({...B!=null?B:Ci(),metricType:k})),setChartType:k=>u(B=>({...B!=null?B:Ci(),chartType:k})),setDepthType:k=>u(B=>({...B!=null?B:Ci(),depthType:k})),setHierarchyType:k=>u(B=>({...B!=null?B:Ci(),hierarchyType:k})),setCommitSortingMethodsType:k=>u(B=>({...B!=null?B:Ci(),commitSortingMethodsType:k})),setCommitSortingOrdersType:k=>u(B=>({...B!=null?B:Ci(),commitSortingOrdersType:k})),setCommitSearch:k=>u(B=>({...B!=null?B:Ci(),commitSearch:k})),setSizeMetricType:k=>u(B=>({...B!=null?B:Ci(),sizeMetric:k})),setHoveredBlob:k=>u(B=>({...B!=null?B:Ci(),hoveredBlob:k})),setClickedObject:k=>u(B=>({...B!=null?B:Ci(),clickedObject:k})),setTransitionsEnabled:k=>u(B=>({...B!=null?B:Ci(),transitionsEnabled:k})),setLabelsVisible:k=>u(B=>({...B!=null?B:Ci(),labelsVisible:k})),setRenderCutoff:k=>u(B=>({...B!=null?B:Ci(),renderCutoff:k}))}),[a]);return(0,dn.useEffect)(()=>{let k=!1;return a&&(typeof requestIdleCallback=="function"?requestIdleCallback(()=>{k||localStorage.setItem(zc,JSON.stringify(a))}):localStorage.setItem(zc,JSON.stringify(a))),()=>{k=!0}},[a]),(0,dn.useEffect)(()=>{let k=localStorage.getItem(zc);k&&u({...Ci(JSON.parse(k)),hasLoadedSavedOptions:!0})},[]),(0,Ka.jsx)(S3.Provider,{value:s,children:(0,Ka.jsx)(Kd.Provider,{value:_,children:(0,Ka.jsx)(n6.Provider,{value:E,children:(0,Ka.jsx)(f6.Provider,{value:{searchResults:m,setSearchResults:y},children:(0,Ka.jsx)(o6.Provider,{value:{path:M,setPath:b},children:(0,Ka.jsx)(Zd.Provider,{value:{clickedObject:g,setClickedObject:S},children:(0,Ka.jsx)(bR.Provider,{value:x,children:i})})})})})})})}var qi=Xt(pr());var l6=Xt(tn());var bi=Xt(Ce());function MF(i,s){let a={};function u(n){for(let p of n.children)p.name.toLowerCase().includes(s.toLowerCase())&&s&&(a[p.path]=p),p.type==="tree"&&u(p)}return u(i),a}var wR=(0,qi.memo)(function(){let s=(0,qi.useRef)(null),[a,u]=(0,qi.useTransition)(),[n,p]=(0,qi.useState)(""),{searchResults:m,setSearchResults:y}=vu(),M=(0,qi.useMemo)(()=>Object.values(m),[m]),b=(0,qi.useId)(),{repodata2:g}=Rr();return(0,qi.useEffect)(()=>{let S=_=>{var x;_.ctrlKey&&_.key==="f"&&(_.preventDefault(),(x=s.current)==null||x.focus())};return document.body.addEventListener("keydown",S),()=>{document.body.removeEventListener("keydown",S)}},[]),(0,bi.jsxs)(bi.Fragment,{children:[(0,bi.jsxs)("div",{className:"card sticky top-0 z-10 flex flex-col gap-2",children:[(0,bi.jsxs)("h2",{className:"card__title justify-start gap-2",children:[(0,bi.jsx)(l6.Icon,{path:r3,size:"1.25em"}),"Search"]}),(0,bi.jsxs)("div",{className:"flex gap-2",children:[(0,bi.jsx)("input",{className:"input",ref:s,id:b,type:"search",placeholder:"Search for a file or folder...",value:n,onChange:S=>{let _=S.target.value;p(_),u(()=>{_.trim()===""&&y({}),y(MF(g.fileTree,_))})}}),(0,bi.jsx)("button",{className:"btn btn--primary",onClick:()=>{s.current&&(p(""),u(()=>{y({})}))},disabled:n.trim()==="",children:"Clear"})]}),a||n.length>0?(0,bi.jsx)("p",{className:"card-p",children:a?"Searching...":n.length>0?`${M.length} results`:null}):null]}),M.length>0?(0,bi.jsx)(_F,{}):null]})}),_F=(0,qi.memo)(function(){let{setPath:s}=na(),{setClickedObject:a}=Li(),{searchResults:u}=vu();function n(p){if(a(p),p.type==="tree")s(p.path);else{let m=k3(p.path);s(E3(p.path.split(m)).join(m))}}return(0,bi.jsx)("div",{className:"card relative gap-0",children:Object.values(u).map(p=>(0,bi.jsxs)("button",{className:"flex items-center justify-start gap-2 text-sm font-bold opacity-70 hover:opacity-100",title:p.path,value:p.path,onClick:()=>n(p),children:[(0,bi.jsx)(l6.Icon,{path:p.type==="tree"?lh:G8,size:.75,className:"shrink-0"}),(0,bi.jsx)("span",{className:"truncate",children:p.name})]},p.path))})});var aa=Xt(pr());var d6=Xt(tn());var MR=Xt(P8()),Ve=Xt(Ce());function _R({open:i,onClose:s}){let{repo:a,repodata2:u}=Rr(),n=sh(),{authors:p}=u,m=u.authorUnions,[y,M]=(0,aa.useState)([]),[b,g]=(0,aa.useState)(""),S=Qi(),[,_]=Di(),[,x]=(0,aa.useTransition)(),E=(0,aa.useRef)(null);(0,aa.useEffect)(()=>{if(E.current){if(i){E.current.showModal();return}E.current.close()}},[i]);let k=m.reduce((r,o)=>[...r,...o],[]).sort(c6);function B(r){let o=m.filter((f,v)=>v!==r),h=new FormData;h.append("unionedAuthors",JSON.stringify(o)),n(h,{action:`/${co(a.name,a.currentHead)}`,method:"post"})}function T(){let r=new FormData;r.append("unionedAuthors",JSON.stringify([])),n(r,{action:`/${co(a.name,a.currentHead)}`,method:"post"})}function C(){if(y.length===0)return;let r=new FormData;r.append("unionedAuthors",JSON.stringify([...m,y])),n(r,{action:`/${co(a.name,a.currentHead)}`,method:"post"}),M([])}function P(r,o){let h=m.map((v,w)=>w===o?[r,...v.filter(l=>l!==r)]:v),f=new FormData;f.append("unionedAuthors",JSON.stringify(h)),n(f,{action:`/${co(a.name,a.currentHead)}`,method:"post"})}let G=S.state!=="idle",U=p.filter(r=>!k.includes(r)).slice(0).sort(c6);T3("Escape",s);let V=r=>{var o;return(o=_.get(r))!=null?o:"#333"};if(!i)return null;let I=U.length===0?"All detected authors have been grouped":"Select the authors that you know are the same person",D=U.filter(r=>r.toLowerCase().includes(b.toLowerCase())),z=D.map(r=>(0,Ve.jsx)(mh,{className:"hover:opacity-70",checked:y.includes(r),onChange:o=>{var f;let h=(f=o.target)!=null&&f.checked?[...y,r]:y.filter(v=>v!==r);M(h)},children:(0,Ve.jsxs)("div",{className:"inline-flex flex-row place-items-center gap-2",children:[(0,Ve.jsx)(en,{dotColor:V(r)}),r]})},r)),d=m.map((r,o)=>{let h=r[0],f=S.state!=="idle",v=V(h);return(0,Ve.jsxs)("div",{className:"card group m-0 flex h-full flex-col p-2",children:[(0,Ve.jsxs)("div",{className:"inline-flex flex-row place-items-center gap-2",children:[(0,Ve.jsx)(en,{dotColor:v}),(0,Ve.jsx)("b",{className:"truncate",title:h,children:h})]}),r.slice(1).sort(c6).map(w=>(0,Ve.jsx)(t,{alias:w,onClick:()=>P(w,o),disabled:f},w)),(0,Ve.jsx)("div",{className:"grow"}),(0,Ve.jsxs)("div",{className:"flex items-end justify-end gap-2 opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:[(0,Ve.jsx)("button",{className:"btn",title:"Add selected authors to this group",onClick:()=>{let w=m.map(([e,...c],A)=>A===o?[e,...c,...y]:[e,...c]),l=new FormData;l.append("unionedAuthors",JSON.stringify(w)),n(l,{action:`/${co(a.name,a.currentHead)}`,method:"post"}),M([])},disabled:f||y.length===0,children:"Add selected"}),(0,Ve.jsx)("button",{className:"btn",onClick:()=>B(o),title:"Ungroup",disabled:f,children:"Ungroup"})]})]},o)});return(0,MR.createPortal)((0,Ve.jsx)("dialog",{ref:E,"aria-modal":!0,className:"z-10 m-auto flex h-full w-full flex-col items-start justify-stretch bg-transparent text-inherit backdrop:bg-gray-500/75 backdrop:p-0",children:(0,Ve.jsxs)("div",{className:"card m-auto grid h-full w-full max-w-screen-2xl grow grid-cols-[1fr,1fr] grid-rows-[max-content_max-content_max-content_1fr_max-content] gap-2 overflow-hidden shadow",children:[(0,Ve.jsx)("h2",{className:"text-2xl",children:"Group authors"}),(0,Ve.jsx)(ca,{absolute:!1,className:"justify-self-end",onClick:s}),(0,Ve.jsxs)("h3",{className:"text-center text-lg font-bold",children:["Ungrouped authors (",U.length,")"]}),(0,Ve.jsx)("h3",{className:"text-center text-lg font-bold",children:"Grouped authors"}),(0,Ve.jsx)("div",{className:"flex justify-end gap-2",children:(0,Ve.jsxs)("button",{className:"btn btn--primary justify-self-end",onClick:C,title:"Group the selected authors",disabled:G||y.length===0,children:[(0,Ve.jsx)(d6.Icon,{path:fh,size:1}),"Create group"]})}),(0,Ve.jsx)("div",{className:"flex justify-end gap-4",children:(0,Ve.jsx)("button",{className:"btn btn--danger",disabled:G||m.length===0,onClick:()=>{confirm("Are you sure you want to ungroup all grouped authors?")&&T()},children:"Ungroup all"})}),(0,Ve.jsx)("div",{className:"overflow-y-auto",children:(0,Ve.jsxs)("div",{className:"flex h-min min-h-0 flex-col gap-2 rounded-md bg-white p-4 pt-2 shadow dark:bg-gray-700",children:[(0,Ve.jsxs)("div",{className:"sticky top-0 flex gap-2 bg-inherit pt-2",children:[(0,Ve.jsx)("input",{className:"input min-w-0",type:"search",placeholder:"Filter...",disabled:U.length===0,onChange:r=>x(()=>g(r.target.value))}),(0,Ve.jsx)("button",{disabled:G||y.length===0,onClick:()=>M([]),className:"btn btn--outlined w-max flex-grow",title:"Clear selection",children:"Clear"}),(0,Ve.jsx)("button",{disabled:U.length===0,onClick:()=>y.length===D.length?M([]):M(r=>Array.from(new Set([...r,...D]))),className:"btn btn--outlined w-max flex-grow",title:"Clear selection",children:y.length===D.length?"Deselect all":"Select all"})]}),z.length>0?z:(0,Ve.jsx)("p",{className:"place-self-center",children:b.length>0?"No authors found":"All authors have been grouped"})]})}),(0,Ve.jsx)("div",{className:"overflow-y-auto",children:(0,Ve.jsx)("div",{className:"grid h-min min-h-0 grid-cols-1 gap-4 rounded-md bg-white p-4 shadow lg:grid-cols-2 xl:grid-cols-3 dark:bg-gray-700",children:m.length>0?d:(0,Ve.jsx)("p",{className:"place-self-center",children:"No authors have been grouped yet"})})}),(0,Ve.jsxs)("div",{className:"col-span-2 mr-6 grid w-full grid-cols-2 gap-4",children:[(0,Ve.jsx)("p",{children:I}),(0,Ve.jsx)("button",{className:"btn btn--primary justify-self-end",onClick:s,children:"Done"})]})]})}),document.body);function t({alias:r,onClick:o,disabled:h}){return(0,Ve.jsxs)("button",{className:"btn--icon flex grid-flow-col gap-2 text-sm [&:hover>svg]:opacity-50 [&>svg]:opacity-0",disabled:h,onClick:o,title:"Make display name for this grouping",children:[(0,Ve.jsx)(d6.Icon,{path:O8,size:.75}),(0,Ve.jsx)("label",{title:r,className:"label truncate",children:r})]},r)}}var c6=(i,s)=>i.toLowerCase().localeCompare(s.toLowerCase());var Fc=Xt(tn()),gu=Xt(pr());var ho=Xt(Ce());function SR(){let{repo:i}=Rr(),{path:s,setPath:a}=na(),u=(0,gu.useMemo)(()=>{let n=s,p=[];for(let m=0;m<8&&n!=="";m++){let y=n.lastIndexOf("/");p.push([n.substring(y+1),n]),n=n.substring(0,y)}return n!==""&&(p=p.slice(0,p.length-1),p.push(["...",""]),p.push([i.name,i.name])),p.reverse()},[s,i.name]);return(0,ho.jsx)("div",{className:"flex items-center gap-1",children:u.length>1?u.map(([n,p],m)=>p===""||m===u.length-1?p===""?(0,ho.jsxs)(gu.Fragment,{children:[(0,ho.jsx)("span",{className:"font-bold",children:n}),(0,ho.jsx)(Fc.default,{path:uh,size:1})]},p):(0,ho.jsx)("span",{className:"font-bold",children:n},p):(0,ho.jsxs)(gu.Fragment,{children:[(0,ho.jsxs)("button",{className:"card flex flex-row gap-2 px-2 py-1 font-bold hover:opacity-70",onClick:()=>a(p),children:[m===0?(0,ho.jsx)(Fc.default,{path:J8,size:1}):null,n]}),(0,ho.jsx)(Fc.default,{path:uh,size:1})]},p)):null})}var AR=Xt(tn()),kR=Xt(pr()),RR=Xt(ER());var Zs=Xt(pr(),1),p6=class extends Zs.PureComponent{constructor(s){super(s),this.$=Zs.default.createRef(),this._=Zs.default.createRef()}render(){return Zs.default.createElement("span",{ref:this.$},Zs.default.createElement("a",{...this.props,ref:this._},this.props.children))}componentDidMount(){this.paint()}getSnapshotBeforeUpdate(){return this.reset(),null}componentDidUpdate(){this.paint()}componentWillUnmount(){this.reset()}paint(){let s=this.$.current.appendChild(document.createElement("span"));import("/build/_shared/buttons.esm-NERHWBM5.js").then(({render:a})=>{this._.current!=null&&a(s.appendChild(this._.current),function(u){try{s.parentNode.replaceChild(u,s)}catch{}})})}reset(){this.$.current.replaceChild(this._.current,this.$.current.lastChild)}},m6=p6;var fo=Xt(Ce()),BR=(0,kR.memo)(function(){return(0,fo.jsxs)("div",{className:"card",children:[(0,fo.jsxs)("div",{className:"flex items-center justify-between",children:[(0,fo.jsx)("h3",{className:"card__title",children:"Support Git Truck"}),(0,fo.jsx)(AR.default,{path:V8,size:1})]}),(0,fo.jsx)("div",{className:"dark:hue-rotate-180 dark:filter",children:(0,fo.jsxs)("div",{className:"flex items-center justify-between dark:contrast-75 dark:invert dark:sepia dark:filter",children:[(0,fo.jsx)(m6,{href:"https://github.com/git-truck/git-truck","data-icon":"octicon-star","data-size":"large","data-show-count":"true",children:"Star Git Truck"}),(0,fo.jsx)(m6,{href:"https://github.com/git-truck/git-truck/issues/new?template=user-issue.md","data-icon":"octicon-issue-opened","data-size":"large","data-show-count":"true",children:"Open an issue"}),(0,RR.default)()?(0,fo.jsx)("p",{children:"Ratting time \u{1F400}\u{1F9C0}"}):null]})})]})});function SF(i){var s=0,a=i.children,u=a&&a.length;if(!u)s=1;else for(;--u>=0;)s+=a[u].value;i.value=s}function TR(){return this.eachAfter(SF)}function $R(i,s){let a=-1;for(let u of this)i.call(s,u,++a,this);return this}function IR(i,s){for(var a=this,u=[a],n,p,m=-1;a=u.pop();)if(i.call(s,a,++m,this),n=a.children)for(p=n.length-1;p>=0;--p)u.push(n[p]);return this}function CR(i,s){for(var a=this,u=[a],n=[],p,m,y,M=-1;a=u.pop();)if(n.push(a),p=a.children)for(m=0,y=p.length;m<y;++m)u.push(p[m]);for(;a=n.pop();)i.call(s,a,++M,this);return this}function PR(i,s){let a=-1;for(let u of this)if(i.call(s,u,++a,this))return u}function DR(i){return this.eachAfter(function(s){for(var a=+i(s.data)||0,u=s.children,n=u&&u.length;--n>=0;)a+=u[n].value;s.value=a})}function LR(i){return this.eachBefore(function(s){s.children&&s.children.sort(i)})}function OR(i){for(var s=this,a=xF(s,i),u=[s];s!==a;)s=s.parent,u.push(s);for(var n=u.length;i!==a;)u.splice(n,0,i),i=i.parent;return u}function xF(i,s){if(i===s)return i;var a=i.ancestors(),u=s.ancestors(),n=null;for(i=a.pop(),s=u.pop();i===s;)n=i,i=a.pop(),s=u.pop();return n}function NR(){for(var i=this,s=[i];i=i.parent;)s.push(i);return s}function qR(){return Array.from(this)}function zR(){var i=[];return this.eachBefore(function(s){s.children||i.push(s)}),i}function UR(){var i=this,s=[];return i.each(function(a){a!==i&&s.push({source:a.parent,target:a})}),s}function*FR(){var i=this,s,a=[i],u,n,p;do for(s=a.reverse(),a=[];i=s.pop();)if(yield i,u=i.children)for(n=0,p=u.length;n<p;++n)a.push(u[n]);while(a.length)}function tf(i,s){i instanceof Map?(i=[void 0,i],s===void 0&&(s=kF)):s===void 0&&(s=AF);for(var a=new bu(i),u,n=[a],p,m,y,M;u=n.pop();)if((m=s(u.data))&&(M=(m=Array.from(m)).length))for(u.children=m,y=M-1;y>=0;--y)n.push(p=m[y]=new bu(m[y])),p.parent=u,p.depth=u.depth+1;return a.eachBefore(BF)}function EF(){return tf(this).eachBefore(RF)}function AF(i){return i.children}function kF(i){return Array.isArray(i)?i[1]:null}function RF(i){i.data.value!==void 0&&(i.value=i.data.value),i.data=i.data.data}function BF(i){var s=0;do i.height=s;while((i=i.parent)&&i.height<++s)}function bu(i){this.data=i,this.depth=this.height=0,this.parent=null}bu.prototype=tf.prototype={constructor:bu,count:TR,each:$R,eachAfter:CR,eachBefore:IR,find:PR,sum:DR,sort:LR,path:OR,ancestors:NR,descendants:qR,leaves:zR,links:UR,copy:EF,[Symbol.iterator]:FR};function jR(i){return i==null?null:v6(i)}function v6(i){if(typeof i!="function")throw new Error;return i}function sa(){return 0}function Ga(i){return function(){return i}}function HR(){let i=1;return()=>(i=(1664525*i+1013904223)%4294967296)/4294967296}function KR(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function GR(i,s){let a=i.length,u,n;for(;a;)n=s()*a--|0,u=i[a],i[a]=i[n],i[n]=u;return i}function ZR(i,s){for(var a=0,u=(i=GR(Array.from(i),s)).length,n=[],p,m;a<u;)p=i[a],m&&VR(m,p)?++a:(m=$F(n=TF(n,p)),a=0);return m}function TF(i,s){var a,u;if(g6(s,i))return[s];for(a=0;a<i.length;++a)if(jc(s,i[a])&&g6(yu(i[a],s),i))return[i[a],s];for(a=0;a<i.length-1;++a)for(u=a+1;u<i.length;++u)if(jc(yu(i[a],i[u]),s)&&jc(yu(i[a],s),i[u])&&jc(yu(i[u],s),i[a])&&g6(WR(i[a],i[u],s),i))return[i[a],i[u],s];throw new Error}function jc(i,s){var a=i.r-s.r,u=s.x-i.x,n=s.y-i.y;return a<0||a*a<u*u+n*n}function VR(i,s){var a=i.r-s.r+Math.max(i.r,s.r,1)*1e-9,u=s.x-i.x,n=s.y-i.y;return a>0&&a*a>u*u+n*n}function g6(i,s){for(var a=0;a<s.length;++a)if(!VR(i,s[a]))return!1;return!0}function $F(i){switch(i.length){case 1:return IF(i[0]);case 2:return yu(i[0],i[1]);case 3:return WR(i[0],i[1],i[2])}}function IF(i){return{x:i.x,y:i.y,r:i.r}}function yu(i,s){var a=i.x,u=i.y,n=i.r,p=s.x,m=s.y,y=s.r,M=p-a,b=m-u,g=y-n,S=Math.sqrt(M*M+b*b);return{x:(a+p+M/S*g)/2,y:(u+m+b/S*g)/2,r:(S+n+y)/2}}function WR(i,s,a){var u=i.x,n=i.y,p=i.r,m=s.x,y=s.y,M=s.r,b=a.x,g=a.y,S=a.r,_=u-m,x=u-b,E=n-y,k=n-g,B=M-p,T=S-p,C=u*u+n*n-p*p,P=C-m*m-y*y+M*M,G=C-b*b-g*g+S*S,U=x*E-_*k,V=(E*G-k*P)/(U*2)-u,I=(k*B-E*T)/U,D=(x*P-_*G)/(U*2)-n,z=(_*T-x*B)/U,d=I*I+z*z-1,t=2*(p+V*I+D*z),r=V*V+D*D-p*p,o=-(Math.abs(d)>1e-6?(t+Math.sqrt(t*t-4*d*r))/(2*d):r/t);return{x:u+V+I*o,y:n+D+z*o,r:o}}function XR(i,s,a){var u=i.x-s.x,n,p,m=i.y-s.y,y,M,b=u*u+m*m;b?(p=s.r+a.r,p*=p,M=i.r+a.r,M*=M,p>M?(n=(b+M-p)/(2*b),y=Math.sqrt(Math.max(0,M/b-n*n)),a.x=i.x-n*u-y*m,a.y=i.y-n*m+y*u):(n=(b+p-M)/(2*b),y=Math.sqrt(Math.max(0,p/b-n*n)),a.x=s.x+n*u-y*m,a.y=s.y+n*m+y*u)):(a.x=s.x+a.r,a.y=s.y)}function JR(i,s){var a=i.r+s.r-1e-6,u=s.x-i.x,n=s.y-i.y;return a>0&&a*a>u*u+n*n}function YR(i){var s=i._,a=i.next._,u=s.r+a.r,n=(s.x*a.r+a.x*s.r)/u,p=(s.y*a.r+a.y*s.r)/u;return n*n+p*p}function Hc(i){this._=i,this.next=null,this.previous=null}function QR(i,s){if(!(p=(i=KR(i)).length))return 0;var a,u,n,p,m,y,M,b,g,S,_;if(a=i[0],a.x=0,a.y=0,!(p>1))return a.r;if(u=i[1],a.x=-u.r,u.x=a.r,u.y=0,!(p>2))return a.r+u.r;XR(u,a,n=i[2]),a=new Hc(a),u=new Hc(u),n=new Hc(n),a.next=n.previous=u,u.next=a.previous=n,n.next=u.previous=a;t:for(M=3;M<p;++M){XR(a._,u._,n=i[M]),n=new Hc(n),b=u.next,g=a.previous,S=u._.r,_=a._.r;do if(S<=_){if(JR(b._,n._)){u=b,a.next=u,u.previous=a,--M;continue t}S+=b._.r,b=b.next}else{if(JR(g._,n._)){a=g,a.next=u,u.previous=a,--M;continue t}_+=g._.r,g=g.previous}while(b!==g.next);for(n.previous=a,n.next=u,a.next=u.previous=u=n,m=YR(a);(n=n.next)!==u;)(y=YR(n))<m&&(a=n,m=y);u=a.next}for(a=[u._],n=u;(n=n.next)!==u;)a.push(n._);for(n=ZR(a,s),M=0;M<p;++M)a=i[M],a.x-=n.x,a.y-=n.y;return n.r}function CF(i){return Math.sqrt(i.value)}function y6(){var i=null,s=1,a=1,u=sa;function n(p){let m=HR();return p.x=s/2,p.y=a/2,i?p.eachBefore(tB(i)).eachAfter(b6(u,.5,m)).eachBefore(eB(1)):p.eachBefore(tB(CF)).eachAfter(b6(sa,1,m)).eachAfter(b6(u,p.r/Math.min(s,a),m)).eachBefore(eB(Math.min(s,a)/(2*p.r))),p}return n.radius=function(p){return arguments.length?(i=jR(p),n):i},n.size=function(p){return arguments.length?(s=+p[0],a=+p[1],n):[s,a]},n.padding=function(p){return arguments.length?(u=typeof p=="function"?p:Ga(+p),n):u},n}function tB(i){return function(s){s.children||(s.r=Math.max(0,+i(s)||0))}}function b6(i,s,a){return function(u){if(n=u.children){var n,p,m=n.length,y=i(u)*s||0,M;if(y)for(p=0;p<m;++p)n[p].r+=y;if(M=QR(n,a),y)for(p=0;p<m;++p)n[p].r-=y;u.r=M+y}}}function eB(i){return function(s){var a=s.parent;s.r*=i,a&&(s.x=a.x+i*s.x,s.y=a.y+i*s.y)}}function rB(i){i.x0=Math.round(i.x0),i.y0=Math.round(i.y0),i.x1=Math.round(i.x1),i.y1=Math.round(i.y1)}function iB(i,s,a,u,n){for(var p=i.children,m,y=-1,M=p.length,b=i.value&&(u-s)/i.value;++y<M;)m=p[y],m.y0=a,m.y1=n,m.x0=s,m.x1=s+=m.value*b}function nB(i,s,a,u,n){for(var p=i.children,m,y=-1,M=p.length,b=i.value&&(n-a)/i.value;++y<M;)m=p[y],m.x0=s,m.x1=u,m.y0=a,m.y1=a+=m.value*b}var PF=(1+Math.sqrt(5))/2;function DF(i,s,a,u,n,p){for(var m=[],y=s.children,M,b,g=0,S=0,_=y.length,x,E,k=s.value,B,T,C,P,G,U,V;g<_;){x=n-a,E=p-u;do B=y[S++].value;while(!B&&S<_);for(T=C=B,U=Math.max(E/x,x/E)/(k*i),V=B*B*U,G=Math.max(C/V,V/T);S<_;++S){if(B+=b=y[S].value,b<T&&(T=b),b>C&&(C=b),V=B*B*U,P=Math.max(C/V,V/T),P>G){B-=b;break}G=P}m.push(M={value:B,dice:x<E,children:y.slice(g,S)}),M.dice?iB(M,a,u,n,k?u+=E*B/k:p):nB(M,a,u,k?a+=x*B/k:n,p),k-=B,g=S}return m}var oB=function i(s){function a(u,n,p,m,y){DF(s,u,n,p,m,y)}return a.ratio=function(u){return i((u=+u)>1?u:1)},a}(PF);function w6(){var i=oB,s=!1,a=1,u=1,n=[0],p=sa,m=sa,y=sa,M=sa,b=sa;function g(_){return _.x0=_.y0=0,_.x1=a,_.y1=u,_.eachBefore(S),n=[0],s&&_.eachBefore(rB),_}function S(_){var x=n[_.depth],E=_.x0+x,k=_.y0+x,B=_.x1-x,T=_.y1-x;B<E&&(E=B=(E+B)/2),T<k&&(k=T=(k+T)/2),_.x0=E,_.y0=k,_.x1=B,_.y1=T,_.children&&(x=n[_.depth+1]=p(_)/2,E+=b(_)-x,k+=m(_)-x,B-=y(_)-x,T-=M(_)-x,B<E&&(E=B=(E+B)/2),T<k&&(k=T=(k+T)/2),i(_,E,k,B,T))}return g.round=function(_){return arguments.length?(s=!!_,g):s},g.size=function(_){return arguments.length?(a=+_[0],u=+_[1],g):[a,u]},g.tile=function(_){return arguments.length?(i=v6(_),g):i},g.padding=function(_){return arguments.length?g.paddingInner(_).paddingOuter(_):g.paddingInner()},g.paddingInner=function(_){return arguments.length?(p=typeof _=="function"?_:Ga(+_),g):p},g.paddingOuter=function(_){return arguments.length?g.paddingTop(_).paddingRight(_).paddingBottom(_).paddingLeft(_):g.paddingTop()},g.paddingTop=function(_){return arguments.length?(m=typeof _=="function"?_:Ga(+_),g):m},g.paddingRight=function(_){return arguments.length?(y=typeof _=="function"?_:Ga(+_),g):y},g.paddingBottom=function(_){return arguments.length?(M=typeof _=="function"?_:Ga(+_),g):M},g.paddingLeft=function(_){return arguments.length?(b=typeof _=="function"?_:Ga(+_),g):b},g}function M6(i,s,a,u,n){var p=i.children,m,y=p.length,M,b=new Array(y+1);for(b[0]=M=m=0;m<y;++m)b[m+1]=M+=p[m].value;g(0,y,i.value,s,a,u,n);function g(S,_,x,E,k,B,T){if(S>=_-1){var C=p[S];C.x0=E,C.y0=k,C.x1=B,C.y1=T;return}for(var P=b[S],G=x/2+P,U=S+1,V=_-1;U<V;){var I=U+V>>>1;b[I]<G?U=I+1:V=I}G-b[U-1]<b[U]-G&&S+1<U&&--U;var D=b[U]-P,z=x-D;if(B-E>T-k){var d=x?(E*z+B*D)/x:B;g(S,U,D,E,k,d,T),g(U,_,z,d,k,B,T)}else{var t=x?(k*z+T*D)/x:T;g(S,U,D,E,k,B,t),g(U,_,z,E,t,B,T)}}}var Po=Xt(pr());var wB=Xt(mB());var mi=Xt(Ce()),MB=(0,Po.memo)(function({setHoveredObject:s}){let[a,u]=tl(),{searchResults:n}=vu(),p=(0,Po.useDeferredValue)(u),{repodata2:m}=Rr(),{chartType:y,sizeMetric:M,depthType:b,hierarchyType:g,labelsVisible:S,renderCutoff:_}=Mi(),{path:x}=na(),{clickedObject:E,setClickedObject:k}=Li(),{setPath:B}=na(),T;switch(b){case"One":T=1;break;case"Two":T=2;break;case"Three":T=3;break;case"Four":T=4;break;case"Five":T=5;break;case"Full":default:T=void 0}let C=(0,Po.useMemo)(()=>{let U=(0,wB.default)();U.add(m.hiddenFiles);let V=oj(m.fileTree,U);return g==="NESTED"?V:{...V,children:_B(V)}},[m.fileTree,g,m.hiddenFiles]),P=(0,Po.useMemo)(()=>{if(console.time("nodes"),p.width===0||p.height===0)return[];let U=uj(m,C,p,y,M,x,_).descendants();return console.timeEnd("nodes"),U},[p,y,M,x,_,m,C]);(0,Po.useEffect)(()=>{s(null)},[y,p,s]);let G=(U,V)=>Un(U.data)?{onClick:I=>(I.stopPropagation(),k(U.data)),onMouseOver:()=>s(U.data),onMouseOut:()=>s(null)}:{onClick:I=>{I.stopPropagation(),k(U.data),B(U.data.path)},onMouseOver:I=>{I.stopPropagation(),s(V?null:U.data)},onMouseOut:()=>s(null)};return(0,mi.jsx)("div",{className:"relative grid place-items-center overflow-hidden",ref:a,children:(0,mi.jsx)("svg",{className:Wr("grid h-full w-full place-items-center stroke-gray-300 dark:stroke-gray-700",{"cursor-zoom-out":x.includes("/")}),xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${p.width} ${p.height}`,onClick:()=>{let U=x.split("/").slice(0,-1).join("/");B(U===""?"/":U)},children:P.map((U,V)=>(0,mi.jsx)("g",{className:Wr("transition-opacity hover:opacity-60",{"cursor-pointer":V===0,"cursor-zoom-in":V>0&&zo(U.data),"animate-blink":(E==null?void 0:E.path)===U.data.path}),...G(U,V===0),children:(T===void 0||U.depth<=T)&&(0,mi.jsxs)(mi.Fragment,{children:[(0,mi.jsx)(aj,{d:U,isSearchMatch:Boolean(n[U.data.path])},U.data.path),S&&(0,mi.jsx)(hj,{d:U,children:sj({d:U,isRoot:V===0,path:x,displayText:U.data.name,chartType:y})},`text|${x}|${U.data.path}|${y}|${M}`)]})},U.data.path))},`svg|${p.width}|${p.height}`)})});function oj(i,s){function a(n){if(s.ignores(n.path))return null;if(n.type==="blob")return n;{let p=[];for(let m of n.children){let y=a(m);y!==null&&p.push(y)}return{type:"tree",name:n.name,path:n.path,children:p}}}let u=a(i);if(u===null||u.type!=="tree")throw new Error("Filtered tree must be a tree structure");return u}function aj({d:i,isSearchMatch:s}){let[a]=Di(),{chartType:u,metricType:n,transitionsEnabled:p}=Mi(),m=(0,Po.useMemo)(()=>{var M,b;let y={strokeWidth:"1px",fill:Un(i.data)?(b=(M=a.get(n))==null?void 0:M.colormap.get(i.data.path))!=null?b:"grey":"transparent"};if(u==="BUBBLE_CHART"){let g=i;y={...y,x:g.x-g.r,y:g.y-g.r+14-1,width:g.r*2,height:g.r*2,rx:g.r,ry:g.r}}else{let g=i;y={...y,x:g.x0,y:g.y0,width:g.x1-g.x0,height:g.y1-g.y0,rx:8,ry:8}}return y},[i,a,n,u]);return(0,mi.jsx)("rect",{...m,className:cf(s?"stroke-red-500":Un(i.data)?"stroke-transparent":"",{"cursor-pointer":Un(i.data),"transition-all duration-500 ease-in-out":p,"animate-stroke-pulse":s})})}function sj({d:i,isRoot:s,path:a,displayText:u,chartType:n}){let p,m;if(n==="BUBBLE_CHART"){let y=i;p=M=>y.r<50||y.r*Math.PI<M.length*10,m=()=>!1}else{let y=i;p=M=>y.x1-y.x0<M.length*10,m=()=>y.y1-y.y0-(Un(i.data)?3:3)<14}if(s){let y=a.split("/"),M=u.split("/"),b=0,g=0;for(;b<y.length&&g<M.length;)y[b]!==M[g]?b++:(b++,g++);u=M.slice(g-1).join("/")}return p(u)&&(u=u.replace(/\/.+\//gm,"/.../"),p(u))||m&&m(u)&&(u=u.replace(/\/.+\//gm,"/.../"),m(u))?null:u}function hj({d:i,children:s=null}){var b,g;let[a]=Di(),{metricType:u}=Mi(),n=rl(),p=fj(i);if(s===null)return null;let m;if(p){let S=zo(i.data)?13:14,_=i;m=lj(_.x,_.y+S,_.r)}else{let S=i;m=cj(S.x0+(zo(i.data)?8:4),S.y0+(zo(i.data)?3:3),S.x1-S.x0,S.y1-S.y0,0)}let y=Un(i.data)?Wu((g=(b=a.get(u))==null?void 0:b.colormap.get(i.data.path))!=null?g:"#333"):n?"#333":"#fff",M={startOffset:p?"50%":void 0,dominantBaseline:p&&zo(i.data)?"central":"hanging",textAnchor:p?"middle":"start",href:`#path-${i.data.path}`};return(0,mi.jsxs)(mi.Fragment,{children:[(0,mi.jsx)("path",{d:m,id:`path-${i.data.path}`,className:"hidden"}),zo(i.data)&&p?(0,mi.jsx)("text",{className:"pointer-events-none fill-none stroke-gray-100 stroke-[7px] font-mono text-sm font-bold dark:stroke-gray-800",strokeLinecap:"round",children:(0,mi.jsx)("textPath",{...M,children:s})}):null,(0,mi.jsx)("text",{fill:y,className:"pointer-events-none stroke-none",children:(0,mi.jsx)("textPath",{...M,className:Wr("stroke-none font-mono",{"text-sm font-bold":zo(i.data),"text-xs":!zo(i.data)}),children:s})})]})}function fj(i){return typeof i.r=="number"}function uj(i,s,a,u,n,p,m){let y=s,M=p.substring(s.name.length+1).split("/");for(let _=0;_<M.length;_++)for(let x of y.children)if(x.type==="tree"){let E=x.name.split("/");if(E[0]===M[_]){y=x,_+=E.length-1;break}}let g=tf(y).sum(_=>{var k,B,T,C;let x=_,E=oi(x.path);switch(n){case"FILE_SIZE":return(k=x.sizeInBytes)!=null?k:1;case"MOST_COMMITS":return(B=i.commitCounts.get(E))!=null?B:1;case"EQUAL_SIZE":return 1;case"LAST_CHANGED":return((T=i.lastChanged.get(E))!=null?T:i.oldestChangeDate+1)-i.oldestChangeDate;case"TRUCK_FACTOR":return(C=i.authorCounts.get(E))!=null?C:1}}),S=Number.isNaN(m)?2:m;if(u==="TREE_MAP"){let x=w6().tile(M6).size([a.width,a.height]).paddingInner(2).paddingOuter(4).paddingTop(20)(g);return k6(x,E=>{let k=E;return k.x1-k.x0>=S&&k.y1-k.y0>=S}),x}if(u==="BUBBLE_CHART"){let x=y6().size([a.width,a.height-14]).padding(10)(g);return k6(x,E=>E.r>=S),x}else throw new Error("Unknown chart type: "+u)}function k6(i,s){var a,u,n,p;i.children=(a=i.children)==null?void 0:a.filter(m=>s(m));for(let m of(u=i.children)!=null?u:[])((p=(n=m.children)==null?void 0:n.length)!=null?p:0)>0&&k6(m,s)}function lj(i,s,a){return`M${i},${s}
28
+ m0,${a}
29
+ a${a},${a} 0 1,1 0,${-a*2}
30
+ a${a},${a} 0 1,1 0,${a*2}`}function cj(i,s,a,u,n){return n=Math.min(n,Math.floor(a/3),Math.floor(u/3)),`M${i+n},${s}
31
+ h${a-n*2}
32
+ a${n},${n} 0 0 1 ${n},${n}
33
+ v${u-n*2}
34
+ a${n},${n} 0 0 1 ${-n},${n}
35
+ h${-a+n*2}
36
+ a${n},${n} 0 0 1 ${-n},${-n}
37
+ v${-u+n*2}
38
+ a${n},${n} 0 0 1 ${n},${-n}
39
+ z`}function _B(i){let s=[];for(let a of i.children)a.type==="blob"?s.push(a):s.push(..._B(a));return s}var Dd=Xt(tn());var qn=Xt(pr());var B6=Xt(tn());var pn=Xt(Ce()),SB=(0,qn.memo)(function({hoveredObject:s,x:a,y:u}){var E;let n=(0,qn.useRef)(null),{metricType:p}=Mi(),[m]=Di(),{repodata2:y}=Rr(),M=(0,qn.useMemo)(()=>{var T,C;if(!s)return null;let k=(T=m.get(p))==null?void 0:T.colormap;return(C=k==null?void 0:k.get(s.path))!=null?C:"grey"},[s,m,p]),b=(0,qn.useMemo)(()=>a<window.innerWidth/2,[a]),g=(0,qn.useMemo)(()=>u<window.innerHeight/2,[u]),S=(0,qn.useMemo)(()=>b?`calc(1rem + ${a}px)`:`calc(-1rem + ${a}px - 100%)`,[b,a]),_=(0,qn.useMemo)(()=>g?`calc(1rem + ${u}px)`:`calc(-1rem + ${u}px - 100%)`,[g,u]),x=s!==null;return(0,pn.jsxs)("div",{className:`card absolute left-0 top-0 z-50 flex w-max flex-row place-items-center rounded-full bg-gray-100/50 py-0 pl-1 pr-2 backdrop-blur will-change-transform dark:bg-gray-800/40 ${x?"visible":"hidden"}`,ref:n,style:{transform:x?`translate(${S}, ${_})`:"none"},children:[(s==null?void 0:s.type)==="blob"?M?(0,pn.jsx)(en,{dotColor:M}):null:(0,pn.jsx)(B6.default,{className:"ml-0.5",path:lh,size:.75}),(0,pn.jsx)("span",{className:"card__subtitle items-center font-bold",children:s&&Un(s)?s==null?void 0:s.name:A3((E=s==null?void 0:s.path.split("/"))!=null?E:[]).map((k,B,T)=>(0,pn.jsxs)(qn.Fragment,{children:[k,T.length>1&&B<T.length-1?(0,pn.jsx)(B6.default,{path:i3,size:1}):null]},`segment-${B}${k}`))}),(s==null?void 0:s.type)==="blob"?dj({metric:p,hoveredBlob:s,repodata2:y}):null]})});function dj(i){var u,n;let s=oi((n=(u=i.hoveredBlob)==null?void 0:u.path)!=null?n:""),a=i.repodata2.authorCounts.get(s);switch(i.metric){case"MOST_COMMITS":let p=i.repodata2.commitCounts.get(s);return p?`${p} commit${p>1?"s":""}`:"No activity";case"LAST_CHANGED":let m=i.repodata2.lastChanged.get(s);return m?(0,pn.jsx)(pn.Fragment,{children:dh(m)}):"No activity";case"SINGLE_AUTHOR":switch(a){case void 0:case 0:return"No activity";case 1:let M=i.repodata2.dominantAuthors.get(s);return M?`${M} is the only author`:null;default:return`${a} authors`}case"TOP_CONTRIBUTOR":let y=i.repodata2.dominantAuthors.get(s);return y?(0,pn.jsx)(pn.Fragment,{children:y}):"No activity";case"TRUCK_FACTOR":switch(a){case void 0:case 0:return"No activity";case 1:return"1 author";default:return`${a} authors`}default:return null}}var uI=Xt(P8()),pG=Xt(PB());var OB=Xt(LB()),wu=class{static getOrCreateInstance(s,a,u){var y;this.instances||(this.instances=new Map);let n=(y=this.instances.get(s))==null?void 0:y.get(a);if(n)return n;let p=new OB.default(s,a,u),m=this.instances.get(s);return m?m.set(a,p):this.instances.set(s,new Map([[a,p]])),p}static getInstance(s,a){var u;return this.instances||(this.instances=new Map),(u=this.instances.get(s))==null?void 0:u.get(a)}static async closeAllDBConnections(){for(let[,s]of this.instances)for(let[,a]of s)await a.db.close();this.instances=new Map}};wu.instances=new Map;var Ys=Xt(pr());var xu=Xt(UB()),Lr=Xt(pr());function Gc(i,s){return i<s?-1:i>s?1:i>=s?0:NaN}function I6(i){let s=i,a=i;i.length===1&&(s=(m,y)=>i(m)-y,a=wj(i));function u(m,y,M,b){for(M==null&&(M=0),b==null&&(b=m.length);M<b;){let g=M+b>>>1;a(m[g],y)<0?M=g+1:b=g}return M}function n(m,y,M,b){for(M==null&&(M=0),b==null&&(b=m.length);M<b;){let g=M+b>>>1;a(m[g],y)>0?b=g:M=g+1}return M}function p(m,y,M,b){M==null&&(M=0),b==null&&(b=m.length);let g=u(m,y,M,b-1);return g>M&&s(m[g-1],y)>-s(m[g],y)?g-1:g}return{left:u,center:p,right:n}}function wj(i){return(s,a)=>Gc(i(s),a)}function FB(i){return i===null?NaN:+i}var jB=I6(Gc),HB=jB.right,Mj=jB.left,_j=I6(FB).center,C6=HB;var rf=class extends Map{constructor(s,a=Ej){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:a}}),s!=null)for(let[u,n]of s)this.set(u,n)}get(s){return super.get(KB(this,s))}has(s){return super.has(KB(this,s))}set(s,a){return super.set(Sj(this,s),a)}delete(s){return super.delete(xj(this,s))}};function KB({_intern:i,_key:s},a){let u=s(a);return i.has(u)?i.get(u):a}function Sj({_intern:i,_key:s},a){let u=s(a);return i.has(u)?i.get(u):(i.set(u,a),a)}function xj({_intern:i,_key:s},a){let u=s(a);return i.has(u)&&(a=i.get(a),i.delete(u)),a}function Ej(i){return i!==null&&typeof i=="object"?i.valueOf():i}var P6=Math.sqrt(50),D6=Math.sqrt(10),L6=Math.sqrt(2);function Mu(i,s,a){var u,n=-1,p,m,y;if(s=+s,i=+i,a=+a,i===s&&a>0)return[i];if((u=s<i)&&(p=i,i=s,s=p),(y=Zc(i,s,a))===0||!isFinite(y))return[];if(y>0){let M=Math.round(i/y),b=Math.round(s/y);for(M*y<i&&++M,b*y>s&&--b,m=new Array(p=b-M+1);++n<p;)m[n]=(M+n)*y}else{y=-y;let M=Math.round(i*y),b=Math.round(s*y);for(M/y<i&&++M,b/y>s&&--b,m=new Array(p=b-M+1);++n<p;)m[n]=(M+n)/y}return u&&m.reverse(),m}function Zc(i,s,a){var u=(s-i)/Math.max(0,a),n=Math.floor(Math.log(u)/Math.LN10),p=u/Math.pow(10,n);return n>=0?(p>=P6?10:p>=D6?5:p>=L6?2:1)*Math.pow(10,n):-Math.pow(10,-n)/(p>=P6?10:p>=D6?5:p>=L6?2:1)}function O6(i,s,a){var u=Math.abs(s-i)/Math.max(0,a),n=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),p=u/n;return p>=P6?n*=10:p>=D6?n*=5:p>=L6&&(n*=2),s<i?-n:n}function N6(i,s,a){i=+i,s=+s,a=(n=arguments.length)<2?(s=i,i=0,1):n<3?1:+a;for(var u=-1,n=Math.max(0,Math.ceil((s-i)/a))|0,p=new Array(n);++u<n;)p[u]=i+u*a;return p}function GB(i,s){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);s&&(u=u.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),a.push.apply(a,u)}return a}function Do(i){for(var s=1;s<arguments.length;s++){var a=arguments[s]!=null?arguments[s]:{};s%2?GB(Object(a),!0).forEach(function(u){Aj(i,u,a[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):GB(Object(a)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(a,u))})}return i}function Xs(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function ZB(i,s){for(var a=0;a<s.length;a++){var u=s[a];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,u.key,u)}}function Js(i,s,a){return s&&ZB(i.prototype,s),a&&ZB(i,a),Object.defineProperty(i,"prototype",{writable:!1}),i}function Aj(i,s,a){return s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i}function Au(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),s&&z6(i,s)}function Wc(i){return Wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Wc(i)}function z6(i,s){return z6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,n){return u.__proto__=n,u},z6(i,s)}function kj(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vs(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Rj(i,s){if(s&&(typeof s=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vs(i)}function ku(i){var s=kj();return function(){var u=Wc(i),n;if(s){var p=Wc(this).constructor;n=Reflect.construct(u,arguments,p)}else n=u.apply(this,arguments);return Rj(this,n)}}function U6(i,s){return Tj(i)||Ij(i,s)||YB(i,s)||Pj()}function F6(i){return Bj(i)||$j(i)||YB(i)||Cj()}function Bj(i){if(Array.isArray(i))return j6(i)}function Tj(i){if(Array.isArray(i))return i}function $j(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Ij(i,s){var a=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(a!=null){var u=[],n=!0,p=!1,m,y;try{for(a=a.call(i);!(n=(m=a.next()).done)&&(u.push(m.value),!(s&&u.length===s));n=!0);}catch(M){p=!0,y=M}finally{try{!n&&a.return!=null&&a.return()}finally{if(p)throw y}}return u}}function YB(i,s){if(i){if(typeof i=="string")return j6(i,s);var a=Object.prototype.toString.call(i).slice(8,-1);if(a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set")return Array.from(i);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return j6(i,s)}}function j6(i,s){(s==null||s>i.length)&&(s=i.length);for(var a=0,u=new Array(s);a<s;a++)u[a]=i[a];return u}function Cj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
40
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
41
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H6="react-compound-slider:";function QB(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return function(a,u){return a.val>u.val?i?-1:1:u.val>a.val?i?1:-1:0}}function Eu(i,s,a){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,n=i.findIndex(function(M){return M.key===s});if(n!==-1){var p=i[n],m=p.key,y=p.val;return y===a?i:[].concat(F6(i.slice(0,n)),[{key:m,val:a}],F6(i.slice(n+1))).sort(QB(u))}return i}function _u(i,s){if(!i)return[0,0];var a=i.getBoundingClientRect(),u=s?a.top:a.left,n=s?a.bottom:a.right;return[u,n]}function VB(i){var s=i.type,a=s===void 0?"":s,u=i.touches;return!u||u.length>1||a.toLowerCase()==="touchend"&&u.length>0}function q6(i,s){return i?s.touches[0].clientY:s.touches[0].pageX}function WB(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,n=0,p=i.map(function(m){var y=a.getValue(m);return m!==y&&(n+=1,(0,xu.default)(!u,"".concat(H6," Invalid value encountered. Changing ").concat(m," to ").concat(y,"."))),y}).map(function(m,y){return{key:"$$-".concat(y),val:m}}).sort(QB(s));return{handles:p,changes:n}}function Dj(i,s){return s}function Lj(i,s){for(var a=0;a<i.length;a++)if(i[a].key!==s[a].key||s[a+1]&&s[a].val===s[a+1].val)return i;return s}function K6(i,s,a,u,n){for(var p=-1,m=!0,y=0;y<i.length;y++){var M=i[y],b=s[y];if(!b||b.key!==M.key)return i;b.val!==M.val&&(p=y,m=b.val-M.val>0)}if(p===-1)return i;for(var g=m?a:-a,S=0;S<s.length;S++){var _=s[S],x=s[S+1];if(x&&_.val===x.val)if(S===p){var E=x.val+g;if(n(E)===E){var k=Eu(s,x.key,x.val+g,u),B=K6(s,k,a,u,n);return B===s?i:B}else return i}else{var T=_.val+g;if(n(T)===T){var C=Eu(s,_.key,_.val+g,u),P=K6(s,C,a,u,n);return P===s?i:P}else return i}}return s}function Ws(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return function(u){return s.forEach(function(n){return n&&n(u)})}}var Oj=function(){return{value:0,percent:0}},G6=function(i){Au(a,i);var s=ku(a);function a(){var u;Xs(this,a);for(var n=arguments.length,p=new Array(n),m=0;m<n;m++)p[m]=arguments[m];return u=s.call.apply(s,[this].concat(p)),u.getRailProps=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=u.props,b=M.emitMouse,g=M.emitTouch;return Do(Do({},y),{},{onMouseDown:Ws(y&&y.onMouseDown,b),onTouchStart:Ws(y&&y.onTouchStart,g)})},u}return Js(a,[{key:"render",value:function(){var n=this.getRailProps,p=this.props,m=p.getEventData,y=p.activeHandleID,M=y===void 0?"":y,b=p.children,g=b({getEventData:m||Oj,activeHandleID:M,getRailProps:n});return g&&Lr.default.Children.only(g)}}]),a}(Lr.Component),Z6=function(i){Au(a,i);var s=ku(a);function a(){var u;Xs(this,a);for(var n=arguments.length,p=new Array(n),m=0;m<n;m++)p[m]=arguments[m];return u=s.call.apply(s,[this].concat(p)),u.autofocus=function(y){y.target instanceof HTMLElement&&y.target.focus()},u.getHandleProps=function(y){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=u.props,g=b.emitKeyboard,S=b.emitMouse,_=b.emitTouch;return Do(Do({},M),{},{onKeyDown:Ws(M&&M.onKeyDown,function(x){return g&&g(x,y)}),onMouseDown:Ws(M&&M.onMouseDown,u.autofocus,function(x){return S&&S(x,y)}),onTouchStart:Ws(M&&M.onTouchStart,function(x){return _&&_(x,y)})})},u}return Js(a,[{key:"render",value:function(){var n=this.getHandleProps,p=this.props,m=p.activeHandleID,y=m===void 0?"":m,M=p.children,b=p.handles,g=b===void 0?[]:b,S=M({handles:g,activeHandleID:y,getHandleProps:n});return S&&Lr.default.Children.only(S)}}]),a}(Lr.Component),V6=function(){function i(){Xs(this,i),this.interpolator=void 0,this.domain=[0,1],this.range=[0,1],this.domain=[0,1],this.range=[0,1],this.interpolator=null}return Js(i,[{key:"createInterpolator",value:function(a,u){var n=this,p=a[0],m=a[1],y=u[0],M=u[1];return m<p?function(b){return n.interpolateValue(M,y)(n.deinterpolateValue(m,p)(b))}:function(b){return n.interpolateValue(y,M)(n.deinterpolateValue(p,m)(b))}}},{key:"interpolateValue",value:function(a,u){return a=+a,u-=a,function(p){return a+u*p}}},{key:"deinterpolateValue",value:function(a,u){return(u-=a=+a)?function(n){return(n-a)/u}:function(){return u}}},{key:"rescale",value:function(){return this.interpolator=null,this}},{key:"getValue",value:function(a){var u=this.domain,n=this.range;return(this.interpolator||(this.interpolator=this.createInterpolator(u,n)))(+a)}},{key:"setDomain",value:function(a){return this.domain=[a[0],a[1]],this.rescale(),this}},{key:"getDomain",value:function(){return this.domain}},{key:"setRange",value:function(a){return this.range=[a[0],a[1]],this}},{key:"getRange",value:function(){return this.range}},{key:"getTicks",value:function(a){var u=this.domain;return Mu(u[0],u[u.length-1],a||10)}}]),i}(),Nj=function(){return{value:0,percent:0}},qj=function(i){Au(a,i);var s=ku(a);function a(){return Xs(this,a),s.apply(this,arguments)}return Js(a,[{key:"render",value:function(){var n=this.props,p=n.children,m=n.values,y=n.scale,M=y===void 0?new V6:y,b=n.count,g=b===void 0?10:b,S=n.getEventData,_=S===void 0?Nj:S,x=n.activeHandleID,E=x===void 0?"":x,k=(m||M.getTicks(g)).map(function(T){return{id:"$$-".concat(T),value:T,percent:M.getValue(T)}}),B=p({getEventData:_,activeHandleID:E,ticks:k});return B&&Lr.default.Children.only(B)}}]),a}(Lr.Component),zj=function(){return{value:0,percent:0}},W6=function(i){Au(a,i);var s=ku(a);function a(){var u;Xs(this,a);for(var n=arguments.length,p=new Array(n),m=0;m<n;m++)p[m]=arguments[m];return u=s.call.apply(s,[this].concat(p)),u.getTrackProps=function(y){var M=u.props,b=M.emitMouse,g=M.emitTouch;return Do(Do({},y||{}),{},{onMouseDown:Ws(y&&y.onMouseDown,b),onTouchStart:Ws(y&&y.onTouchStart,g)})},u}return Js(a,[{key:"render",value:function(){for(var n=this.getTrackProps,p=this.props,m=p.children,y=p.left,M=y===void 0?!0:y,b=p.right,g=b===void 0?!0:b,S=p.scale,_=S===void 0?new V6:S,x=p.handles,E=x===void 0?[]:x,k=p.getEventData,B=k===void 0?zj:k,T=p.activeHandleID,C=T===void 0?"":T,P=_.getDomain(),G=[],U=0;U<E.length+1;U++){var V=E[U-1],I=E[U];U===0&&M===!0?V={id:"$",value:P[0],percent:0}:U===E.length&&g===!0&&(I={id:"$",value:P[1],percent:100}),V&&I&&G.push({id:"".concat(V.id,"-").concat(I.id),source:V,target:I})}var D=m({getEventData:B,activeHandleID:C,tracks:G,getTrackProps:n});return D&&Lr.default.Children.only(D)}}]),a}(Lr.Component);function XB(i,s,a){return Math.min(Math.max(i,s),a)}var JB=Js(function i(){var s=this;Xs(this,i),this.step=1,this.domain=[0,1],this.range=[0,1],this.setDomain=function(a){return s.domain=[a[0],a[1]],s},this.setRange=function(a){return s.range=[a[0],a[1]],s},this.setStep=function(a){return s.step=a,s},this.getValue=function(a){var u=U6(s.domain,2),n=u[0],p=u[1],m=U6(s.range,2),y=m[0],M=m[1],b=s.step,g=(XB(a,n,p)-n)/(p-n),S=b*Math.round(g*(M-y)/b)+y;return XB(S,y<M?y:M,M>y?M:y)}}),Su=typeof window<"u"&&typeof document<"u",zn=function(){},Uj=function(s){return function(a,u,n){return a&&s[n]===u}},Fj=function(s,a){return s===a||s.length===a.length&&s.reduce(Uj(a),!0)},jj=function(s){if(!(0,Lr.isValidElement)(s))return!1;var a=s.type,u=a?a.name:"";return u===Z6.name||u===G6.name||u===qj.name||u===W6.name},Hj=function(s,a,u,n){var p=n?s-a:s+a;return n?Math.max(u[0],p):Math.min(u[1],p)},Kj=function(s,a,u,n){var p=n?s+a:s-a;return n?Math.min(u[1],p):Math.max(u[0],p)},Vc=[0,100],tT=function(i){Au(a,i);var s=ku(a);function a(){var u;Xs(this,a);for(var n=arguments.length,p=new Array(n),m=0;m<n;m++)p[m]=arguments[m];return u=s.call.apply(s,[this].concat(p)),u.state={step:.1,values:[],domain:Vc,handles:[],reversed:!1,activeHandleID:"",valueToPerc:null,valueToStep:null,pixelToStep:null},u.slider=Lr.default.createRef(),u.onKeyDown=function(y,M){var b=["ArrowRight","ArrowUp"],g=["ArrowDown","ArrowLeft"],S=Vs(u),_=S.state.handles,x=S.props,E=x.step,k=E===void 0?.1:E,B=x.reversed,T=B===void 0?!1:B,C=x.vertical,P=C===void 0?!1:C,G=x.domain,U=G===void 0?[0,100]:G,V=y.key||"".concat(y.keyCode);if(b.concat(g).includes(V)){if(P){var I=[g,b];b=I[0],g=I[1]}y.stopPropagation&&y.stopPropagation(),y.preventDefault&&y.preventDefault();var D=_.find(function(r){return r.key===M});if(D){var z=D.val,d=z;b.includes(V)?d=Hj(z,k,U,T):g.includes(V)&&(d=Kj(z,k,U,T));var t=_.map(function(r){return r.key===M?{key:r.key,val:d}:r});u.submitUpdate(t,!0)}}},u.onMouseDown=function(y,M){u.onStart(y,M,!1)},u.onTouchStart=function(y,M){VB(y)||u.onStart(y,M,!0)},u.getEventData=function(y,M){var b=Vs(u),g=b.state,S=g.pixelToStep,_=g.valueToPerc,x=b.props.vertical;S.setDomain(_u(u.slider.current,x));var E;return M&&y instanceof TouchEvent?E=S.getValue(q6(x,y)):y instanceof MouseEvent&&(E=S.getValue(x?y.clientY:y.pageX)),{value:E,percent:_.getValue(E)}},u.onMouseMove=function(y){var M=Vs(u),b=M.state,g=b.handles,S=b.pixelToStep,_=b.activeHandleID,x=_===void 0?"":_,E=M.props,k=E.vertical,B=E.reversed,T=B===void 0?!1:B;S.setDomain(_u(u.slider.current,k));var C=S.getValue(k?y.clientY:y.pageX),P=Eu(g,x,C,T);u.submitUpdate(P)},u.onTouchMove=function(y){var M=Vs(u),b=M.state,g=b.handles,S=b.pixelToStep,_=b.activeHandleID,x=M.props,E=x.vertical,k=x.reversed;if(!(S===null||VB(y))){S.setDomain(_u(u.slider.current,E));var B=S.getValue(q6(E,y)),T=Eu(g,_,B,k);u.submitUpdate(T)}},u.onMouseUp=function(){var y=Vs(u),M=y.state,b=M.handles,g=b===void 0?[]:b,S=M.activeHandleID,_=y.props,x=_.onChange,E=x===void 0?zn:x,k=_.onSlideEnd,B=k===void 0?zn:k;E(g.map(function(T){return T.val})),B(g.map(function(T){return T.val}),{activeHandleID:S}),u.setState({activeHandleID:""}),Su&&(document.removeEventListener("mousemove",u.onMouseMove),document.removeEventListener("mouseup",u.onMouseUp))},u.onTouchEnd=function(){var y=Vs(u),M=y.state,b=M.handles,g=M.activeHandleID,S=y.props,_=S.onChange,x=_===void 0?zn:_,E=S.onSlideEnd,k=E===void 0?zn:E;x(b.map(function(B){return B.val})),k(b.map(function(B){return B.val}),{activeHandleID:g}),u.setState({activeHandleID:""}),Su&&(document.removeEventListener("touchmove",u.onTouchMove),document.removeEventListener("touchend",u.onTouchEnd))},u}return Js(a,[{key:"componentDidMount",value:function(){var n=this.state.pixelToStep,p=this.props.vertical;n.setDomain(_u(this.slider.current,p))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){Su&&(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"onStart",value:function(n,p,m){var y=this.state.handles,M=this.props.onSlideStart,b=M===void 0?zn:M;m||n.preventDefault&&n.preventDefault(),n.stopPropagation&&n.stopPropagation();var g=y.find(function(S){return S.key===p});g?(this.setState({activeHandleID:p}),b(y.map(function(S){return S.val}),{activeHandleID:p}),m?this.addTouchEvents():this.addMouseEvents()):(this.setState({activeHandleID:""}),this.handleRailAndTrackClicks(n,m))}},{key:"handleRailAndTrackClicks",value:function(n,p){var m=this,y=this.state,M=y.handles,b=y.pixelToStep,g=this.props,S=g.vertical,_=g.reversed,x=_===void 0?!1:_,E=this.slider;b.setDomain(_u(E.current,S));var k;p?k=b.getValue(q6(S,n)):k=b.getValue(S?n.clientY:n.pageX);for(var B="",T=1/0,C=0;C<M.length;C++){var P=M[C],G=P.key,U=P.val,V=Math.abs(U-k);V<T&&(B=G,T=V)}var I=Eu(M,B,k,x);this.setState({activeHandleID:B},function(){m.submitUpdate(I,!0),p?m.addTouchEvents():m.addMouseEvents()})}},{key:"addMouseEvents",value:function(){Su&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){Su&&(document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd))}},{key:"submitUpdate",value:function(n){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=this.props,y=m.mode,M=y===void 0?1:y,b=m.step,g=b===void 0?.1:b,S=m.onUpdate,_=S===void 0?zn:S,x=m.onChange,E=x===void 0?zn:x,k=m.reversed,B=k===void 0?!1:k,T=this.state.valueToStep.getValue;this.setState(function(C){var P=C.handles,G=[];if(typeof M=="function")G=M(P,n,g,B,T),(0,xu.default)(Array.isArray(G),"Custom mode function did not return an array.");else switch(M){case 1:G=Dj(P,n);break;case 2:G=Lj(P,n);break;case 3:G=K6(P,n,g,B,T);break;default:G=n,(0,xu.default)(!1,"".concat(H6," Invalid mode value."))}return _(G.map(function(U){return U.val})),p&&E(G.map(function(U){return U.val})),{handles:G}})}},{key:"render",value:function(){var n=this,p=this.state,m=p.handles,y=p.valueToPerc,M=p.activeHandleID,b=this.props,g=b.className,S=b.rootStyle,_=S===void 0?{}:S,x=b.rootProps,E=x===void 0?{}:x,k=b.component,B=k===void 0?"div":k,T=b.disabled,C=T===void 0?!1:T,P=b.flatten,G=P===void 0?!1:P,U=m.map(function(I){var D=I.key,z=I.val;return{id:D,value:z,percent:y.getValue(z)}}),V=Lr.default.Children.map(this.props.children,function(I){return jj(I)===!0?Lr.default.cloneElement(I,{scale:y,handles:U,activeHandleID:M,getEventData:n.getEventData,emitKeyboard:C?zn:n.onKeyDown,emitMouse:C?zn:n.onMouseDown,emitTouch:C?zn:n.onTouchStart}):I});return G?Lr.default.createElement(Lr.default.Fragment,null,Lr.default.createElement(B,Do(Do({},E),{},{style:_,className:g,ref:this.slider})),V):Lr.default.createElement(Lr.default.Fragment,null,Lr.default.createElement(B,Do(Do({},E),{},{style:_,className:g,ref:this.slider}),V))}}],[{key:"getDerivedStateFromProps",value:function(n,p){var m=n.step,y=m===void 0?.1:m,M=n.values,b=n.domain,g=b===void 0?Vc:b,S=n.reversed,_=S===void 0?!1:S,x=n.onUpdate,E=x===void 0?zn:x,k=n.onChange,B=k===void 0?zn:k,T=n.warnOnChanges,C=T===void 0?!1:T,P=p.valueToPerc,G=p.valueToStep,U=p.pixelToStep,V={};if((!P||!G||!U)&&(P=new V6,G=new JB,U=new JB,V.valueToPerc=P,V.valueToStep=G,V.pixelToStep=U),p.domain===Vc||p.step===null||p.domain===null||p.reversed===null||y!==p.step||g[0]!==p.domain[0]||g[1]!==p.domain[1]||_!==p.reversed){var I=U6(g,2),D=I[0],z=I[1];G.setStep(y).setRange([D,z]).setDomain([D,z]),_===!0?(P.setDomain([D,z]).setRange([100,0]),U.setStep(y).setRange([z,D])):(P.setDomain([D,z]).setRange([0,100]),U.setStep(y).setRange([D,z])),(0,xu.default)(z>D,"".concat(H6," Max must be greater than min (even if reversed). Max is ").concat(z,". Min is ").concat(D,"."));var d=WB(M||p.values,_,G,C),t=d.handles,r=d.changes;(r||M===void 0||M===p.values)&&(E(t.map(function(v){return v.val})),B(t.map(function(v){return v.val}))),V.step=y,V.values=M,V.domain=g===Vc?F6(g):g,V.handles=t,V.reversed=_}else if(!Fj(M,p.values)){var o=WB(M,_,G,C),h=o.handles,f=o.changes;f&&(E(h.map(function(v){return v.val})),B(h.map(function(v){return v.val}))),V.values=M,V.handles=h}return Object.keys(V).length?V:null}}]),a}(Lr.PureComponent);var Pi=Xt(Ce());function Gj(i){return(0,Pi.jsx)("div",{role:"slider","aria-valuemin":i.domain[0],"aria-valuemax":i.domain[1],"aria-valuenow":i.handle.value,style:{left:`${i.handle.percent}%`,position:"absolute",marginLeft:"-11px",marginTop:"-6px",zIndex:2,width:24,height:24,cursor:"pointer",borderRadius:"50%",boxShadow:"1px 1px 1px 1px rgba(0, 0, 0, 0.2)",backgroundColor:`${i.disabled?"grey":"#34568f"}`},...i.getHandleProps(i.handle.id)})}function Zj(i){return(0,Pi.jsx)("div",{style:{position:"absolute",height:14,zIndex:1,backgroundColor:`${i.disabled?"grey":"#7aa0c4"}`,borderRadius:7,cursor:"pointer",left:`${i.source.percent}%`,width:`${i.target.percent-i.source.percent}%`},...i.getTrackProps()})}function X6(){let i={left:"5%",top:"30px",position:"relative",width:"90%"},s={position:"absolute",width:"100%",height:14,borderRadius:7,cursor:"pointer",backgroundColor:"rgb(155,155,155)"},{repodata2:a}=Rr(),{timerange:u,selectedRange:n}=a,p=sh(),[m,y]=(0,Ys.useState)(n),M=(0,Ys.useMemo)(()=>new Date(m[0]*1e3),[m]),b=(0,Ys.useMemo)(()=>new Date(m[1]*1e3),[m]),g=(0,Ys.useMemo)(()=>(m[0]-u[0])/(u[1]-u[0])*100,[m,u]),S=(0,Ys.useMemo)(()=>(m[1]-u[0])/(u[1]-u[0])*100,[m,u]),x=Qi().state!=="idle";return(0,Pi.jsx)("div",{style:{height:60,width:"100%"},children:(0,Pi.jsxs)(tT,{mode:2,step:1,domain:u,rootStyle:i,onUpdate:E=>y([...E]),onChange:E=>{let k=new FormData;k.append("timeseries",`${E[0]}-${E[1]}`),p(k,{action:`/${co(a.repo,a.branch)}`,method:"post"})},values:m,disabled:x,children:[(0,Pi.jsx)(G6,{children:({getRailProps:E})=>(0,Pi.jsxs)("div",{style:s,...E(),children:[(0,Pi.jsx)("p",{style:{left:`${g}%`,bottom:"100%",position:"absolute",transform:"translate(-100%, -50%)"},children:lf(M.getTime())}),(0,Pi.jsx)("p",{style:{left:`${S}%`,bottom:"100%",position:"absolute",transform:"translate(0%, -50%)"},children:lf(b.getTime())})]})}),(0,Pi.jsx)(Z6,{children:({handles:E,getHandleProps:k})=>(0,Pi.jsx)("div",{className:"slider-handles",children:E.map(B=>(0,Pi.jsx)(Gj,{handle:B,domain:u,getHandleProps:k,disabled:x},B.id))})}),(0,Pi.jsx)(W6,{left:!1,right:!1,children:({tracks:E,getTrackProps:k})=>(0,Pi.jsx)("div",{className:"slider-tracks",children:E.map(({id:B,source:T,target:C})=>(0,Pi.jsx)(Zj,{source:T,target:C,getTrackProps:k,disabled:x},B))})})]})})}var lI=Xt(aT());var uf=Xt(pr());function id(i,s){let a;if(s===void 0)for(let u of i)u!=null&&(a<u||a===void 0&&u>=u)&&(a=u);else{let u=-1;for(let n of i)(n=s(n,++u,i))!=null&&(a<n||a===void 0&&n>=n)&&(a=n)}return a}var Qj={value:()=>{}};function hT(){for(var i=0,s=arguments.length,a={},u;i<s;++i){if(!(u=arguments[i]+"")||u in a||/[\s.]/.test(u))throw new Error("illegal type: "+u);a[u]=[]}return new nd(a)}function nd(i){this._=i}function tH(i,s){return i.trim().split(/^|\s+/).map(function(a){var u="",n=a.indexOf(".");if(n>=0&&(u=a.slice(n+1),a=a.slice(0,n)),a&&!s.hasOwnProperty(a))throw new Error("unknown type: "+a);return{type:a,name:u}})}nd.prototype=hT.prototype={constructor:nd,on:function(i,s){var a=this._,u=tH(i+"",a),n,p=-1,m=u.length;if(arguments.length<2){for(;++p<m;)if((n=(i=u[p]).type)&&(n=eH(a[n],i.name)))return n;return}if(s!=null&&typeof s!="function")throw new Error("invalid callback: "+s);for(;++p<m;)if(n=(i=u[p]).type)a[n]=sT(a[n],i.name,s);else if(s==null)for(n in a)a[n]=sT(a[n],i.name,null);return this},copy:function(){var i={},s=this._;for(var a in s)i[a]=s[a].slice();return new nd(i)},call:function(i,s){if((n=arguments.length-2)>0)for(var a=new Array(n),u=0,n,p;u<n;++u)a[u]=arguments[u+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(p=this._[i],u=0,n=p.length;u<n;++u)p[u].value.apply(s,a)},apply:function(i,s,a){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var u=this._[i],n=0,p=u.length;n<p;++n)u[n].value.apply(s,a)}};function eH(i,s){for(var a=0,u=i.length,n;a<u;++a)if((n=i[a]).name===s)return n.value}function sT(i,s,a){for(var u=0,n=i.length;u<n;++u)if(i[u].name===s){i[u]=Qj,i=i.slice(0,u).concat(i.slice(u+1));break}return a!=null&&i.push({name:s,value:a}),i}var J6=hT;var od="http://www.w3.org/1999/xhtml",Y6={svg:"http://www.w3.org/2000/svg",xhtml:od,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fa(i){var s=i+="",a=s.indexOf(":");return a>=0&&(s=i.slice(0,a))!=="xmlns"&&(i=i.slice(a+1)),Y6.hasOwnProperty(s)?{space:Y6[s],local:i}:i}function rH(i){return function(){var s=this.ownerDocument,a=this.namespaceURI;return a===od&&s.documentElement.namespaceURI===od?s.createElement(i):s.createElementNS(a,i)}}function iH(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function ad(i){var s=fa(i);return(s.local?iH:rH)(s)}function nH(){}function Qs(i){return i==null?nH:function(){return this.querySelector(i)}}function fT(i){typeof i!="function"&&(i=Qs(i));for(var s=this._groups,a=s.length,u=new Array(a),n=0;n<a;++n)for(var p=s[n],m=p.length,y=u[n]=new Array(m),M,b,g=0;g<m;++g)(M=p[g])&&(b=i.call(M,M.__data__,g,p))&&("__data__"in M&&(b.__data__=M.__data__),y[g]=b);return new Hr(u,this._parents)}function Q6(i){return i==null?[]:Array.isArray(i)?i:Array.from(i)}function oH(){return[]}function Bu(i){return i==null?oH:function(){return this.querySelectorAll(i)}}function aH(i){return function(){return Q6(i.apply(this,arguments))}}function uT(i){typeof i=="function"?i=aH(i):i=Bu(i);for(var s=this._groups,a=s.length,u=[],n=[],p=0;p<a;++p)for(var m=s[p],y=m.length,M,b=0;b<y;++b)(M=m[b])&&(u.push(i.call(M,M.__data__,b,m)),n.push(M));return new Hr(u,n)}function Tu(i){return function(){return this.matches(i)}}function sd(i){return function(s){return s.matches(i)}}var sH=Array.prototype.find;function hH(i){return function(){return sH.call(this.children,i)}}function fH(){return this.firstElementChild}function lT(i){return this.select(i==null?fH:hH(typeof i=="function"?i:sd(i)))}var uH=Array.prototype.filter;function lH(){return Array.from(this.children)}function cH(i){return function(){return uH.call(this.children,i)}}function cT(i){return this.selectAll(i==null?lH:cH(typeof i=="function"?i:sd(i)))}function dT(i){typeof i!="function"&&(i=Tu(i));for(var s=this._groups,a=s.length,u=new Array(a),n=0;n<a;++n)for(var p=s[n],m=p.length,y=u[n]=[],M,b=0;b<m;++b)(M=p[b])&&i.call(M,M.__data__,b,p)&&y.push(M);return new Hr(u,this._parents)}function hd(i){return new Array(i.length)}function pT(){return new Hr(this._enter||this._groups.map(hd),this._parents)}function $u(i,s){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=s}$u.prototype={constructor:$u,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,s){return this._parent.insertBefore(i,s)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};function mT(i){return function(){return i}}function dH(i,s,a,u,n,p){for(var m=0,y,M=s.length,b=p.length;m<b;++m)(y=s[m])?(y.__data__=p[m],u[m]=y):a[m]=new $u(i,p[m]);for(;m<M;++m)(y=s[m])&&(n[m]=y)}function pH(i,s,a,u,n,p,m){var y,M,b=new Map,g=s.length,S=p.length,_=new Array(g),x;for(y=0;y<g;++y)(M=s[y])&&(_[y]=x=m.call(M,M.__data__,y,s)+"",b.has(x)?n[y]=M:b.set(x,M));for(y=0;y<S;++y)x=m.call(i,p[y],y,p)+"",(M=b.get(x))?(u[y]=M,M.__data__=p[y],b.delete(x)):a[y]=new $u(i,p[y]);for(y=0;y<g;++y)(M=s[y])&&b.get(_[y])===M&&(n[y]=M)}function mH(i){return i.__data__}function vT(i,s){if(!arguments.length)return Array.from(this,mH);var a=s?pH:dH,u=this._parents,n=this._groups;typeof i!="function"&&(i=mT(i));for(var p=n.length,m=new Array(p),y=new Array(p),M=new Array(p),b=0;b<p;++b){var g=u[b],S=n[b],_=S.length,x=vH(i.call(g,g&&g.__data__,b,u)),E=x.length,k=y[b]=new Array(E),B=m[b]=new Array(E),T=M[b]=new Array(_);a(g,S,k,B,T,x,s);for(var C=0,P=0,G,U;C<E;++C)if(G=k[C]){for(C>=P&&(P=C+1);!(U=B[P])&&++P<E;);G._next=U||null}}return m=new Hr(m,u),m._enter=y,m._exit=M,m}function vH(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function gT(){return new Hr(this._exit||this._groups.map(hd),this._parents)}function bT(i,s,a){var u=this.enter(),n=this,p=this.exit();return typeof i=="function"?(u=i(u),u&&(u=u.selection())):u=u.append(i+""),s!=null&&(n=s(n),n&&(n=n.selection())),a==null?p.remove():a(p),u&&n?u.merge(n).order():n}function yT(i){for(var s=i.selection?i.selection():i,a=this._groups,u=s._groups,n=a.length,p=u.length,m=Math.min(n,p),y=new Array(n),M=0;M<m;++M)for(var b=a[M],g=u[M],S=b.length,_=y[M]=new Array(S),x,E=0;E<S;++E)(x=b[E]||g[E])&&(_[E]=x);for(;M<n;++M)y[M]=a[M];return new Hr(y,this._parents)}function wT(){for(var i=this._groups,s=-1,a=i.length;++s<a;)for(var u=i[s],n=u.length-1,p=u[n],m;--n>=0;)(m=u[n])&&(p&&m.compareDocumentPosition(p)^4&&p.parentNode.insertBefore(m,p),p=m);return this}function MT(i){i||(i=gH);function s(S,_){return S&&_?i(S.__data__,_.__data__):!S-!_}for(var a=this._groups,u=a.length,n=new Array(u),p=0;p<u;++p){for(var m=a[p],y=m.length,M=n[p]=new Array(y),b,g=0;g<y;++g)(b=m[g])&&(M[g]=b);M.sort(s)}return new Hr(n,this._parents).order()}function gH(i,s){return i<s?-1:i>s?1:i>=s?0:NaN}function _T(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this}function ST(){return Array.from(this)}function xT(){for(var i=this._groups,s=0,a=i.length;s<a;++s)for(var u=i[s],n=0,p=u.length;n<p;++n){var m=u[n];if(m)return m}return null}function ET(){let i=0;for(let s of this)++i;return i}function AT(){return!this.node()}function kT(i){for(var s=this._groups,a=0,u=s.length;a<u;++a)for(var n=s[a],p=0,m=n.length,y;p<m;++p)(y=n[p])&&i.call(y,y.__data__,p,n);return this}function bH(i){return function(){this.removeAttribute(i)}}function yH(i){return function(){this.removeAttributeNS(i.space,i.local)}}function wH(i,s){return function(){this.setAttribute(i,s)}}function MH(i,s){return function(){this.setAttributeNS(i.space,i.local,s)}}function _H(i,s){return function(){var a=s.apply(this,arguments);a==null?this.removeAttribute(i):this.setAttribute(i,a)}}function SH(i,s){return function(){var a=s.apply(this,arguments);a==null?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,a)}}function RT(i,s){var a=fa(i);if(arguments.length<2){var u=this.node();return a.local?u.getAttributeNS(a.space,a.local):u.getAttribute(a)}return this.each((s==null?a.local?yH:bH:typeof s=="function"?a.local?SH:_H:a.local?MH:wH)(a,s))}function fd(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function xH(i){return function(){this.style.removeProperty(i)}}function EH(i,s,a){return function(){this.style.setProperty(i,s,a)}}function AH(i,s,a){return function(){var u=s.apply(this,arguments);u==null?this.style.removeProperty(i):this.style.setProperty(i,u,a)}}function BT(i,s,a){return arguments.length>1?this.each((s==null?xH:typeof s=="function"?AH:EH)(i,s,a??"")):Va(this.node(),i)}function Va(i,s){return i.style.getPropertyValue(s)||fd(i).getComputedStyle(i,null).getPropertyValue(s)}function kH(i){return function(){delete this[i]}}function RH(i,s){return function(){this[i]=s}}function BH(i,s){return function(){var a=s.apply(this,arguments);a==null?delete this[i]:this[i]=a}}function TT(i,s){return arguments.length>1?this.each((s==null?kH:typeof s=="function"?BH:RH)(i,s)):this.node()[i]}function $T(i){return i.trim().split(/^|\s+/)}function t8(i){return i.classList||new IT(i)}function IT(i){this._node=i,this._names=$T(i.getAttribute("class")||"")}IT.prototype={add:function(i){var s=this._names.indexOf(i);s<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var s=this._names.indexOf(i);s>=0&&(this._names.splice(s,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};function CT(i,s){for(var a=t8(i),u=-1,n=s.length;++u<n;)a.add(s[u])}function PT(i,s){for(var a=t8(i),u=-1,n=s.length;++u<n;)a.remove(s[u])}function TH(i){return function(){CT(this,i)}}function $H(i){return function(){PT(this,i)}}function IH(i,s){return function(){(s.apply(this,arguments)?CT:PT)(this,i)}}function DT(i,s){var a=$T(i+"");if(arguments.length<2){for(var u=t8(this.node()),n=-1,p=a.length;++n<p;)if(!u.contains(a[n]))return!1;return!0}return this.each((typeof s=="function"?IH:s?TH:$H)(a,s))}function CH(){this.textContent=""}function PH(i){return function(){this.textContent=i}}function DH(i){return function(){var s=i.apply(this,arguments);this.textContent=s??""}}function LT(i){return arguments.length?this.each(i==null?CH:(typeof i=="function"?DH:PH)(i)):this.node().textContent}function LH(){this.innerHTML=""}function OH(i){return function(){this.innerHTML=i}}function NH(i){return function(){var s=i.apply(this,arguments);this.innerHTML=s??""}}function OT(i){return arguments.length?this.each(i==null?LH:(typeof i=="function"?NH:OH)(i)):this.node().innerHTML}function qH(){this.nextSibling&&this.parentNode.appendChild(this)}function NT(){return this.each(qH)}function zH(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function qT(){return this.each(zH)}function zT(i){var s=typeof i=="function"?i:ad(i);return this.select(function(){return this.appendChild(s.apply(this,arguments))})}function UH(){return null}function UT(i,s){var a=typeof i=="function"?i:ad(i),u=s==null?UH:typeof s=="function"?s:Qs(s);return this.select(function(){return this.insertBefore(a.apply(this,arguments),u.apply(this,arguments)||null)})}function FH(){var i=this.parentNode;i&&i.removeChild(this)}function FT(){return this.each(FH)}function jH(){var i=this.cloneNode(!1),s=this.parentNode;return s?s.insertBefore(i,this.nextSibling):i}function HH(){var i=this.cloneNode(!0),s=this.parentNode;return s?s.insertBefore(i,this.nextSibling):i}function jT(i){return this.select(i?HH:jH)}function HT(i){return arguments.length?this.property("__data__",i):this.node().__data__}function KH(i){return function(s){i.call(this,s,this.__data__)}}function GH(i){return i.trim().split(/^|\s+/).map(function(s){var a="",u=s.indexOf(".");return u>=0&&(a=s.slice(u+1),s=s.slice(0,u)),{type:s,name:a}})}function ZH(i){return function(){var s=this.__on;if(s){for(var a=0,u=-1,n=s.length,p;a<n;++a)p=s[a],(!i.type||p.type===i.type)&&p.name===i.name?this.removeEventListener(p.type,p.listener,p.options):s[++u]=p;++u?s.length=u:delete this.__on}}}function VH(i,s,a){return function(){var u=this.__on,n,p=KH(s);if(u){for(var m=0,y=u.length;m<y;++m)if((n=u[m]).type===i.type&&n.name===i.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=p,n.options=a),n.value=s;return}}this.addEventListener(i.type,p,a),n={type:i.type,name:i.name,value:s,listener:p,options:a},u?u.push(n):this.__on=[n]}}function KT(i,s,a){var u=GH(i+""),n,p=u.length,m;if(arguments.length<2){var y=this.node().__on;if(y){for(var M=0,b=y.length,g;M<b;++M)for(n=0,g=y[M];n<p;++n)if((m=u[n]).type===g.type&&m.name===g.name)return g.value}return}for(y=s?VH:ZH,n=0;n<p;++n)this.each(y(u[n],s,a));return this}function GT(i,s,a){var u=fd(i),n=u.CustomEvent;typeof n=="function"?n=new n(s,a):(n=u.document.createEvent("Event"),a?(n.initEvent(s,a.bubbles,a.cancelable),n.detail=a.detail):n.initEvent(s,!1,!1)),i.dispatchEvent(n)}function WH(i,s){return function(){return GT(this,i,s)}}function XH(i,s){return function(){return GT(this,i,s.apply(this,arguments))}}function ZT(i,s){return this.each((typeof s=="function"?XH:WH)(i,s))}function*VT(){for(var i=this._groups,s=0,a=i.length;s<a;++s)for(var u=i[s],n=0,p=u.length,m;n<p;++n)(m=u[n])&&(yield m)}var e8=[null];function Hr(i,s){this._groups=i,this._parents=s}function WT(){return new Hr([[document.documentElement]],e8)}function JH(){return this}Hr.prototype=WT.prototype={constructor:Hr,select:fT,selectAll:uT,selectChild:lT,selectChildren:cT,filter:dT,data:vT,enter:pT,exit:gT,join:bT,merge:yT,selection:JH,order:wT,sort:MT,call:_T,nodes:ST,node:xT,size:ET,empty:AT,each:kT,attr:RT,style:BT,property:TT,classed:DT,text:LT,html:OT,raise:NT,lower:qT,append:zT,insert:UT,remove:FT,clone:jT,datum:HT,on:KT,dispatch:ZT,[Symbol.iterator]:VT};var ua=WT;function r8(i){return typeof i=="string"?new Hr([[document.querySelector(i)]],[document.documentElement]):new Hr([[i]],e8)}function ud(i,s,a){i.prototype=s.prototype=a,a.constructor=i}function i8(i,s){var a=Object.create(i.prototype);for(var u in s)a[u]=s[u];return a}function Pu(){}var Iu=.7,dd=1/Iu,nf="\\s*([+-]?\\d+)\\s*",Cu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Oo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",YH=/^#([0-9a-f]{3,8})$/,QH=new RegExp(`^rgb\\(${nf},${nf},${nf}\\)$`),tK=new RegExp(`^rgb\\(${Oo},${Oo},${Oo}\\)$`),eK=new RegExp(`^rgba\\(${nf},${nf},${nf},${Cu}\\)$`),rK=new RegExp(`^rgba\\(${Oo},${Oo},${Oo},${Cu}\\)$`),iK=new RegExp(`^hsl\\(${Cu},${Oo},${Oo}\\)$`),nK=new RegExp(`^hsla\\(${Cu},${Oo},${Oo},${Cu}\\)$`),XT={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ud(Pu,lo,{copy(i){return Object.assign(new this.constructor,this,i)},displayable(){return this.rgb().displayable()},hex:JT,formatHex:JT,formatHex8:oK,formatHsl:aK,formatRgb:YT,toString:YT});function JT(){return this.rgb().formatHex()}function oK(){return this.rgb().formatHex8()}function aK(){return n$(this).formatHsl()}function YT(){return this.rgb().formatRgb()}function lo(i){var s,a;return i=(i+"").trim().toLowerCase(),(s=YH.exec(i))?(a=s[1].length,s=parseInt(s[1],16),a===6?QT(s):a===3?new Yi(s>>8&15|s>>4&240,s>>4&15|s&240,(s&15)<<4|s&15,1):a===8?ld(s>>24&255,s>>16&255,s>>8&255,(s&255)/255):a===4?ld(s>>12&15|s>>8&240,s>>8&15|s>>4&240,s>>4&15|s&240,((s&15)<<4|s&15)/255):null):(s=QH.exec(i))?new Yi(s[1],s[2],s[3],1):(s=tK.exec(i))?new Yi(s[1]*255/100,s[2]*255/100,s[3]*255/100,1):(s=eK.exec(i))?ld(s[1],s[2],s[3],s[4]):(s=rK.exec(i))?ld(s[1]*255/100,s[2]*255/100,s[3]*255/100,s[4]):(s=iK.exec(i))?r$(s[1],s[2]/100,s[3]/100,1):(s=nK.exec(i))?r$(s[1],s[2]/100,s[3]/100,s[4]):XT.hasOwnProperty(i)?QT(XT[i]):i==="transparent"?new Yi(NaN,NaN,NaN,0):null}function QT(i){return new Yi(i>>16&255,i>>8&255,i&255,1)}function ld(i,s,a,u){return u<=0&&(i=s=a=NaN),new Yi(i,s,a,u)}function sK(i){return i instanceof Pu||(i=lo(i)),i?(i=i.rgb(),new Yi(i.r,i.g,i.b,i.opacity)):new Yi}function of(i,s,a,u){return arguments.length===1?sK(i):new Yi(i,s,a,u??1)}function Yi(i,s,a,u){this.r=+i,this.g=+s,this.b=+a,this.opacity=+u}ud(Yi,of,i8(Pu,{brighter(i){return i=i==null?dd:Math.pow(dd,i),new Yi(this.r*i,this.g*i,this.b*i,this.opacity)},darker(i){return i=i==null?Iu:Math.pow(Iu,i),new Yi(this.r*i,this.g*i,this.b*i,this.opacity)},rgb(){return this},clamp(){return new Yi(eh(this.r),eh(this.g),eh(this.b),pd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:t$,formatHex:t$,formatHex8:hK,formatRgb:e$,toString:e$}));function t$(){return`#${th(this.r)}${th(this.g)}${th(this.b)}`}function hK(){return`#${th(this.r)}${th(this.g)}${th(this.b)}${th((isNaN(this.opacity)?1:this.opacity)*255)}`}function e$(){let i=pd(this.opacity);return`${i===1?"rgb(":"rgba("}${eh(this.r)}, ${eh(this.g)}, ${eh(this.b)}${i===1?")":`, ${i})`}`}function pd(i){return isNaN(i)?1:Math.max(0,Math.min(1,i))}function eh(i){return Math.max(0,Math.min(255,Math.round(i)||0))}function th(i){return i=eh(i),(i<16?"0":"")+i.toString(16)}function r$(i,s,a,u){return u<=0?i=s=a=NaN:a<=0||a>=1?i=s=NaN:s<=0&&(i=NaN),new uo(i,s,a,u)}function n$(i){if(i instanceof uo)return new uo(i.h,i.s,i.l,i.opacity);if(i instanceof Pu||(i=lo(i)),!i)return new uo;if(i instanceof uo)return i;i=i.rgb();var s=i.r/255,a=i.g/255,u=i.b/255,n=Math.min(s,a,u),p=Math.max(s,a,u),m=NaN,y=p-n,M=(p+n)/2;return y?(s===p?m=(a-u)/y+(a<u)*6:a===p?m=(u-s)/y+2:m=(s-a)/y+4,y/=M<.5?p+n:2-p-n,m*=60):y=M>0&&M<1?0:m,new uo(m,y,M,i.opacity)}function o$(i,s,a,u){return arguments.length===1?n$(i):new uo(i,s,a,u??1)}function uo(i,s,a,u){this.h=+i,this.s=+s,this.l=+a,this.opacity=+u}ud(uo,o$,i8(Pu,{brighter(i){return i=i==null?dd:Math.pow(dd,i),new uo(this.h,this.s,this.l*i,this.opacity)},darker(i){return i=i==null?Iu:Math.pow(Iu,i),new uo(this.h,this.s,this.l*i,this.opacity)},rgb(){var i=this.h%360+(this.h<0)*360,s=isNaN(i)||isNaN(this.s)?0:this.s,a=this.l,u=a+(a<.5?a:1-a)*s,n=2*a-u;return new Yi(n8(i>=240?i-240:i+120,n,u),n8(i,n,u),n8(i<120?i+240:i-120,n,u),this.opacity)},clamp(){return new uo(i$(this.h),cd(this.s),cd(this.l),pd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let i=pd(this.opacity);return`${i===1?"hsl(":"hsla("}${i$(this.h)}, ${cd(this.s)*100}%, ${cd(this.l)*100}%${i===1?")":`, ${i})`}`}}));function i$(i){return i=(i||0)%360,i<0?i+360:i}function cd(i){return Math.max(0,Math.min(1,i||0))}function n8(i,s,a){return(i<60?s+(a-s)*i/60:i<180?a:i<240?s+(a-s)*(240-i)/60:s)*255}function o8(i,s,a,u,n){var p=i*i,m=p*i;return((1-3*i+3*p-m)*s+(4-6*p+3*m)*a+(1+3*i+3*p-3*m)*u+m*n)/6}function a$(i){var s=i.length-1;return function(a){var u=a<=0?a=0:a>=1?(a=1,s-1):Math.floor(a*s),n=i[u],p=i[u+1],m=u>0?i[u-1]:2*n-p,y=u<s-1?i[u+2]:2*p-n;return o8((a-u/s)*s,m,n,p,y)}}function s$(i){var s=i.length;return function(a){var u=Math.floor(((a%=1)<0?++a:a)*s),n=i[(u+s-1)%s],p=i[u%s],m=i[(u+1)%s],y=i[(u+2)%s];return o8((a-u/s)*s,n,p,m,y)}}var Du=i=>()=>i;function fK(i,s){return function(a){return i+a*s}}function uK(i,s,a){return i=Math.pow(i,a),s=Math.pow(s,a)-i,a=1/a,function(u){return Math.pow(i+u*s,a)}}function h$(i){return(i=+i)==1?md:function(s,a){return a-s?uK(s,a,i):Du(isNaN(s)?a:s)}}function md(i,s){var a=s-i;return a?fK(i,a):Du(isNaN(i)?s:i)}var rh=function i(s){var a=h$(s);function u(n,p){var m=a((n=of(n)).r,(p=of(p)).r),y=a(n.g,p.g),M=a(n.b,p.b),b=md(n.opacity,p.opacity);return function(g){return n.r=m(g),n.g=y(g),n.b=M(g),n.opacity=b(g),n+""}}return u.gamma=i,u}(1);function f$(i){return function(s){var a=s.length,u=new Array(a),n=new Array(a),p=new Array(a),m,y;for(m=0;m<a;++m)y=of(s[m]),u[m]=y.r||0,n[m]=y.g||0,p[m]=y.b||0;return u=i(u),n=i(n),p=i(p),y.opacity=1,function(M){return y.r=u(M),y.g=n(M),y.b=p(M),y+""}}}var lK=f$(a$),cK=f$(s$);function u$(i,s){s||(s=[]);var a=i?Math.min(s.length,i.length):0,u=s.slice(),n;return function(p){for(n=0;n<a;++n)u[n]=i[n]*(1-p)+s[n]*p;return u}}function l$(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function c$(i,s){var a=s?s.length:0,u=i?Math.min(a,i.length):0,n=new Array(u),p=new Array(a),m;for(m=0;m<u;++m)n[m]=ih(i[m],s[m]);for(;m<a;++m)p[m]=s[m];return function(y){for(m=0;m<u;++m)p[m]=n[m](y);return p}}function d$(i,s){var a=new Date;return i=+i,s=+s,function(u){return a.setTime(i*(1-u)+s*u),a}}function yi(i,s){return i=+i,s=+s,function(a){return i*(1-a)+s*a}}function p$(i,s){var a={},u={},n;(i===null||typeof i!="object")&&(i={}),(s===null||typeof s!="object")&&(s={});for(n in s)n in i?a[n]=ih(i[n],s[n]):u[n]=s[n];return function(p){for(n in a)u[n]=a[n](p);return u}}var s8=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a8=new RegExp(s8.source,"g");function dK(i){return function(){return i}}function pK(i){return function(s){return i(s)+""}}function Lu(i,s){var a=s8.lastIndex=a8.lastIndex=0,u,n,p,m=-1,y=[],M=[];for(i=i+"",s=s+"";(u=s8.exec(i))&&(n=a8.exec(s));)(p=n.index)>a&&(p=s.slice(a,p),y[m]?y[m]+=p:y[++m]=p),(u=u[0])===(n=n[0])?y[m]?y[m]+=n:y[++m]=n:(y[++m]=null,M.push({i:m,x:yi(u,n)})),a=a8.lastIndex;return a<s.length&&(p=s.slice(a),y[m]?y[m]+=p:y[++m]=p),y.length<2?M[0]?pK(M[0].x):dK(s):(s=M.length,function(b){for(var g=0,S;g<s;++g)y[(S=M[g]).i]=S.x(b);return y.join("")})}function ih(i,s){var a=typeof s,u;return s==null||a==="boolean"?Du(s):(a==="number"?yi:a==="string"?(u=lo(s))?(s=u,rh):Lu:s instanceof lo?rh:s instanceof Date?d$:l$(s)?u$:Array.isArray(s)?c$:typeof s.valueOf!="function"&&typeof s.toString!="function"||isNaN(s)?p$:yi)(i,s)}function h8(i,s){return i=+i,s=+s,function(a){return Math.round(i*(1-a)+s*a)}}var m$=180/Math.PI,vd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function f8(i,s,a,u,n,p){var m,y,M;return(m=Math.sqrt(i*i+s*s))&&(i/=m,s/=m),(M=i*a+s*u)&&(a-=i*M,u-=s*M),(y=Math.sqrt(a*a+u*u))&&(a/=y,u/=y,M/=y),i*u<s*a&&(i=-i,s=-s,M=-M,m=-m),{translateX:n,translateY:p,rotate:Math.atan2(s,i)*m$,skewX:Math.atan(M)*m$,scaleX:m,scaleY:y}}var gd;function v$(i){let s=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return s.isIdentity?vd:f8(s.a,s.b,s.c,s.d,s.e,s.f)}function g$(i){return i==null?vd:(gd||(gd=document.createElementNS("http://www.w3.org/2000/svg","g")),gd.setAttribute("transform",i),(i=gd.transform.baseVal.consolidate())?(i=i.matrix,f8(i.a,i.b,i.c,i.d,i.e,i.f)):vd)}function b$(i,s,a,u){function n(b){return b.length?b.pop()+" ":""}function p(b,g,S,_,x,E){if(b!==S||g!==_){var k=x.push("translate(",null,s,null,a);E.push({i:k-4,x:yi(b,S)},{i:k-2,x:yi(g,_)})}else(S||_)&&x.push("translate("+S+s+_+a)}function m(b,g,S,_){b!==g?(b-g>180?g+=360:g-b>180&&(b+=360),_.push({i:S.push(n(S)+"rotate(",null,u)-2,x:yi(b,g)})):g&&S.push(n(S)+"rotate("+g+u)}function y(b,g,S,_){b!==g?_.push({i:S.push(n(S)+"skewX(",null,u)-2,x:yi(b,g)}):g&&S.push(n(S)+"skewX("+g+u)}function M(b,g,S,_,x,E){if(b!==S||g!==_){var k=x.push(n(x)+"scale(",null,",",null,")");E.push({i:k-4,x:yi(b,S)},{i:k-2,x:yi(g,_)})}else(S!==1||_!==1)&&x.push(n(x)+"scale("+S+","+_+")")}return function(b,g){var S=[],_=[];return b=i(b),g=i(g),p(b.translateX,b.translateY,g.translateX,g.translateY,S,_),m(b.rotate,g.rotate,S,_),y(b.skewX,g.skewX,S,_),M(b.scaleX,b.scaleY,g.scaleX,g.scaleY,S,_),b=g=null,function(x){for(var E=-1,k=_.length,B;++E<k;)S[(B=_[E]).i]=B.x(x);return S.join("")}}}var u8=b$(v$,"px, ","px)","deg)"),l8=b$(g$,", ",")",")");var af=0,Nu=0,Ou=0,w$=1e3,bd,qu,yd=0,nh=0,wd=0,zu=typeof performance=="object"&&performance.now?performance:Date,M$=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function Fu(){return nh||(M$(mK),nh=zu.now()+wd)}function mK(){nh=0}function Uu(){this._call=this._time=this._next=null}Uu.prototype=Md.prototype={constructor:Uu,restart:function(i,s,a){if(typeof i!="function")throw new TypeError("callback is not a function");a=(a==null?Fu():+a)+(s==null?0:+s),!this._next&&qu!==this&&(qu?qu._next=this:bd=this,qu=this),this._call=i,this._time=a,c8()},stop:function(){this._call&&(this._call=null,this._time=1/0,c8())}};function Md(i,s,a){var u=new Uu;return u.restart(i,s,a),u}function _$(){Fu(),++af;for(var i=bd,s;i;)(s=nh-i._time)>=0&&i._call.call(void 0,s),i=i._next;--af}function y$(){nh=(yd=zu.now())+wd,af=Nu=0;try{_$()}finally{af=0,gK(),nh=0}}function vK(){var i=zu.now(),s=i-yd;s>w$&&(wd-=s,yd=i)}function gK(){for(var i,s=bd,a,u=1/0;s;)s._call?(u>s._time&&(u=s._time),i=s,s=s._next):(a=s._next,s._next=null,s=i?i._next=a:bd=a);qu=i,c8(u)}function c8(i){if(!af){Nu&&(Nu=clearTimeout(Nu));var s=i-nh;s>24?(i<1/0&&(Nu=setTimeout(y$,i-zu.now()-wd)),Ou&&(Ou=clearInterval(Ou))):(Ou||(yd=zu.now(),Ou=setInterval(vK,w$)),af=1,M$(y$))}}function _d(i,s,a){var u=new Uu;return s=s==null?0:+s,u.restart(n=>{u.stop(),i(n+s)},s,a),u}var bK=J6("start","end","cancel","interrupt"),yK=[],E$=0,S$=1,xd=2,Sd=3,x$=4,Ed=5,ju=6;function Wa(i,s,a,u,n,p){var m=i.__transition;if(!m)i.__transition={};else if(a in m)return;wK(i,a,{name:s,index:u,group:n,on:bK,tween:yK,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:E$})}function Hu(i,s){var a=ni(i,s);if(a.state>E$)throw new Error("too late; already scheduled");return a}function wi(i,s){var a=ni(i,s);if(a.state>Sd)throw new Error("too late; already running");return a}function ni(i,s){var a=i.__transition;if(!a||!(a=a[s]))throw new Error("transition not found");return a}function wK(i,s,a){var u=i.__transition,n;u[s]=a,a.timer=Md(p,0,a.time);function p(b){a.state=S$,a.timer.restart(m,a.delay,a.time),a.delay<=b&&m(b-a.delay)}function m(b){var g,S,_,x;if(a.state!==S$)return M();for(g in u)if(x=u[g],x.name===a.name){if(x.state===Sd)return _d(m);x.state===x$?(x.state=ju,x.timer.stop(),x.on.call("interrupt",i,i.__data__,x.index,x.group),delete u[g]):+g<s&&(x.state=ju,x.timer.stop(),x.on.call("cancel",i,i.__data__,x.index,x.group),delete u[g])}if(_d(function(){a.state===Sd&&(a.state=x$,a.timer.restart(y,a.delay,a.time),y(b))}),a.state=xd,a.on.call("start",i,i.__data__,a.index,a.group),a.state===xd){for(a.state=Sd,n=new Array(_=a.tween.length),g=0,S=-1;g<_;++g)(x=a.tween[g].value.call(i,i.__data__,a.index,a.group))&&(n[++S]=x);n.length=S+1}}function y(b){for(var g=b<a.duration?a.ease.call(null,b/a.duration):(a.timer.restart(M),a.state=Ed,1),S=-1,_=n.length;++S<_;)n[S].call(i,g);a.state===Ed&&(a.on.call("end",i,i.__data__,a.index,a.group),M())}function M(){a.state=ju,a.timer.stop(),delete u[s];for(var b in u)return;delete i.__transition}}function Ad(i,s){var a=i.__transition,u,n,p=!0,m;if(a){s=s==null?null:s+"";for(m in a){if((u=a[m]).name!==s){p=!1;continue}n=u.state>xd&&u.state<Ed,u.state=ju,u.timer.stop(),u.on.call(n?"interrupt":"cancel",i,i.__data__,u.index,u.group),delete a[m]}p&&delete i.__transition}}function A$(i){return this.each(function(){Ad(this,i)})}function MK(i,s){var a,u;return function(){var n=wi(this,i),p=n.tween;if(p!==a){u=a=p;for(var m=0,y=u.length;m<y;++m)if(u[m].name===s){u=u.slice(),u.splice(m,1);break}}n.tween=u}}function _K(i,s,a){var u,n;if(typeof a!="function")throw new Error;return function(){var p=wi(this,i),m=p.tween;if(m!==u){n=(u=m).slice();for(var y={name:s,value:a},M=0,b=n.length;M<b;++M)if(n[M].name===s){n[M]=y;break}M===b&&n.push(y)}p.tween=n}}function k$(i,s){var a=this._id;if(i+="",arguments.length<2){for(var u=ni(this.node(),a).tween,n=0,p=u.length,m;n<p;++n)if((m=u[n]).name===i)return m.value;return null}return this.each((s==null?MK:_K)(a,i,s))}function sf(i,s,a){var u=i._id;return i.each(function(){var n=wi(this,u);(n.value||(n.value={}))[s]=a.apply(this,arguments)}),function(n){return ni(n,u).value[s]}}function kd(i,s){var a;return(typeof s=="number"?yi:s instanceof lo?rh:(a=lo(s))?(s=a,rh):Lu)(i,s)}function SK(i){return function(){this.removeAttribute(i)}}function xK(i){return function(){this.removeAttributeNS(i.space,i.local)}}function EK(i,s,a){var u,n=a+"",p;return function(){var m=this.getAttribute(i);return m===n?null:m===u?p:p=s(u=m,a)}}function AK(i,s,a){var u,n=a+"",p;return function(){var m=this.getAttributeNS(i.space,i.local);return m===n?null:m===u?p:p=s(u=m,a)}}function kK(i,s,a){var u,n,p;return function(){var m,y=a(this),M;return y==null?void this.removeAttribute(i):(m=this.getAttribute(i),M=y+"",m===M?null:m===u&&M===n?p:(n=M,p=s(u=m,y)))}}function RK(i,s,a){var u,n,p;return function(){var m,y=a(this),M;return y==null?void this.removeAttributeNS(i.space,i.local):(m=this.getAttributeNS(i.space,i.local),M=y+"",m===M?null:m===u&&M===n?p:(n=M,p=s(u=m,y)))}}function R$(i,s){var a=fa(i),u=a==="transform"?l8:kd;return this.attrTween(i,typeof s=="function"?(a.local?RK:kK)(a,u,sf(this,"attr."+i,s)):s==null?(a.local?xK:SK)(a):(a.local?AK:EK)(a,u,s))}function BK(i,s){return function(a){this.setAttribute(i,s.call(this,a))}}function TK(i,s){return function(a){this.setAttributeNS(i.space,i.local,s.call(this,a))}}function $K(i,s){var a,u;function n(){var p=s.apply(this,arguments);return p!==u&&(a=(u=p)&&TK(i,p)),a}return n._value=s,n}function IK(i,s){var a,u;function n(){var p=s.apply(this,arguments);return p!==u&&(a=(u=p)&&BK(i,p)),a}return n._value=s,n}function B$(i,s){var a="attr."+i;if(arguments.length<2)return(a=this.tween(a))&&a._value;if(s==null)return this.tween(a,null);if(typeof s!="function")throw new Error;var u=fa(i);return this.tween(a,(u.local?$K:IK)(u,s))}function CK(i,s){return function(){Hu(this,i).delay=+s.apply(this,arguments)}}function PK(i,s){return s=+s,function(){Hu(this,i).delay=s}}function T$(i){var s=this._id;return arguments.length?this.each((typeof i=="function"?CK:PK)(s,i)):ni(this.node(),s).delay}function DK(i,s){return function(){wi(this,i).duration=+s.apply(this,arguments)}}function LK(i,s){return s=+s,function(){wi(this,i).duration=s}}function $$(i){var s=this._id;return arguments.length?this.each((typeof i=="function"?DK:LK)(s,i)):ni(this.node(),s).duration}function OK(i,s){if(typeof s!="function")throw new Error;return function(){wi(this,i).ease=s}}function I$(i){var s=this._id;return arguments.length?this.each(OK(s,i)):ni(this.node(),s).ease}function NK(i,s){return function(){var a=s.apply(this,arguments);if(typeof a!="function")throw new Error;wi(this,i).ease=a}}function C$(i){if(typeof i!="function")throw new Error;return this.each(NK(this._id,i))}function P$(i){typeof i!="function"&&(i=Tu(i));for(var s=this._groups,a=s.length,u=new Array(a),n=0;n<a;++n)for(var p=s[n],m=p.length,y=u[n]=[],M,b=0;b<m;++b)(M=p[b])&&i.call(M,M.__data__,b,p)&&y.push(M);return new zi(u,this._parents,this._name,this._id)}function D$(i){if(i._id!==this._id)throw new Error;for(var s=this._groups,a=i._groups,u=s.length,n=a.length,p=Math.min(u,n),m=new Array(u),y=0;y<p;++y)for(var M=s[y],b=a[y],g=M.length,S=m[y]=new Array(g),_,x=0;x<g;++x)(_=M[x]||b[x])&&(S[x]=_);for(;y<u;++y)m[y]=s[y];return new zi(m,this._parents,this._name,this._id)}function qK(i){return(i+"").trim().split(/^|\s+/).every(function(s){var a=s.indexOf(".");return a>=0&&(s=s.slice(0,a)),!s||s==="start"})}function zK(i,s,a){var u,n,p=qK(s)?Hu:wi;return function(){var m=p(this,i),y=m.on;y!==u&&(n=(u=y).copy()).on(s,a),m.on=n}}function L$(i,s){var a=this._id;return arguments.length<2?ni(this.node(),a).on.on(i):this.each(zK(a,i,s))}function UK(i){return function(){var s=this.parentNode;for(var a in this.__transition)if(+a!==i)return;s&&s.removeChild(this)}}function O$(){return this.on("end.remove",UK(this._id))}function N$(i){var s=this._name,a=this._id;typeof i!="function"&&(i=Qs(i));for(var u=this._groups,n=u.length,p=new Array(n),m=0;m<n;++m)for(var y=u[m],M=y.length,b=p[m]=new Array(M),g,S,_=0;_<M;++_)(g=y[_])&&(S=i.call(g,g.__data__,_,y))&&("__data__"in g&&(S.__data__=g.__data__),b[_]=S,Wa(b[_],s,a,_,b,ni(g,a)));return new zi(p,this._parents,s,a)}function q$(i){var s=this._name,a=this._id;typeof i!="function"&&(i=Bu(i));for(var u=this._groups,n=u.length,p=[],m=[],y=0;y<n;++y)for(var M=u[y],b=M.length,g,S=0;S<b;++S)if(g=M[S]){for(var _=i.call(g,g.__data__,S,M),x,E=ni(g,a),k=0,B=_.length;k<B;++k)(x=_[k])&&Wa(x,s,a,k,_,E);p.push(_),m.push(g)}return new zi(p,m,s,a)}var FK=ua.prototype.constructor;function z$(){return new FK(this._groups,this._parents)}function jK(i,s){var a,u,n;return function(){var p=Va(this,i),m=(this.style.removeProperty(i),Va(this,i));return p===m?null:p===a&&m===u?n:n=s(a=p,u=m)}}function U$(i){return function(){this.style.removeProperty(i)}}function HK(i,s,a){var u,n=a+"",p;return function(){var m=Va(this,i);return m===n?null:m===u?p:p=s(u=m,a)}}function KK(i,s,a){var u,n,p;return function(){var m=Va(this,i),y=a(this),M=y+"";return y==null&&(M=y=(this.style.removeProperty(i),Va(this,i))),m===M?null:m===u&&M===n?p:(n=M,p=s(u=m,y))}}function GK(i,s){var a,u,n,p="style."+s,m="end."+p,y;return function(){var M=wi(this,i),b=M.on,g=M.value[p]==null?y||(y=U$(s)):void 0;(b!==a||n!==g)&&(u=(a=b).copy()).on(m,n=g),M.on=u}}function F$(i,s,a){var u=(i+="")=="transform"?u8:kd;return s==null?this.styleTween(i,jK(i,u)).on("end.style."+i,U$(i)):typeof s=="function"?this.styleTween(i,KK(i,u,sf(this,"style."+i,s))).each(GK(this._id,i)):this.styleTween(i,HK(i,u,s),a).on("end.style."+i,null)}function ZK(i,s,a){return function(u){this.style.setProperty(i,s.call(this,u),a)}}function VK(i,s,a){var u,n;function p(){var m=s.apply(this,arguments);return m!==n&&(u=(n=m)&&ZK(i,m,a)),u}return p._value=s,p}function j$(i,s,a){var u="style."+(i+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(s==null)return this.tween(u,null);if(typeof s!="function")throw new Error;return this.tween(u,VK(i,s,a??""))}function WK(i){return function(){this.textContent=i}}function XK(i){return function(){var s=i(this);this.textContent=s??""}}function H$(i){return this.tween("text",typeof i=="function"?XK(sf(this,"text",i)):WK(i==null?"":i+""))}function JK(i){return function(s){this.textContent=i.call(this,s)}}function YK(i){var s,a;function u(){var n=i.apply(this,arguments);return n!==a&&(s=(a=n)&&JK(n)),s}return u._value=i,u}function K$(i){var s="text";if(arguments.length<1)return(s=this.tween(s))&&s._value;if(i==null)return this.tween(s,null);if(typeof i!="function")throw new Error;return this.tween(s,YK(i))}function G$(){for(var i=this._name,s=this._id,a=Rd(),u=this._groups,n=u.length,p=0;p<n;++p)for(var m=u[p],y=m.length,M,b=0;b<y;++b)if(M=m[b]){var g=ni(M,s);Wa(M,i,a,b,m,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new zi(u,this._parents,i,a)}function Z$(){var i,s,a=this,u=a._id,n=a.size();return new Promise(function(p,m){var y={value:m},M={value:function(){--n===0&&p()}};a.each(function(){var b=wi(this,u),g=b.on;g!==i&&(s=(i=g).copy(),s._.cancel.push(y),s._.interrupt.push(y),s._.end.push(M)),b.on=s}),n===0&&p()})}var QK=0;function zi(i,s,a,u){this._groups=i,this._parents=s,this._name=a,this._id=u}function V$(i){return ua().transition(i)}function Rd(){return++QK}var la=ua.prototype;zi.prototype=V$.prototype={constructor:zi,select:N$,selectAll:q$,selectChild:la.selectChild,selectChildren:la.selectChildren,filter:P$,merge:D$,selection:z$,transition:G$,call:la.call,nodes:la.nodes,node:la.node,size:la.size,empty:la.empty,each:la.each,on:L$,attr:R$,attrTween:B$,style:F$,styleTween:j$,text:H$,textTween:K$,remove:O$,tween:k$,delay:T$,duration:$$,ease:I$,easeVarying:C$,end:Z$,[Symbol.iterator]:la[Symbol.iterator]};function Bd(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}var tG={time:null,delay:0,duration:250,ease:Bd};function eG(i,s){for(var a;!(a=i.__transition)||!(a=a[s]);)if(!(i=i.parentNode))throw new Error(`transition ${s} not found`);return a}function W$(i){var s,a;i instanceof zi?(s=i._id,i=i._name):(s=Rd(),(a=tG).time=Fu(),i=i==null?null:i+"");for(var u=this._groups,n=u.length,p=0;p<n;++p)for(var m=u[p],y=m.length,M,b=0;b<y;++b)(M=m[b])&&Wa(M,i,s,b,m,a||eG(M,s));return new zi(u,this._parents,i,s)}ua.prototype.interrupt=A$;ua.prototype.transition=W$;var{abs:tot,max:eot,min:rot}=Math;function X$(i){return[+i[0],+i[1]]}function rG(i){return[X$(i[0]),X$(i[1])]}var iot={name:"x",handles:["w","e"].map(d8),input:function(i,s){return i==null?null:[[+i[0],s[0][1]],[+i[1],s[1][1]]]},output:function(i){return i&&[i[0][0],i[1][0]]}},not={name:"y",handles:["n","s"].map(d8),input:function(i,s){return i==null?null:[[s[0][0],+i[0]],[s[1][0],+i[1]]]},output:function(i){return i&&[i[0][1],i[1][1]]}},oot={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(d8),input:function(i){return i==null?null:rG(i)},output:function(i){return i}};function d8(i){return{type:i}}function J$(i){return Math.abs(i=Math.round(i))>=1e21?i.toLocaleString("en").replace(/,/g,""):i.toString(10)}function oh(i,s){if((a=(i=s?i.toExponential(s-1):i.toExponential()).indexOf("e"))<0)return null;var a,u=i.slice(0,a);return[u.length>1?u[0]+u.slice(2):u,+i.slice(a+1)]}function No(i){return i=oh(Math.abs(i)),i?i[1]:NaN}function Y$(i,s){return function(a,u){for(var n=a.length,p=[],m=0,y=i[0],M=0;n>0&&y>0&&(M+y+1>u&&(y=Math.max(1,u-M)),p.push(a.substring(n-=y,n+y)),!((M+=y+1)>u));)y=i[m=(m+1)%i.length];return p.reverse().join(s)}}function Q$(i){return function(s){return s.replace(/[0-9]/g,function(a){return i[+a]})}}var iG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xa(i){if(!(s=iG.exec(i)))throw new Error("invalid format: "+i);var s;return new Td({fill:s[1],align:s[2],sign:s[3],symbol:s[4],zero:s[5],width:s[6],comma:s[7],precision:s[8]&&s[8].slice(1),trim:s[9],type:s[10]})}Xa.prototype=Td.prototype;function Td(i){this.fill=i.fill===void 0?" ":i.fill+"",this.align=i.align===void 0?">":i.align+"",this.sign=i.sign===void 0?"-":i.sign+"",this.symbol=i.symbol===void 0?"":i.symbol+"",this.zero=!!i.zero,this.width=i.width===void 0?void 0:+i.width,this.comma=!!i.comma,this.precision=i.precision===void 0?void 0:+i.precision,this.trim=!!i.trim,this.type=i.type===void 0?"":i.type+""}Td.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function tI(i){t:for(var s=i.length,a=1,u=-1,n;a<s;++a)switch(i[a]){case".":u=n=a;break;case"0":u===0&&(u=a),n=a;break;default:if(!+i[a])break t;u>0&&(u=0);break}return u>0?i.slice(0,u)+i.slice(n+1):i}var p8;function eI(i,s){var a=oh(i,s);if(!a)return i+"";var u=a[0],n=a[1],p=n-(p8=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,m=u.length;return p===m?u:p>m?u+new Array(p-m+1).join("0"):p>0?u.slice(0,p)+"."+u.slice(p):"0."+new Array(1-p).join("0")+oh(i,Math.max(0,s+p-1))[0]}function m8(i,s){var a=oh(i,s);if(!a)return i+"";var u=a[0],n=a[1];return n<0?"0."+new Array(-n).join("0")+u:u.length>n+1?u.slice(0,n+1)+"."+u.slice(n+1):u+new Array(n-u.length+2).join("0")}var v8={"%":(i,s)=>(i*100).toFixed(s),b:i=>Math.round(i).toString(2),c:i=>i+"",d:J$,e:(i,s)=>i.toExponential(s),f:(i,s)=>i.toFixed(s),g:(i,s)=>i.toPrecision(s),o:i=>Math.round(i).toString(8),p:(i,s)=>m8(i*100,s),r:m8,s:eI,X:i=>Math.round(i).toString(16).toUpperCase(),x:i=>Math.round(i).toString(16)};function g8(i){return i}var rI=Array.prototype.map,iI=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function nI(i){var s=i.grouping===void 0||i.thousands===void 0?g8:Y$(rI.call(i.grouping,Number),i.thousands+""),a=i.currency===void 0?"":i.currency[0]+"",u=i.currency===void 0?"":i.currency[1]+"",n=i.decimal===void 0?".":i.decimal+"",p=i.numerals===void 0?g8:Q$(rI.call(i.numerals,String)),m=i.percent===void 0?"%":i.percent+"",y=i.minus===void 0?"\u2212":i.minus+"",M=i.nan===void 0?"NaN":i.nan+"";function b(S){S=Xa(S);var _=S.fill,x=S.align,E=S.sign,k=S.symbol,B=S.zero,T=S.width,C=S.comma,P=S.precision,G=S.trim,U=S.type;U==="n"?(C=!0,U="g"):v8[U]||(P===void 0&&(P=12),G=!0,U="g"),(B||_==="0"&&x==="=")&&(B=!0,_="0",x="=");var V=k==="$"?a:k==="#"&&/[boxX]/.test(U)?"0"+U.toLowerCase():"",I=k==="$"?u:/[%p]/.test(U)?m:"",D=v8[U],z=/[defgprs%]/.test(U);P=P===void 0?6:/[gprs]/.test(U)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function d(t){var r=V,o=I,h,f,v;if(U==="c")o=D(t)+o,t="";else{t=+t;var w=t<0||1/t<0;if(t=isNaN(t)?M:D(Math.abs(t),P),G&&(t=tI(t)),w&&+t==0&&E!=="+"&&(w=!1),r=(w?E==="("?E:y:E==="-"||E==="("?"":E)+r,o=(U==="s"?iI[8+p8/3]:"")+o+(w&&E==="("?")":""),z){for(h=-1,f=t.length;++h<f;)if(v=t.charCodeAt(h),48>v||v>57){o=(v===46?n+t.slice(h+1):t.slice(h))+o,t=t.slice(0,h);break}}}C&&!B&&(t=s(t,1/0));var l=r.length+t.length+o.length,e=l<T?new Array(T-l+1).join(_):"";switch(C&&B&&(t=s(e+t,e.length?T-o.length:1/0),e=""),x){case"<":t=r+t+o+e;break;case"=":t=r+e+t+o;break;case"^":t=e.slice(0,l=e.length>>1)+r+t+o+e.slice(l);break;default:t=e+r+t+o;break}return p(t)}return d.toString=function(){return S+""},d}function g(S,_){var x=b((S=Xa(S),S.type="f",S)),E=Math.max(-8,Math.min(8,Math.floor(No(_)/3)))*3,k=Math.pow(10,-E),B=iI[8+E/3];return function(T){return x(k*T)+B}}return{format:b,formatPrefix:g}}var $d,Id,Cd;b8({thousands:",",grouping:[3],currency:["$",""]});function b8(i){return $d=nI(i),Id=$d.format,Cd=$d.formatPrefix,$d}function y8(i){return Math.max(0,-No(Math.abs(i)))}function w8(i,s){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(No(s)/3)))*3-No(Math.abs(i)))}function M8(i,s){return i=Math.abs(i),s=Math.abs(s)-i,Math.max(0,No(s)-No(i))+1}function hf(i,s){switch(arguments.length){case 0:break;case 1:this.range(i);break;default:this.range(s).domain(i);break}return this}var oI=Symbol("implicit");function Pd(){var i=new rf,s=[],a=[],u=oI;function n(p){let m=i.get(p);if(m===void 0){if(u!==oI)return u;i.set(p,m=s.push(p)-1)}return a[m%a.length]}return n.domain=function(p){if(!arguments.length)return s.slice();s=[],i=new rf;for(let m of p)i.has(m)||i.set(m,s.push(m)-1);return n},n.range=function(p){return arguments.length?(a=Array.from(p),n):a.slice()},n.unknown=function(p){return arguments.length?(u=p,n):u},n.copy=function(){return Pd(s,a).unknown(u)},hf.apply(n,arguments),n}function Ku(){var i=Pd().unknown(void 0),s=i.domain,a=i.range,u=0,n=1,p,m,y=!1,M=0,b=0,g=.5;delete i.unknown;function S(){var _=s().length,x=n<u,E=x?n:u,k=x?u:n;p=(k-E)/Math.max(1,_-M+b*2),y&&(p=Math.floor(p)),E+=(k-E-p*(_-M))*g,m=p*(1-M),y&&(E=Math.round(E),m=Math.round(m));var B=N6(_).map(function(T){return E+p*T});return a(x?B.reverse():B)}return i.domain=function(_){return arguments.length?(s(_),S()):s()},i.range=function(_){return arguments.length?([u,n]=_,u=+u,n=+n,S()):[u,n]},i.rangeRound=function(_){return[u,n]=_,u=+u,n=+n,y=!0,S()},i.bandwidth=function(){return m},i.step=function(){return p},i.round=function(_){return arguments.length?(y=!!_,S()):y},i.padding=function(_){return arguments.length?(M=Math.min(1,b=+_),S()):M},i.paddingInner=function(_){return arguments.length?(M=Math.min(1,_),S()):M},i.paddingOuter=function(_){return arguments.length?(b=+_,S()):b},i.align=function(_){return arguments.length?(g=Math.max(0,Math.min(1,_)),S()):g},i.copy=function(){return Ku(s(),[u,n]).round(y).paddingInner(M).paddingOuter(b).align(g)},hf.apply(S(),arguments)}function _8(i){return function(){return i}}function S8(i){return+i}var aI=[0,1];function ff(i){return i}function x8(i,s){return(s-=i=+i)?function(a){return(a-i)/s}:_8(isNaN(s)?NaN:.5)}function nG(i,s){var a;return i>s&&(a=i,i=s,s=a),function(u){return Math.max(i,Math.min(s,u))}}function oG(i,s,a){var u=i[0],n=i[1],p=s[0],m=s[1];return n<u?(u=x8(n,u),p=a(m,p)):(u=x8(u,n),p=a(p,m)),function(y){return p(u(y))}}function aG(i,s,a){var u=Math.min(i.length,s.length)-1,n=new Array(u),p=new Array(u),m=-1;for(i[u]<i[0]&&(i=i.slice().reverse(),s=s.slice().reverse());++m<u;)n[m]=x8(i[m],i[m+1]),p[m]=a(s[m],s[m+1]);return function(y){var M=C6(i,y,1,u)-1;return p[M](n[M](y))}}function sI(i,s){return s.domain(i.domain()).range(i.range()).interpolate(i.interpolate()).clamp(i.clamp()).unknown(i.unknown())}function sG(){var i=aI,s=aI,a=ih,u,n,p,m=ff,y,M,b;function g(){var _=Math.min(i.length,s.length);return m!==ff&&(m=nG(i[0],i[_-1])),y=_>2?aG:oG,M=b=null,S}function S(_){return _==null||isNaN(_=+_)?p:(M||(M=y(i.map(u),s,a)))(u(m(_)))}return S.invert=function(_){return m(n((b||(b=y(s,i.map(u),yi)))(_)))},S.domain=function(_){return arguments.length?(i=Array.from(_,S8),g()):i.slice()},S.range=function(_){return arguments.length?(s=Array.from(_),g()):s.slice()},S.rangeRound=function(_){return s=Array.from(_),a=h8,g()},S.clamp=function(_){return arguments.length?(m=_?!0:ff,g()):m!==ff},S.interpolate=function(_){return arguments.length?(a=_,g()):a},S.unknown=function(_){return arguments.length?(p=_,S):p},function(_,x){return u=_,n=x,g()}}function E8(){return sG()(ff,ff)}function A8(i,s,a,u){var n=O6(i,s,a),p;switch(u=Xa(u??",f"),u.type){case"s":{var m=Math.max(Math.abs(i),Math.abs(s));return u.precision==null&&!isNaN(p=w8(n,m))&&(u.precision=p),Cd(u,m)}case"":case"e":case"g":case"p":case"r":{u.precision==null&&!isNaN(p=M8(n,Math.max(Math.abs(i),Math.abs(s))))&&(u.precision=p-(u.type==="e"));break}case"f":case"%":{u.precision==null&&!isNaN(p=y8(n))&&(u.precision=p-(u.type==="%")*2);break}}return Id(u)}function hG(i){var s=i.domain;return i.ticks=function(a){var u=s();return Mu(u[0],u[u.length-1],a??10)},i.tickFormat=function(a,u){var n=s();return A8(n[0],n[n.length-1],a??10,u)},i.nice=function(a){a==null&&(a=10);var u=s(),n=0,p=u.length-1,m=u[n],y=u[p],M,b,g=10;for(y<m&&(b=m,m=y,y=b,b=n,n=p,p=b);g-- >0;){if(b=Zc(m,y,a),b===M)return u[n]=m,u[p]=y,s(u);if(b>0)m=Math.floor(m/b)*b,y=Math.ceil(y/b)*b;else if(b<0)m=Math.ceil(m*b)/b,y=Math.floor(y*b)/b;else break;M=b}return i},i}function Gu(){var i=E8();return i.copy=function(){return sI(i,Gu())},hf.apply(i,arguments),hG(i)}function Ja(i,s,a){this.k=i,this.x=s,this.y=a}Ja.prototype={constructor:Ja,scale:function(i){return i===1?this:new Ja(this.k*i,this.x,this.y)},translate:function(i,s){return i===0&s===0?this:new Ja(this.k,this.x+this.k*i,this.y+this.k*s)},apply:function(i){return[i[0]*this.k+this.x,i[1]*this.k+this.y]},applyX:function(i){return i*this.k+this.x},applyY:function(i){return i*this.k+this.y},invert:function(i){return[(i[0]-this.x)/this.k,(i[1]-this.y)/this.k]},invertX:function(i){return(i-this.x)/this.k},invertY:function(i){return(i-this.y)/this.k},rescaleX:function(i){return i.copy().domain(i.range().map(this.invertX,this).map(i.invert,i))},rescaleY:function(i){return i.copy().domain(i.range().map(this.invertY,this).map(i.invert,i))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var k8=new Ja(1,0,0);R8.prototype=Ja.prototype;function R8(i){for(;!i.__zoom;)if(!(i=i.parentNode))return k8;return i.__zoom}var B8=Xt(Ce()),uG=()=>{let i=(0,uf.useRef)(null),{repodata2:s}=Rr(),[a,u]=tl(),n=(0,uf.useDeferredValue)(u),p=s.commitCountPerDay;return(0,uf.useEffect)(()=>{if(!p||!i.current)return;let m=r8(i.current),y=n.width*.9,M=30,b=Ku().domain(p.map(S=>S.date.toString())).range([0,y]).padding(.1),g=Gu().domain([0,id(p,S=>S.count)||0]).range([M,0]);m.selectAll("rect").remove(),m.selectAll("rect").data(p).enter().append("rect").attr("x",S=>b(S.date)||0).attr("y",S=>g(S.count)).attr("width",b.bandwidth()).attr("height",S=>M-g(S.count)).attr("fill","steelblue").append("title").text(S=>`${S.date}: ${S.count} commits`)},[p,n]),(0,B8.jsx)("div",{className:"flex justify-center",ref:a,children:(0,B8.jsx)("svg",{ref:i,width:"90%",height:30})})},hI=uG;var pe=Xt(Ce());var mG=()=>{let i=I8();if((0,Ui.useEffect)(()=>{console.error(i)},[i]),T8(i))return(0,pe.jsxs)("div",{className:"app-container",children:[(0,pe.jsx)("div",{}),(0,pe.jsxs)("div",{className:"card",children:[(0,pe.jsx)("h1",{children:"An error occured!"}),(0,pe.jsx)("p",{children:"See console for more infomation."}),(0,pe.jsxs)("p",{children:["Message: ",i.data.message]}),(0,pe.jsx)(ph,{children:i.data.message}),(0,pe.jsx)("div",{children:(0,pe.jsx)(ts,{to:".",children:"Retry"})}),(0,pe.jsx)("div",{children:(0,pe.jsx)(ts,{to:"..",children:"Go back"})})]})]});let s="Unknown error";return typeof i=="string"?s=i:typeof i=="object"&&i!==null&&"message"in i&&typeof i.message=="string"&&(s=i.message),(0,pe.jsxs)("div",{className:"app-container",children:[(0,pe.jsx)("div",{}),(0,pe.jsxs)("div",{className:"card",children:[(0,pe.jsx)("h1",{children:"An error occured!"}),(0,pe.jsx)("p",{children:"See console for more infomation."}),(0,pe.jsx)(ph,{children:s}),(0,pe.jsx)("div",{children:(0,pe.jsx)(ts,{to:".",children:"Retry"})}),(0,pe.jsx)("div",{children:(0,pe.jsx)(ts,{to:"..",children:"Go back"})})]})]})},vG=(0,Ui.memo)(function(){let{gitTruckInfo:s}=Rr();return(0,pe.jsxs)("div",{className:"card",children:[(0,pe.jsxs)("p",{children:["Update available: ",s.latestVersion]}),(0,pe.jsxs)("p",{className:"card-p",children:["Currently installed: ",s.version]}),(0,pe.jsxs)("p",{className:"card-p",children:["To update, close application and run: ",(0,pe.jsx)(ph,{inline:!0,children:"npx git-truck@latest"})]})]})});function cI(){let i=el(),s=Hd(),{gitTruckInfo:a,repodata2:u}=s,[n,p]=(0,Ui.useState)(!1),[m,y]=(0,Ui.useState)(!1),[M,b]=(0,Ui.useState)(!1),[g,S]=Qu(!1),[_,x]=(0,Ui.useState)(null),E=()=>S(!0),k=(0,Ui.useMemo)(function(){return M?"fullscreen":n&&m?"both-collapse":n?"left-collapse":m?"right-collapse":""},[M,n,m]);return(0,pe.jsxs)(yR,{data:s,children:[(0,pe.jsxs)("div",{className:cf("app-container",k),children:[(0,pe.jsxs)("aside",{className:Wr("grid auto-rows-min items-start gap-2 p-2 pr-0",{"overflow-y-auto":!M}),children:[n?null:(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(fR,{}),(0,pe.jsx)(gR,{}),u.hiddenFiles.length>0?(0,pe.jsx)(uR,{}):null,(0,pe.jsx)(wR,{})]}),M?null:(0,pe.jsx)("div",{className:cf("absolute z-10 justify-self-end",{"left-0":n}),children:(0,pe.jsx)("button",{type:"button",onClick:()=>p(!n),className:Wr("btn btn--primary absolute left-0 top-[50vh] flex h-6 w-6 cursor-pointer items-center justify-center rounded-full p-0",{"left-arrow-space":!n}),children:(0,pe.jsx)(Dd.Icon,{path:n?uh:Od,size:1})})})]}),(0,pe.jsxs)("main",{className:"grid h-full min-w-[100px] grid-rows-[auto,1fr] gap-2 overflow-y-hidden p-2",children:[(0,pe.jsxs)("header",{className:"grid grid-flow-col items-center justify-between gap-2",children:[(0,pe.jsx)(SR,{}),(0,pe.jsx)(gG,{setIsFullscreen:b,isFullscreen:M})]}),i?(0,pe.jsx)(bG,{hoveredObject:_,setHoveredObject:x}):(0,pe.jsx)("div",{}),(0,pe.jsx)("div",{className:"flex flex-col",children:(0,pe.jsxs)(B3,{children:[(0,pe.jsx)(X6,{}),(0,pe.jsx)(hI,{})]})})]}),(0,pe.jsxs)("aside",{className:Wr("grid auto-rows-min items-start gap-2 p-2 pl-0",{"overflow-y-auto":!M}),children:[M?null:(0,pe.jsx)("div",{className:"absolute z-10",children:(0,pe.jsx)("button",{type:"button",onClick:()=>y(!m),className:"btn btn--primary absolute right-0 top-[50vh] flex h-6 w-6 cursor-pointer items-center justify-center rounded-full p-0",children:(0,pe.jsx)(Dd.Icon,{path:m?Od:uh,size:1})})}),m?null:(0,pe.jsxs)(pe.Fragment,{children:[a.latestVersion&&R3(a.latestVersion,a.version)===1?(0,pe.jsx)(vG,{}):null,(0,pe.jsx)(hR,{className:Wr({"absolute bottom-0 right-2 max-h-screen -translate-x-full overflow-y-auto shadow shadow-black/50":M}),showUnionAuthorsModal:E}),(0,pe.jsx)(mR,{hoveredObject:_,showUnionAuthorsModal:E}),(0,pe.jsx)(lI.Online,{children:(0,pe.jsx)(BR,{})})]})]})]}),(0,pe.jsx)(_R,{open:g,onClose:()=>{S(!1)}})]})}var gG=(0,Ui.memo)(function({setIsFullscreen:s,isFullscreen:a}){return(0,pe.jsx)("button",{className:"card btn btn--primary p-1",onClick:()=>s(u=>!u),title:"Toggle full view",children:(0,pe.jsx)(Dd.Icon,{path:a?X8:W8,size:1})})});function bG({hoveredObject:i,setHoveredObject:s}){let a=(0,Ui.useRef)(null),u=(0,Ui.useRef)(document.body),n=I3(u);return(0,pe.jsxs)("div",{className:"card grid overflow-y-hidden p-2",ref:a,children:[(0,pe.jsx)(MB,{setHoveredObject:s}),(0,uI.createPortal)((0,pe.jsx)(SB,{hoveredObject:i,x:n.docX,y:n.docY,w:window.innerWidth}),document.body)]})}export{mG as ErrorBoundary,cI as default};
42
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
43
+ /*! Bundled license information:
44
+
45
+ lang-map/index.js:
46
+ (*!
47
+ * lang-map <https://github.com/jonschlinkert/lang-map>
48
+ *
49
+ * Copyright (c) 2014-2015, Jon Schlinkert.
50
+ * Licensed under the MIT license.
51
+ *)
52
+
53
+ uniqolor/dist/uniqolor.js:
54
+ (**
55
+ * Generate unique and beautiful colors from any texts or numbers
56
+ * @version v1.1.0
57
+ * @link https://github.com/dastoori/uniqolor#README
58
+ * @author Rasool Dastoori
59
+ * @license MIT License, http://www.opensource.org/licenses/MIT
60
+ *)
61
+
62
+ @jspm/core/nodelibs/browser/chunk-44e51b61.js:
63
+ (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
64
+ */