@blockcerts/blockcerts-verifier 1.57.4 → 1.58.0

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 (35) hide show
  1. package/bundle-stats.html +1 -1
  2. package/dist/{EcdsaSecp256k1Signature2019-01e33e56-6efe219a.js → EcdsaSecp256k1Signature2019-01e33e56-_kD7OEMM.js} +1 -1
  3. package/dist/{Ed25519Signature2020-722d8d24-df100275.js → Ed25519Signature2020-722d8d24-52XGswpx.js} +1 -1
  4. package/dist/{HashlinkVerifier-40818bdd-2156022a.js → HashlinkVerifier-40818bdd-tYZmELFg.js} +1 -1
  5. package/dist/{MerkleProof2017-MZJbBTpc-1274faf2.js → MerkleProof2017-MZJbBTpc-NVfw6WgB.js} +1 -1
  6. package/dist/{MerkleProof2017-ac8d147b-dd9968ca.js → MerkleProof2017-ac8d147b-6wk-NtfB.js} +1 -1
  7. package/dist/{MerkleProof2019-6596bc5f-6920f4ea.js → MerkleProof2019-6596bc5f-AOhD0MU2.js} +1 -1
  8. package/dist/{checkRevocationStatusList2021-904b13ff-ca07e61e.js → checkRevocationStatusList2021-904b13ff-HXtw_2Lc.js} +2 -2
  9. package/dist/{controlVerificationMethod-80d0e7f0-27e88021.js → controlVerificationMethod-80d0e7f0-8ug9g49U.js} +1 -1
  10. package/dist/{did-key-common.esm-2e9ab4e3-8e1d8d48.js → did-key-common.esm-2e9ab4e3-X4avzjKx.js} +1 -1
  11. package/dist/{did-key-ed25519.esm-54d2cbca-52ecc5b1.js → did-key-ed25519.esm-54d2cbca-E7NBXv8_.js} +1 -1
  12. package/dist/{did-key-secp256k1.esm-8a01b23c-75ec86fd.js → did-key-secp256k1.esm-8a01b23c-iRA0puBs.js} +1 -1
  13. package/dist/{downloadPDF-e769d8ac.js → downloadPDF-5Pw6AlBs.js} +2 -2
  14. package/dist/{ensureNotRevoked-gui-UMnE-b8cc28d9.js → ensureNotRevoked-gui-UMnE-9nObicUP.js} +1 -1
  15. package/dist/{index-6d4132ca-27a349f3.js → index-6d4132ca-BtAgIaHS.js} +1 -1
  16. package/dist/{index-94883c71.js → index-WX6J-tsk.js} +1 -1
  17. package/dist/{index.es-6cb605d5.js → index.es-YP2tdnLj.js} +1 -1
  18. package/dist/{jsonld-signatures-8ecbbaa2-fff3092d.js → jsonld-signatures-8ecbbaa2-MztjIc1c.js} +1 -1
  19. package/dist/main.js +78 -98
  20. package/dist/{purify-7feb8159.js → purify-xGHUwWlQ.js} +1 -1
  21. package/dist/{x25519-08f432f1-3fdac820.js → x25519-08f432f1-4TKeGPT6.js} +1 -1
  22. package/package.json +4 -4
  23. /package/dist/{Suite-e65d26ad-9eb797e9.js → Suite-e65d26ad-e2QgHGhx.js} +0 -0
  24. /package/dist/{_commonjs-dynamic-modules-1e49c0dd-3e972b61.js → _commonjs-dynamic-modules-1e49c0dd-fkA6S-_a.js} +0 -0
  25. /package/dist/{elliptic-a9d84078-bc51730e.js → elliptic-a9d84078-BGmaMzNc.js} +0 -0
  26. /package/dist/{ensureNotRevoked-2dc26afb-7b9df556.js → ensureNotRevoked-2dc26afb-U5ByLE-t.js} +0 -0
  27. /package/dist/{ensureValidIssuingKey-b950fb8b-b8fdc4d0.js → ensureValidIssuingKey-b950fb8b-oM__XftS.js} +0 -0
  28. /package/dist/{index-0469d008-3e0eb763.js → index-0469d008-LwXIiw03.js} +0 -0
  29. /package/dist/{index-85f56501-cfd39fda.js → index-85f56501-xkysxAxC.js} +0 -0
  30. /package/dist/{index-69ba64e7.js → index-F1HqK0qm.js} +0 -0
  31. /package/dist/{index-a93e1e88-967d29f5.js → index-a93e1e88-w6XCMY1g.js} +0 -0
  32. /package/dist/{jsonld-6909fb49-1ef9cd75.js → jsonld-6909fb49-vaWL2Y4h.js} +0 -0
  33. /package/dist/{pako.esm-7a9981ef-ce496ef7.js → pako.esm-7a9981ef-RAILONW0.js} +0 -0
  34. /package/dist/{sha256-71400caa-e7398231.js → sha256-71400caa-o9J6pXuo.js} +0 -0
  35. /package/dist/{tslib.es6-28b6776b-35eb20e3.js → tslib.es6-28b6776b-qWIKDnpX.js} +0 -0
@@ -1,2 +1,2 @@
1
- import{g as e,c as t}from"./downloadPDF-e769d8ac.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-5Pw6AlBs.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{c as t}from"./_commonjs-dynamic-modules-1e49c0dd-3e972b61.js";import{z as r}from"./main.js";var e={},n={},o={},i={};Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function t(){this.isAvailable=!1,this.isInstantiated=!1;var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&t.getRandomValues&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}return t.prototype.randomBytes=function(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");for(var r=new Uint8Array(t),e=0;e<r.length;e+=65536)this._crypto.getRandomValues(r.subarray(e,e+Math.min(r.length-e,65536)));return r},t}();i.BrowserRandomSource=a;var f={},s={};Object.defineProperty(s,"__esModule",{value:!0}),s.wipe=function(t){for(var r=0;r<t.length;r++)t[r]=0;return t},Object.defineProperty(f,"__esModule",{value:!0});var u=s,h=function(){function e(){if(this.isAvailable=!1,this.isInstantiated=!1,void 0!==t){var e=r;e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}return e.prototype.randomBytes=function(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");var r=this._crypto.randomBytes(t);if(r.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=r[n];return u.wipe(r),e},e}();f.NodeRandomSource=h,Object.defineProperty(o,"__esModule",{value:!0});var l=i,v=f,d=function(){function t(){return this.isAvailable=!1,this.name="",this._source=new l.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new v.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}return t.prototype.randomBytes=function(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)},t}();o.SystemRandomSource=d;var c,y={},w={};c=w,Object.defineProperty(c,"__esModule",{value:!0}),c.mul=Math.imul||function(t,r){var e=65535&t,n=65535&r;return e*n+((t>>>16&65535)*n+e*(r>>>16&65535)<<16>>>0)|0},c.add=function(t,r){return t+r|0},c.sub=function(t,r){return t-r|0},c.rotl=function(t,r){return t<<r|t>>>32-r},c.rotr=function(t,r){return t<<32-r|t>>>r},c.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},c.MAX_SAFE_INTEGER=9007199254740991,c.isSafeInteger=function(t){return c.isInteger(t)&&t>=-c.MAX_SAFE_INTEGER&&t<=c.MAX_SAFE_INTEGER},Object.defineProperty(y,"__esModule",{value:!0});var _=w;function b(t,r,e){return void 0===r&&(r=new Uint8Array(2)),void 0===e&&(e=0),r[e+0]=t>>>8,r[e+1]=t>>>0,r}function E(t,r,e){return void 0===r&&(r=new Uint8Array(2)),void 0===e&&(e=0),r[e+0]=t>>>0,r[e+1]=t>>>8,r}function L(t,r){return void 0===r&&(r=0),t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]}function g(t,r){return void 0===r&&(r=0),(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}function p(t,r){return void 0===r&&(r=0),t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]}function M(t,r){return void 0===r&&(r=0),(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r])>>>0}function A(t,r,e){return void 0===r&&(r=new Uint8Array(4)),void 0===e&&(e=0),r[e+0]=t>>>24,r[e+1]=t>>>16,r[e+2]=t>>>8,r[e+3]=t>>>0,r}function m(t,r,e){return void 0===r&&(r=new Uint8Array(4)),void 0===e&&(e=0),r[e+0]=t>>>0,r[e+1]=t>>>8,r[e+2]=t>>>16,r[e+3]=t>>>24,r}function U(t,r,e){return void 0===r&&(r=new Uint8Array(8)),void 0===e&&(e=0),A(t/4294967296>>>0,r,e),A(t>>>0,r,e+4),r}function S(t,r,e){return void 0===r&&(r=new Uint8Array(8)),void 0===e&&(e=0),m(t>>>0,r,e),m(t/4294967296>>>0,r,e+4),r}y.readInt16BE=function(t,r){return void 0===r&&(r=0),(t[r+0]<<8|t[r+1])<<16>>16},y.readUint16BE=function(t,r){return void 0===r&&(r=0),(t[r+0]<<8|t[r+1])>>>0},y.readInt16LE=function(t,r){return void 0===r&&(r=0),(t[r+1]<<8|t[r])<<16>>16},y.readUint16LE=function(t,r){return void 0===r&&(r=0),(t[r+1]<<8|t[r])>>>0},y.writeUint16BE=b,y.writeInt16BE=b,y.writeUint16LE=E,y.writeInt16LE=E,y.readInt32BE=L,y.readUint32BE=g,y.readInt32LE=p,y.readUint32LE=M,y.writeUint32BE=A,y.writeInt32BE=A,y.writeUint32LE=m,y.writeInt32LE=m,y.readInt64BE=function(t,r){void 0===r&&(r=0);var e=L(t,r),n=L(t,r+4);return 4294967296*e+n-4294967296*(n>>31)},y.readUint64BE=function(t,r){return void 0===r&&(r=0),4294967296*g(t,r)+g(t,r+4)},y.readInt64LE=function(t,r){void 0===r&&(r=0);var e=p(t,r);return 4294967296*p(t,r+4)+e-4294967296*(e>>31)},y.readUint64LE=function(t,r){void 0===r&&(r=0);var e=M(t,r);return 4294967296*M(t,r+4)+e},y.writeUint64BE=U,y.writeInt64BE=U,y.writeUint64LE=S,y.writeInt64LE=S,y.readUintBE=function(t,r,e){if(void 0===e&&(e=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>r.length-e)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,o=1,i=t/8+e-1;i>=e;i--)n+=r[i]*o,o*=256;return n},y.readUintLE=function(t,r,e){if(void 0===e&&(e=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>r.length-e)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,o=1,i=e;i<e+t/8;i++)n+=r[i]*o,o*=256;return n},y.writeUintBE=function(t,r,e,n){if(void 0===e&&(e=new Uint8Array(t/8)),void 0===n&&(n=0),t%8!=0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!_.isSafeInteger(r))throw new Error("writeUintBE value must be an integer");for(var o=1,i=t/8+n-1;i>=n;i--)e[i]=r/o&255,o*=256;return e},y.writeUintLE=function(t,r,e,n){if(void 0===e&&(e=new Uint8Array(t/8)),void 0===n&&(n=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!_.isSafeInteger(r))throw new Error("writeUintLE value must be an integer");for(var o=1,i=n;i<n+t/8;i++)e[i]=r/o&255,o*=256;return e},y.readFloat32BE=function(t,r){return void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat32(r)},y.readFloat32LE=function(t,r){return void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat32(r,!0)},y.readFloat64BE=function(t,r){return void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat64(r)},y.readFloat64LE=function(t,r){return void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat64(r,!0)},y.writeFloat32BE=function(t,r,e){return void 0===r&&(r=new Uint8Array(4)),void 0===e&&(e=0),new DataView(r.buffer,r.byteOffset,r.byteLength).setFloat32(e,t),r},y.writeFloat32LE=function(t,r,e){return void 0===r&&(r=new Uint8Array(4)),void 0===e&&(e=0),new DataView(r.buffer,r.byteOffset,r.byteLength).setFloat32(e,t,!0),r},y.writeFloat64BE=function(t,r,e){return void 0===r&&(r=new Uint8Array(8)),void 0===e&&(e=0),new DataView(r.buffer,r.byteOffset,r.byteLength).setFloat64(e,t),r},y.writeFloat64LE=function(t,r,e){return void 0===r&&(r=new Uint8Array(8)),void 0===e&&(e=0),new DataView(r.buffer,r.byteOffset,r.byteLength).setFloat64(e,t,!0),r},function(t){Object.defineProperty(t,"__esModule",{value:!0});var r=o,e=y,n=s;function i(r,e){return void 0===e&&(e=t.defaultRandomSource),e.randomBytes(r)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=i,t.randomUint32=function(r){void 0===r&&(r=t.defaultRandomSource);var o=i(4,r),a=e.readUint32LE(o);return n.wipe(o),a};var a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function f(r,e,o){if(void 0===e&&(e=a),void 0===o&&(o=t.defaultRandomSource),e.length<2)throw new Error("randomString charset is too short");if(e.length>256)throw new Error("randomString charset is too long");for(var f="",s=e.length,u=256-256%s;r>0;){for(var h=i(Math.ceil(256*r/u),o),l=0;l<h.length&&r>0;l++){var v=h[l];v<u&&(f+=e.charAt(v%s),r--)}n.wipe(h)}return f}t.randomString=f,t.randomStringForEntropy=function(r,e,n){return void 0===e&&(e=a),void 0===n&&(n=t.defaultRandomSource),f(Math.ceil(r/(Math.log(e.length)/Math.LN2)),e,n)}}(n);var H={};!function(t){Object.defineProperty(t,"__esModule",{value:!0});var r=y,e=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(){e.wipe(this._buffer),e.wipe(this._tempHi),e.wipe(this._tempLo),this.reset()},n.prototype.update=function(r,e){if(void 0===e&&(e=r.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=e,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&e>0;)this._buffer[this._bufferLength++]=r[n++],e--;this._bufferLength===this.blockSize&&(i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(e>=this.blockSize&&(n=i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,r,n,e),e%=this.blockSize);e>0;)this._buffer[this._bufferLength++]=r[n++],e--;return this},n.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,n=this._bufferLength,o=e/536870912|0,a=e<<3,f=e%128<112?128:256;this._buffer[n]=128;for(var s=n+1;s<f-8;s++)this._buffer[s]=0;r.writeUint32BE(o,this._buffer,f-8),r.writeUint32BE(a,this._buffer,f-4),i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,f),this._finished=!0}for(s=0;s<this.digestLength/8;s++)r.writeUint32BE(this._stateHi[s],t,8*s),r.writeUint32BE(this._stateLo[s],t,8*s+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){e.wipe(t.stateHi),e.wipe(t.stateLo),t.buffer&&e.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,e,n,i,a,f,s){for(var u,h,l,v,d,c,y,w,_=n[0],b=n[1],E=n[2],L=n[3],g=n[4],p=n[5],M=n[6],A=n[7],m=i[0],U=i[1],S=i[2],H=i[3],B=i[4],I=i[5],T=i[6],N=i[7];s>=128;){for(var F=0;F<16;F++){var G=8*F+f;t[F]=r.readUint32BE(a,G),e[F]=r.readUint32BE(a,G+4)}for(F=0;F<80;F++){var K,R,O=_,P=b,j=E,C=L,D=g,Y=p,k=M,V=m,X=U,z=S,x=H,Z=B,q=I,J=T;if(d=65535&(h=N),c=h>>>16,y=65535&(u=A),w=u>>>16,d+=65535&(h=(B>>>14|g<<18)^(B>>>18|g<<14)^(g>>>9|B<<23)),c+=h>>>16,y+=65535&(u=(g>>>14|B<<18)^(g>>>18|B<<14)^(B>>>9|g<<23)),w+=u>>>16,d+=65535&(h=B&I^~B&T),c+=h>>>16,y+=65535&(u=g&p^~g&M),w+=u>>>16,u=o[2*F],d+=65535&(h=o[2*F+1]),c+=h>>>16,y+=65535&u,w+=u>>>16,u=t[F%16],c+=(h=e[F%16])>>>16,y+=65535&u,w+=u>>>16,y+=(c+=(d+=65535&h)>>>16)>>>16,d=65535&(h=v=65535&d|c<<16),c=h>>>16,y=65535&(u=l=65535&y|(w+=y>>>16)<<16),w=u>>>16,d+=65535&(h=(m>>>28|_<<4)^(_>>>2|m<<30)^(_>>>7|m<<25)),c+=h>>>16,y+=65535&(u=(_>>>28|m<<4)^(m>>>2|_<<30)^(m>>>7|_<<25)),w+=u>>>16,c+=(h=m&U^m&S^U&S)>>>16,y+=65535&(u=_&b^_&E^b&E),w+=u>>>16,K=65535&(y+=(c+=(d+=65535&h)>>>16)>>>16)|(w+=y>>>16)<<16,R=65535&d|c<<16,d=65535&(h=x),c=h>>>16,y=65535&(u=C),w=u>>>16,c+=(h=v)>>>16,y+=65535&(u=l),w+=u>>>16,b=O,E=P,L=j,g=C=65535&(y+=(c+=(d+=65535&h)>>>16)>>>16)|(w+=y>>>16)<<16,p=D,M=Y,A=k,_=K,U=V,S=X,H=z,B=x=65535&d|c<<16,I=Z,T=q,N=J,m=R,F%16==15)for(G=0;G<16;G++)u=t[G],d=65535&(h=e[G]),c=h>>>16,y=65535&u,w=u>>>16,u=t[(G+9)%16],d+=65535&(h=e[(G+9)%16]),c+=h>>>16,y+=65535&u,w+=u>>>16,l=t[(G+1)%16],d+=65535&(h=((v=e[(G+1)%16])>>>1|l<<31)^(v>>>8|l<<24)^(v>>>7|l<<25)),c+=h>>>16,y+=65535&(u=(l>>>1|v<<31)^(l>>>8|v<<24)^l>>>7),w+=u>>>16,l=t[(G+14)%16],c+=(h=((v=e[(G+14)%16])>>>19|l<<13)^(l>>>29|v<<3)^(v>>>6|l<<26))>>>16,y+=65535&(u=(l>>>19|v<<13)^(v>>>29|l<<3)^l>>>6),w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,t[G]=65535&y|w<<16,e[G]=65535&d|c<<16}d=65535&(h=m),c=h>>>16,y=65535&(u=_),w=u>>>16,u=n[0],c+=(h=i[0])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[0]=_=65535&y|w<<16,i[0]=m=65535&d|c<<16,d=65535&(h=U),c=h>>>16,y=65535&(u=b),w=u>>>16,u=n[1],c+=(h=i[1])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[1]=b=65535&y|w<<16,i[1]=U=65535&d|c<<16,d=65535&(h=S),c=h>>>16,y=65535&(u=E),w=u>>>16,u=n[2],c+=(h=i[2])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[2]=E=65535&y|w<<16,i[2]=S=65535&d|c<<16,d=65535&(h=H),c=h>>>16,y=65535&(u=L),w=u>>>16,u=n[3],c+=(h=i[3])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[3]=L=65535&y|w<<16,i[3]=H=65535&d|c<<16,d=65535&(h=B),c=h>>>16,y=65535&(u=g),w=u>>>16,u=n[4],c+=(h=i[4])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[4]=g=65535&y|w<<16,i[4]=B=65535&d|c<<16,d=65535&(h=I),c=h>>>16,y=65535&(u=p),w=u>>>16,u=n[5],c+=(h=i[5])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[5]=p=65535&y|w<<16,i[5]=I=65535&d|c<<16,d=65535&(h=T),c=h>>>16,y=65535&(u=M),w=u>>>16,u=n[6],c+=(h=i[6])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[6]=M=65535&y|w<<16,i[6]=T=65535&d|c<<16,d=65535&(h=N),c=h>>>16,y=65535&(u=A),w=u>>>16,u=n[7],c+=(h=i[7])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[7]=A=65535&y|w<<16,i[7]=N=65535&d|c<<16,f+=128,s-=128}return f}t.hash=function(t){var r=new n;r.update(t);var e=r.digest();return r.clean(),e}}(H),function(t){Object.defineProperty(t,"__esModule",{value:!0});var r=n,e=H,o=s;function i(t){var r=new Float64Array(16);if(t)for(var e=0;e<t.length;e++)r[e]=t[e];return r}t.SIGNATURE_LENGTH=64,t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=64,t.SEED_LENGTH=32,new Uint8Array(32)[0]=9;var 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]),v=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 c(t,r){for(var e=0;e<16;e++)t[e]=0|r[e]}function y(t){for(var r=1,e=0;e<16;e++){var n=t[e]+r+65535;r=Math.floor(n/65536),t[e]=n-65536*r}t[0]+=r-1+37*(r-1)}function w(t,r,e){for(var n=~(e-1),o=0;o<16;o++){var i=n&(t[o]^r[o]);t[o]^=i,r[o]^=i}}function _(t,r){for(var e=i(),n=i(),o=0;o<16;o++)n[o]=r[o];y(n),y(n),y(n);for(var a=0;a<2;a++){e[0]=n[0]-65517;for(o=1;o<15;o++)e[o]=n[o]-65535-(e[o-1]>>16&1),e[o-1]&=65535;e[15]=n[15]-32767-(e[14]>>16&1);var f=e[15]>>16&1;e[14]&=65535,w(n,e,1-f)}for(o=0;o<16;o++)t[2*o]=255&n[o],t[2*o+1]=n[o]>>8}function b(t,r){for(var e=0,n=0;n<32;n++)e|=t[n]^r[n];return(1&e-1>>>8)-1}function E(t,r){var e=new Uint8Array(32),n=new Uint8Array(32);return _(e,t),_(n,r),b(e,n)}function L(t){var r=new Uint8Array(32);return _(r,t),1&r[0]}function g(t,r,e){for(var n=0;n<16;n++)t[n]=r[n]+e[n]}function p(t,r,e){for(var n=0;n<16;n++)t[n]=r[n]-e[n]}function M(t,r,e){var n,o,i=0,a=0,f=0,s=0,u=0,h=0,l=0,v=0,d=0,c=0,y=0,w=0,_=0,b=0,E=0,L=0,g=0,p=0,M=0,A=0,m=0,U=0,S=0,H=0,B=0,I=0,T=0,N=0,F=0,G=0,K=0,R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*(T+=n*x),w+=38*(N+=n*Z),_+=38*(F+=n*q),b+=38*(G+=n*J),E+=38*(K+=n*Q),i=(n=(i+=38*(g+=n*O))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),v=(n=v+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),y=(n=y+o+65535)-65536*(o=Math.floor(n/65536)),w=(n=w+o+65535)-65536*(o=Math.floor(n/65536)),_=(n=_+o+65535)-65536*(o=Math.floor(n/65536)),b=(n=b+o+65535)-65536*(o=Math.floor(n/65536)),E=(n=E+o+65535)-65536*(o=Math.floor(n/65536)),L=(n=L+o+65535)-65536*(o=Math.floor(n/65536)),i=(n=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),v=(n=v+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),y=(n=y+o+65535)-65536*(o=Math.floor(n/65536)),w=(n=w+o+65535)-65536*(o=Math.floor(n/65536)),_=(n=_+o+65535)-65536*(o=Math.floor(n/65536)),b=(n=b+o+65535)-65536*(o=Math.floor(n/65536)),E=(n=E+o+65535)-65536*(o=Math.floor(n/65536)),L=(n=L+o+65535)-65536*(o=Math.floor(n/65536)),i+=o-1+37*(o-1),t[0]=i,t[1]=a,t[2]=f,t[3]=s,t[4]=u,t[5]=h,t[6]=l,t[7]=v,t[8]=d,t[9]=c,t[10]=y,t[11]=w,t[12]=_,t[13]=b,t[14]=E,t[15]=L}function A(t,r){M(t,r,r)}function m(t,r){var e,n=i();for(e=0;e<16;e++)n[e]=r[e];for(e=253;e>=0;e--)A(n,n),2!==e&&4!==e&&M(n,n,r);for(e=0;e<16;e++)t[e]=n[e]}function U(t,r){var e=i(),n=i(),o=i(),a=i(),f=i(),s=i(),u=i(),l=i(),v=i();p(e,t[1],t[0]),p(v,r[1],r[0]),M(e,e,v),g(n,t[0],t[1]),g(v,r[0],r[1]),M(n,n,v),M(o,t[3],r[3]),M(o,o,h),M(a,t[2],r[2]),g(a,a,a),p(f,n,e),p(s,a,o),g(u,a,o),g(l,n,e),M(t[0],f,s),M(t[1],l,u),M(t[2],u,s),M(t[3],f,l)}function S(t,r,e){for(var n=0;n<4;n++)w(t[n],r[n],e)}function B(t,r){var e=i(),n=i(),o=i();m(o,r[2]),M(e,r[0],o),M(n,r[1],o),_(t,n),t[31]^=L(e)<<7}function I(t,r,e){c(t[0],a),c(t[1],f),c(t[2],f),c(t[3],a);for(var n=255;n>=0;--n){var o=e[n/8|0]>>(7&n)&1;S(t,r,o),U(r,t),U(t,t),S(t,r,o)}}function T(t,r){var e=[i(),i(),i(),i()];c(e[0],l),c(e[1],v),c(e[2],f),M(e[3],l,v),I(t,e,r)}function N(r){if(r.length!==t.SEED_LENGTH)throw new Error("ed25519: seed must be "+t.SEED_LENGTH+" bytes");var n=e.hash(r);n[0]&=248,n[31]&=127,n[31]|=64;var o=new Uint8Array(32),a=[i(),i(),i(),i()];T(a,n),B(o,a);var f=new Uint8Array(64);return f.set(r),f.set(o,32),{publicKey:o,secretKey:f}}t.generateKeyPairFromSeed=N,t.generateKeyPair=function(t){var e=r.randomBytes(32,t),n=N(e);return o.wipe(e),n},t.extractPublicKeyFromSecretKey=function(r){if(r.length!==t.SECRET_KEY_LENGTH)throw new Error("ed25519: secret key must be "+t.SECRET_KEY_LENGTH+" bytes");return new Uint8Array(r.subarray(32))};var F=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 G(t,r){var e,n,o,i;for(n=63;n>=32;--n){for(e=0,o=n-32,i=n-12;o<i;++o)r[o]+=e-16*r[n]*F[o-(n-32)],e=Math.floor((r[o]+128)/256),r[o]-=256*e;r[o]+=e,r[n]=0}for(e=0,o=0;o<32;o++)r[o]+=e-(r[31]>>4)*F[o],e=r[o]>>8,r[o]&=255;for(o=0;o<32;o++)r[o]-=e*F[o];for(n=0;n<32;n++)r[n+1]+=r[n]>>8,t[n]=255&r[n]}function K(t){for(var r=new Float64Array(64),e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;G(t,r)}function R(t,r){var e=i(),n=i(),o=i(),s=i(),h=i(),l=i(),v=i();return c(t[2],f),function(t,r){for(var e=0;e<16;e++)t[e]=r[2*e]+(r[2*e+1]<<8);t[15]&=32767}(t[1],r),A(o,t[1]),M(s,o,u),p(o,o,t[2]),g(s,t[2],s),A(h,s),A(l,h),M(v,l,h),M(e,v,o),M(e,e,s),function(t,r){var e,n=i();for(e=0;e<16;e++)n[e]=r[e];for(e=250;e>=0;e--)A(n,n),1!==e&&M(n,n,r);for(e=0;e<16;e++)t[e]=n[e]}(e,e),M(e,e,o),M(e,e,s),M(e,e,s),M(t[0],e,s),A(n,t[0]),M(n,n,s),E(n,o)&&M(t[0],t[0],d),A(n,t[0]),M(n,n,s),E(n,o)?-1:(L(t[0])===r[31]>>7&&p(t[0],a,t[0]),M(t[3],t[0],t[1]),0)}t.sign=function(t,r){var n=new Float64Array(64),o=[i(),i(),i(),i()],a=e.hash(t.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;var f=new Uint8Array(64);f.set(a.subarray(32),32);var s=new e.SHA512;s.update(f.subarray(32)),s.update(r);var u=s.digest();s.clean(),K(u),T(o,u),B(f,o),s.reset(),s.update(f.subarray(0,32)),s.update(t.subarray(32)),s.update(r);var h=s.digest();K(h);for(var l=0;l<32;l++)n[l]=u[l];for(l=0;l<32;l++)for(var v=0;v<32;v++)n[l+v]+=h[l]*a[v];return G(f.subarray(32),n),f},t.verify=function(r,n,o){var a=new Uint8Array(32),f=[i(),i(),i(),i()],s=[i(),i(),i(),i()];if(o.length!==t.SIGNATURE_LENGTH)throw new Error("ed25519: signature must be "+t.SIGNATURE_LENGTH+" bytes");if(R(s,r))return!1;var u=new e.SHA512;u.update(o.subarray(0,32)),u.update(r),u.update(n);var h=u.digest();return K(h),I(f,s,h),T(s,o.subarray(32)),U(f,s),B(a,f),!b(o,a)},t.convertPublicKeyToX25519=function(t){var r=[i(),i(),i(),i()];if(R(r,t))throw new Error("Ed25519: invalid public key");var e=i(),n=i(),o=r[1];g(e,f,o),p(n,f,o),m(n,n),M(e,e,n);var a=new Uint8Array(32);return _(a,e),a},t.convertSecretKeyToX25519=function(t){var r=e.hash(t.subarray(0,32));r[0]&=248,r[31]&=127,r[31]|=64;var n=new Uint8Array(r.subarray(0,32));return o.wipe(r),n}}(e);var B={};!function(t){Object.defineProperty(t,"__esModule",{value:!0});var r=n,e=s;function o(t){var r=new Float64Array(16);if(t)for(var e=0;e<t.length;e++)r[e]=t[e];return r}t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=32,t.SHARED_KEY_LENGTH=32;var i=new Uint8Array(32);i[0]=9;var a=o([56129,1]);function f(t){for(var r=1,e=0;e<16;e++){var n=t[e]+r+65535;r=Math.floor(n/65536),t[e]=n-65536*r}t[0]+=r-1+37*(r-1)}function u(t,r,e){for(var n=~(e-1),o=0;o<16;o++){var i=n&(t[o]^r[o]);t[o]^=i,r[o]^=i}}function h(t,r,e){for(var n=0;n<16;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k,S+=n*V,H+=n*X,B+=n*z,I+=n*x,T+=n*Z,N+=n*q,F+=n*J,G+=n*Q,L+=(n=r[15])*R,a+=38*(p+=n*P),f+=38*(M+=n*j),s+=38*(A+=n*C),u+=38*(m+=n*D),h+=38*(U+=n*Y),l+=38*(S+=n*k),v+=38*(H+=n*V),d+=38*(B+=n*X),c+=38*(I+=n*z),y+=38*(T+=n*x),w+=38*(N+=n*Z),_+=38*(F+=n*q),b+=38*(G+=n*J),E+=38*(K+=n*Q),i=(n=(i+=38*(g+=n*O))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),v=(n=v+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),y=(n=y+o+65535)-65536*(o=Math.floor(n/65536)),w=(n=w+o+65535)-65536*(o=Math.floor(n/65536)),_=(n=_+o+65535)-65536*(o=Math.floor(n/65536)),b=(n=b+o+65535)-65536*(o=Math.floor(n/65536)),E=(n=E+o+65535)-65536*(o=Math.floor(n/65536)),L=(n=L+o+65535)-65536*(o=Math.floor(n/65536)),i=(n=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),v=(n=v+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),y=(n=y+o+65535)-65536*(o=Math.floor(n/65536)),w=(n=w+o+65535)-65536*(o=Math.floor(n/65536)),_=(n=_+o+65535)-65536*(o=Math.floor(n/65536)),b=(n=b+o+65535)-65536*(o=Math.floor(n/65536)),E=(n=E+o+65535)-65536*(o=Math.floor(n/65536)),L=(n=L+o+65535)-65536*(o=Math.floor(n/65536)),i+=o-1+37*(o-1),t[0]=i,t[1]=a,t[2]=f,t[3]=s,t[4]=u,t[5]=h,t[6]=l,t[7]=v,t[8]=d,t[9]=c,t[10]=y,t[11]=w,t[12]=_,t[13]=b,t[14]=E,t[15]=L}function d(t,r){v(t,r,r)}function c(t,r){for(var e=new Uint8Array(32),n=new Float64Array(80),i=o(),s=o(),c=o(),y=o(),w=o(),_=o(),b=0;b<31;b++)e[b]=t[b];e[31]=127&t[31]|64,e[0]&=248,function(t,r){for(var e=0;e<16;e++)t[e]=r[2*e]+(r[2*e+1]<<8);t[15]&=32767}(n,r);for(b=0;b<16;b++)s[b]=n[b];i[0]=y[0]=1;for(b=254;b>=0;--b){var E=e[b>>>3]>>>(7&b)&1;u(i,s,E),u(c,y,E),h(w,i,c),l(i,i,c),h(c,s,y),l(s,s,y),d(y,w),d(_,i),v(i,c,i),v(c,s,w),h(w,i,c),l(i,i,c),d(s,i),l(c,y,_),v(i,c,a),h(i,i,y),v(c,c,i),v(i,y,_),v(y,s,n),d(s,w),u(i,s,E),u(c,y,E)}for(b=0;b<16;b++)n[b+16]=i[b],n[b+32]=c[b],n[b+48]=s[b],n[b+64]=y[b];var L=n.subarray(32),g=n.subarray(16);!function(t,r){for(var e=o(),n=0;n<16;n++)e[n]=r[n];for(n=253;n>=0;n--)d(e,e),2!==n&&4!==n&&v(e,e,r);for(n=0;n<16;n++)t[n]=e[n]}(L,L),v(g,g,L);var p=new Uint8Array(32);return function(t,r){for(var e=o(),n=o(),i=0;i<16;i++)n[i]=r[i];f(n),f(n),f(n);for(var a=0;a<2;a++){for(e[0]=n[0]-65517,i=1;i<15;i++)e[i]=n[i]-65535-(e[i-1]>>16&1),e[i-1]&=65535;e[15]=n[15]-32767-(e[14]>>16&1);var s=e[15]>>16&1;e[14]&=65535,u(n,e,1-s)}for(i=0;i<16;i++)t[2*i]=255&n[i],t[2*i+1]=n[i]>>8}(p,g),p}function y(t){return c(t,i)}function w(r){if(r.length!==t.SECRET_KEY_LENGTH)throw new Error("x25519: seed must be "+t.SECRET_KEY_LENGTH+" bytes");var e=new Uint8Array(r);return{publicKey:y(e),secretKey:e}}t.scalarMult=c,t.scalarMultBase=y,t.generateKeyPairFromSeed=w,t.generateKeyPair=function(t){var n=r.randomBytes(32,t),o=w(n);return e.wipe(n),o},t.sharedKey=function(r,e,n){if(void 0===n&&(n=!1),r.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(e.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");var o=c(r,e);if(n){for(var i=0,a=0;a<o.length;a++)i|=o[a];if(0===i)throw new Error("X25519: invalid shared key")}return o}}(B);export{e,B as x};
1
+ import{c as t}from"./_commonjs-dynamic-modules-1e49c0dd-fkA6S-_a.js";import{z as r}from"./main.js";var e={},n={},o={},i={};Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function t(){this.isAvailable=!1,this.isInstantiated=!1;var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&t.getRandomValues&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}return t.prototype.randomBytes=function(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");for(var r=new Uint8Array(t),e=0;e<r.length;e+=65536)this._crypto.getRandomValues(r.subarray(e,e+Math.min(r.length-e,65536)));return r},t}();i.BrowserRandomSource=a;var f={},s={};Object.defineProperty(s,"__esModule",{value:!0}),s.wipe=function(t){for(var r=0;r<t.length;r++)t[r]=0;return t},Object.defineProperty(f,"__esModule",{value:!0});var u=s,h=function(){function e(){if(this.isAvailable=!1,this.isInstantiated=!1,void 0!==t){var e=r;e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}return e.prototype.randomBytes=function(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");var r=this._crypto.randomBytes(t);if(r.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=r[n];return u.wipe(r),e},e}();f.NodeRandomSource=h,Object.defineProperty(o,"__esModule",{value:!0});var l=i,v=f,d=function(){function t(){return this.isAvailable=!1,this.name="",this._source=new l.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new v.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}return t.prototype.randomBytes=function(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)},t}();o.SystemRandomSource=d;var c,y={},w={};c=w,Object.defineProperty(c,"__esModule",{value:!0}),c.mul=Math.imul||function(t,r){var e=65535&t,n=65535&r;return e*n+((t>>>16&65535)*n+e*(r>>>16&65535)<<16>>>0)|0},c.add=function(t,r){return t+r|0},c.sub=function(t,r){return t-r|0},c.rotl=function(t,r){return t<<r|t>>>32-r},c.rotr=function(t,r){return t<<32-r|t>>>r},c.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},c.MAX_SAFE_INTEGER=9007199254740991,c.isSafeInteger=function(t){return c.isInteger(t)&&t>=-c.MAX_SAFE_INTEGER&&t<=c.MAX_SAFE_INTEGER},Object.defineProperty(y,"__esModule",{value:!0});var _=w;function b(t,r,e){return void 0===r&&(r=new Uint8Array(2)),void 0===e&&(e=0),r[e+0]=t>>>8,r[e+1]=t>>>0,r}function E(t,r,e){return void 0===r&&(r=new Uint8Array(2)),void 0===e&&(e=0),r[e+0]=t>>>0,r[e+1]=t>>>8,r}function L(t,r){return void 0===r&&(r=0),t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]}function g(t,r){return void 0===r&&(r=0),(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}function p(t,r){return void 0===r&&(r=0),t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]}function M(t,r){return void 0===r&&(r=0),(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r])>>>0}function A(t,r,e){return void 0===r&&(r=new Uint8Array(4)),void 0===e&&(e=0),r[e+0]=t>>>24,r[e+1]=t>>>16,r[e+2]=t>>>8,r[e+3]=t>>>0,r}function m(t,r,e){return void 0===r&&(r=new Uint8Array(4)),void 0===e&&(e=0),r[e+0]=t>>>0,r[e+1]=t>>>8,r[e+2]=t>>>16,r[e+3]=t>>>24,r}function U(t,r,e){return void 0===r&&(r=new Uint8Array(8)),void 0===e&&(e=0),A(t/4294967296>>>0,r,e),A(t>>>0,r,e+4),r}function S(t,r,e){return void 0===r&&(r=new Uint8Array(8)),void 0===e&&(e=0),m(t>>>0,r,e),m(t/4294967296>>>0,r,e+4),r}y.readInt16BE=function(t,r){return void 0===r&&(r=0),(t[r+0]<<8|t[r+1])<<16>>16},y.readUint16BE=function(t,r){return void 0===r&&(r=0),(t[r+0]<<8|t[r+1])>>>0},y.readInt16LE=function(t,r){return void 0===r&&(r=0),(t[r+1]<<8|t[r])<<16>>16},y.readUint16LE=function(t,r){return void 0===r&&(r=0),(t[r+1]<<8|t[r])>>>0},y.writeUint16BE=b,y.writeInt16BE=b,y.writeUint16LE=E,y.writeInt16LE=E,y.readInt32BE=L,y.readUint32BE=g,y.readInt32LE=p,y.readUint32LE=M,y.writeUint32BE=A,y.writeInt32BE=A,y.writeUint32LE=m,y.writeInt32LE=m,y.readInt64BE=function(t,r){void 0===r&&(r=0);var e=L(t,r),n=L(t,r+4);return 4294967296*e+n-4294967296*(n>>31)},y.readUint64BE=function(t,r){return void 0===r&&(r=0),4294967296*g(t,r)+g(t,r+4)},y.readInt64LE=function(t,r){void 0===r&&(r=0);var e=p(t,r);return 4294967296*p(t,r+4)+e-4294967296*(e>>31)},y.readUint64LE=function(t,r){void 0===r&&(r=0);var e=M(t,r);return 4294967296*M(t,r+4)+e},y.writeUint64BE=U,y.writeInt64BE=U,y.writeUint64LE=S,y.writeInt64LE=S,y.readUintBE=function(t,r,e){if(void 0===e&&(e=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>r.length-e)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,o=1,i=t/8+e-1;i>=e;i--)n+=r[i]*o,o*=256;return n},y.readUintLE=function(t,r,e){if(void 0===e&&(e=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>r.length-e)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,o=1,i=e;i<e+t/8;i++)n+=r[i]*o,o*=256;return n},y.writeUintBE=function(t,r,e,n){if(void 0===e&&(e=new Uint8Array(t/8)),void 0===n&&(n=0),t%8!=0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!_.isSafeInteger(r))throw new Error("writeUintBE value must be an integer");for(var o=1,i=t/8+n-1;i>=n;i--)e[i]=r/o&255,o*=256;return e},y.writeUintLE=function(t,r,e,n){if(void 0===e&&(e=new Uint8Array(t/8)),void 0===n&&(n=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!_.isSafeInteger(r))throw new Error("writeUintLE value must be an integer");for(var o=1,i=n;i<n+t/8;i++)e[i]=r/o&255,o*=256;return e},y.readFloat32BE=function(t,r){return void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat32(r)},y.readFloat32LE=function(t,r){return void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat32(r,!0)},y.readFloat64BE=function(t,r){return void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat64(r)},y.readFloat64LE=function(t,r){return void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).getFloat64(r,!0)},y.writeFloat32BE=function(t,r,e){return void 0===r&&(r=new Uint8Array(4)),void 0===e&&(e=0),new DataView(r.buffer,r.byteOffset,r.byteLength).setFloat32(e,t),r},y.writeFloat32LE=function(t,r,e){return void 0===r&&(r=new Uint8Array(4)),void 0===e&&(e=0),new DataView(r.buffer,r.byteOffset,r.byteLength).setFloat32(e,t,!0),r},y.writeFloat64BE=function(t,r,e){return void 0===r&&(r=new Uint8Array(8)),void 0===e&&(e=0),new DataView(r.buffer,r.byteOffset,r.byteLength).setFloat64(e,t),r},y.writeFloat64LE=function(t,r,e){return void 0===r&&(r=new Uint8Array(8)),void 0===e&&(e=0),new DataView(r.buffer,r.byteOffset,r.byteLength).setFloat64(e,t,!0),r},function(t){Object.defineProperty(t,"__esModule",{value:!0});var r=o,e=y,n=s;function i(r,e){return void 0===e&&(e=t.defaultRandomSource),e.randomBytes(r)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=i,t.randomUint32=function(r){void 0===r&&(r=t.defaultRandomSource);var o=i(4,r),a=e.readUint32LE(o);return n.wipe(o),a};var a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function f(r,e,o){if(void 0===e&&(e=a),void 0===o&&(o=t.defaultRandomSource),e.length<2)throw new Error("randomString charset is too short");if(e.length>256)throw new Error("randomString charset is too long");for(var f="",s=e.length,u=256-256%s;r>0;){for(var h=i(Math.ceil(256*r/u),o),l=0;l<h.length&&r>0;l++){var v=h[l];v<u&&(f+=e.charAt(v%s),r--)}n.wipe(h)}return f}t.randomString=f,t.randomStringForEntropy=function(r,e,n){return void 0===e&&(e=a),void 0===n&&(n=t.defaultRandomSource),f(Math.ceil(r/(Math.log(e.length)/Math.LN2)),e,n)}}(n);var H={};!function(t){Object.defineProperty(t,"__esModule",{value:!0});var r=y,e=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(){e.wipe(this._buffer),e.wipe(this._tempHi),e.wipe(this._tempLo),this.reset()},n.prototype.update=function(r,e){if(void 0===e&&(e=r.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=e,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&e>0;)this._buffer[this._bufferLength++]=r[n++],e--;this._bufferLength===this.blockSize&&(i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(e>=this.blockSize&&(n=i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,r,n,e),e%=this.blockSize);e>0;)this._buffer[this._bufferLength++]=r[n++],e--;return this},n.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,n=this._bufferLength,o=e/536870912|0,a=e<<3,f=e%128<112?128:256;this._buffer[n]=128;for(var s=n+1;s<f-8;s++)this._buffer[s]=0;r.writeUint32BE(o,this._buffer,f-8),r.writeUint32BE(a,this._buffer,f-4),i(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,f),this._finished=!0}for(s=0;s<this.digestLength/8;s++)r.writeUint32BE(this._stateHi[s],t,8*s),r.writeUint32BE(this._stateLo[s],t,8*s+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){e.wipe(t.stateHi),e.wipe(t.stateLo),t.buffer&&e.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,e,n,i,a,f,s){for(var u,h,l,v,d,c,y,w,_=n[0],b=n[1],E=n[2],L=n[3],g=n[4],p=n[5],M=n[6],A=n[7],m=i[0],U=i[1],S=i[2],H=i[3],B=i[4],I=i[5],T=i[6],N=i[7];s>=128;){for(var F=0;F<16;F++){var G=8*F+f;t[F]=r.readUint32BE(a,G),e[F]=r.readUint32BE(a,G+4)}for(F=0;F<80;F++){var K,R,O=_,P=b,j=E,C=L,D=g,Y=p,k=M,V=m,X=U,z=S,x=H,Z=B,q=I,J=T;if(d=65535&(h=N),c=h>>>16,y=65535&(u=A),w=u>>>16,d+=65535&(h=(B>>>14|g<<18)^(B>>>18|g<<14)^(g>>>9|B<<23)),c+=h>>>16,y+=65535&(u=(g>>>14|B<<18)^(g>>>18|B<<14)^(B>>>9|g<<23)),w+=u>>>16,d+=65535&(h=B&I^~B&T),c+=h>>>16,y+=65535&(u=g&p^~g&M),w+=u>>>16,u=o[2*F],d+=65535&(h=o[2*F+1]),c+=h>>>16,y+=65535&u,w+=u>>>16,u=t[F%16],c+=(h=e[F%16])>>>16,y+=65535&u,w+=u>>>16,y+=(c+=(d+=65535&h)>>>16)>>>16,d=65535&(h=v=65535&d|c<<16),c=h>>>16,y=65535&(u=l=65535&y|(w+=y>>>16)<<16),w=u>>>16,d+=65535&(h=(m>>>28|_<<4)^(_>>>2|m<<30)^(_>>>7|m<<25)),c+=h>>>16,y+=65535&(u=(_>>>28|m<<4)^(m>>>2|_<<30)^(m>>>7|_<<25)),w+=u>>>16,c+=(h=m&U^m&S^U&S)>>>16,y+=65535&(u=_&b^_&E^b&E),w+=u>>>16,K=65535&(y+=(c+=(d+=65535&h)>>>16)>>>16)|(w+=y>>>16)<<16,R=65535&d|c<<16,d=65535&(h=x),c=h>>>16,y=65535&(u=C),w=u>>>16,c+=(h=v)>>>16,y+=65535&(u=l),w+=u>>>16,b=O,E=P,L=j,g=C=65535&(y+=(c+=(d+=65535&h)>>>16)>>>16)|(w+=y>>>16)<<16,p=D,M=Y,A=k,_=K,U=V,S=X,H=z,B=x=65535&d|c<<16,I=Z,T=q,N=J,m=R,F%16==15)for(G=0;G<16;G++)u=t[G],d=65535&(h=e[G]),c=h>>>16,y=65535&u,w=u>>>16,u=t[(G+9)%16],d+=65535&(h=e[(G+9)%16]),c+=h>>>16,y+=65535&u,w+=u>>>16,l=t[(G+1)%16],d+=65535&(h=((v=e[(G+1)%16])>>>1|l<<31)^(v>>>8|l<<24)^(v>>>7|l<<25)),c+=h>>>16,y+=65535&(u=(l>>>1|v<<31)^(l>>>8|v<<24)^l>>>7),w+=u>>>16,l=t[(G+14)%16],c+=(h=((v=e[(G+14)%16])>>>19|l<<13)^(l>>>29|v<<3)^(v>>>6|l<<26))>>>16,y+=65535&(u=(l>>>19|v<<13)^(v>>>29|l<<3)^l>>>6),w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,t[G]=65535&y|w<<16,e[G]=65535&d|c<<16}d=65535&(h=m),c=h>>>16,y=65535&(u=_),w=u>>>16,u=n[0],c+=(h=i[0])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[0]=_=65535&y|w<<16,i[0]=m=65535&d|c<<16,d=65535&(h=U),c=h>>>16,y=65535&(u=b),w=u>>>16,u=n[1],c+=(h=i[1])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[1]=b=65535&y|w<<16,i[1]=U=65535&d|c<<16,d=65535&(h=S),c=h>>>16,y=65535&(u=E),w=u>>>16,u=n[2],c+=(h=i[2])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[2]=E=65535&y|w<<16,i[2]=S=65535&d|c<<16,d=65535&(h=H),c=h>>>16,y=65535&(u=L),w=u>>>16,u=n[3],c+=(h=i[3])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[3]=L=65535&y|w<<16,i[3]=H=65535&d|c<<16,d=65535&(h=B),c=h>>>16,y=65535&(u=g),w=u>>>16,u=n[4],c+=(h=i[4])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[4]=g=65535&y|w<<16,i[4]=B=65535&d|c<<16,d=65535&(h=I),c=h>>>16,y=65535&(u=p),w=u>>>16,u=n[5],c+=(h=i[5])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[5]=p=65535&y|w<<16,i[5]=I=65535&d|c<<16,d=65535&(h=T),c=h>>>16,y=65535&(u=M),w=u>>>16,u=n[6],c+=(h=i[6])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[6]=M=65535&y|w<<16,i[6]=T=65535&d|c<<16,d=65535&(h=N),c=h>>>16,y=65535&(u=A),w=u>>>16,u=n[7],c+=(h=i[7])>>>16,y+=65535&u,w+=u>>>16,w+=(y+=(c+=(d+=65535&h)>>>16)>>>16)>>>16,n[7]=A=65535&y|w<<16,i[7]=N=65535&d|c<<16,f+=128,s-=128}return f}t.hash=function(t){var r=new n;r.update(t);var e=r.digest();return r.clean(),e}}(H),function(t){Object.defineProperty(t,"__esModule",{value:!0});var r=n,e=H,o=s;function i(t){var r=new Float64Array(16);if(t)for(var e=0;e<t.length;e++)r[e]=t[e];return r}t.SIGNATURE_LENGTH=64,t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=64,t.SEED_LENGTH=32,new Uint8Array(32)[0]=9;var 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]),v=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 c(t,r){for(var e=0;e<16;e++)t[e]=0|r[e]}function y(t){for(var r=1,e=0;e<16;e++){var n=t[e]+r+65535;r=Math.floor(n/65536),t[e]=n-65536*r}t[0]+=r-1+37*(r-1)}function w(t,r,e){for(var n=~(e-1),o=0;o<16;o++){var i=n&(t[o]^r[o]);t[o]^=i,r[o]^=i}}function _(t,r){for(var e=i(),n=i(),o=0;o<16;o++)n[o]=r[o];y(n),y(n),y(n);for(var a=0;a<2;a++){e[0]=n[0]-65517;for(o=1;o<15;o++)e[o]=n[o]-65535-(e[o-1]>>16&1),e[o-1]&=65535;e[15]=n[15]-32767-(e[14]>>16&1);var f=e[15]>>16&1;e[14]&=65535,w(n,e,1-f)}for(o=0;o<16;o++)t[2*o]=255&n[o],t[2*o+1]=n[o]>>8}function b(t,r){for(var e=0,n=0;n<32;n++)e|=t[n]^r[n];return(1&e-1>>>8)-1}function E(t,r){var e=new Uint8Array(32),n=new Uint8Array(32);return _(e,t),_(n,r),b(e,n)}function L(t){var r=new Uint8Array(32);return _(r,t),1&r[0]}function g(t,r,e){for(var n=0;n<16;n++)t[n]=r[n]+e[n]}function p(t,r,e){for(var n=0;n<16;n++)t[n]=r[n]-e[n]}function M(t,r,e){var n,o,i=0,a=0,f=0,s=0,u=0,h=0,l=0,v=0,d=0,c=0,y=0,w=0,_=0,b=0,E=0,L=0,g=0,p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l+=38*(S+=n*k),v+=38*(H+=n*V),d+=38*(B+=n*X),c+=38*(I+=n*z),y+=38*(T+=n*x),w+=38*(N+=n*Z),_+=38*(F+=n*q),b+=38*(G+=n*J),E+=38*(K+=n*Q),i=(n=(i+=38*(g+=n*O))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),v=(n=v+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),y=(n=y+o+65535)-65536*(o=Math.floor(n/65536)),w=(n=w+o+65535)-65536*(o=Math.floor(n/65536)),_=(n=_+o+65535)-65536*(o=Math.floor(n/65536)),b=(n=b+o+65535)-65536*(o=Math.floor(n/65536)),E=(n=E+o+65535)-65536*(o=Math.floor(n/65536)),L=(n=L+o+65535)-65536*(o=Math.floor(n/65536)),i=(n=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),v=(n=v+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),y=(n=y+o+65535)-65536*(o=Math.floor(n/65536)),w=(n=w+o+65535)-65536*(o=Math.floor(n/65536)),_=(n=_+o+65535)-65536*(o=Math.floor(n/65536)),b=(n=b+o+65535)-65536*(o=Math.floor(n/65536)),E=(n=E+o+65535)-65536*(o=Math.floor(n/65536)),L=(n=L+o+65535)-65536*(o=Math.floor(n/65536)),i+=o-1+37*(o-1),t[0]=i,t[1]=a,t[2]=f,t[3]=s,t[4]=u,t[5]=h,t[6]=l,t[7]=v,t[8]=d,t[9]=c,t[10]=y,t[11]=w,t[12]=_,t[13]=b,t[14]=E,t[15]=L}function A(t,r){M(t,r,r)}function m(t,r){var e,n=i();for(e=0;e<16;e++)n[e]=r[e];for(e=253;e>=0;e--)A(n,n),2!==e&&4!==e&&M(n,n,r);for(e=0;e<16;e++)t[e]=n[e]}function U(t,r){var e=i(),n=i(),o=i(),a=i(),f=i(),s=i(),u=i(),l=i(),v=i();p(e,t[1],t[0]),p(v,r[1],r[0]),M(e,e,v),g(n,t[0],t[1]),g(v,r[0],r[1]),M(n,n,v),M(o,t[3],r[3]),M(o,o,h),M(a,t[2],r[2]),g(a,a,a),p(f,n,e),p(s,a,o),g(u,a,o),g(l,n,e),M(t[0],f,s),M(t[1],l,u),M(t[2],u,s),M(t[3],f,l)}function S(t,r,e){for(var n=0;n<4;n++)w(t[n],r[n],e)}function B(t,r){var e=i(),n=i(),o=i();m(o,r[2]),M(e,r[0],o),M(n,r[1],o),_(t,n),t[31]^=L(e)<<7}function I(t,r,e){c(t[0],a),c(t[1],f),c(t[2],f),c(t[3],a);for(var n=255;n>=0;--n){var o=e[n/8|0]>>(7&n)&1;S(t,r,o),U(r,t),U(t,t),S(t,r,o)}}function T(t,r){var e=[i(),i(),i(),i()];c(e[0],l),c(e[1],v),c(e[2],f),M(e[3],l,v),I(t,e,r)}function N(r){if(r.length!==t.SEED_LENGTH)throw new Error("ed25519: seed must be "+t.SEED_LENGTH+" bytes");var n=e.hash(r);n[0]&=248,n[31]&=127,n[31]|=64;var o=new Uint8Array(32),a=[i(),i(),i(),i()];T(a,n),B(o,a);var f=new Uint8Array(64);return f.set(r),f.set(o,32),{publicKey:o,secretKey:f}}t.generateKeyPairFromSeed=N,t.generateKeyPair=function(t){var e=r.randomBytes(32,t),n=N(e);return o.wipe(e),n},t.extractPublicKeyFromSecretKey=function(r){if(r.length!==t.SECRET_KEY_LENGTH)throw new Error("ed25519: secret key must be "+t.SECRET_KEY_LENGTH+" bytes");return new Uint8Array(r.subarray(32))};var F=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 G(t,r){var e,n,o,i;for(n=63;n>=32;--n){for(e=0,o=n-32,i=n-12;o<i;++o)r[o]+=e-16*r[n]*F[o-(n-32)],e=Math.floor((r[o]+128)/256),r[o]-=256*e;r[o]+=e,r[n]=0}for(e=0,o=0;o<32;o++)r[o]+=e-(r[31]>>4)*F[o],e=r[o]>>8,r[o]&=255;for(o=0;o<32;o++)r[o]-=e*F[o];for(n=0;n<32;n++)r[n+1]+=r[n]>>8,t[n]=255&r[n]}function K(t){for(var r=new Float64Array(64),e=0;e<64;e++)r[e]=t[e];for(e=0;e<64;e++)t[e]=0;G(t,r)}function R(t,r){var e=i(),n=i(),o=i(),s=i(),h=i(),l=i(),v=i();return c(t[2],f),function(t,r){for(var e=0;e<16;e++)t[e]=r[2*e]+(r[2*e+1]<<8);t[15]&=32767}(t[1],r),A(o,t[1]),M(s,o,u),p(o,o,t[2]),g(s,t[2],s),A(h,s),A(l,h),M(v,l,h),M(e,v,o),M(e,e,s),function(t,r){var e,n=i();for(e=0;e<16;e++)n[e]=r[e];for(e=250;e>=0;e--)A(n,n),1!==e&&M(n,n,r);for(e=0;e<16;e++)t[e]=n[e]}(e,e),M(e,e,o),M(e,e,s),M(e,e,s),M(t[0],e,s),A(n,t[0]),M(n,n,s),E(n,o)&&M(t[0],t[0],d),A(n,t[0]),M(n,n,s),E(n,o)?-1:(L(t[0])===r[31]>>7&&p(t[0],a,t[0]),M(t[3],t[0],t[1]),0)}t.sign=function(t,r){var n=new Float64Array(64),o=[i(),i(),i(),i()],a=e.hash(t.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;var f=new Uint8Array(64);f.set(a.subarray(32),32);var s=new e.SHA512;s.update(f.subarray(32)),s.update(r);var u=s.digest();s.clean(),K(u),T(o,u),B(f,o),s.reset(),s.update(f.subarray(0,32)),s.update(t.subarray(32)),s.update(r);var h=s.digest();K(h);for(var l=0;l<32;l++)n[l]=u[l];for(l=0;l<32;l++)for(var v=0;v<32;v++)n[l+v]+=h[l]*a[v];return G(f.subarray(32),n),f},t.verify=function(r,n,o){var a=new Uint8Array(32),f=[i(),i(),i(),i()],s=[i(),i(),i(),i()];if(o.length!==t.SIGNATURE_LENGTH)throw new Error("ed25519: signature must be "+t.SIGNATURE_LENGTH+" bytes");if(R(s,r))return!1;var u=new e.SHA512;u.update(o.subarray(0,32)),u.update(r),u.update(n);var h=u.digest();return K(h),I(f,s,h),T(s,o.subarray(32)),U(f,s),B(a,f),!b(o,a)},t.convertPublicKeyToX25519=function(t){var r=[i(),i(),i(),i()];if(R(r,t))throw new Error("Ed25519: invalid public key");var e=i(),n=i(),o=r[1];g(e,f,o),p(n,f,o),m(n,n),M(e,e,n);var a=new Uint8Array(32);return _(a,e),a},t.convertSecretKeyToX25519=function(t){var r=e.hash(t.subarray(0,32));r[0]&=248,r[31]&=127,r[31]|=64;var n=new Uint8Array(r.subarray(0,32));return o.wipe(r),n}}(e);var B={};!function(t){Object.defineProperty(t,"__esModule",{value:!0});var r=n,e=s;function o(t){var r=new Float64Array(16);if(t)for(var e=0;e<t.length;e++)r[e]=t[e];return r}t.PUBLIC_KEY_LENGTH=32,t.SECRET_KEY_LENGTH=32,t.SHARED_KEY_LENGTH=32;var i=new Uint8Array(32);i[0]=9;var a=o([56129,1]);function f(t){for(var r=1,e=0;e<16;e++){var n=t[e]+r+65535;r=Math.floor(n/65536),t[e]=n-65536*r}t[0]+=r-1+37*(r-1)}function u(t,r,e){for(var n=~(e-1),o=0;o<16;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=r[14])*R,L+=n*O,g+=n*P,p+=n*j,M+=n*C,A+=n*D,m+=n*Y,U+=n*k,S+=n*V,H+=n*X,B+=n*z,I+=n*x,T+=n*Z,N+=n*q,F+=n*J,G+=n*Q,L+=(n=r[15])*R,a+=38*(p+=n*P),f+=38*(M+=n*j),s+=38*(A+=n*C),u+=38*(m+=n*D),h+=38*(U+=n*Y),l+=38*(S+=n*k),v+=38*(H+=n*V),d+=38*(B+=n*X),c+=38*(I+=n*z),y+=38*(T+=n*x),w+=38*(N+=n*Z),_+=38*(F+=n*q),b+=38*(G+=n*J),E+=38*(K+=n*Q),i=(n=(i+=38*(g+=n*O))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),v=(n=v+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),y=(n=y+o+65535)-65536*(o=Math.floor(n/65536)),w=(n=w+o+65535)-65536*(o=Math.floor(n/65536)),_=(n=_+o+65535)-65536*(o=Math.floor(n/65536)),b=(n=b+o+65535)-65536*(o=Math.floor(n/65536)),E=(n=E+o+65535)-65536*(o=Math.floor(n/65536)),L=(n=L+o+65535)-65536*(o=Math.floor(n/65536)),i=(n=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),v=(n=v+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),y=(n=y+o+65535)-65536*(o=Math.floor(n/65536)),w=(n=w+o+65535)-65536*(o=Math.floor(n/65536)),_=(n=_+o+65535)-65536*(o=Math.floor(n/65536)),b=(n=b+o+65535)-65536*(o=Math.floor(n/65536)),E=(n=E+o+65535)-65536*(o=Math.floor(n/65536)),L=(n=L+o+65535)-65536*(o=Math.floor(n/65536)),i+=o-1+37*(o-1),t[0]=i,t[1]=a,t[2]=f,t[3]=s,t[4]=u,t[5]=h,t[6]=l,t[7]=v,t[8]=d,t[9]=c,t[10]=y,t[11]=w,t[12]=_,t[13]=b,t[14]=E,t[15]=L}function d(t,r){v(t,r,r)}function c(t,r){for(var e=new Uint8Array(32),n=new Float64Array(80),i=o(),s=o(),c=o(),y=o(),w=o(),_=o(),b=0;b<31;b++)e[b]=t[b];e[31]=127&t[31]|64,e[0]&=248,function(t,r){for(var e=0;e<16;e++)t[e]=r[2*e]+(r[2*e+1]<<8);t[15]&=32767}(n,r);for(b=0;b<16;b++)s[b]=n[b];i[0]=y[0]=1;for(b=254;b>=0;--b){var E=e[b>>>3]>>>(7&b)&1;u(i,s,E),u(c,y,E),h(w,i,c),l(i,i,c),h(c,s,y),l(s,s,y),d(y,w),d(_,i),v(i,c,i),v(c,s,w),h(w,i,c),l(i,i,c),d(s,i),l(c,y,_),v(i,c,a),h(i,i,y),v(c,c,i),v(i,y,_),v(y,s,n),d(s,w),u(i,s,E),u(c,y,E)}for(b=0;b<16;b++)n[b+16]=i[b],n[b+32]=c[b],n[b+48]=s[b],n[b+64]=y[b];var L=n.subarray(32),g=n.subarray(16);!function(t,r){for(var e=o(),n=0;n<16;n++)e[n]=r[n];for(n=253;n>=0;n--)d(e,e),2!==n&&4!==n&&v(e,e,r);for(n=0;n<16;n++)t[n]=e[n]}(L,L),v(g,g,L);var p=new Uint8Array(32);return function(t,r){for(var e=o(),n=o(),i=0;i<16;i++)n[i]=r[i];f(n),f(n),f(n);for(var a=0;a<2;a++){for(e[0]=n[0]-65517,i=1;i<15;i++)e[i]=n[i]-65535-(e[i-1]>>16&1),e[i-1]&=65535;e[15]=n[15]-32767-(e[14]>>16&1);var s=e[15]>>16&1;e[14]&=65535,u(n,e,1-s)}for(i=0;i<16;i++)t[2*i]=255&n[i],t[2*i+1]=n[i]>>8}(p,g),p}function y(t){return c(t,i)}function w(r){if(r.length!==t.SECRET_KEY_LENGTH)throw new Error("x25519: seed must be "+t.SECRET_KEY_LENGTH+" bytes");var e=new Uint8Array(r);return{publicKey:y(e),secretKey:e}}t.scalarMult=c,t.scalarMultBase=y,t.generateKeyPairFromSeed=w,t.generateKeyPair=function(t){var n=r.randomBytes(32,t),o=w(n);return e.wipe(n),o},t.sharedKey=function(r,e,n){if(void 0===n&&(n=!1),r.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(e.length!==t.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");var o=c(r,e);if(n){for(var i=0,a=0;a<o.length;a++)i|=o[a];if(0===i)throw new Error("X25519: invalid shared key")}return o}}(B);export{e,B as x};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockcerts/blockcerts-verifier",
3
- "version": "1.57.4",
3
+ "version": "1.58.0",
4
4
  "description": "A standalone universal viewer and verifier for blockcerts credentials",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,9 +29,9 @@
29
29
  "xss": "^1.0.3"
30
30
  },
31
31
  "devDependencies": {
32
- "@commitlint/cli": "^17.1.2",
32
+ "@commitlint/cli": "^18.4.3",
33
33
  "@commitlint/config-conventional": "^17.2.0",
34
- "@open-wc/testing": "^3.2.0",
34
+ "@open-wc/testing": "^4.0.0",
35
35
  "@open-wc/testing-karma": "^4.0.9",
36
36
  "@rollup/plugin-commonjs": "^25.0.2",
37
37
  "@rollup/plugin-node-resolve": "^15.1.0",
@@ -63,7 +63,7 @@
63
63
  "karma-firefox-launcher": "^2.0.0",
64
64
  "pwa-helpers": "^0.8.2",
65
65
  "rimraf": "^5.0.5",
66
- "rollup": "^3.25.3",
66
+ "rollup": "^4.6.1",
67
67
  "rollup-plugin-livereload": "^2.0.0",
68
68
  "rollup-plugin-serve": "^2.0.2",
69
69
  "rollup-plugin-visualizer": "^5.9.2",
File without changes