@blockcerts/blockcerts-verifier 1.59.0 → 1.59.1

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.
Files changed (33) hide show
  1. package/bundle-stats.html +1 -1
  2. package/dist/{EcdsaSecp256k1Signature2019-XwuS-fWx-n_8xXj1H.js → EcdsaSecp256k1Signature2019-XwuS-fWx-7dFfMy74.js} +1 -1
  3. package/dist/{Ed25519Signature2020-IJ4ybcbU-ii2PjWjh.js → Ed25519Signature2020-IJ4ybcbU--hEL5-Pa.js} +1 -1
  4. package/dist/{HashlinkVerifier-wyKYZ83G-aKb9h_9G.js → HashlinkVerifier-wyKYZ83G-bzhltPG4.js} +1 -1
  5. package/dist/{MerkleProof2017-MZJbBTpc-NVfw6WgB.js → MerkleProof2017-MZJbBTpc-0GcGcIV-.js} +1 -1
  6. package/dist/{MerkleProof2017-Ub6_JUVj-Z6jluDo2.js → MerkleProof2017-Ub6_JUVj-x8awkeml.js} +1 -1
  7. package/dist/{MerkleProof2019-QUwyEIHd-9hBGmPq_.js → MerkleProof2019-QUwyEIHd-iYt21yPG.js} +1 -1
  8. package/dist/{checkRevocationStatusList2021-d1qO1xnj-AIMXIqnZ.js → checkRevocationStatusList2021-d1qO1xnj-DH6pO-9Q.js} +1 -1
  9. package/dist/{controlVerificationMethod-6GJtYmqY-VwQyuM5o.js → controlVerificationMethod-6GJtYmqY-Ivo3O8nb.js} +1 -1
  10. package/dist/{did-key-common.esm-Fyh_U6fK-6hhnSYH5.js → did-key-common.esm-Fyh_U6fK-cOLlHenk.js} +1 -1
  11. package/dist/{did-key-ed25519.esm-1lIlZtof-q2UR_X9G.js → did-key-ed25519.esm-1lIlZtof-Grj-JpU9.js} +1 -1
  12. package/dist/did-key-secp256k1.esm-hA8kGTM0-G8ct6CwH.js +1 -0
  13. package/dist/{downloadPDF-6pZYEy3P.js → downloadPDF--IVgfc2I.js} +3 -3
  14. package/dist/{elliptic-il_lPAr--BGmaMzNc.js → elliptic-il_lPAr--VPyWJbY1.js} +1 -1
  15. package/dist/{ensureNotRevoked-2QGGtBqy-U5ByLE-t.js → ensureNotRevoked-2QGGtBqy-t8Yk4QI-.js} +1 -1
  16. package/dist/ensureNotRevoked-gui-UMnE-kFmYZEJe.js +1 -0
  17. package/dist/{ensureValidIssuingKey-zZEv5-cH-oM__XftS.js → ensureValidIssuingKey-zZEv5-cH-UoJe_Wnf.js} +1 -1
  18. package/dist/{index-MC635rre-r3wKwiyR.js → index-MC635rre-_DW5MUyk.js} +2 -2
  19. package/dist/{index-WX6J-tsk.js → index-UlvMASNZ.js} +1 -1
  20. package/dist/index-xsnp_Fid-o1HUYRUQ.js +1 -0
  21. package/dist/{index.es-NoR6QQLP.js → index.es-dEKcVerc.js} +1 -1
  22. package/dist/{jsonld-CXlzLf4P-Wh4x173W.js → jsonld-CXlzLf4P-ioHKtwiZ.js} +6 -6
  23. package/dist/{jsonld-signatures-ooFWZVS--VI8BZQOv.js → jsonld-signatures-ooFWZVS--ThP8ltUY.js} +5 -5
  24. package/dist/main.js +103 -103
  25. package/dist/{purify-05qYXQpp.js → purify-GC91XaSq.js} +1 -1
  26. package/dist/{sha256-wKeS8_4l-o9J6pXuo.js → sha256-wKeS8_4l-9eo2gOQb.js} +1 -1
  27. package/dist/{x25519-NtRELWAG-TIgip27e.js → x25519-NtRELWAG-2RynHlmX.js} +1 -1
  28. package/package.json +1 -1
  29. package/scripts/automated-update-blockcerts.org.sh +7 -1
  30. package/dist/did-key-secp256k1.esm-hA8kGTM0-5bW-jZai.js +0 -1
  31. package/dist/ensureNotRevoked-gui-UMnE-9nObicUP.js +0 -1
  32. package/dist/index-F1HqK0qm.js +0 -1
  33. package/dist/index-xsnp_Fid-LwXIiw03.js +0 -1
@@ -1,2 +1,2 @@
1
- import{g as e,c as t}from"./downloadPDF-6pZYEy3P.js";function n(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var r={exports:{}};
1
+ import{g as e,c as t}from"./downloadPDF--IVgfc2I.js";function n(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var r={exports:{}};
2
2
  /*! @license DOMPurify 2.3.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.8/LICENSE */r.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,a){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},r.apply(null,arguments)}function o(e){return a(e)||i(e)||l(e)||u()}function a(e){if(Array.isArray(e))return c(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=Object.hasOwnProperty,m=Object.setPrototypeOf,f=Object.isFrozen,p=Object.getPrototypeOf,d=Object.getOwnPropertyDescriptor,h=Object.freeze,g=Object.seal,y=Object.create,b="undefined"!=typeof Reflect&&Reflect,v=b.apply,T=b.construct;v||(v=function(e,t,n){return e.apply(t,n)}),h||(h=function(e){return e}),g||(g=function(e){return e}),T||(T=function(e,t){return r(e,o(t))});var N=C(Array.prototype.forEach),E=C(Array.prototype.pop),A=C(Array.prototype.push),w=C(String.prototype.toLowerCase),x=C(String.prototype.match),_=C(String.prototype.replace),k=C(String.prototype.indexOf),S=C(String.prototype.trim),O=C(RegExp.prototype.test),D=R(TypeError);function C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return v(e,t,r)}}function R(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return T(e,n)}}function M(e,t){m&&m(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=w(r);o!==r&&(f(t)||(t[n]=o),r=o)}e[r]=!0}return e}function L(e){var t,n=y(null);for(t in e)v(s,e,[t])&&(n[t]=e[t]);return n}function I(e,t){for(;null!==e;){var n=d(e,t);if(n){if(n.get)return C(n.get);if("function"==typeof n.value)return C(n.value)}e=p(e)}function r(e){return console.warn("fallback value for",e),null}return r}var F=h(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),H=h(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),U=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z=h(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=h(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),B=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=h(["#text"]),G=h(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),W=h(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=h(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=g(/<%[\w\W]*|[\w\W]*%>/gm),$=g(/^data-[\-\w.\u00B7-\uFFFF]/),X=g(/^aria-[\-\w]+$/),Z=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=g(/^(?:\w+script|data):/i),Q=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=g(/^html$/i),te=function(){return"undefined"==typeof window?null:window},ne=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te(),n=function(e){return re(e)};if(n.version="2.3.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,i=t.DocumentFragment,l=t.HTMLTemplateElement,c=t.Node,u=t.Element,s=t.NodeFilter,m=t.NamedNodeMap,f=void 0===m?t.NamedNodeMap||t.MozNamedAttrMap:m,p=t.HTMLFormElement,d=t.DOMParser,g=t.trustedTypes,y=u.prototype,b=I(y,"cloneNode"),v=I(y,"nextSibling"),T=I(y,"childNodes"),C=I(y,"parentNode");if("function"==typeof l){var R=a.createElement("template");R.content&&R.content.ownerDocument&&(a=R.content.ownerDocument)}var oe=ne(g,r),ae=oe?oe.createHTML(""):"",ie=a,le=ie.implementation,ce=ie.createNodeIterator,ue=ie.createDocumentFragment,se=ie.getElementsByTagName,me=r.importNode,fe={};try{fe=L(a).documentMode?a.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof C&&le&&void 0!==le.createHTMLDocument&&9!==fe;var de,he,ge=K,ye=V,be=$,ve=X,Te=J,Ne=Q,Ee=Z,Ae=null,we=M({},[].concat(o(F),o(H),o(U),o(j),o(P))),xe=null,_e=M({},[].concat(o(G),o(W),o(q),o(Y))),ke=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Oe=null,De=!0,Ce=!0,Re=!1,Me=!1,Le=!1,Ie=!1,Fe=!1,He=!1,Ue=!1,ze=!1,je=!0,Be=!0,Pe=!1,Ge={},We=null,qe=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ye=null,Ke=M({},["audio","video","img","source","image","track"]),Ve=null,$e=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml",Qe=Je,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,ot=a.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},it=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=L(t),Ae="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS):we,xe="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR):_e,Ve="ADD_URI_SAFE_ATTR"in t?M(L($e),t.ADD_URI_SAFE_ATTR):$e,Ye="ADD_DATA_URI_TAGS"in t?M(L(Ke),t.ADD_DATA_URI_TAGS):Ke,We="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS):qe,Se="FORBID_TAGS"in t?M({},t.FORBID_TAGS):{},Oe="FORBID_ATTR"in t?M({},t.FORBID_ATTR):{},Ge="USE_PROFILES"in t&&t.USE_PROFILES,De=!1!==t.ALLOW_ARIA_ATTR,Ce=!1!==t.ALLOW_DATA_ATTR,Re=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=t.SAFE_FOR_TEMPLATES||!1,Le=t.WHOLE_DOCUMENT||!1,He=t.RETURN_DOM||!1,Ue=t.RETURN_DOM_FRAGMENT||!1,ze=t.RETURN_TRUSTED_TYPE||!1,Fe=t.FORCE_BODY||!1,je=!1!==t.SANITIZE_DOM,Be=!1!==t.KEEP_CONTENT,Pe=t.IN_PLACE||!1,Ee=t.ALLOWED_URI_REGEXP||Ee,Qe=t.NAMESPACE||Je,t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),de=de=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,he="application/xhtml+xml"===de?function(e){return e}:w,Me&&(Ce=!1),Ue&&(He=!0),Ge&&(Ae=M({},o(P)),xe=[],!0===Ge.html&&(M(Ae,F),M(xe,G)),!0===Ge.svg&&(M(Ae,H),M(xe,W),M(xe,Y)),!0===Ge.svgFilters&&(M(Ae,U),M(xe,W),M(xe,Y)),!0===Ge.mathMl&&(M(Ae,j),M(xe,q),M(xe,Y))),t.ADD_TAGS&&(Ae===we&&(Ae=L(Ae)),M(Ae,t.ADD_TAGS)),t.ADD_ATTR&&(xe===_e&&(xe=L(xe)),M(xe,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&M(Ve,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(We===qe&&(We=L(We)),M(We,t.FORBID_CONTENTS)),Be&&(Ae["#text"]=!0),Le&&M(Ae,["html","head","body"]),Ae.table&&(M(Ae,["tbody"]),delete Se.tbody),h&&h(t),rt=t)},lt=M({},["mi","mo","mn","ms","mtext"]),ct=M({},["foreignobject","desc","title","annotation-xml"]),ut=M({},["title","style","font","a","script"]),st=M({},H);M(st,U),M(st,z);var mt=M({},j);M(mt,B);var ft=function(e){var t=C(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});var n=w(e.tagName),r=w(t.tagName);return e.namespaceURI===Ze?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||lt[r]):Boolean(st[n]):e.namespaceURI===Xe?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ze?"math"===n&&ct[r]:Boolean(mt[n]):e.namespaceURI===Je&&!(t.namespaceURI===Ze&&!ct[r])&&!(t.namespaceURI===Xe&&!lt[r])&&!mt[n]&&(ut[n]||!st[n])},pt=function(e){A(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},dt=function(e,t){try{A(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){A(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(He||Ue)try{pt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){var t,n;if(Fe)e="<remove></remove>"+e;else{var r=x(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===de&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(Qe===Je)try{t=(new d).parseFromString(o,de)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),Qe===Je?se.call(t,Le?"html":"body")[0]:Le?t.documentElement:i},gt=function(e){return ce.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,null,!1)},yt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},bt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},vt=function(e,t,r){pe[e]&&N(pe[e],(function(e){e.call(n,t,r,rt)}))},Tt=function(e){var t;if(vt("beforeSanitizeElements",e,null),yt(e))return pt(e),!0;if(O(/[\u0080-\uFFFF]/,e.nodeName))return pt(e),!0;var r=he(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:r,allowedTags:Ae}),e.hasChildNodes()&&!bt(e.firstElementChild)&&(!bt(e.content)||!bt(e.content.firstElementChild))&&O(/<[/\w]/g,e.innerHTML)&&O(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===r&&O(/<template/i,e.innerHTML))return pt(e),!0;if(!Ae[r]||Se[r]){if(!Se[r]&&Et(r)){if(ke.tagNameCheck instanceof RegExp&&O(ke.tagNameCheck,r))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(r))return!1}if(Be&&!We[r]){var o=C(e)||e.parentNode,a=T(e)||e.childNodes;if(a&&o)for(var i=a.length-1;i>=0;--i)o.insertBefore(b(a[i],!0),v(e))}return pt(e),!0}return e instanceof u&&!ft(e)?(pt(e),!0):"noscript"!==r&&"noembed"!==r||!O(/<\/no(script|embed)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,t=_(t,ge," "),t=_(t,ye," "),e.textContent!==t&&(A(n.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(pt(e),!0)},Nt=function(e,t,n){if(je&&("id"===t||"name"===t)&&(n in a||n in ot))return!1;if(Ce&&!Oe[t]&&O(be,t));else if(De&&O(ve,t));else if(!xe[t]||Oe[t]){if(!(Et(e)&&(ke.tagNameCheck instanceof RegExp&&O(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&O(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&O(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(Ve[t]);else if(O(Ee,_(n,Ne,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!Ye[e])if(Re&&!O(Te,_(n,Ne,"")));else if(n)return!1;return!0},Et=function(e){return e.indexOf("-")>0},At=function(e){var t,r,o,a;vt("beforeSanitizeAttributes",e,null);var i=e.attributes;if(i){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(a=i.length;a--;){var c=t=i[a],u=c.name,s=c.namespaceURI;if(r="value"===u?t.value:S(t.value),o=he(u),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(dt(u,e),l.keepAttr))if(O(/\/>/i,r))dt(u,e);else{Me&&(r=_(r,ge," "),r=_(r,ye," "));var m=he(e.nodeName);if(Nt(m,o,r))try{s?e.setAttributeNS(s,u,r):e.setAttribute(u,r),E(n.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)}},wt=function e(t){var n,r=gt(t);for(vt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)vt("uponSanitizeShadowNode",n,null),Tt(n)||(n.content instanceof i&&e(n.content),At(n));vt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o,a){var l,u,s,m,f;if((et=!o)&&(o="\x3c!--\x3e"),"string"!=typeof o&&!bt(o)){if("function"!=typeof o.toString)throw D("toString is not a function");if("string"!=typeof(o=o.toString()))throw D("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof o)return t.toStaticHTML(o);if(bt(o))return t.toStaticHTML(o.outerHTML)}return o}if(Ie||it(a),n.removed=[],"string"==typeof o&&(Pe=!1),Pe){if(o.nodeName){var p=he(o.nodeName);if(!Ae[p]||Se[p])throw D("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof c)1===(u=(l=ht("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?l=u:l.appendChild(u);else{if(!He&&!Me&&!Le&&-1===o.indexOf("<"))return oe&&ze?oe.createHTML(o):o;if(!(l=ht(o)))return He?null:ze?ae:""}l&&Fe&&pt(l.firstChild);for(var d=gt(Pe?o:l);s=d.nextNode();)3===s.nodeType&&s===m||Tt(s)||(s.content instanceof i&&wt(s.content),At(s),m=s);if(m=null,Pe)return o;if(He){if(Ue)for(f=ue.call(l.ownerDocument);l.firstChild;)f.appendChild(l.firstChild);else f=l;return xe.shadowroot&&(f=me.call(r,f,!0)),f}var h=Le?l.outerHTML:l.innerHTML;return Le&&Ae["!doctype"]&&l.ownerDocument&&l.ownerDocument.doctype&&l.ownerDocument.doctype.name&&O(ee,l.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+l.ownerDocument.doctype.name+">\n"+h),Me&&(h=_(h,ge," "),h=_(h,ye," ")),oe&&ze?oe.createHTML(h):h},n.setConfig=function(e){it(e),Ie=!0},n.clearConfig=function(){rt=null,Ie=!1},n.isValidAttribute=function(e,t,n){rt||it({});var r=he(e),o=he(t);return Nt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],A(pe[e],t))},n.removeHook=function(e){if(pe[e])return E(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}var oe=re();return oe}();var o=r.exports,a=n({__proto__:null,default:e(o)},[o]);export{a as p};
@@ -1 +1 @@
1
- import{f as t,d as r}from"./main.js";var n,e={exports:{}},o={exports:{}};function i(){return n||(n=1,r=o,function(t){var n={bytesToHex:function(t){return function(t){return t.map((function(t){return r=t.toString(16),n=2,r.length>n?r:Array(n-r.length+1).join("0")+r;var r,n})).join("")}(t)},hexToBytes:function(t){if(t.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===t.indexOf("0x")&&(t=t.slice(2)),t.match(/../g).map((function(t){return parseInt(t,16)}))}};r.exports?r.exports=n:t.convertHex=n}(t)),o.exports;var r}var s,a,u={exports:{}};a=e,function(r){var n={};a.exports?(n.bytesToHex=i().bytesToHex,n.convertString=function(){return s||(s=1,r=u,function(t){var n={bytesToString:function(t){return t.map((function(t){return String.fromCharCode(t)})).join("")},stringToBytes:function(t){return t.split("").map((function(t){return t.charCodeAt(0)}))}};n.UTF8={bytesToString:function(t){return decodeURIComponent(escape(n.bytesToString(t)))},stringToBytes:function(t){return n.stringToBytes(unescape(encodeURIComponent(t)))}},r.exports?r.exports=n:t.convertString=n}(t)),u.exports;var r}(),a.exports=g):(n.bytesToHex=r.convertHex.bytesToHex,n.convertString=r.convertString,r.sha256=g);var e=[];!function(){function t(t){for(var r=Math.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,o=0;o<64;)t(n)&&(e[o]=r(Math.pow(n,1/3)),o++),n++}();var o=function(t){for(var r=[],n=0,e=0;n<t.length;n++,e+=8)r[e>>>5]|=t[n]<<24-e%32;return r},c=function(t){for(var r=[],n=0;n<32*t.length;n+=8)r.push(t[n>>>5]>>>24-n%32&255);return r},f=[],v=function(t,r,n){for(var o=t[0],i=t[1],s=t[2],a=t[3],u=t[4],c=t[5],v=t[6],g=t[7],p=0;p<64;p++){if(p<16)f[p]=0|r[n+p];else{var x=f[p-15],h=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,y=f[p-2],T=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;f[p]=h+f[p-7]+T+f[p-16]}var S=o&i^o&s^i&s,m=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),b=g+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&v)+e[p]+f[p];g=v,v=c,c=u,u=a+b|0,a=s,s=i,i=o,o=b+(m+S)|0}t[0]=t[0]+o|0,t[1]=t[1]+i|0,t[2]=t[2]+s|0,t[3]=t[3]+a|0,t[4]=t[4]+u|0,t[5]=t[5]+c|0,t[6]=t[6]+v|0,t[7]=t[7]+g|0};function g(t,r){t.constructor===String&&(t=n.convertString.UTF8.stringToBytes(t));var e=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],i=o(t),s=8*t.length;i[s>>5]|=128<<24-s%32,i[15+(s+64>>9<<4)]=s;for(var a=0;a<i.length;a+=16)v(e,i,a);var u=c(e);return r&&r.asBytes?u:r&&r.asString?n.convertString.bytesToString(u):n.bytesToHex(u)}g.x2=function(t,r){return g(g(t,{asBytes:!0}),r)}}(t);var c=r(e.exports);export{c as s};
1
+ import{a as t,g as r}from"./main.js";var n,e={exports:{}},o={exports:{}};function i(){return n||(n=1,r=o,function(t){var n={bytesToHex:function(t){return function(t){return t.map((function(t){return r=t.toString(16),n=2,r.length>n?r:Array(n-r.length+1).join("0")+r;var r,n})).join("")}(t)},hexToBytes:function(t){if(t.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===t.indexOf("0x")&&(t=t.slice(2)),t.match(/../g).map((function(t){return parseInt(t,16)}))}};r.exports?r.exports=n:t.convertHex=n}(t)),o.exports;var r}var s,a,u={exports:{}};a=e,function(r){var n={};a.exports?(n.bytesToHex=i().bytesToHex,n.convertString=function(){return s||(s=1,r=u,function(t){var n={bytesToString:function(t){return t.map((function(t){return String.fromCharCode(t)})).join("")},stringToBytes:function(t){return t.split("").map((function(t){return t.charCodeAt(0)}))}};n.UTF8={bytesToString:function(t){return decodeURIComponent(escape(n.bytesToString(t)))},stringToBytes:function(t){return n.stringToBytes(unescape(encodeURIComponent(t)))}},r.exports?r.exports=n:t.convertString=n}(t)),u.exports;var r}(),a.exports=g):(n.bytesToHex=r.convertHex.bytesToHex,n.convertString=r.convertString,r.sha256=g);var e=[];!function(){function t(t){for(var r=Math.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,o=0;o<64;)t(n)&&(e[o]=r(Math.pow(n,1/3)),o++),n++}();var o=function(t){for(var r=[],n=0,e=0;n<t.length;n++,e+=8)r[e>>>5]|=t[n]<<24-e%32;return r},c=function(t){for(var r=[],n=0;n<32*t.length;n+=8)r.push(t[n>>>5]>>>24-n%32&255);return r},f=[],v=function(t,r,n){for(var o=t[0],i=t[1],s=t[2],a=t[3],u=t[4],c=t[5],v=t[6],g=t[7],p=0;p<64;p++){if(p<16)f[p]=0|r[n+p];else{var x=f[p-15],h=(x<<25|x>>>7)^(x<<14|x>>>18)^x>>>3,y=f[p-2],T=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;f[p]=h+f[p-7]+T+f[p-16]}var S=o&i^o&s^i&s,m=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),b=g+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&v)+e[p]+f[p];g=v,v=c,c=u,u=a+b|0,a=s,s=i,i=o,o=b+(m+S)|0}t[0]=t[0]+o|0,t[1]=t[1]+i|0,t[2]=t[2]+s|0,t[3]=t[3]+a|0,t[4]=t[4]+u|0,t[5]=t[5]+c|0,t[6]=t[6]+v|0,t[7]=t[7]+g|0};function g(t,r){t.constructor===String&&(t=n.convertString.UTF8.stringToBytes(t));var e=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],i=o(t),s=8*t.length;i[s>>5]|=128<<24-s%32,i[15+(s+64>>9<<4)]=s;for(var a=0;a<i.length;a+=16)v(e,i,a);var u=c(e);return r&&r.asBytes?u:r&&r.asString?n.convertString.bytesToString(u):n.bytesToHex(u)}g.x2=function(t,r){return g(g(t,{asBytes:!0}),r)}}(t);var c=r(e.exports);export{c as s};
@@ -1 +1 @@
1
- import{c as t}from"./_commonjs-dynamic-modules-F7P8sER7-fkA6S-_a.js";import{z as e}from"./main.js";var r={},n={},o={},i={};Object.defineProperty(i,"__esModule",{value:!0}),i.BrowserRandomSource=void 0;i.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&void 0!==t.getRandomValues&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const e=new Uint8Array(t);for(let t=0;t<e.length;t+=65536)this._crypto.getRandomValues(e.subarray(t,t+Math.min(e.length-t,65536)));return e}};var a={},s={};Object.defineProperty(s,"__esModule",{value:!0}),s.wipe=function(t){for(var e=0;e<t.length;e++)t[e]=0;return t},Object.defineProperty(a,"__esModule",{value:!0}),a.NodeRandomSource=void 0;const f=s;a.NodeRandomSource=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,void 0!==t){const t=e;t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let e=this._crypto.randomBytes(t);if(e.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(t);for(let t=0;t<r.length;t++)r[t]=e[t];return(0,f.wipe)(e),r}},Object.defineProperty(o,"__esModule",{value:!0}),o.SystemRandomSource=void 0;const u=i,h=a;o.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new u.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new h.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}};var l,c={},d={};l=d,Object.defineProperty(l,"__esModule",{value:!0}),l.mul=Math.imul||function(t,e){var r=65535&t,n=65535&e;return r*n+((t>>>16&65535)*n+r*(e>>>16&65535)<<16>>>0)|0},l.add=function(t,e){return t+e|0},l.sub=function(t,e){return t-e|0},l.rotl=function(t,e){return t<<e|t>>>32-e},l.rotr=function(t,e){return t<<32-e|t>>>e},l.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},l.MAX_SAFE_INTEGER=9007199254740991,l.isSafeInteger=function(t){return l.isInteger(t)&&t>=-l.MAX_SAFE_INTEGER&&t<=l.MAX_SAFE_INTEGER},Object.defineProperty(c,"__esModule",{value:!0});var y=d;function E(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>8,e[r+1]=t>>>0,e}function w(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e}function _(t,e){return void 0===e&&(e=0),t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function b(t,e){return void 0===e&&(e=0),(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function v(t,e){return void 0===e&&(e=0),t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function L(t,e){return void 0===e&&(e=0),(t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0}function g(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>24,e[r+1]=t>>>16,e[r+2]=t>>>8,e[r+3]=t>>>0,e}function M(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24,e}function p(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),g(t/4294967296>>>0,e,r),g(t>>>0,e,r+4),e}function m(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),M(t>>>0,e,r),M(t/4294967296>>>0,e,r+4),e}c.readInt16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])<<16>>16},c.readUint16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])>>>0},c.readInt16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])<<16>>16},c.readUint16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])>>>0},c.writeUint16BE=E,c.writeInt16BE=E,c.writeUint16LE=w,c.writeInt16LE=w,c.readInt32BE=_,c.readUint32BE=b,c.readInt32LE=v,c.readUint32LE=L,c.writeUint32BE=g,c.writeInt32BE=g,c.writeUint32LE=M,c.writeInt32LE=M,c.readInt64BE=function(t,e){void 0===e&&(e=0);var r=_(t,e),n=_(t,e+4);return 4294967296*r+n-4294967296*(n>>31)},c.readUint64BE=function(t,e){return void 0===e&&(e=0),4294967296*b(t,e)+b(t,e+4)},c.readInt64LE=function(t,e){void 0===e&&(e=0);var r=v(t,e);return 4294967296*v(t,e+4)+r-4294967296*(r>>31)},c.readUint64LE=function(t,e){void 0===e&&(e=0);var r=L(t,e);return 4294967296*L(t,e+4)+r},c.writeUint64BE=p,c.writeInt64BE=p,c.writeUint64LE=m,c.writeInt64LE=m,c.readUintBE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,o=1,i=t/8+r-1;i>=r;i--)n+=e[i]*o,o*=256;return n},c.readUintLE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,o=1,i=r;i<r+t/8;i++)n+=e[i]*o,o*=256;return n},c.writeUintBE=function(t,e,r,n){if(void 0===r&&(r=new Uint8Array(t/8)),void 0===n&&(n=0),t%8!=0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!y.isSafeInteger(e))throw new Error("writeUintBE value must be an integer");for(var o=1,i=t/8+n-1;i>=n;i--)r[i]=e/o&255,o*=256;return r},c.writeUintLE=function(t,e,r,n){if(void 0===r&&(r=new Uint8Array(t/8)),void 0===n&&(n=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!y.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var o=1,i=n;i<n+t/8;i++)r[i]=e/o&255,o*=256;return r},c.readFloat32BE=function(t,e){return void 0===e&&(e=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat32(e)},c.readFloat32LE=function(t,e){return void 0===e&&(e=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat32(e,!0)},c.readFloat64BE=function(t,e){return void 0===e&&(e=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat64(e)},c.readFloat64LE=function(t,e){return void 0===e&&(e=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat64(e,!0)},c.writeFloat32BE=function(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat32(r,t),e},c.writeFloat32LE=function(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat32(r,t,!0),e},c.writeFloat64BE=function(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat64(r,t),e},c.writeFloat64LE=function(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat64(r,t,!0),e},function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const e=o,r=c,n=s;function i(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new e.SystemRandomSource,t.randomBytes=i,t.randomUint32=function(e=t.defaultRandomSource){const o=i(4,e),a=(0,r.readUint32LE)(o);return(0,n.wipe)(o),a};const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function f(e,r=a,o=t.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let s="";const f=r.length,u=256-256%f;for(;e>0;){const t=i(Math.ceil(256*e/u),o);for(let n=0;n<t.length&&e>0;n++){const o=t[n];o<u&&(s+=r.charAt(o%f),e--)}(0,n.wipe)(t)}return s}t.randomString=f,t.randomStringForEntropy=function(e,r=a,n=t.defaultRandomSource){return f(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,n)}}(n);var S={};!function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=c,r=s;t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var n=function(){function n(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return n.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},n.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},n.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._tempHi),r.wipe(this._tempLo),this.reset()},n.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=e[n++],r--;this._bufferLength===this.blockSize&&(i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[n++],r--;return this},n.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,o=r/536870912|0,a=r<<3,s=r%128<112?128:256;this._buffer[n]=128;for(var f=n+1;f<s-8;f++)this._buffer[f]=0;e.writeUint32BE(o,this._buffer,s-8),e.writeUint32BE(a,this._buffer,s-4),i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(f=0;f<this.digestLength/8;f++)e.writeUint32BE(this._stateHi[f],t,8*f),e.writeUint32BE(this._stateLo[f],t,8*f+4);return this},n.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},n.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},n.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},n.prototype.cleanSavedState=function(t){r.wipe(t.stateHi),r.wipe(t.stateLo),t.buffer&&r.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},n}();t.SHA512=n;var o=new Int32Array([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 i(t,r,n,i,a,s,f){for(var u,h,l,c,d,y,E,w,_=n[0],b=n[1],v=n[2],L=n[3],g=n[4],M=n[5],p=n[6],m=n[7],S=i[0],A=i[1],U=i[2],H=i[3],B=i[4],I=i[5],T=i[6],K=i[7];f>=128;){for(var N=0;N<16;N++){var R=8*N+s;t[N]=e.readUint32BE(a,R),r[N]=e.readUint32BE(a,R+4)}for(N=0;N<80;N++){var F,G,P=_,O=b,C=v,D=L,Y=g,j=M,k=p,V=S,X=A,z=U,x=H,Z=B,$=I,q=T;if(d=65535&(h=K),y=h>>>16,E=65535&(u=m),w=u>>>16,d+=65535&(h=(B>>>14|g<<18)^(B>>>18|g<<14)^(g>>>9|B<<23)),y+=h>>>16,E+=65535&(u=(g>>>14|B<<18)^(g>>>18|B<<14)^(B>>>9|g<<23)),w+=u>>>16,d+=65535&(h=B&I^~B&T),y+=h>>>16,E+=65535&(u=g&M^~g&p),w+=u>>>16,u=o[2*N],d+=65535&(h=o[2*N+1]),y+=h>>>16,E+=65535&u,w+=u>>>16,u=t[N%16],y+=(h=r[N%16])>>>16,E+=65535&u,w+=u>>>16,E+=(y+=(d+=65535&h)>>>16)>>>16,d=65535&(h=c=65535&d|y<<16),y=h>>>16,E=65535&(u=l=65535&E|(w+=E>>>16)<<16),w=u>>>16,d+=65535&(h=(S>>>28|_<<4)^(_>>>2|S<<30)^(_>>>7|S<<25)),y+=h>>>16,E+=65535&(u=(_>>>28|S<<4)^(S>>>2|_<<30)^(S>>>7|_<<25)),w+=u>>>16,y+=(h=S&A^S&U^A&U)>>>16,E+=65535&(u=_&b^_&v^b&v),w+=u>>>16,F=65535&(E+=(y+=(d+=65535&h)>>>16)>>>16)|(w+=E>>>16)<<16,G=65535&d|y<<16,d=65535&(h=x),y=h>>>16,E=65535&(u=D),w=u>>>16,y+=(h=c)>>>16,E+=65535&(u=l),w+=u>>>16,b=P,v=O,L=C,g=D=65535&(E+=(y+=(d+=65535&h)>>>16)>>>16)|(w+=E>>>16)<<16,M=Y,p=j,m=k,_=F,A=V,U=X,H=z,B=x=65535&d|y<<16,I=Z,T=$,K=q,S=G,N%16==15)for(R=0;R<16;R++)u=t[R],d=65535&(h=r[R]),y=h>>>16,E=65535&u,w=u>>>16,u=t[(R+9)%16],d+=65535&(h=r[(R+9)%16]),y+=h>>>16,E+=65535&u,w+=u>>>16,l=t[(R+1)%16],d+=65535&(h=((c=r[(R+1)%16])>>>1|l<<31)^(c>>>8|l<<24)^(c>>>7|l<<25)),y+=h>>>16,E+=65535&(u=(l>>>1|c<<31)^(l>>>8|c<<24)^l>>>7),w+=u>>>16,l=t[(R+14)%16],y+=(h=((c=r[(R+14)%16])>>>19|l<<13)^(l>>>29|c<<3)^(c>>>6|l<<26))>>>16,E+=65535&(u=(l>>>19|c<<13)^(c>>>29|l<<3)^l>>>6),w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,t[R]=65535&E|w<<16,r[R]=65535&d|y<<16}d=65535&(h=S),y=h>>>16,E=65535&(u=_),w=u>>>16,u=n[0],y+=(h=i[0])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[0]=_=65535&E|w<<16,i[0]=S=65535&d|y<<16,d=65535&(h=A),y=h>>>16,E=65535&(u=b),w=u>>>16,u=n[1],y+=(h=i[1])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[1]=b=65535&E|w<<16,i[1]=A=65535&d|y<<16,d=65535&(h=U),y=h>>>16,E=65535&(u=v),w=u>>>16,u=n[2],y+=(h=i[2])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[2]=v=65535&E|w<<16,i[2]=U=65535&d|y<<16,d=65535&(h=H),y=h>>>16,E=65535&(u=L),w=u>>>16,u=n[3],y+=(h=i[3])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[3]=L=65535&E|w<<16,i[3]=H=65535&d|y<<16,d=65535&(h=B),y=h>>>16,E=65535&(u=g),w=u>>>16,u=n[4],y+=(h=i[4])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[4]=g=65535&E|w<<16,i[4]=B=65535&d|y<<16,d=65535&(h=I),y=h>>>16,E=65535&(u=M),w=u>>>16,u=n[5],y+=(h=i[5])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[5]=M=65535&E|w<<16,i[5]=I=65535&d|y<<16,d=65535&(h=T),y=h>>>16,E=65535&(u=p),w=u>>>16,u=n[6],y+=(h=i[6])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[6]=p=65535&E|w<<16,i[6]=T=65535&d|y<<16,d=65535&(h=K),y=h>>>16,E=65535&(u=m),w=u>>>16,u=n[7],y+=(h=i[7])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[7]=m=65535&E|w<<16,i[7]=K=65535&d|y<<16,s+=128,f-=128}return s}t.hash=function(t){var e=new n;e.update(t);var r=e.digest();return e.clean(),r}}(S),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertSecretKeyToX25519=t.convertPublicKeyToX25519=t.verify=t.sign=t.extractPublicKeyFromSecretKey=t.generateKeyPair=t.generateKeyPairFromSeed=t.SEED_LENGTH=t.SECRET_KEY_LENGTH=t.PUBLIC_KEY_LENGTH=t.SIGNATURE_LENGTH=void 0;const e=n,r=S,o=s;function i(t){const e=new Float64Array(16);if(t)for(let r=0;r<t.length;r++)e[r]=t[r];return e}t.SIGNATURE_LENGTH=64,t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=64,t.SEED_LENGTH=32;new Uint8Array(32)[0]=9;const a=i(),f=i([1]),u=i([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),h=i([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),l=i([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),c=i([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),d=i([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function y(t,e){for(let r=0;r<16;r++)t[r]=0|e[r]}function E(t){let e=1;for(let r=0;r<16;r++){let n=t[r]+e+65535;e=Math.floor(n/65536),t[r]=n-65536*e}t[0]+=e-1+37*(e-1)}function w(t,e,r){const n=~(r-1);for(let r=0;r<16;r++){const o=n&(t[r]^e[r]);t[r]^=o,e[r]^=o}}function _(t,e){const r=i(),n=i();for(let t=0;t<16;t++)n[t]=e[t];E(n),E(n),E(n);for(let t=0;t<2;t++){r[0]=n[0]-65517;for(let t=1;t<15;t++)r[t]=n[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,w(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}function b(t,e){let r=0;for(let n=0;n<32;n++)r|=t[n]^e[n];return(1&r-1>>>8)-1}function v(t,e){const r=new Uint8Array(32),n=new Uint8Array(32);return _(r,t),_(n,e),b(r,n)}function L(t){const e=new Uint8Array(32);return _(e,t),1&e[0]}function g(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]+r[n]}function M(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]-r[n]}function p(t,e,r){let n,o,i=0,a=0,s=0,f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D,S+=n*Y,A+=n*j,U+=n*k,H+=n*V,B+=n*X,I+=n*z,T+=n*x,K+=n*Z,N+=n*$,R+=n*q,F+=n*J,i+=38*g,a+=38*M,s+=38*p,f+=38*m,u+=38*S,h+=38*A,l+=38*U,c+=38*H,d+=38*B,y+=38*I,E+=38*T,w+=38*K,_+=38*N,b+=38*R,v+=38*F,o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-65536*o,n=a+o+65535,o=Math.floor(n/65536),a=n-65536*o,n=s+o+65535,o=Math.floor(n/65536),s=n-65536*o,n=f+o+65535,o=Math.floor(n/65536),f=n-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=E+o+65535,o=Math.floor(n/65536),E=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,n=_+o+65535,o=Math.floor(n/65536),_=n-65536*o,n=b+o+65535,o=Math.floor(n/65536),b=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=L+o+65535,o=Math.floor(n/65536),L=n-65536*o,i+=o-1+37*(o-1),o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-65536*o,n=a+o+65535,o=Math.floor(n/65536),a=n-65536*o,n=s+o+65535,o=Math.floor(n/65536),s=n-65536*o,n=f+o+65535,o=Math.floor(n/65536),f=n-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=E+o+65535,o=Math.floor(n/65536),E=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,n=_+o+65535,o=Math.floor(n/65536),_=n-65536*o,n=b+o+65535,o=Math.floor(n/65536),b=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=L+o+65535,o=Math.floor(n/65536),L=n-65536*o,i+=o-1+37*(o-1),t[0]=i,t[1]=a,t[2]=s,t[3]=f,t[4]=u,t[5]=h,t[6]=l,t[7]=c,t[8]=d,t[9]=y,t[10]=E,t[11]=w,t[12]=_,t[13]=b,t[14]=v,t[15]=L}function m(t,e){p(t,e,e)}function A(t,e){const r=i();let n;for(n=0;n<16;n++)r[n]=e[n];for(n=253;n>=0;n--)m(r,r),2!==n&&4!==n&&p(r,r,e);for(n=0;n<16;n++)t[n]=r[n]}function U(t,e){const r=i(),n=i(),o=i(),a=i(),s=i(),f=i(),u=i(),l=i(),c=i();M(r,t[1],t[0]),M(c,e[1],e[0]),p(r,r,c),g(n,t[0],t[1]),g(c,e[0],e[1]),p(n,n,c),p(o,t[3],e[3]),p(o,o,h),p(a,t[2],e[2]),g(a,a,a),M(s,n,r),M(f,a,o),g(u,a,o),g(l,n,r),p(t[0],s,f),p(t[1],l,u),p(t[2],u,f),p(t[3],s,l)}function H(t,e,r){for(let n=0;n<4;n++)w(t[n],e[n],r)}function B(t,e){const r=i(),n=i(),o=i();A(o,e[2]),p(r,e[0],o),p(n,e[1],o),_(t,n),t[31]^=L(r)<<7}function I(t,e,r){y(t[0],a),y(t[1],f),y(t[2],f),y(t[3],a);for(let n=255;n>=0;--n){const o=r[n/8|0]>>(7&n)&1;H(t,e,o),U(e,t),U(t,t),H(t,e,o)}}function T(t,e){const r=[i(),i(),i(),i()];y(r[0],l),y(r[1],c),y(r[2],f),p(r[3],l,c),I(t,r,e)}function K(e){if(e.length!==t.SEED_LENGTH)throw new Error(`ed25519: seed must be ${t.SEED_LENGTH} bytes`);const n=(0,r.hash)(e);n[0]&=248,n[31]&=127,n[31]|=64;const o=new Uint8Array(32),a=[i(),i(),i(),i()];T(a,n),B(o,a);const s=new Uint8Array(64);return s.set(e),s.set(o,32),{publicKey:o,secretKey:s}}t.generateKeyPairFromSeed=K,t.generateKeyPair=function(t){const r=(0,e.randomBytes)(32,t),n=K(r);return(0,o.wipe)(r),n},t.extractPublicKeyFromSecretKey=function(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${t.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))};const N=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function R(t,e){let r,n,o,i;for(n=63;n>=32;--n){for(r=0,o=n-32,i=n-12;o<i;++o)e[o]+=r-16*e[n]*N[o-(n-32)],r=Math.floor((e[o]+128)/256),e[o]-=256*r;e[o]+=r,e[n]=0}for(r=0,o=0;o<32;o++)e[o]+=r-(e[31]>>4)*N[o],r=e[o]>>8,e[o]&=255;for(o=0;o<32;o++)e[o]-=r*N[o];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function F(t){const e=new Float64Array(64);for(let r=0;r<64;r++)e[r]=t[r];for(let e=0;e<64;e++)t[e]=0;R(t,e)}function G(t,e){const r=i(),n=i(),o=i(),s=i(),h=i(),l=i(),c=i();return y(t[2],f),function(t,e){for(let r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}(t[1],e),m(o,t[1]),p(s,o,u),M(o,o,t[2]),g(s,t[2],s),m(h,s),m(l,h),p(c,l,h),p(r,c,o),p(r,r,s),function(t,e){const r=i();let n;for(n=0;n<16;n++)r[n]=e[n];for(n=250;n>=0;n--)m(r,r),1!==n&&p(r,r,e);for(n=0;n<16;n++)t[n]=r[n]}(r,r),p(r,r,o),p(r,r,s),p(r,r,s),p(t[0],r,s),m(n,t[0]),p(n,n,s),v(n,o)&&p(t[0],t[0],d),m(n,t[0]),p(n,n,s),v(n,o)?-1:(L(t[0])===e[31]>>7&&M(t[0],a,t[0]),p(t[3],t[0],t[1]),0)}t.sign=function(t,e){const n=new Float64Array(64),o=[i(),i(),i(),i()],a=(0,r.hash)(t.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;const s=new Uint8Array(64);s.set(a.subarray(32),32);const f=new r.SHA512;f.update(s.subarray(32)),f.update(e);const u=f.digest();f.clean(),F(u),T(o,u),B(s,o),f.reset(),f.update(s.subarray(0,32)),f.update(t.subarray(32)),f.update(e);const h=f.digest();F(h);for(let t=0;t<32;t++)n[t]=u[t];for(let t=0;t<32;t++)for(let e=0;e<32;e++)n[t+e]+=h[t]*a[e];return R(s.subarray(32),n),s},t.verify=function(e,n,o){const a=new Uint8Array(32),s=[i(),i(),i(),i()],f=[i(),i(),i(),i()];if(o.length!==t.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${t.SIGNATURE_LENGTH} bytes`);if(G(f,e))return!1;const u=new r.SHA512;u.update(o.subarray(0,32)),u.update(e),u.update(n);const h=u.digest();return F(h),I(s,f,h),T(f,o.subarray(32)),U(s,f),B(a,s),!b(o,a)},t.convertPublicKeyToX25519=function(t){let e=[i(),i(),i(),i()];if(G(e,t))throw new Error("Ed25519: invalid public key");let r=i(),n=i(),o=e[1];g(r,f,o),M(n,f,o),A(n,n),p(r,r,n);let a=new Uint8Array(32);return _(a,r),a},t.convertSecretKeyToX25519=function(t){const e=(0,r.hash)(t.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;const n=new Uint8Array(e.subarray(0,32));return(0,o.wipe)(e),n}}(r);var A={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sharedKey=t.generateKeyPair=t.generateKeyPairFromSeed=t.scalarMultBase=t.scalarMult=t.SHARED_KEY_LENGTH=t.SECRET_KEY_LENGTH=t.PUBLIC_KEY_LENGTH=void 0;const e=n,r=s;function o(t){const e=new Float64Array(16);if(t)for(let r=0;r<t.length;r++)e[r]=t[r];return e}t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=32,t.SHARED_KEY_LENGTH=32;const i=new Uint8Array(32);i[0]=9;const a=o([56129,1]);function f(t){let e=1;for(let r=0;r<16;r++){let n=t[r]+e+65535;e=Math.floor(n/65536),t[r]=n-65536*e}t[0]+=e-1+37*(e-1)}function u(t,e,r){const n=~(r-1);for(let r=0;r<16;r++){const o=n&(t[r]^e[r]);t[r]^=o,e[r]^=o}}function h(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]+r[n]}function l(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]-r[n]}function c(t,e,r){let n,o,i=0,a=0,s=0,f=0,u=0,h=0,l=0,c=0,d=0,y=0,E=0,w=0,_=0,b=0,v=0,L=0,g=0,M=0,p=0,m=0,S=0,A=0,U=0,H=0,B=0,I=0,T=0,K=0,N=0,R=0,F=0,G=r[0],P=r[1],O=r[2],C=r[3],D=r[4],Y=r[5],j=r[6],k=r[7],V=r[8],X=r[9],z=r[10],x=r[11],Z=r[12],$=r[13],q=r[14],J=r[15];n=e[0],i+=n*G,a+=n*P,s+=n*O,f+=n*C,u+=n*D,h+=n*Y,l+=n*j,c+=n*k,d+=n*V,y+=n*X,E+=n*z,w+=n*x,_+=n*Z,b+=n*$,v+=n*q,L+=n*J,n=e[1],a+=n*G,s+=n*P,f+=n*O,u+=n*C,h+=n*D,l+=n*Y,c+=n*j,d+=n*k,y+=n*V,E+=n*X,w+=n*z,_+=n*x,b+=n*Z,v+=n*$,L+=n*q,g+=n*J,n=e[2],s+=n*G,f+=n*P,u+=n*O,h+=n*C,l+=n*D,c+=n*Y,d+=n*j,y+=n*k,E+=n*V,w+=n*X,_+=n*z,b+=n*x,v+=n*Z,L+=n*$,g+=n*q,M+=n*J,n=e[3],f+=n*G,u+=n*P,h+=n*O,l+=n*C,c+=n*D,d+=n*Y,y+=n*j,E+=n*k,w+=n*V,_+=n*X,b+=n*z,v+=n*x,L+=n*Z,g+=n*$,M+=n*q,p+=n*J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S+=n*V,A+=n*X,U+=n*z,H+=n*x,B+=n*Z,I+=n*$,T+=n*q,K+=n*J,n=e[13],b+=n*G,v+=n*P,L+=n*O,g+=n*C,M+=n*D,p+=n*Y,m+=n*j,S+=n*k,A+=n*V,U+=n*X,H+=n*z,B+=n*x,I+=n*Z,T+=n*$,K+=n*q,N+=n*J,n=e[14],v+=n*G,L+=n*P,g+=n*O,M+=n*C,p+=n*D,m+=n*Y,S+=n*j,A+=n*k,U+=n*V,H+=n*X,B+=n*z,I+=n*x,T+=n*Z,K+=n*$,N+=n*q,R+=n*J,n=e[15],L+=n*G,g+=n*P,M+=n*O,p+=n*C,m+=n*D,S+=n*Y,A+=n*j,U+=n*k,H+=n*V,B+=n*X,I+=n*z,T+=n*x,K+=n*Z,N+=n*$,R+=n*q,F+=n*J,i+=38*g,a+=38*M,s+=38*p,f+=38*m,u+=38*S,h+=38*A,l+=38*U,c+=38*H,d+=38*B,y+=38*I,E+=38*T,w+=38*K,_+=38*N,b+=38*R,v+=38*F,o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-65536*o,n=a+o+65535,o=Math.floor(n/65536),a=n-65536*o,n=s+o+65535,o=Math.floor(n/65536),s=n-65536*o,n=f+o+65535,o=Math.floor(n/65536),f=n-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=E+o+65535,o=Math.floor(n/65536),E=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,n=_+o+65535,o=Math.floor(n/65536),_=n-65536*o,n=b+o+65535,o=Math.floor(n/65536),b=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=L+o+65535,o=Math.floor(n/65536),L=n-65536*o,i+=o-1+37*(o-1),o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-65536*o,n=a+o+65535,o=Math.floor(n/65536),a=n-65536*o,n=s+o+65535,o=Math.floor(n/65536),s=n-65536*o,n=f+o+65535,o=Math.floor(n/65536),f=n-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=E+o+65535,o=Math.floor(n/65536),E=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,n=_+o+65535,o=Math.floor(n/65536),_=n-65536*o,n=b+o+65535,o=Math.floor(n/65536),b=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=L+o+65535,o=Math.floor(n/65536),L=n-65536*o,i+=o-1+37*(o-1),t[0]=i,t[1]=a,t[2]=s,t[3]=f,t[4]=u,t[5]=h,t[6]=l,t[7]=c,t[8]=d,t[9]=y,t[10]=E,t[11]=w,t[12]=_,t[13]=b,t[14]=v,t[15]=L}function d(t,e){c(t,e,e)}function y(t,e){const r=new Uint8Array(32),n=new Float64Array(80),i=o(),s=o(),y=o(),E=o(),w=o(),_=o();for(let e=0;e<31;e++)r[e]=t[e];r[31]=127&t[31]|64,r[0]&=248,function(t,e){for(let r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}(n,e);for(let t=0;t<16;t++)s[t]=n[t];i[0]=E[0]=1;for(let t=254;t>=0;--t){const e=r[t>>>3]>>>(7&t)&1;u(i,s,e),u(y,E,e),h(w,i,y),l(i,i,y),h(y,s,E),l(s,s,E),d(E,w),d(_,i),c(i,y,i),c(y,s,w),h(w,i,y),l(i,i,y),d(s,i),l(y,E,_),c(i,y,a),h(i,i,E),c(y,y,i),c(i,E,_),c(E,s,n),d(s,w),u(i,s,e),u(y,E,e)}for(let t=0;t<16;t++)n[t+16]=i[t],n[t+32]=y[t],n[t+48]=s[t],n[t+64]=E[t];const b=n.subarray(32),v=n.subarray(16);!function(t,e){const r=o();for(let t=0;t<16;t++)r[t]=e[t];for(let t=253;t>=0;t--)d(r,r),2!==t&&4!==t&&c(r,r,e);for(let e=0;e<16;e++)t[e]=r[e]}(b,b),c(v,v,b);const L=new Uint8Array(32);return function(t,e){const r=o(),n=o();for(let t=0;t<16;t++)n[t]=e[t];f(n),f(n),f(n);for(let t=0;t<2;t++){r[0]=n[0]-65517;for(let t=1;t<15;t++)r[t]=n[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,u(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}(L,v),L}function E(t){return y(t,i)}function w(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${t.SECRET_KEY_LENGTH} bytes`);const r=new Uint8Array(e);return{publicKey:E(r),secretKey:r}}t.scalarMult=y,t.scalarMultBase=E,t.generateKeyPairFromSeed=w,t.generateKeyPair=function(t){const n=(0,e.randomBytes)(32,t),o=w(n);return(0,r.wipe)(n),o},t.sharedKey=function(e,r,n=!1){if(e.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(r.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const o=y(e,r);if(n){let t=0;for(let e=0;e<o.length;e++)t|=o[e];if(0===t)throw new Error("X25519: invalid shared key")}return o}}(A);export{r as e,A as x};
1
+ import{c as t}from"./_commonjs-dynamic-modules-F7P8sER7-fkA6S-_a.js";import{s as e}from"./main.js";var r={},n={},o={},i={};Object.defineProperty(i,"__esModule",{value:!0}),i.BrowserRandomSource=void 0;i.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&void 0!==t.getRandomValues&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const e=new Uint8Array(t);for(let t=0;t<e.length;t+=65536)this._crypto.getRandomValues(e.subarray(t,t+Math.min(e.length-t,65536)));return e}};var a={},s={};Object.defineProperty(s,"__esModule",{value:!0}),s.wipe=function(t){for(var e=0;e<t.length;e++)t[e]=0;return t},Object.defineProperty(a,"__esModule",{value:!0}),a.NodeRandomSource=void 0;const f=s;a.NodeRandomSource=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,void 0!==t){const t=e;t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let e=this._crypto.randomBytes(t);if(e.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(t);for(let t=0;t<r.length;t++)r[t]=e[t];return(0,f.wipe)(e),r}},Object.defineProperty(o,"__esModule",{value:!0}),o.SystemRandomSource=void 0;const u=i,h=a;o.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new u.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new h.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}};var l,c={},d={};l=d,Object.defineProperty(l,"__esModule",{value:!0}),l.mul=Math.imul||function(t,e){var r=65535&t,n=65535&e;return r*n+((t>>>16&65535)*n+r*(e>>>16&65535)<<16>>>0)|0},l.add=function(t,e){return t+e|0},l.sub=function(t,e){return t-e|0},l.rotl=function(t,e){return t<<e|t>>>32-e},l.rotr=function(t,e){return t<<32-e|t>>>e},l.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},l.MAX_SAFE_INTEGER=9007199254740991,l.isSafeInteger=function(t){return l.isInteger(t)&&t>=-l.MAX_SAFE_INTEGER&&t<=l.MAX_SAFE_INTEGER},Object.defineProperty(c,"__esModule",{value:!0});var y=d;function E(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>8,e[r+1]=t>>>0,e}function w(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e}function _(t,e){return void 0===e&&(e=0),t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function b(t,e){return void 0===e&&(e=0),(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function v(t,e){return void 0===e&&(e=0),t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function L(t,e){return void 0===e&&(e=0),(t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0}function g(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>24,e[r+1]=t>>>16,e[r+2]=t>>>8,e[r+3]=t>>>0,e}function M(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24,e}function p(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),g(t/4294967296>>>0,e,r),g(t>>>0,e,r+4),e}function m(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),M(t>>>0,e,r),M(t/4294967296>>>0,e,r+4),e}c.readInt16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])<<16>>16},c.readUint16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])>>>0},c.readInt16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])<<16>>16},c.readUint16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])>>>0},c.writeUint16BE=E,c.writeInt16BE=E,c.writeUint16LE=w,c.writeInt16LE=w,c.readInt32BE=_,c.readUint32BE=b,c.readInt32LE=v,c.readUint32LE=L,c.writeUint32BE=g,c.writeInt32BE=g,c.writeUint32LE=M,c.writeInt32LE=M,c.readInt64BE=function(t,e){void 0===e&&(e=0);var r=_(t,e),n=_(t,e+4);return 4294967296*r+n-4294967296*(n>>31)},c.readUint64BE=function(t,e){return void 0===e&&(e=0),4294967296*b(t,e)+b(t,e+4)},c.readInt64LE=function(t,e){void 0===e&&(e=0);var r=v(t,e);return 4294967296*v(t,e+4)+r-4294967296*(r>>31)},c.readUint64LE=function(t,e){void 0===e&&(e=0);var r=L(t,e);return 4294967296*L(t,e+4)+r},c.writeUint64BE=p,c.writeInt64BE=p,c.writeUint64LE=m,c.writeInt64LE=m,c.readUintBE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,o=1,i=t/8+r-1;i>=r;i--)n+=e[i]*o,o*=256;return n},c.readUintLE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,o=1,i=r;i<r+t/8;i++)n+=e[i]*o,o*=256;return n},c.writeUintBE=function(t,e,r,n){if(void 0===r&&(r=new Uint8Array(t/8)),void 0===n&&(n=0),t%8!=0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!y.isSafeInteger(e))throw new Error("writeUintBE value must be an integer");for(var o=1,i=t/8+n-1;i>=n;i--)r[i]=e/o&255,o*=256;return r},c.writeUintLE=function(t,e,r,n){if(void 0===r&&(r=new Uint8Array(t/8)),void 0===n&&(n=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!y.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var o=1,i=n;i<n+t/8;i++)r[i]=e/o&255,o*=256;return r},c.readFloat32BE=function(t,e){return void 0===e&&(e=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat32(e)},c.readFloat32LE=function(t,e){return void 0===e&&(e=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat32(e,!0)},c.readFloat64BE=function(t,e){return void 0===e&&(e=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat64(e)},c.readFloat64LE=function(t,e){return void 0===e&&(e=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat64(e,!0)},c.writeFloat32BE=function(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat32(r,t),e},c.writeFloat32LE=function(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat32(r,t,!0),e},c.writeFloat64BE=function(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat64(r,t),e},c.writeFloat64LE=function(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat64(r,t,!0),e},function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const e=o,r=c,n=s;function i(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new e.SystemRandomSource,t.randomBytes=i,t.randomUint32=function(e=t.defaultRandomSource){const o=i(4,e),a=(0,r.readUint32LE)(o);return(0,n.wipe)(o),a};const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function f(e,r=a,o=t.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let s="";const f=r.length,u=256-256%f;for(;e>0;){const t=i(Math.ceil(256*e/u),o);for(let n=0;n<t.length&&e>0;n++){const o=t[n];o<u&&(s+=r.charAt(o%f),e--)}(0,n.wipe)(t)}return s}t.randomString=f,t.randomStringForEntropy=function(e,r=a,n=t.defaultRandomSource){return f(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,n)}}(n);var S={};!function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=c,r=s;t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var n=function(){function n(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return n.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},n.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},n.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._tempHi),r.wipe(this._tempLo),this.reset()},n.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=e[n++],r--;this._bufferLength===this.blockSize&&(i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[n++],r--;return this},n.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,o=r/536870912|0,a=r<<3,s=r%128<112?128:256;this._buffer[n]=128;for(var f=n+1;f<s-8;f++)this._buffer[f]=0;e.writeUint32BE(o,this._buffer,s-8),e.writeUint32BE(a,this._buffer,s-4),i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(f=0;f<this.digestLength/8;f++)e.writeUint32BE(this._stateHi[f],t,8*f),e.writeUint32BE(this._stateLo[f],t,8*f+4);return this},n.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},n.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},n.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},n.prototype.cleanSavedState=function(t){r.wipe(t.stateHi),r.wipe(t.stateLo),t.buffer&&r.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},n}();t.SHA512=n;var o=new Int32Array([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 i(t,r,n,i,a,s,f){for(var u,h,l,c,d,y,E,w,_=n[0],b=n[1],v=n[2],L=n[3],g=n[4],M=n[5],p=n[6],m=n[7],S=i[0],A=i[1],U=i[2],H=i[3],B=i[4],I=i[5],T=i[6],K=i[7];f>=128;){for(var N=0;N<16;N++){var R=8*N+s;t[N]=e.readUint32BE(a,R),r[N]=e.readUint32BE(a,R+4)}for(N=0;N<80;N++){var F,G,P=_,O=b,C=v,D=L,Y=g,j=M,k=p,V=S,X=A,x=U,z=H,Z=B,$=I,q=T;if(d=65535&(h=K),y=h>>>16,E=65535&(u=m),w=u>>>16,d+=65535&(h=(B>>>14|g<<18)^(B>>>18|g<<14)^(g>>>9|B<<23)),y+=h>>>16,E+=65535&(u=(g>>>14|B<<18)^(g>>>18|B<<14)^(B>>>9|g<<23)),w+=u>>>16,d+=65535&(h=B&I^~B&T),y+=h>>>16,E+=65535&(u=g&M^~g&p),w+=u>>>16,u=o[2*N],d+=65535&(h=o[2*N+1]),y+=h>>>16,E+=65535&u,w+=u>>>16,u=t[N%16],y+=(h=r[N%16])>>>16,E+=65535&u,w+=u>>>16,E+=(y+=(d+=65535&h)>>>16)>>>16,d=65535&(h=c=65535&d|y<<16),y=h>>>16,E=65535&(u=l=65535&E|(w+=E>>>16)<<16),w=u>>>16,d+=65535&(h=(S>>>28|_<<4)^(_>>>2|S<<30)^(_>>>7|S<<25)),y+=h>>>16,E+=65535&(u=(_>>>28|S<<4)^(S>>>2|_<<30)^(S>>>7|_<<25)),w+=u>>>16,y+=(h=S&A^S&U^A&U)>>>16,E+=65535&(u=_&b^_&v^b&v),w+=u>>>16,F=65535&(E+=(y+=(d+=65535&h)>>>16)>>>16)|(w+=E>>>16)<<16,G=65535&d|y<<16,d=65535&(h=z),y=h>>>16,E=65535&(u=D),w=u>>>16,y+=(h=c)>>>16,E+=65535&(u=l),w+=u>>>16,b=P,v=O,L=C,g=D=65535&(E+=(y+=(d+=65535&h)>>>16)>>>16)|(w+=E>>>16)<<16,M=Y,p=j,m=k,_=F,A=V,U=X,H=x,B=z=65535&d|y<<16,I=Z,T=$,K=q,S=G,N%16==15)for(R=0;R<16;R++)u=t[R],d=65535&(h=r[R]),y=h>>>16,E=65535&u,w=u>>>16,u=t[(R+9)%16],d+=65535&(h=r[(R+9)%16]),y+=h>>>16,E+=65535&u,w+=u>>>16,l=t[(R+1)%16],d+=65535&(h=((c=r[(R+1)%16])>>>1|l<<31)^(c>>>8|l<<24)^(c>>>7|l<<25)),y+=h>>>16,E+=65535&(u=(l>>>1|c<<31)^(l>>>8|c<<24)^l>>>7),w+=u>>>16,l=t[(R+14)%16],y+=(h=((c=r[(R+14)%16])>>>19|l<<13)^(l>>>29|c<<3)^(c>>>6|l<<26))>>>16,E+=65535&(u=(l>>>19|c<<13)^(c>>>29|l<<3)^l>>>6),w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,t[R]=65535&E|w<<16,r[R]=65535&d|y<<16}d=65535&(h=S),y=h>>>16,E=65535&(u=_),w=u>>>16,u=n[0],y+=(h=i[0])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[0]=_=65535&E|w<<16,i[0]=S=65535&d|y<<16,d=65535&(h=A),y=h>>>16,E=65535&(u=b),w=u>>>16,u=n[1],y+=(h=i[1])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[1]=b=65535&E|w<<16,i[1]=A=65535&d|y<<16,d=65535&(h=U),y=h>>>16,E=65535&(u=v),w=u>>>16,u=n[2],y+=(h=i[2])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[2]=v=65535&E|w<<16,i[2]=U=65535&d|y<<16,d=65535&(h=H),y=h>>>16,E=65535&(u=L),w=u>>>16,u=n[3],y+=(h=i[3])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[3]=L=65535&E|w<<16,i[3]=H=65535&d|y<<16,d=65535&(h=B),y=h>>>16,E=65535&(u=g),w=u>>>16,u=n[4],y+=(h=i[4])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[4]=g=65535&E|w<<16,i[4]=B=65535&d|y<<16,d=65535&(h=I),y=h>>>16,E=65535&(u=M),w=u>>>16,u=n[5],y+=(h=i[5])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[5]=M=65535&E|w<<16,i[5]=I=65535&d|y<<16,d=65535&(h=T),y=h>>>16,E=65535&(u=p),w=u>>>16,u=n[6],y+=(h=i[6])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[6]=p=65535&E|w<<16,i[6]=T=65535&d|y<<16,d=65535&(h=K),y=h>>>16,E=65535&(u=m),w=u>>>16,u=n[7],y+=(h=i[7])>>>16,E+=65535&u,w+=u>>>16,w+=(E+=(y+=(d+=65535&h)>>>16)>>>16)>>>16,n[7]=m=65535&E|w<<16,i[7]=K=65535&d|y<<16,s+=128,f-=128}return s}t.hash=function(t){var e=new n;e.update(t);var r=e.digest();return e.clean(),r}}(S),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.convertSecretKeyToX25519=t.convertPublicKeyToX25519=t.verify=t.sign=t.extractPublicKeyFromSecretKey=t.generateKeyPair=t.generateKeyPairFromSeed=t.SEED_LENGTH=t.SECRET_KEY_LENGTH=t.PUBLIC_KEY_LENGTH=t.SIGNATURE_LENGTH=void 0;const e=n,r=S,o=s;function i(t){const e=new Float64Array(16);if(t)for(let r=0;r<t.length;r++)e[r]=t[r];return e}t.SIGNATURE_LENGTH=64,t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=64,t.SEED_LENGTH=32;new Uint8Array(32)[0]=9;const a=i(),f=i([1]),u=i([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),h=i([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),l=i([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),c=i([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),d=i([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function y(t,e){for(let r=0;r<16;r++)t[r]=0|e[r]}function E(t){let e=1;for(let r=0;r<16;r++){let n=t[r]+e+65535;e=Math.floor(n/65536),t[r]=n-65536*e}t[0]+=e-1+37*(e-1)}function w(t,e,r){const n=~(r-1);for(let r=0;r<16;r++){const o=n&(t[r]^e[r]);t[r]^=o,e[r]^=o}}function _(t,e){const r=i(),n=i();for(let t=0;t<16;t++)n[t]=e[t];E(n),E(n),E(n);for(let t=0;t<2;t++){r[0]=n[0]-65517;for(let t=1;t<15;t++)r[t]=n[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,w(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}function b(t,e){let r=0;for(let n=0;n<32;n++)r|=t[n]^e[n];return(1&r-1>>>8)-1}function v(t,e){const r=new Uint8Array(32),n=new Uint8Array(32);return _(r,t),_(n,e),b(r,n)}function L(t){const e=new Uint8Array(32);return _(e,t),1&e[0]}function g(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]+r[n]}function M(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]-r[n]}function p(t,e,r){let n,o,i=0,a=0,s=0,f=0,u=0,h=0,l=0,c=0,d=0,y=0,E=0,w=0,_=0,b=0,v=0,L=0,g=0,M=0,p=0,m=0,S=0,A=0,U=0,H=0,B=0,I=0,T=0,K=0,N=0,R=0,F=0,G=r[0],P=r[1],O=r[2],C=r[3],D=r[4],Y=r[5],j=r[6],k=r[7],V=r[8],X=r[9],x=r[10],z=r[11],Z=r[12],$=r[13],q=r[14],J=r[15];n=e[0],i+=n*G,a+=n*P,s+=n*O,f+=n*C,u+=n*D,h+=n*Y,l+=n*j,c+=n*k,d+=n*V,y+=n*X,E+=n*x,w+=n*z,_+=n*Z,b+=n*$,v+=n*q,L+=n*J,n=e[1],a+=n*G,s+=n*P,f+=n*O,u+=n*C,h+=n*D,l+=n*Y,c+=n*j,d+=n*k,y+=n*V,E+=n*X,w+=n*x,_+=n*z,b+=n*Z,v+=n*$,L+=n*q,g+=n*J,n=e[2],s+=n*G,f+=n*P,u+=n*O,h+=n*C,l+=n*D,c+=n*Y,d+=n*j,y+=n*k,E+=n*V,w+=n*X,_+=n*x,b+=n*z,v+=n*Z,L+=n*$,g+=n*q,M+=n*J,n=e[3],f+=n*G,u+=n*P,h+=n*O,l+=n*C,c+=n*D,d+=n*Y,y+=n*j,E+=n*k,w+=n*V,_+=n*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,v+=n*O,L+=n*C,g+=n*D,M+=n*Y,p+=n*j,m+=n*k,S+=n*V,A+=n*X,U+=n*x,H+=n*z,B+=n*Z,I+=n*$,T+=n*q,K+=n*J,n=e[13],b+=n*G,v+=n*P,L+=n*O,g+=n*C,M+=n*D,p+=n*Y,m+=n*j,S+=n*k,A+=n*V,U+=n*X,H+=n*x,B+=n*z,I+=n*Z,T+=n*$,K+=n*q,N+=n*J,n=e[14],v+=n*G,L+=n*P,g+=n*O,M+=n*C,p+=n*D,m+=n*Y,S+=n*j,A+=n*k,U+=n*V,H+=n*X,B+=n*x,I+=n*z,T+=n*Z,K+=n*$,N+=n*q,R+=n*J,n=e[15],L+=n*G,g+=n*P,M+=n*O,p+=n*C,m+=n*D,S+=n*Y,A+=n*j,U+=n*k,H+=n*V,B+=n*X,I+=n*x,T+=n*z,K+=n*Z,N+=n*$,R+=n*q,F+=n*J,i+=38*g,a+=38*M,s+=38*p,f+=38*m,u+=38*S,h+=38*A,l+=38*U,c+=38*H,d+=38*B,y+=38*I,E+=38*T,w+=38*K,_+=38*N,b+=38*R,v+=38*F,o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-65536*o,n=a+o+65535,o=Math.floor(n/65536),a=n-65536*o,n=s+o+65535,o=Math.floor(n/65536),s=n-65536*o,n=f+o+65535,o=Math.floor(n/65536),f=n-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=E+o+65535,o=Math.floor(n/65536),E=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,n=_+o+65535,o=Math.floor(n/65536),_=n-65536*o,n=b+o+65535,o=Math.floor(n/65536),b=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=L+o+65535,o=Math.floor(n/65536),L=n-65536*o,i+=o-1+37*(o-1),o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-65536*o,n=a+o+65535,o=Math.floor(n/65536),a=n-65536*o,n=s+o+65535,o=Math.floor(n/65536),s=n-65536*o,n=f+o+65535,o=Math.floor(n/65536),f=n-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=E+o+65535,o=Math.floor(n/65536),E=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,n=_+o+65535,o=Math.floor(n/65536),_=n-65536*o,n=b+o+65535,o=Math.floor(n/65536),b=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=L+o+65535,o=Math.floor(n/65536),L=n-65536*o,i+=o-1+37*(o-1),t[0]=i,t[1]=a,t[2]=s,t[3]=f,t[4]=u,t[5]=h,t[6]=l,t[7]=c,t[8]=d,t[9]=y,t[10]=E,t[11]=w,t[12]=_,t[13]=b,t[14]=v,t[15]=L}function m(t,e){p(t,e,e)}function A(t,e){const r=i();let n;for(n=0;n<16;n++)r[n]=e[n];for(n=253;n>=0;n--)m(r,r),2!==n&&4!==n&&p(r,r,e);for(n=0;n<16;n++)t[n]=r[n]}function U(t,e){const r=i(),n=i(),o=i(),a=i(),s=i(),f=i(),u=i(),l=i(),c=i();M(r,t[1],t[0]),M(c,e[1],e[0]),p(r,r,c),g(n,t[0],t[1]),g(c,e[0],e[1]),p(n,n,c),p(o,t[3],e[3]),p(o,o,h),p(a,t[2],e[2]),g(a,a,a),M(s,n,r),M(f,a,o),g(u,a,o),g(l,n,r),p(t[0],s,f),p(t[1],l,u),p(t[2],u,f),p(t[3],s,l)}function H(t,e,r){for(let n=0;n<4;n++)w(t[n],e[n],r)}function B(t,e){const r=i(),n=i(),o=i();A(o,e[2]),p(r,e[0],o),p(n,e[1],o),_(t,n),t[31]^=L(r)<<7}function I(t,e,r){y(t[0],a),y(t[1],f),y(t[2],f),y(t[3],a);for(let n=255;n>=0;--n){const o=r[n/8|0]>>(7&n)&1;H(t,e,o),U(e,t),U(t,t),H(t,e,o)}}function T(t,e){const r=[i(),i(),i(),i()];y(r[0],l),y(r[1],c),y(r[2],f),p(r[3],l,c),I(t,r,e)}function K(e){if(e.length!==t.SEED_LENGTH)throw new Error(`ed25519: seed must be ${t.SEED_LENGTH} bytes`);const n=(0,r.hash)(e);n[0]&=248,n[31]&=127,n[31]|=64;const o=new Uint8Array(32),a=[i(),i(),i(),i()];T(a,n),B(o,a);const s=new Uint8Array(64);return s.set(e),s.set(o,32),{publicKey:o,secretKey:s}}t.generateKeyPairFromSeed=K,t.generateKeyPair=function(t){const r=(0,e.randomBytes)(32,t),n=K(r);return(0,o.wipe)(r),n},t.extractPublicKeyFromSecretKey=function(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${t.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))};const N=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function R(t,e){let r,n,o,i;for(n=63;n>=32;--n){for(r=0,o=n-32,i=n-12;o<i;++o)e[o]+=r-16*e[n]*N[o-(n-32)],r=Math.floor((e[o]+128)/256),e[o]-=256*r;e[o]+=r,e[n]=0}for(r=0,o=0;o<32;o++)e[o]+=r-(e[31]>>4)*N[o],r=e[o]>>8,e[o]&=255;for(o=0;o<32;o++)e[o]-=r*N[o];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function F(t){const e=new Float64Array(64);for(let r=0;r<64;r++)e[r]=t[r];for(let e=0;e<64;e++)t[e]=0;R(t,e)}function G(t,e){const r=i(),n=i(),o=i(),s=i(),h=i(),l=i(),c=i();return y(t[2],f),function(t,e){for(let r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}(t[1],e),m(o,t[1]),p(s,o,u),M(o,o,t[2]),g(s,t[2],s),m(h,s),m(l,h),p(c,l,h),p(r,c,o),p(r,r,s),function(t,e){const r=i();let n;for(n=0;n<16;n++)r[n]=e[n];for(n=250;n>=0;n--)m(r,r),1!==n&&p(r,r,e);for(n=0;n<16;n++)t[n]=r[n]}(r,r),p(r,r,o),p(r,r,s),p(r,r,s),p(t[0],r,s),m(n,t[0]),p(n,n,s),v(n,o)&&p(t[0],t[0],d),m(n,t[0]),p(n,n,s),v(n,o)?-1:(L(t[0])===e[31]>>7&&M(t[0],a,t[0]),p(t[3],t[0],t[1]),0)}t.sign=function(t,e){const n=new Float64Array(64),o=[i(),i(),i(),i()],a=(0,r.hash)(t.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;const s=new Uint8Array(64);s.set(a.subarray(32),32);const f=new r.SHA512;f.update(s.subarray(32)),f.update(e);const u=f.digest();f.clean(),F(u),T(o,u),B(s,o),f.reset(),f.update(s.subarray(0,32)),f.update(t.subarray(32)),f.update(e);const h=f.digest();F(h);for(let t=0;t<32;t++)n[t]=u[t];for(let t=0;t<32;t++)for(let e=0;e<32;e++)n[t+e]+=h[t]*a[e];return R(s.subarray(32),n),s},t.verify=function(e,n,o){const a=new Uint8Array(32),s=[i(),i(),i(),i()],f=[i(),i(),i(),i()];if(o.length!==t.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${t.SIGNATURE_LENGTH} bytes`);if(G(f,e))return!1;const u=new r.SHA512;u.update(o.subarray(0,32)),u.update(e),u.update(n);const h=u.digest();return F(h),I(s,f,h),T(f,o.subarray(32)),U(s,f),B(a,s),!b(o,a)},t.convertPublicKeyToX25519=function(t){let e=[i(),i(),i(),i()];if(G(e,t))throw new Error("Ed25519: invalid public key");let r=i(),n=i(),o=e[1];g(r,f,o),M(n,f,o),A(n,n),p(r,r,n);let a=new Uint8Array(32);return _(a,r),a},t.convertSecretKeyToX25519=function(t){const e=(0,r.hash)(t.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;const n=new Uint8Array(e.subarray(0,32));return(0,o.wipe)(e),n}}(r);var A={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sharedKey=t.generateKeyPair=t.generateKeyPairFromSeed=t.scalarMultBase=t.scalarMult=t.SHARED_KEY_LENGTH=t.SECRET_KEY_LENGTH=t.PUBLIC_KEY_LENGTH=void 0;const e=n,r=s;function o(t){const e=new Float64Array(16);if(t)for(let r=0;r<t.length;r++)e[r]=t[r];return e}t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=32,t.SHARED_KEY_LENGTH=32;const i=new Uint8Array(32);i[0]=9;const a=o([56129,1]);function f(t){let e=1;for(let r=0;r<16;r++){let n=t[r]+e+65535;e=Math.floor(n/65536),t[r]=n-65536*e}t[0]+=e-1+37*(e-1)}function u(t,e,r){const n=~(r-1);for(let r=0;r<16;r++){const o=n&(t[r]^e[r]);t[r]^=o,e[r]^=o}}function h(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]+r[n]}function l(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]-r[n]}function c(t,e,r){let n,o,i=0,a=0,s=0,f=0,u=0,h=0,l=0,c=0,d=0,y=0,E=0,w=0,_=0,b=0,v=0,L=0,g=0,M=0,p=0,m=0,S=0,A=0,U=0,H=0,B=0,I=0,T=0,K=0,N=0,R=0,F=0,G=r[0],P=r[1],O=r[2],C=r[3],D=r[4],Y=r[5],j=r[6],k=r[7],V=r[8],X=r[9],x=r[10],z=r[11],Z=r[12],$=r[13],q=r[14],J=r[15];n=e[0],i+=n*G,a+=n*P,s+=n*O,f+=n*C,u+=n*D,h+=n*Y,l+=n*j,c+=n*k,d+=n*V,y+=n*X,E+=n*x,w+=n*z,_+=n*Z,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-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=E+o+65535,o=Math.floor(n/65536),E=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,n=_+o+65535,o=Math.floor(n/65536),_=n-65536*o,n=b+o+65535,o=Math.floor(n/65536),b=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=L+o+65535,o=Math.floor(n/65536),L=n-65536*o,i+=o-1+37*(o-1),o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-65536*o,n=a+o+65535,o=Math.floor(n/65536),a=n-65536*o,n=s+o+65535,o=Math.floor(n/65536),s=n-65536*o,n=f+o+65535,o=Math.floor(n/65536),f=n-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=E+o+65535,o=Math.floor(n/65536),E=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,n=_+o+65535,o=Math.floor(n/65536),_=n-65536*o,n=b+o+65535,o=Math.floor(n/65536),b=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=L+o+65535,o=Math.floor(n/65536),L=n-65536*o,i+=o-1+37*(o-1),t[0]=i,t[1]=a,t[2]=s,t[3]=f,t[4]=u,t[5]=h,t[6]=l,t[7]=c,t[8]=d,t[9]=y,t[10]=E,t[11]=w,t[12]=_,t[13]=b,t[14]=v,t[15]=L}function d(t,e){c(t,e,e)}function y(t,e){const r=new Uint8Array(32),n=new Float64Array(80),i=o(),s=o(),y=o(),E=o(),w=o(),_=o();for(let e=0;e<31;e++)r[e]=t[e];r[31]=127&t[31]|64,r[0]&=248,function(t,e){for(let r=0;r<16;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}(n,e);for(let t=0;t<16;t++)s[t]=n[t];i[0]=E[0]=1;for(let t=254;t>=0;--t){const e=r[t>>>3]>>>(7&t)&1;u(i,s,e),u(y,E,e),h(w,i,y),l(i,i,y),h(y,s,E),l(s,s,E),d(E,w),d(_,i),c(i,y,i),c(y,s,w),h(w,i,y),l(i,i,y),d(s,i),l(y,E,_),c(i,y,a),h(i,i,E),c(y,y,i),c(i,E,_),c(E,s,n),d(s,w),u(i,s,e),u(y,E,e)}for(let t=0;t<16;t++)n[t+16]=i[t],n[t+32]=y[t],n[t+48]=s[t],n[t+64]=E[t];const b=n.subarray(32),v=n.subarray(16);!function(t,e){const r=o();for(let t=0;t<16;t++)r[t]=e[t];for(let t=253;t>=0;t--)d(r,r),2!==t&&4!==t&&c(r,r,e);for(let e=0;e<16;e++)t[e]=r[e]}(b,b),c(v,v,b);const L=new Uint8Array(32);return function(t,e){const r=o(),n=o();for(let t=0;t<16;t++)n[t]=e[t];f(n),f(n),f(n);for(let t=0;t<2;t++){r[0]=n[0]-65517;for(let t=1;t<15;t++)r[t]=n[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,u(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}(L,v),L}function E(t){return y(t,i)}function w(e){if(e.length!==t.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${t.SECRET_KEY_LENGTH} bytes`);const r=new Uint8Array(e);return{publicKey:E(r),secretKey:r}}t.scalarMult=y,t.scalarMultBase=E,t.generateKeyPairFromSeed=w,t.generateKeyPair=function(t){const n=(0,e.randomBytes)(32,t),o=w(n);return(0,r.wipe)(n),o},t.sharedKey=function(e,r,n=!1){if(e.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(r.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const o=y(e,r);if(n){let t=0;for(let e=0;e<o.length;e++)t|=o[e];if(0===t)throw new Error("X25519: invalid shared key")}return o}}(A);export{r as e,A as x};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockcerts/blockcerts-verifier",
3
- "version": "1.59.0",
3
+ "version": "1.59.1",
4
4
  "description": "A standalone universal viewer and verifier for blockcerts credentials",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,13 @@ git remote add origin https://$GITHUB_USER:$BOTCERTS_PR_GITHUB_TOKEN@$GIT_REPO
26
26
  # "base": "master"
27
27
  #}
28
28
 
29
- curl --data '{"head":"'${WORK_BRANCH}'", "base":"master", "title": "bump Blockcerts Verifier version", "body": "Please review and merge @lemoustachiste @raiseandfall"}' -H "Authorization: token ${BOTCERTS_PR_GITHUB_TOKEN}" https://api.github.com/repos/$BLOCKCERTS_GITHUB_REPO/pulls -v
29
+ curl -L \
30
+ -X POST \
31
+ -H "Accept: application/vnd.github+json" \
32
+ -H "Authorization: Bearer ${BOTCERTS_PR_GITHUB_TOKEN}" \
33
+ -H "X-GitHub-Api-Version: 2022-11-28" \
34
+ https://api.github.com/repos/$BLOCKCERTS_GITHUB_REPO/pulls \
35
+ -d '{"head":"'${WORK_BRANCH}'", "base":"master", "title": "bump Blockcerts Verifier version", "body": "Please review and merge @lemoustachiste @raiseandfall"}'
30
36
 
31
37
  # clean after use
32
38
  cd ..