@blockcerts/blockcerts-verifier 1.59.2 → 1.60.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 (28) hide show
  1. package/bundle-stats.html +1 -1
  2. package/dist/{EcdsaSecp256k1Signature2019-XwuS-fWx-7dFfMy74.js → EcdsaSecp256k1Signature2019-JXyaAxSS-p7r9wTPV.js} +2 -2
  3. package/dist/{Ed25519Signature2020-IJ4ybcbU--hEL5-Pa.js → Ed25519Signature2020-PVto7akI-7D-o4uG8.js} +4 -4
  4. package/dist/{MerkleProof2017-Ub6_JUVj-x8awkeml.js → MerkleProof2017-v-cug_ka-8h-1uHue.js} +1 -1
  5. package/dist/MerkleProof2019-IxLr0Lr4-exvrsGAt.js +3 -0
  6. package/dist/checkRevocationStatusList2021-NUr7Ungd-8lPXcMzr.js +13 -0
  7. package/dist/controlVerificationMethod-Ai0yOkQs-GCeqYaBn.js +1 -0
  8. package/dist/{did-key-common.esm-Fyh_U6fK-cOLlHenk.js → did-key-common.esm-2wmtjYcU-BR_8p3eV.js} +3 -3
  9. package/dist/{did-key-ed25519.esm-1lIlZtof-Grj-JpU9.js → did-key-ed25519.esm-NX9dX9Vr-fZElVDYL.js} +1 -1
  10. package/dist/{did-key-secp256k1.esm-hA8kGTM0-G8ct6CwH.js → did-key-secp256k1.esm-FBi5sg1U-hK5l_sjP.js} +1 -1
  11. package/dist/{downloadPDF--IVgfc2I.js → downloadPDF-nmBhJVDh.js} +3 -3
  12. package/dist/{ensureNotRevoked-2QGGtBqy-t8Yk4QI-.js → ensureNotRevoked--X9grgJr-l9FjOXvf.js} +1 -1
  13. package/dist/{index-MC635rre-_DW5MUyk.js → index-o5NaLUcd-9ST97EHw.js} +2 -2
  14. package/dist/{index.es-dEKcVerc.js → index.es-wVskPDvK.js} +1 -1
  15. package/dist/{jsonld-signatures-ooFWZVS--ThP8ltUY.js → jsonld-signatures-mX3uMDo8-kWFWdwsD.js} +3 -3
  16. package/dist/main.js +122 -122
  17. package/dist/{purify-GC91XaSq.js → purify-W53PnvWj.js} +1 -1
  18. package/package.json +4 -4
  19. package/dist/MerkleProof2019-QUwyEIHd-iYt21yPG.js +0 -3
  20. package/dist/checkRevocationStatusList2021-d1qO1xnj-DH6pO-9Q.js +0 -13
  21. package/dist/controlVerificationMethod-6GJtYmqY-Ivo3O8nb.js +0 -1
  22. /package/dist/{HashlinkVerifier-wyKYZ83G-bzhltPG4.js → HashlinkVerifier-qOLUtyR6-bzhltPG4.js} +0 -0
  23. /package/dist/{elliptic-il_lPAr--VPyWJbY1.js → elliptic-xyZmv-oA-VPyWJbY1.js} +0 -0
  24. /package/dist/{ensureValidIssuingKey-zZEv5-cH-UoJe_Wnf.js → ensureValidIssuingKey-U4G_F_Hm-UoJe_Wnf.js} +0 -0
  25. /package/dist/{index-xsnp_Fid-o1HUYRUQ.js → index-aBVDu34R-o1HUYRUQ.js} +0 -0
  26. /package/dist/{jsonld-CXlzLf4P-ioHKtwiZ.js → jsonld-SAOezr4P-ioHKtwiZ.js} +0 -0
  27. /package/dist/{sha256-wKeS8_4l-9eo2gOQb.js → sha256-lGrd_b3t-9eo2gOQb.js} +0 -0
  28. /package/dist/{x25519-NtRELWAG-2RynHlmX.js → x25519-X8M7VOup-2RynHlmX.js} +0 -0
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- var e="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},t="URLSearchParams"in e,i="Symbol"in e&&"iterator"in Symbol,r="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),n="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}}))}function f(e){var t=new FileReader,i=h(t);return t.readAsArrayBuffer(e),i}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var i;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&r&&((i=e)&&DataView.prototype.isPrototypeOf(i))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=p(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(r)return this.blob().then(f);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,r,n,o=p(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=h(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),n=r?r[1]:"utf-8",t.readAsText(e,n),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),r=0;r<t.length;r++)i[r]=String.fromCharCode(t[r]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=u(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=u(t)},d.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,i){e.push(i)})),l(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,i){e.push([i,t])})),l(e)},i&&(d.prototype[Symbol.iterator]=d.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(t,i){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r=(i=i||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,i.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=i.credentials||this.credentials||"same-origin",!i.headers&&this.headers||(this.headers=new d(i.headers)),this.method=function(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}(i.method||this.method||"GET"),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal||function(){if("AbortController"in e)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==i.cache&&"no-cache"!==i.cache)){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var i=e.split("="),r=i.shift().replace(/\+/g," "),n=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}})),t}function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},b.call(v.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var x=[301,302,303,307,308];w.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})};var k=e.DOMException;try{new k}catch(e){k=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack},k.prototype=Object.create(Error.prototype),k.prototype.constructor=k}function _(t,i){return new Promise((function(n,a){var s=new v(t,i);if(s.signal&&s.signal.aborted)return a(new k("Aborted","AbortError"));var l=new XMLHttpRequest;function p(){l.abort()}if(l.onload=function(){var e,t,i={statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var i=e.split(":"),r=i.shift().trim();if(r){var n=i.join(":").trim();try{t.append(r,n)}catch(e){console.warn("Response "+e.message)}}})),t)};s.url.startsWith("file://")&&(l.status<200||l.status>599)?i.status=200:i.status=l.status,i.url="responseURL"in l?l.responseURL:i.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;setTimeout((function(){n(new w(r,i))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},l.onabort=function(){setTimeout((function(){a(new k("Aborted","AbortError"))}),0)},l.open(s.method,function(t){try{return""===t&&e.location.href?e.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(r?l.responseType="blob":o&&(l.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof d||e.Headers&&i.headers instanceof e.Headers)){var h=[];Object.getOwnPropertyNames(i.headers).forEach((function(e){h.push(c(e)),l.setRequestHeader(e,u(i.headers[e]))})),s.headers.forEach((function(e,t){-1===h.indexOf(t)&&l.setRequestHeader(t,e)}))}else s.headers.forEach((function(e,t){l.setRequestHeader(t,e)}));s.signal&&(s.signal.addEventListener("abort",p),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",p)}),l.send(void 0===s._bodyInit?null:s._bodyInit)}))}_.polyfill=!0,e.fetch||(e.fetch=_,e.Headers=d,e.Request=v,e.Response=w),Uint8Array.prototype.fill||(Uint8Array.prototype.fill=function(e){if(null==this)throw new TypeError("this is null or not defined");const t=Object(this),i=t.length>>>0,r=arguments[1]>>0;let n=r<0?Math.max(i+r,0):Math.min(r,i);const o=arguments[2],a=void 0===o?i:o>>0,s=a<0?Math.max(i+a,0):Math.min(a,i);for(;n<s;)t[n]=e,n++;return t})
1
+ var e="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},t="URLSearchParams"in e,i="Symbol"in e&&"iterator"in Symbol,r="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),n="FormData"in e,o="ArrayBuffer"in e;if(o)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}}))}function f(e){var t=new FileReader,i=h(t);return t.readAsArrayBuffer(e),i}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var i;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&r&&((i=e)&&DataView.prototype.isPrototypeOf(i))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=p(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(r)return this.blob().then(f);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,r,n,o=p(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=h(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),n=r?r[1]:"utf-8",t.readAsText(e,n),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),r=0;r<t.length;r++)i[r]=String.fromCharCode(t[r]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=u(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=u(t)},d.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,i){e.push(i)})),l(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,i){e.push([i,t])})),l(e)},i&&(d.prototype[Symbol.iterator]=d.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(t,i){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r=(i=i||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,i.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=i.credentials||this.credentials||"same-origin",!i.headers&&this.headers||(this.headers=new d(i.headers)),this.method=function(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}(i.method||this.method||"GET"),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal||function(){if("AbortController"in e)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==i.cache&&"no-cache"!==i.cache)){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var i=e.split("="),r=i.shift().replace(/\+/g," "),n=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}})),t}function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},b.call(v.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var x=[301,302,303,307,308];w.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})};var k=e.DOMException;try{new k}catch(e){k=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack},k.prototype=Object.create(Error.prototype),k.prototype.constructor=k}function _(t,i){return new Promise((function(n,s){var a=new v(t,i);if(a.signal&&a.signal.aborted)return s(new k("Aborted","AbortError"));var l=new XMLHttpRequest;function p(){l.abort()}if(l.onload=function(){var e,t,i={statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var i=e.split(":"),r=i.shift().trim();if(r){var n=i.join(":").trim();try{t.append(r,n)}catch(e){console.warn("Response "+e.message)}}})),t)};a.url.startsWith("file://")&&(l.status<200||l.status>599)?i.status=200:i.status=l.status,i.url="responseURL"in l?l.responseURL:i.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;setTimeout((function(){n(new w(r,i))}),0)},l.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request timed out"))}),0)},l.onabort=function(){setTimeout((function(){s(new k("Aborted","AbortError"))}),0)},l.open(a.method,function(t){try{return""===t&&e.location.href?e.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&(r?l.responseType="blob":o&&(l.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof d||e.Headers&&i.headers instanceof e.Headers)){var h=[];Object.getOwnPropertyNames(i.headers).forEach((function(e){h.push(c(e)),l.setRequestHeader(e,u(i.headers[e]))})),a.headers.forEach((function(e,t){-1===h.indexOf(t)&&l.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){l.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",p),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",p)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}_.polyfill=!0,e.fetch||(e.fetch=_,e.Headers=d,e.Request=v,e.Response=w),Uint8Array.prototype.fill||(Uint8Array.prototype.fill=function(e){if(null==this)throw new TypeError("this is null or not defined");const t=Object(this),i=t.length>>>0,r=arguments[1]>>0;let n=r<0?Math.max(i+r,0):Math.min(r,i);const o=arguments[2],s=void 0===o?i:o>>0,a=s<0?Math.max(i+s,0):Math.min(s,i);for(;n<a;)t[n]=e,n++;return t})
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -17,7 +17,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
17
17
  Code distributed by Google as part of the polymer project is also
18
18
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
19
19
  */
20
- let C=0;const A=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let i=C++;return function(r){let n=r.__mixinSet;if(n&&n[i])return r;let o=t,a=o.get(r);if(!a){a=e(r),o.set(r,a);let t=Object.create(a.__mixinSet||n||null);t[i]=!0,a.__mixinSet=t}return a}};
20
+ let C=0;const A=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let i=C++;return function(r){let n=r.__mixinSet;if(n&&n[i])return r;let o=t,s=o.get(r);if(!s){s=e(r),o.set(r,s);let t=Object.create(s.__mixinSet||n||null);t[i]=!0,s.__mixinSet=t}return s}};
21
21
  /**
22
22
  @license
23
23
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -36,7 +36,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
36
36
  Code distributed by Google as part of the polymer project is also
37
37
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
38
38
  */
39
- let E=0,S=0,P=[],I=0,T=!1,L=document.createTextNode("");new window.MutationObserver((function(){T=!1;const e=P.length;for(let t=0;t<e;t++){let e=P[t];if(e)try{e()}catch(e){setTimeout((()=>{throw e}))}}P.splice(0,e),S+=e})).observe(L,{characterData:!0});const D={run:e=>(T||(T=!0,L.textContent=I++),P.push(e),E++),cancel(e){const t=e-S;if(t>=0){if(!P[t])throw new Error("invalid async handle: "+e);P[t]=null}}},M=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e,R=D,O=A((e=>class extends e{static createProperties(e){const t=this.prototype;for(let i in e)i in t||t._createPropertyAccessor(i)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(e,t){Object.defineProperty(this,e,{get(){return this.__data[e]},set:t?function(){}:function(t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,i){let r=this.__data[e],n=this._shouldPropertyChange(e,t,r);return n&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(e in this.__dataOld)&&(this.__dataOld[e]=r),this.__data[e]=t,this.__dataPending[e]=t),n}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,R.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const e=this.__data,t=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(e,t,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,i)),this.__dataCounter--}_shouldPropertiesChange(e,t,i){return Boolean(t)}_propertiesChanged(e,t,i){}_shouldPropertyChange(e,t,i){return i!==t&&(i==i||t==t)}attributeChangedCallback(e,t,i,r){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,r)}_attributeToProperty(e,t,i){if(!this.__serializing){const r=this.__dataAttributes,n=r&&r[e]||e;this[n]=this._deserializeValue(t,i||this.constructor.typeForProperty(n))}}_propertyToAttribute(e,t,i){this.__serializing=!0,i=arguments.length<3?this[e]:i,this._valueToNodeAttribute(this,i,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,i){const r=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=M(e)),void 0===r?e.removeAttribute(i):e.setAttribute(i,""===r&&window.trustedTypes?window.trustedTypes.emptyScript:r)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}));
39
+ let S=0,E=0,P=[],L=0,I=!1,T=document.createTextNode("");new window.MutationObserver((function(){I=!1;const e=P.length;for(let t=0;t<e;t++){let e=P[t];if(e)try{e()}catch(e){setTimeout((()=>{throw e}))}}P.splice(0,e),E+=e})).observe(T,{characterData:!0});const D={run:e=>(I||(I=!0,T.textContent=L++),P.push(e),S++),cancel(e){const t=e-E;if(t>=0){if(!P[t])throw new Error("invalid async handle: "+e);P[t]=null}}},M=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e,R=D,O=A((e=>class extends e{static createProperties(e){const t=this.prototype;for(let i in e)i in t||t._createPropertyAccessor(i)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(e,t){Object.defineProperty(this,e,{get(){return this.__data[e]},set:t?function(){}:function(t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,i){let r=this.__data[e],n=this._shouldPropertyChange(e,t,r);return n&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(e in this.__dataOld)&&(this.__dataOld[e]=r),this.__data[e]=t,this.__dataPending[e]=t),n}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,R.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const e=this.__data,t=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(e,t,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,i)),this.__dataCounter--}_shouldPropertiesChange(e,t,i){return Boolean(t)}_propertiesChanged(e,t,i){}_shouldPropertyChange(e,t,i){return i!==t&&(i==i||t==t)}attributeChangedCallback(e,t,i,r){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,r)}_attributeToProperty(e,t,i){if(!this.__serializing){const r=this.__dataAttributes,n=r&&r[e]||e;this[n]=this._deserializeValue(t,i||this.constructor.typeForProperty(n))}}_propertyToAttribute(e,t,i){this.__serializing=!0,i=arguments.length<3?this[e]:i,this._valueToNodeAttribute(this,i,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,i){const r=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=M(e)),void 0===r?e.removeAttribute(i):e.setAttribute(i,""===r&&window.trustedTypes?window.trustedTypes.emptyScript:r)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}));
40
40
  /**
41
41
  @license
42
42
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -68,7 +68,7 @@ function(e){const t={};for(let i in e){const r=e[i];t[i]="function"==typeof r?{t
68
68
  * Code distributed by Google as part of the polymer project is also
69
69
  * subject to an additional IP rights grant found at
70
70
  * http://polymer.github.io/PATENTS.txt
71
- */class F{constructor(e,t,i,r=Q){this.strings=e,this.values=t,this.type=i,this.partCallback=r}getHTML(){const e=this.strings.length-1;let t="",i=!0;for(let r=0;r<e;r++){const e=this.strings[r];t+=e;const n=U(e);i=n>-1?n<e.length:i,t+=i?z:N}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}const N=`{{lit-${String(Math.random()).slice(2)}}}`,z=`\x3c!--${N}--\x3e`,V=new RegExp(`${N}|${z}`),$=/[ \x09\x0a\x0c\x0d]([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=/]+)[ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*)$/;function U(e){const t=e.lastIndexOf(">");return e.indexOf("<",t+1)>-1?e.length:t}class H{constructor(e,t,i,r,n){this.type=e,this.index=t,this.name=i,this.rawName=r,this.strings=n}}const q=e=>-1!==e.index;class K{constructor(e,t){this.parts=[],this.element=t;const i=this.element.content,r=document.createTreeWalker(i,133,null,!1);let n=-1,o=0;const a=[];let s,c;for(;r.nextNode();){n++,s=c;const t=c=r.currentNode;if(1===t.nodeType){if(!t.hasAttributes())continue;const i=t.attributes;let r=0;for(let e=0;e<i.length;e++)i[e].value.indexOf(N)>=0&&r++;for(;r-- >0;){const r=e.strings[o],a=$.exec(r)[1],s=i.getNamedItem(a),c=s.value.split(V);this.parts.push(new H("attribute",n,s.name,a,c)),t.removeAttribute(s.name),o+=c.length-1}}else if(3===t.nodeType){const e=t.nodeValue;if(e.indexOf(N)<0)continue;const i=t.parentNode,r=e.split(V),s=r.length-1;o+=s;for(let e=0;e<s;e++)i.insertBefore(""===r[e]?document.createComment(""):document.createTextNode(r[e]),t),this.parts.push(new H("node",n++));i.insertBefore(""===r[s]?document.createComment(""):document.createTextNode(r[s]),t),a.push(t)}else if(8===t.nodeType&&t.nodeValue===N){const e=t.parentNode,i=t.previousSibling;null===i||i!==s||i.nodeType!==Node.TEXT_NODE?e.insertBefore(document.createComment(""),t):n--,this.parts.push(new H("node",n++)),a.push(t),null===t.nextSibling?e.insertBefore(document.createComment(""),t):n--,c=s,o++}}for(const e of a)e.parentNode.removeChild(e)}}const J=(e,t)=>G(t)?(t=t(e),Y):null===t?void 0:t,G=e=>"function"==typeof e&&!0===e.__litDirective,Y={},W=e=>null===e||!("object"==typeof e||"function"==typeof e);class Z{constructor(e,t,i,r){this.instance=e,this.element=t,this.name=i,this.strings=r,this.size=r.length-1,this._previousValues=[]}_interpolate(e,t){const i=this.strings,r=i.length-1;let n="";for(let o=0;o<r;o++){n+=i[o];const r=J(this,e[t+o]);if(r&&r!==Y&&(Array.isArray(r)||"string"!=typeof r&&r[Symbol.iterator]))for(const e of r)n+=e;else n+=r}return n+i[r]}_equalToPreviousValues(e,t){for(let i=t;i<t+this.size;i++)if(this._previousValues[i]!==e[i]||!W(e[i]))return!1;return!0}setValue(e,t){if(this._equalToPreviousValues(e,t))return;const i=this.strings;let r;2===i.length&&""===i[0]&&""===i[1]?(r=J(this,e[t]),Array.isArray(r)&&(r=r.join(""))):r=this._interpolate(e,t),r!==Y&&this.element.setAttribute(this.name,r),this._previousValues=e}}class X{constructor(e,t,i){this.instance=e,this.startNode=t,this.endNode=i,this._previousValue=void 0}setValue(e){if((e=J(this,e))!==Y)if(W(e)){if(e===this._previousValue)return;this._setText(e)}else e instanceof F?this._setTemplateResult(e):Array.isArray(e)||e[Symbol.iterator]?this._setIterable(e):e instanceof Node?this._setNode(e):void 0!==e.then?this._setPromise(e):this._setText(e)}_insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}_setNode(e){this._previousValue!==e&&(this.clear(),this._insert(e),this._previousValue=e)}_setText(e){const t=this.startNode.nextSibling;e=void 0===e?"":e,t===this.endNode.previousSibling&&t.nodeType===Node.TEXT_NODE?t.textContent=e:this._setNode(document.createTextNode(e)),this._previousValue=e}_setTemplateResult(e){const t=this.instance._getTemplate(e);let i;this._previousValue&&this._previousValue.template===t?i=this._previousValue:(i=new ee(t,this.instance._partCallback,this.instance._getTemplate),this._setNode(i._clone()),this._previousValue=i),i.update(e.values)}_setIterable(e){Array.isArray(this._previousValue)||(this.clear(),this._previousValue=[]);const t=this._previousValue;let i=0;for(const r of e){let e=t[i];if(void 0===e){let r=this.startNode;if(i>0){r=t[i-1].endNode=document.createTextNode(""),this._insert(r)}e=new X(this.instance,r,this.endNode),t.push(e)}e.setValue(r),i++}if(0===i)this.clear(),this._previousValue=void 0;else if(i<t.length){const e=t[i-1];t.length=i,this.clear(e.endNode.previousSibling),e.endNode=this.endNode}}_setPromise(e){this._previousValue=e,e.then((t=>{this._previousValue===e&&this.setValue(t)}))}clear(e=this.startNode){te(this.startNode.parentNode,e.nextSibling,this.endNode)}}const Q=(e,t,i)=>{if("attribute"===t.type)return new Z(e,i,t.name,t.strings);if("node"===t.type)return new X(e,i,i.nextSibling);throw new Error(`Unknown part type ${t.type}`)};class ee{constructor(e,t,i){this._parts=[],this.template=e,this._partCallback=t,this._getTemplate=i}update(e){let t=0;for(const i of this._parts)i?void 0===i.size?(i.setValue(e[t]),t++):(i.setValue(e,t),t+=i.size):t++}_clone(){const e=this.template.element.content.cloneNode(!0),t=this.template.parts;if(t.length>0){const i=document.createTreeWalker(e,133,null,!1);let r=-1;for(let e=0;e<t.length;e++){const n=t[e],o=q(n);if(o)for(;r<n.index;)r++,i.nextNode();this._parts.push(o?this._partCallback(this,n,i.currentNode):void 0)}}return e}}const te=(e,t,i=null)=>{let r=t;for(;r!==i;){const t=r.nextSibling;e.removeChild(r),r=t}},ie=NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT;
71
+ */class F{constructor(e,t,i,r=Q){this.strings=e,this.values=t,this.type=i,this.partCallback=r}getHTML(){const e=this.strings.length-1;let t="",i=!0;for(let r=0;r<e;r++){const e=this.strings[r];t+=e;const n=U(e);i=n>-1?n<e.length:i,t+=i?V:N}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}const N=`{{lit-${String(Math.random()).slice(2)}}}`,V=`\x3c!--${N}--\x3e`,z=new RegExp(`${N}|${V}`),$=/[ \x09\x0a\x0c\x0d]([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=/]+)[ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*)$/;function U(e){const t=e.lastIndexOf(">");return e.indexOf("<",t+1)>-1?e.length:t}class H{constructor(e,t,i,r,n){this.type=e,this.index=t,this.name=i,this.rawName=r,this.strings=n}}const q=e=>-1!==e.index;class K{constructor(e,t){this.parts=[],this.element=t;const i=this.element.content,r=document.createTreeWalker(i,133,null,!1);let n=-1,o=0;const s=[];let a,c;for(;r.nextNode();){n++,a=c;const t=c=r.currentNode;if(1===t.nodeType){if(!t.hasAttributes())continue;const i=t.attributes;let r=0;for(let e=0;e<i.length;e++)i[e].value.indexOf(N)>=0&&r++;for(;r-- >0;){const r=e.strings[o],s=$.exec(r)[1],a=i.getNamedItem(s),c=a.value.split(z);this.parts.push(new H("attribute",n,a.name,s,c)),t.removeAttribute(a.name),o+=c.length-1}}else if(3===t.nodeType){const e=t.nodeValue;if(e.indexOf(N)<0)continue;const i=t.parentNode,r=e.split(z),a=r.length-1;o+=a;for(let e=0;e<a;e++)i.insertBefore(""===r[e]?document.createComment(""):document.createTextNode(r[e]),t),this.parts.push(new H("node",n++));i.insertBefore(""===r[a]?document.createComment(""):document.createTextNode(r[a]),t),s.push(t)}else if(8===t.nodeType&&t.nodeValue===N){const e=t.parentNode,i=t.previousSibling;null===i||i!==a||i.nodeType!==Node.TEXT_NODE?e.insertBefore(document.createComment(""),t):n--,this.parts.push(new H("node",n++)),s.push(t),null===t.nextSibling?e.insertBefore(document.createComment(""),t):n--,c=a,o++}}for(const e of s)e.parentNode.removeChild(e)}}const J=(e,t)=>G(t)?(t=t(e),Y):null===t?void 0:t,G=e=>"function"==typeof e&&!0===e.__litDirective,Y={},W=e=>null===e||!("object"==typeof e||"function"==typeof e);class Z{constructor(e,t,i,r){this.instance=e,this.element=t,this.name=i,this.strings=r,this.size=r.length-1,this._previousValues=[]}_interpolate(e,t){const i=this.strings,r=i.length-1;let n="";for(let o=0;o<r;o++){n+=i[o];const r=J(this,e[t+o]);if(r&&r!==Y&&(Array.isArray(r)||"string"!=typeof r&&r[Symbol.iterator]))for(const e of r)n+=e;else n+=r}return n+i[r]}_equalToPreviousValues(e,t){for(let i=t;i<t+this.size;i++)if(this._previousValues[i]!==e[i]||!W(e[i]))return!1;return!0}setValue(e,t){if(this._equalToPreviousValues(e,t))return;const i=this.strings;let r;2===i.length&&""===i[0]&&""===i[1]?(r=J(this,e[t]),Array.isArray(r)&&(r=r.join(""))):r=this._interpolate(e,t),r!==Y&&this.element.setAttribute(this.name,r),this._previousValues=e}}class X{constructor(e,t,i){this.instance=e,this.startNode=t,this.endNode=i,this._previousValue=void 0}setValue(e){if((e=J(this,e))!==Y)if(W(e)){if(e===this._previousValue)return;this._setText(e)}else e instanceof F?this._setTemplateResult(e):Array.isArray(e)||e[Symbol.iterator]?this._setIterable(e):e instanceof Node?this._setNode(e):void 0!==e.then?this._setPromise(e):this._setText(e)}_insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}_setNode(e){this._previousValue!==e&&(this.clear(),this._insert(e),this._previousValue=e)}_setText(e){const t=this.startNode.nextSibling;e=void 0===e?"":e,t===this.endNode.previousSibling&&t.nodeType===Node.TEXT_NODE?t.textContent=e:this._setNode(document.createTextNode(e)),this._previousValue=e}_setTemplateResult(e){const t=this.instance._getTemplate(e);let i;this._previousValue&&this._previousValue.template===t?i=this._previousValue:(i=new ee(t,this.instance._partCallback,this.instance._getTemplate),this._setNode(i._clone()),this._previousValue=i),i.update(e.values)}_setIterable(e){Array.isArray(this._previousValue)||(this.clear(),this._previousValue=[]);const t=this._previousValue;let i=0;for(const r of e){let e=t[i];if(void 0===e){let r=this.startNode;if(i>0){r=t[i-1].endNode=document.createTextNode(""),this._insert(r)}e=new X(this.instance,r,this.endNode),t.push(e)}e.setValue(r),i++}if(0===i)this.clear(),this._previousValue=void 0;else if(i<t.length){const e=t[i-1];t.length=i,this.clear(e.endNode.previousSibling),e.endNode=this.endNode}}_setPromise(e){this._previousValue=e,e.then((t=>{this._previousValue===e&&this.setValue(t)}))}clear(e=this.startNode){te(this.startNode.parentNode,e.nextSibling,this.endNode)}}const Q=(e,t,i)=>{if("attribute"===t.type)return new Z(e,i,t.name,t.strings);if("node"===t.type)return new X(e,i,i.nextSibling);throw new Error(`Unknown part type ${t.type}`)};class ee{constructor(e,t,i){this._parts=[],this.template=e,this._partCallback=t,this._getTemplate=i}update(e){let t=0;for(const i of this._parts)i?void 0===i.size?(i.setValue(e[t]),t++):(i.setValue(e,t),t+=i.size):t++}_clone(){const e=this.template.element.content.cloneNode(!0),t=this.template.parts;if(t.length>0){const i=document.createTreeWalker(e,133,null,!1);let r=-1;for(let e=0;e<t.length;e++){const n=t[e],o=q(n);if(o)for(;r<n.index;)r++,i.nextNode();this._parts.push(o?this._partCallback(this,n,i.currentNode):void 0)}}return e}}const te=(e,t,i=null)=>{let r=t;for(;r!==i;){const t=r.nextSibling;e.removeChild(r),r=t}},ie=NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT;
72
72
  /**
73
73
  * @license
74
74
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -95,7 +95,7 @@ function(e){const t={};for(let i in e){const r=e[i];t[i]="function"==typeof r?{t
95
95
  * subject to an additional IP rights grant found at
96
96
  * http://polymer.github.io/PATENTS.txt
97
97
  */
98
- const oe=(e,t)=>`${e}--${t}`,ae=["html","svg"];function se(e){ae.forEach((t=>{const i=j.get(oe(t,e));void 0!==i&&i.forEach((e=>{const{element:{content:t}}=e,i=t.querySelectorAll("style");!function(e,t){const{element:{content:i},parts:r}=e,n=document.createTreeWalker(i,ie,null,!1);let o=0,a=r[0],s=-1,c=0;const u=[];let l=null;for(;n.nextNode();){s++;const e=n.currentNode;for(e.previousSibling===l&&(l=null),t.has(e)&&(u.push(e),null===l&&(l=e)),null!==l&&c++;void 0!==a&&a.index===s;)a.index=null!==l?-1:a.index-c,a=r[++o]}u.forEach((e=>e.parentNode.removeChild(e)))}(e,new Set(Array.from(i)))}))}))}const ce=new Set,ue=(e,t,i)=>{if(!ce.has(i)){ce.add(i);const r=document.createElement("template");if(Array.from(e.querySelectorAll("style")).forEach((e=>{r.content.appendChild(e)})),window.ShadyCSS.prepareTemplateStyles(r,i),se(i),window.ShadyCSS.nativeShadow){const i=r.content.querySelector("style");null!==i&&(e.insertBefore(i,e.firstChild),function(e,t,i=null){const{element:{content:r},parts:n}=e;if(null==i)return void r.appendChild(t);const o=document.createTreeWalker(r,ie,null,!1);let a=ne(n),s=0,c=-1;for(;o.nextNode();)for(c++,o.currentNode===i&&(i.parentNode.insertBefore(t,i),s=re(t));-1!==a&&n[a].index===c;){if(s>0){for(;-1!==a;)n[a].index+=s,a=ne(n,a);return}a=ne(n,a)}}(t,i.cloneNode(!0),t.element.content.firstChild))}}};function le(e,t,i){const r=(e=>t=>{const i=oe(t.type,e);let r=j.get(i);void 0===r&&(r=new Map,j.set(i,r));let n=r.get(t.strings);if(void 0===n){const i=t.getTemplateElement();"object"==typeof window.ShadyCSS&&window.ShadyCSS.prepareTemplateDom(i,e),n=new K(t,i),r.set(t.strings,n)}return n})(i),n=r(e);let o=t.__templateInstance;if(void 0!==o&&o.template===n&&o._partCallback===e.partCallback)return void o.update(e.values);o=new ee(n,e.partCallback,r),t.__templateInstance=o;const a=o._clone();o.update(e.values);const s=t instanceof ShadowRoot?t.host:void 0;void 0!==s&&"object"==typeof window.ShadyCSS&&(ue(a,n,i),window.ShadyCSS.styleElement(s)),te(t,t.firstChild),t.appendChild(a)}
98
+ const oe=(e,t)=>`${e}--${t}`,se=["html","svg"];function ae(e){se.forEach((t=>{const i=j.get(oe(t,e));void 0!==i&&i.forEach((e=>{const{element:{content:t}}=e,i=t.querySelectorAll("style");!function(e,t){const{element:{content:i},parts:r}=e,n=document.createTreeWalker(i,ie,null,!1);let o=0,s=r[0],a=-1,c=0;const u=[];let l=null;for(;n.nextNode();){a++;const e=n.currentNode;for(e.previousSibling===l&&(l=null),t.has(e)&&(u.push(e),null===l&&(l=e)),null!==l&&c++;void 0!==s&&s.index===a;)s.index=null!==l?-1:s.index-c,s=r[++o]}u.forEach((e=>e.parentNode.removeChild(e)))}(e,new Set(Array.from(i)))}))}))}const ce=new Set,ue=(e,t,i)=>{if(!ce.has(i)){ce.add(i);const r=document.createElement("template");if(Array.from(e.querySelectorAll("style")).forEach((e=>{r.content.appendChild(e)})),window.ShadyCSS.prepareTemplateStyles(r,i),ae(i),window.ShadyCSS.nativeShadow){const i=r.content.querySelector("style");null!==i&&(e.insertBefore(i,e.firstChild),function(e,t,i=null){const{element:{content:r},parts:n}=e;if(null==i)return void r.appendChild(t);const o=document.createTreeWalker(r,ie,null,!1);let s=ne(n),a=0,c=-1;for(;o.nextNode();)for(c++,o.currentNode===i&&(i.parentNode.insertBefore(t,i),a=re(t));-1!==s&&n[s].index===c;){if(a>0){for(;-1!==s;)n[s].index+=a,s=ne(n,s);return}s=ne(n,s)}}(t,i.cloneNode(!0),t.element.content.firstChild))}}};function le(e,t,i){const r=(e=>t=>{const i=oe(t.type,e);let r=j.get(i);void 0===r&&(r=new Map,j.set(i,r));let n=r.get(t.strings);if(void 0===n){const i=t.getTemplateElement();"object"==typeof window.ShadyCSS&&window.ShadyCSS.prepareTemplateDom(i,e),n=new K(t,i),r.set(t.strings,n)}return n})(i),n=r(e);let o=t.__templateInstance;if(void 0!==o&&o.template===n&&o._partCallback===e.partCallback)return void o.update(e.values);o=new ee(n,e.partCallback,r),t.__templateInstance=o;const s=o._clone();o.update(e.values);const a=t instanceof ShadowRoot?t.host:void 0;void 0!==a&&"object"==typeof window.ShadyCSS&&(ue(s,n,i),window.ShadyCSS.styleElement(a)),te(t,t.firstChild),t.appendChild(s)}
99
99
  /**
100
100
  * @license
101
101
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -117,67 +117,67 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
117
117
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
118
118
  Code distributed by Google as part of the polymer project is also
119
119
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
120
- */const me=e=>t=>class extends t{connectedCallback(){this.__storeUnsubscribe=e.subscribe((()=>this._stateChanged(e.getState()))),this._stateChanged(e.getState()),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){this.__storeUnsubscribe(),super.disconnectedCallback&&super.disconnectedCallback()}_stateChanged(e){throw new Error("_stateChanged() not implemented")}};function ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ye=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),we=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${we()}`,REPLACE:`@@redux/REPLACE${we()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${we()}`};function ke(e,t,i){if("function"!=typeof e)throw new Error(ve(2));if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ve(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ve(1));return i(ke)(e,t)}let r=e,n=t,o=new Map,a=o,s=0,c=!1;function u(){a===o&&(a=new Map,o.forEach(((e,t)=>{a.set(t,e)})))}function l(){if(c)throw new Error(ve(3));return n}function d(e){if("function"!=typeof e)throw new Error(ve(4));if(c)throw new Error(ve(5));let t=!0;u();const i=s++;return a.set(i,e),function(){if(t){if(c)throw new Error(ve(6));t=!1,u(),a.delete(i),o=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(ve(7));if(void 0===e.type)throw new Error(ve(8));if("string"!=typeof e.type)throw new Error(ve(17));if(c)throw new Error(ve(9));try{c=!0,n=r(n,e)}finally{c=!1}return(o=a).forEach((e=>{e()})),e}p({type:xe.INIT});return{dispatch:p,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ve(10));r=e,p({type:xe.REPLACE})},[ye]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ve(11));function i(){const e=t;e.next&&e.next(l())}i();return{unsubscribe:e(i)}},[ye](){return this}}}}}function _e(e,t){return function(...i){return t(e.apply(this,i))}}function Ce(e){return function(t){var i=t.dispatch,r=t.getState;return function(t){return function(n){return"function"==typeof n?n(i,r,e):t(n)}}}}var Ae=Ce();Ae.withExtraArgument=Ce;var Ee=Ae;function Se(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Pe(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}Se((function e(t,i,r){e.super_.call(this,"E",t),Object.defineProperty(this,"lhs",{value:i,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}),Pe),Se((function e(t,i){e.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:i,enumerable:!0})}),Pe),Se((function e(t,i){e.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:i,enumerable:!0})}),Pe),Se((function e(t,i,r){e.super_.call(this,"A",t),Object.defineProperty(this,"index",{value:i,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}),Pe);const Ie="AUTO_VERIFY",Te="INITIALIZE",Le="UPDATE_CERTIFICATE_DEFINITION",De="RESET_CERTIFICATE_DEFINITION",Me="UPDATE_CERTIFICATE_URL",Re="VERIFY_CERTIFICATE",Oe="VALIDATE_URL_INPUT",Be="CLEAR_VERIFIED_STEPS",je="STEP_VERIFIED",Fe="UPDATE_PARENT_STEP_STATUS",Ne="UPDATE_VERIFICATION_STATUS",ze="UPDATE_FINAL_STEP",Ve="RESET_VERIFICATION_STATUS",$e="SET_ERROR_MESSAGE",Ue="SHOW_VERIFICATION_MODAL",He="UPDATE_IS_GENERATING_PDF";const qe={get:(e,t)=>{const i=t in e?e[t]:null;return i||console.warn("the service does not exist",t),i}};var Ke;!function(e){e.TEXT_HTML="text/html",e.IMAGE_PNG="image/png",e.IMAGE_JPEG="image/jpeg",e.IMAGE_GIF="image/gif",e.IMAGE_BMP="image/bmp",e.APPLICATION_PDF="application/pdf"}(Ke||(Ke={}));const Je=["text","image","signature","variable"];function Ge(e){const t=(new DOMParser).parseFromString(e,Ke.TEXT_HTML);return t.body.childElementCount===t.body.querySelectorAll(Je.map((e=>`section[class*="${e}"]`)).join(", ")).length}const Ye="?format=json";function We(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function Ze(e){return"string"==typeof e}var Xe;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(Xe||(Xe={}));const Qe="{transaction_id}";var et;!function(e){e.V1_1="1.1",e.V1_2="1.2",e.V2_0="2.0",e.V3_0_alpha="3.0-alpha",e.V3_0_beta="3.0-beta",e.V3_0="3.0"}(et||(et={}));var tt,it=et;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(tt||(tt={}));const rt="{transaction_id}";var nt,ot;!function(e){e.Bitcoin="bitcoin",e.Ethmain="ethmain",e.Ethropst="ethropst",e.Ethrinkeby="ethrinkeby",e.Ethgoerli="ethgoerli",e.Ethsepolia="ethsepolia",e.Mocknet="mocknet",e.Regtest="regtest",e.Testnet="testnet"}(nt||(nt={})),function(e){e.btc="btc",e.eth="eth",e.mocknet="mocknet"}(ot||(ot={}));const at={[nt.Bitcoin]:{code:nt.Bitcoin,blinkCode:ot.btc,name:"Bitcoin",prefixes:["6a20","OP_RETURN "],signatureValue:"bitcoinMainnet",transactionTemplates:{full:`https://blockchain.info/tx/${rt}`,raw:`https://blockchain.info/rawtx/${rt}`}},[nt.Ethmain]:{code:nt.Ethmain,blinkCode:ot.eth,name:"Ethereum",prefixes:["0x"],signatureValue:"ethereumMainnet",transactionTemplates:{full:`https://etherscan.io/tx/${rt}`,raw:`https://etherscan.io/tx/${rt}`}},[nt.Ethropst]:{code:nt.Ethropst,blinkCode:ot.eth,name:"Ethereum Testnet",signatureValue:"ethereumRopsten",transactionTemplates:{full:`https://ropsten.etherscan.io/tx/${rt}`,raw:`https://ropsten.etherscan.io/getRawTx?tx=${rt}`}},[nt.Ethrinkeby]:{code:nt.Ethrinkeby,blinkCode:ot.eth,name:"Ethereum Testnet",signatureValue:"ethereumRinkeby",transactionTemplates:{full:`https://rinkeby.etherscan.io/tx/${rt}`,raw:`https://rinkeby.etherscan.io/getRawTx?tx=${rt}`}},[nt.Ethgoerli]:{code:nt.Ethgoerli,blinkCode:ot.eth,name:"Ethereum Testnet",signatureValue:"ethereumGoerli",transactionTemplates:{full:`https://goerli.etherscan.io/tx/${rt}`,raw:`https://goerli.etherscan.io/getRawTx?tx=${rt}`}},[nt.Ethsepolia]:{code:nt.Ethsepolia,blinkCode:ot.eth,name:"Ethereum Testnet",signatureValue:"ethereumSepolia",transactionTemplates:{full:`https://sepolia.etherscan.io/tx/${rt}`,raw:`https://sepolia.etherscan.io/getRawTx?tx=${rt}`}},[nt.Mocknet]:{code:nt.Mocknet,blinkCode:ot.mocknet,name:"Mocknet",test:!0,signatureValue:"mockchain",transactionTemplates:{full:"",raw:""}},[nt.Regtest]:{code:nt.Regtest,blinkCode:ot.mocknet,name:"Mocknet",test:!0,signatureValue:"bitcoinRegtest",transactionTemplates:{full:"",raw:""}},[nt.Testnet]:{code:nt.Testnet,blinkCode:ot.btc,name:"Bitcoin Testnet",signatureValue:"bitcoinTestnet",transactionTemplates:{full:`https://testnet.blockchain.info/tx/${rt}`,raw:`https://testnet.blockchain.info/rawtx/${rt}`}}};const st={SecurityContextUrl:"https://w3id.org/security/v1",MininumConfirmations:1,MinimumBlockchainExplorers:1,Race:!0,PublicKey:"ecdsa-koblitz-pubkey:1"};var ct=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function ut(e,t,i=[]){return ct(this,void 0,void 0,(function*(){if((e=Array.from(e)).length<t)throw new Error("Could not retrieve tx data");const r=e.map(((e,t)=>e.then((()=>t)).catch((e=>{throw t}))));return Promise.race(r).then((r=>(e.splice(r,1)[0].then((e=>i.push(e))),1===t?i:ut(e,t-1,i)))).catch((r=>(e.splice(r,1),ut(e,t,i))))}))}function lt({explorerAPI:e,transactionIdPlaceholder:t=rt,transactionId:i="",chain:r}){const{serviceURL:n}=e;let o;if("string"==typeof n)o=n;else if("object"==typeof n){const e=!!r&&function(e){return e!==at.bitcoin.code&&e!==at.ethmain.code}(r);o=e?n.test:n.main}else{if("function"!=typeof n)throw new Error(`serviceURL is an unexpected type for explorerAPI ${e.serviceName}`);o=n(r)}return o=o.replace(t,i),o=function(e,t){if(!t.key)return e;if(t.key&&!t.keyPropertyName)throw new Error(`No keyPropertyName defined for explorerAPI ${t.serviceName}`);return function(e,t,i){const r=e.includes("?")?"&":"?";return`${e}${r}${t}=${i}`}(e,t.keyPropertyName,t.key)}(o,e),o}var dt="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},pt=[],ht=[],ft="undefined"!=typeof Uint8Array?Uint8Array:Array,gt=!1;function bt(){gt=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)pt[t]=e[t],ht[e.charCodeAt(t)]=t;ht["-".charCodeAt(0)]=62,ht["_".charCodeAt(0)]=63}function mt(e,t,i){for(var r,n,o=[],a=t;a<i;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(pt[(n=r)>>18&63]+pt[n>>12&63]+pt[n>>6&63]+pt[63&n]);return o.join("")}function vt(e){var t;gt||bt();for(var i=e.length,r=i%3,n="",o=[],a=16383,s=0,c=i-r;s<c;s+=a)o.push(mt(e,s,s+a>c?c:s+a));return 1===r?(t=e[i-1],n+=pt[t>>2],n+=pt[t<<4&63],n+="=="):2===r&&(t=(e[i-2]<<8)+e[i-1],n+=pt[t>>10],n+=pt[t>>4&63],n+=pt[t<<2&63],n+="="),o.push(n),o.join("")}function yt(e,t,i,r,n){var o,a,s=8*n-r-1,c=(1<<s)-1,u=c>>1,l=-7,d=i?n-1:0,p=i?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=p,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)}function wt(e,t,i,r,n,o){var a,s,c,u=8*o-n-1,l=(1<<u)-1,d=l>>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,n),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),a=0));n>=8;e[i+h]=255&s,h+=f,s/=256,n-=8);for(a=a<<n|s,u+=n;u>0;e[i+h]=255&a,h+=f,a/=256,u-=8);e[i+h-f]|=128*g}var xt={}.toString,kt=Array.isArray||function(e){return"[object Array]"==xt.call(e)};Et.TYPED_ARRAY_SUPPORT=void 0===dt.TYPED_ARRAY_SUPPORT||dt.TYPED_ARRAY_SUPPORT;var _t=Ct();function Ct(){return Et.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function At(e,t){if(Ct()<t)throw new RangeError("Invalid typed array length");return Et.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Et.prototype:(null===e&&(e=new Et(t)),e.length=t),e}function Et(e,t,i){if(!(Et.TYPED_ARRAY_SUPPORT||this instanceof Et))return new Et(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return It(this,e)}return St(this,e,t,i)}function St(e,t,i,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,i,r){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===i&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,i):new Uint8Array(t,i,r);Et.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Et.prototype:e=Tt(e,t);return e}(e,t,i,r):"string"==typeof t?function(e,t,i){"string"==typeof i&&""!==i||(i="utf8");if(!Et.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Mt(t,i);e=At(e,r);var n=e.write(t,i);n!==r&&(e=e.slice(0,n));return e}(e,t,i):function(e,t){if(Dt(t)){var i=0|Lt(t.length);return 0===(e=At(e,i)).length||t.copy(e,0,0,i),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?At(e,0):Tt(e,t);if("Buffer"===t.type&&kt(t.data))return Tt(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Pt(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function It(e,t){if(Pt(t),e=At(e,t<0?0:0|Lt(t)),!Et.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function Tt(e,t){var i=t.length<0?0:0|Lt(t.length);e=At(e,i);for(var r=0;r<i;r+=1)e[r]=255&t[r];return e}function Lt(e){if(e>=Ct())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ct().toString(16)+" bytes");return 0|e}function Dt(e){return!(null==e||!e._isBuffer)}function Mt(e,t){if(Dt(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return ai(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return si(e).length;default:if(r)return ai(e).length;t=(""+t).toLowerCase(),r=!0}}function Rt(e,t,i){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Yt(this,t,i);case"utf8":case"utf-8":return qt(this,t,i);case"ascii":return Jt(this,t,i);case"latin1":case"binary":return Gt(this,t,i);case"base64":return Ht(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wt(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ot(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function Bt(e,t,i,r,n){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof t&&(t=Et.from(t,r)),Dt(t))return 0===t.length?-1:jt(e,t,i,r,n);if("number"==typeof t)return t&=255,Et.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):jt(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function jt(e,t,i,r,n){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,i/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var l=-1;for(o=i;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(i+c>s&&(i=s-c),o=i;o>=0;o--){for(var d=!0,p=0;p<c;p++)if(u(e,o+p)!==u(t,p)){d=!1;break}if(d)return o}return-1}function Ft(e,t,i,r){i=Number(i)||0;var n=e.length-i;r?(r=Number(r))>n&&(r=n):r=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[i+a]=s}return a}function Nt(e,t,i,r){return ci(ai(t,e.length-i),e,i,r)}function zt(e,t,i,r){return ci(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,r)}function Vt(e,t,i,r){return zt(e,t,i,r)}function $t(e,t,i,r){return ci(si(t),e,i,r)}function Ut(e,t,i,r){return ci(function(e,t){for(var i,r,n,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(i=e.charCodeAt(a))>>8,n=i%256,o.push(n),o.push(r);return o}(t,e.length-i),e,i,r)}function Ht(e,t,i){return 0===t&&i===e.length?vt(e):vt(e.slice(t,i))}function qt(e,t,i){i=Math.min(e.length,i);for(var r=[],n=t;n<i;){var o,a,s,c,u=e[n],l=null,d=u>239?4:u>223?3:u>191?2:1;if(n+d<=i)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[n+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),n+=d}return function(e){var t=e.length;if(t<=Kt)return String.fromCharCode.apply(String,e);var i="",r=0;for(;r<t;)i+=String.fromCharCode.apply(String,e.slice(r,r+=Kt));return i}(r)}Et.poolSize=8192,Et._augment=function(e){return e.__proto__=Et.prototype,e},Et.from=function(e,t,i){return St(null,e,t,i)},Et.TYPED_ARRAY_SUPPORT&&(Et.prototype.__proto__=Uint8Array.prototype,Et.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Et[Symbol.species]),Et.alloc=function(e,t,i){return function(e,t,i,r){return Pt(t),t<=0?At(e,t):void 0!==i?"string"==typeof r?At(e,t).fill(i,r):At(e,t).fill(i):At(e,t)}(null,e,t,i)},Et.allocUnsafe=function(e){return It(null,e)},Et.allocUnsafeSlow=function(e){return It(null,e)},Et.isBuffer=ui,Et.compare=function(e,t){if(!Dt(e)||!Dt(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,r=t.length,n=0,o=Math.min(i,r);n<o;++n)if(e[n]!==t[n]){i=e[n],r=t[n];break}return i<r?-1:r<i?1:0},Et.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Et.concat=function(e,t){if(!kt(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Et.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var r=Et.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var o=e[i];if(!Dt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},Et.byteLength=Mt,Et.prototype._isBuffer=!0,Et.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Ot(this,t,t+1);return this},Et.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Ot(this,t,t+3),Ot(this,t+1,t+2);return this},Et.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Ot(this,t,t+7),Ot(this,t+1,t+6),Ot(this,t+2,t+5),Ot(this,t+3,t+4);return this},Et.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?qt(this,0,e):Rt.apply(this,arguments)},Et.prototype.equals=function(e){if(!Dt(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Et.compare(this,e)},Et.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Et.prototype.compare=function(e,t,i,r,n){if(!Dt(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return-1;if(t>=i)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(r>>>=0),a=(i>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,n),u=e.slice(t,i),l=0;l<s;++l)if(c[l]!==u[l]){o=c[l],a=u[l];break}return o<a?-1:a<o?1:0},Et.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},Et.prototype.indexOf=function(e,t,i){return Bt(this,e,t,i,!0)},Et.prototype.lastIndexOf=function(e,t,i){return Bt(this,e,t,i,!1)},Et.prototype.write=function(e,t,i,r){if(void 0===t)r="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)r=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-t;if((void 0===i||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Ft(this,e,t,i);case"utf8":case"utf-8":return Nt(this,e,t,i);case"ascii":return zt(this,e,t,i);case"latin1":case"binary":return Vt(this,e,t,i);case"base64":return $t(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ut(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Et.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Kt=4096;function Jt(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(127&e[n]);return r}function Gt(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(e[n]);return r}function Yt(e,t,i){var r=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>r)&&(i=r);for(var n="",o=t;o<i;++o)n+=oi(e[o]);return n}function Wt(e,t,i){for(var r=e.slice(t,i),n="",o=0;o<r.length;o+=2)n+=String.fromCharCode(r[o]+256*r[o+1]);return n}function Zt(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function Xt(e,t,i,r,n,o){if(!Dt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw new RangeError('"value" argument is out of bounds');if(i+r>e.length)throw new RangeError("Index out of range")}function Qt(e,t,i,r){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-i,2);n<o;++n)e[i+n]=(t&255<<8*(r?n:1-n))>>>8*(r?n:1-n)}function ei(e,t,i,r){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-i,4);n<o;++n)e[i+n]=t>>>8*(r?n:3-n)&255}function ti(e,t,i,r,n,o){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function ii(e,t,i,r,n){return n||ti(e,0,i,4),wt(e,t,i,r,23,4),i+4}function ri(e,t,i,r,n){return n||ti(e,0,i,8),wt(e,t,i,r,52,8),i+8}Et.prototype.slice=function(e,t){var i,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),Et.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=Et.prototype;else{var n=t-e;i=new Et(n,void 0);for(var o=0;o<n;++o)i[o]=this[o+e]}return i},Et.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||Zt(e,t,this.length);for(var r=this[e],n=1,o=0;++o<t&&(n*=256);)r+=this[e+o]*n;return r},Et.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||Zt(e,t,this.length);for(var r=this[e+--t],n=1;t>0&&(n*=256);)r+=this[e+--t]*n;return r},Et.prototype.readUInt8=function(e,t){return t||Zt(e,1,this.length),this[e]},Et.prototype.readUInt16LE=function(e,t){return t||Zt(e,2,this.length),this[e]|this[e+1]<<8},Et.prototype.readUInt16BE=function(e,t){return t||Zt(e,2,this.length),this[e]<<8|this[e+1]},Et.prototype.readUInt32LE=function(e,t){return t||Zt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Et.prototype.readUInt32BE=function(e,t){return t||Zt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Et.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||Zt(e,t,this.length);for(var r=this[e],n=1,o=0;++o<t&&(n*=256);)r+=this[e+o]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*t)),r},Et.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||Zt(e,t,this.length);for(var r=t,n=1,o=this[e+--r];r>0&&(n*=256);)o+=this[e+--r]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},Et.prototype.readInt8=function(e,t){return t||Zt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Et.prototype.readInt16LE=function(e,t){t||Zt(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},Et.prototype.readInt16BE=function(e,t){t||Zt(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},Et.prototype.readInt32LE=function(e,t){return t||Zt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Et.prototype.readInt32BE=function(e,t){return t||Zt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Et.prototype.readFloatLE=function(e,t){return t||Zt(e,4,this.length),yt(this,e,!0,23,4)},Et.prototype.readFloatBE=function(e,t){return t||Zt(e,4,this.length),yt(this,e,!1,23,4)},Et.prototype.readDoubleLE=function(e,t){return t||Zt(e,8,this.length),yt(this,e,!0,52,8)},Et.prototype.readDoubleBE=function(e,t){return t||Zt(e,8,this.length),yt(this,e,!1,52,8)},Et.prototype.writeUIntLE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Xt(this,e,t,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[t]=255&e;++o<i&&(n*=256);)this[t+o]=e/n&255;return t+i},Et.prototype.writeUIntBE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Xt(this,e,t,i,Math.pow(2,8*i)-1,0);var n=i-1,o=1;for(this[t+n]=255&e;--n>=0&&(o*=256);)this[t+n]=e/o&255;return t+i},Et.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,1,255,0),Et.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Et.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,2,65535,0),Et.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Qt(this,e,t,!0),t+2},Et.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,2,65535,0),Et.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Qt(this,e,t,!1),t+2},Et.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,4,4294967295,0),Et.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ei(this,e,t,!0),t+4},Et.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,4,4294967295,0),Et.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ei(this,e,t,!1),t+4},Et.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Xt(this,e,t,i,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o<i&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+i},Et.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Xt(this,e,t,i,n-1,-n)}var o=i-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+i},Et.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,1,127,-128),Et.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Et.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,2,32767,-32768),Et.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Qt(this,e,t,!0),t+2},Et.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,2,32767,-32768),Et.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Qt(this,e,t,!1),t+2},Et.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,4,2147483647,-2147483648),Et.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ei(this,e,t,!0),t+4},Et.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Et.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ei(this,e,t,!1),t+4},Et.prototype.writeFloatLE=function(e,t,i){return ii(this,e,t,!0,i)},Et.prototype.writeFloatBE=function(e,t,i){return ii(this,e,t,!1,i)},Et.prototype.writeDoubleLE=function(e,t,i){return ri(this,e,t,!0,i)},Et.prototype.writeDoubleBE=function(e,t,i){return ri(this,e,t,!1,i)},Et.prototype.copy=function(e,t,i,r){if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<i&&(r=i),r===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-i&&(r=e.length-t+i);var n,o=r-i;if(this===e&&i<t&&t<r)for(n=o-1;n>=0;--n)e[n+t]=this[n+i];else if(o<1e3||!Et.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)e[n+t]=this[n+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+o),t);return o},Et.prototype.fill=function(e,t,i,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),1===e.length){var n=e.charCodeAt(0);n<256&&(e=n)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Et.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var o;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o<i;++o)this[o]=e;else{var a=Dt(e)?e:ai(new Et(e,r).toString()),s=a.length;for(o=0;o<i-t;++o)this[o+t]=a[o%s]}return this};var ni=/[^+\/0-9A-Za-z-_]/g;function oi(e){return e<16?"0"+e.toString(16):e.toString(16)}function ai(e,t){var i;t=t||1/0;for(var r=e.length,n=null,o=[],a=0;a<r;++a){if((i=e.charCodeAt(a))>55295&&i<57344){if(!n){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function si(e){return function(e){var t,i,r,n,o,a;gt||bt();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[s-2]?2:"="===e[s-1]?1:0,a=new ft(3*s/4-o),r=o>0?s-4:s;var c=0;for(t=0,i=0;t<r;t+=4,i+=3)n=ht[e.charCodeAt(t)]<<18|ht[e.charCodeAt(t+1)]<<12|ht[e.charCodeAt(t+2)]<<6|ht[e.charCodeAt(t+3)],a[c++]=n>>16&255,a[c++]=n>>8&255,a[c++]=255&n;return 2===o?(n=ht[e.charCodeAt(t)]<<2|ht[e.charCodeAt(t+1)]>>4,a[c++]=255&n):1===o&&(n=ht[e.charCodeAt(t)]<<10|ht[e.charCodeAt(t+1)]<<4|ht[e.charCodeAt(t+2)]>>2,a[c++]=n>>8&255,a[c++]=255&n),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ni,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ci(e,t,i,r){for(var n=0;n<r&&!(n+i>=t.length||n>=e.length);++n)t[n+i]=e[n];return n}function ui(e){return null!=e&&(!!e._isBuffer||li(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&li(e.slice(0,0))}(e))}function li(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var di=Object.freeze({__proto__:null,Buffer:Et,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),Et.alloc(+e)},isBuffer:ui,kMaxLength:_t});function pi(){throw new Error("setTimeout has not been defined")}function hi(){throw new Error("clearTimeout has not been defined")}var fi=pi,gi=hi;function bi(e){if(fi===setTimeout)return setTimeout(e,0);if((fi===pi||!fi)&&setTimeout)return fi=setTimeout,setTimeout(e,0);try{return fi(e,0)}catch(t){try{return fi.call(null,e,0)}catch(t){return fi.call(this,e,0)}}}"function"==typeof dt.setTimeout&&(fi=setTimeout),"function"==typeof dt.clearTimeout&&(gi=clearTimeout);var mi,vi=[],yi=!1,wi=-1;function xi(){yi&&mi&&(yi=!1,mi.length?vi=mi.concat(vi):wi=-1,vi.length&&ki())}function ki(){if(!yi){var e=bi(xi);yi=!0;for(var t=vi.length;t;){for(mi=vi,vi=[];++wi<t;)mi&&mi[wi].run();wi=-1,t=vi.length}mi=null,yi=!1,function(e){if(gi===clearTimeout)return clearTimeout(e);if((gi===hi||!gi)&&clearTimeout)return gi=clearTimeout,clearTimeout(e);try{return gi(e)}catch(t){try{return gi.call(null,e)}catch(t){return gi.call(this,e)}}}(e)}}function _i(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];vi.push(new Ci(e,t)),1!==vi.length||yi||bi(ki)}function Ci(e,t){this.fun=e,this.array=t}Ci.prototype.run=function(){this.fun.apply(null,this.array)};function Ai(){}var Ei=Ai,Si=Ai,Pi=Ai,Ii=Ai,Ti=Ai,Li=Ai,Di=Ai;var Mi=dt.performance||{},Ri=Mi.now||Mi.mozNow||Mi.msNow||Mi.oNow||Mi.webkitNow||function(){return(new Date).getTime()};var Oi=new Date;var Bi={nextTick:_i,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Ei,addListener:Si,once:Pi,off:Ii,removeListener:Ti,removeAllListeners:Li,emit:Di,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Ri.call(Mi),i=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(i-=e[0],(r-=e[1])<0&&(i--,r+=1e9)),[i,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Oi)/1e3}},ji="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ni(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var i=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),i}
121
- /*! https://mths.be/punycode v1.4.1 by @mathias */var zi=2147483647,Vi=36,$i=1,Ui=26,Hi=38,qi=700,Ki=72,Ji=128,Gi="-",Yi=/[^\x20-\x7E]/,Wi=/[\x2E\u3002\uFF0E\uFF61]/g,Zi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Xi=Vi-$i,Qi=Math.floor,er=String.fromCharCode;function tr(e){throw new RangeError(Zi[e])}function ir(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function rr(e,t,i){var r=0;for(e=i?Qi(e/qi):e>>1,e+=Qi(e/t);e>Xi*Ui>>1;r+=Vi)e=Qi(e/Xi);return Qi(r+(Xi+1)*e/(e+Hi))}function nr(e){return function(e,t){var i=e.split("@"),r="";i.length>1&&(r=i[0]+"@",e=i[1]);var n=function(e,t){for(var i=e.length,r=[];i--;)r[i]=t(e[i]);return r}((e=e.replace(Wi,".")).split("."),t).join(".");return r+n}(e,(function(e){return Yi.test(e)?"xn--"+function(e){var t,i,r,n,o,a,s,c,u,l,d,p,h,f,g,b=[];for(e=function(e){for(var t,i,r=[],n=0,o=e.length;n<o;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<o?56320==(64512&(i=e.charCodeAt(n++)))?r.push(((1023&t)<<10)+(1023&i)+65536):(r.push(t),n--):r.push(t);return r}(e),p=e.length,t=Ji,i=0,o=Ki,a=0;a<p;++a)(d=e[a])<128&&b.push(er(d));for(r=n=b.length,n&&b.push(Gi);r<p;){for(s=zi,a=0;a<p;++a)(d=e[a])>=t&&d<s&&(s=d);for(s-t>Qi((zi-i)/(h=r+1))&&tr("overflow"),i+=(s-t)*h,t=s,a=0;a<p;++a)if((d=e[a])<t&&++i>zi&&tr("overflow"),d==t){for(c=i,u=Vi;!(c<(l=u<=o?$i:u>=o+Ui?Ui:u-o));u+=Vi)g=c-l,f=Vi-l,b.push(er(ir(l+g%f,0))),c=Qi(g/f);b.push(er(ir(c,0))),o=rr(i,h,r==n),i=0,++r}++i,++t}return b.join("")}(e):e}))}var or="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e},ar=/%[sdj%]/g;function sr(e){if(!_r(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(pr(arguments[i]));return t.join(" ")}i=1;for(var r=arguments,n=r.length,o=String(e).replace(ar,(function(e){if("%%"===e)return"%";if(i>=n)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}default:return e}})),a=r[i];i<n;a=r[++i])wr(a)||!Sr(a)?o+=" "+a:o+=" "+pr(a);return o}function cr(e,t){if(Ar(dt.process))return function(){return cr(e,t).apply(this,arguments)};if(!0===Bi.noDeprecation)return e;var i=!1;return function(){if(!i){if(Bi.throwDeprecation)throw new Error(t);Bi.traceDeprecation?console.trace(t):console.error(t),i=!0}return e.apply(this,arguments)}}var ur,lr={};function dr(e){if(Ar(ur)&&(ur=Bi.env.NODE_DEBUG||""),e=e.toUpperCase(),!lr[e])if(new RegExp("\\b"+e+"\\b","i").test(ur)){lr[e]=function(){var t=sr.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else lr[e]=function(){};return lr[e]}function pr(e,t){var i={seen:[],stylize:fr};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),yr(t)?i.showHidden=t:t&&jr(i,t),Ar(i.showHidden)&&(i.showHidden=!1),Ar(i.depth)&&(i.depth=2),Ar(i.colors)&&(i.colors=!1),Ar(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=hr),gr(i,e,i.depth)}function hr(e,t){var i=pr.styles[t];return i?"["+pr.colors[i][0]+"m"+e+"["+pr.colors[i][1]+"m":e}function fr(e,t){return e}function gr(e,t,i){if(e.customInspect&&t&&Tr(t.inspect)&&t.inspect!==pr&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(i,e);return _r(r)||(r=gr(e,r,i)),r}var n=function(e,t){if(Ar(t))return e.stylize("undefined","undefined");if(_r(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}if(kr(t))return e.stylize(""+t,"number");if(yr(t))return e.stylize(""+t,"boolean");if(wr(t))return e.stylize("null","null")}(e,t);if(n)return n;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,i){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Ir(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return br(t);if(0===o.length){if(Tr(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Er(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Pr(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ir(t))return br(t)}var c,u="",l=!1,d=["{","}"];(vr(t)&&(l=!0,d=["[","]"]),Tr(t))&&(u=" [Function"+(t.name?": "+t.name:"")+"]");return Er(t)&&(u=" "+RegExp.prototype.toString.call(t)),Pr(t)&&(u=" "+Date.prototype.toUTCString.call(t)),Ir(t)&&(u=" "+br(t)),0!==o.length||l&&0!=t.length?i<0?Er(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=l?function(e,t,i,r,n){for(var o=[],a=0,s=t.length;a<s;++a)Fr(t,String(a))?o.push(mr(e,t,i,r,String(a),!0)):o.push("");return n.forEach((function(n){n.match(/^\d+$/)||o.push(mr(e,t,i,r,n,!0))})),o}(e,t,i,a,o):o.map((function(r){return mr(e,t,i,a,r,l)})),e.seen.pop(),function(e,t,i){var r=e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+i[1];return i[0]+t+" "+e.join(", ")+" "+i[1]}(c,u,d)):d[0]+u+d[1]}function br(e){return"["+Error.prototype.toString.call(e)+"]"}function mr(e,t,i,r,n,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),Fr(r,n)||(a="["+n+"]"),s||(e.seen.indexOf(c.value)<0?(s=wr(i)?gr(e,c.value,null):gr(e,c.value,i-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),Ar(a)){if(o&&n.match(/^\d+$/))return s;(a=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function vr(e){return Array.isArray(e)}function yr(e){return"boolean"==typeof e}function wr(e){return null===e}function xr(e){return null==e}function kr(e){return"number"==typeof e}function _r(e){return"string"==typeof e}function Cr(e){return"symbol"==typeof e}function Ar(e){return void 0===e}function Er(e){return Sr(e)&&"[object RegExp]"===Mr(e)}function Sr(e){return"object"==typeof e&&null!==e}function Pr(e){return Sr(e)&&"[object Date]"===Mr(e)}function Ir(e){return Sr(e)&&("[object Error]"===Mr(e)||e instanceof Error)}function Tr(e){return"function"==typeof e}function Lr(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Dr(e){return ui(e)}function Mr(e){return Object.prototype.toString.call(e)}function Rr(e){return e<10?"0"+e.toString(10):e.toString(10)}pr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},pr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Or=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Br(){var e,t;console.log("%s - %s",(e=new Date,t=[Rr(e.getHours()),Rr(e.getMinutes()),Rr(e.getSeconds())].join(":"),[e.getDate(),Or[e.getMonth()],t].join(" ")),sr.apply(null,arguments))}function jr(e,t){if(!t||!Sr(t))return e;for(var i=Object.keys(t),r=i.length;r--;)e[i[r]]=t[i[r]];return e}function Fr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Nr={inherits:or,_extend:jr,log:Br,isBuffer:Dr,isPrimitive:Lr,isFunction:Tr,isError:Ir,isDate:Pr,isObject:Sr,isRegExp:Er,isUndefined:Ar,isSymbol:Cr,isString:_r,isNumber:kr,isNullOrUndefined:xr,isNull:wr,isBoolean:yr,isArray:vr,inspect:pr,deprecate:cr,format:sr,debuglog:dr},zr=Object.freeze({__proto__:null,_extend:jr,debuglog:dr,default:Nr,deprecate:cr,format:sr,inherits:or,inspect:pr,isArray:vr,isBoolean:yr,isBuffer:Dr,isDate:Pr,isError:Ir,isFunction:Tr,isNull:wr,isNullOrUndefined:xr,isNumber:kr,isObject:Sr,isPrimitive:Lr,isRegExp:Er,isString:_r,isSymbol:Cr,isUndefined:Ar,log:Br});function Vr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var $r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Ur(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function Hr(e,t){if(e.map)return e.map(t);for(var i=[],r=0;r<e.length;r++)i.push(t(e[r],r));return i}var qr=Object.keys||function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t};function Kr(e,t,i,r){t=t||"&",i=i||"=";var n={};if("string"!=typeof e||0===e.length)return n;var o=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var c=0;c<s;++c){var u,l,d,p,h=e[c].replace(o,"%20"),f=h.indexOf(i);f>=0?(u=h.substr(0,f),l=h.substr(f+1)):(u=h,l=""),d=decodeURIComponent(u),p=decodeURIComponent(l),Vr(n,d)?$r(n[d])?n[d].push(p):n[d]=[n[d],p]:n[d]=p}return n}var Jr={parse:un,resolve:hn,resolveObject:fn,format:dn,Url:Gr};function Gr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Yr=/^([a-z0-9.+-]+:)/i,Wr=/:[0-9]*$/,Zr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Xr=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Qr=["'"].concat(Xr),en=["%","/","?",";","#"].concat(Qr),tn=["/","?","#"],rn=255,nn=/^[+a-z0-9A-Z_-]{0,63}$/,on=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,an={javascript:!0,"javascript:":!0},sn={javascript:!0,"javascript:":!0},cn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function un(e,t,i){if(e&&Sr(e)&&e instanceof Gr)return e;var r=new Gr;return r.parse(e,t,i),r}function ln(e,t,i,r){if(!_r(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=-1!==n&&n<t.indexOf("#")?"?":"#",a=t.split(o);a[0]=a[0].replace(/\\/g,"/");var s=t=a.join(o);if(s=s.trim(),!r&&1===t.split("#").length){var c=Zr.exec(s);if(c)return e.path=s,e.href=s,e.pathname=c[1],c[2]?(e.search=c[2],e.query=i?Kr(e.search.substr(1)):e.search.substr(1)):i&&(e.search="",e.query={}),e}var u,l,d,p,h=Yr.exec(s);if(h){var f=(h=h[0]).toLowerCase();e.protocol=f,s=s.substr(h.length)}if(r||h||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===s.substr(0,2);!g||h&&sn[h]||(s=s.substr(2),e.slashes=!0)}if(!sn[h]&&(g||h&&!cn[h])){var b,m,v=-1;for(u=0;u<tn.length;u++)-1!==(l=s.indexOf(tn[u]))&&(-1===v||l<v)&&(v=l);for(-1!==(m=-1===v?s.lastIndexOf("@"):s.lastIndexOf("@",v))&&(b=s.slice(0,m),s=s.slice(m+1),e.auth=decodeURIComponent(b)),v=-1,u=0;u<en.length;u++)-1!==(l=s.indexOf(en[u]))&&(-1===v||l<v)&&(v=l);-1===v&&(v=s.length),e.host=s.slice(0,v),s=s.slice(v),gn(e),e.hostname=e.hostname||"";var y="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!y){var w=e.hostname.split(/\./);for(u=0,d=w.length;u<d;u++){var x=w[u];if(x&&!x.match(nn)){for(var k="",_=0,C=x.length;_<C;_++)x.charCodeAt(_)>127?k+="x":k+=x[_];if(!k.match(nn)){var A=w.slice(0,u),E=w.slice(u+1),S=x.match(on);S&&(A.push(S[1]),E.unshift(S[2])),E.length&&(s="/"+E.join(".")+s),e.hostname=A.join(".");break}}}}e.hostname.length>rn?e.hostname="":e.hostname=e.hostname.toLowerCase(),y||(e.hostname=nr(e.hostname)),p=e.port?":"+e.port:"";var P=e.hostname||"";e.host=P+p,e.href+=e.host,y&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!an[f])for(u=0,d=Qr.length;u<d;u++){var I=Qr[u];if(-1!==s.indexOf(I)){var T=encodeURIComponent(I);T===I&&(T=escape(I)),s=s.split(I).join(T)}}var L=s.indexOf("#");-1!==L&&(e.hash=s.substr(L),s=s.slice(0,L));var D=s.indexOf("?");if(-1!==D?(e.search=s.substr(D),e.query=s.substr(D+1),i&&(e.query=Kr(e.query)),s=s.slice(0,D)):i&&(e.search="",e.query={}),s&&(e.pathname=s),cn[f]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){p=e.pathname||"";var M=e.search||"";e.path=p+M}return e.href=pn(e),e}function dn(e){return _r(e)&&(e=ln({},e)),pn(e)}function pn(e){var t=e.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var i,r,n,o,a=e.protocol||"",s=e.pathname||"",c=e.hash||"",u=!1,l="";e.host?u=t+e.host:e.hostname&&(u=t+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(u+=":"+e.port)),e.query&&Sr(e.query)&&Object.keys(e.query).length&&(i=e.query,r=r||"&",n=n||"=",null===i&&(i=void 0),l="object"==typeof i?Hr(qr(i),(function(e){var t=encodeURIComponent(Ur(e))+n;return $r(i[e])?Hr(i[e],(function(e){return t+encodeURIComponent(Ur(e))})).join(r):t+encodeURIComponent(Ur(i[e]))})).join(r):o?encodeURIComponent(Ur(o))+n+encodeURIComponent(Ur(i)):"");var d=e.search||l&&"?"+l||"";return a&&":"!==a.substr(-1)&&(a+=":"),e.slashes||(!a||cn[a])&&!1!==u?(u="//"+(u||""),s&&"/"!==s.charAt(0)&&(s="/"+s)):u||(u=""),c&&"#"!==c.charAt(0)&&(c="#"+c),d&&"?"!==d.charAt(0)&&(d="?"+d),a+u+(s=s.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(d=d.replace("#","%23"))+c}function hn(e,t){return un(e,!1,!0).resolve(t)}function fn(e,t){return e?un(e,!1,!0).resolveObject(t):t}function gn(e){var t=e.host,i=Wr.exec(t);i&&(":"!==(i=i[0])&&(e.port=i.substr(1)),t=t.substr(0,t.length-i.length)),t&&(e.hostname=t)}Gr.prototype.parse=function(e,t,i){return ln(this,e,t,i)},Gr.prototype.format=function(){return pn(this)},Gr.prototype.resolve=function(e){return this.resolveObject(un(e,!1,!0)).format()},Gr.prototype.resolveObject=function(e){if(_r(e)){var t=new Gr;t.parse(e,!1,!0),e=t}for(var i,r=new Gr,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var u=s[c];"protocol"!==u&&(r[u]=e[u])}return cn[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!cn[e.protocol]){for(var l=Object.keys(e),d=0;d<l.length;d++){var p=l[d];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||sn[e.protocol])r.pathname=e.pathname;else{for(i=(e.pathname||"").split("/");i.length&&!(e.host=i.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==i[0]&&i.unshift(""),i.length<2&&i.unshift(""),r.pathname=i.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var h=r.pathname||"",f=r.search||"";r.path=h+f}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var g,b=r.pathname&&"/"===r.pathname.charAt(0),m=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=m||b||r.host&&e.pathname,y=v,w=r.pathname&&r.pathname.split("/")||[],x=r.protocol&&!cn[r.protocol];if(i=e.pathname&&e.pathname.split("/")||[],x&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===i[0]?i[0]=e.host:i.unshift(e.host)),e.host=null),v=v&&(""===i[0]||""===w[0])),m)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=i;else if(i.length)w||(w=[]),w.pop(),w=w.concat(i),r.search=e.search,r.query=e.query;else if(!xr(e.search))return x&&(r.hostname=r.host=w.shift(),(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),r.search=e.search,r.query=e.query,wr(r.pathname)&&wr(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=w.slice(-1)[0],_=(r.host||e.host||w.length>1)&&("."===k||".."===k)||""===k,C=0,A=w.length;A>=0;A--)"."===(k=w[A])?w.splice(A,1):".."===k?(w.splice(A,1),C++):C&&(w.splice(A,1),C--);if(!v&&!y)for(;C--;C)w.unshift("..");!v||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),_&&"/"!==w.join("/").substr(-1)&&w.push("");var E=""===w[0]||w[0]&&"/"===w[0].charAt(0);return x&&(r.hostname=r.host=E?"":w.length?w.shift():"",(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),(v=v||r.host&&w.length)&&!E&&w.unshift(""),w.length?r.pathname=w.join("/"):(r.pathname=null,r.path=null),wr(r.pathname)&&wr(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Gr.prototype.parseHost=function(){return gn(this)};var bn,mn,vn=Ni(Object.freeze({__proto__:null,Url:Gr,default:Jr,format:dn,parse:un,resolve:hn,resolveObject:fn})),yn={},wn=Object.freeze({__proto__:null,default:yn}),xn=Ni(wn),kn=Ln(dt.fetch)&&Ln(dt.ReadableStream);function _n(e){mn||(mn=new dt.XMLHttpRequest).open("GET",dt.location.host?"/":"https://example.com");try{return mn.responseType=e,mn.responseType===e}catch(e){return!1}}var Cn=void 0!==dt.ArrayBuffer,An=Cn&&Ln(dt.ArrayBuffer.prototype.slice),En=Cn&&_n("arraybuffer"),Sn=!kn&&An&&_n("ms-stream"),Pn=!kn&&Cn&&_n("moz-chunked-arraybuffer"),In=Ln(mn.overrideMimeType),Tn=Ln(dt.VBArray);function Ln(e){return"function"==typeof e}function Dn(){}function Mn(){Mn.init.call(this)}function Rn(e){return void 0===e._maxListeners?Mn.defaultMaxListeners:e._maxListeners}function On(e,t,i,r){var n,o,a,s;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),o=e._events),a=o[t]):(o=e._events=new Dn,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=r?[i,a]:[a,i]:r?a.unshift(i):a.push(i),!a.warned&&(n=Rn(e))&&n>0&&a.length>n){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=i,++e._eventsCount;return e}function Bn(e,t,i){var r=!1;function n(){e.removeListener(t,n),r||(r=!0,i.apply(e,arguments))}return n.listener=i,n}function jn(e){var t=this._events;if(t){var i=t[e];if("function"==typeof i)return 1;if(i)return i.length}return 0}function Fn(e,t){for(var i=new Array(t);t--;)i[t]=e[t];return i}mn=null,Dn.prototype=Object.create(null),Mn.EventEmitter=Mn,Mn.usingDomains=!1,Mn.prototype.domain=void 0,Mn.prototype._events=void 0,Mn.prototype._maxListeners=void 0,Mn.defaultMaxListeners=10,Mn.init=function(){this.domain=null,Mn.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Dn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Mn.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Mn.prototype.getMaxListeners=function(){return Rn(this)},Mn.prototype.emit=function(e){var t,i,r,n,o,a,s,c="error"===e;if(a=this._events)c=c&&null==a.error;else if(!c)return!1;if(s=this.domain,c){if(t=arguments[1],!s){if(t instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(i=a[e]))return!1;var l="function"==typeof i;switch(r=arguments.length){case 1:!function(e,t,i){if(t)e.call(i);else for(var r=e.length,n=Fn(e,r),o=0;o<r;++o)n[o].call(i)}(i,l,this);break;case 2:!function(e,t,i,r){if(t)e.call(i,r);else for(var n=e.length,o=Fn(e,n),a=0;a<n;++a)o[a].call(i,r)}(i,l,this,arguments[1]);break;case 3:!function(e,t,i,r,n){if(t)e.call(i,r,n);else for(var o=e.length,a=Fn(e,o),s=0;s<o;++s)a[s].call(i,r,n)}(i,l,this,arguments[1],arguments[2]);break;case 4:!function(e,t,i,r,n,o){if(t)e.call(i,r,n,o);else for(var a=e.length,s=Fn(e,a),c=0;c<a;++c)s[c].call(i,r,n,o)}(i,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(n=new Array(r-1),o=1;o<r;o++)n[o-1]=arguments[o];!function(e,t,i,r){if(t)e.apply(i,r);else for(var n=e.length,o=Fn(e,n),a=0;a<n;++a)o[a].apply(i,r)}(i,l,this,n)}return!0},Mn.prototype.addListener=function(e,t){return On(this,e,t,!1)},Mn.prototype.on=Mn.prototype.addListener,Mn.prototype.prependListener=function(e,t){return On(this,e,t,!0)},Mn.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,Bn(this,e,t)),this},Mn.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Bn(this,e,t)),this},Mn.prototype.removeListener=function(e,t){var i,r,n,o,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(i=r[e]))return this;if(i===t||i.listener&&i.listener===t)0==--this._eventsCount?this._events=new Dn:(delete r[e],r.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(n=-1,o=i.length;o-- >0;)if(i[o]===t||i[o].listener&&i[o].listener===t){a=i[o].listener,n=o;break}if(n<0)return this;if(1===i.length){if(i[0]=void 0,0==--this._eventsCount)return this._events=new Dn,this;delete r[e]}else!function(e,t){for(var i=t,r=i+1,n=e.length;r<n;i+=1,r+=1)e[i]=e[r];e.pop()}(i,n);r.removeListener&&this.emit("removeListener",e,a||t)}return this},Mn.prototype.removeAllListeners=function(e){var t,i;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=new Dn,this._eventsCount=0):i[e]&&(0==--this._eventsCount?this._events=new Dn:delete i[e]),this;if(0===arguments.length){for(var r,n=Object.keys(i),o=0;o<n.length;++o)"removeListener"!==(r=n[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new Dn,this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},Mn.prototype.listeners=function(e){var t,i=this._events;return i&&(t=i[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(t):[]},Mn.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):jn.call(e,t)},Mn.prototype.listenerCount=jn,Mn.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Nn=Object.freeze({__proto__:null,EventEmitter:Mn,default:Mn});function zn(){this.head=null,this.tail=null,this.length=0}zn.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},zn.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},zn.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},zn.prototype.clear=function(){this.head=this.tail=null,this.length=0},zn.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i},zn.prototype.concat=function(e){if(0===this.length)return Et.alloc(0);if(1===this.length)return this.head.data;for(var t=Et.allocUnsafe(e>>>0),i=this.head,r=0;i;)i.data.copy(t,r),r+=i.data.length,i=i.next;return t};var Vn=Et.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function $n(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Vn(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Hn;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=qn;break;default:return void(this.write=Un)}this.charBuffer=new Et(6),this.charReceived=0,this.charLength=0}function Un(e){return e.toString(this.encoding)}function Hn(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function qn(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}$n.prototype.write=function(e){for(var t="";this.charLength;){var i=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";if(e=e.slice(i,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var n;r=(t+=e.toString(this.encoding,0,r)).length-1;if((n=t.charCodeAt(r))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,r)}return t},$n.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var i=e[e.length-t];if(1==t&&i>>5==6){this.charLength=2;break}if(t<=2&&i>>4==14){this.charLength=3;break}if(t<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=t},$n.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var i=this.charReceived,r=this.charBuffer,n=this.encoding;t+=r.slice(0,i).toString(n)}return t};var Kn=Object.freeze({__proto__:null,StringDecoder:$n});Yn.ReadableState=Gn;var Jn=dr("stream");function Gn(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Co&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new zn,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new $n(e.encoding),this.encoding=e.encoding)}function Yn(e){if(!(this instanceof Yn))return new Yn(e);this._readableState=new Gn(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),Mn.call(this)}function Wn(e,t,i,r,n){var o=function(e,t){var i=null;ui(t)||"string"==typeof t||null==t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));return i}(t,i);if(o)e.emit("error",o);else if(null===i)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,Qn(e)}(e,t);else if(t.objectMode||i&&i.length>0)if(t.ended&&!n){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&n){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var c;!t.decoder||n||r||(i=t.decoder.write(i),c=!t.objectMode&&0===i.length),n||(t.reading=!1),c||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&Qn(e))),function(e,t){t.readingMore||(t.readingMore=!0,_i(to,e,t))}(e,t)}else n||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}or(Yn,Mn),Yn.prototype.push=function(e,t){var i=this._readableState;return i.objectMode||"string"!=typeof e||(t=t||i.defaultEncoding)!==i.encoding&&(e=Et.from(e,t),t=""),Wn(this,i,e,t,!1)},Yn.prototype.unshift=function(e){return Wn(this,this._readableState,e,"",!0)},Yn.prototype.isPaused=function(){return!1===this._readableState.flowing},Yn.prototype.setEncoding=function(e){return this._readableState.decoder=new $n(e),this._readableState.encoding=e,this};var Zn=8388608;function Xn(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=Zn?e=Zn:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Qn(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Jn("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?_i(eo,e):eo(e))}function eo(e){Jn("emit readable"),e.emit("readable"),no(e)}function to(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Jn("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function io(e){Jn("readable nexttick read 0"),e.read(0)}function ro(e,t){t.reading||(Jn("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),no(e),t.flowing&&!t.reading&&e.read(0)}function no(e){var t=e._readableState;for(Jn("flow",t.flowing);t.flowing&&null!==e.read(););}function oo(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=function(e,t,i){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():i?function(e,t){var i=t.head,r=1,n=i.data;e-=n.length;for(;i=i.next;){var o=i.data,a=e>o.length?o.length:e;if(a===o.length?n+=o:n+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a));break}++r}return t.length-=r,n}(e,t):function(e,t){var i=Et.allocUnsafe(e),r=t.head,n=1;r.data.copy(i),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(i,i.length-e,0,a),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t);return r}(e,t.buffer,t.decoder),i);var i}function ao(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,_i(so,t,e))}function so(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function co(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}function uo(){}function lo(e,t,i){this.chunk=e,this.encoding=t,this.callback=i,this.next=null}function po(e,t){Object.defineProperty(this,"buffer",{get:cr((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof Co&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var i=e._writableState,r=i.sync,n=i.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),t)!function(e,t,i,r,n){--t.pendingcb,i?_i(n,r):n(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,i,r,t,n);else{var o=mo(i);o||i.corked||i.bufferProcessing||!i.bufferedRequest||bo(e,i),r?_i(go,e,i,o,n):go(e,i,o,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new wo(this)}function ho(e){if(!(this instanceof ho||this instanceof Co))return new ho(e);this._writableState=new po(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),Mn.call(this)}function fo(e,t,i,r,n,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,i?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function go(e,t,i,r){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),yo(e,t)}function bo(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var r=t.bufferedRequestCount,n=new Array(r),o=t.corkedRequestsFree;o.entry=i;for(var a=0;i;)n[a]=i,i=i.next,a+=1;fo(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new wo(t)}else{for(;i;){var s=i.chunk,c=i.encoding,u=i.callback;if(fo(e,t,!1,t.objectMode?1:s.length,s,c,u),i=i.next,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=i,t.bufferProcessing=!1}function mo(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function vo(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function yo(e,t){var i=mo(t);return i&&(0===t.pendingcb?(vo(e,t),t.finished=!0,e.emit("finish")):vo(e,t)),i}function wo(e){var t=this;this.next=null,this.entry=null,this.finish=function(i){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(i),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}Yn.prototype.read=function(e){Jn("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Jn("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?ao(this):Qn(this),null;if(0===(e=Xn(e,t))&&t.ended)return 0===t.length&&ao(this),null;var r,n=t.needReadable;return Jn("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&Jn("length less than watermark",n=!0),t.ended||t.reading?Jn("reading or ended",n=!1):n&&(Jn("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Xn(i,t))),null===(r=e>0?oo(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&ao(this)),null!==r&&this.emit("data",r),r},Yn.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Yn.prototype.pipe=function(e,t){var i=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Jn("pipe count=%d opts=%j",r.pipesCount,t);var n=!t||!1!==t.end?a:u;function o(e){Jn("onunpipe"),e===i&&u()}function a(){Jn("onend"),e.end()}r.endEmitted?_i(n):i.once("end",n),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;Jn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,no(e))}}(i);e.on("drain",s);var c=!1;function u(){Jn("cleanup"),e.removeListener("close",h),e.removeListener("finish",f),e.removeListener("drain",s),e.removeListener("error",p),e.removeListener("unpipe",o),i.removeListener("end",a),i.removeListener("end",u),i.removeListener("data",d),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var l=!1;function d(t){Jn("ondata"),l=!1,!1!==e.write(t)||l||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==co(r.pipes,e))&&!c&&(Jn("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,l=!0),i.pause())}function p(t){var i;Jn("onerror",t),g(),e.removeListener("error",p),0===(i="error",e.listeners(i).length)&&e.emit("error",t)}function h(){e.removeListener("finish",f),g()}function f(){Jn("onfinish"),e.removeListener("close",h),g()}function g(){Jn("unpipe"),i.unpipe(e)}return i.on("data",d),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",p),e.once("close",h),e.once("finish",f),e.emit("pipe",i),r.flowing||(Jn("pipe resume"),i.resume()),e},Yn.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n<r;n++)i[n].emit("unpipe",this);return this}var o=co(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},Yn.prototype.on=function(e,t){var i=Mn.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Qn(this):_i(io,this))}return i},Yn.prototype.addListener=Yn.prototype.on,Yn.prototype.resume=function(){var e=this._readableState;return e.flowing||(Jn("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,_i(ro,e,t))}(this,e)),this},Yn.prototype.pause=function(){return Jn("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Jn("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Yn.prototype.wrap=function(e){var t=this._readableState,i=!1,r=this;for(var n in e.on("end",(function(){if(Jn("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(n){(Jn("wrapped data"),t.decoder&&(n=t.decoder.write(n)),t.objectMode&&null==n)||(t.objectMode||n&&n.length)&&(r.push(n)||(i=!0,e.pause()))})),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));return function(e,t){for(var i=0,r=e.length;i<r;i++)t(e[i],i)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,r.emit.bind(r,t))})),r._read=function(t){Jn("wrapped _read",t),i&&(i=!1,e.resume())},r},Yn._fromList=oo,ho.WritableState=po,or(ho,Mn),po.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},ho.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},ho.prototype.write=function(e,t,i){var r=this._writableState,n=!1;return"function"==typeof t&&(i=t,t=null),Et.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof i&&(i=uo),r.ended?function(e,t){var i=new Error("write after end");e.emit("error",i),_i(t,i)}(this,i):function(e,t,i,r){var n=!0,o=!1;return null===i?o=new TypeError("May not write null values to stream"):Et.isBuffer(i)||"string"==typeof i||void 0===i||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),_i(r,o),n=!1),n}(this,r,e,i)&&(r.pendingcb++,n=function(e,t,i,r,n){i=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=Et.from(t,i));return t}(t,i,r),Et.isBuffer(i)&&(r="buffer");var o=t.objectMode?1:i.length;t.length+=o;var a=t.length<t.highWaterMark;a||(t.needDrain=!0);if(t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new lo(i,r,n),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else fo(e,t,!1,o,i,r,n);return a}(this,r,e,t,i)),n},ho.prototype.cork=function(){this._writableState.corked++},ho.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||bo(this,e))},ho.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},ho.prototype._write=function(e,t,i){i(new Error("not implemented"))},ho.prototype._writev=null,ho.prototype.end=function(e,t,i){var r=this._writableState;"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,i){t.ending=!0,yo(e,t),i&&(t.finished?_i(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,r,i)},or(Co,Yn);for(var xo=Object.keys(ho.prototype),ko=0;ko<xo.length;ko++){var _o=xo[ko];Co.prototype[_o]||(Co.prototype[_o]=ho.prototype[_o])}function Co(e){if(!(this instanceof Co))return new Co(e);Yn.call(this,e),ho.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",Ao)}function Ao(){this.allowHalfOpen||this._writableState.ended||_i(Eo,this)}function Eo(e){e.end()}function So(e){this.afterTransform=function(t,i){return function(e,t,i){var r=e._transformState;r.transforming=!1;var n=r.writecb;if(!n)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=i&&e.push(i);n(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,i)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Po(e){if(!(this instanceof Po))return new Po(e);Co.call(this,e),this._transformState=new So(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){Io(t,e)})):Io(t)}))}function Io(e,t){if(t)return e.emit("error",t);var i=e._writableState,r=e._transformState;if(i.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function To(e){if(!(this instanceof To))return new To(e);Po.call(this,e)}function Lo(){Mn.call(this)}or(Po,Co),Po.prototype.push=function(e,t){return this._transformState.needTransform=!1,Co.prototype.push.call(this,e,t)},Po.prototype._transform=function(e,t,i){throw new Error("Not implemented")},Po.prototype._write=function(e,t,i){var r=this._transformState;if(r.writecb=i,r.writechunk=e,r.writeencoding=t,!r.transforming){var n=this._readableState;(r.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},Po.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},or(To,Po),To.prototype._transform=function(e,t,i){i(null,e)},or(Lo,Mn),Lo.Readable=Yn,Lo.Writable=ho,Lo.Duplex=Co,Lo.Transform=Po,Lo.PassThrough=To,Lo.Stream=Lo,Lo.prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",a),i.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===Mn.listenerCount(this,"error"))throw e}function u(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",a),i.removeListener("close",s),i.removeListener("error",c),e.removeListener("error",c),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",c),e.on("error",c),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e};var Do=Object.freeze({__proto__:null,Duplex:Co,PassThrough:To,Readable:Yn,Stream:Lo,Transform:Po,Writable:ho,default:Lo}),Mo=3,Ro=4;function Oo(e,t,i){var r,n=this;if(Yn.call(n),n._mode=i,n.headers={},n.rawHeaders=[],n.trailers={},n.rawTrailers=[],n.on("end",(function(){_i((function(){n.emit("close")}))})),"fetch"===i){n._fetchResponse=t,n.url=t.url,n.statusCode=t.status,n.statusMessage=t.statusText;for(var o,a,s=t.headers[Symbol.iterator]();o=(a=s.next()).value,!a.done;)n.headers[o[0].toLowerCase()]=o[1],n.rawHeaders.push(o[0],o[1]);var c=t.body.getReader();(r=function(){c.read().then((function(e){n._destroyed||(e.done?n.push(null):(n.push(new Et(e.value)),r()))}))})()}else{if(n._xhr=e,n._pos=0,n.url=e.responseURL,n.statusCode=e.status,n.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var i=t[1].toLowerCase();"set-cookie"===i?(void 0===n.headers[i]&&(n.headers[i]=[]),n.headers[i].push(t[2])):void 0!==n.headers[i]?n.headers[i]+=", "+t[2]:n.headers[i]=t[2],n.rawHeaders.push(t[1],t[2])}})),n._charset="x-user-defined",!In){var u=n.rawHeaders["mime-type"];if(u){var l=u.match(/;\s*charset=([^;])(;|$)/);l&&(n._charset=l[1].toLowerCase())}n._charset||(n._charset="utf-8")}}}function Bo(e){var t,i=this;ho.call(i),i._opts=e,i._body=[],i._headers={},e.auth&&i.setHeader("Authorization","Basic "+new Et(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){i.setHeader(t,e.headers[t])}));var r=!0;if("disable-fetch"===e.mode)r=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!In;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}i._mode=function(e,t){return kn&&t?"fetch":Pn?"moz-chunked-arraybuffer":Sn?"ms-stream":En&&e?"arraybuffer":Tn&&e?"text:vbarray":"text"}(t,r),i.on("finish",(function(){i._onFinish()}))}or(Oo,Yn),Oo.prototype._read=function(){},Oo.prototype._onXHRProgress=function(){var e=this,t=e._xhr,i=null;switch(e._mode){case"text:vbarray":if(t.readyState!==Ro)break;try{i=new dt.VBArray(t.responseBody).toArray()}catch(e){}if(null!==i){e.push(new Et(i));break}case"text":try{i=t.responseText}catch(t){e._mode="text:vbarray";break}if(i.length>e._pos){var r=i.substr(e._pos);if("x-user-defined"===e._charset){for(var n=new Et(r.length),o=0;o<r.length;o++)n[o]=255&r.charCodeAt(o);e.push(n)}else e.push(r,e._charset);e._pos=i.length}break;case"arraybuffer":if(t.readyState!==Ro||!t.response)break;i=t.response,e.push(new Et(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=t.response,t.readyState!==Mo||!i)break;e.push(new Et(new Uint8Array(i)));break;case"ms-stream":if(i=t.response,t.readyState!==Mo)break;var a=new dt.MSStreamReader;a.onprogress=function(){a.result.byteLength>e._pos&&(e.push(new Et(new Uint8Array(a.result.slice(e._pos)))),e._pos=a.result.byteLength)},a.onload=function(){e.push(null)},a.readAsArrayBuffer(i)}e._xhr.readyState===Ro&&"ms-stream"!==e._mode&&e.push(null)},or(Bo,ho);var jo=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];function Fo(e,t){"string"==typeof e&&(e=un(e));var i=-1===dt.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||i,n=e.hostname||e.host,o=e.port,a=e.path||"/";n&&-1!==n.indexOf(":")&&(n="["+n+"]"),e.url=(n?r+"//"+n:"")+(o?":"+o:"")+a,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var s=new Bo(e);return t&&s.on("response",t),s}function No(e,t){var i=Fo(e,t);return i.end(),i}function zo(){}Bo.prototype.setHeader=function(e,t){var i=e.toLowerCase();-1===jo.indexOf(i)&&(this._headers[i]={name:e,value:t})},Bo.prototype.getHeader=function(e){return this._headers[e.toLowerCase()].value},Bo.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},Bo.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,i=e._opts,r=e._headers;if("POST"!==i.method&&"PUT"!==i.method&&"PATCH"!==i.method||(t=function(){if(void 0!==bn)return bn;try{new dt.Blob([new ArrayBuffer(1)]),bn=!0}catch(e){bn=!1}return bn}()?new dt.Blob(e._body.map((function(e){return function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(ui(e)){for(var t=new Uint8Array(e.length),i=e.length,r=0;r<i;r++)t[r]=e[r];return t.buffer}throw new Error("Argument must be a Buffer")}(e)})),{type:(r["content-type"]||{}).value||""}):Et.concat(e._body).toString()),"fetch"===e._mode){var n=Object.keys(r).map((function(e){return[r[e].name,r[e].value]}));dt.fetch(e._opts.url,{method:e._opts.method,headers:n,body:t,mode:"cors",credentials:i.withCredentials?"include":"same-origin"}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){e.emit("error",t)}))}else{var o=e._xhr=new dt.XMLHttpRequest;try{o.open(e._opts.method,e._opts.url,!0)}catch(t){return void _i((function(){e.emit("error",t)}))}"responseType"in o&&(o.responseType=e._mode.split(":")[0]),"withCredentials"in o&&(o.withCredentials=!!i.withCredentials),"text"===e._mode&&"overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(r).forEach((function(e){o.setRequestHeader(r[e].name,r[e].value)})),e._response=null,o.onreadystatechange=function(){switch(o.readyState){case Mo:case Ro:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(o.onprogress=function(){e._onXHRProgress()}),o.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{o.send(t)}catch(t){return void _i((function(){e.emit("error",t)}))}}}},Bo.prototype._onXHRProgress=function(){var e=this;(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},Bo.prototype._connect=function(){var e=this;e._destroyed||(e._response=new Oo(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},Bo.prototype._write=function(e,t,i){this._body.push(e),i()},Bo.prototype.abort=Bo.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},Bo.prototype.end=function(e,t,i){"function"==typeof e&&(i=e,e=void 0),ho.prototype.end.call(this,e,t,i)},Bo.prototype.flushHeaders=function(){},Bo.prototype.setTimeout=function(){},Bo.prototype.setNoDelay=function(){},Bo.prototype.setSocketKeepAlive=function(){},zo.defaultMaxSockets=4;var Vo=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],$o={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Uo={request:Fo,get:No,Agent:zo,METHODS:Vo,STATUS_CODES:$o},Ho=Ni(Object.freeze({__proto__:null,Agent:zo,METHODS:Vo,STATUS_CODES:$o,default:Uo,get:No,request:Fo})),qo=vn,Ko=xn.spawn,Jo=xn,Go=function(){var e,t,i=this,r=Ho,n=Ho,o={},a=!1,s={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},c={},u={},l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],d=["TRACE","TRACK","CONNECT"],p=!1,h=!1,f={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null,this.withCredentials=!1;this.open=function(e,t,i,r,n){if(this.abort(),h=!1,!function(e){return e&&-1===d.indexOf(e)}(e))throw new Error("SecurityError: Request method not allowed");o={method:e,url:t.toString(),async:"boolean"!=typeof i||i,user:r||null,password:n||null},g(this.OPENED)},this.setDisableHeaderCheck=function(e){a=e},this.setRequestHeader=function(e,t){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(function(e){return a||e&&-1===l.indexOf(e.toLowerCase())}(e)){if(p)throw new Error("INVALID_STATE_ERR: send flag is true");e=u[e.toLowerCase()]||e,u[e.toLowerCase()]=e,c[e]=c[e]?c[e]+", "+t:t}else console.warn('Refused to set unsafe header "'+e+'"')},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&t&&t.headers&&t.headers[e.toLowerCase()]&&!h?t.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||h)return"";var e="";for(var i in t.headers)"set-cookie"!==i&&"set-cookie2"!==i&&(e+=i+": "+t.headers[i]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&u[e.toLowerCase()]?c[u[e.toLowerCase()]]:""},this.send=function(a){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(p)throw new Error("INVALID_STATE_ERR: send has already been called");var l,d=!1,f=!1,b=qo.parse(o.url);switch(b.protocol){case"https:":d=!0;case"http:":l=b.hostname;break;case"file:":f=!0;break;case void 0:case null:case"":l="localhost";break;default:throw new Error("Protocol not supported.")}if(f){if("GET"!==o.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(o.async)Jo.readFile(b.pathname,"utf8",(function(e,t){e?i.handleError(e):(i.status=200,i.responseText=t,g(i.DONE))}));else try{this.responseText=Jo.readFileSync(b.pathname,"utf8"),this.status=200,g(i.DONE)}catch(e){this.handleError(e)}}else{var m=b.port||(d?443:80),v=b.pathname+(b.search?b.search:"");for(var y in s)u[y.toLowerCase()]||(c[y]=s[y]);if(c.Host=l,d&&443===m||80===m||(c.Host+=":"+b.port),o.user){void 0===o.password&&(o.password="");var w=new Et(o.user+":"+o.password);c.Authorization="Basic "+w.toString("base64")}"GET"===o.method||"HEAD"===o.method?a=null:a?(c["Content-Length"]=ui(a)?a.length:Et.byteLength(a),c["Content-Type"]||(c["Content-Type"]="text/plain;charset=UTF-8")):"POST"===o.method&&(c["Content-Length"]=0);var x={host:l,port:m,path:v,method:o.method,headers:c,agent:!1,withCredentials:i.withCredentials};if(h=!1,o.async){var k=d?n.request:r.request;p=!0,i.dispatchEvent("readystatechange");var _=function(e){i.handleError(e)};e=k(x,(function r(n){if(301!==(t=n).statusCode&&302!==t.statusCode&&303!==t.statusCode&&307!==t.statusCode)t.setEncoding("utf8"),g(i.HEADERS_RECEIVED),i.status=t.statusCode,t.on("data",(function(e){e&&(i.responseText+=e),p&&g(i.LOADING)})),t.on("end",(function(){p&&(g(i.DONE),p=!1)})),t.on("error",(function(e){i.handleError(e)}));else{o.url=t.headers.location;var a=qo.parse(o.url);l=a.hostname;var s={hostname:a.hostname,port:a.port,path:a.path,method:303===t.statusCode?"GET":o.method,headers:c,withCredentials:i.withCredentials};(e=k(s,r).on("error",_)).end()}})).on("error",_),a&&e.write(a),e.end(),i.dispatchEvent("loadstart")}else{var C=".node-xmlhttprequest-content-"+Bi.pid,A=".node-xmlhttprequest-sync-"+Bi.pid;Jo.writeFileSync(A,"","utf8");for(var E="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(d?"s":"")+".request;var options = "+JSON.stringify(x)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+C+"', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');fs.unlinkSync('"+A+"');});response.on('error', function(error) {fs.writeFileSync('"+C+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+A+"');});}).on('error', function(error) {fs.writeFileSync('"+C+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+A+"');});"+(a?"req.write('"+JSON.stringify(a).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",S=Ko(Bi.argv[0],["-e",E]);Jo.existsSync(A););var P=JSON.parse(Jo.readFileSync(C,"utf8"));S.stdin.end(),Jo.unlinkSync(C),P.err?i.handleError(P.err):(t=P.data,i.status=P.data.statusCode,i.responseText=P.data.text,g(i.DONE))}}},this.handleError=function(e){this.status=0,this.statusText=e,this.responseText=e.stack,h=!0,g(this.DONE),this.dispatchEvent("error")},this.abort=function(){e&&(e.abort(),e=null),c=s,this.status=0,this.responseText="",this.responseXML="",h=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!p||this.readyState===this.DONE||(p=!1,g(this.DONE)),this.readyState=this.UNSENT,this.dispatchEvent("abort")},this.addEventListener=function(e,t){e in f||(f[e]=[]),f[e].push(t)},this.removeEventListener=function(e,t){e in f&&(f[e]=f[e].filter((function(e){return e!==t})))},this.dispatchEvent=function(e){if("function"==typeof i["on"+e]&&i["on"+e](),e in f)for(var t=0,r=f[e].length;t<r;t++)f[e][t].call(i)};var g=function(e){e!=i.LOADING&&i.readyState===e||(i.readyState=e,(o.async||i.readyState<i.OPENED||i.readyState===i.DONE)&&i.dispatchEvent("readystatechange"),i.readyState!==i.DONE||h||(i.dispatchEvent("load"),i.dispatchEvent("loadend")))}},Yo=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function Wo(e){return Yo(this,void 0,void 0,(function*(){return yield new Promise(((t,i)=>{let{url:r}=e;r||i(new Error("URL is missing")),"http://"!==r.substr(0,7)||e.forceHttp||(console.warn(`Upgrading requested url ${r} to https protocol.`),r=r.replace("http://","https://"));const n=new("undefined"==typeof XMLHttpRequest?Go:XMLHttpRequest);e["bearer-token"]&&n.setRequestHeader("Authorization",`Bearer ${e["bearer-token"]}`),n.onload=()=>{if(n.status>=200&&n.status<300)t(n.responseText);else{console.log(n.responseText);const e=`Error fetching url:${r}; status code:${n.status}`;i(new Error(e))}},n.ontimeout=e=>{console.log("ontimeout",e)},n.onreadystatechange=()=>{404===n.status&&i(new Error(`Error fetching url:${r}; status code:${n.status}`))},n.onerror=()=>{console.error(`Request failed with error ${n.responseText}`),i(new Error(n.responseText))},n.open(e.method||"GET",r),e.body?n.send(JSON.stringify(e.body)):n.send()}))}))}function Zo(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function Xo(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(Zo(e,r))return e.slice(r.length)}return e}var Qo=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const ea="https://api.etherscan.io/api?module=proxy";function ta(e){const t={[nt.Ethropst]:"ropsten",[nt.Ethrinkeby]:"rinkeby",[nt.Ethgoerli]:"goerli",[nt.Ethsepolia]:"sepolia"};if(!t[e])return ea;return`https://api-${t[e]}.etherscan.io/api?module=proxy`}const ia={serviceURL:function(e){return`${ta(e)}&action=eth_getTransactionByHash&txhash=${rt}`},serviceName:tt.etherscan,parsingFunction:function({jsonResponse:e,chain:t,key:i,keyPropertyName:r}){return Qo(this,void 0,void 0,(function*(){const n=ta(t),o={serviceURL:{main:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${rt}`,test:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${rt}`}},a={serviceURL:{main:`${n}&action=eth_blockNumber`,test:`${n}&action=eth_blockNumber`}};const s=yield function(e,t){return Qo(this,void 0,void 0,(function*(){const n=e.result.blockNumber,s=lt({explorerAPI:Object.assign(Object.assign({},o),{key:i,keyPropertyName:r}),transactionId:n,chain:t});try{const e=yield Wo({url:s}),o=JSON.parse(e).result;return yield function(e,t){return Qo(this,void 0,void 0,(function*(){const n=lt({explorerAPI:Object.assign(Object.assign({},a),{key:i,keyPropertyName:r}),chain:e});let o;try{o=yield Wo({url:n})}catch(e){throw new Error("Unable to get remote hash")}const s=JSON.parse(o).result;if(s-t<st.MininumConfirmations)throw new Error("Not enough");return s}))}(t,n),o}catch(e){throw new Error("Unable to get remote hash")}}))}(e,t);return function(e,t){const i=e.result,r=new Date(1e3*parseInt(t.timestamp,16)),n=i.from;return{remoteHash:Xo(i.input,at.ethmain.prefixes),issuingAddress:n,time:r,revokedAddresses:[]}}(e,s)}))},priority:-1};function ra(e){const t=Date.parse(e);if(t)return new Date(t);const i=function(e){let t=e.slice(0,-5).split(/\D/).map((function(e){return parseInt(e,10)||0}));t[1]-=1,t=new Date(Date.UTC.apply(Date,t));const i=e.slice(-5);let r=parseInt(i,10)/100;return"+"===i.slice(0,1)&&(r*=-1),t.setHours(t.getHours()+r),t.getTime()}(e);return i||function(e){let t,i;const r=/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/.exec(e)||[];return r[1]?(t=r[1].split(/\D/).map((function(e){return parseInt(e,10)||0})),t[1]-=1,t=new Date(Date.UTC.apply(Date,t)),t.getDate()?(r[5]&&(i=parseInt(r[5],10)/100*60,r[6]&&(i+=parseInt(r[6],10)),"+"===r[4]&&(i*=-1),i&&t.setUTCMinutes(t.getUTCMinutes()+i)),t):null):null}(e)}function na(e){return""===e?"":ra(`${e}`)}function oa(e){return new Date(1e3*e)}const aa={serviceURL:{main:`https://api.blockcypher.com/v1/eth/main/txs/${rt}?limit=500`,test:`https://api.blockcypher.com/v1/beth/test/txs/${rt}?limit=500`},serviceName:tt.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<st.MininumConfirmations)throw new Error("Not enough");const t=na(e.received),i=e.outputs,r=i[i.length-1];let n=e.inputs[0].addresses[0];const o=Xo(r.script,at.ethmain.prefixes);return n=function(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(!Zo(e,r))return`${r}${e}`}return e}(n,at.ethmain.prefixes),{remoteHash:o,issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.spent_by)).map((e=>e.addresses[0]))}},priority:-1};const sa={serviceURL:{main:`https://blockstream.info/api/tx/${rt}`,test:`https://blockstream.info/testnet/api/tx/${rt}`},serviceName:tt.blockstream,parsingFunction:function({jsonResponse:e}){if(!e.status.confirmed)throw new Error("Number of transaction confirmations were less than the minimum required, according to Blockstream API");const t=oa(e.status.block_time),i=e.vout,r=i[i.length-1],n=e.vin[0].prevout.scriptpubkey_address;return{remoteHash:Xo(r.scriptpubkey,at.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.scriptpubkey_address)).map((e=>e.scriptpubkey_address))}},priority:-1};const ca={serviceURL:{main:`https://api.blockcypher.com/v1/btc/main/txs/${rt}?limit=500`,test:`https://api.blockcypher.com/v1/btc/test3/txs/${rt}?limit=500`},serviceName:tt.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<st.MininumConfirmations)throw new Error("Number of transaction confirmations were less than the minimum required, according to Blockcypher API");const t=na(e.received),i=e.outputs,r=i[i.length-1],n=e.inputs[0].addresses[0];return{remoteHash:Xo(r.script,at.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.spent_by)).map((e=>e.addresses[0]))}},priority:-1};var ua=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function la(e){return e.map((e=>({getTxData:(t,i)=>ua(this,void 0,void 0,(function*(){return yield function(e,t,i){return ua(this,void 0,void 0,(function*(){const r=lt({explorerAPI:e,transactionId:t,chain:i});try{const t=yield Wo({url:r});return yield e.parsingFunction(Object.assign({jsonResponse:JSON.parse(t),chain:i},e))}catch(e){throw new Error("Unable to get remote hash")}}))}(e,t,i)})),priority:e.priority})))}const da=[ca,sa],pa=[ia,aa];var ha=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function fa({serviceUrl:e,transactionId:t}){return ha(this,void 0,void 0,(function*(){const i={method:"eth_getTransactionByHash",jsonrpc:"2.0",id:"getbyhash",params:["0x"+t]},r=yield Wo({url:e,body:i,method:"POST"}),n=JSON.parse(r),o={method:"eth_getBlockByNumber",jsonrpc:"2.0",id:"blockbynumber",params:[n.result.blockNumber,!0]},a=yield Wo({url:e,body:o,method:"POST"}),s=JSON.parse(a),c=n.result,u=s.result,l=new Date(1e3*parseInt(u.timestamp,16)),d=c.from;return{remoteHash:Xo(c.input,["0x"]),issuingAddress:d,time:l,revokedAddresses:[]}}))}var ga=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function ba({serviceUrl:e,transactionId:t}){return ga(this,void 0,void 0,(function*(){const i={method:"getrawtransaction",jsonrpc:"2.0",id:"rpctest",params:[t,!0]},r=yield Wo({url:e,body:i,method:"POST"}),n=JSON.parse(r).result;return{issuingAddress:n.vout[0].scriptPubKey.addresses[0],remoteHash:Xo(n.vout[1].scriptPubKey.asm,["6a20","OP_RETURN "]),time:oa(n.blocktime),revokedAddresses:n.vout.filter((e=>!!e.scriptPubKey.addresses)).map((e=>e.scriptPubKey.addresses)).flat()}}))}var ma=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const va=[];function ya(e=[],t=[],i=!1){const r=e.map((e=>e.serviceName)).filter((e=>!!e)).filter((e=>!!tt[e]));return r.length?t.reduce(((t,n)=>{if(r.includes(n.serviceName)){const i=Object.assign({},n),r=e.find((e=>e.serviceName===n.serviceName));if(function(e){if(e.key&&!e.keyPropertyName)throw new Error(`Property keyPropertyName is not set for ${e.serviceName}. Cannot pass the key property to the service.`);return!0}(r)){const n=Object.assign(i,r);t.push(n);const o=e.findIndex((e=>e.serviceName===n.serviceName));va.includes(o)||va.push(o)}}else t.push(n);return i&&function(e,t){t.forEach((t=>e.splice(t,1)))}(e,va),t}),[]):t}function wa(e){return e.map((e=>(e.parsingFunction||(e.parsingFunction="btc"===e.chainType?ba:fa),e))).map((e=>({getTxData:t=>ma(this,void 0,void 0,(function*(){return yield e.parsingFunction(Object.assign(Object.assign({},e),{transactionId:t}))})),priority:e.priority})))}function xa(e){const{bitcoin:t,ethereum:i}={bitcoin:la(ya(r=e,da)),ethereum:la(ya(r,pa))};var r;const{custom:n}=function(e){return{custom:wa(e)}}(e.filter((e=>"rpc"===e.apiType)));return{bitcoin:t,ethereum:i,custom:[...n,...la(e.filter((e=>"rpc"!==e.apiType)))]}}var ka,_a=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function Ca(e,t){var i;switch(e){case at[nt.Bitcoin].code:case at[nt.Regtest].code:case at[nt.Testnet].code:case at[nt.Mocknet].code:return t.bitcoin;case at[nt.Ethmain].code:case at[nt.Ethropst].code:case at[nt.Ethrinkeby].code:case at[nt.Ethgoerli].code:case at[nt.Ethsepolia].code:return t.ethereum;default:if(!(null===(i=t.custom)||void 0===i?void 0:i.length))throw new Error("Chain is not natively supported. Use custom explorers to retrieve tx data.");return t.custom}}function Aa(e){return _a(this,void 0,void 0,(function*(){let t;try{t=yield ut(e,st.MinimumBlockchainExplorers)}catch(e){throw new Error(`Transaction lookup error: ${e.message}`)}if(!t||0===t.length)throw new Error("Could not confirm transaction data.");const i=t[0];for(let e=1;e<t.length;e++){const r=t[e];if(i.issuingAddress!==r.issuingAddress)throw new Error("Issuing addresses do not match consistently");if(i.remoteHash!==r.remoteHash)throw new Error("Remote hashes do not match consistently")}return i}))}function Ea(e,t,i,r){return _a(this,void 0,void 0,(function*(){try{const n=function(e,t,i){if(st.MinimumBlockchainExplorers>e.length)throw new Error("Invalid application configuration; check the CONFIG.MinimumBlockchainExplorers configuration value");const r=[],n=e.length;for(let o=0;o<n;o++)r.push(e[o].getTxData(t,i));return r}(e[t],i,r);return yield Aa(n)}catch(n){if(t<e.length-1)return t++,yield Ea(e,t,i,r);throw n}}))}function Sa({transactionId:e,chain:t,explorerAPIs:i=[]}){return _a(this,void 0,void 0,(function*(){const r=xa(i),n=function({defaultAPIs:e,customAPIs:t}){const i=[e];if(null==t?void 0:t.length){const e=t[0].priority;i.splice(e,0,t)}const r=e.concat(t).length;if(st.MinimumBlockchainExplorers>r)throw new Error("Invalid application configuration; check the CONFIG.MinimumBlockchainExplorers configuration value");return i}({defaultAPIs:Ca(t,r),customAPIs:r.custom});return yield Ea(n,0,e,t)}))}!function(e){e.mainnet="mainnet",e.testnet="testnet"}(ka||(ka={}));var Pa="ecdsa-koblitz-pubkey:1",Ia="https://openbadgespec.org/v2/context.json",Ta="https://www.w3.org/2018/credentials/v1",La="https://w3id.org/blockcerts/schema/2.0/context.json",Da="https://w3id.org/blockcerts/v2",Ma="https://www.blockcerts.org/schema/2.0/context.json",Ra="https://w3id.org/blockcerts/schema/2.1/context.json",Oa="https://w3id.org/blockcerts/v2.1",Ba="https://www.blockcerts.org/schema/2.1/context.json",ja="https://w3id.org/blockcerts/schema/3.0/context.json",Fa="https://w3id.org/blockcerts/v3",Na="https://www.blockcerts.org/schema/3.0/context.json",za="https://w3id.org/blockcerts/schema/3.1/context.json",Va="https://w3id.org/blockcerts/v3.1",$a="https://www.blockcerts.org/schema/3.1/context.json",Ua="https://w3id.org/security/suites/merkle-2019/v1",Ha="https://w3id.org/security/suites/chained-2021/v1",qa="https://w3id.org/vc/status-list/2021/v1",Ka={"@context":{id:"@id",type:"@type",extensions:"https://w3id.org/openbadges/extensions#",obi:"https://w3id.org/openbadges#",validation:"obi:validation",cred:"https://w3id.org/credentials#",dc:"http://purl.org/dc/terms/",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",AlignmentObject:"schema:AlignmentObject",CryptographicKey:"sec:Key",Endorsement:"cred:Credential",Assertion:"obi:Assertion",BadgeClass:"obi:BadgeClass",Criteria:"obi:Criteria",Evidence:"obi:Evidence",Extension:"obi:Extension",FrameValidation:"obi:FrameValidation",IdentityObject:"obi:IdentityObject",Image:"obi:Image",HostedBadge:"obi:HostedBadge",hosted:"obi:HostedBadge",Issuer:"obi:Issuer",Profile:"obi:Profile",RevocationList:"obi:RevocationList",SignedBadge:"obi:SignedBadge",signed:"obi:SignedBadge",TypeValidation:"obi:TypeValidation",VerificationObject:"obi:VerificationObject",author:{"@id":"schema:author","@type":"@id"},caption:{"@id":"schema:caption"},claim:{"@id":"cred:claim","@type":"@id"},created:{"@id":"dc:created","@type":"xsd:dateTime"},creator:{"@id":"dc:creator","@type":"@id"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},endorsement:{"@id":"cred:credential","@type":"@id"},expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},genre:{"@id":"schema:genre"},image:{"@id":"schema:image","@type":"@id"},name:{"@id":"schema:name"},owner:{"@id":"sec:owner","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},publicKeyPem:{"@id":"sec:publicKeyPem"},related:{"@id":"dc:relation","@type":"@id"},startsWith:{"@id":"http://purl.org/dqm-vocabulary/v1/dqm#startsWith"},tags:{"@id":"schema:keywords"},targetDescription:{"@id":"schema:targetDescription"},targetFramework:{"@id":"schema:targetFramework"},targetName:{"@id":"schema:targetName"},targetUrl:{"@id":"schema:targetUrl"},telephone:{"@id":"schema:telephone"},url:{"@id":"schema:url","@type":"@id"},version:{"@id":"schema:version"},alignment:{"@id":"obi:alignment","@type":"@id"},allowedOrigins:{"@id":"obi:allowedOrigins"},audience:{"@id":"obi:audience"},badge:{"@id":"obi:badge","@type":"@id"},criteria:{"@id":"obi:criteria","@type":"@id"},endorsementComment:{"@id":"obi:endorsementComment"},evidence:{"@id":"obi:evidence","@type":"@id"},hashed:{"@id":"obi:hashed","@type":"xsd:boolean"},identity:{"@id":"obi:identityHash"},issuedOn:{"@id":"obi:issueDate","@type":"xsd:dateTime"},issuer:{"@id":"obi:issuer","@type":"@id"},narrative:{"@id":"obi:narrative"},recipient:{"@id":"obi:recipient","@type":"@id"},revocationList:{"@id":"obi:revocationList","@type":"@id"},revocationReason:{"@id":"obi:revocationReason"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},revokedAssertions:{"@id":"obi:revoked"},salt:{"@id":"obi:salt"},targetCode:{"@id":"obi:targetCode"},uid:{"@id":"obi:uid"},validatesType:"obi:validatesType",validationFrame:"obi:validationFrame",validationSchema:"obi:validationSchema",verification:{"@id":"obi:verify","@type":"@id"},verificationProperty:{"@id":"obi:verificationProperty"},verify:"verification"}},Ja={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:{"@id":"obi:verify","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/merkleProof2017Schema.json"}]},Ga={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:{"@id":"obi:verify","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/merkleProof2017Schema.json"}]},Ya={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType"},contentEncoding:{"@id":"bc:contentEncoding"},content:{"@id":"bc:content"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"}}},Wa={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType"},contentEncoding:{"@id":"bc:contentEncoding"},content:{"@id":"bc:content"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"}}};const Za={};Za["https://w3id.org/openbadges/v2"]=Ka,Za[Ia]=Ka,Za[Ta]={"@context":{"@version":1.1,id:"@id",type:"@type",VerifiableCredential:{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",credentialSchema:{"@id":"cred:credentialSchema","@type":"@id","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",JsonSchemaValidator2018:"cred:JsonSchemaValidator2018"}},credentialStatus:{"@id":"cred:credentialStatus","@type":"@id"},credentialSubject:{"@id":"cred:credentialSubject","@type":"@id"},evidence:{"@id":"cred:evidence","@type":"@id"},expirationDate:{"@id":"cred:expirationDate","@type":"xsd:dateTime"},holder:{"@id":"cred:holder","@type":"@id"},issued:{"@id":"cred:issued","@type":"xsd:dateTime"},issuer:{"@id":"cred:issuer","@type":"@id"},issuanceDate:{"@id":"cred:issuanceDate","@type":"xsd:dateTime"},proof:{"@id":"sec:proof","@type":"@id","@container":"@graph"},refreshService:{"@id":"cred:refreshService","@type":"@id","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",ManualRefreshService2018:"cred:ManualRefreshService2018"}},termsOfUse:{"@id":"cred:termsOfUse","@type":"@id"},validFrom:{"@id":"cred:validFrom","@type":"xsd:dateTime"},validUntil:{"@id":"cred:validUntil","@type":"xsd:dateTime"}}},VerifiablePresentation:{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",sec:"https://w3id.org/security#",holder:{"@id":"cred:holder","@type":"@id"},proof:{"@id":"sec:proof","@type":"@id","@container":"@graph"},verifiableCredential:{"@id":"cred:verifiableCredential","@type":"@id","@container":"@graph"}}},EcdsaSecp256k1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1Signature2019","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},EcdsaSecp256r1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256r1Signature2019","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},Ed25519Signature2018:{"@id":"https://w3id.org/security#Ed25519Signature2018","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},RsaSignature2018:{"@id":"https://w3id.org/security#RsaSignature2018","@context":{"@version":1.1,challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"}}},Za[La]=Ja,Za[Ma]=Ja,Za[Da]=Ja,Za[Ra]=Ga,Za[Ba]=Ga,Za[Oa]=Ga,Za[ja]=Ya,Za[Na]=Ya,Za[Fa]=Ya,Za[za]=Wa,Za[$a]=Wa,Za[Va]=Wa,Za[Ua]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},MerkleProof2019:{"@id":"https://w3id.org/security#MerkleProof2019","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}},Za[Ha]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},ChainedProof2021:{"@id":"https://w3id.org/security#ChainedProof2021","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"},chainedProofType:{"@id":"https://w3id.org/security#chainedProofType","@type":"@id"},previousProof:{"@id":"https://w3id.org/security#previousProof","@type":"@id"}}}}},Za[qa]={"@context":{"@protected":!0,StatusList2021Credential:{"@id":"https://w3id.org/vc/status-list#StatusList2021Credential","@context":{"@protected":!0,id:"@id",type:"@type",description:"http://schema.org/description",name:"http://schema.org/name"}},StatusList2021:{"@id":"https://w3id.org/vc/status-list#StatusList2021","@context":{"@protected":!0,id:"@id",type:"@type",statusPurpose:"https://w3id.org/vc/status-list#statusPurpose",encodedList:"https://w3id.org/vc/status-list#encodedList"}},StatusList2021Entry:{"@id":"https://w3id.org/vc/status-list#StatusList2021Entry","@context":{"@protected":!0,id:"@id",type:"@type",statusPurpose:"https://w3id.org/vc/status-list#statusPurpose",statusListIndex:"https://w3id.org/vc/status-list#statusListIndex",statusListCredential:{"@id":"https://w3id.org/vc/status-list#statusListCredential","@type":"@id"}}}}};var Xa={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",creator:{"@id":"dc:creator","@type":"@id"},expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"sec:expiration","@type":"xsd:dateTime"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:"bc:verification",publicKeys:"bc:publicKeys",ChainpointSHA256v2:"cp:ChainpointSHA256v2",BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/merkleProof2017Schema.json"}]},Qa={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"bc:created","@type":"xsd:dateTime"},name:{"@id":"schema:name"}}},es={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType","@type":"@id"},contentEncoding:{"@id":"bc:contentEncoding","@type":"@id"},content:{"@id":"bc:content","@type":"@id"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey","@type":"@id"},url:{"@id":"schema:url","@type":"@id"},image:{"@id":"schema:image","@type":"@id"}}},ts={"@context":{"@protected":!0,id:"@id",type:"@type",alsoKnownAs:{"@id":"https://www.w3.org/ns/activitystreams#alsoKnownAs","@type":"@id"},assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"},service:{"@id":"https://www.w3.org/ns/did#service","@type":"@id","@context":{"@protected":!0,id:"@id",type:"@type",serviceEndpoint:{"@id":"https://www.w3.org/ns/did#serviceEndpoint","@type":"@id"}}},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}},is={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},EcdsaSecp256k1VerificationKey2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1VerificationKey2019","@context":{"@protected":!0,id:"@id",type:"@type",controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},revoked:{"@id":"https://w3id.org/security#revoked","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},blockchainAccountId:{"@id":"https://w3id.org/security#blockchainAccountId"},publicKeyJwk:{"@id":"https://w3id.org/security#publicKeyJwk","@type":"@json"},publicKeyBase58:{"@id":"https://w3id.org/security#publicKeyBase58"},publicKeyMultibase:{"@id":"https://w3id.org/security#publicKeyMultibase","@type":"https://w3id.org/security#multibase"}}},EcdsaSecp256k1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1Signature2019","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},jws:{"@id":"https://w3id.org/security#jws"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}},rs={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},Ed25519VerificationKey2020:{"@id":"https://w3id.org/security#Ed25519VerificationKey2020","@context":{"@protected":!0,id:"@id",type:"@type",controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},revoked:{"@id":"https://w3id.org/security#revoked","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},publicKeyMultibase:{"@id":"https://w3id.org/security#publicKeyMultibase","@type":"https://w3id.org/security#multibase"}}},Ed25519Signature2020:{"@id":"https://w3id.org/security#Ed25519Signature2020","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}};Za["https://w3id.org/blockcerts/schema/2.0-alpha/context.json"]=Xa,Za["https://www.blockcerts.org/schema/2.0-alpha/context.json"]=Xa,Za["https://www.blockcerts.org/schema/3.0-alpha/context.json"]=Qa,Za["https://w3id.org/blockcerts/schema/3.0-alpha/context.json"]=Qa,Za["https://w3id.org/blockcerts/v3.0-alpha"]=Qa,Za["https://www.blockcerts.org/schema/3.0-beta/context.json"]=es,Za["https://w3id.org/blockcerts/schema/3.0-beta/context.json"]=es,Za["https://w3id.org/blockcerts/v3.0-beta"]=es,Za["https://w3id.org/security/suites/ed25519-2020/v1"]=rs,Za["https://ns.did.ai/suites/secp256k1-2019/v1/"]=is,Za["https://www.w3.org/ns/did/v1"]=ts;const ns={locale:"en-US"};var os=Object.freeze({__proto__:null,isMainnet:function(e){return We(e,"1")||We(e,Pa)}});var as={locale:"en-US"},ss={"en-US":{steps:{formatValidationLabel:"Format validation",formatValidationLabelPending:"Validating format",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Status check",statusCheckLabelPending:"Checking record status"},subSteps:{getTransactionIdLabel:"Get transaction ID",getTransactionIdLabelPending:"Getting transaction ID",computeLocalHashLabel:"Compute local hash",computeLocalHashLabelPending:"Computing local hash",fetchRemoteHashLabel:"Fetch remote hash",fetchRemoteHashLabelPending:"Fetching remote hash",getIssuerProfileLabel:"Get issuer profile",getIssuerProfileLabelPending:"Getting issuer profile",parseIssuerKeysLabel:"Parse issuer keys",parseIssuerKeysLabelPending:"Parsing issuer keys",compareHashesLabel:"Compare hashes",compareHashesLabelPending:"Comparing hashes",checkDocumentSignatureLabel:"Check document signature",checkDocumentSignatureLabelPending:"Checking document signature",checkMerkleRootLabel:"Check Merkle Root",checkMerkleRootLabelPending:"Checking Merkle Root",checkReceiptLabel:"Check Receipt",checkReceiptLabelPending:"Checking Receipt",checkAuthenticityLabel:"Check Authenticity",checkAuthenticityLabelPending:"Checking Authenticity",checkRevokedStatusLabel:"Check Revoked Status",checkRevokedStatusLabelPending:"Checking Revoked Status",checkExpiresDateLabel:"Check Expiration Date",checkExpiresDateLabelPending:"Checking Expiration Date",controlVerificationMethodLabel:"Control Verification Method",controlVerificationMethodLabelPending:"Controlling Verification Method",retrieveVerificationMethodPublicKeyLabel:"Extract Public Key from DID Document",retrieveVerificationMethodPublicKeyLabelPending:"Extracting Public Key from DID Document",deriveIssuingAddressFromPublicKeyLabel:"Derive Issuing Address from Public Key",deriveIssuingAddressFromPublicKeyLabelPending:"Deriving Issuing Address from Public Key",compareIssuingAddressLabel:"Compare addresses",compareIssuingAddressLabelPending:"Comparing addresses",checkImagesIntegrityLabel:"Verify Images Integrity",checkImagesIntegrityLabelPending:"Verifying Images Integrity"},revocation:{preReason:"Reason given:",reason:"This certificate has been revoked by the issuer."},success:{mocknet:{label:"This Mocknet credential passed all checks",description:"Mocknet credentials are used for test purposes only. They are not recorded on a blockchain, and they should not be considered verified Blockcerts."},blockchain:{label:"Verified",description:"This is a valid ${chain} certificate.",linkText:"View transaction link"},generic:{label:"Verified",description:"The ${SIGNATURE_TYPE} signature of this document has been successfully verified."},multisign:{label:"Verified",description:"All the signatures of this certificate have successfully verified."}},errors:{certificateNotValid:"This is not a valid certificate",couldNotConfirmTx:"Could not confirm the transaction",ensureHashesEqual:"Computed hash does not match remote hash",ensureMerkleRootEqual:"Merkle root does not match remote hash.",ensureNotExpired:"This certificate has expired.",ensureValidReceipt:"The receipt is malformed. There was a problem navigating the merkle tree in the receipt.",failedJsonLdNormalization:"Failed JSON-LD normalization",foundUnmappedFields:"Found unmapped fields during JSON-LD normalization",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"The specified issuing address was created after the transaction occurred.",invalidIssuingAddressRevoked:"The specified issuing address was revoked by the issuer before the transaction occurred.",invalidIssuingAddressExpired:"The specified issuing address expired before the transaction occurred.",invalidIssuingAddressUnknown:"The address used to issue this Blockcerts does not belong to the claimed issuer.",getChain:"Didn't recognize chain value",getIssuerProfile:"Unable to get issuer profile",getRevokedAssertions:"Unable to get revocation assertions",getTransactionId:"Cannot verify this certificate without a transaction ID to compare against.",invalidMerkleReceipt:"Invalid Merkle Receipt. Proof hash did not match Merkle root",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Cannot verify this certificate without a transaction ID to compare against.",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Unable to parse JSON out of issuer identification data.",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance."}},fr:{steps:{formatValidationLabel:"Validation du format",formatValidationLabelPending:"Validation du format",signatureVerificationLabel:"Vérification de la preuve",signatureVerificationLabelPending:"Vérification de la preuve",identityVerificationLabel:"Vérification de l'identité",identityVerificationLabelPending:"Vérification de l'identité",statusCheckLabel:"Vérification du status",statusCheckLabelPending:"Vérification du status"},subSteps:{getTransactionIdLabel:"Obtention de l'identifiant de transaction",getTransactionIdLabelPending:"Obtention de l'identifiant de transaction",computeLocalHashLabel:"Calcul du hash local",computeLocalHashLabelPending:"Calcul du hash local",fetchRemoteHashLabel:"Récupération du hash distant",fetchRemoteHashLabelPending:"Récupération du hash distant",getIssuerProfileLabel:"Obtention du profil de l'émetteur",getIssuerProfileLabelPending:"Obtention du profil de l'émetteur",parseIssuerKeysLabel:"Traitement des clés de l'émetteur",parseIssuerKeysLabelPending:"Traitement des clés de l'émetteur",compareHashesLabel:"Comparaison des hash",compareHashesLabelPending:"Comparaison des hashs",checkDocumentSignatureLabel:"Vérification de la signature du document",checkDocumentSignatureLabelPending:"Vérification de la signature du document",checkMerkleRootLabel:"Vérification du Merkle Root",checkMerkleRootLabelPending:"Vérification du Merkle Root",checkReceiptLabel:"Vérification du reçu",checkReceiptLabelPending:"Vérification du reçu",checkAuthenticityLabel:"Vérification de l'authenticité",checkAuthenticityLabelPending:"Vérification de l'authenticité",checkRevokedStatusLabel:"Vérification du status de révocation",checkRevokedStatusLabelPending:"Vérification du status de révocation",checkExpiresDateLabel:"Vérification de la date d'expiration",checkExpiresDateLabelPending:"Vérification de la date d'expiration",controlVerificationMethodLabel:"Contrôle de la Méthode de Vérification",controlVerificationMethodLabelPending:"Contrôle de la Méthode de Vérification",retrieveVerificationMethodPublicKeyLabel:"Extraction de la clé publique depuis le document DID",retrieveVerificationMethodPublicKeyLabelPending:"Extraction de la clé publique depuis le document DID",deriveIssuingAddressFromPublicKeyLabel:"Dérivation de l'adresse d'émission depuis la clé publique",deriveIssuingAddressFromPublicKeyLabelPending:"Dérivation de l'adresse d'émission depuis la clé publique",compareIssuingAddressLabel:"Comparaison des adresses",compareIssuingAddressLabelPending:"Comparaison des adresses",checkImagesIntegrityLabel:"Vérification de l'Intégrité des Images",checkImagesIntegrityLabelPending:"Vérification de l'Intégrité des Images"},revocation:{preReason:"Raison :",reason:"Ce certificat a été révoqué par l'émetteur."},success:{mocknet:{label:"Cet enregistrement Mocknet a été vérifié",description:"Le mode Mocknet est utilisé à des fins de tests uniquement. Ce Blockcert n'a pas été enregistré sur une blockchain, et en tant que tel ne peut pas être considéré un Blockcert valide."},blockchain:{label:"Vérifié",description:"Ceci est un certificat ${chain} valide.",linkText:"Voir la transaction"},generic:{label:"Verified",description:"La signature ${SIGNATURE_TYPE} de ce certificat a été vérifiée avec succès."},multisign:{label:"Vérifié",description:"Toutes les signatures numériques de ce certificat ont été vérifiées avec succès."}},errors:{certificateNotValid:"Certificat invalide",couldNotConfirmTx:"Impossible de confirmer la transaction",ensureHashesEqual:"Calcul du hash local différent du hash distant",ensureMerkleRootEqual:"Le Merkle root ne correspond pas au hash distant",ensureNotExpired:"Certificat expiré",ensureValidReceipt:"Erreur d'écriture du reçu. Un problème est survenu lors de la navigation de l'arbre Merkle du reçu.",failedJsonLdNormalization:"Erreur de normalisation JSON-LD",foundUnmappedFields:"Champs non liés découverts durant la normalisation JSON-LD",identityErrorBaseMessage:"Identité de l'émetteur invalide",deriveIssuingAddressFromPublicKey:"Cette blockchain n'est pas supportée pour la vérification de l'identité décentralisée.",controlVerificationMethod:"Le document d'identité de l'émetteur ne correspond pas à la méthode de vérification.",retrieveVerificationMethodPublicKey:"Le document d'identité de l'émetteur ne fait pas mention de la méthode de vérification.",compareIssuingAddress:"La méthode de vérification n'a pas permis d'établir l'identité de l'émetteur.",invalidIssuingAddressCreationTime:"L'adresse d'émission utilisée a été créée après la transaction d'enregistrement.",invalidIssuingAddressRevoked:"L'adresse d'émission utilisée a été décommissionnée par l'émetteur avant la transaction d'enregistrement.",invalidIssuingAddressExpired:"L'adresse d'émission utilisée a expiré avant la transaction.",invalidIssuingAddressUnknown:"L'adresse utilisée pour émettre ce Blockcerts n'appartient à l'émetteur déclaré.",getChain:"Valeur de chaine non reconnue",getIssuerProfile:"Profil de l'émetteur indisponible",getRevokedAssertions:"Impossible d'obtenir les raisons de revocation",getTransactionId:"Impossible de vérifier ce certificat sans un identifiant de transaction valide",invalidMerkleReceipt:"Reçu Merkle invalide. Hash de preuve différent du Merkle root",invalidMerkleVersion:"La version du Merkle utilisé est incompatible avec la version Blockcerts.",isTransactionIdValid:"Impossible de vérifier ce certificat sans un identifiant de transaction valide",issuerProfileNotSet:"l'URL de l'émetteur n'est pas définie",issuerProfileInvalid:"le document distant ne semble pas être un profil d'émetteur valide",parseIssuerKeys:"Impossible de lire le JSON d'identification de l'émetteur",checkImagesIntegrity:"La vérification des images a prouvé que le contenu a été modifié après l'émission."}},es:{steps:{formatValidationLabel:"Validación de formato",formatValidationLabelPending:"Validando el formato",signatureVerificationLabel:"Verificar prueba",signatureVerificationLabelPending:"Verificando prueba",identityVerificationLabel:"Verificar identitad",identityVerificationLabelPending:"Verificando identitad",statusCheckLabel:"Estado de Verificación",statusCheckLabelPending:"Verificando Estado de Grabación"},subSteps:{getTransactionIdLabel:"Obtener Identificación de Transacción",getTransactionIdLabelPending:"Obteniendo Identificación de Transacción",computeLocalHashLabel:"Calcular cadena binaria local",computeLocalHashLabelPending:"Calculando cadena binaria local",fetchRemoteHashLabel:"Obtener cadena binaria remota",fetchRemoteHashLabelPending:"Obeniendo cadena binaria remota",getIssuerProfileLabel:"Obtener perfil de emisor",getIssuerProfileLabelPending:"Obteniendo perfil de emisor",parseIssuerKeysLabel:"Analizar claves del emisor",parseIssuerKeysLabelPending:"Analizando claves del emisor",compareHashesLabel:"Comparar cadenas binarias",compareHashesLabelPending:"Comparando cadenas binarias",checkDocumentSignatureLabel:"Controlar firma del documento",checkDocumentSignatureLabelPending:"Controlando firma del documento",checkMerkleRootLabel:"Verificar Merkle Root",checkMerkleRootLabelPending:"Verificando Merkle Root",checkReceiptLabel:"Verificar Recibo",checkReceiptLabelPending:"Verificando Recibo",checkAuthenticityLabel:"Verificar Autenticidad",checkAuthenticityLabelPending:"Verificando Autenticidad",checkRevokedStatusLabel:"Verificar Estado de Revocación",checkRevokedStatusLabelPending:"Verificando Estado de Revocación",checkExpiresDateLabel:"Verificar Fechas de Expiración",checkExpiresDateLabelPending:"Verificando Fechas de Expiración",controlVerificationMethodLabel:"Controlar Metodo de Verificación",controlVerificationMethodLabelPending:"Controlando Metodo de Verificación",retrieveVerificationMethodPublicKeyLabel:"Extraer la llave pública desde el documento DID",retrieveVerificationMethodPublicKeyLabelPending:"Extraendo la llave pública desde el documento DID",deriveIssuingAddressFromPublicKeyLabel:"Derivar la dirección del emisor desde la llave pública",deriveIssuingAddressFromPublicKeyLabelPending:"Derivando la dirección del emisor desde la llave pública",compareIssuingAddressLabel:"Comparar direcciones",compareIssuingAddressLabelPending:"Comparando direcciones",checkImagesIntegrityLabel:"Comprobar Integridad de las Imagens",checkImagesIntegrityLabelPending:"Comprobando Integridad de las Imagens"},revocation:{preReason:"Razón dada:",reason:"Este certificado ha sido revocado por el emisor"},success:{mocknet:{label:"Esta credencial de Mocknet pasó todas las comprobaciones",description:"Las credenciales de Mocknet se usan solo con fines de prueba. No se graban en una cadena de bloques, y no se deben considerar Blockcerts Verificados."},blockchain:{label:"Verificado",description:"Este es un certificado válido de ${chain}.",linkText:"Ver enlace de transacción"},generic:{label:"Verified",description:"La firma ${SIGNATURE_TYPE} de este certificado ha verificado con éxito."},multisign:{label:"Verificado",description:"Todas las firmas digitales de este certificado han verificado con éxito."}},errors:{certificateNotValid:"Este no es un certificado válido",couldNotConfirmTx:"No se ha podido confirmar la transacción",ensureHashesEqual:"La cadena binaria calculada no corresponde con la cadena binaria remota",ensureMerkleRootEqual:"La raíz Merkle no corresponde con la cadena binaria remota",ensureNotExpired:"Este certificado ha expirado",ensureValidReceipt:"El recibo está malformado. Hubo un problema navegando el árbol Merkle en el recibo",failedJsonLdNormalization:"La normalización del JSON-LD ha fallado",foundUnmappedFields:"Se han encontrado campos no mapeados durante la normalización de JSON-LD",identityErrorBaseMessage:"Identitad del emisor inválida",deriveIssuingAddressFromPublicKey:"No se puede validar la identitad decentalisada con esta cadena binaria.",controlVerificationMethod:"El documento de identitad del emisor no corresponde al metodo de verificación.",retrieveVerificationMethodPublicKey:"El documento de identitad del emisor no hace constar al metodo de verificación.",compareIssuingAddress:"El metodo de verificación no corresponde a la identitad del emisor.",invalidIssuingAddressCreationTime:"El emisor creó el metodo de verificación después de la emisión del certificado.",invalidIssuingAddressRevoked:"El emisor revocó el metodo de verificación antes de la emisión del certificado.",invalidIssuingAddressExpired:"El metodo de verificación expiró antes de la emisión del certificado.",invalidIssuingAddressUnknown:"El metodo de verificación no pertenece a la identitad del emisor.",getChain:"Valor de cadena no reconocido",getIssuerProfile:"No se ha podido obtener el perfil del emisor",getRevokedAssertions:"No se ha podido obtener aseveraciones de revocación",getTransactionId:"No se puede verificar este certificado sin una identificación de transacción que sirva como comparación",invalidMerkleReceipt:"Recibo Merkle inválido. La cadena binaria de prueba no corresponde con la raíz Merkle",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"No se puede verificar este certificado sin una identificación de transacción que sirva como comparación",issuerProfileNotSet:"URL del emisor no definido",issuerProfileInvalid:"el documento recogido no parece ser un perfil de emisor valido",parseIssuerKeys:"No se ha podido analizar el JSON de la información de identificación del emisor",checkImagesIntegrity:"La verificación de la integridad de los imagens provó alteración del contenido después de la emisión."}},mt:{steps:{formatValidationLabel:"Validazzjoni tal-format",formatValidationLabelPending:"Il-format qed jiġi vvalidat",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Status check",statusCheckLabelPending:"Ir-record status qed jiġi ċċekkjat"},subSteps:{getTransactionIdLabel:"Ikseb l-ID ta' tranżazzjoni",getTransactionIdLabelPending:"L-ID ta' tranżazzjoni qed tiġi mniżżla",computeLocalHashLabel:"Ikkalkula l-hash lokali",computeLocalHashLabelPending:"Il-hash lokali qed jiġi kkalkulat",fetchRemoteHashLabel:"Fittex ir-remote hash",fetchRemoteHashLabelPending:"Ir-remote hash qed jiġi mfittex",getIssuerProfileLabel:"Ikseb il-profil tal-emittent",getIssuerProfileLabelPending:"Il-profil tal-emittent qed jiġi mniżżel",parseIssuerKeysLabel:"Estratta ċ-ċwievet tal-emittent",parseIssuerKeysLabelPending:"Iċ-ċwievet tal-emittent qed jiġu estratti",compareHashesLabel:"Ikkumpara l-hashes",compareHashesLabelPending:"Il-hashes qed jiġu kkomparati",checkDocumentSignatureLabel:"Check document signature",checkDocumentSignatureLabelPending:"Checking document signature",checkMerkleRootLabel:"Iċċekkja l-Merkle Root",checkMerkleRootLabelPending:"Il-Merkle Root Qed Tiġi Ċċekkjata",checkReceiptLabel:"Iċċekkja l-Irċevuta",checkReceiptLabelPending:"L-Irċevuta Qed Tiġi Ċċekkjata",checkAuthenticityLabel:"Iċċekkja l-Awtentiċità",checkAuthenticityLabelPending:"L-Awtentiċità Qed Tiġi Ċċekkjata",checkRevokedStatusLabel:"Iċċekkja l-Istatus Revokat",checkRevokedStatusLabelPending:"L-Istatus Revokat Qed Jiġi Ċċekkjat",checkExpiresDateLabel:"Iċċekkja d-Data ta' Skadenza",checkExpiresDateLabelPending:"Id-Data ta' Skadenza Qed Tiġi Ċċekkjata",controlVerificationMethodLabel:"Control Verification Method",controlVerificationMethodLabelPending:"Controlling Verification Method",retrieveVerificationMethodPublicKeyLabel:"Extract Public Key from DID Document",retrieveVerificationMethodPublicKeyLabelPending:"Extracting Public Key from DID Document",deriveIssuingAddressFromPublicKeyLabel:"Derive Issuing Address from Public Key",deriveIssuingAddressFromPublicKeyLabelPending:"Deriving Issuing Address from Public Key",compareIssuingAddressLabel:"Compare addresses",compareIssuingAddressLabelPending:"Comparing addresses",checkImagesIntegrityLabel:"Verify Images Integrity",checkImagesIntegrityLabelPending:"Verifying Images Integrity"},revocation:{preReason:"Raġuni mogħtija:",reason:"Dan iċ-ċertifikat ġie revokat mill-emittent."},success:{mocknet:{label:"Din il-kredenzjali tal-Mocknet għaddiet il-kontrolli kollha",description:"Il-kredenzjali tal-Mocknet jintużaw biss għal skopijiet ta 'ttestjar. Dawn mhumiex irreġistrati fuq blockchain, u ma għandhomx jiġu kkunsidrati bħala blockcerts verifikati."},blockchain:{label:"Ivverifikat",description:"Dan huwa ċertifikat ${chain} huwa validu.",linkText:"Ara l-link tat-transazzjoni"},generic:{label:"Ivverifikat",description:"The ${SIGNATURE_TYPE} signature of this document has been successfully verified."},multisign:{label:"Ivverifikat",description:"All the signatures of this certificate have successfully verified."}},errors:{certificateNotValid:"Dan mhux ċertifikat validu",couldNotConfirmTx:"Ma setgħetx tiġi kkonfermata t-tranżazzjoni",ensureHashesEqual:"Il-hash ikkalkulat ma jikkorrispondix mar-remote hash",ensureMerkleRootEqual:"Merkle root ma taqbilx mar-remote hash",ensureNotExpired:"Dan iċ-ċertifikat skada",ensureValidReceipt:"L-irċevuta hija malformata. Kien hemm problema fin-navigazzjoni tal-merkle tree fl-irċevuta",failedJsonLdNormalization:"In-normalizzazzjoni ta' JSON-LD ma rnexxietx",foundUnmappedFields:"Instabu unmapped fields matul in-normalizzazzjoni JSON-LD",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"L-indirizz elettroniku tal-ħruġ speċifikat inħoloq wara li seħħet it-tranżazzjoni.",invalidIssuingAddressRevoked:"L-indirizz elettroniku tal-ħruġ speċifikat ġie revokat mill-emittent qabel ma seħħet it-tranżazzjoni.",invalidIssuingAddressExpired:"L-indirizz elettroniku tal-ħruġ speċifikat skada qabel ma seħħet it-tranżazzjoni.",invalidIssuingAddressUnknown:"L-indirizz elettroniku użat biex jinħarġu dawn il-Blockcerts ma jappartjenix għall-emittent mitlub.",getChain:"Iċ-chain value ma ntgħarafx",getIssuerProfile:"Mhux possibbli jinkiseb il-profil tal-emittent",getRevokedAssertions:"Mhux possibbli jinkisbu dikjarazzjonijiet revokati",getTransactionId:"Dan iċ-ċertifikat ma jistax jiġi vverifikat mingħajr ID ta' tranżazzjoni mqabbla miegħu",invalidMerkleReceipt:"Irċevuta Merkle invalida. Il-proof hash ma kienx jaqbel mal-Merkle root",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Dan iċ-ċertifikat ma jistax jiġi vverifikat mingħajr ID ta' tranżazzjoni mqabbla miegħu",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Ma jistax jiġi estratt JSON mid-data tal-identifikazzjoni tal-emittent",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance."}},"it-IT":{steps:{formatValidationLabel:"Convalidare formato",formatValidationLabelPending:"Convalida formato",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Verificare stato",statusCheckLabelPending:"Verifica stato del record"},subSteps:{getTransactionIdLabel:"Ottenere ID transazione",getTransactionIdLabelPending:"Ottieni ID transazione",computeLocalHashLabel:"Calcolare hash locale",computeLocalHashLabelPending:"Calcola hash locale",fetchRemoteHashLabel:"Recuperare hash remoto",fetchRemoteHashLabelPending:"Recupera hash remoto",getIssuerProfileLabel:"Ottenere profilo issuer",getIssuerProfileLabelPending:"Ottieni profilo issuer",parseIssuerKeysLabel:"Analizzare chiavi issuer",parseIssuerKeysLabelPending:"Analizza chiavi issuer",compareHashesLabel:"Confrontare gli hash",compareHashesLabelPending:"Confronto hash",checkDocumentSignatureLabel:"Check document signature",checkDocumentSignatureLabelPending:"Checking document signature",checkMerkleRootLabel:"Controllare radice di Merkle",checkMerkleRootLabelPending:"Controllo radice di Merkle",checkReceiptLabel:"Verificare ricevuta",checkReceiptLabelPending:"Verifica ricevuta",checkAuthenticityLabel:"Verificare autenticità",checkAuthenticityLabelPending:"Verifica autenticità",checkRevokedStatusLabel:"Verificare stato revocato",checkRevokedStatusLabelPending:"Verifica stato revocato",checkExpiresDateLabel:"Verificare data di scadenza",checkExpiresDateLabelPending:"Verifica data di scadenza",controlVerificationMethodLabel:"Control Verification Method",controlVerificationMethodLabelPending:"Controlling Verification Method",retrieveVerificationMethodPublicKeyLabel:"Extract Public Key from DID Document",retrieveVerificationMethodPublicKeyLabelPending:"Extracting Public Key from DID Document",deriveIssuingAddressFromPublicKeyLabel:"Derive Issuing Address from Public Key",deriveIssuingAddressFromPublicKeyLabelPending:"Deriving Issuing Address from Public Key",compareIssuingAddressLabel:"Compare addresses",compareIssuingAddressLabelPending:"Comparing addresses",checkImagesIntegrityLabel:"Verify Images Integrity",checkImagesIntegrityLabelPending:"Verifying Images Integrity"},revocation:{preReason:"Motivo indicato:",reason:"Questo certificato è stato revocato dall'emittente."},success:{mocknet:{label:"Questo Blockcert simulato ha superato tutti i controlli.",description:"La modalità Mocknet è utilizzata solo dagli emittenti per testare il loro flusso di lavoro localmente. Questo Blockcert non è stato registrato su una blockchain e non dovrebbe essere considerato un Blockcert verificato."},blockchain:{label:"Verificato",description:"Questo è un certificato ${chain} valido.",linkText:"Vedi la transazione"},generic:{label:"Verificato",description:"The ${SIGNATURE_TYPE} signature of this document has been successfully verified."},multisign:{label:"Verificato",description:"All the signatures of this certificate have successfully verified."}},errors:{certificateNotValid:"Questo non è un certificato valido",couldNotConfirmTx:"Impossibile confermare la transazione",ensureHashesEqual:"L'hash calcolato non corrisponde all'hash remoto",ensureMerkleRootEqual:"La radice di Merkle non corrisponde all'hash remoto.",ensureNotExpired:"Questo certificato è scaduto.",ensureValidReceipt:"La ricevuta è malformata. C'è stato un problema nella navigazione dell'albero di Merkle nella ricevuta.",failedJsonLdNormalization:"Normalizzazione JSON-LD fallita",foundUnmappedFields:"Campi non mappati trovati durante la normalizzazione JSON-LD",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"The specified issuing address was created after the transaction occurred.",invalidIssuingAddressRevoked:"The specified issuing address was revoked by the issuer before the transaction occurred.",invalidIssuingAddressExpired:"The specified issuing address expired before the transaction occurred.",invalidIssuingAddressUnknown:"The address used to issue this Blockcerts does not belong to the claimed issuer.",getChain:"Il valore della catena non è stato riconosciuto",getIssuerProfile:"Impossibile ottenere il profilo dell'emittente",getRevokedAssertions:"Impossibile ottenere le asserzioni di revoca",getTransactionId:"Impossibile verificare questo certificato senza un ID transazione da confrontare.",invalidMerkleReceipt:"Ricevuta Merkle non valida. L'hash di prova non corrisponde alla radice di Merkle",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Impossibile verificare questo certificato senza un ID transazione da confrontare.",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Impossibile analizzare JSON dai dati di identificazione dell'emittente.",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance."}},ja:{steps:{formatValidationLabel:"形式の検証",formatValidationLabelPending:"形式を検証",signatureVerificationLabel:"証明の検証",signatureVerificationLabelPending:"証明を検証",identityVerificationLabel:"アイデンティティの検証",identityVerificationLabelPending:"アイデンティティを検証",statusCheckLabel:"ステータスの確認",statusCheckLabelPending:"ステータスを確認"},subSteps:{getTransactionIdLabel:"取引IDの取得",getTransactionIdLabelPending:"取引IDを取得",computeLocalHashLabel:"ローカルハッシュの算出",computeLocalHashLabelPending:"ローカルハッシュを算出",fetchRemoteHashLabel:"リモートハッシュの取得",fetchRemoteHashLabelPending:"リモートハッシュを取得",getIssuerProfileLabel:"発行者プロフィールの取得",getIssuerProfileLabelPending:"発行者プロフィールを取得",parseIssuerKeysLabel:"発行者の鍵の解析",parseIssuerKeysLabelPending:"発行者の鍵を解析",compareHashesLabel:"ハッシュの照合",compareHashesLabelPending:"ハッシュを照合",checkDocumentSignatureLabel:"Documentの署名の確認",checkDocumentSignatureLabelPending:"Documentの署名を確認",checkMerkleRootLabel:"Merkle Rootの確認",checkMerkleRootLabelPending:"Merkle Rootを確認",checkReceiptLabel:"レシートの確認",checkReceiptLabelPending:"レシートを確認",checkAuthenticityLabel:"真正性の確認",checkAuthenticityLabelPending:"真正性を確認",checkRevokedStatusLabel:"取消ステータスの確認",checkRevokedStatusLabelPending:"取消ステータスを確認",checkExpiresDateLabel:"有効期限の確認",checkExpiresDateLabelPending:"有効期限を確認",controlVerificationMethodLabel:"検証方法の設定",controlVerificationMethodLabelPending:"検証方法を設定",retrieveVerificationMethodPublicKeyLabel:"DID Documentからの公開鍵取得",retrieveVerificationMethodPublicKeyLabelPending:"DID Documentから公開鍵を取得",deriveIssuingAddressFromPublicKeyLabel:"公開鍵からの発行者アドレス取得",deriveIssuingAddressFromPublicKeyLabelPending:"公開鍵から発行者アドレスを取得",compareIssuingAddressLabel:"アドレスの照合",compareIssuingAddressLabelPending:"アドレスを照合",checkImagesIntegrityLabel:"画像の保全性の確認",checkImagesIntegrityLabelPending:"画像の保全性を確認"},revocation:{preReason:"理由:",reason:"この証明書は発行者によって取り消されました。"},success:{mocknet:{label:"このMocknetの証明書は全てのチェックを通過しました。",description:"Mocknetの証明書はテスト用のものです。ブロックチェーンに記録されず、認証可能のBlockcert証明書として扱われません。"},blockchain:{label:"認証されました",description:"この証明書は有効な${chain}の証明書です。",linkText:"取引を確認する"},generic:{label:"認証されました",description:"このdocumentの${SIGNATURE_TYPE}の署名の確認に成功しました。"},multisign:{label:"認証されました",description:"この証明書の全ての署名の確認に成功しました。"}},errors:{certificateNotValid:"この証明書は無効です",couldNotConfirmTx:"取引を確認できませんでした",ensureHashesEqual:"算出されたハッシュがリモートハッシュと一致しませんでした",ensureMerkleRootEqual:"Merkle rootがリモートハッシュと一致しませんでした",ensureNotExpired:"この証明書の有効期限が切れています",ensureValidReceipt:"レシートに異常があります。レシート内のMerkle treeを辿る際に問題が発生しました。",failedJsonLdNormalization:"JSON-LDの正規化に失敗しました",foundUnmappedFields:"JSON-LDの正規化時にマップされていないフィールドを検出しました",identityErrorBaseMessage:"発行者アイデンティティが一致しませんでした",deriveIssuingAddressFromPublicKey:"DID認証未対応のブロックチェーンです",controlVerificationMethod:"発行者から提供されたアイデンティティdocumentが認証方法と一致していません",retrieveVerificationMethodPublicKey:"発行者から提供されたアイデンティティdocumentが認証方法を参照していません",compareIssuingAddress:"提供された認証方法は発行者アイデンティティと一致していません",invalidIssuingAddressCreationTime:"指定の発行者アドレスは取引が行われた後に生成されました。",invalidIssuingAddressRevoked:"指定の発行者アドレスは取引が行われた前に発行者によって取消されました。",invalidIssuingAddressExpired:"指定の発行者アドレスは取引が行われた前に有効期限が切れました。",invalidIssuingAddressUnknown:"このBlockcert証明書の発行に使用されたアドレスは指定の発行者が所有していません。",getChain:"チェーンの値を認識できませんでした",getIssuerProfile:"発行者プロフィールを取得できません",getRevokedAssertions:"取消assertionsを取得できません",getTransactionId:"照合のための取引IDがないため、この証明書を認証できません。",invalidMerkleReceipt:"Merkleレシートが無効です。証明ハッシュがMerkle rootと一致しませんでした。",invalidMerkleVersion:"署名に使用されたMerkleのバージョンはBlockcertsのバージョンに対応できません。",isTransactionIdValid:"照合するための取引IDがないため、この証明書を認証できません。",issuerProfileNotSet:"発行者アドレスが提供されませんでした",issuerProfileInvalid:"取得されたファイルが有効なプロフィールではないようです",parseIssuerKeys:"発行者識別データからJSONの解析ができません",checkImagesIntegrity:"データが発行後に変更されたことが画像保全性の検証によって証明されました。"}}};function cs(e,t){return e&&t?ss[as.locale]?ss[as.locale][e]?ss[as.locale][e][t]?ss[as.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]":""}function us(){return Object.keys(ss)}var ls=Object.freeze({__proto__:null,detectLocale:function(){return navigator.language||ns.locale},ensureIsSupported:function(e){let t;const i=Ns.i18n.getSupportedLanguages().map((e=>e.toLowerCase()));if(t=i.includes(e.toLowerCase()),!t){const r=e.substr(0,2).toLowerCase(),n=i.map((e=>e.split("-")[0])).indexOf(r);t=n>-1,t&&(e=i[n])}return t||(e=ns.locale),function(e){const t=e.split("-");return t.length>1?`${t[0].toLowerCase()}-${t[1].toUpperCase()}`:t[0].toLowerCase()}(e)},getComposedText:function(e,t){return cs(e,t)},getSupportedLanguages:us,getText:cs});class ds{publicKey;created;revoked;expires;constructor(e,t,i,r){this.publicKey=e,this.created=t,this.revoked=i,this.expires=r}}class ps{image;jobTitle;name;constructor(e,t,i){this.image=e,this.jobTitle=t,this.name=i}}class hs extends Error{stepCode;constructor(e,t){super(t),this.stepCode=e}}const fs=ss[as.locale];var gs,bs;function ms(){return{[gs.formatValidation]:{code:gs.formatValidation,label:fs.steps.formatValidationLabel,labelPending:fs.steps.formatValidationLabelPending,subSteps:[]},[gs.proofVerification]:{code:gs.proofVerification,label:fs.steps.signatureVerificationLabel,labelPending:fs.steps.signatureVerificationLabelPending,subSteps:[]},[gs.identityVerification]:{code:gs.identityVerification,label:fs.steps.identityVerificationLabel,labelPending:fs.steps.identityVerificationLabelPending,subSteps:[]},[gs.statusCheck]:{code:gs.statusCheck,label:fs.steps.statusCheckLabel,labelPending:fs.steps.statusCheckLabelPending,subSteps:[]}}}!function(e){e.formatValidation="formatValidation",e.proofVerification="proofVerification",e.identityVerification="identityVerification",e.statusCheck="statusCheck",e.final="final"}(gs||(gs={})),function(e){e.checkImagesIntegrity="checkImagesIntegrity",e.checkRevokedStatus="checkRevokedStatus",e.checkExpiresDate="checkExpiresDate",e.controlVerificationMethod="controlVerificationMethod"}(bs||(bs={}));var vs=Object.freeze({__proto__:null,get SUB_STEPS(){return bs},get VerificationSteps(){return gs},default:ms,final:"final"});function ys(e=[],t=[]){return e.filter((e=>t.includes(e))).filter(((e,t,i)=>i.indexOf(e)===t))}function ws(e,t){const i=e.findIndex((e=>e===t));i>-1&&e.splice(i,1)}const xs={[gs.formatValidation]:[bs.checkImagesIntegrity],[gs.proofVerification]:[],[gs.identityVerification]:[bs.controlVerificationMethod],[gs.statusCheck]:[bs.checkRevokedStatus,bs.checkExpiresDate]};function ks(e,t){return xs[e].filter((e=>t.includes(e))).map((t=>Ns.verifier.convertToVerificationSubsteps(e,t)))}function _s(e){const t=ms();return Object.keys(t).map((i=>({...t[i],subSteps:ks(i,e)})))}var Cs=Object.freeze({__proto__:null,generateRevocationReason:function(e){return e=(e=e.trim()).length>0?` ${cs("revocation","preReason")} ${e}${"."!==e.slice(-1)?".":""}`:"",`${cs("revocation","reason")}${e}`},getChain:function(e,t){const i=t||null;if(i?.anchors){const e=i.anchors[0];if(e.chain){return function(e){const t=Object.keys(at).map((e=>at[e])).find((t=>t.signatureValue===e));if(void 0===t)throw new Error(cs("errors","getChain"));return t}(e.chain)}}return function(e=""){return os.isMainnet(e)?at.bitcoin:at.testnet}(e)},getTransactionId:function(e={}){try{const{anchors:t}=e,i=t[0];if(i.sourceId)return i.sourceId;if("string"==typeof i){return i.split(":").pop()}}catch(e){throw new hs("",cs("errors","getTransactionId"))}},getTransactionLink:function(e,t){return e&&t?{rawTransactionLink:t.transactionTemplates.raw.replace(Qe,e),transactionLink:t.transactionTemplates.full.replace(Qe,e)}:null},getVerificationMap:function(e=!1,t=!1){const i=function(e,t){const i=Object.values(bs);return e||ws(i,bs.controlVerificationMethod),t||ws(i,bs.checkImagesIntegrity),i}(e,t);return{verificationProcess:i,verificationMap:_s(i)}}});var As=Object.freeze({__proto__:null,isMockChain:function(e){if(e){const t="string"==typeof e?e:e.code;return!!Object.keys(at).some((e=>e===t))&&!!at[t].test}return!1}});const Es={value:"https://dev.uniresolver.io/1.0/identifiers",set url(e){this.value=e},get url(){return this.value}};function Ss(e){return e.startsWith("did:",0)}function Ps(e){return e.startsWith("did:key:",0)}var Is;!function(e){e.ED25519="ed25519",e.SECP256K1="secp256k1"}(Is||(Is={}));const Ts={"did:key:z6Mk":Is.ED25519,"did:key:zQ3s":Is.SECP256K1};async function Ls(e){const t=e.substring(0,12);if(Ts[t]){const i=await async function(e){if(e===Is.ED25519)return await import("./did-key-ed25519.esm-1lIlZtof-Grj-JpU9.js");if(e===Is.SECP256K1)return await import("./did-key-secp256k1.esm-hA8kGTM0-G8ct6CwH.js");throw new Error("Error loading did key resolver")}(Ts[t]),{didDocument:r}=await i.resolve(e,{accept:"application/did+json"});return r}throw new Error("Unsupported did:key suite")}var Ds,Ms={...Object.freeze({__proto__:null,getIssuerProfileUrl:function(e){if(!e.service)return"";const t=e.service.find((e=>"IssuerProfile"===e.type)),i=t?.serviceEndpoint;return i??""},resolve:async function(e,t=Es.url){if(Ps(e)){return await Ls(e)}const i=await Wo({url:`${t}/${e}`});return JSON.parse(i).didDocument},resolveDidKeyDocument:Ls}),didResolver:Es};!function(e){e.DEFAULT="standby",e.FAILURE="failure",e.STARTING="starting",e.SUCCESS="success"}(Ds||(Ds={}));class Rs{code;label;labelPending;parentStep;status;constructor(e,t){this.code=t,this.label=cs("subSteps",`${t}Label`),this.labelPending=cs("subSteps",`${t}LabelPending`),this.parentStep=e,this.status=Ds.DEFAULT}}function Os(e){const t=Date.parse(e);if(t)return new Date(t);const i=function(e){let t=e.slice(0,-5).split(/\D/).map((function(e){return parseInt(e,10)||0}));t[1]-=1,t=new Date(Date.UTC.apply(Date,t));const i=e.slice(-5);let r=parseInt(i,10)/100;return"+"===i.slice(0,1)&&(r*=-1),t.setHours(t.getHours()+r),t}(e);return i||function(e){let t,i;const r=/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/.exec(e)??[];return r[1]?(t=r[1].split(/\D/).map((function(e){return parseInt(e,10)||0})),t[1]-=1,t=new Date(Date.UTC.apply(Date,t)),t.getDate()?(r[5]&&(i=parseInt(r[5],10)/100*60,r[6]&&(i+=parseInt(r[6],10)),"+"===r[4]&&(i*=-1),i&&t.setUTCMinutes(t.getUTCMinutes()+i)),t):null):null}(e)}function Bs(e){return""===e?0:Os(`${e}`).getTime()}function js(e,t=null){const i=e.created?Bs(e.created):null,r=e.revoked?Bs(e.revoked):null,n=e.expires?Bs(e.expires):null;let o=t;if(!t){o=(e.id||e.publicKey).replace("ecdsa-koblitz-pubkey:","")}return new ds(o,i,r,n)}var Fs=Object.freeze({__proto__:null,convertToVerificationSubsteps:function(e,t){return new Rs(e,t)},findVerificationSubstep:function(e,t,i=""){for(let r=0;r<t.length;r++){let n=t[r].subSteps.find((t=>t.code===e));if(n&&""===i)return n;if(t[r].suites?.length)for(let o=0;o<t[r].suites.length;o++){const a=t[r].suites[o];if(n=a.subSteps.find((t=>t.code===e)),n&&a.proofType===i)return n}}},getIssuerProfile:async function e(t){const i=cs("errors","getIssuerProfile");if(!t)throw new hs("getIssuerProfile",`${i} - ${cs("errors","issuerProfileNotSet")}`);let r;if("object"==typeof t&&(t=t.id),Ss(t))try{const i=await Ns.did.resolve(t);if(Ps(t))r=function(e){return{"@context":["https://w3id.org/openbadges/v2","https://w3id.org/blockcerts/3.0"],publicKey:[{created:(new Date).toISOString(),id:e.id.split(":").pop()}]}}(i);else{const t=Ns.did.getIssuerProfileUrl(i);t&&(r=await e(t))}return{didDocument:i,...r}}catch(e){throw console.error(e),new hs("getIssuerProfile",`${i} - ${e}`)}else if(!function(e){return/^(ftp|http|https):\/\/[^ "]+$/.test(e)}(t))throw new hs("getIssuerProfile",`${i} - ${cs("errors","issuerProfileNotSet")}`);if(r=JSON.parse(await Wo({url:t}).catch((()=>{throw new hs("getIssuerProfile",i)}))),!function(e){const t=["issuer","profile"],{type:i}=e;return!!i&&(Array.isArray(i)?i.some((e=>t.includes(e.toLowerCase()))):t.includes(i.toLowerCase()))}(r)&&!function(e){const{issuer_key:t,revocation_key:i,issuerKeys:r,revocationKeys:n}=e;return!(!t||!i)||!(!r||!n)}(r))throw new hs("getIssuerProfile",`${i} - ${cs("errors","issuerProfileInvalid")}`);return r},getRevokedAssertions:async function(e,t){if(!e)return[];const i=cs("errors","getRevokedAssertions");t&&(e=function(e,t,i){const r=e.includes("?")?"&":"?";return`${e}${r}${t}=${i}`}(e,"assertionId",encodeURIComponent(t)));try{const t=await Wo({url:e});return JSON.parse(t).revokedAssertions??[]}catch(e){throw console.error(e),new hs(bs.checkRevokedStatus,i)}},lookForTx:Sa,parseIssuerKeys:function(e){try{const t={};if("@context"in e){const i=e.publicKey??e.publicKeys;for(let e=0;e<i.length;e++){const r=js(i[e]);t[r.publicKey]=r}}else{const i=js({},(e.issuerKeys??[])[0].key);t[i.publicKey]=i}return t}catch(e){throw console.error(e),new hs("parseIssuerKeys",cs("errors","parseIssuerKeys"))}},parseRevocationKey:function(e){return e&&Object.prototype.hasOwnProperty.call(e,"revocationKeys")&&e.revocationKeys.length>0?e.revocationKeys[0].key:""}}),Ns={addresses:os,certificates:Cs,chains:As,did:Ms,i18n:ls,verifier:Fs};function zs(e){const{credentialSubject:t}=e;return t.name||""}function Vs(e){"string"==typeof e&&(e=[e]);const t=(i=function(e){return e.filter(Ze)}(e),i.find((e=>e.toLowerCase().indexOf("blockcerts")>0)));var i;if(!t)return{version:it.V3_0,versionNumber:3};const r=t.split("/").filter((e=>""!==e)),n=Object.keys($s),o=parseInt(n.filter((e=>function(e,t){return e.some((e=>e.includes(`v${t}`)||e.includes(`${t}.`)))}(r,e.toString())))[0],10);let a;switch(o){case 1:a=it.V1_2;break;case 2:a=it.V2_0;break;case 3:if(t.includes("-alpha")){a=it.V3_0_alpha;break}if(t.includes("-beta")){a=it.V3_0_beta;break}a=it.V3_0}return{versionNumber:o,version:a}}const $s={1:function(){throw new hs("","Verification of v1 certificates is not supported by this component. See the python cert-verifier for v1.1 verification or the npm package cert-verifier-js-v1-legacy for v1.2 (https://www.npmjs.com/package/@blockcerts/cert-verifier-js-v1-legacy)")},2:async function(e){const{id:t,expires:i,badge:r}=e,{image:n,name:o,description:a,subtitle:s,issuer:c}=r,u=e.recipientProfile??e.recipient.recipientProfile,l=e.issuedOn,d=e.metadataJson,p=u.name,h=function(e){const t=[];for(const i in e){const r=e[i],n=new ps(r.image,r.jobTitle,r.name);t.push(n)}return t}(r.signatureLines),f=await Ns.verifier.getIssuerProfile(c);return{certificateImage:n,description:a,expires:i,id:t,issuedOn:l,issuer:f,metadataJson:d,name:o,recipientFullName:p,recordLink:t,revocationKey:null,sealImage:f.image,signatureImage:h,subtitle:s}},3:async function(e){const{issuer:t,metadataJson:i,metadata:r,issuanceDate:n,id:o,expirationDate:a,display:s}=e,c=r??i;return{display:s,expires:a,issuedOn:n,id:o,issuer:await Ns.verifier.getIssuerProfile(t),metadataJson:c,recipientFullName:zs(e),recordLink:o}}};function Us(e){if(Array.isArray(e)){return e.find((e=>"ChainedProof2021"!==e.type)).verificationMethod}return e.verificationMethod}var Hs;!function(e){e.MerkleProof2017="MerkleProof2017",e.MerkleProof2019="MerkleProof2019",e.Ed25519Signature2020="Ed25519Signature2020",e.EcdsaSecp256k1Signature2019="EcdsaSecp256k1Signature2019"}(Hs||(Hs={}));class qs{expires;id;issuer;revocationKey;documentToVerify;explorerAPIs;txData;_stepsStatuses=[];hashlinkVerifier;verificationSteps;supportedVerificationSuites={[Hs.MerkleProof2017]:null,[Hs.MerkleProof2019]:null,[Hs.Ed25519Signature2020]:null,[Hs.EcdsaSecp256k1Signature2019]:null};proofVerifiers=[];verificationProcess;proofMap;constructor({certificateJson:e,expires:t,hashlinkVerifier:i,id:r,issuer:n,revocationKey:o,explorerAPIs:a}){this.expires=t,this.id=r,this.issuer=n,this.hashlinkVerifier=i,this.revocationKey=o,this.explorerAPIs=a,this.documentToVerify=Object.assign({},e)}getVerificationSteps(){return this.verificationSteps}getSignersData(){return this.proofVerifiers.map((e=>({signingDate:e.getSigningDate(),signatureSuiteType:e.type,issuerPublicKey:e.getIssuerPublicKey(),issuerName:e.getIssuerName(),issuerProfileDomain:e.getIssuerProfileDomain(),issuerProfileUrl:e.getIssuerProfileUrl(),chain:e.getChain?.(),transactionId:e.getTransactionIdString?.(),transactionLink:e.getTransactionLink?.(),rawTransactionLink:e.getRawTransactionLink?.()})))}async init(){await this.instantiateProofVerifiers(),this.prepareVerificationProcess()}async verifyProof(){for(let e=0;e<this.proofVerifiers.length;e++)await this.proofVerifiers[e].verifyProof()}async verify(e=(()=>{})){this._stepCallback=e,this._stepsStatuses=[],await this.verifyProof();for(const e of this.verificationProcess){if(!this[e])return void console.error("verification logic for",e,"not implemented");await this[e]()}for(let e=0;e<this.proofVerifiers.length;e++)await this.proofVerifiers[e].verifyIdentity();const t=this._stepsStatuses.find((e=>e.status===Ds.FAILURE));return t?this._failed(t):this._succeed()}getRevocationListUrl(){return this.issuer.revocationList}getProofTypes(){const e=[];return this.proofMap.forEach((t=>{let{type:i}=t;"ChainedProof2021"===i&&(i=t.chainedProofType),Array.isArray(i)&&(i=i[0]),e.push(i)})),e}getProofMap(e){const t=new Map;return"proof"in e?Array.isArray(e.proof)?e.proof.forEach(((e,i)=>t.set(i,e))):t.set(0,e.proof):"signature"in e&&t.set(0,e.signature),t}async instantiateProofVerifiers(){this.proofMap=this.getProofMap(this.documentToVerify);const e=this.getProofTypes(),t=function(e=[],t=[]){return t.filter((t=>!e.includes(t)))}(Object.keys(this.supportedVerificationSuites),e);if(t.length)throw new Error(`No support for proof verification of type: ${t.join(", ")}`);await this.loadRequiredVerificationSuites(e),this.proofMap.forEach(((t,i)=>{const r={executeStep:this.executeStep.bind(this),document:this.documentToVerify,proof:t,explorerAPIs:this.explorerAPIs,issuer:this.issuer};this.proofVerifiers.push(new this.supportedVerificationSuites[e[i]](r))}));for(const e of this.proofVerifiers)await e.init()}async loadRequiredVerificationSuites(e){if(e.includes(Hs.MerkleProof2017)){const{default:e}=await import("./MerkleProof2017-Ub6_JUVj-x8awkeml.js");this.supportedVerificationSuites.MerkleProof2017=e}if(e.includes(Hs.MerkleProof2019)){const{default:e}=await import("./MerkleProof2019-QUwyEIHd-iYt21yPG.js");this.supportedVerificationSuites.MerkleProof2019=e}if(e.includes(Hs.Ed25519Signature2020)){const{default:e}=await import("./Ed25519Signature2020-IJ4ybcbU--hEL5-Pa.js");this.supportedVerificationSuites.Ed25519Signature2020=e}if(e.includes(Hs.EcdsaSecp256k1Signature2019)){const{default:e}=await import("./EcdsaSecp256k1Signature2019-XwuS-fWx-7dFfMy74.js");this.supportedVerificationSuites.EcdsaSecp256k1Signature2019=e}}prepareVerificationProcess(){const e=Ns.certificates.getVerificationMap(!!this.issuer.didDocument,this.hashlinkVerifier?.hasHashlinksToVerify()??!1);this.verificationSteps=e.verificationMap,this.verificationProcess=e.verificationProcess,this.registerSignatureVerificationSteps(),this.registerIdentityVerificationSteps(),this.verificationSteps=this.verificationSteps.filter((e=>e.subSteps?.length>0||e.suites?.some((e=>e.subSteps.length>0))))}registerSignatureVerificationSteps(){const e=gs.proofVerification;this.verificationSteps.find((t=>t.code===e)).suites=this.getSuiteSubsteps(e)}getSuiteSubsteps(e){const t={[gs.proofVerification]:"getProofVerificationSteps",[gs.identityVerification]:"getIdentityVerificationSteps"};return this.proofVerifiers.map((i=>({proofType:i.type,subSteps:i[t[e]](e)})))}registerIdentityVerificationSteps(){const e=gs.identityVerification;this.verificationSteps.find((t=>t.code===e)).suites=this.getSuiteSubsteps(e)}async executeStep(e,t,i){if(!this._isFailing()){e&&this._updateStatusCallback(e,Ds.STARTING,i);try{const r=await t();return e&&(this._updateStatusCallback(e,Ds.SUCCESS,i),this._stepsStatuses.push({code:e,status:Ds.SUCCESS})),r}catch(t){console.error(t),e&&(this._updateStatusCallback(e,Ds.FAILURE,i,t.message),this._stepsStatuses.push({code:e,message:t.message,status:Ds.FAILURE}))}}}_stepCallback(e){}async checkImagesIntegrity(){await this.executeStep(bs.checkImagesIntegrity,(async()=>{await this.hashlinkVerifier.verifyHashlinkTable().catch((e=>{throw console.error("hashlink verification error",e),new hs(bs.checkImagesIntegrity,cs("errors","checkImagesIntegrity"))}))}))}async checkRevokedStatus(){if(this.documentToVerify.credentialStatus){const{default:e}=await import("./checkRevocationStatusList2021-d1qO1xnj-DH6pO-9Q.js");return void await this.executeStep(bs.checkRevokedStatus,(async()=>{await e(this.documentToVerify.credentialStatus)}))}const e=this.getRevocationListUrl();if(!e)return console.warn("No revocation list url was set on the issuer."),void await this.executeStep(bs.checkRevokedStatus,(()=>!0));const t=await this.executeStep(null,(async()=>await Ns.verifier.getRevokedAssertions(e,this.id))),{default:i}=await import("./ensureNotRevoked-2QGGtBqy-t8Yk4QI-.js");await this.executeStep(bs.checkRevokedStatus,(()=>{i(t,this.id)}))}async checkExpiresDate(){await this.executeStep(bs.checkExpiresDate,(()=>{!function(e=null){if(!e)return;const t=Bs(e);if((new Date).getTime()>=t)throw new hs(bs.checkExpiresDate,cs("errors","ensureNotExpired"))}(this.expires)}))}async controlVerificationMethod(){if(!this.issuer.didDocument)return;const{default:e}=await import("./controlVerificationMethod-6GJtYmqY-Ivo3O8nb.js");await this.executeStep(bs.controlVerificationMethod,(()=>{e(this.issuer.didDocument,Us(this.documentToVerify.proof))}))}findStepFromVerificationProcess(e,t){return Ns.verifier.findVerificationSubstep(e,this.verificationSteps,t)}_failed(e){const{message:t}=e;return this._setFinalStep({status:Ds.FAILURE,message:t})}_isFailing(){return this._stepsStatuses.some((e=>e.status===Ds.FAILURE))}_succeed(){let e;return 1===this.proofVerifiers.length&&(e=this.proofVerifiers[0].type.includes("MerkleProof")?Ns.chains.isMockChain(this.proofVerifiers[0].getChain())?Ns.i18n.getComposedText("success","mocknet"):Ns.i18n.getComposedText("success","blockchain"):{...Ns.i18n.getComposedText("success","generic"),description:Ns.i18n.getComposedText("success","generic").description.replace("${SIGNATURE_TYPE}",this.proofVerifiers[0].type)}),this.proofVerifiers.length>1&&(e=Ns.i18n.getComposedText("success","multisign")),this._setFinalStep({status:Ds.SUCCESS,message:e})}_setFinalStep({status:e,message:t}){return{code:gs.final,status:e,message:t}}_updateStatusCallback(e,t,i="",r=""){if(null!=e){const n=this.findStepFromVerificationProcess(e,i);if(void 0===n)return void console.warn("step with code",e,"was not found for suite",i,"ignoring but you should not.");const o={code:e,status:t,parentStep:n.parentStep,label:n.labelPending};r&&(o.errorMessage=r),this._stepCallback(o)}}}var Ks={exports:{}};!function(e,t){var i="__lodash_hash_undefined__",r=9007199254740991,n="[object Arguments]",o="[object Boolean]",a="[object Date]",s="[object Function]",c="[object GeneratorFunction]",u="[object Map]",l="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",f="[object Set]",g="[object String]",b="[object Symbol]",m="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",_="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",E="[object Uint8ClampedArray]",S="[object Uint16Array]",P="[object Uint32Array]",I=/\w*$/,T=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,D={};D[n]=D["[object Array]"]=D[v]=D[y]=D[o]=D[a]=D[w]=D[x]=D[k]=D[_]=D[C]=D[u]=D[l]=D[d]=D[h]=D[f]=D[g]=D[b]=D[A]=D[E]=D[S]=D[P]=!0,D["[object Error]"]=D[s]=D[m]=!1;var M="object"==typeof ji&&ji&&ji.Object===Object&&ji,R="object"==typeof self&&self&&self.Object===Object&&self,O=M||R||Function("return this")(),B=t&&!t.nodeType&&t,j=B&&e&&!e.nodeType&&e,F=j&&j.exports===B;function N(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function V(e,t,i,r){var n=-1,o=e?e.length:0;for(r&&o&&(i=e[++n]);++n<o;)i=t(i,e[n],n,e);return i}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(e){var t=-1,i=Array(e.size);return e.forEach((function(e,r){i[++t]=[r,e]})),i}function H(e,t){return function(i){return e(t(i))}}function q(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var K,J=Array.prototype,G=Function.prototype,Y=Object.prototype,W=O["__core-js_shared__"],Z=(K=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",X=G.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+X.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=F?O.Buffer:void 0,re=O.Symbol,ne=O.Uint8Array,oe=H(Object.getPrototypeOf,Object),ae=Object.create,se=Y.propertyIsEnumerable,ce=J.splice,ue=Object.getOwnPropertySymbols,le=ie?ie.isBuffer:void 0,de=H(Object.keys,Object),pe=je(O,"DataView"),he=je(O,"Map"),fe=je(O,"Promise"),ge=je(O,"Set"),be=je(O,"WeakMap"),me=je(Object,"create"),ve=$e(pe),ye=$e(he),we=$e(fe),xe=$e(ge),ke=$e(be),_e=re?re.prototype:void 0,Ce=_e?_e.valueOf:void 0;function Ae(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Pe(e){this.__data__=new Ee(e)}function Ie(e,t){var i=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&qe(e)}(e)&&Q.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==n)}(e)?function(e,t){for(var i=-1,r=Array(e);++i<e;)r[i]=t(i);return r}(e.length,String):[],r=i.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||ze(a,r))||i.push(a);return i}function Te(e,t,i){var r=e[t];Q.call(e,t)&&Ue(r,i)&&(void 0!==i||t in e)||(e[t]=i)}function Le(e,t){for(var i=e.length;i--;)if(Ue(e[i][0],t))return i;return-1}function De(e,t,i,r,p,m,T){var L;if(r&&(L=m?r(e,p,m,T):r(e)),void 0!==L)return L;if(!Ge(e))return e;var M=He(e);if(M){if(L=function(e){var t=e.length,i=e.constructor(t);t&&"string"==typeof e[0]&&Q.call(e,"index")&&(i.index=e.index,i.input=e.input);return i}(e),!t)return function(e,t){var i=-1,r=e.length;t||(t=Array(r));for(;++i<r;)t[i]=e[i];return t}(e,L)}else{var R=Ne(e),O=R==s||R==c;if(Ke(e))return function(e,t){if(t)return e.slice();var i=new e.constructor(e.length);return e.copy(i),i}(e,t);if(R==d||R==n||O&&!m){if($(e))return m?e:{};if(L=function(e){return"function"!=typeof e.constructor||Ve(e)?{}:(t=oe(e),Ge(t)?ae(t):{});var t}(O?{}:e),!t)return function(e,t){return Oe(e,Fe(e),t)}(e,function(e,t){return e&&Oe(t,Ye(t),e)}(L,e))}else{if(!D[R])return m?e:{};L=function(e,t,i,r){var n=e.constructor;switch(t){case v:return Re(e);case o:case a:return new n(+e);case y:return function(e,t){var i=t?Re(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,r);case w:case x:case k:case _:case C:case A:case E:case S:case P:return function(e,t){var i=t?Re(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}(e,r);case u:return function(e,t,i){var r=t?i(U(e),!0):U(e);return V(r,N,new e.constructor)}(e,r,i);case l:case g:return new n(e);case h:return function(e){var t=new e.constructor(e.source,I.exec(e));return t.lastIndex=e.lastIndex,t}(e);case f:return function(e,t,i){var r=t?i(q(e),!0):q(e);return V(r,z,new e.constructor)}(e,r,i);case b:return s=e,Ce?Object(Ce.call(s)):{}}var s}(e,R,De,t)}}T||(T=new Pe);var B=T.get(e);if(B)return B;if(T.set(e,L),!M)var j=i?function(e){return function(e,t,i){var r=t(e);return He(e)?r:function(e,t){for(var i=-1,r=t.length,n=e.length;++i<r;)e[n+i]=t[i];return e}(r,i(e))}(e,Ye,Fe)}(e):Ye(e);return function(e,t){for(var i=-1,r=e?e.length:0;++i<r&&!1!==t(e[i],i,e););}(j||e,(function(n,o){j&&(n=e[o=n]),Te(L,o,De(n,t,i,r,o,e,T))})),L}function Me(e){return!(!Ge(e)||(t=e,Z&&Z in t))&&(Je(e)||$(e)?te:T).test($e(e));var t}function Re(e){var t=new e.constructor(e.byteLength);return new ne(t).set(new ne(e)),t}function Oe(e,t,i,r){i||(i={});for(var n=-1,o=t.length;++n<o;){var a=t[n],s=r?r(i[a],e[a],a,i,e):void 0;Te(i,a,void 0===s?e[a]:s)}return i}function Be(e,t){var i,r,n=e.__data__;return("string"==(r=typeof(i=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof t?"string":"hash"]:n.map}function je(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(i)?i:void 0}Ae.prototype.clear=function(){this.__data__=me?me(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(me){var r=t[e];return r===i?void 0:r}return Q.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Q.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?i:t,this},Ee.prototype.clear=function(){this.__data__=[]},Ee.prototype.delete=function(e){var t=this.__data__,i=Le(t,e);return!(i<0)&&(i==t.length-1?t.pop():ce.call(t,i,1),!0)},Ee.prototype.get=function(e){var t=this.__data__,i=Le(t,e);return i<0?void 0:t[i][1]},Ee.prototype.has=function(e){return Le(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var i=this.__data__,r=Le(i,e);return r<0?i.push([e,t]):i[r][1]=t,this},Se.prototype.clear=function(){this.__data__={hash:new Ae,map:new(he||Ee),string:new Ae}},Se.prototype.delete=function(e){return Be(this,e).delete(e)},Se.prototype.get=function(e){return Be(this,e).get(e)},Se.prototype.has=function(e){return Be(this,e).has(e)},Se.prototype.set=function(e,t){return Be(this,e).set(e,t),this},Pe.prototype.clear=function(){this.__data__=new Ee},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Ee){var r=i.__data__;if(!he||r.length<199)return r.push([e,t]),this;i=this.__data__=new Se(r)}return i.set(e,t),this};var Fe=ue?H(ue,Object):function(){return[]},Ne=function(e){return ee.call(e)};function ze(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||L.test(e))&&e>-1&&e%1==0&&e<t}function Ve(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function $e(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ue(e,t){return e===t||e!=e&&t!=t}(pe&&Ne(new pe(new ArrayBuffer(1)))!=y||he&&Ne(new he)!=u||fe&&Ne(fe.resolve())!=p||ge&&Ne(new ge)!=f||be&&Ne(new be)!=m)&&(Ne=function(e){var t=ee.call(e),i=t==d?e.constructor:void 0,r=i?$e(i):void 0;if(r)switch(r){case ve:return y;case ye:return u;case we:return p;case xe:return f;case ke:return m}return t});var He=Array.isArray;function qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Je(e)}var Ke=le||function(){return!1};function Je(e){var t=Ge(e)?ee.call(e):"";return t==s||t==c}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return qe(e)?Ie(e):function(e){if(!Ve(e))return de(e);var t=[];for(var i in Object(e))Q.call(e,i)&&"constructor"!=i&&t.push(i);return t}(e)}e.exports=function(e){return De(e,!0,!0)}}(Ks,Ks.exports);var Js=Fi(Ks.exports);function Gs(e){return Js(e)}function Ys(e){return e===Object(e)}function Ws(e){return[...e.matchAll(/hl:{1}[a-zA-Z0-9]+:{1}[a-zA-Z0-9]+/gm)].map((e=>e[0])).filter((e=>!!e))}async function Zs(e,t){const i=Ws(e);if(i.length){const r=await async function(e,t){return(await Promise.all(e.map((async e=>await t.decode(e))))).reduce((function(e,t){return e.push(t.meta.url[0]),e}),[])}(i,t);e=function(e,t,i){return t.forEach(((t,r)=>{e=e.replace(i[r],t)})),e}(e,r,i)}return e}class Xs{certificateImage;certificateJson;description;display;expires;explorerAPIs=[];id;isFormatValid;issuedOn;issuer;locale;metadataJson;name;options;recipientFullName;recordLink;revocationKey;sealImage;signature;signatureImage;signers=[];subtitle;hashlinkVerifier;hasHashlinks=!1;verificationSteps;verifier;constructor(e,t={}){if(this._setOptions(t),"object"!=typeof e)try{e=JSON.parse(e)}catch(e){throw new Error(Ns.i18n.getText("errors","certificateNotValid"))}this.certificateJson=Gs(e)}async init(){if(this.certificateJson.display?.content){Ws(this.certificateJson.display.content).length&&await import("./HashlinkVerifier-wyKYZ83G-bzhltPG4.js").then((e=>{this.hashlinkVerifier=new e.HashlinkVerifier}))}await this.parseJson(this.certificateJson),this.verifier=new qs({certificateJson:this.certificateJson,expires:this.expires,id:this.id,issuer:this.issuer,hashlinkVerifier:this.hashlinkVerifier,revocationKey:this.revocationKey,explorerAPIs:Gs(this.explorerAPIs)}),await this.verifier.init(),this.verificationSteps=this.verifier.getVerificationSteps()}async verify(e){const t=await this.verifier.verify(e);return this.setSigners(),t}async parseJson(e){const t=await async function(e){try{const t=Vs(e["@context"]),i=await $s[t.versionNumber](e);return i.isFormatValid=!0,i}catch(e){return console.error(e),{isFormatValid:!1,error:e.message}}}(e);if(!t.isFormatValid)throw new Error(t.error);await this._setProperties(t)}setSigners(){this.signers=this.verifier.getSignersData()}_setOptions(e){this.options=Object.assign({},ns,e),this.locale=Ns.i18n.ensureIsSupported("auto"===this.options.locale?Ns.i18n.detectLocale():this.options.locale),this.explorerAPIs=this.options.explorerAPIs??[],e.didResolverUrl&&(Ns.did.didResolver.url=e.didResolverUrl),as.locale=this.locale}async _setProperties({certificateImage:e,description:t,display:i,expires:r,id:n,isFormatValid:o,issuedOn:a,issuer:s,metadataJson:c,name:u,recipientFullName:l,recordLink:d,revocationKey:p,sealImage:h,signature:f,signatureImage:g,subtitle:b}){this.isFormatValid=o,this.certificateImage=e,this.description=t,this.expires=r,this.id=n,this.issuedOn=a,this.issuer=s,this.metadataJson=c,this.name=u,this.recipientFullName=l,this.recordLink=d,this.revocationKey=p,this.sealImage=h,this.signature=f,this.signatureImage=g,this.subtitle=b,this.display=await this.parseHashlinksInDisplay(i)}async parseHashlinksInDisplay(e){const t=Gs(e);if(t)return"text/html"!==t.contentMediaType||(t.content=await Zs(t.content,this.hashlinkVerifier)),t}}var Qs=Object.freeze({__proto__:null,BLOCKCHAINS:at,CERTIFICATE_VERSIONS:it,Certificate:Xs,STEPS:vs,SignatureImage:ps,get VERIFICATION_STATUSES(){return Ds},VerificationSubstep:Rs,getSupportedLanguages:us,retrieveBlockcertsVersion:Vs});var ec=function(e,t){return ec=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},ec(e,t)};function tc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}ec(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var ic=function(){return ic=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},ic.apply(this,arguments)};function rc(e,t,i,r){return new(i||(i=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function nc(e){return/^(ftp|http|https):\/\/[^ "]+$/.test(e)}function oc(e){return/^(\.\/|\.\.\/|[A-Z]:\/\/|\/)[^ "]+$/.test(e)}function ac(){return{certificateDefinition:null,errorMessage:"errors.invalidBlockcertsUrl"}}var sc=Object.freeze({__proto__:null,displayHtmlHasNoWidthConstraint:Ge,download:function(e){return e+Ye},initializeVerificationSteps:function(e){const t=JSON.parse(JSON.stringify(e.verificationSteps));return t.map(((e,i)=>Object.assign(Object.assign({},e),{isLast:i===t.length-1,status:Ds.DEFAULT})))},isPathToCertificateValidURI:function(e){return nc(e)||oc(e)},parse:function(e,t={}){return rc(this,void 0,void 0,(function*(){t.locale||(t.locale="auto");try{const{retrieveBlockcertsVersion:i,Certificate:r}=yield Promise.resolve().then((function(){return Qs}));let n;if(1===i(e["@context"]).versionNumber){const{Certificate:i}=yield import("./index-UlvMASNZ.js").then((function(e){return e.h}));n=new i(e,t)}else n=new r(e,t);return yield n.init(),{certificateDefinition:n}}catch(e){return console.error(e),{certificateDefinition:null,errorMessage:"errors.invalidBlockcerts"}}}))},read:function(e){return rc(this,void 0,void 0,(function*(){if(!e)return;const t=yield function(e){return rc(this,void 0,void 0,(function*(){return yield new Promise((function(t,i){const r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=r.onabort=i,r.readAsText(e)}))}))}(e);return t}))},retrieve:function(e){return rc(this,void 0,void 0,(function*(){if(!nc(e)&&!oc(e))return console.error("Invalid url to retrieve:",e),null;const t=e+Ye;return yield fetch(t).then((e=>rc(this,void 0,void 0,(function*(){return yield e.text()})))).then((e=>{try{return{certificateDefinition:JSON.parse(e)}}catch(e){return console.log(e),{certificateDefinition:null,errorMessage:"errors.invalidBlockcertsUrl"}}})).catch(ac)}))}});var cc=((e={})=>{if(!window.Proxy){const t=function(){let e=null;function t(e){return!!e&&("object"==typeof e||"function"==typeof e)}const i=function(i,r){if(!t(i)||!t(r))throw new TypeError("Cannot create proxy with a non-object as target or handler");let n=function(){};e=function(){n=function(e){throw new TypeError(`Cannot perform '${e}' on a proxy that has been revoked`)}};const o=r;r={get:null,set:null,apply:null,construct:null};for(const e in o)e in r&&(r[e]=o[e]);"function"==typeof o&&(r.apply=o.apply.bind(o));let a=this,s=!1,c=!1;"function"==typeof i?(a=function(){const e=this&&this.constructor===a,t=Array.prototype.slice.call(arguments);return n(e?"construct":"apply"),e&&r.construct?r.construct.call(this,i,t):!e&&r.apply?r.apply(i,this,t):e?(t.unshift(i),new(i.bind.apply(i,t))):i.apply(this,t)},s=!0):i instanceof Array&&(a=[],c=!0);const u=r.get?function(e){return n("get"),r.get(this,e,a)}:function(e){return n("get"),this[e]},l=r.set?function(e,t){n("set"),r.set(this,e,t,a)}:function(e,t){n("set"),this[e]=t},d=Object.getOwnPropertyNames(i),p={};d.forEach((function(e){if((s||c)&&e in a)return;const t={enumerable:!!Object.getOwnPropertyDescriptor(i,e).enumerable,get:u.bind(i,e),set:l.bind(i,e)};Object.defineProperty(a,e,t),p[e]=!0}));let h=!0;if(Object.setPrototypeOf?Object.setPrototypeOf(a,Object.getPrototypeOf(i)):a.__proto__?a.__proto__=i.__proto__:h=!1,r.get||!h)for(const e in i)p[e]||Object.defineProperty(a,e,{get:u.bind(i,e)});return Object.seal(i),Object.seal(a),a};return i.revocable=function(t,r){return{proxy:new i(t,r),revoke:e}},i}();return new t(e,qe)}return new Proxy(e,qe)})({certificates:sc,events:Object.freeze({__proto__:null,dispatch:function(e="",t=null,i){if(!e||"string"!=typeof e)return;if(!t||"object"!=typeof t)return;const r=new CustomEvent(e,{detail:Object.assign({certificateDefinition:t},i)});window.dispatchEvent(r)}})});function uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lc={exports:{}},dc={},pc={exports:{}},hc={};function fc(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var gc=/javascript\s*\:/gim;hc.whiteList=fc(),hc.getDefaultWhiteList=fc,hc.onAttr=function(e,t,i){},hc.onIgnoreAttr=function(e,t,i){},hc.safeAttrValue=function(e,t){return gc.test(t)?"":t};var bc={indexOf:function(e,t){var i,r;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var r,n;if(Array.prototype.forEach)return e.forEach(t,i);for(r=0,n=e.length;r<n;r++)t.call(i,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}};var mc=function(e,t){";"!==(e=bc.trimRight(e))[e.length-1]&&(e+=";");var i=e.length,r=!1,n=0,o=0,a="";function s(){if(!r){var i=bc.trim(e.slice(n,o)),s=i.indexOf(":");if(-1!==s){var c=bc.trim(i.slice(0,s)),u=bc.trim(i.slice(s+1));if(c){var l=t(n,a.length,c,u,i);l&&(a+=l+"; ")}}}n=o+1}for(;o<i;o++){var c=e[o];if("/"===c&&"*"===e[o+1]){var u=e.indexOf("*/",o+2);if(-1===u)break;n=(o=u+1)+1,r=!1}else"("===c?r=!0:")"===c?r=!1:";"===c?r||s():"\n"===c&&s()}return bc.trim(a)},vc=hc,yc=mc;function wc(e){return null==e}function xc(e){(e=function(e){var t={};for(var i in e)t[i]=e[i];return t}(e||{})).whiteList=e.whiteList||vc.whiteList,e.onAttr=e.onAttr||vc.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||vc.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||vc.safeAttrValue,this.options=e}xc.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,i=t.whiteList,r=t.onAttr,n=t.onIgnoreAttr,o=t.safeAttrValue;return yc(e,(function(e,t,a,s,c){var u=i[a],l=!1;if(!0===u?l=u:"function"==typeof u?l=u(s):u instanceof RegExp&&(l=u.test(s)),!0!==l&&(l=!1),s=o(a,s)){var d,p={position:t,sourcePosition:e,source:c,isWhite:l};return l?wc(d=r(a,s,p))?a+":"+s:d:wc(d=n(a,s,p))?void 0:d}}))};var kc=xc;!function(e,t){var i=hc,r=kc;for(var n in t=e.exports=function(e,t){return new r(t).process(e)},t.FilterCSS=r,i)t[n]=i[n];"undefined"!=typeof window&&(window.filterCSS=e.exports)}(pc,pc.exports);var _c=pc.exports,Cc=uc(_c),Ac={indexOf:function(e,t){var i,r;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var r,n;if(Array.prototype.forEach)return e.forEach(t,i);for(r=0,n=e.length;r<n;r++)t.call(i,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}},Ec=_c.FilterCSS,Sc=_c.getDefaultWhiteList,Pc=Ac;function Ic(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Tc=new Ec;function Lc(e){return e.replace(Dc,"&lt;").replace(Mc,"&gt;")}var Dc=/</g,Mc=/>/g,Rc=/"/g,Oc=/&quot;/g,Bc=/&#([a-zA-Z0-9]*);?/gim,jc=/&colon;?/gim,Fc=/&newline;?/gim,Nc=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,zc=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Vc=/u\s*r\s*l\s*\(.*/gi;function $c(e){return e.replace(Rc,"&quot;")}function Uc(e){return e.replace(Oc,'"')}function Hc(e){return e.replace(Bc,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function qc(e){return e.replace(jc,":").replace(Fc," ")}function Kc(e){for(var t="",i=0,r=e.length;i<r;i++)t+=e.charCodeAt(i)<32?" ":e.charAt(i);return Pc.trim(t)}function Jc(e){return e=Kc(e=qc(e=Hc(e=Uc(e))))}function Gc(e){return e=Lc(e=$c(e))}dc.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},dc.getDefaultWhiteList=Ic,dc.onTag=function(e,t,i){},dc.onIgnoreTag=function(e,t,i){},dc.onTagAttr=function(e,t,i){},dc.onIgnoreTagAttr=function(e,t,i){},dc.safeAttrValue=function(e,t,i,r){if(i=Jc(i),"href"===t||"src"===t){if("#"===(i=Pc.trim(i)))return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===t){if(Nc.lastIndex=0,Nc.test(i))return""}else if("style"===t){if(zc.lastIndex=0,zc.test(i))return"";if(Vc.lastIndex=0,Vc.test(i)&&(Nc.lastIndex=0,Nc.test(i)))return"";!1!==r&&(i=(r=r||Tc).process(i))}return i=Gc(i)},dc.escapeHtml=Lc,dc.escapeQuote=$c,dc.unescapeQuote=Uc,dc.escapeHtmlEntities=Hc,dc.escapeDangerHtml5Entities=qc,dc.clearNonPrintableCharacter=Kc,dc.friendlyAttrValue=Jc,dc.escapeAttrValue=Gc,dc.onIgnoreTagStripAll=function(){return""},dc.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var i=!Array.isArray(e),r=[],n=!1;return{onIgnoreTag:function(o,a,s){if(function(t){return!!i||-1!==Pc.indexOf(e,t)}(o)){if(s.isClosing){var c="[/removed]",u=s.position+10;return r.push([!1!==n?n:s.position,u]),n=!1,c}return n||(n=s.position),"[removed]"}return t(o,a,s)},remove:function(e){var t="",i=0;return Pc.forEach(r,(function(r){t+=e.slice(i,r[0]),i=r[1]})),t+=e.slice(i)}}},dc.stripCommentTag=function(e){for(var t="",i=0;i<e.length;){var r=e.indexOf("\x3c!--",i);if(-1===r){t+=e.slice(i);break}t+=e.slice(i,r);var n=e.indexOf("--\x3e",r);if(-1===n)break;i=n+3}return t},dc.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},dc.cssFilter=Tc,dc.getDefaultCSSWhiteList=Sc;var Yc={},Wc=Ac;function Zc(e){var t,i=Wc.spaceIndex(e);return t=-1===i?e.slice(1,-1):e.slice(1,i+1),"/"===(t=Wc.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function Xc(e){return"</"===e.slice(0,2)}var Qc=/[^a-zA-Z0-9\\_:.-]/gim;function eu(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"="===i?t:-1}}function tu(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"'"===i||'"'===i?t:-1}}function iu(e,t){for(;t>0;t--){var i=e[t];if(" "!==i)return"="===i?t:-1}}function ru(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}Yc.parseTag=function(e,t,i){var r="",n=0,o=!1,a=!1,s=0,c=e.length,u="",l="";e:for(s=0;s<c;s++){var d=e.charAt(s);if(!1===o){if("<"===d){o=s;continue}}else if(!1===a){if("<"===d){r+=i(e.slice(n,s)),o=s,n=s;continue}if(">"===d){r+=i(e.slice(n,o)),u=Zc(l=e.slice(o,s+1)),r+=t(o,r.length,u,l,Xc(l)),n=s+1,o=!1;continue}if('"'===d||"'"===d)for(var p=1,h=e.charAt(s-p);""===h.trim()||"="===h;){if("="===h){a=d;continue e}h=e.charAt(s-++p)}}else if(d===a){a=!1;continue}}return n<e.length&&(r+=i(e.substr(n))),r},Yc.parseAttr=function(e,t){var i=0,r=0,n=[],o=!1,a=e.length;function s(e,i){if(!((e=(e=Wc.trim(e)).replace(Qc,"").toLowerCase()).length<1)){var r=t(e,i||"");r&&n.push(r)}}for(var c=0;c<a;c++){var u,l=e.charAt(c);if(!1!==o||"="!==l)if(!1===o||c!==r)if(/\s|\n|\t/.test(l)){if(e=e.replace(/\s|\n|\t/g," "),!1===o){if(-1===(u=eu(e,c))){s(Wc.trim(e.slice(i,c))),o=!1,i=c+1;continue}c=u-1;continue}if(-1===(u=iu(e,c-1))){s(o,ru(Wc.trim(e.slice(i,c)))),o=!1,i=c+1;continue}}else;else{if(-1===(u=e.indexOf(l,c+1)))break;s(o,Wc.trim(e.slice(r+1,u))),o=!1,i=(c=u)+1}else o=e.slice(i,c),i=c+1,r='"'===e.charAt(i)||"'"===e.charAt(i)?i:tu(e,c+1)}return i<e.length&&(!1===o?s(e.slice(i)):s(o,ru(Wc.trim(e.slice(i))))),Wc.trim(n.join(" "))};var nu=_c.FilterCSS,ou=dc,au=Yc,su=au.parseTag,cu=au.parseAttr,uu=Ac;function lu(e){return null==e}function du(e){(e=function(e){var t={};for(var i in e)t[i]=e[i];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=ou.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var i in e)Array.isArray(e[i])?t[i.toLowerCase()]=e[i].map((function(e){return e.toLowerCase()})):t[i.toLowerCase()]=e[i];return t}(e.whiteList||e.allowList):e.whiteList=ou.whiteList,e.onTag=e.onTag||ou.onTag,e.onTagAttr=e.onTagAttr||ou.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||ou.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||ou.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||ou.safeAttrValue,e.escapeHtml=e.escapeHtml||ou.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new nu(e.css))}du.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,i=t.whiteList,r=t.onTag,n=t.onIgnoreTag,o=t.onTagAttr,a=t.onIgnoreTagAttr,s=t.safeAttrValue,c=t.escapeHtml,u=this.cssFilter;t.stripBlankChar&&(e=ou.stripBlankChar(e)),t.allowCommentTag||(e=ou.stripCommentTag(e));var l=!1;t.stripIgnoreTagBody&&(l=ou.StripTagBody(t.stripIgnoreTagBody,n),n=l.onIgnoreTag);var d=su(e,(function(e,t,l,d,p){var h={sourcePosition:e,position:t,isClosing:p,isWhite:Object.prototype.hasOwnProperty.call(i,l)},f=r(l,d,h);if(!lu(f))return f;if(h.isWhite){if(h.isClosing)return"</"+l+">";var g=function(e){var t=uu.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var i="/"===(e=uu.trim(e.slice(t+1,-1)))[e.length-1];return i&&(e=uu.trim(e.slice(0,-1))),{html:e,closing:i}}(d),b=i[l],m=cu(g.html,(function(e,t){var i=-1!==uu.indexOf(b,e),r=o(l,e,t,i);return lu(r)?i?(t=s(l,e,t,u))?e+'="'+t+'"':e:lu(r=a(l,e,t,i))?void 0:r:r}));return d="<"+l,m&&(d+=" "+m),g.closing&&(d+=" /"),d+=">"}return lu(f=n(l,d,h))?c(d):f}),c);return l&&(d=l.remove(d)),d};var pu=du;!function(e,t){var i=dc,r=Yc,n=pu;function o(e,t){return new n(t).process(e)}(t=e.exports=o).filterXSS=o,t.FilterXSS=n,function(){for(var e in i)t[e]=i[e];for(var n in r)t[n]=r[n]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(lc,lc.exports);var hu=uc(lc.exports);const fu={...Cc.getDefaultWhiteList(),bottom:!0,left:!0,float:!0,overflow:!0,position:!0,right:!0,top:!0,transform:!0,opacity:!0,"transform-origin":!0,"flex-direction":!0,"flex-wrap":!0,"justify-content":!0,"align-items":!0,"white-space":!0,"line-height":!0,"grid-template-columns":!0,"grid-template-rows":!0,"grid-column":!0,"grid-row":!0,"grid-area":!0,"align-self":!0,"justify-self":!0,span:!0};var gu=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,bu=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,mu=/u\s*r\s*l\s*\(.*/gi;const vu={whiteList:function(){const e=hu.getDefaultWhiteList();return Object.keys(e).forEach((t=>{e[t].push("style"),e[t].push("class"),e[t].push("download")})),e}(),css:!1,stripIgnoreTagBody:!0,onTagAttr:function(e,t,i,r){if("style"===t)return`${t}="${Cc(i,{whiteList:fu}).replace(/; /g,";")}"`;if("img"===e&&"src"===t&&function(e){return!!e.match(/^data:.+;base64,/)}(i)){const e=function(e){return e.split("base64,")[1]}(i);try{return atob(e),`${t}="${i}"`}catch(e){return t}}},safeAttrValue:function(e,t,i,r){if(i=hu.friendlyAttrValue(i),"href"===t||"src"===t){if("#"===(i=function(e){if(String.prototype.trim)return e.trim();return e.replace(/(^\s*)|(\s*$)/g,"")}(i)))return"#";if(!function(e){return["http://","https://","mailto:","tel:","data:","#","/"].some((t=>e.substr(0,t.length)===t))}(i))return""}else if("background"===t){if(gu.lastIndex=0,gu.test(i))return""}else if("style"===t){if(bu.lastIndex=0,bu.test(i))return"";if(mu.lastIndex=0,mu.test(i)&&(gu.lastIndex=0,gu.test(i)))return"";!1!==r&&(i=(r=r||hu.getDefaultCSSWhiteList()).process(i))}return i=hu.escapeAttrValue(i)}},yu=new hu.FilterXSS(vu);function wu(e){return yu.process(e)}const xu="en";var ku={locale:xu};const _u={en:{errors:{errorLabel:"Error",invalidBlockcerts:"Not a valid Blockcerts credential. Please check with the issuer or recipient that has provided this credential.",invalidBlockcertsUrl:"Not a valid credential URL.",invalidFormatDragAndDrop:"Only JSON files are accepted",invalidUrl:"This does not seem to be a valid URL.",noIssuerName:"No name provided",noMetadata:"No metadata specified for this record",noShareUrl:"No URL to share!",noTransactionId:"No transaction ID"},text:{brandName:"Blockcerts",blockcertsHint:"Visit Blockcerts website",by:"by",certified:"Certified by",closeButton:"Click to close",downloadLink:"Download Record in JSON format",downloadPDFLink:"Download Record in PDF Format",downloadPDFLinkIsLoading:"Generating PDF...",dragAndDropHint:"(you can also drag & drop your file).",fileUpload:"Choose JSON file",issued:"Issued on",issueDate:"Issue Date",issuerName:"Issuer",issuerPublicKey:"Issuer's public key",issuerProfileDomain:"Issuer's information",item:"Item",itemPlural:"Items",metadataButton:"View Metadata",metadataTitle:"Metadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Recipient",share:"Share on",shareButton:"Share on Social Networks",signatureSuiteType:"Digital signature type",signatureStatusSuccess:"This signature has been successfully verified",signatureStatusTestSuccess:"This signature has been successfully verified but has been issued on a test chain",signatureStatusFailure:"This signature yielded an error during verification",signed:"Signed by",substepsListClose:"Hide",substepsListHint:"Toggle open list of substeps",transactionId:"Transaction ID",urlInput:"Enter the certificate URL",urlInputPlaceholder:"Certificate URL",verificationStepProgress:"Verifying step...",verify:"Verify",verifyAgain:"Verify again",verifyOther:"Verify another record",viewRecord:"View Record"},date:{months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],pattern:"MM DD, YYYY"},numbers:{ordinal:["th","st","nd","rd"]}},es:{errors:{errorLabel:"Error",invalidBlockcerts:"No es una credencial válida de Blockcerts. Verifique con el emisor o el destinatario que ha proporcionado esta credencial.",invalidBlockcertsUrl:"No es URL de certificado valido.",invalidFormatDragAndDrop:"Solo se aceptan archivos JSON",invalidUrl:"Esto no parece ser un URL válido.",noIssuerName:"No nombre comunicado",noMetadata:"No se han especificado metadatos para este registro",noShareUrl:"No hay URL para compartir!",noTransactionId:"No ID de transacción"},text:{brandName:"Blockcerts",blockcertsHint:"Visite el sitio web de Blockcerts",by:"por",certified:"Certificado por",closeButton:"Haz Click para cerrar",downloadLink:"Descarga el Registro en formato JSON",downloadPDFLink:"Descarga el Registro en formato PDF",downloadPDFLinkIsLoading:"Generando PDF...",dragAndDropHint:"(también puedes arrastrar y soltar tu archivo).",fileUpload:"Escoge archivo JSON",issued:"Emitido el",issueDate:"Fecha de Emisión",issuerName:"Emisor",issuerPublicKey:"Llave publica del Emisor",issuerProfileDomain:"Información del Emisor",item:"Elemento",itemPlural:"Elementos",metadataButton:"Ver Metadata",metadataTitle:"Metadata",motto:"Blockcerts, El Estándar Abierto para Credenciales Blockchain",recipient:"Recipiente",share:"Comparte en",shareButton:"Comparte en Redes Sociales",signatureSuiteType:"Tipo de firma digital",signed:"Firmado Por",signatureStatusSuccess:"La verificación de esta firma digital ha tenido éxito",signatureStatusTestSuccess:"La verificación de esta firma digital ha tenido éxito pero se utilizó una cadena de test",signatureStatusFailure:"Error en la verificación de esta firma digital",substepsListClose:"Esconde",substepsListHint:"Pasa lista abierta de sub-pasos",transactionId:"ID de Transacción",urlInput:"Ingrese el URL del certificado",urlInputPlaceholder:"Certificado del URL",verificationStepProgress:"Paso de verificación...",verify:"Verifica",verifyAgain:"Verifica nuevamente",verifyOther:"Verifica otro registro",viewRecord:"Ver Registro"},date:{months:["enero","feb","marzo","abr","mayo","jun","jul","agosto","set","oct","nov","dic"],pattern:"MM DD, YYYY"},numbers:{ordinal:"°"}},fr:{errors:{errorLabel:"Erreur",invalidBlockcerts:"Ceci n'est pas un certificat Blockcerts valide. Veuillez s'il vous plaît contrôler avec l'organisme émetteur ou le récipiendaire de ce certificat.",invalidBlockcertsUrl:"Ceci n'est pas une URL de certificat valide.",invalidFormatDragAndDrop:"Seul le format JSON est accepté",invalidUrl:"URL invalide",noIssuerName:"Pas de nom fourni",noMetadata:"Ce certificat ne contient pas de métadata",noShareUrl:"Pas d'URL à partager!",noTransactionId:"Pas d'identifiant de transaction"},text:{brandName:"Blockcerts",blockcertsHint:"Visiter le site de Blockcerts",by:"par",certified:"Certifié par",closeButton:"Cliquer pour fermer",downloadLink:"Télécharger le certificat au format JSON",downloadPDFLink:"Télécharger le certificat au format PDF",downloadPDFLinkIsLoading:"Création du PDF...",dragAndDropHint:"(vous pouvez aussi glisser et déposer votre fichier).",fileUpload:"Choisir un fichier JSON",issued:"Émis le",issueDate:"Date d'émission",issuerName:"Émetteur",issuerPublicKey:"Clé publique de l'émetteur",issuerProfileDomain:"Profil de l'émetteur",item:"point contrôlé",itemPlural:"points contrôlés",metadataButton:"Voir les métadata",metadataTitle:"Métadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Titulaire",share:"Partager sur",shareButton:"Partager sur les réseaux sociaux",signatureSuiteType:"Type de signature numérique",signed:"Signé par",signatureStatusSuccess:"Cette signature a été vérifiée avec succès",signatureStatusTestSuccess:"Cette signature a été vérifiée avec succès mais la blockchain utilisée est de test",signatureStatusFailure:"Erreur durant la vérification de cette signature",substepsListClose:"Fermer",substepsListHint:"Afficher les sous-étapes",transactionId:"Identifiant de transaction",urlInput:"Entrez l'URL du certificat",urlInputPlaceholder:"URL du certificat",verificationStepProgress:"Vérification en cours...",verify:"Vérifier",verifyAgain:"Vérifier de nouveau",verifyOther:"Vérifier un autre certificat",viewRecord:"Voir le certificat"},date:{months:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aout","Sept","Oct","Nov","Déc"],pattern:"DD MM YYYY"},numbers:{ordinal:["ème","er"]}},it:{errors:{errorLabel:"Errore",invalidBlockcerts:"Non è una definizione valida di Blockcerts.",invalidBlockcertsUrl:"Non è un URL di certificato valido.",invalidFormatDragAndDrop:"Sono accettati solo file JSON",invalidUrl:"Questo non sembra essere un URL valido.",noIssuerName:"No name provided",noMetadata:"Nessun Metadata specificato per questo record",noShareUrl:"Non c'è un URL da condividere!",noTransactionId:"Nessun ID transazione"},text:{brandName:"Blockcerts",blockcertsHint:"Visita il sito Web Blockcerts",by:"da",certified:"Certificato da",closeButton:"Fai clic per chiudere",downloadLink:"Scarica il Record in formato JSON",downloadPDFLink:"Scarica il Record in formato JSON",downloadPDFLinkIsLoading:"Generazione PDF...",dragAndDropHint:"(puoi anche trascinare il file).",fileUpload:"Scegli il file JSON",issued:"Rilasciato il",issueDate:"Data",issuerName:"Organizzazione Issuer",issuerPublicKey:"Chiave pubblica del Issuer",issuerProfileDomain:"Informazzione del Issuer",item:"Elemento",itemPlural:"Elementi",metadataButton:"Visualizza Metadata",metadataTitle:"Metadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Titolare",share:"Condividi",shareButton:"Condividi sui Social Network",signed:"Firmato da",signatureStatusSuccess:"This signature has been successfully verified",signatureStatusTestSuccess:"This signature has been successfully verified but has been issued on a test chain",signatureStatusFailure:"This signature yielded an error during verification",signatureSuiteType:"Digital signature type",substepsListClose:"Nascondi",substepsListHint:"Mostra gli step secondari",transactionId:"ID transazione",urlInput:"Inserisci l'URL del certificato",urlInputPlaceholder:"URL del certificato",verificationStepProgress:"Step di verifica...",verify:"Verifica",verifyAgain:"Verifica di nuovo",verifyOther:"Verifica un altro record",viewRecord:"Visualizza il Record"},date:{months:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],pattern:"DD MM YYYY"},numbers:{ordinal:"°"}},ja:{errors:{errorLabel:"エラー",invalidBlockcerts:"この証明書は有効なブロックサーツ証明書ではありません。発行者、もしくはこの証明書を提供した取得者にお問合せください。",invalidBlockcertsUrl:"有効な証明書URLではありません。",invalidFormatDragAndDrop:"JSONファイルしか受理できません",invalidUrl:"このURLは無効のようです。",noIssuerName:"名前が提供されていません",noMetadata:"この証明書に該当するメタデータがありません",noShareUrl:"シェアできるURLがありません!",noTransactionId:"取引IDがありません"},text:{brandName:"Blockcerts",blockcertsHint:"Blockcertsのホームページへ移動",by:" 発行者:",certified:"証明者:",closeButton:"クリックで閉じる",downloadLink:"JSON形式で証明書をダウンロード",downloadPDFLink:"PDF形式で証明書をダウンロード",downloadPDFLinkIsLoading:"PDFを生成中...",dragAndDropHint:"(ファイルのドラッグ&ドロップも可)。",fileUpload:"JSONファイルの選択",issued:"発行時:",issueDate:"発行日:",issuerName:"発行者",issuerPublicKey:"発行者の公開鍵",issuerProfileDomain:"発行者情報",item:"項目",itemPlural:"項目",metadataButton:"メタデータの閲覧",metadataTitle:"メタデータ",motto:"Blockcerts:ブロックチェーン証明書のオープンスタンダード",recipient:"取得者",share:"シェア先:",shareButton:"SNSでシェア",signatureSuiteType:"デジタル署名の種類",signatureStatusSuccess:"この署名の認証に成功しました",signatureStatusTestSuccess:"この署名の認証に成功しましたが、発行は試用のブロックチェーンで行われました。",signatureStatusFailure:"この署名の認証中にエラーが発生しました",signed:"署名者:",substepsListClose:"閉じる",substepsListHint:"サブステップのリストを開く",transactionId:"取引ID",urlInput:"証明書URLの入力",urlInputPlaceholder:"証明書URL",verificationStepProgress:"認証ステップを実行中...",verify:"認証する",verifyAgain:"もう一度認証する",verifyOther:"別の証明書を認証する",viewRecord:"証明書を閲覧する"},date:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],pattern:"YYYY年-MM-DD日"},numbers:{ordinal:["番目","番目","番目","番目"]}}};function Cu(){return _u}function Au(e,t,i,r){if(!e)return"";if(e.includes(".")){const i=e.split(".");e=i[0],t=i[1]}if(!t)return"";i&&r>1&&(t+="Plural");const n=Cu();return n[ku.locale]?n[ku.locale][e]?n[ku.locale][e][t]?n[ku.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]"}function Eu(e){const t=Au("date","pattern");"Z"===e.slice(-1)?e=e.slice(0,e.length-1):e.includes("+")&&(e=e.split("+")[0]);const i=new Date(e);let r=function(e,t){const i=Au("date","months");return e.replace("MM",i[t])}(t,i.getMonth());return r=function(e,t){return e.replace("DD",t)}(r,i.getDate().toString(10)),r=function(e,t){return e.replace("YYYY",t)}(r,i.getFullYear().toString(10)),r}function Su(e){return e.certificateDefinition}function Pu(e){const t=Su(e);return t?t.signers:[]}function Iu(e){const t=Su(e);return t?t.issuedOn:""}function Tu(e){return Su(e)?Eu(Iu(e)):""}function Lu(e){const t=Su(e);return t?t.recipientFullName:""}function Du(e){const t=Su(e);return t?t.name:""}function Mu(e){const t=Su(e);return t?t.issuer.name:""}function Ru(e){const t=Su(e);return t?t.issuer.image:""}function Ou(e){const t=function(e){const t=Su(e);if(t)return t.certificateImage;return""}(e),i=Du(e),r=function(e){const t=Su(e);if(t)return t.subtitle;return""}(e),n=function(e){const t=Su(e);if(t)return t.description;return""}(e),o=function(e){const t=Su(e);if(t)return t.sealImage;return""}(e),a=function(e){const t=Su(e);if(t)return t.signatureImage;return null}(e),s=Lu(e),c=Mu(e),u=a.map((e=>`\n <li class='buv-c-full-certificate-signatures__signature'>\n <img class='buv-c-full-certificate-img--secondary' src='${e.image}' alt='${Au("text.signed")} ${e.jobTitle}'/>\n ${e.jobTitle?`<span class='buv-o-text-12'>${e.jobTitle}</span>`:""}\n </li>\n `));let l="";return t&&(l+=`<img class='buv-c-full-certificate-img' src='${t}' alt='${i}'/>`),l+=`\n <div class="buv-c-full-certificate__titles">\n ${s?`<h1 class='buv-c-full-certificate__title buv-c-full-certificate__title--name'>${s}</h1>`:""}\n ${i?`<h2 class='buv-c-full-certificate__title buv-c-full-certificate__title--main'>${i}</h2>`:""}\n ${r?`<h3 class='buv-c-full-certificate__title buv-c-full-certificate__title--sub'>${r}</h3>`:""}\n </div>\n `,n&&(l+=`<p class='buv-c-full-certificate__description'>${n}</p>`),u.length&&(l+=`\n <ul class='buv-c-full-certificate-signatures'>\n ${u.join("\n")}\n </ul>\n `),o&&(l+=`<img class='buv-c-full-certificate-img--secondary' src='${o}' alt='${Au("text.certified")} ${c}'/>`),l}function Bu(e){const t=Su(e);if(!t)return"";const{displayHtml:i}=t.certificateJson;if(i)return wu(i);const r=t.display;if(r)switch(r.contentMediaType){case Ke.TEXT_HTML:return wu(r.content);case Ke.IMAGE_PNG:case Ke.IMAGE_JPEG:case Ke.IMAGE_GIF:case Ke.IMAGE_BMP:return`<img src="data:${r.contentMediaType};${r.contentEncoding},${r.content}"/>`;case Ke.APPLICATION_PDF:return`<embed width="100%" height="100%" type="application/pdf" src="data:${r.contentMediaType};${r.contentEncoding},${r.content}"/>`;default:return""}return Ou(e)}function ju(e){const t=Su(e);return t&&nc(t.recordLink)?t.recordLink:""}function Fu(e){const t=ju(e);return t?cc.certificates.download(t):""}function Nu(e){const t=Su(e);if(t)try{return JSON.parse(t.metadataJson)}catch(e){return null}return null}function zu(e){var t;const i=Pu(e);return 0===i.length?null!==(t=Qu(e,"transactionLink"))&&void 0!==t?t:[]:i.map((e=>e.transactionLink))}function Vu(e){var t;const i=Pu(e);return 0===i.length?null!==(t=Qu(e,"transactionId"))&&void 0!==t?t:[]:i.map((e=>e.transactionId))}function $u(e){const t=Pu(e);if(0===t.length){const t=Qu(e,"chain");return t?t.map((e=>null==e?void 0:e.name)):[]}return t.map((e=>{var t;return null===(t=e.chain)||void 0===t?void 0:t.name}))}function Uu(e){return $u(e).some((e=>"Mocknet"===e||(null==e?void 0:e.includes("Testnet"))))}function Hu(e,t){const i=$u(e)[t];return!!i&&("Mocknet"===i||i.includes("Testnet"))}function qu(e){return e.verifiedSteps||[]}function Ku(e,t){return qu(e).find((e=>e.code===t))}function Ju(e){return qu(e).some((e=>e.status===Ds.FAILURE))}function Gu(e){return e.finalStep}function Yu(e){return Pu(e).map((e=>e.issuerPublicKey))}function Wu(e){return Pu(e).map((e=>e.issuerProfileUrl))}function Zu(e){return Pu(e).map((e=>e.issuerProfileDomain))}function Xu(e){return Pu(e).map((e=>e.signatureSuiteType))}function Qu(e,t){const i=Su(e);return i?[i[t]]:null}function el(e){return e.isGeneratingPDF}function tl(e,t){switch(t.type){case Be:return function(e,t){const{resetSteps:i}=t.payload;return Object.assign(Object.assign({},e),{verifiedSteps:i})}(e,t);case Te:return function(e,t){return Object.assign(Object.assign({},e),t.payload.options)}(e,t);case Le:return function(e,t){return Object.assign(Object.assign(Object.assign({},e),t.payload),t.payload.certificateDefinition&&{verifiedSteps:cc.certificates.initializeVerificationSteps(t.payload.certificateDefinition)})}(e,t);case De:return function(e,t){return Object.assign(Object.assign({},e),{certificateDefinition:t.payload.definition})}(e,t);case Me:return function(e,t){return Object.assign(Object.assign({},e),{input:Object.assign(Object.assign({},e.input),{certificateUrl:t.payload.url})})}(e,t);case Fe:return function(e,t){const{parentStepCode:i,status:r}=t.payload;return Ku(e,i).status=r,e}(e,t);case Oe:return function(e,t){return Object.assign(Object.assign({},e),{input:Object.assign(Object.assign({},e.input),{isValid:t.payload.isValid})})}(e,t);case $e:return function(e,t){const{errorMessage:i}=t.payload;return Object.assign(Object.assign({},e),{errorMessage:i})}(e,t);case Ue:return function(e,t){return Object.assign(Object.assign({},e),{showVerificationModal:t.payload.showVerificationModal})}(e,t);case je:return function(e,t){const{parentStep:i}=t.payload;return function(e,t){var i;let r=e.subSteps.findIndex((e=>e.code===t.code));r>-1?e.subSteps[r]=t:(null===(i=e.suites)||void 0===i?void 0:i.length)&&e.suites.forEach((e=>{r=e.subSteps.findIndex((e=>e.code===t.code)),r>-1&&(e.subSteps[r]=t)}))}(Ku(e,i),t.payload),e}(e,t);case Ne:return function(e,t){return Object.assign(Object.assign({},e),{verificationStatus:t.payload.status})}(e,t);case ze:return function(e,t){return Object.assign(Object.assign({},e),{finalStep:t.payload.finalStep})}(e,t);case He:return function(e,t){return Object.assign(Object.assign({},e),{isGeneratingPDF:t.payload.isGeneratingPDF})}(e,t);default:return e}}const il="card";var rl,nl;!function(e){e.FULL="full",e.CARD="card",e.FULLSCREEN="fullscreen"}(rl||(rl={})),function(e){e.DARK="dark",e.BRIGHT="bright"}(nl||(nl={}));const ol=function(e=function(e={}){return Object.assign({input:{},verifiedSteps:[],finalStep:null,verificationStatus:Ds.DEFAULT,showVerificationModal:!1,displayMode:il,disableDownloadPdf:!1,theme:nl.BRIGHT},e)}()){return ke(tl,e,function(...e){return t=>(i,r)=>{const n=t(i,r);let o=()=>{throw new Error(ve(15))};const a={getState:n.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(a)));return o=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...i)=>e(t(...i))))}(...s)(n.dispatch),{...n,dispatch:o}}}(...[Ee]))}();function al(e,{mapDispatchToProps:t={},mapStateToProps:i=(()=>({})),ownProps:r={}}){return class extends(me(ol)(be)){mapDispatchToProps(){return function(e,t){if("function"==typeof e)return _e(e,t);if("object"!=typeof e||null===e)throw new Error(ve(16));const i={};for(const r in e){const n=e[r];"function"==typeof n&&(i[r]=_e(n,t))}return i}(t,ol.dispatch)}mapStateToProps(e){return i(ol.getState(),e)}static get properties(){return r}_render(t){const i=Object.assign(Object.assign(Object.assign({},this.mapDispatchToProps()),this.mapStateToProps(t)),t);return de`${e(i)}`}_stateChanged(e){this._requestRender()}}}function sl(e){return{type:$e,payload:{errorMessage:e}}}const cl="certificate-load",ul="certificate-verify";function ll(e){return e.status===Ds.SUCCESS}function dl(e){return e.status===Ds.FAILURE}function pl(e){return function(t,i){if(null==e)return;const r=Ku(i(),e);let n=r.status;n===Ds.DEFAULT&&function(e){var t,i;let r=!0;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).some(ll)),r||e.subSteps.some(ll)}(r)&&(n=Ds.STARTING),n!==Ds.DEFAULT&&function(e){var t,i;let r=!0;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).every(ll)),r&&e.subSteps.every(ll)}(r)&&(n=Ds.SUCCESS),function(e){var t,i;let r=!1;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).some(dl)),r||e.subSteps.some(dl)}(r)&&(n=Ds.FAILURE),t({type:Fe,payload:{parentStepCode:e,status:n}})}}class hl{constructor(){this.queue=[],this.dispatchCb=null,this.isExecuting=!1,this.intervalId=0,this.dispatchNext=this.dispatchNext.bind(this)}registerCb(e){this.dispatchCb=e}push(e){e&&this.queue.push(e)}dispatchNext(){const e=this.queue.shift();e?this.dispatchCb(e):this.intervalId&&(this.isExecuting=!1,clearInterval(this.intervalId))}execute(){!this.isExecuting&&this.queue.length&&(this.isExecuting=!0,this.intervalId=setInterval(this.dispatchNext,200))}}const fl=new hl;function gl(e){return function(t,i){const r=function(e){return function(t){e({type:je,payload:t}),e(pl(t.parentStep))}}(t);fl.dispatchCb||fl.registerCb(r),fl.push(e),fl.execute()}}function bl(){return function(e,t){const i=Su(t());let r=[];i&&(r=cc.certificates.initializeVerificationSteps(i)),e({type:Be,payload:{resetSteps:r}})}}function ml(e){return{type:Ne,payload:{status:e}}}function vl(e){return e.disableVerify}function yl(e){return e.allowDownload}function wl(e){return e.disableDownloadPdf}function xl(e){return e.allowSocialShare}function kl(e){return e.showMetadata}function _l(e){return e.displayMode}function Cl(e){return e.theme}function Al(e){return e.locale}function El(e){return e.explorerAPIs}function Sl(e){return e.clickableUrls}function Pl(e){return e.didResolverUrl}function Il(e){return"string"==typeof e&&(e={label:e,description:""}),{type:ze,payload:{finalStep:e}}}function Tl(){return function(e,t){return rc(this,void 0,void 0,(function*(){const i=t();if(vl(i))return void console.warn("Verification is disabled");e({type:Re}),e(ml(Ds.STARTING)),e(bl());const r=Su(i);if(r){cc.events.dispatch(ul,r);const t=yield r.verify((t=>{e(gl(t))}));e(Il(t.message)),e(ml(t.status))}}))}}function Ll(e){return{type:Ue,payload:{showVerificationModal:e}}}function Dl(e){return function(t,i){return rc(this,void 0,void 0,(function*(){const r=i(),n={locale:Al(r),explorerAPIs:El(r),didResolverUrl:Pl(r)},{certificateDefinition:o,errorMessage:a}=yield cc.certificates.parse(e,n);t(sl(a)),t({type:Le,payload:{certificateDefinition:o}}),cc.events.dispatch(cl,o),null!=o&&(yield t((function(e,t){return rc(this,void 0,void 0,(function*(){(function(e){return e.disableAutoVerify})(t())||(e({type:Ie}),e(Ll(!0))),yield e(Tl())}))})))}))}}function Ml(e){return function(t){return rc(this,void 0,void 0,(function*(){const i=cc.certificates.isPathToCertificateValidURI(e);var r;if(t((r=i,function(e){e({type:Oe,payload:{isValid:r}}),e(sl(r?null:"errors.invalidUrl"))})),!i)return null;t({type:Me,payload:{url:e}});const n=yield cc.certificates.retrieve(e);n.certificateDefinition?yield t(Dl(n.certificateDefinition)):t(sl(n.errorMessage))}))}}const Rl=/(-\w)/g,Ol=e=>e[1].toUpperCase();const Bl={src:String,"disable-auto-verify":Boolean,"disable-verify":Boolean,"allow-download":Boolean,"disable-download-pdf":Boolean,"allow-social-share":Boolean,"display-mode":String,"show-metadata":Boolean,"clickable-urls":Boolean,theme:nl,locale:String,explorerAPIs:{},"did-resolver-url":String},jl=Object.keys(Bl).map((function(e){return e.replace(Rl,Ol)})).reduce(((e,t)=>(e[t]=Bl[t],e)),{});function Fl(e){let t;const i=Object.keys(_u).map((e=>e.toLowerCase()));if(t=i.includes(e.toLowerCase()),!t){const r=e.substr(0,2).toLowerCase(),n=i.map((e=>e.split("-")[0])).indexOf(r);t=n>-1,t&&(e=i[n])}return t||(e=xu),function(e){const t=e.split("-");return t.length>1?`${t[0].toLowerCase()}-${t[1].toUpperCase()}`:t[0].toLowerCase()}(e)}function Nl(e){"auto"!==e&&e||(e=navigator.language||navigator.userLanguage||navigator.browserLanguage||xu),ku.locale=Fl(e)}var zl=de`<style>.buv-c-input{font-size:15px;color:#031532;border-radius:2px 0 0 2px;padding:12px 15px;background-color:#f3f4f5;border:solid 1px rgba(3,21,50,.13);box-sizing:border-box;width:100%}.buv-c-input.is-invalid{border:2px solid red}.buv-c-input::-moz-placeholder{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:rgba(3,21,50,.3);letter-spacing:-0.25px}.buv-c-input::-webkit-input-placeholder{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:rgba(3,21,50,.3);letter-spacing:-0.25px}.buv-c-input:-moz-placeholder{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:rgba(3,21,50,.3);letter-spacing:-0.25px}.buv-c-input:-ms-input-placeholder{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:rgba(3,21,50,.3);letter-spacing:-0.25px}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;function Vl(e){return void 0===e.input.isValid||e.input.isValid}const $l=al((({onInput:e=(()=>{}),isValid:t=!0}={})=>{const i="buv-c-input "+(t?"":"is-invalid");return de`
122
- ${zl}
120
+ */const me=e=>t=>class extends t{connectedCallback(){this.__storeUnsubscribe=e.subscribe((()=>this._stateChanged(e.getState()))),this._stateChanged(e.getState()),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){this.__storeUnsubscribe(),super.disconnectedCallback&&super.disconnectedCallback()}_stateChanged(e){throw new Error("_stateChanged() not implemented")}};function ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ye=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),we=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${we()}`,REPLACE:`@@redux/REPLACE${we()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${we()}`};function ke(e,t,i){if("function"!=typeof e)throw new Error(ve(2));if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ve(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ve(1));return i(ke)(e,t)}let r=e,n=t,o=new Map,s=o,a=0,c=!1;function u(){s===o&&(s=new Map,o.forEach(((e,t)=>{s.set(t,e)})))}function l(){if(c)throw new Error(ve(3));return n}function d(e){if("function"!=typeof e)throw new Error(ve(4));if(c)throw new Error(ve(5));let t=!0;u();const i=a++;return s.set(i,e),function(){if(t){if(c)throw new Error(ve(6));t=!1,u(),s.delete(i),o=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(ve(7));if(void 0===e.type)throw new Error(ve(8));if("string"!=typeof e.type)throw new Error(ve(17));if(c)throw new Error(ve(9));try{c=!0,n=r(n,e)}finally{c=!1}return(o=s).forEach((e=>{e()})),e}p({type:xe.INIT});return{dispatch:p,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ve(10));r=e,p({type:xe.REPLACE})},[ye]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ve(11));function i(){const e=t;e.next&&e.next(l())}i();return{unsubscribe:e(i)}},[ye](){return this}}}}}function _e(e,t){return function(...i){return t(e.apply(this,i))}}function Ce(e){return function(t){var i=t.dispatch,r=t.getState;return function(t){return function(n){return"function"==typeof n?n(i,r,e):t(n)}}}}var Ae=Ce();Ae.withExtraArgument=Ce;var Se=Ae;function Ee(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Pe(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}Ee((function e(t,i,r){e.super_.call(this,"E",t),Object.defineProperty(this,"lhs",{value:i,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}),Pe),Ee((function e(t,i){e.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:i,enumerable:!0})}),Pe),Ee((function e(t,i){e.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:i,enumerable:!0})}),Pe),Ee((function e(t,i,r){e.super_.call(this,"A",t),Object.defineProperty(this,"index",{value:i,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}),Pe);const Le="AUTO_VERIFY",Ie="INITIALIZE",Te="UPDATE_CERTIFICATE_DEFINITION",De="RESET_CERTIFICATE_DEFINITION",Me="UPDATE_CERTIFICATE_URL",Re="VERIFY_CERTIFICATE",Oe="VALIDATE_URL_INPUT",Be="CLEAR_VERIFIED_STEPS",je="STEP_VERIFIED",Fe="UPDATE_PARENT_STEP_STATUS",Ne="UPDATE_VERIFICATION_STATUS",Ve="UPDATE_FINAL_STEP",ze="RESET_VERIFICATION_STATUS",$e="SET_ERROR_MESSAGE",Ue="SHOW_VERIFICATION_MODAL",He="UPDATE_IS_GENERATING_PDF";const qe={get:(e,t)=>{const i=t in e?e[t]:null;return i||console.warn("the service does not exist",t),i}};var Ke;!function(e){e.TEXT_HTML="text/html",e.IMAGE_PNG="image/png",e.IMAGE_JPEG="image/jpeg",e.IMAGE_GIF="image/gif",e.IMAGE_BMP="image/bmp",e.APPLICATION_PDF="application/pdf"}(Ke||(Ke={}));const Je=["text","image","signature","variable"];function Ge(e){const t=(new DOMParser).parseFromString(e,Ke.TEXT_HTML);return t.body.childElementCount===t.body.querySelectorAll(Je.map((e=>`section[class*="${e}"]`)).join(", ")).length}const Ye="?format=json";function We(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function Ze(e){return"string"==typeof e}var Xe;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(Xe||(Xe={}));const Qe="{transaction_id}";var et;!function(e){e.V1_1="1.1",e.V1_2="1.2",e.V2_0="2.0",e.V3_0_alpha="3.0-alpha",e.V3_0_beta="3.0-beta",e.V3_0="3.0"}(et||(et={}));var tt,it=et;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(tt||(tt={}));const rt="{transaction_id}";var nt,ot;!function(e){e.Bitcoin="bitcoin",e.Ethmain="ethmain",e.Ethropst="ethropst",e.Ethrinkeby="ethrinkeby",e.Ethgoerli="ethgoerli",e.Ethsepolia="ethsepolia",e.Mocknet="mocknet",e.Regtest="regtest",e.Testnet="testnet"}(nt||(nt={})),function(e){e.btc="btc",e.eth="eth",e.mocknet="mocknet"}(ot||(ot={}));const st={[nt.Bitcoin]:{code:nt.Bitcoin,blinkCode:ot.btc,name:"Bitcoin",prefixes:["6a20","OP_RETURN "],signatureValue:"bitcoinMainnet",transactionTemplates:{full:`https://blockchain.info/tx/${rt}`,raw:`https://blockchain.info/rawtx/${rt}`}},[nt.Ethmain]:{code:nt.Ethmain,blinkCode:ot.eth,name:"Ethereum",prefixes:["0x"],signatureValue:"ethereumMainnet",transactionTemplates:{full:`https://etherscan.io/tx/${rt}`,raw:`https://etherscan.io/tx/${rt}`}},[nt.Ethropst]:{code:nt.Ethropst,blinkCode:ot.eth,name:"Ethereum Testnet",signatureValue:"ethereumRopsten",transactionTemplates:{full:`https://ropsten.etherscan.io/tx/${rt}`,raw:`https://ropsten.etherscan.io/getRawTx?tx=${rt}`}},[nt.Ethrinkeby]:{code:nt.Ethrinkeby,blinkCode:ot.eth,name:"Ethereum Testnet",signatureValue:"ethereumRinkeby",transactionTemplates:{full:`https://rinkeby.etherscan.io/tx/${rt}`,raw:`https://rinkeby.etherscan.io/getRawTx?tx=${rt}`}},[nt.Ethgoerli]:{code:nt.Ethgoerli,blinkCode:ot.eth,name:"Ethereum Testnet",signatureValue:"ethereumGoerli",transactionTemplates:{full:`https://goerli.etherscan.io/tx/${rt}`,raw:`https://goerli.etherscan.io/getRawTx?tx=${rt}`}},[nt.Ethsepolia]:{code:nt.Ethsepolia,blinkCode:ot.eth,name:"Ethereum Testnet",signatureValue:"ethereumSepolia",transactionTemplates:{full:`https://sepolia.etherscan.io/tx/${rt}`,raw:`https://sepolia.etherscan.io/getRawTx?tx=${rt}`}},[nt.Mocknet]:{code:nt.Mocknet,blinkCode:ot.mocknet,name:"Mocknet",test:!0,signatureValue:"mockchain",transactionTemplates:{full:"",raw:""}},[nt.Regtest]:{code:nt.Regtest,blinkCode:ot.mocknet,name:"Mocknet",test:!0,signatureValue:"bitcoinRegtest",transactionTemplates:{full:"",raw:""}},[nt.Testnet]:{code:nt.Testnet,blinkCode:ot.btc,name:"Bitcoin Testnet",signatureValue:"bitcoinTestnet",transactionTemplates:{full:`https://testnet.blockchain.info/tx/${rt}`,raw:`https://testnet.blockchain.info/rawtx/${rt}`}}};const at={SecurityContextUrl:"https://w3id.org/security/v1",MininumConfirmations:1,MinimumBlockchainExplorers:1,Race:!0,PublicKey:"ecdsa-koblitz-pubkey:1"};var ct=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};function ut(e,t,i=[]){return ct(this,void 0,void 0,(function*(){if((e=Array.from(e)).length<t)throw new Error("Could not retrieve tx data");const r=e.map(((e,t)=>e.then((()=>t)).catch((e=>{throw t}))));return Promise.race(r).then((r=>(e.splice(r,1)[0].then((e=>i.push(e))),1===t?i:ut(e,t-1,i)))).catch((r=>(e.splice(r,1),ut(e,t,i))))}))}function lt({explorerAPI:e,transactionIdPlaceholder:t=rt,transactionId:i="",chain:r}){const{serviceURL:n}=e;let o;if("string"==typeof n)o=n;else if("object"==typeof n){const e=!!r&&function(e){return e!==st.bitcoin.code&&e!==st.ethmain.code}(r);o=e?n.test:n.main}else{if("function"!=typeof n)throw new Error(`serviceURL is an unexpected type for explorerAPI ${e.serviceName}`);o=n(r)}return o=o.replace(t,i),o=function(e,t){if(!t.key)return e;if(t.key&&!t.keyPropertyName)throw new Error(`No keyPropertyName defined for explorerAPI ${t.serviceName}`);return function(e,t,i){const r=e.includes("?")?"&":"?";return`${e}${r}${t}=${i}`}(e,t.keyPropertyName,t.key)}(o,e),o}var dt="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},pt=[],ht=[],ft="undefined"!=typeof Uint8Array?Uint8Array:Array,gt=!1;function bt(){gt=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)pt[t]=e[t],ht[e.charCodeAt(t)]=t;ht["-".charCodeAt(0)]=62,ht["_".charCodeAt(0)]=63}function mt(e,t,i){for(var r,n,o=[],s=t;s<i;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],o.push(pt[(n=r)>>18&63]+pt[n>>12&63]+pt[n>>6&63]+pt[63&n]);return o.join("")}function vt(e){var t;gt||bt();for(var i=e.length,r=i%3,n="",o=[],s=16383,a=0,c=i-r;a<c;a+=s)o.push(mt(e,a,a+s>c?c:a+s));return 1===r?(t=e[i-1],n+=pt[t>>2],n+=pt[t<<4&63],n+="=="):2===r&&(t=(e[i-2]<<8)+e[i-1],n+=pt[t>>10],n+=pt[t>>4&63],n+=pt[t<<2&63],n+="="),o.push(n),o.join("")}function yt(e,t,i,r,n){var o,s,a=8*n-r-1,c=(1<<a)-1,u=c>>1,l=-7,d=i?n-1:0,p=i?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+d],d+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=p,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=u}return(h?-1:1)*s*Math.pow(2,o-r)}function wt(e,t,i,r,n,o){var s,a,c,u=8*o-n-1,l=(1<<u)-1,d=l>>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*c-1)*Math.pow(2,n),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;e[i+h]=255&a,h+=f,a/=256,n-=8);for(s=s<<n|a,u+=n;u>0;e[i+h]=255&s,h+=f,s/=256,u-=8);e[i+h-f]|=128*g}var xt={}.toString,kt=Array.isArray||function(e){return"[object Array]"==xt.call(e)};St.TYPED_ARRAY_SUPPORT=void 0===dt.TYPED_ARRAY_SUPPORT||dt.TYPED_ARRAY_SUPPORT;var _t=Ct();function Ct(){return St.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function At(e,t){if(Ct()<t)throw new RangeError("Invalid typed array length");return St.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=St.prototype:(null===e&&(e=new St(t)),e.length=t),e}function St(e,t,i){if(!(St.TYPED_ARRAY_SUPPORT||this instanceof St))return new St(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Lt(this,e)}return Et(this,e,t,i)}function Et(e,t,i,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,i,r){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===i&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,i):new Uint8Array(t,i,r);St.TYPED_ARRAY_SUPPORT?(e=t).__proto__=St.prototype:e=It(e,t);return e}(e,t,i,r):"string"==typeof t?function(e,t,i){"string"==typeof i&&""!==i||(i="utf8");if(!St.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Mt(t,i);e=At(e,r);var n=e.write(t,i);n!==r&&(e=e.slice(0,n));return e}(e,t,i):function(e,t){if(Dt(t)){var i=0|Tt(t.length);return 0===(e=At(e,i)).length||t.copy(e,0,0,i),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?At(e,0):It(e,t);if("Buffer"===t.type&&kt(t.data))return It(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Pt(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Lt(e,t){if(Pt(t),e=At(e,t<0?0:0|Tt(t)),!St.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function It(e,t){var i=t.length<0?0:0|Tt(t.length);e=At(e,i);for(var r=0;r<i;r+=1)e[r]=255&t[r];return e}function Tt(e){if(e>=Ct())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ct().toString(16)+" bytes");return 0|e}function Dt(e){return!(null==e||!e._isBuffer)}function Mt(e,t){if(Dt(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return si(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return ai(e).length;default:if(r)return si(e).length;t=(""+t).toLowerCase(),r=!0}}function Rt(e,t,i){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Yt(this,t,i);case"utf8":case"utf-8":return qt(this,t,i);case"ascii":return Jt(this,t,i);case"latin1":case"binary":return Gt(this,t,i);case"base64":return Ht(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wt(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ot(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function Bt(e,t,i,r,n){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof t&&(t=St.from(t,r)),Dt(t))return 0===t.length?-1:jt(e,t,i,r,n);if("number"==typeof t)return t&=255,St.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):jt(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function jt(e,t,i,r,n){var o,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,i/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){var l=-1;for(o=i;o<a;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(i+c>a&&(i=a-c),o=i;o>=0;o--){for(var d=!0,p=0;p<c;p++)if(u(e,o+p)!==u(t,p)){d=!1;break}if(d)return o}return-1}function Ft(e,t,i,r){i=Number(i)||0;var n=e.length-i;r?(r=Number(r))>n&&(r=n):r=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[i+s]=a}return s}function Nt(e,t,i,r){return ci(si(t,e.length-i),e,i,r)}function Vt(e,t,i,r){return ci(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,r)}function zt(e,t,i,r){return Vt(e,t,i,r)}function $t(e,t,i,r){return ci(ai(t),e,i,r)}function Ut(e,t,i,r){return ci(function(e,t){for(var i,r,n,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(i=e.charCodeAt(s))>>8,n=i%256,o.push(n),o.push(r);return o}(t,e.length-i),e,i,r)}function Ht(e,t,i){return 0===t&&i===e.length?vt(e):vt(e.slice(t,i))}function qt(e,t,i){i=Math.min(e.length,i);for(var r=[],n=t;n<i;){var o,s,a,c,u=e[n],l=null,d=u>239?4:u>223?3:u>191?2:1;if(n+d<=i)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[n+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[n+1],s=e[n+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[n+1],s=e[n+2],a=e[n+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),n+=d}return function(e){var t=e.length;if(t<=Kt)return String.fromCharCode.apply(String,e);var i="",r=0;for(;r<t;)i+=String.fromCharCode.apply(String,e.slice(r,r+=Kt));return i}(r)}St.poolSize=8192,St._augment=function(e){return e.__proto__=St.prototype,e},St.from=function(e,t,i){return Et(null,e,t,i)},St.TYPED_ARRAY_SUPPORT&&(St.prototype.__proto__=Uint8Array.prototype,St.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&St[Symbol.species]),St.alloc=function(e,t,i){return function(e,t,i,r){return Pt(t),t<=0?At(e,t):void 0!==i?"string"==typeof r?At(e,t).fill(i,r):At(e,t).fill(i):At(e,t)}(null,e,t,i)},St.allocUnsafe=function(e){return Lt(null,e)},St.allocUnsafeSlow=function(e){return Lt(null,e)},St.isBuffer=ui,St.compare=function(e,t){if(!Dt(e)||!Dt(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,r=t.length,n=0,o=Math.min(i,r);n<o;++n)if(e[n]!==t[n]){i=e[n],r=t[n];break}return i<r?-1:r<i?1:0},St.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},St.concat=function(e,t){if(!kt(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return St.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var r=St.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var o=e[i];if(!Dt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},St.byteLength=Mt,St.prototype._isBuffer=!0,St.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Ot(this,t,t+1);return this},St.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Ot(this,t,t+3),Ot(this,t+1,t+2);return this},St.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Ot(this,t,t+7),Ot(this,t+1,t+6),Ot(this,t+2,t+5),Ot(this,t+3,t+4);return this},St.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?qt(this,0,e):Rt.apply(this,arguments)},St.prototype.equals=function(e){if(!Dt(e))throw new TypeError("Argument must be a Buffer");return this===e||0===St.compare(this,e)},St.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},St.prototype.compare=function(e,t,i,r,n){if(!Dt(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return-1;if(t>=i)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(r>>>=0),s=(i>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(r,n),u=e.slice(t,i),l=0;l<a;++l)if(c[l]!==u[l]){o=c[l],s=u[l];break}return o<s?-1:s<o?1:0},St.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},St.prototype.indexOf=function(e,t,i){return Bt(this,e,t,i,!0)},St.prototype.lastIndexOf=function(e,t,i){return Bt(this,e,t,i,!1)},St.prototype.write=function(e,t,i,r){if(void 0===t)r="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)r=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-t;if((void 0===i||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Ft(this,e,t,i);case"utf8":case"utf-8":return Nt(this,e,t,i);case"ascii":return Vt(this,e,t,i);case"latin1":case"binary":return zt(this,e,t,i);case"base64":return $t(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ut(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},St.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Kt=4096;function Jt(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(127&e[n]);return r}function Gt(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;n<i;++n)r+=String.fromCharCode(e[n]);return r}function Yt(e,t,i){var r=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>r)&&(i=r);for(var n="",o=t;o<i;++o)n+=oi(e[o]);return n}function Wt(e,t,i){for(var r=e.slice(t,i),n="",o=0;o<r.length;o+=2)n+=String.fromCharCode(r[o]+256*r[o+1]);return n}function Zt(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function Xt(e,t,i,r,n,o){if(!Dt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw new RangeError('"value" argument is out of bounds');if(i+r>e.length)throw new RangeError("Index out of range")}function Qt(e,t,i,r){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-i,2);n<o;++n)e[i+n]=(t&255<<8*(r?n:1-n))>>>8*(r?n:1-n)}function ei(e,t,i,r){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-i,4);n<o;++n)e[i+n]=t>>>8*(r?n:3-n)&255}function ti(e,t,i,r,n,o){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function ii(e,t,i,r,n){return n||ti(e,0,i,4),wt(e,t,i,r,23,4),i+4}function ri(e,t,i,r,n){return n||ti(e,0,i,8),wt(e,t,i,r,52,8),i+8}St.prototype.slice=function(e,t){var i,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),St.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=St.prototype;else{var n=t-e;i=new St(n,void 0);for(var o=0;o<n;++o)i[o]=this[o+e]}return i},St.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||Zt(e,t,this.length);for(var r=this[e],n=1,o=0;++o<t&&(n*=256);)r+=this[e+o]*n;return r},St.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||Zt(e,t,this.length);for(var r=this[e+--t],n=1;t>0&&(n*=256);)r+=this[e+--t]*n;return r},St.prototype.readUInt8=function(e,t){return t||Zt(e,1,this.length),this[e]},St.prototype.readUInt16LE=function(e,t){return t||Zt(e,2,this.length),this[e]|this[e+1]<<8},St.prototype.readUInt16BE=function(e,t){return t||Zt(e,2,this.length),this[e]<<8|this[e+1]},St.prototype.readUInt32LE=function(e,t){return t||Zt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},St.prototype.readUInt32BE=function(e,t){return t||Zt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},St.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||Zt(e,t,this.length);for(var r=this[e],n=1,o=0;++o<t&&(n*=256);)r+=this[e+o]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*t)),r},St.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||Zt(e,t,this.length);for(var r=t,n=1,o=this[e+--r];r>0&&(n*=256);)o+=this[e+--r]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},St.prototype.readInt8=function(e,t){return t||Zt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},St.prototype.readInt16LE=function(e,t){t||Zt(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},St.prototype.readInt16BE=function(e,t){t||Zt(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},St.prototype.readInt32LE=function(e,t){return t||Zt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},St.prototype.readInt32BE=function(e,t){return t||Zt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},St.prototype.readFloatLE=function(e,t){return t||Zt(e,4,this.length),yt(this,e,!0,23,4)},St.prototype.readFloatBE=function(e,t){return t||Zt(e,4,this.length),yt(this,e,!1,23,4)},St.prototype.readDoubleLE=function(e,t){return t||Zt(e,8,this.length),yt(this,e,!0,52,8)},St.prototype.readDoubleBE=function(e,t){return t||Zt(e,8,this.length),yt(this,e,!1,52,8)},St.prototype.writeUIntLE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Xt(this,e,t,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[t]=255&e;++o<i&&(n*=256);)this[t+o]=e/n&255;return t+i},St.prototype.writeUIntBE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Xt(this,e,t,i,Math.pow(2,8*i)-1,0);var n=i-1,o=1;for(this[t+n]=255&e;--n>=0&&(o*=256);)this[t+n]=e/o&255;return t+i},St.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,1,255,0),St.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},St.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,2,65535,0),St.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Qt(this,e,t,!0),t+2},St.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,2,65535,0),St.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Qt(this,e,t,!1),t+2},St.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,4,4294967295,0),St.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ei(this,e,t,!0),t+4},St.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,4,4294967295,0),St.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ei(this,e,t,!1),t+4},St.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Xt(this,e,t,i,n-1,-n)}var o=0,s=1,a=0;for(this[t]=255&e;++o<i&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+i},St.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Xt(this,e,t,i,n-1,-n)}var o=i-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+i},St.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,1,127,-128),St.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},St.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,2,32767,-32768),St.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Qt(this,e,t,!0),t+2},St.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,2,32767,-32768),St.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Qt(this,e,t,!1),t+2},St.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,4,2147483647,-2147483648),St.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ei(this,e,t,!0),t+4},St.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||Xt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),St.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ei(this,e,t,!1),t+4},St.prototype.writeFloatLE=function(e,t,i){return ii(this,e,t,!0,i)},St.prototype.writeFloatBE=function(e,t,i){return ii(this,e,t,!1,i)},St.prototype.writeDoubleLE=function(e,t,i){return ri(this,e,t,!0,i)},St.prototype.writeDoubleBE=function(e,t,i){return ri(this,e,t,!1,i)},St.prototype.copy=function(e,t,i,r){if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<i&&(r=i),r===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-i&&(r=e.length-t+i);var n,o=r-i;if(this===e&&i<t&&t<r)for(n=o-1;n>=0;--n)e[n+t]=this[n+i];else if(o<1e3||!St.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)e[n+t]=this[n+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+o),t);return o},St.prototype.fill=function(e,t,i,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),1===e.length){var n=e.charCodeAt(0);n<256&&(e=n)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!St.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var o;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o<i;++o)this[o]=e;else{var s=Dt(e)?e:si(new St(e,r).toString()),a=s.length;for(o=0;o<i-t;++o)this[o+t]=s[o%a]}return this};var ni=/[^+\/0-9A-Za-z-_]/g;function oi(e){return e<16?"0"+e.toString(16):e.toString(16)}function si(e,t){var i;t=t||1/0;for(var r=e.length,n=null,o=[],s=0;s<r;++s){if((i=e.charCodeAt(s))>55295&&i<57344){if(!n){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function ai(e){return function(e){var t,i,r,n,o,s;gt||bt();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new ft(3*a/4-o),r=o>0?a-4:a;var c=0;for(t=0,i=0;t<r;t+=4,i+=3)n=ht[e.charCodeAt(t)]<<18|ht[e.charCodeAt(t+1)]<<12|ht[e.charCodeAt(t+2)]<<6|ht[e.charCodeAt(t+3)],s[c++]=n>>16&255,s[c++]=n>>8&255,s[c++]=255&n;return 2===o?(n=ht[e.charCodeAt(t)]<<2|ht[e.charCodeAt(t+1)]>>4,s[c++]=255&n):1===o&&(n=ht[e.charCodeAt(t)]<<10|ht[e.charCodeAt(t+1)]<<4|ht[e.charCodeAt(t+2)]>>2,s[c++]=n>>8&255,s[c++]=255&n),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ni,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ci(e,t,i,r){for(var n=0;n<r&&!(n+i>=t.length||n>=e.length);++n)t[n+i]=e[n];return n}function ui(e){return null!=e&&(!!e._isBuffer||li(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&li(e.slice(0,0))}(e))}function li(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var di=Object.freeze({__proto__:null,Buffer:St,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),St.alloc(+e)},isBuffer:ui,kMaxLength:_t});function pi(){throw new Error("setTimeout has not been defined")}function hi(){throw new Error("clearTimeout has not been defined")}var fi=pi,gi=hi;function bi(e){if(fi===setTimeout)return setTimeout(e,0);if((fi===pi||!fi)&&setTimeout)return fi=setTimeout,setTimeout(e,0);try{return fi(e,0)}catch(t){try{return fi.call(null,e,0)}catch(t){return fi.call(this,e,0)}}}"function"==typeof dt.setTimeout&&(fi=setTimeout),"function"==typeof dt.clearTimeout&&(gi=clearTimeout);var mi,vi=[],yi=!1,wi=-1;function xi(){yi&&mi&&(yi=!1,mi.length?vi=mi.concat(vi):wi=-1,vi.length&&ki())}function ki(){if(!yi){var e=bi(xi);yi=!0;for(var t=vi.length;t;){for(mi=vi,vi=[];++wi<t;)mi&&mi[wi].run();wi=-1,t=vi.length}mi=null,yi=!1,function(e){if(gi===clearTimeout)return clearTimeout(e);if((gi===hi||!gi)&&clearTimeout)return gi=clearTimeout,clearTimeout(e);try{return gi(e)}catch(t){try{return gi.call(null,e)}catch(t){return gi.call(this,e)}}}(e)}}function _i(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];vi.push(new Ci(e,t)),1!==vi.length||yi||bi(ki)}function Ci(e,t){this.fun=e,this.array=t}Ci.prototype.run=function(){this.fun.apply(null,this.array)};function Ai(){}var Si=Ai,Ei=Ai,Pi=Ai,Li=Ai,Ii=Ai,Ti=Ai,Di=Ai;var Mi=dt.performance||{},Ri=Mi.now||Mi.mozNow||Mi.msNow||Mi.oNow||Mi.webkitNow||function(){return(new Date).getTime()};var Oi=new Date;var Bi={nextTick:_i,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Si,addListener:Ei,once:Pi,off:Li,removeListener:Ii,removeAllListeners:Ti,emit:Di,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Ri.call(Mi),i=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(i-=e[0],(r-=e[1])<0&&(i--,r+=1e9)),[i,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Oi)/1e3}},ji="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ni(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var i=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),i}
121
+ /*! https://mths.be/punycode v1.4.1 by @mathias */var Vi=2147483647,zi=36,$i=1,Ui=26,Hi=38,qi=700,Ki=72,Ji=128,Gi="-",Yi=/[^\x20-\x7E]/,Wi=/[\x2E\u3002\uFF0E\uFF61]/g,Zi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Xi=zi-$i,Qi=Math.floor,er=String.fromCharCode;function tr(e){throw new RangeError(Zi[e])}function ir(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function rr(e,t,i){var r=0;for(e=i?Qi(e/qi):e>>1,e+=Qi(e/t);e>Xi*Ui>>1;r+=zi)e=Qi(e/Xi);return Qi(r+(Xi+1)*e/(e+Hi))}function nr(e){return function(e,t){var i=e.split("@"),r="";i.length>1&&(r=i[0]+"@",e=i[1]);var n=function(e,t){for(var i=e.length,r=[];i--;)r[i]=t(e[i]);return r}((e=e.replace(Wi,".")).split("."),t).join(".");return r+n}(e,(function(e){return Yi.test(e)?"xn--"+function(e){var t,i,r,n,o,s,a,c,u,l,d,p,h,f,g,b=[];for(e=function(e){for(var t,i,r=[],n=0,o=e.length;n<o;)(t=e.charCodeAt(n++))>=55296&&t<=56319&&n<o?56320==(64512&(i=e.charCodeAt(n++)))?r.push(((1023&t)<<10)+(1023&i)+65536):(r.push(t),n--):r.push(t);return r}(e),p=e.length,t=Ji,i=0,o=Ki,s=0;s<p;++s)(d=e[s])<128&&b.push(er(d));for(r=n=b.length,n&&b.push(Gi);r<p;){for(a=Vi,s=0;s<p;++s)(d=e[s])>=t&&d<a&&(a=d);for(a-t>Qi((Vi-i)/(h=r+1))&&tr("overflow"),i+=(a-t)*h,t=a,s=0;s<p;++s)if((d=e[s])<t&&++i>Vi&&tr("overflow"),d==t){for(c=i,u=zi;!(c<(l=u<=o?$i:u>=o+Ui?Ui:u-o));u+=zi)g=c-l,f=zi-l,b.push(er(ir(l+g%f,0))),c=Qi(g/f);b.push(er(ir(c,0))),o=rr(i,h,r==n),i=0,++r}++i,++t}return b.join("")}(e):e}))}var or="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e},sr=/%[sdj%]/g;function ar(e){if(!_r(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(pr(arguments[i]));return t.join(" ")}i=1;for(var r=arguments,n=r.length,o=String(e).replace(sr,(function(e){if("%%"===e)return"%";if(i>=n)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}default:return e}})),s=r[i];i<n;s=r[++i])wr(s)||!Er(s)?o+=" "+s:o+=" "+pr(s);return o}function cr(e,t){if(Ar(dt.process))return function(){return cr(e,t).apply(this,arguments)};if(!0===Bi.noDeprecation)return e;var i=!1;return function(){if(!i){if(Bi.throwDeprecation)throw new Error(t);Bi.traceDeprecation?console.trace(t):console.error(t),i=!0}return e.apply(this,arguments)}}var ur,lr={};function dr(e){if(Ar(ur)&&(ur=Bi.env.NODE_DEBUG||""),e=e.toUpperCase(),!lr[e])if(new RegExp("\\b"+e+"\\b","i").test(ur)){lr[e]=function(){var t=ar.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else lr[e]=function(){};return lr[e]}function pr(e,t){var i={seen:[],stylize:fr};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),yr(t)?i.showHidden=t:t&&jr(i,t),Ar(i.showHidden)&&(i.showHidden=!1),Ar(i.depth)&&(i.depth=2),Ar(i.colors)&&(i.colors=!1),Ar(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=hr),gr(i,e,i.depth)}function hr(e,t){var i=pr.styles[t];return i?"["+pr.colors[i][0]+"m"+e+"["+pr.colors[i][1]+"m":e}function fr(e,t){return e}function gr(e,t,i){if(e.customInspect&&t&&Ir(t.inspect)&&t.inspect!==pr&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(i,e);return _r(r)||(r=gr(e,r,i)),r}var n=function(e,t){if(Ar(t))return e.stylize("undefined","undefined");if(_r(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}if(kr(t))return e.stylize(""+t,"number");if(yr(t))return e.stylize(""+t,"boolean");if(wr(t))return e.stylize("null","null")}(e,t);if(n)return n;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,i){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Lr(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return br(t);if(0===o.length){if(Ir(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(Sr(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Pr(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Lr(t))return br(t)}var c,u="",l=!1,d=["{","}"];(vr(t)&&(l=!0,d=["[","]"]),Ir(t))&&(u=" [Function"+(t.name?": "+t.name:"")+"]");return Sr(t)&&(u=" "+RegExp.prototype.toString.call(t)),Pr(t)&&(u=" "+Date.prototype.toUTCString.call(t)),Lr(t)&&(u=" "+br(t)),0!==o.length||l&&0!=t.length?i<0?Sr(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=l?function(e,t,i,r,n){for(var o=[],s=0,a=t.length;s<a;++s)Fr(t,String(s))?o.push(mr(e,t,i,r,String(s),!0)):o.push("");return n.forEach((function(n){n.match(/^\d+$/)||o.push(mr(e,t,i,r,n,!0))})),o}(e,t,i,s,o):o.map((function(r){return mr(e,t,i,s,r,l)})),e.seen.pop(),function(e,t,i){var r=e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+i[1];return i[0]+t+" "+e.join(", ")+" "+i[1]}(c,u,d)):d[0]+u+d[1]}function br(e){return"["+Error.prototype.toString.call(e)+"]"}function mr(e,t,i,r,n,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),Fr(r,n)||(s="["+n+"]"),a||(e.seen.indexOf(c.value)<0?(a=wr(i)?gr(e,c.value,null):gr(e,c.value,i-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),Ar(s)){if(o&&n.match(/^\d+$/))return a;(s=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function vr(e){return Array.isArray(e)}function yr(e){return"boolean"==typeof e}function wr(e){return null===e}function xr(e){return null==e}function kr(e){return"number"==typeof e}function _r(e){return"string"==typeof e}function Cr(e){return"symbol"==typeof e}function Ar(e){return void 0===e}function Sr(e){return Er(e)&&"[object RegExp]"===Mr(e)}function Er(e){return"object"==typeof e&&null!==e}function Pr(e){return Er(e)&&"[object Date]"===Mr(e)}function Lr(e){return Er(e)&&("[object Error]"===Mr(e)||e instanceof Error)}function Ir(e){return"function"==typeof e}function Tr(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Dr(e){return ui(e)}function Mr(e){return Object.prototype.toString.call(e)}function Rr(e){return e<10?"0"+e.toString(10):e.toString(10)}pr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},pr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Or=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Br(){var e,t;console.log("%s - %s",(e=new Date,t=[Rr(e.getHours()),Rr(e.getMinutes()),Rr(e.getSeconds())].join(":"),[e.getDate(),Or[e.getMonth()],t].join(" ")),ar.apply(null,arguments))}function jr(e,t){if(!t||!Er(t))return e;for(var i=Object.keys(t),r=i.length;r--;)e[i[r]]=t[i[r]];return e}function Fr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Nr={inherits:or,_extend:jr,log:Br,isBuffer:Dr,isPrimitive:Tr,isFunction:Ir,isError:Lr,isDate:Pr,isObject:Er,isRegExp:Sr,isUndefined:Ar,isSymbol:Cr,isString:_r,isNumber:kr,isNullOrUndefined:xr,isNull:wr,isBoolean:yr,isArray:vr,inspect:pr,deprecate:cr,format:ar,debuglog:dr},Vr=Object.freeze({__proto__:null,_extend:jr,debuglog:dr,default:Nr,deprecate:cr,format:ar,inherits:or,inspect:pr,isArray:vr,isBoolean:yr,isBuffer:Dr,isDate:Pr,isError:Lr,isFunction:Ir,isNull:wr,isNullOrUndefined:xr,isNumber:kr,isObject:Er,isPrimitive:Tr,isRegExp:Sr,isString:_r,isSymbol:Cr,isUndefined:Ar,log:Br});function zr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var $r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Ur(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function Hr(e,t){if(e.map)return e.map(t);for(var i=[],r=0;r<e.length;r++)i.push(t(e[r],r));return i}var qr=Object.keys||function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t};function Kr(e,t,i,r){t=t||"&",i=i||"=";var n={};if("string"!=typeof e||0===e.length)return n;var o=/\+/g;e=e.split(t);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var a=e.length;s>0&&a>s&&(a=s);for(var c=0;c<a;++c){var u,l,d,p,h=e[c].replace(o,"%20"),f=h.indexOf(i);f>=0?(u=h.substr(0,f),l=h.substr(f+1)):(u=h,l=""),d=decodeURIComponent(u),p=decodeURIComponent(l),zr(n,d)?$r(n[d])?n[d].push(p):n[d]=[n[d],p]:n[d]=p}return n}var Jr={parse:un,resolve:hn,resolveObject:fn,format:dn,Url:Gr};function Gr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Yr=/^([a-z0-9.+-]+:)/i,Wr=/:[0-9]*$/,Zr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Xr=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Qr=["'"].concat(Xr),en=["%","/","?",";","#"].concat(Qr),tn=["/","?","#"],rn=255,nn=/^[+a-z0-9A-Z_-]{0,63}$/,on=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,sn={javascript:!0,"javascript:":!0},an={javascript:!0,"javascript:":!0},cn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function un(e,t,i){if(e&&Er(e)&&e instanceof Gr)return e;var r=new Gr;return r.parse(e,t,i),r}function ln(e,t,i,r){if(!_r(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=-1!==n&&n<t.indexOf("#")?"?":"#",s=t.split(o);s[0]=s[0].replace(/\\/g,"/");var a=t=s.join(o);if(a=a.trim(),!r&&1===t.split("#").length){var c=Zr.exec(a);if(c)return e.path=a,e.href=a,e.pathname=c[1],c[2]?(e.search=c[2],e.query=i?Kr(e.search.substr(1)):e.search.substr(1)):i&&(e.search="",e.query={}),e}var u,l,d,p,h=Yr.exec(a);if(h){var f=(h=h[0]).toLowerCase();e.protocol=f,a=a.substr(h.length)}if(r||h||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===a.substr(0,2);!g||h&&an[h]||(a=a.substr(2),e.slashes=!0)}if(!an[h]&&(g||h&&!cn[h])){var b,m,v=-1;for(u=0;u<tn.length;u++)-1!==(l=a.indexOf(tn[u]))&&(-1===v||l<v)&&(v=l);for(-1!==(m=-1===v?a.lastIndexOf("@"):a.lastIndexOf("@",v))&&(b=a.slice(0,m),a=a.slice(m+1),e.auth=decodeURIComponent(b)),v=-1,u=0;u<en.length;u++)-1!==(l=a.indexOf(en[u]))&&(-1===v||l<v)&&(v=l);-1===v&&(v=a.length),e.host=a.slice(0,v),a=a.slice(v),gn(e),e.hostname=e.hostname||"";var y="["===e.hostname[0]&&"]"===e.hostname[e.hostname.length-1];if(!y){var w=e.hostname.split(/\./);for(u=0,d=w.length;u<d;u++){var x=w[u];if(x&&!x.match(nn)){for(var k="",_=0,C=x.length;_<C;_++)x.charCodeAt(_)>127?k+="x":k+=x[_];if(!k.match(nn)){var A=w.slice(0,u),S=w.slice(u+1),E=x.match(on);E&&(A.push(E[1]),S.unshift(E[2])),S.length&&(a="/"+S.join(".")+a),e.hostname=A.join(".");break}}}}e.hostname.length>rn?e.hostname="":e.hostname=e.hostname.toLowerCase(),y||(e.hostname=nr(e.hostname)),p=e.port?":"+e.port:"";var P=e.hostname||"";e.host=P+p,e.href+=e.host,y&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!sn[f])for(u=0,d=Qr.length;u<d;u++){var L=Qr[u];if(-1!==a.indexOf(L)){var I=encodeURIComponent(L);I===L&&(I=escape(L)),a=a.split(L).join(I)}}var T=a.indexOf("#");-1!==T&&(e.hash=a.substr(T),a=a.slice(0,T));var D=a.indexOf("?");if(-1!==D?(e.search=a.substr(D),e.query=a.substr(D+1),i&&(e.query=Kr(e.query)),a=a.slice(0,D)):i&&(e.search="",e.query={}),a&&(e.pathname=a),cn[f]&&e.hostname&&!e.pathname&&(e.pathname="/"),e.pathname||e.search){p=e.pathname||"";var M=e.search||"";e.path=p+M}return e.href=pn(e),e}function dn(e){return _r(e)&&(e=ln({},e)),pn(e)}function pn(e){var t=e.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var i,r,n,o,s=e.protocol||"",a=e.pathname||"",c=e.hash||"",u=!1,l="";e.host?u=t+e.host:e.hostname&&(u=t+(-1===e.hostname.indexOf(":")?e.hostname:"["+this.hostname+"]"),e.port&&(u+=":"+e.port)),e.query&&Er(e.query)&&Object.keys(e.query).length&&(i=e.query,r=r||"&",n=n||"=",null===i&&(i=void 0),l="object"==typeof i?Hr(qr(i),(function(e){var t=encodeURIComponent(Ur(e))+n;return $r(i[e])?Hr(i[e],(function(e){return t+encodeURIComponent(Ur(e))})).join(r):t+encodeURIComponent(Ur(i[e]))})).join(r):o?encodeURIComponent(Ur(o))+n+encodeURIComponent(Ur(i)):"");var d=e.search||l&&"?"+l||"";return s&&":"!==s.substr(-1)&&(s+=":"),e.slashes||(!s||cn[s])&&!1!==u?(u="//"+(u||""),a&&"/"!==a.charAt(0)&&(a="/"+a)):u||(u=""),c&&"#"!==c.charAt(0)&&(c="#"+c),d&&"?"!==d.charAt(0)&&(d="?"+d),s+u+(a=a.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(d=d.replace("#","%23"))+c}function hn(e,t){return un(e,!1,!0).resolve(t)}function fn(e,t){return e?un(e,!1,!0).resolveObject(t):t}function gn(e){var t=e.host,i=Wr.exec(t);i&&(":"!==(i=i[0])&&(e.port=i.substr(1)),t=t.substr(0,t.length-i.length)),t&&(e.hostname=t)}Gr.prototype.parse=function(e,t,i){return ln(this,e,t,i)},Gr.prototype.format=function(){return pn(this)},Gr.prototype.resolve=function(e){return this.resolveObject(un(e,!1,!0)).format()},Gr.prototype.resolveObject=function(e){if(_r(e)){var t=new Gr;t.parse(e,!1,!0),e=t}for(var i,r=new Gr,n=Object.keys(this),o=0;o<n.length;o++){var s=n[o];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),c=0;c<a.length;c++){var u=a[c];"protocol"!==u&&(r[u]=e[u])}return cn[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!cn[e.protocol]){for(var l=Object.keys(e),d=0;d<l.length;d++){var p=l[d];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||an[e.protocol])r.pathname=e.pathname;else{for(i=(e.pathname||"").split("/");i.length&&!(e.host=i.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==i[0]&&i.unshift(""),i.length<2&&i.unshift(""),r.pathname=i.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var h=r.pathname||"",f=r.search||"";r.path=h+f}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var g,b=r.pathname&&"/"===r.pathname.charAt(0),m=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=m||b||r.host&&e.pathname,y=v,w=r.pathname&&r.pathname.split("/")||[],x=r.protocol&&!cn[r.protocol];if(i=e.pathname&&e.pathname.split("/")||[],x&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===i[0]?i[0]=e.host:i.unshift(e.host)),e.host=null),v=v&&(""===i[0]||""===w[0])),m)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=i;else if(i.length)w||(w=[]),w.pop(),w=w.concat(i),r.search=e.search,r.query=e.query;else if(!xr(e.search))return x&&(r.hostname=r.host=w.shift(),(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),r.search=e.search,r.query=e.query,wr(r.pathname)&&wr(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=w.slice(-1)[0],_=(r.host||e.host||w.length>1)&&("."===k||".."===k)||""===k,C=0,A=w.length;A>=0;A--)"."===(k=w[A])?w.splice(A,1):".."===k?(w.splice(A,1),C++):C&&(w.splice(A,1),C--);if(!v&&!y)for(;C--;C)w.unshift("..");!v||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),_&&"/"!==w.join("/").substr(-1)&&w.push("");var S=""===w[0]||w[0]&&"/"===w[0].charAt(0);return x&&(r.hostname=r.host=S?"":w.length?w.shift():"",(g=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=g.shift(),r.host=r.hostname=g.shift())),(v=v||r.host&&w.length)&&!S&&w.unshift(""),w.length?r.pathname=w.join("/"):(r.pathname=null,r.path=null),wr(r.pathname)&&wr(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Gr.prototype.parseHost=function(){return gn(this)};var bn,mn,vn=Ni(Object.freeze({__proto__:null,Url:Gr,default:Jr,format:dn,parse:un,resolve:hn,resolveObject:fn})),yn={},wn=Object.freeze({__proto__:null,default:yn}),xn=Ni(wn),kn=Tn(dt.fetch)&&Tn(dt.ReadableStream);function _n(e){mn||(mn=new dt.XMLHttpRequest).open("GET",dt.location.host?"/":"https://example.com");try{return mn.responseType=e,mn.responseType===e}catch(e){return!1}}var Cn=void 0!==dt.ArrayBuffer,An=Cn&&Tn(dt.ArrayBuffer.prototype.slice),Sn=Cn&&_n("arraybuffer"),En=!kn&&An&&_n("ms-stream"),Pn=!kn&&Cn&&_n("moz-chunked-arraybuffer"),Ln=Tn(mn.overrideMimeType),In=Tn(dt.VBArray);function Tn(e){return"function"==typeof e}function Dn(){}function Mn(){Mn.init.call(this)}function Rn(e){return void 0===e._maxListeners?Mn.defaultMaxListeners:e._maxListeners}function On(e,t,i,r){var n,o,s,a;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),o=e._events),s=o[t]):(o=e._events=new Dn,e._eventsCount=0),s){if("function"==typeof s?s=o[t]=r?[i,s]:[s,i]:r?s.unshift(i):s.push(i),!s.warned&&(n=Rn(e))&&n>0&&s.length>n){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,a=c,"function"==typeof console.warn?console.warn(a):console.log(a)}}else s=o[t]=i,++e._eventsCount;return e}function Bn(e,t,i){var r=!1;function n(){e.removeListener(t,n),r||(r=!0,i.apply(e,arguments))}return n.listener=i,n}function jn(e){var t=this._events;if(t){var i=t[e];if("function"==typeof i)return 1;if(i)return i.length}return 0}function Fn(e,t){for(var i=new Array(t);t--;)i[t]=e[t];return i}mn=null,Dn.prototype=Object.create(null),Mn.EventEmitter=Mn,Mn.usingDomains=!1,Mn.prototype.domain=void 0,Mn.prototype._events=void 0,Mn.prototype._maxListeners=void 0,Mn.defaultMaxListeners=10,Mn.init=function(){this.domain=null,Mn.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Dn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Mn.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Mn.prototype.getMaxListeners=function(){return Rn(this)},Mn.prototype.emit=function(e){var t,i,r,n,o,s,a,c="error"===e;if(s=this._events)c=c&&null==s.error;else if(!c)return!1;if(a=this.domain,c){if(t=arguments[1],!a){if(t instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=a,t.domainThrown=!1,a.emit("error",t),!1}if(!(i=s[e]))return!1;var l="function"==typeof i;switch(r=arguments.length){case 1:!function(e,t,i){if(t)e.call(i);else for(var r=e.length,n=Fn(e,r),o=0;o<r;++o)n[o].call(i)}(i,l,this);break;case 2:!function(e,t,i,r){if(t)e.call(i,r);else for(var n=e.length,o=Fn(e,n),s=0;s<n;++s)o[s].call(i,r)}(i,l,this,arguments[1]);break;case 3:!function(e,t,i,r,n){if(t)e.call(i,r,n);else for(var o=e.length,s=Fn(e,o),a=0;a<o;++a)s[a].call(i,r,n)}(i,l,this,arguments[1],arguments[2]);break;case 4:!function(e,t,i,r,n,o){if(t)e.call(i,r,n,o);else for(var s=e.length,a=Fn(e,s),c=0;c<s;++c)a[c].call(i,r,n,o)}(i,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(n=new Array(r-1),o=1;o<r;o++)n[o-1]=arguments[o];!function(e,t,i,r){if(t)e.apply(i,r);else for(var n=e.length,o=Fn(e,n),s=0;s<n;++s)o[s].apply(i,r)}(i,l,this,n)}return!0},Mn.prototype.addListener=function(e,t){return On(this,e,t,!1)},Mn.prototype.on=Mn.prototype.addListener,Mn.prototype.prependListener=function(e,t){return On(this,e,t,!0)},Mn.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,Bn(this,e,t)),this},Mn.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Bn(this,e,t)),this},Mn.prototype.removeListener=function(e,t){var i,r,n,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(i=r[e]))return this;if(i===t||i.listener&&i.listener===t)0==--this._eventsCount?this._events=new Dn:(delete r[e],r.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(n=-1,o=i.length;o-- >0;)if(i[o]===t||i[o].listener&&i[o].listener===t){s=i[o].listener,n=o;break}if(n<0)return this;if(1===i.length){if(i[0]=void 0,0==--this._eventsCount)return this._events=new Dn,this;delete r[e]}else!function(e,t){for(var i=t,r=i+1,n=e.length;r<n;i+=1,r+=1)e[i]=e[r];e.pop()}(i,n);r.removeListener&&this.emit("removeListener",e,s||t)}return this},Mn.prototype.removeAllListeners=function(e){var t,i;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=new Dn,this._eventsCount=0):i[e]&&(0==--this._eventsCount?this._events=new Dn:delete i[e]),this;if(0===arguments.length){for(var r,n=Object.keys(i),o=0;o<n.length;++o)"removeListener"!==(r=n[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new Dn,this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},Mn.prototype.listeners=function(e){var t,i=this._events;return i&&(t=i[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(t):[]},Mn.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):jn.call(e,t)},Mn.prototype.listenerCount=jn,Mn.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Nn=Object.freeze({__proto__:null,EventEmitter:Mn,default:Mn});function Vn(){this.head=null,this.tail=null,this.length=0}Vn.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},Vn.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Vn.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},Vn.prototype.clear=function(){this.head=this.tail=null,this.length=0},Vn.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i},Vn.prototype.concat=function(e){if(0===this.length)return St.alloc(0);if(1===this.length)return this.head.data;for(var t=St.allocUnsafe(e>>>0),i=this.head,r=0;i;)i.data.copy(t,r),r+=i.data.length,i=i.next;return t};var zn=St.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function $n(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!zn(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Hn;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=qn;break;default:return void(this.write=Un)}this.charBuffer=new St(6),this.charReceived=0,this.charLength=0}function Un(e){return e.toString(this.encoding)}function Hn(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function qn(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}$n.prototype.write=function(e){for(var t="";this.charLength;){var i=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";if(e=e.slice(i,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,r),r-=this.charReceived);var n;r=(t+=e.toString(this.encoding,0,r)).length-1;if((n=t.charCodeAt(r))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,r)}return t},$n.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var i=e[e.length-t];if(1==t&&i>>5==6){this.charLength=2;break}if(t<=2&&i>>4==14){this.charLength=3;break}if(t<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=t},$n.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var i=this.charReceived,r=this.charBuffer,n=this.encoding;t+=r.slice(0,i).toString(n)}return t};var Kn=Object.freeze({__proto__:null,StringDecoder:$n});Yn.ReadableState=Gn;var Jn=dr("stream");function Gn(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Co&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new Vn,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new $n(e.encoding),this.encoding=e.encoding)}function Yn(e){if(!(this instanceof Yn))return new Yn(e);this._readableState=new Gn(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),Mn.call(this)}function Wn(e,t,i,r,n){var o=function(e,t){var i=null;ui(t)||"string"==typeof t||null==t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));return i}(t,i);if(o)e.emit("error",o);else if(null===i)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,Qn(e)}(e,t);else if(t.objectMode||i&&i.length>0)if(t.ended&&!n){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&n){var a=new Error("stream.unshift() after end event");e.emit("error",a)}else{var c;!t.decoder||n||r||(i=t.decoder.write(i),c=!t.objectMode&&0===i.length),n||(t.reading=!1),c||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&Qn(e))),function(e,t){t.readingMore||(t.readingMore=!0,_i(to,e,t))}(e,t)}else n||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}or(Yn,Mn),Yn.prototype.push=function(e,t){var i=this._readableState;return i.objectMode||"string"!=typeof e||(t=t||i.defaultEncoding)!==i.encoding&&(e=St.from(e,t),t=""),Wn(this,i,e,t,!1)},Yn.prototype.unshift=function(e){return Wn(this,this._readableState,e,"",!0)},Yn.prototype.isPaused=function(){return!1===this._readableState.flowing},Yn.prototype.setEncoding=function(e){return this._readableState.decoder=new $n(e),this._readableState.encoding=e,this};var Zn=8388608;function Xn(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=Zn?e=Zn:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Qn(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Jn("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?_i(eo,e):eo(e))}function eo(e){Jn("emit readable"),e.emit("readable"),no(e)}function to(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Jn("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function io(e){Jn("readable nexttick read 0"),e.read(0)}function ro(e,t){t.reading||(Jn("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),no(e),t.flowing&&!t.reading&&e.read(0)}function no(e){var t=e._readableState;for(Jn("flow",t.flowing);t.flowing&&null!==e.read(););}function oo(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=function(e,t,i){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():i?function(e,t){var i=t.head,r=1,n=i.data;e-=n.length;for(;i=i.next;){var o=i.data,s=e>o.length?o.length:e;if(s===o.length?n+=o:n+=o.slice(0,e),0===(e-=s)){s===o.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(s));break}++r}return t.length-=r,n}(e,t):function(e,t){var i=St.allocUnsafe(e),r=t.head,n=1;r.data.copy(i),e-=r.data.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(i,i.length-e,0,s),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}(e,t);return r}(e,t.buffer,t.decoder),i);var i}function so(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,_i(ao,t,e))}function ao(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function co(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}function uo(){}function lo(e,t,i){this.chunk=e,this.encoding=t,this.callback=i,this.next=null}function po(e,t){Object.defineProperty(this,"buffer",{get:cr((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof Co&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var i=e._writableState,r=i.sync,n=i.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),t)!function(e,t,i,r,n){--t.pendingcb,i?_i(n,r):n(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,i,r,t,n);else{var o=mo(i);o||i.corked||i.bufferProcessing||!i.bufferedRequest||bo(e,i),r?_i(go,e,i,o,n):go(e,i,o,n)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new wo(this)}function ho(e){if(!(this instanceof ho||this instanceof Co))return new ho(e);this._writableState=new po(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),Mn.call(this)}function fo(e,t,i,r,n,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,i?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function go(e,t,i,r){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),yo(e,t)}function bo(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var r=t.bufferedRequestCount,n=new Array(r),o=t.corkedRequestsFree;o.entry=i;for(var s=0;i;)n[s]=i,i=i.next,s+=1;fo(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new wo(t)}else{for(;i;){var a=i.chunk,c=i.encoding,u=i.callback;if(fo(e,t,!1,t.objectMode?1:a.length,a,c,u),i=i.next,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=i,t.bufferProcessing=!1}function mo(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function vo(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function yo(e,t){var i=mo(t);return i&&(0===t.pendingcb?(vo(e,t),t.finished=!0,e.emit("finish")):vo(e,t)),i}function wo(e){var t=this;this.next=null,this.entry=null,this.finish=function(i){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(i),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}Yn.prototype.read=function(e){Jn("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Jn("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?so(this):Qn(this),null;if(0===(e=Xn(e,t))&&t.ended)return 0===t.length&&so(this),null;var r,n=t.needReadable;return Jn("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&Jn("length less than watermark",n=!0),t.ended||t.reading?Jn("reading or ended",n=!1):n&&(Jn("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Xn(i,t))),null===(r=e>0?oo(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&so(this)),null!==r&&this.emit("data",r),r},Yn.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Yn.prototype.pipe=function(e,t){var i=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Jn("pipe count=%d opts=%j",r.pipesCount,t);var n=!t||!1!==t.end?s:u;function o(e){Jn("onunpipe"),e===i&&u()}function s(){Jn("onend"),e.end()}r.endEmitted?_i(n):i.once("end",n),e.on("unpipe",o);var a=function(e){return function(){var t=e._readableState;Jn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,no(e))}}(i);e.on("drain",a);var c=!1;function u(){Jn("cleanup"),e.removeListener("close",h),e.removeListener("finish",f),e.removeListener("drain",a),e.removeListener("error",p),e.removeListener("unpipe",o),i.removeListener("end",s),i.removeListener("end",u),i.removeListener("data",d),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||a()}var l=!1;function d(t){Jn("ondata"),l=!1,!1!==e.write(t)||l||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==co(r.pipes,e))&&!c&&(Jn("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,l=!0),i.pause())}function p(t){var i;Jn("onerror",t),g(),e.removeListener("error",p),0===(i="error",e.listeners(i).length)&&e.emit("error",t)}function h(){e.removeListener("finish",f),g()}function f(){Jn("onfinish"),e.removeListener("close",h),g()}function g(){Jn("unpipe"),i.unpipe(e)}return i.on("data",d),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",p),e.once("close",h),e.once("finish",f),e.emit("pipe",i),r.flowing||(Jn("pipe resume"),i.resume()),e},Yn.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n<r;n++)i[n].emit("unpipe",this);return this}var o=co(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},Yn.prototype.on=function(e,t){var i=Mn.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Qn(this):_i(io,this))}return i},Yn.prototype.addListener=Yn.prototype.on,Yn.prototype.resume=function(){var e=this._readableState;return e.flowing||(Jn("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,_i(ro,e,t))}(this,e)),this},Yn.prototype.pause=function(){return Jn("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Jn("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Yn.prototype.wrap=function(e){var t=this._readableState,i=!1,r=this;for(var n in e.on("end",(function(){if(Jn("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(n){(Jn("wrapped data"),t.decoder&&(n=t.decoder.write(n)),t.objectMode&&null==n)||(t.objectMode||n&&n.length)&&(r.push(n)||(i=!0,e.pause()))})),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));return function(e,t){for(var i=0,r=e.length;i<r;i++)t(e[i],i)}(["error","close","destroy","pause","resume"],(function(t){e.on(t,r.emit.bind(r,t))})),r._read=function(t){Jn("wrapped _read",t),i&&(i=!1,e.resume())},r},Yn._fromList=oo,ho.WritableState=po,or(ho,Mn),po.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},ho.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},ho.prototype.write=function(e,t,i){var r=this._writableState,n=!1;return"function"==typeof t&&(i=t,t=null),St.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof i&&(i=uo),r.ended?function(e,t){var i=new Error("write after end");e.emit("error",i),_i(t,i)}(this,i):function(e,t,i,r){var n=!0,o=!1;return null===i?o=new TypeError("May not write null values to stream"):St.isBuffer(i)||"string"==typeof i||void 0===i||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),_i(r,o),n=!1),n}(this,r,e,i)&&(r.pendingcb++,n=function(e,t,i,r,n){i=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=St.from(t,i));return t}(t,i,r),St.isBuffer(i)&&(r="buffer");var o=t.objectMode?1:i.length;t.length+=o;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var a=t.lastBufferedRequest;t.lastBufferedRequest=new lo(i,r,n),a?a.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else fo(e,t,!1,o,i,r,n);return s}(this,r,e,t,i)),n},ho.prototype.cork=function(){this._writableState.corked++},ho.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||bo(this,e))},ho.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},ho.prototype._write=function(e,t,i){i(new Error("not implemented"))},ho.prototype._writev=null,ho.prototype.end=function(e,t,i){var r=this._writableState;"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,i){t.ending=!0,yo(e,t),i&&(t.finished?_i(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,r,i)},or(Co,Yn);for(var xo=Object.keys(ho.prototype),ko=0;ko<xo.length;ko++){var _o=xo[ko];Co.prototype[_o]||(Co.prototype[_o]=ho.prototype[_o])}function Co(e){if(!(this instanceof Co))return new Co(e);Yn.call(this,e),ho.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",Ao)}function Ao(){this.allowHalfOpen||this._writableState.ended||_i(So,this)}function So(e){e.end()}function Eo(e){this.afterTransform=function(t,i){return function(e,t,i){var r=e._transformState;r.transforming=!1;var n=r.writecb;if(!n)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=i&&e.push(i);n(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,i)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Po(e){if(!(this instanceof Po))return new Po(e);Co.call(this,e),this._transformState=new Eo(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){Lo(t,e)})):Lo(t)}))}function Lo(e,t){if(t)return e.emit("error",t);var i=e._writableState,r=e._transformState;if(i.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function Io(e){if(!(this instanceof Io))return new Io(e);Po.call(this,e)}function To(){Mn.call(this)}or(Po,Co),Po.prototype.push=function(e,t){return this._transformState.needTransform=!1,Co.prototype.push.call(this,e,t)},Po.prototype._transform=function(e,t,i){throw new Error("Not implemented")},Po.prototype._write=function(e,t,i){var r=this._transformState;if(r.writecb=i,r.writechunk=e,r.writeencoding=t,!r.transforming){var n=this._readableState;(r.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},Po.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},or(Io,Po),Io.prototype._transform=function(e,t,i){i(null,e)},or(To,Mn),To.Readable=Yn,To.Writable=ho,To.Duplex=Co,To.Transform=Po,To.PassThrough=Io,To.Stream=To,To.prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",s),i.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===Mn.listenerCount(this,"error"))throw e}function u(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",s),i.removeListener("close",a),i.removeListener("error",c),e.removeListener("error",c),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",c),e.on("error",c),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e};var Do=Object.freeze({__proto__:null,Duplex:Co,PassThrough:Io,Readable:Yn,Stream:To,Transform:Po,Writable:ho,default:To}),Mo=3,Ro=4;function Oo(e,t,i){var r,n=this;if(Yn.call(n),n._mode=i,n.headers={},n.rawHeaders=[],n.trailers={},n.rawTrailers=[],n.on("end",(function(){_i((function(){n.emit("close")}))})),"fetch"===i){n._fetchResponse=t,n.url=t.url,n.statusCode=t.status,n.statusMessage=t.statusText;for(var o,s,a=t.headers[Symbol.iterator]();o=(s=a.next()).value,!s.done;)n.headers[o[0].toLowerCase()]=o[1],n.rawHeaders.push(o[0],o[1]);var c=t.body.getReader();(r=function(){c.read().then((function(e){n._destroyed||(e.done?n.push(null):(n.push(new St(e.value)),r()))}))})()}else{if(n._xhr=e,n._pos=0,n.url=e.responseURL,n.statusCode=e.status,n.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var i=t[1].toLowerCase();"set-cookie"===i?(void 0===n.headers[i]&&(n.headers[i]=[]),n.headers[i].push(t[2])):void 0!==n.headers[i]?n.headers[i]+=", "+t[2]:n.headers[i]=t[2],n.rawHeaders.push(t[1],t[2])}})),n._charset="x-user-defined",!Ln){var u=n.rawHeaders["mime-type"];if(u){var l=u.match(/;\s*charset=([^;])(;|$)/);l&&(n._charset=l[1].toLowerCase())}n._charset||(n._charset="utf-8")}}}function Bo(e){var t,i=this;ho.call(i),i._opts=e,i._body=[],i._headers={},e.auth&&i.setHeader("Authorization","Basic "+new St(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){i.setHeader(t,e.headers[t])}));var r=!0;if("disable-fetch"===e.mode)r=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!Ln;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}i._mode=function(e,t){return kn&&t?"fetch":Pn?"moz-chunked-arraybuffer":En?"ms-stream":Sn&&e?"arraybuffer":In&&e?"text:vbarray":"text"}(t,r),i.on("finish",(function(){i._onFinish()}))}or(Oo,Yn),Oo.prototype._read=function(){},Oo.prototype._onXHRProgress=function(){var e=this,t=e._xhr,i=null;switch(e._mode){case"text:vbarray":if(t.readyState!==Ro)break;try{i=new dt.VBArray(t.responseBody).toArray()}catch(e){}if(null!==i){e.push(new St(i));break}case"text":try{i=t.responseText}catch(t){e._mode="text:vbarray";break}if(i.length>e._pos){var r=i.substr(e._pos);if("x-user-defined"===e._charset){for(var n=new St(r.length),o=0;o<r.length;o++)n[o]=255&r.charCodeAt(o);e.push(n)}else e.push(r,e._charset);e._pos=i.length}break;case"arraybuffer":if(t.readyState!==Ro||!t.response)break;i=t.response,e.push(new St(new Uint8Array(i)));break;case"moz-chunked-arraybuffer":if(i=t.response,t.readyState!==Mo||!i)break;e.push(new St(new Uint8Array(i)));break;case"ms-stream":if(i=t.response,t.readyState!==Mo)break;var s=new dt.MSStreamReader;s.onprogress=function(){s.result.byteLength>e._pos&&(e.push(new St(new Uint8Array(s.result.slice(e._pos)))),e._pos=s.result.byteLength)},s.onload=function(){e.push(null)},s.readAsArrayBuffer(i)}e._xhr.readyState===Ro&&"ms-stream"!==e._mode&&e.push(null)},or(Bo,ho);var jo=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];function Fo(e,t){"string"==typeof e&&(e=un(e));var i=-1===dt.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||i,n=e.hostname||e.host,o=e.port,s=e.path||"/";n&&-1!==n.indexOf(":")&&(n="["+n+"]"),e.url=(n?r+"//"+n:"")+(o?":"+o:"")+s,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var a=new Bo(e);return t&&a.on("response",t),a}function No(e,t){var i=Fo(e,t);return i.end(),i}function Vo(){}Bo.prototype.setHeader=function(e,t){var i=e.toLowerCase();-1===jo.indexOf(i)&&(this._headers[i]={name:e,value:t})},Bo.prototype.getHeader=function(e){return this._headers[e.toLowerCase()].value},Bo.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},Bo.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,i=e._opts,r=e._headers;if("POST"!==i.method&&"PUT"!==i.method&&"PATCH"!==i.method||(t=function(){if(void 0!==bn)return bn;try{new dt.Blob([new ArrayBuffer(1)]),bn=!0}catch(e){bn=!1}return bn}()?new dt.Blob(e._body.map((function(e){return function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(ui(e)){for(var t=new Uint8Array(e.length),i=e.length,r=0;r<i;r++)t[r]=e[r];return t.buffer}throw new Error("Argument must be a Buffer")}(e)})),{type:(r["content-type"]||{}).value||""}):St.concat(e._body).toString()),"fetch"===e._mode){var n=Object.keys(r).map((function(e){return[r[e].name,r[e].value]}));dt.fetch(e._opts.url,{method:e._opts.method,headers:n,body:t,mode:"cors",credentials:i.withCredentials?"include":"same-origin"}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){e.emit("error",t)}))}else{var o=e._xhr=new dt.XMLHttpRequest;try{o.open(e._opts.method,e._opts.url,!0)}catch(t){return void _i((function(){e.emit("error",t)}))}"responseType"in o&&(o.responseType=e._mode.split(":")[0]),"withCredentials"in o&&(o.withCredentials=!!i.withCredentials),"text"===e._mode&&"overrideMimeType"in o&&o.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(r).forEach((function(e){o.setRequestHeader(r[e].name,r[e].value)})),e._response=null,o.onreadystatechange=function(){switch(o.readyState){case Mo:case Ro:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(o.onprogress=function(){e._onXHRProgress()}),o.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{o.send(t)}catch(t){return void _i((function(){e.emit("error",t)}))}}}},Bo.prototype._onXHRProgress=function(){var e=this;(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},Bo.prototype._connect=function(){var e=this;e._destroyed||(e._response=new Oo(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},Bo.prototype._write=function(e,t,i){this._body.push(e),i()},Bo.prototype.abort=Bo.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},Bo.prototype.end=function(e,t,i){"function"==typeof e&&(i=e,e=void 0),ho.prototype.end.call(this,e,t,i)},Bo.prototype.flushHeaders=function(){},Bo.prototype.setTimeout=function(){},Bo.prototype.setNoDelay=function(){},Bo.prototype.setSocketKeepAlive=function(){},Vo.defaultMaxSockets=4;var zo=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"],$o={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Uo={request:Fo,get:No,Agent:Vo,METHODS:zo,STATUS_CODES:$o},Ho=Ni(Object.freeze({__proto__:null,Agent:Vo,METHODS:zo,STATUS_CODES:$o,default:Uo,get:No,request:Fo})),qo=vn,Ko=xn.spawn,Jo=xn,Go=function(){var e,t,i=this,r=Ho,n=Ho,o={},s=!1,a={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},c={},u={},l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],d=["TRACE","TRACK","CONNECT"],p=!1,h=!1,f={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null,this.withCredentials=!1;this.open=function(e,t,i,r,n){if(this.abort(),h=!1,!function(e){return e&&-1===d.indexOf(e)}(e))throw new Error("SecurityError: Request method not allowed");o={method:e,url:t.toString(),async:"boolean"!=typeof i||i,user:r||null,password:n||null},g(this.OPENED)},this.setDisableHeaderCheck=function(e){s=e},this.setRequestHeader=function(e,t){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(function(e){return s||e&&-1===l.indexOf(e.toLowerCase())}(e)){if(p)throw new Error("INVALID_STATE_ERR: send flag is true");e=u[e.toLowerCase()]||e,u[e.toLowerCase()]=e,c[e]=c[e]?c[e]+", "+t:t}else console.warn('Refused to set unsafe header "'+e+'"')},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&t&&t.headers&&t.headers[e.toLowerCase()]&&!h?t.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||h)return"";var e="";for(var i in t.headers)"set-cookie"!==i&&"set-cookie2"!==i&&(e+=i+": "+t.headers[i]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&u[e.toLowerCase()]?c[u[e.toLowerCase()]]:""},this.send=function(s){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(p)throw new Error("INVALID_STATE_ERR: send has already been called");var l,d=!1,f=!1,b=qo.parse(o.url);switch(b.protocol){case"https:":d=!0;case"http:":l=b.hostname;break;case"file:":f=!0;break;case void 0:case null:case"":l="localhost";break;default:throw new Error("Protocol not supported.")}if(f){if("GET"!==o.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(o.async)Jo.readFile(b.pathname,"utf8",(function(e,t){e?i.handleError(e):(i.status=200,i.responseText=t,g(i.DONE))}));else try{this.responseText=Jo.readFileSync(b.pathname,"utf8"),this.status=200,g(i.DONE)}catch(e){this.handleError(e)}}else{var m=b.port||(d?443:80),v=b.pathname+(b.search?b.search:"");for(var y in a)u[y.toLowerCase()]||(c[y]=a[y]);if(c.Host=l,d&&443===m||80===m||(c.Host+=":"+b.port),o.user){void 0===o.password&&(o.password="");var w=new St(o.user+":"+o.password);c.Authorization="Basic "+w.toString("base64")}"GET"===o.method||"HEAD"===o.method?s=null:s?(c["Content-Length"]=ui(s)?s.length:St.byteLength(s),c["Content-Type"]||(c["Content-Type"]="text/plain;charset=UTF-8")):"POST"===o.method&&(c["Content-Length"]=0);var x={host:l,port:m,path:v,method:o.method,headers:c,agent:!1,withCredentials:i.withCredentials};if(h=!1,o.async){var k=d?n.request:r.request;p=!0,i.dispatchEvent("readystatechange");var _=function(e){i.handleError(e)};e=k(x,(function r(n){if(301!==(t=n).statusCode&&302!==t.statusCode&&303!==t.statusCode&&307!==t.statusCode)t.setEncoding("utf8"),g(i.HEADERS_RECEIVED),i.status=t.statusCode,t.on("data",(function(e){e&&(i.responseText+=e),p&&g(i.LOADING)})),t.on("end",(function(){p&&(g(i.DONE),p=!1)})),t.on("error",(function(e){i.handleError(e)}));else{o.url=t.headers.location;var s=qo.parse(o.url);l=s.hostname;var a={hostname:s.hostname,port:s.port,path:s.path,method:303===t.statusCode?"GET":o.method,headers:c,withCredentials:i.withCredentials};(e=k(a,r).on("error",_)).end()}})).on("error",_),s&&e.write(s),e.end(),i.dispatchEvent("loadstart")}else{var C=".node-xmlhttprequest-content-"+Bi.pid,A=".node-xmlhttprequest-sync-"+Bi.pid;Jo.writeFileSync(A,"","utf8");for(var S="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(d?"s":"")+".request;var options = "+JSON.stringify(x)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+C+"', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');fs.unlinkSync('"+A+"');});response.on('error', function(error) {fs.writeFileSync('"+C+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+A+"');});}).on('error', function(error) {fs.writeFileSync('"+C+"', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('"+A+"');});"+(s?"req.write('"+JSON.stringify(s).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",E=Ko(Bi.argv[0],["-e",S]);Jo.existsSync(A););var P=JSON.parse(Jo.readFileSync(C,"utf8"));E.stdin.end(),Jo.unlinkSync(C),P.err?i.handleError(P.err):(t=P.data,i.status=P.data.statusCode,i.responseText=P.data.text,g(i.DONE))}}},this.handleError=function(e){this.status=0,this.statusText=e,this.responseText=e.stack,h=!0,g(this.DONE),this.dispatchEvent("error")},this.abort=function(){e&&(e.abort(),e=null),c=a,this.status=0,this.responseText="",this.responseXML="",h=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!p||this.readyState===this.DONE||(p=!1,g(this.DONE)),this.readyState=this.UNSENT,this.dispatchEvent("abort")},this.addEventListener=function(e,t){e in f||(f[e]=[]),f[e].push(t)},this.removeEventListener=function(e,t){e in f&&(f[e]=f[e].filter((function(e){return e!==t})))},this.dispatchEvent=function(e){if("function"==typeof i["on"+e]&&i["on"+e](),e in f)for(var t=0,r=f[e].length;t<r;t++)f[e][t].call(i)};var g=function(e){e!=i.LOADING&&i.readyState===e||(i.readyState=e,(o.async||i.readyState<i.OPENED||i.readyState===i.DONE)&&i.dispatchEvent("readystatechange"),i.readyState!==i.DONE||h||(i.dispatchEvent("load"),i.dispatchEvent("loadend")))}},Yo=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};function Wo(e){return Yo(this,void 0,void 0,(function*(){return yield new Promise(((t,i)=>{let{url:r}=e;r||i(new Error("URL is missing")),"http://"!==r.substr(0,7)||e.forceHttp||(console.warn(`Upgrading requested url ${r} to https protocol.`),r=r.replace("http://","https://"));const n=new("undefined"==typeof XMLHttpRequest?Go:XMLHttpRequest);e["bearer-token"]&&n.setRequestHeader("Authorization",`Bearer ${e["bearer-token"]}`),n.onload=()=>{if(n.status>=200&&n.status<300)t(n.responseText);else{console.log(n.responseText);const e=`Error fetching url:${r}; status code:${n.status}`;i(new Error(e))}},n.ontimeout=e=>{console.log("ontimeout",e)},n.onreadystatechange=()=>{404===n.status&&i(new Error(`Error fetching url:${r}; status code:${n.status}`))},n.onerror=()=>{console.error(`Request failed with error ${n.responseText}`),i(new Error(n.responseText))},n.open(e.method||"GET",r),e.body?n.send(JSON.stringify(e.body)):n.send()}))}))}function Zo(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function Xo(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(Zo(e,r))return e.slice(r.length)}return e}var Qo=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};const es="https://api.etherscan.io/api?module=proxy";function ts(e){const t={[nt.Ethropst]:"ropsten",[nt.Ethrinkeby]:"rinkeby",[nt.Ethgoerli]:"goerli",[nt.Ethsepolia]:"sepolia"};if(!t[e])return es;return`https://api-${t[e]}.etherscan.io/api?module=proxy`}const is={serviceURL:function(e){return`${ts(e)}&action=eth_getTransactionByHash&txhash=${rt}`},serviceName:tt.etherscan,parsingFunction:function({jsonResponse:e,chain:t,key:i,keyPropertyName:r}){return Qo(this,void 0,void 0,(function*(){const n=ts(t),o={serviceURL:{main:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${rt}`,test:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${rt}`}},s={serviceURL:{main:`${n}&action=eth_blockNumber`,test:`${n}&action=eth_blockNumber`}};const a=yield function(e,t){return Qo(this,void 0,void 0,(function*(){const n=e.result.blockNumber,a=lt({explorerAPI:Object.assign(Object.assign({},o),{key:i,keyPropertyName:r}),transactionId:n,chain:t});try{const e=yield Wo({url:a}),o=JSON.parse(e).result;return yield function(e,t){return Qo(this,void 0,void 0,(function*(){const n=lt({explorerAPI:Object.assign(Object.assign({},s),{key:i,keyPropertyName:r}),chain:e});let o;try{o=yield Wo({url:n})}catch(e){throw new Error("Unable to get remote hash")}const a=JSON.parse(o).result;if(a-t<at.MininumConfirmations)throw new Error("Not enough");return a}))}(t,n),o}catch(e){throw new Error("Unable to get remote hash")}}))}(e,t);return function(e,t){const i=e.result,r=new Date(1e3*parseInt(t.timestamp,16)),n=i.from;return{remoteHash:Xo(i.input,st.ethmain.prefixes),issuingAddress:n,time:r,revokedAddresses:[]}}(e,a)}))},priority:-1};function rs(e){const t=Date.parse(e);if(t)return new Date(t);const i=function(e){let t=e.slice(0,-5).split(/\D/).map((function(e){return parseInt(e,10)||0}));t[1]-=1,t=new Date(Date.UTC.apply(Date,t));const i=e.slice(-5);let r=parseInt(i,10)/100;return"+"===i.slice(0,1)&&(r*=-1),t.setHours(t.getHours()+r),t.getTime()}(e);return i||function(e){let t,i;const r=/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/.exec(e)||[];return r[1]?(t=r[1].split(/\D/).map((function(e){return parseInt(e,10)||0})),t[1]-=1,t=new Date(Date.UTC.apply(Date,t)),t.getDate()?(r[5]&&(i=parseInt(r[5],10)/100*60,r[6]&&(i+=parseInt(r[6],10)),"+"===r[4]&&(i*=-1),i&&t.setUTCMinutes(t.getUTCMinutes()+i)),t):null):null}(e)}function ns(e){return""===e?"":rs(`${e}`)}function os(e){return new Date(1e3*e)}const ss={serviceURL:{main:`https://api.blockcypher.com/v1/eth/main/txs/${rt}?limit=500`,test:`https://api.blockcypher.com/v1/beth/test/txs/${rt}?limit=500`},serviceName:tt.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<at.MininumConfirmations)throw new Error("Not enough");const t=ns(e.received),i=e.outputs,r=i[i.length-1];let n=e.inputs[0].addresses[0];const o=Xo(r.script,st.ethmain.prefixes);return n=function(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(!Zo(e,r))return`${r}${e}`}return e}(n,st.ethmain.prefixes),{remoteHash:o,issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.spent_by)).map((e=>e.addresses[0]))}},priority:-1};const as={serviceURL:{main:`https://blockstream.info/api/tx/${rt}`,test:`https://blockstream.info/testnet/api/tx/${rt}`},serviceName:tt.blockstream,parsingFunction:function({jsonResponse:e}){if(!e.status.confirmed)throw new Error("Number of transaction confirmations were less than the minimum required, according to Blockstream API");const t=os(e.status.block_time),i=e.vout,r=i[i.length-1],n=e.vin[0].prevout.scriptpubkey_address;return{remoteHash:Xo(r.scriptpubkey,st.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.scriptpubkey_address)).map((e=>e.scriptpubkey_address))}},priority:-1};const cs={serviceURL:{main:`https://api.blockcypher.com/v1/btc/main/txs/${rt}?limit=500`,test:`https://api.blockcypher.com/v1/btc/test3/txs/${rt}?limit=500`},serviceName:tt.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<at.MininumConfirmations)throw new Error("Number of transaction confirmations were less than the minimum required, according to Blockcypher API");const t=ns(e.received),i=e.outputs,r=i[i.length-1],n=e.inputs[0].addresses[0];return{remoteHash:Xo(r.script,st.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter((e=>!!e.spent_by)).map((e=>e.addresses[0]))}},priority:-1};var us=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};function ls(e){return e.map((e=>({getTxData:(t,i)=>us(this,void 0,void 0,(function*(){return yield function(e,t,i){return us(this,void 0,void 0,(function*(){const r=lt({explorerAPI:e,transactionId:t,chain:i});try{const t=yield Wo({url:r});return yield e.parsingFunction(Object.assign({jsonResponse:JSON.parse(t),chain:i},e))}catch(e){throw new Error("Unable to get remote hash")}}))}(e,t,i)})),priority:e.priority})))}const ds=[cs,as],ps=[is,ss];var hs=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};function fs({serviceUrl:e,transactionId:t}){return hs(this,void 0,void 0,(function*(){const i={method:"eth_getTransactionByHash",jsonrpc:"2.0",id:"getbyhash",params:["0x"+t]},r=yield Wo({url:e,body:i,method:"POST"}),n=JSON.parse(r),o={method:"eth_getBlockByNumber",jsonrpc:"2.0",id:"blockbynumber",params:[n.result.blockNumber,!0]},s=yield Wo({url:e,body:o,method:"POST"}),a=JSON.parse(s),c=n.result,u=a.result,l=new Date(1e3*parseInt(u.timestamp,16)),d=c.from;return{remoteHash:Xo(c.input,["0x"]),issuingAddress:d,time:l,revokedAddresses:[]}}))}var gs=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};function bs({serviceUrl:e,transactionId:t}){return gs(this,void 0,void 0,(function*(){const i={method:"getrawtransaction",jsonrpc:"2.0",id:"rpctest",params:[t,!0]},r=yield Wo({url:e,body:i,method:"POST"}),n=JSON.parse(r).result;return{issuingAddress:n.vout[0].scriptPubKey.addresses[0],remoteHash:Xo(n.vout[1].scriptPubKey.asm,["6a20","OP_RETURN "]),time:os(n.blocktime),revokedAddresses:n.vout.filter((e=>!!e.scriptPubKey.addresses)).map((e=>e.scriptPubKey.addresses)).flat()}}))}var ms=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};const vs=[];function ys(e=[],t=[],i=!1){const r=e.map((e=>e.serviceName)).filter((e=>!!e)).filter((e=>!!tt[e]));return r.length?t.reduce(((t,n)=>{if(r.includes(n.serviceName)){const i=Object.assign({},n),r=e.find((e=>e.serviceName===n.serviceName));if(function(e){if(e.key&&!e.keyPropertyName)throw new Error(`Property keyPropertyName is not set for ${e.serviceName}. Cannot pass the key property to the service.`);return!0}(r)){const n=Object.assign(i,r);t.push(n);const o=e.findIndex((e=>e.serviceName===n.serviceName));vs.includes(o)||vs.push(o)}}else t.push(n);return i&&function(e,t){t.forEach((t=>e.splice(t,1)))}(e,vs),t}),[]):t}function ws(e){return e.map((e=>(e.parsingFunction||(e.parsingFunction="btc"===e.chainType?bs:fs),e))).map((e=>({getTxData:t=>ms(this,void 0,void 0,(function*(){return yield e.parsingFunction(Object.assign(Object.assign({},e),{transactionId:t}))})),priority:e.priority})))}function xs(e){const{bitcoin:t,ethereum:i}={bitcoin:ls(ys(r=e,ds)),ethereum:ls(ys(r,ps))};var r;const{custom:n}=function(e){return{custom:ws(e)}}(e.filter((e=>"rpc"===e.apiType)));return{bitcoin:t,ethereum:i,custom:[...n,...ls(e.filter((e=>"rpc"!==e.apiType)))]}}var ks,_s=function(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};function Cs(e,t){var i;switch(e){case st[nt.Bitcoin].code:case st[nt.Regtest].code:case st[nt.Testnet].code:case st[nt.Mocknet].code:return t.bitcoin;case st[nt.Ethmain].code:case st[nt.Ethropst].code:case st[nt.Ethrinkeby].code:case st[nt.Ethgoerli].code:case st[nt.Ethsepolia].code:return t.ethereum;default:if(!(null===(i=t.custom)||void 0===i?void 0:i.length))throw new Error("Chain is not natively supported. Use custom explorers to retrieve tx data.");return t.custom}}function As(e){return _s(this,void 0,void 0,(function*(){let t;try{t=yield ut(e,at.MinimumBlockchainExplorers)}catch(e){throw new Error(`Transaction lookup error: ${e.message}`)}if(!t||0===t.length)throw new Error("Could not confirm transaction data.");const i=t[0];for(let e=1;e<t.length;e++){const r=t[e];if(i.issuingAddress!==r.issuingAddress)throw new Error("Issuing addresses do not match consistently");if(i.remoteHash!==r.remoteHash)throw new Error("Remote hashes do not match consistently")}return i}))}function Ss(e,t,i,r){return _s(this,void 0,void 0,(function*(){try{const n=function(e,t,i){if(at.MinimumBlockchainExplorers>e.length)throw new Error("Invalid application configuration; check the CONFIG.MinimumBlockchainExplorers configuration value");const r=[],n=e.length;for(let o=0;o<n;o++)r.push(e[o].getTxData(t,i));return r}(e[t],i,r);return yield As(n)}catch(n){if(t<e.length-1)return t++,yield Ss(e,t,i,r);throw n}}))}function Es({transactionId:e,chain:t,explorerAPIs:i=[]}){return _s(this,void 0,void 0,(function*(){const r=xs(i),n=function({defaultAPIs:e,customAPIs:t}){const i=[e];if(null==t?void 0:t.length){const e=t[0].priority;i.splice(e,0,t)}const r=e.concat(t).length;if(at.MinimumBlockchainExplorers>r)throw new Error("Invalid application configuration; check the CONFIG.MinimumBlockchainExplorers configuration value");return i}({defaultAPIs:Cs(t,r),customAPIs:r.custom});return yield Ss(n,0,e,t)}))}!function(e){e.mainnet="mainnet",e.testnet="testnet"}(ks||(ks={}));var Ps="ecdsa-koblitz-pubkey:1",Ls="https://openbadgespec.org/v2/context.json",Is="https://www.w3.org/2018/credentials/v1",Ts="https://www.w3.org/ns/credentials/v2",Ds="https://w3id.org/blockcerts/schema/2.0/context.json",Ms="https://w3id.org/blockcerts/v2",Rs="https://www.blockcerts.org/schema/2.0/context.json",Os="https://w3id.org/blockcerts/schema/2.1/context.json",Bs="https://w3id.org/blockcerts/v2.1",js="https://www.blockcerts.org/schema/2.1/context.json",Fs="https://w3id.org/blockcerts/schema/3.0/context.json",Ns="https://w3id.org/blockcerts/v3",Vs="https://www.blockcerts.org/schema/3.0/context.json",zs="https://w3id.org/blockcerts/schema/3.1/context.json",$s="https://w3id.org/blockcerts/v3.1",Us="https://www.blockcerts.org/schema/3.1/context.json",Hs="https://w3id.org/security/suites/merkle-2019/v1",qs="https://w3id.org/security/suites/chained-2021/v1",Ks="https://w3id.org/vc/status-list/2021/v1",Js={"@context":{id:"@id",type:"@type",extensions:"https://w3id.org/openbadges/extensions#",obi:"https://w3id.org/openbadges#",validation:"obi:validation",cred:"https://w3id.org/credentials#",dc:"http://purl.org/dc/terms/",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",AlignmentObject:"schema:AlignmentObject",CryptographicKey:"sec:Key",Endorsement:"cred:Credential",Assertion:"obi:Assertion",BadgeClass:"obi:BadgeClass",Criteria:"obi:Criteria",Evidence:"obi:Evidence",Extension:"obi:Extension",FrameValidation:"obi:FrameValidation",IdentityObject:"obi:IdentityObject",Image:"obi:Image",HostedBadge:"obi:HostedBadge",hosted:"obi:HostedBadge",Issuer:"obi:Issuer",Profile:"obi:Profile",RevocationList:"obi:RevocationList",SignedBadge:"obi:SignedBadge",signed:"obi:SignedBadge",TypeValidation:"obi:TypeValidation",VerificationObject:"obi:VerificationObject",author:{"@id":"schema:author","@type":"@id"},caption:{"@id":"schema:caption"},claim:{"@id":"cred:claim","@type":"@id"},created:{"@id":"dc:created","@type":"xsd:dateTime"},creator:{"@id":"dc:creator","@type":"@id"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},endorsement:{"@id":"cred:credential","@type":"@id"},expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},genre:{"@id":"schema:genre"},image:{"@id":"schema:image","@type":"@id"},name:{"@id":"schema:name"},owner:{"@id":"sec:owner","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},publicKeyPem:{"@id":"sec:publicKeyPem"},related:{"@id":"dc:relation","@type":"@id"},startsWith:{"@id":"http://purl.org/dqm-vocabulary/v1/dqm#startsWith"},tags:{"@id":"schema:keywords"},targetDescription:{"@id":"schema:targetDescription"},targetFramework:{"@id":"schema:targetFramework"},targetName:{"@id":"schema:targetName"},targetUrl:{"@id":"schema:targetUrl"},telephone:{"@id":"schema:telephone"},url:{"@id":"schema:url","@type":"@id"},version:{"@id":"schema:version"},alignment:{"@id":"obi:alignment","@type":"@id"},allowedOrigins:{"@id":"obi:allowedOrigins"},audience:{"@id":"obi:audience"},badge:{"@id":"obi:badge","@type":"@id"},criteria:{"@id":"obi:criteria","@type":"@id"},endorsementComment:{"@id":"obi:endorsementComment"},evidence:{"@id":"obi:evidence","@type":"@id"},hashed:{"@id":"obi:hashed","@type":"xsd:boolean"},identity:{"@id":"obi:identityHash"},issuedOn:{"@id":"obi:issueDate","@type":"xsd:dateTime"},issuer:{"@id":"obi:issuer","@type":"@id"},narrative:{"@id":"obi:narrative"},recipient:{"@id":"obi:recipient","@type":"@id"},revocationList:{"@id":"obi:revocationList","@type":"@id"},revocationReason:{"@id":"obi:revocationReason"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},revokedAssertions:{"@id":"obi:revoked"},salt:{"@id":"obi:salt"},targetCode:{"@id":"obi:targetCode"},uid:{"@id":"obi:uid"},validatesType:"obi:validatesType",validationFrame:"obi:validationFrame",validationSchema:"obi:validationSchema",verification:{"@id":"obi:verify","@type":"@id"},verificationProperty:{"@id":"obi:verificationProperty"},verify:"verification"}},Gs={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:{"@id":"obi:verify","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0/merkleProof2017Schema.json"}]},Ys={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"obi:revoked","@type":"xsd:boolean"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:{"@id":"obi:verify","@type":"@id"},publicKey:{"@id":"sec:publicKey","@type":"@id"},BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.1/merkleProof2017Schema.json"}]},Ws={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType"},contentEncoding:{"@id":"bc:contentEncoding"},content:{"@id":"bc:content"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"}}},Zs={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType"},contentEncoding:{"@id":"bc:contentEncoding"},content:{"@id":"bc:content"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"}}};const Xs={};Xs["https://w3id.org/openbadges/v2"]=Js,Xs[Ls]=Js,Xs[Is]={"@context":{"@version":1.1,id:"@id",type:"@type",VerifiableCredential:{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",credentialSchema:{"@id":"cred:credentialSchema","@type":"@id","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",JsonSchemaValidator2018:"cred:JsonSchemaValidator2018"}},credentialStatus:{"@id":"cred:credentialStatus","@type":"@id"},credentialSubject:{"@id":"cred:credentialSubject","@type":"@id"},evidence:{"@id":"cred:evidence","@type":"@id"},expirationDate:{"@id":"cred:expirationDate","@type":"xsd:dateTime"},holder:{"@id":"cred:holder","@type":"@id"},issued:{"@id":"cred:issued","@type":"xsd:dateTime"},issuer:{"@id":"cred:issuer","@type":"@id"},issuanceDate:{"@id":"cred:issuanceDate","@type":"xsd:dateTime"},proof:{"@id":"sec:proof","@type":"@id","@container":"@graph"},refreshService:{"@id":"cred:refreshService","@type":"@id","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",ManualRefreshService2018:"cred:ManualRefreshService2018"}},termsOfUse:{"@id":"cred:termsOfUse","@type":"@id"},validFrom:{"@id":"cred:validFrom","@type":"xsd:dateTime"},validUntil:{"@id":"cred:validUntil","@type":"xsd:dateTime"}}},VerifiablePresentation:{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@version":1.1,id:"@id",type:"@type",cred:"https://www.w3.org/2018/credentials#",sec:"https://w3id.org/security#",holder:{"@id":"cred:holder","@type":"@id"},proof:{"@id":"sec:proof","@type":"@id","@container":"@graph"},verifiableCredential:{"@id":"cred:verifiableCredential","@type":"@id","@container":"@graph"}}},EcdsaSecp256k1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1Signature2019","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},EcdsaSecp256r1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256r1Signature2019","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},Ed25519Signature2018:{"@id":"https://w3id.org/security#Ed25519Signature2018","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},RsaSignature2018:{"@id":"https://w3id.org/security#RsaSignature2018","@context":{"@version":1.1,challenge:"sec:challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"xsd:dateTime"},domain:"sec:domain",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},jws:"sec:jws",nonce:"sec:nonce",proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab","@context":{"@version":1.1,id:"@id",type:"@type",sec:"https://w3id.org/security#",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"}}},proofValue:"sec:proofValue",verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"}}},proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"}}},Xs[Ts]={"@context":{"@protected":!0,"@vocab":"https://www.w3.org/ns/credentials/issuer-dependent#",id:"@id",type:"@type",kid:{"@id":"https://www.iana.org/assignments/jose#kid","@type":"@id"},iss:{"@id":"https://www.iana.org/assignments/jose#iss","@type":"@id"},sub:{"@id":"https://www.iana.org/assignments/jose#sub","@type":"@id"},jku:{"@id":"https://www.iana.org/assignments/jose#jku","@type":"@id"},x5u:{"@id":"https://www.iana.org/assignments/jose#x5u","@type":"@id"},aud:{"@id":"https://www.iana.org/assignments/jwt#aud","@type":"@id"},exp:{"@id":"https://www.iana.org/assignments/jwt#exp","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},nbf:{"@id":"https://www.iana.org/assignments/jwt#nbf","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},iat:{"@id":"https://www.iana.org/assignments/jwt#iat","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},cnf:{"@id":"https://www.iana.org/assignments/jwt#cnf","@context":{"@protected":!0,kid:{"@id":"https://www.iana.org/assignments/jwt#kid","@type":"@id"},jwk:{"@id":"https://www.iana.org/assignments/jwt#jwk","@type":"@json"}}},_sd_alg:{"@id":"https://www.iana.org/assignments/jwt#_sd_alg"},_sd:{"@id":"https://www.iana.org/assignments/jwt#_sd"},"...":{"@id":"https://www.iana.org/assignments/jwt#..."},digestSRI:{"@id":"https://www.w3.org/2018/credentials#digestSRI","@type":"https://www.w3.org/2018/credentials#sriString"},digestMultibase:{"@id":"https://w3id.org/security#digestMultibase","@type":"https://w3id.org/security#multibase"},mediaType:{"@id":"https://schema.org/encodingFormat"},description:"https://schema.org/description",name:"https://schema.org/name",EnvelopedVerifiableCredential:"https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential",VerifiableCredential:{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@protected":!0,id:"@id",type:"@type",credentialSchema:{"@id":"https://www.w3.org/2018/credentials#credentialSchema","@type":"@id"},credentialStatus:{"@id":"https://www.w3.org/2018/credentials#credentialStatus","@type":"@id"},credentialSubject:{"@id":"https://www.w3.org/2018/credentials#credentialSubject","@type":"@id"},description:"https://schema.org/description",evidence:{"@id":"https://www.w3.org/2018/credentials#evidence","@type":"@id"},validFrom:{"@id":"https://www.w3.org/2018/credentials#validFrom","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},validUntil:{"@id":"https://www.w3.org/2018/credentials#validUntil","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},issuer:{"@id":"https://www.w3.org/2018/credentials#issuer","@type":"@id"},name:"https://schema.org/name",proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},refreshService:{"@id":"https://www.w3.org/2018/credentials#refreshService","@type":"@id"},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},confidenceMethod:{"@id":"https://www.w3.org/2018/credentials#confidenceMethod","@type":"@id"},relatedResource:{"@id":"https://www.w3.org/2018/credentials#relatedResource","@type":"@id"}}},VerifiablePresentation:{"@id":"https://www.w3.org/2018/credentials#VerifiablePresentation","@context":{"@protected":!0,id:"@id",type:"@type",holder:{"@id":"https://www.w3.org/2018/credentials#holder","@type":"@id"},proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},verifiableCredential:{"@id":"https://www.w3.org/2018/credentials#verifiableCredential","@type":"@id","@container":"@graph","@context":null},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"}}},JsonSchemaCredential:"https://w3.org/2018/credentials#JsonSchemaCredential",JsonSchema:{"@id":"https://w3.org/2018/credentials#JsonSchema","@context":{"@protected":!0,id:"@id",type:"@type",jsonSchema:{"@id":"https://w3.org/2018/credentials#jsonSchema","@type":"@json"}}},BitstringStatusListCredential:"https://www.w3.org/ns/credentials/status#BitstringStatusListCredential",BitstringStatusList:{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusList","@context":{"@protected":!0,id:"@id",type:"@type",statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",encodedList:"https://www.w3.org/ns/credentials/status#encodedList",ttl:"https://www.w3.org/ns/credentials/status#ttl",statusReference:"https://www.w3.org/ns/credentials/status#statusReference",statusSize:"https://www.w3.org/ns/credentials/status#statusSize",statusMessage:{"@id":"https://www.w3.org/ns/credentials/status#statusMessage","@context":{"@protected":!0,id:"@id",type:"@type",status:"https://www.w3.org/ns/credentials/status#status",message:"https://www.w3.org/ns/credentials/status#message"}}}},BitstringStatusListEntry:{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusListEntry","@context":{"@protected":!0,id:"@id",type:"@type",statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",statusListIndex:"https://www.w3.org/ns/credentials/status#statusListIndex",statusListCredential:{"@id":"https://www.w3.org/ns/credentials/status#statusListCredential","@type":"@id"}}},DataIntegrityProof:{"@id":"https://w3id.org/security#DataIntegrityProof","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",previousProof:{"@id":"https://w3id.org/security#previousProof","@type":"@id"},proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},cryptosuite:{"@id":"https://w3id.org/security#cryptosuite","@type":"https://w3id.org/security#cryptosuiteString"},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}},Xs[Ds]=Gs,Xs[Rs]=Gs,Xs[Ms]=Gs,Xs[Os]=Ys,Xs[js]=Ys,Xs[Bs]=Ys,Xs[Fs]=Ws,Xs[Vs]=Ws,Xs[Ns]=Ws,Xs[zs]=Zs,Xs[Us]=Zs,Xs[$s]=Zs,Xs[Hs]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},MerkleProof2019:{"@id":"https://w3id.org/security#MerkleProof2019","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}},Xs[qs]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},ChainedProof2021:{"@id":"https://w3id.org/security#ChainedProof2021","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"},chainedProofType:{"@id":"https://w3id.org/security#chainedProofType","@type":"@id"},previousProof:{"@id":"https://w3id.org/security#previousProof","@type":"@id"}}}}},Xs[Ks]={"@context":{"@protected":!0,StatusList2021Credential:{"@id":"https://w3id.org/vc/status-list#StatusList2021Credential","@context":{"@protected":!0,id:"@id",type:"@type",description:"http://schema.org/description",name:"http://schema.org/name"}},StatusList2021:{"@id":"https://w3id.org/vc/status-list#StatusList2021","@context":{"@protected":!0,id:"@id",type:"@type",statusPurpose:"https://w3id.org/vc/status-list#statusPurpose",encodedList:"https://w3id.org/vc/status-list#encodedList"}},StatusList2021Entry:{"@id":"https://w3id.org/vc/status-list#StatusList2021Entry","@context":{"@protected":!0,id:"@id",type:"@type",statusPurpose:"https://w3id.org/vc/status-list#statusPurpose",statusListIndex:"https://w3id.org/vc/status-list#statusListIndex",statusListCredential:{"@id":"https://w3id.org/vc/status-list#statusListCredential","@type":"@id"}}}}};var Qs={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",obi:"https://w3id.org/openbadges#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2017:"sec:MerkleProof2017",RecipientProfile:"bc:RecipientProfile",SignatureLine:"bc:SignatureLine",MerkleProofVerification2017:"bc:MerkleProofVerification2017",recipientProfile:"bc:recipientProfile",signatureLines:"bc:signatureLines",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},subtitle:"bc:subtitle",jobTitle:"schema:jobTitle",creator:{"@id":"dc:creator","@type":"@id"},expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},revoked:{"@id":"sec:expiration","@type":"xsd:dateTime"},CryptographicKey:"sec:Key",signature:"sec:signature",verification:"bc:verification",publicKeys:"bc:publicKeys",ChainpointSHA256v2:"cp:ChainpointSHA256v2",BTCOpReturn:"cp:BTCOpReturn",targetHash:"cp:targetHash",merkleRoot:"cp:merkleRoot",proof:"cp:proof",anchors:"cp:anchors",sourceId:"cp:sourceId",right:"cp:right",left:"cp:left"},"obi:validation":[{"obi:validatesType":"RecipientProfile","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/recipientSchema.json"},{"obi:validatesType":"SignatureLine","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/signatureLineSchema.json"},{"obi:validatesType":"MerkleProof2017","obi:validationSchema":"https://w3id.org/blockcerts/schema/2.0-alpha/merkleProof2017Schema.json"}]},ea={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",schema:"http://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"bc:created","@type":"xsd:dateTime"},name:{"@id":"schema:name"}}},ta={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",cp:"https://w3id.org/chainpoint#",vc:"https://www.w3.org/2018/credentials/v1",schema:"https://schema.org/",sec:"https://w3id.org/security#",xsd:"http://www.w3.org/2001/XMLSchema#",MerkleProof2019:"sec:MerkleProof2019",BlockcertsCredential:"bc:BlockcertsCredential",introductionUrl:{"@id":"bc:introductionUrl","@type":"@id"},metadata:"bc:metadata",display:{"@id":"bc:display","@context":{id:"@id",type:"@type",contentMediaType:{"@id":"bc:contentMediaType","@type":"@id"},contentEncoding:{"@id":"bc:contentEncoding","@type":"@id"},content:{"@id":"bc:content","@type":"@id"}}},CryptographicKey:"sec:Key",domain:"sec:domain",nonce:"sec:nonce",proofValue:"sec:proofValue",assertionMethod:{"@id":"sec:assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"sec:authenticationMethod","@type":"@id","@container":"@set"},proofPurpose:{"@id":"sec:proofPurpose","@type":"@vocab"},verificationMethod:{"@id":"sec:verificationMethod","@type":"@id"},created:{"@id":"https://purl.org/dc/terms/created","@type":"xsd:dateTime"},challenge:"sec:challenge",expires:{"@id":"sec:expiration","@type":"xsd:dateTime"},name:{"@id":"schema:name"},description:{"@id":"schema:description"},email:{"@id":"schema:email"},publicKey:{"@id":"sec:publicKey","@type":"@id"},url:{"@id":"schema:url","@type":"@id"},image:{"@id":"schema:image","@type":"@id"}}},ia={"@context":{"@protected":!0,id:"@id",type:"@type",alsoKnownAs:{"@id":"https://www.w3.org/ns/activitystreams#alsoKnownAs","@type":"@id"},assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"},service:{"@id":"https://www.w3.org/ns/did#service","@type":"@id","@context":{"@protected":!0,id:"@id",type:"@type",serviceEndpoint:{"@id":"https://www.w3.org/ns/did#serviceEndpoint","@type":"@id"}}},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}},ra={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},EcdsaSecp256k1VerificationKey2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1VerificationKey2019","@context":{"@protected":!0,id:"@id",type:"@type",controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},revoked:{"@id":"https://w3id.org/security#revoked","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},blockchainAccountId:{"@id":"https://w3id.org/security#blockchainAccountId"},publicKeyJwk:{"@id":"https://w3id.org/security#publicKeyJwk","@type":"@json"},publicKeyBase58:{"@id":"https://w3id.org/security#publicKeyBase58"},publicKeyMultibase:{"@id":"https://w3id.org/security#publicKeyMultibase","@type":"https://w3id.org/security#multibase"}}},EcdsaSecp256k1Signature2019:{"@id":"https://w3id.org/security#EcdsaSecp256k1Signature2019","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},jws:{"@id":"https://w3id.org/security#jws"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}},na={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},Ed25519VerificationKey2020:{"@id":"https://w3id.org/security#Ed25519VerificationKey2020","@context":{"@protected":!0,id:"@id",type:"@type",controller:{"@id":"https://w3id.org/security#controller","@type":"@id"},revoked:{"@id":"https://w3id.org/security#revoked","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},publicKeyMultibase:{"@id":"https://w3id.org/security#publicKeyMultibase","@type":"https://w3id.org/security#multibase"}}},Ed25519Signature2020:{"@id":"https://w3id.org/security#Ed25519Signature2020","@context":{"@protected":!0,id:"@id",type:"@type",challenge:"https://w3id.org/security#challenge",created:{"@id":"http://purl.org/dc/terms/created","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},domain:"https://w3id.org/security#domain",expires:{"@id":"https://w3id.org/security#expiration","@type":"http://www.w3.org/2001/XMLSchema#dateTime"},nonce:"https://w3id.org/security#nonce",proofPurpose:{"@id":"https://w3id.org/security#proofPurpose","@type":"@vocab","@context":{"@protected":!0,id:"@id",type:"@type",assertionMethod:{"@id":"https://w3id.org/security#assertionMethod","@type":"@id","@container":"@set"},authentication:{"@id":"https://w3id.org/security#authenticationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@type":"@id","@container":"@set"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},keyAgreement:{"@id":"https://w3id.org/security#keyAgreementMethod","@type":"@id","@container":"@set"}}},proofValue:{"@id":"https://w3id.org/security#proofValue","@type":"https://w3id.org/security#multibase"},verificationMethod:{"@id":"https://w3id.org/security#verificationMethod","@type":"@id"}}}}};Xs["https://w3id.org/blockcerts/schema/2.0-alpha/context.json"]=Qs,Xs["https://www.blockcerts.org/schema/2.0-alpha/context.json"]=Qs,Xs["https://www.blockcerts.org/schema/3.0-alpha/context.json"]=ea,Xs["https://w3id.org/blockcerts/schema/3.0-alpha/context.json"]=ea,Xs["https://w3id.org/blockcerts/v3.0-alpha"]=ea,Xs["https://www.blockcerts.org/schema/3.0-beta/context.json"]=ta,Xs["https://w3id.org/blockcerts/schema/3.0-beta/context.json"]=ta,Xs["https://w3id.org/blockcerts/v3.0-beta"]=ta,Xs["https://w3id.org/security/suites/ed25519-2020/v1"]=na,Xs["https://ns.did.ai/suites/secp256k1-2019/v1/"]=ra,Xs["https://www.w3.org/ns/did/v1"]=ia;const oa={locale:"en-US"};var sa=Object.freeze({__proto__:null,isMainnet:function(e){return We(e,"1")||We(e,Ps)}});var aa={locale:"en-US"},ca={"en-US":{steps:{formatValidationLabel:"Format validation",formatValidationLabelPending:"Validating format",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Status check",statusCheckLabelPending:"Checking record status"},subSteps:{getTransactionIdLabel:"Get transaction ID",getTransactionIdLabelPending:"Getting transaction ID",computeLocalHashLabel:"Compute local hash",computeLocalHashLabelPending:"Computing local hash",fetchRemoteHashLabel:"Fetch remote hash",fetchRemoteHashLabelPending:"Fetching remote hash",getIssuerProfileLabel:"Get issuer profile",getIssuerProfileLabelPending:"Getting issuer profile",parseIssuerKeysLabel:"Parse issuer keys",parseIssuerKeysLabelPending:"Parsing issuer keys",compareHashesLabel:"Compare hashes",compareHashesLabelPending:"Comparing hashes",checkDocumentSignatureLabel:"Check document signature",checkDocumentSignatureLabelPending:"Checking document signature",checkMerkleRootLabel:"Check Merkle Root",checkMerkleRootLabelPending:"Checking Merkle Root",checkReceiptLabel:"Check Receipt",checkReceiptLabelPending:"Checking Receipt",checkAuthenticityLabel:"Check Authenticity",checkAuthenticityLabelPending:"Checking Authenticity",checkRevokedStatusLabel:"Check Revoked Status",checkRevokedStatusLabelPending:"Checking Revoked Status",checkExpiresDateLabel:"Check Expiration Date",checkExpiresDateLabelPending:"Checking Expiration Date",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",controlVerificationMethodLabel:"Control Verification Method",controlVerificationMethodLabelPending:"Controlling Verification Method",retrieveVerificationMethodPublicKeyLabel:"Extract Public Key from DID Document",retrieveVerificationMethodPublicKeyLabelPending:"Extracting Public Key from DID Document",deriveIssuingAddressFromPublicKeyLabel:"Derive Issuing Address from Public Key",deriveIssuingAddressFromPublicKeyLabelPending:"Deriving Issuing Address from Public Key",compareIssuingAddressLabel:"Compare addresses",compareIssuingAddressLabelPending:"Comparing addresses",checkImagesIntegrityLabel:"Verify Images Integrity",checkImagesIntegrityLabelPending:"Verifying Images Integrity"},revocation:{preReason:"Reason given:",reason:"This certificate has been ${CREDENTIAL_STATUS} by the issuer.",revocationListAuthenticityFailure:"The authenticity of the revocation list could not be verified.",noRevocationStatusList2021Found:"No status list could be found at the specified URL for 'statusListCredential':",revoked:"revoked",suspended:"suspended"},success:{mocknet:{label:"This Mocknet credential passed all checks",description:"Mocknet credentials are used for test purposes only. They are not recorded on a blockchain, and they should not be considered verified Blockcerts."},blockchain:{label:"Verified",description:"This is a valid ${chain} certificate.",linkText:"View transaction link"},generic:{label:"Verified",description:"The ${SIGNATURE_TYPE} signature of this document has been successfully verified."},multisign:{label:"Verified",description:"All the signatures of this certificate have successfully verified."}},errors:{certificateNotValid:"This is not a valid certificate",couldNotConfirmTx:"Could not confirm the transaction",ensureHashesEqual:"Computed hash does not match remote hash",ensureMerkleRootEqual:"Merkle root does not match remote hash.",ensureNotExpired:"This certificate has expired.",ensureValidReceipt:"The receipt is malformed. There was a problem navigating the merkle tree in the receipt.",failedJsonLdNormalization:"Failed JSON-LD normalization",foundUnmappedFields:"Found unmapped fields during JSON-LD normalization",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"The specified issuing address was created after the transaction occurred.",invalidIssuingAddressRevoked:"The specified issuing address was revoked by the issuer before the transaction occurred.",invalidIssuingAddressExpired:"The specified issuing address expired before the transaction occurred.",invalidIssuingAddressUnknown:"The address used to issue this Blockcerts does not belong to the claimed issuer.",getChain:"Didn't recognize chain value",getIssuerProfile:"Unable to get issuer profile",getRevokedAssertions:"Unable to get revocation assertions",getTransactionId:"Cannot verify this certificate without a transaction ID to compare against.",invalidMerkleReceipt:"Invalid Merkle Receipt. Proof hash did not match Merkle root",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Cannot verify this certificate without a transaction ID to compare against.",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Unable to parse JSON out of issuer identification data.",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance.",ensureValidityPeriodStarted:"This certificate is not yet valid."}},fr:{steps:{formatValidationLabel:"Validation du format",formatValidationLabelPending:"Validation du format",signatureVerificationLabel:"Vérification de la preuve",signatureVerificationLabelPending:"Vérification de la preuve",identityVerificationLabel:"Vérification de l'identité",identityVerificationLabelPending:"Vérification de l'identité",statusCheckLabel:"Vérification du status",statusCheckLabelPending:"Vérification du status"},subSteps:{getTransactionIdLabel:"Obtention de l'identifiant de transaction",getTransactionIdLabelPending:"Obtention de l'identifiant de transaction",computeLocalHashLabel:"Calcul du hash local",computeLocalHashLabelPending:"Calcul du hash local",fetchRemoteHashLabel:"Récupération du hash distant",fetchRemoteHashLabelPending:"Récupération du hash distant",getIssuerProfileLabel:"Obtention du profil de l'émetteur",getIssuerProfileLabelPending:"Obtention du profil de l'émetteur",parseIssuerKeysLabel:"Traitement des clés de l'émetteur",parseIssuerKeysLabelPending:"Traitement des clés de l'émetteur",compareHashesLabel:"Comparaison des hash",compareHashesLabelPending:"Comparaison des hashs",checkDocumentSignatureLabel:"Vérification de la signature du document",checkDocumentSignatureLabelPending:"Vérification de la signature du document",checkMerkleRootLabel:"Vérification du Merkle Root",checkMerkleRootLabelPending:"Vérification du Merkle Root",checkReceiptLabel:"Vérification du reçu",checkReceiptLabelPending:"Vérification du reçu",checkAuthenticityLabel:"Vérification de l'authenticité",checkAuthenticityLabelPending:"Vérification de l'authenticité",checkRevokedStatusLabel:"Vérification du status de révocation",checkRevokedStatusLabelPending:"Vérification du status de révocation",checkExpiresDateLabel:"Vérification de la date d'expiration",checkExpiresDateLabelPending:"Vérification de la date d'expiration",ensureValidityPeriodStartedLabel:"Vérification du début de validité",ensureValidityPeriodStartedLabelPending:"Vérification du début de validité",controlVerificationMethodLabel:"Contrôle de la Méthode de Vérification",controlVerificationMethodLabelPending:"Contrôle de la Méthode de Vérification",retrieveVerificationMethodPublicKeyLabel:"Extraction de la clé publique depuis le document DID",retrieveVerificationMethodPublicKeyLabelPending:"Extraction de la clé publique depuis le document DID",deriveIssuingAddressFromPublicKeyLabel:"Dérivation de l'adresse d'émission depuis la clé publique",deriveIssuingAddressFromPublicKeyLabelPending:"Dérivation de l'adresse d'émission depuis la clé publique",compareIssuingAddressLabel:"Comparaison des adresses",compareIssuingAddressLabelPending:"Comparaison des adresses",checkImagesIntegrityLabel:"Vérification de l'Intégrité des Images",checkImagesIntegrityLabelPending:"Vérification de l'Intégrité des Images"},revocation:{preReason:"Raison :",reason:"Ce certificat a été ${CREDENTIAL_STATUS} par l'émetteur.",revocationListAuthenticityFailure:"L'authenticité de la liste de revocation n'a pas pu être validée.",noRevocationStatusList2021Found:"Aucune liste de revocation n'a pu être trouvée à l'URL spécifiée par 'statusListCredential':",revoked:"révoqué",suspended:"suspendu"},success:{mocknet:{label:"Cet enregistrement Mocknet a été vérifié",description:"Le mode Mocknet est utilisé à des fins de tests uniquement. Ce Blockcert n'a pas été enregistré sur une blockchain, et en tant que tel ne peut pas être considéré un Blockcert valide."},blockchain:{label:"Vérifié",description:"Ceci est un certificat ${chain} valide.",linkText:"Voir la transaction"},generic:{label:"Verified",description:"La signature ${SIGNATURE_TYPE} de ce certificat a été vérifiée avec succès."},multisign:{label:"Vérifié",description:"Toutes les signatures numériques de ce certificat ont été vérifiées avec succès."}},errors:{certificateNotValid:"Certificat invalide",couldNotConfirmTx:"Impossible de confirmer la transaction",ensureHashesEqual:"Calcul du hash local différent du hash distant",ensureMerkleRootEqual:"Le Merkle root ne correspond pas au hash distant",ensureNotExpired:"Certificat expiré",ensureValidReceipt:"Erreur d'écriture du reçu. Un problème est survenu lors de la navigation de l'arbre Merkle du reçu.",failedJsonLdNormalization:"Erreur de normalisation JSON-LD",foundUnmappedFields:"Champs non liés découverts durant la normalisation JSON-LD",identityErrorBaseMessage:"Identité de l'émetteur invalide",deriveIssuingAddressFromPublicKey:"Cette blockchain n'est pas supportée pour la vérification de l'identité décentralisée.",controlVerificationMethod:"Le document d'identité de l'émetteur ne correspond pas à la méthode de vérification.",retrieveVerificationMethodPublicKey:"Le document d'identité de l'émetteur ne fait pas mention de la méthode de vérification.",compareIssuingAddress:"La méthode de vérification n'a pas permis d'établir l'identité de l'émetteur.",invalidIssuingAddressCreationTime:"L'adresse d'émission utilisée a été créée après la transaction d'enregistrement.",invalidIssuingAddressRevoked:"L'adresse d'émission utilisée a été décommissionnée par l'émetteur avant la transaction d'enregistrement.",invalidIssuingAddressExpired:"L'adresse d'émission utilisée a expiré avant la transaction.",invalidIssuingAddressUnknown:"L'adresse utilisée pour émettre ce Blockcerts n'appartient à l'émetteur déclaré.",getChain:"Valeur de chaine non reconnue",getIssuerProfile:"Profil de l'émetteur indisponible",getRevokedAssertions:"Impossible d'obtenir les raisons de revocation",getTransactionId:"Impossible de vérifier ce certificat sans un identifiant de transaction valide",invalidMerkleReceipt:"Reçu Merkle invalide. Hash de preuve différent du Merkle root",invalidMerkleVersion:"La version du Merkle utilisé est incompatible avec la version Blockcerts.",isTransactionIdValid:"Impossible de vérifier ce certificat sans un identifiant de transaction valide",issuerProfileNotSet:"l'URL de l'émetteur n'est pas définie",issuerProfileInvalid:"le document distant ne semble pas être un profil d'émetteur valide",parseIssuerKeys:"Impossible de lire le JSON d'identification de l'émetteur",checkImagesIntegrity:"La vérification des images a prouvé que le contenu a été modifié après l'émission.",ensureValidityPeriodStarted:"Ce certificat n'est pas encore valide."}},es:{steps:{formatValidationLabel:"Validación de formato",formatValidationLabelPending:"Validando el formato",signatureVerificationLabel:"Verificar prueba",signatureVerificationLabelPending:"Verificando prueba",identityVerificationLabel:"Verificar identitad",identityVerificationLabelPending:"Verificando identitad",statusCheckLabel:"Estado de Verificación",statusCheckLabelPending:"Verificando Estado de Grabación"},subSteps:{getTransactionIdLabel:"Obtener Identificación de Transacción",getTransactionIdLabelPending:"Obteniendo Identificación de Transacción",computeLocalHashLabel:"Calcular cadena binaria local",computeLocalHashLabelPending:"Calculando cadena binaria local",fetchRemoteHashLabel:"Obtener cadena binaria remota",fetchRemoteHashLabelPending:"Obeniendo cadena binaria remota",getIssuerProfileLabel:"Obtener perfil de emisor",getIssuerProfileLabelPending:"Obteniendo perfil de emisor",parseIssuerKeysLabel:"Analizar claves del emisor",parseIssuerKeysLabelPending:"Analizando claves del emisor",compareHashesLabel:"Comparar cadenas binarias",compareHashesLabelPending:"Comparando cadenas binarias",checkDocumentSignatureLabel:"Controlar firma del documento",checkDocumentSignatureLabelPending:"Controlando firma del documento",checkMerkleRootLabel:"Verificar Merkle Root",checkMerkleRootLabelPending:"Verificando Merkle Root",checkReceiptLabel:"Verificar Recibo",checkReceiptLabelPending:"Verificando Recibo",checkAuthenticityLabel:"Verificar Autenticidad",checkAuthenticityLabelPending:"Verificando Autenticidad",checkRevokedStatusLabel:"Verificar Estado de Revocación",checkRevokedStatusLabelPending:"Verificando Estado de Revocación",checkExpiresDateLabel:"Verificar Fechas de Expiración",checkExpiresDateLabelPending:"Verificando Fechas de Expiración",ensureValidityPeriodStartedLabel:"Verificar Fechas de Validez",ensureValidityPeriodStartedLabelPending:"Verificando Fechas de Validez",controlVerificationMethodLabel:"Controlar Metodo de Verificación",controlVerificationMethodLabelPending:"Controlando Metodo de Verificación",retrieveVerificationMethodPublicKeyLabel:"Extraer la llave pública desde el documento DID",retrieveVerificationMethodPublicKeyLabelPending:"Extraendo la llave pública desde el documento DID",deriveIssuingAddressFromPublicKeyLabel:"Derivar la dirección del emisor desde la llave pública",deriveIssuingAddressFromPublicKeyLabelPending:"Derivando la dirección del emisor desde la llave pública",compareIssuingAddressLabel:"Comparar direcciones",compareIssuingAddressLabelPending:"Comparando direcciones",checkImagesIntegrityLabel:"Comprobar Integridad de las Imagens",checkImagesIntegrityLabelPending:"Comprobando Integridad de las Imagens"},revocation:{preReason:"Razón dada:",reason:"Este certificado ha sido ${CREDENTIAL_STATUS} por el emisor.",revocationListAuthenticityFailure:"La authenticidad de la lista de revocación no se pudo confirmar.",noRevocationStatusList2021Found:"No lista de revocación encontrada en la URL dada por 'statusListCredential':",revoked:"revocado",suspended:"suspendido"},success:{mocknet:{label:"Esta credencial de Mocknet pasó todas las comprobaciones",description:"Las credenciales de Mocknet se usan solo con fines de prueba. No se graban en una cadena de bloques, y no se deben considerar Blockcerts Verificados."},blockchain:{label:"Verificado",description:"Este es un certificado válido de ${chain}.",linkText:"Ver enlace de transacción"},generic:{label:"Verified",description:"La firma ${SIGNATURE_TYPE} de este certificado ha verificado con éxito."},multisign:{label:"Verificado",description:"Todas las firmas digitales de este certificado han verificado con éxito."}},errors:{certificateNotValid:"Este no es un certificado válido",couldNotConfirmTx:"No se ha podido confirmar la transacción",ensureHashesEqual:"La cadena binaria calculada no corresponde con la cadena binaria remota",ensureMerkleRootEqual:"La raíz Merkle no corresponde con la cadena binaria remota",ensureNotExpired:"Este certificado ha expirado",ensureValidReceipt:"El recibo está malformado. Hubo un problema navegando el árbol Merkle en el recibo",failedJsonLdNormalization:"La normalización del JSON-LD ha fallado",foundUnmappedFields:"Se han encontrado campos no mapeados durante la normalización de JSON-LD",identityErrorBaseMessage:"Identitad del emisor inválida",deriveIssuingAddressFromPublicKey:"No se puede validar la identitad decentalisada con esta cadena binaria.",controlVerificationMethod:"El documento de identitad del emisor no corresponde al metodo de verificación.",retrieveVerificationMethodPublicKey:"El documento de identitad del emisor no hace constar al metodo de verificación.",compareIssuingAddress:"El metodo de verificación no corresponde a la identitad del emisor.",invalidIssuingAddressCreationTime:"El emisor creó el metodo de verificación después de la emisión del certificado.",invalidIssuingAddressRevoked:"El emisor revocó el metodo de verificación antes de la emisión del certificado.",invalidIssuingAddressExpired:"El metodo de verificación expiró antes de la emisión del certificado.",invalidIssuingAddressUnknown:"El metodo de verificación no pertenece a la identitad del emisor.",getChain:"Valor de cadena no reconocido",getIssuerProfile:"No se ha podido obtener el perfil del emisor",getRevokedAssertions:"No se ha podido obtener aseveraciones de revocación",getTransactionId:"No se puede verificar este certificado sin una identificación de transacción que sirva como comparación",invalidMerkleReceipt:"Recibo Merkle inválido. La cadena binaria de prueba no corresponde con la raíz Merkle",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"No se puede verificar este certificado sin una identificación de transacción que sirva como comparación",issuerProfileNotSet:"URL del emisor no definido",issuerProfileInvalid:"el documento recogido no parece ser un perfil de emisor valido",parseIssuerKeys:"No se ha podido analizar el JSON de la información de identificación del emisor",checkImagesIntegrity:"La verificación de la integridad de los imagens provó alteración del contenido después de la emisión.",ensureValidityPeriodStarted:"Este certificado aún no está valido."}},mt:{steps:{formatValidationLabel:"Validazzjoni tal-format",formatValidationLabelPending:"Il-format qed jiġi vvalidat",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Status check",statusCheckLabelPending:"Ir-record status qed jiġi ċċekkjat"},subSteps:{getTransactionIdLabel:"Ikseb l-ID ta' tranżazzjoni",getTransactionIdLabelPending:"L-ID ta' tranżazzjoni qed tiġi mniżżla",computeLocalHashLabel:"Ikkalkula l-hash lokali",computeLocalHashLabelPending:"Il-hash lokali qed jiġi kkalkulat",fetchRemoteHashLabel:"Fittex ir-remote hash",fetchRemoteHashLabelPending:"Ir-remote hash qed jiġi mfittex",getIssuerProfileLabel:"Ikseb il-profil tal-emittent",getIssuerProfileLabelPending:"Il-profil tal-emittent qed jiġi mniżżel",parseIssuerKeysLabel:"Estratta ċ-ċwievet tal-emittent",parseIssuerKeysLabelPending:"Iċ-ċwievet tal-emittent qed jiġu estratti",compareHashesLabel:"Ikkumpara l-hashes",compareHashesLabelPending:"Il-hashes qed jiġu kkomparati",checkDocumentSignatureLabel:"Check document signature",checkDocumentSignatureLabelPending:"Checking document signature",checkMerkleRootLabel:"Iċċekkja l-Merkle Root",checkMerkleRootLabelPending:"Il-Merkle Root Qed Tiġi Ċċekkjata",checkReceiptLabel:"Iċċekkja l-Irċevuta",checkReceiptLabelPending:"L-Irċevuta Qed Tiġi Ċċekkjata",checkAuthenticityLabel:"Iċċekkja l-Awtentiċità",checkAuthenticityLabelPending:"L-Awtentiċità Qed Tiġi Ċċekkjata",checkRevokedStatusLabel:"Iċċekkja l-Istatus Revokat",checkRevokedStatusLabelPending:"L-Istatus Revokat Qed Jiġi Ċċekkjat",checkExpiresDateLabel:"Iċċekkja d-Data ta' Skadenza",checkExpiresDateLabelPending:"Id-Data ta' Skadenza Qed Tiġi Ċċekkjata",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",controlVerificationMethodLabel:"Control Verification Method",controlVerificationMethodLabelPending:"Controlling Verification Method",retrieveVerificationMethodPublicKeyLabel:"Extract Public Key from DID Document",retrieveVerificationMethodPublicKeyLabelPending:"Extracting Public Key from DID Document",deriveIssuingAddressFromPublicKeyLabel:"Derive Issuing Address from Public Key",deriveIssuingAddressFromPublicKeyLabelPending:"Deriving Issuing Address from Public Key",compareIssuingAddressLabel:"Compare addresses",compareIssuingAddressLabelPending:"Comparing addresses",checkImagesIntegrityLabel:"Verify Images Integrity",checkImagesIntegrityLabelPending:"Verifying Images Integrity"},revocation:{preReason:"Raġuni mogħtija:",reason:"Dan iċ-ċertifikat ġie ${CREDENTIAL_STATUS} mill-emittent.",revocationListAuthenticityFailure:"The authenticity of the revocation list could not be verified.",noRevocationStatusList2021Found:"No status list could be found at the specified URL for 'statusListCredential':",revoked:"revokat",suspended:"suspended"},success:{mocknet:{label:"Din il-kredenzjali tal-Mocknet għaddiet il-kontrolli kollha",description:"Il-kredenzjali tal-Mocknet jintużaw biss għal skopijiet ta 'ttestjar. Dawn mhumiex irreġistrati fuq blockchain, u ma għandhomx jiġu kkunsidrati bħala blockcerts verifikati."},blockchain:{label:"Ivverifikat",description:"Dan huwa ċertifikat ${chain} huwa validu.",linkText:"Ara l-link tat-transazzjoni"},generic:{label:"Ivverifikat",description:"The ${SIGNATURE_TYPE} signature of this document has been successfully verified."},multisign:{label:"Ivverifikat",description:"All the signatures of this certificate have successfully verified."}},errors:{certificateNotValid:"Dan mhux ċertifikat validu",couldNotConfirmTx:"Ma setgħetx tiġi kkonfermata t-tranżazzjoni",ensureHashesEqual:"Il-hash ikkalkulat ma jikkorrispondix mar-remote hash",ensureMerkleRootEqual:"Merkle root ma taqbilx mar-remote hash",ensureNotExpired:"Dan iċ-ċertifikat skada",ensureValidReceipt:"L-irċevuta hija malformata. Kien hemm problema fin-navigazzjoni tal-merkle tree fl-irċevuta",failedJsonLdNormalization:"In-normalizzazzjoni ta' JSON-LD ma rnexxietx",foundUnmappedFields:"Instabu unmapped fields matul in-normalizzazzjoni JSON-LD",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"L-indirizz elettroniku tal-ħruġ speċifikat inħoloq wara li seħħet it-tranżazzjoni.",invalidIssuingAddressRevoked:"L-indirizz elettroniku tal-ħruġ speċifikat ġie revokat mill-emittent qabel ma seħħet it-tranżazzjoni.",invalidIssuingAddressExpired:"L-indirizz elettroniku tal-ħruġ speċifikat skada qabel ma seħħet it-tranżazzjoni.",invalidIssuingAddressUnknown:"L-indirizz elettroniku użat biex jinħarġu dawn il-Blockcerts ma jappartjenix għall-emittent mitlub.",getChain:"Iċ-chain value ma ntgħarafx",getIssuerProfile:"Mhux possibbli jinkiseb il-profil tal-emittent",getRevokedAssertions:"Mhux possibbli jinkisbu dikjarazzjonijiet revokati",getTransactionId:"Dan iċ-ċertifikat ma jistax jiġi vverifikat mingħajr ID ta' tranżazzjoni mqabbla miegħu",invalidMerkleReceipt:"Irċevuta Merkle invalida. Il-proof hash ma kienx jaqbel mal-Merkle root",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Dan iċ-ċertifikat ma jistax jiġi vverifikat mingħajr ID ta' tranżazzjoni mqabbla miegħu",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Ma jistax jiġi estratt JSON mid-data tal-identifikazzjoni tal-emittent",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance.",ensureValidityPeriodStarted:"This certificate is not yet valid."}},"it-IT":{steps:{formatValidationLabel:"Convalidare formato",formatValidationLabelPending:"Convalida formato",signatureVerificationLabel:"Proof Verification",signatureVerificationLabelPending:"Verifying Proof",identityVerificationLabel:"Identity verification",identityVerificationLabelPending:"Verifying identity",statusCheckLabel:"Verificare stato",statusCheckLabelPending:"Verifica stato del record"},subSteps:{getTransactionIdLabel:"Ottenere ID transazione",getTransactionIdLabelPending:"Ottieni ID transazione",computeLocalHashLabel:"Calcolare hash locale",computeLocalHashLabelPending:"Calcola hash locale",fetchRemoteHashLabel:"Recuperare hash remoto",fetchRemoteHashLabelPending:"Recupera hash remoto",getIssuerProfileLabel:"Ottenere profilo issuer",getIssuerProfileLabelPending:"Ottieni profilo issuer",parseIssuerKeysLabel:"Analizzare chiavi issuer",parseIssuerKeysLabelPending:"Analizza chiavi issuer",compareHashesLabel:"Confrontare gli hash",compareHashesLabelPending:"Confronto hash",checkDocumentSignatureLabel:"Check document signature",checkDocumentSignatureLabelPending:"Checking document signature",checkMerkleRootLabel:"Controllare radice di Merkle",checkMerkleRootLabelPending:"Controllo radice di Merkle",checkReceiptLabel:"Verificare ricevuta",checkReceiptLabelPending:"Verifica ricevuta",checkAuthenticityLabel:"Verificare autenticità",checkAuthenticityLabelPending:"Verifica autenticità",checkRevokedStatusLabel:"Verificare stato revocato",checkRevokedStatusLabelPending:"Verifica stato revocato",checkExpiresDateLabel:"Verificare data di scadenza",checkExpiresDateLabelPending:"Verifica data di scadenza",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",controlVerificationMethodLabel:"Control Verification Method",controlVerificationMethodLabelPending:"Controlling Verification Method",retrieveVerificationMethodPublicKeyLabel:"Extract Public Key from DID Document",retrieveVerificationMethodPublicKeyLabelPending:"Extracting Public Key from DID Document",deriveIssuingAddressFromPublicKeyLabel:"Derive Issuing Address from Public Key",deriveIssuingAddressFromPublicKeyLabelPending:"Deriving Issuing Address from Public Key",compareIssuingAddressLabel:"Compare addresses",compareIssuingAddressLabelPending:"Comparing addresses",checkImagesIntegrityLabel:"Verify Images Integrity",checkImagesIntegrityLabelPending:"Verifying Images Integrity"},revocation:{preReason:"Motivo indicato:",reason:"Questo certificato è stato ${CREDENTIAL_STATUS} dall'emittente.",revocationListAuthenticityFailure:"The authenticity of the revocation list could not be verified.",noRevocationStatusList2021Found:"No status list could be found at the specified URL for 'statusListCredential':",revoked:"revocato",suspended:"sospeso"},success:{mocknet:{label:"Questo Blockcert simulato ha superato tutti i controlli.",description:"La modalità Mocknet è utilizzata solo dagli emittenti per testare il loro flusso di lavoro localmente. Questo Blockcert non è stato registrato su una blockchain e non dovrebbe essere considerato un Blockcert verificato."},blockchain:{label:"Verificato",description:"Questo è un certificato ${chain} valido.",linkText:"Vedi la transazione"},generic:{label:"Verificato",description:"The ${SIGNATURE_TYPE} signature of this document has been successfully verified."},multisign:{label:"Verificato",description:"All the signatures of this certificate have successfully verified."}},errors:{certificateNotValid:"Questo non è un certificato valido",couldNotConfirmTx:"Impossibile confermare la transazione",ensureHashesEqual:"L'hash calcolato non corrisponde all'hash remoto",ensureMerkleRootEqual:"La radice di Merkle non corrisponde all'hash remoto.",ensureNotExpired:"Questo certificato è scaduto.",ensureValidReceipt:"La ricevuta è malformata. C'è stato un problema nella navigazione dell'albero di Merkle nella ricevuta.",failedJsonLdNormalization:"Normalizzazione JSON-LD fallita",foundUnmappedFields:"Campi non mappati trovati durante la normalizzazione JSON-LD",identityErrorBaseMessage:"Issuer identity mismatch",deriveIssuingAddressFromPublicKey:"Unsupported blockchain for DID verification",controlVerificationMethod:"The identity document provided by the issuer does not match the verification method",retrieveVerificationMethodPublicKey:"The identity document provided by the issuer does not reference the verification method",compareIssuingAddress:"The provided verification method does not match the issuer identity",invalidIssuingAddressCreationTime:"The specified issuing address was created after the transaction occurred.",invalidIssuingAddressRevoked:"The specified issuing address was revoked by the issuer before the transaction occurred.",invalidIssuingAddressExpired:"The specified issuing address expired before the transaction occurred.",invalidIssuingAddressUnknown:"The address used to issue this Blockcerts does not belong to the claimed issuer.",getChain:"Il valore della catena non è stato riconosciuto",getIssuerProfile:"Impossibile ottenere il profilo dell'emittente",getRevokedAssertions:"Impossibile ottenere le asserzioni di revoca",getTransactionId:"Impossibile verificare questo certificato senza un ID transazione da confrontare.",invalidMerkleReceipt:"Ricevuta Merkle non valida. L'hash di prova non corrisponde alla radice di Merkle",invalidMerkleVersion:"Merkle version used for signature is incompatible with Blockcerts version.",isTransactionIdValid:"Impossibile verificare questo certificato senza un ID transazione da confrontare.",issuerProfileNotSet:"no issuer address given",issuerProfileInvalid:"retrieved file does not seem to be a valid profile",parseIssuerKeys:"Impossibile analizzare JSON dai dati di identificazione dell'emittente.",checkImagesIntegrity:"Image integrity verification proved that the content was modified after issuance.",ensureValidityPeriodStarted:"This certificate is not yet valid."}},ja:{steps:{formatValidationLabel:"形式の検証",formatValidationLabelPending:"形式を検証",signatureVerificationLabel:"証明の検証",signatureVerificationLabelPending:"証明を検証",identityVerificationLabel:"アイデンティティの検証",identityVerificationLabelPending:"アイデンティティを検証",statusCheckLabel:"ステータスの確認",statusCheckLabelPending:"ステータスを確認"},subSteps:{getTransactionIdLabel:"取引IDの取得",getTransactionIdLabelPending:"取引IDを取得",computeLocalHashLabel:"ローカルハッシュの算出",computeLocalHashLabelPending:"ローカルハッシュを算出",fetchRemoteHashLabel:"リモートハッシュの取得",fetchRemoteHashLabelPending:"リモートハッシュを取得",getIssuerProfileLabel:"発行者プロフィールの取得",getIssuerProfileLabelPending:"発行者プロフィールを取得",parseIssuerKeysLabel:"発行者の鍵の解析",parseIssuerKeysLabelPending:"発行者の鍵を解析",compareHashesLabel:"ハッシュの照合",compareHashesLabelPending:"ハッシュを照合",checkDocumentSignatureLabel:"Documentの署名の確認",checkDocumentSignatureLabelPending:"Documentの署名を確認",checkMerkleRootLabel:"Merkle Rootの確認",checkMerkleRootLabelPending:"Merkle Rootを確認",checkReceiptLabel:"レシートの確認",checkReceiptLabelPending:"レシートを確認",checkAuthenticityLabel:"真正性の確認",checkAuthenticityLabelPending:"真正性を確認",checkRevokedStatusLabel:"取消ステータスの確認",checkRevokedStatusLabelPending:"取消ステータスを確認",checkExpiresDateLabel:"有効期限の確認",checkExpiresDateLabelPending:"有効期限を確認",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",controlVerificationMethodLabel:"検証方法の設定",controlVerificationMethodLabelPending:"検証方法を設定",retrieveVerificationMethodPublicKeyLabel:"DID Documentからの公開鍵取得",retrieveVerificationMethodPublicKeyLabelPending:"DID Documentから公開鍵を取得",deriveIssuingAddressFromPublicKeyLabel:"公開鍵からの発行者アドレス取得",deriveIssuingAddressFromPublicKeyLabelPending:"公開鍵から発行者アドレスを取得",compareIssuingAddressLabel:"アドレスの照合",compareIssuingAddressLabelPending:"アドレスを照合",checkImagesIntegrityLabel:"画像の保全性の確認",checkImagesIntegrityLabelPending:"画像の保全性を確認"},revocation:{preReason:"理由:",reason:"この証明書は発行者により${CREDENTIAL_STATUS}。",revocationListAuthenticityFailure:"取消登録リストの真正性を確認できませんでした。",noRevocationStatusList2021Found:"「statusListCredential」のURLでステータスリストが見つかりませんでした:",revoked:"取消されました",suspended:"停止されました"},success:{mocknet:{label:"このMocknetの証明書は全てのチェックを通過しました。",description:"Mocknetの証明書はテスト用のものです。ブロックチェーンに記録されず、認証可能のBlockcert証明書として扱われません。"},blockchain:{label:"認証されました",description:"この証明書は有効な${chain}の証明書です。",linkText:"取引を確認する"},generic:{label:"認証されました",description:"このdocumentの${SIGNATURE_TYPE}の署名の確認に成功しました。"},multisign:{label:"認証されました",description:"この証明書の全ての署名の確認に成功しました。"}},errors:{certificateNotValid:"この証明書は無効です",couldNotConfirmTx:"取引を確認できませんでした",ensureHashesEqual:"算出されたハッシュがリモートハッシュと一致しませんでした",ensureMerkleRootEqual:"Merkle rootがリモートハッシュと一致しませんでした",ensureNotExpired:"この証明書の有効期限が切れています",ensureValidReceipt:"レシートに異常があります。レシート内のMerkle treeを辿る際に問題が発生しました。",failedJsonLdNormalization:"JSON-LDの正規化に失敗しました",foundUnmappedFields:"JSON-LDの正規化時にマップされていないフィールドを検出しました",identityErrorBaseMessage:"発行者アイデンティティが一致しませんでした",deriveIssuingAddressFromPublicKey:"DID認証未対応のブロックチェーンです",controlVerificationMethod:"発行者から提供されたアイデンティティdocumentが認証方法と一致していません",retrieveVerificationMethodPublicKey:"発行者から提供されたアイデンティティdocumentが認証方法を参照していません",compareIssuingAddress:"提供された認証方法は発行者アイデンティティと一致していません",invalidIssuingAddressCreationTime:"指定の発行者アドレスは取引が行われた後に生成されました。",invalidIssuingAddressRevoked:"指定の発行者アドレスは取引が行われた前に発行者によって取消されました。",invalidIssuingAddressExpired:"指定の発行者アドレスは取引が行われた前に有効期限が切れました。",invalidIssuingAddressUnknown:"このBlockcert証明書の発行に使用されたアドレスは指定の発行者が所有していません。",getChain:"チェーンの値を認識できませんでした",getIssuerProfile:"発行者プロフィールを取得できません",getRevokedAssertions:"取消assertionsを取得できません",getTransactionId:"照合のための取引IDがないため、この証明書を認証できません。",invalidMerkleReceipt:"Merkleレシートが無効です。証明ハッシュがMerkle rootと一致しませんでした。",invalidMerkleVersion:"署名に使用されたMerkleのバージョンはBlockcertsのバージョンに対応できません。",isTransactionIdValid:"照合するための取引IDがないため、この証明書を認証できません。",issuerProfileNotSet:"発行者アドレスが提供されませんでした",issuerProfileInvalid:"取得されたファイルが有効なプロフィールではないようです",parseIssuerKeys:"発行者識別データからJSONの解析ができません",checkImagesIntegrity:"データが発行後に変更されたことが画像保全性の検証によって証明されました。",ensureValidityPeriodStarted:"This certificate is not yet valid."}}};function ua(e,t){return e&&t?ca[aa.locale]?ca[aa.locale][e]?ca[aa.locale][e][t]?ca[aa.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]":""}function la(){return Object.keys(ca)}var da,pa=Object.freeze({__proto__:null,detectLocale:function(){return navigator.language||oa.locale},ensureIsSupported:function(e){let t;const i=za.i18n.getSupportedLanguages().map((e=>e.toLowerCase()));if(t=i.includes(e.toLowerCase()),!t){const r=e.substr(0,2).toLowerCase(),n=i.map((e=>e.split("-")[0])).indexOf(r);t=n>-1,t&&(e=i[n])}return t||(e=oa.locale),function(e){const t=e.split("-");return t.length>1?`${t[0].toLowerCase()}-${t[1].toUpperCase()}`:t[0].toLowerCase()}(e)},getComposedText:function(e,t){return ua(e,t)},getSupportedLanguages:la,getText:ua});!function(e){e.REVOKED="revoked",e.SUSPENDED="suspended"}(da||(da={}));class ha{publicKey;created;revoked;expires;constructor(e,t,i,r){this.publicKey=e,this.created=t,this.revoked=i,this.expires=r}}class fa{image;jobTitle;name;constructor(e,t,i){this.image=e,this.jobTitle=t,this.name=i}}class ga extends Error{stepCode;constructor(e,t){super(t),this.stepCode=e}}const ba=ca[aa.locale];var ma,va;!function(e){e.formatValidation="formatValidation",e.proofVerification="proofVerification",e.identityVerification="identityVerification",e.statusCheck="statusCheck",e.final="final"}(ma||(ma={})),function(e){e.checkImagesIntegrity="checkImagesIntegrity",e.checkRevokedStatus="checkRevokedStatus",e.checkExpiresDate="checkExpiresDate",e.controlVerificationMethod="controlVerificationMethod",e.ensureValidityPeriodStarted="ensureValidityPeriodStarted"}(va||(va={}));const ya={[ma.formatValidation]:[va.checkImagesIntegrity],[ma.proofVerification]:[],[ma.identityVerification]:[va.controlVerificationMethod],[ma.statusCheck]:[va.checkRevokedStatus,va.ensureValidityPeriodStarted,va.checkExpiresDate]};function wa(){return{[ma.formatValidation]:{code:ma.formatValidation,label:ba.steps.formatValidationLabel,labelPending:ba.steps.formatValidationLabelPending,subSteps:[]},[ma.proofVerification]:{code:ma.proofVerification,label:ba.steps.signatureVerificationLabel,labelPending:ba.steps.signatureVerificationLabelPending,subSteps:[]},[ma.identityVerification]:{code:ma.identityVerification,label:ba.steps.identityVerificationLabel,labelPending:ba.steps.identityVerificationLabelPending,subSteps:[]},[ma.statusCheck]:{code:ma.statusCheck,label:ba.steps.statusCheckLabel,labelPending:ba.steps.statusCheckLabelPending,subSteps:[]}}}var xa=Object.freeze({__proto__:null,get SUB_STEPS(){return va},get VerificationSteps(){return ma},default:wa,final:"final",verificationMap:ya});function ka(e=[],t=[]){return e.filter((e=>t.includes(e))).filter(((e,t,i)=>i.indexOf(e)===t))}function _a(e,t){const i=e.findIndex((e=>e===t));i>-1&&e.splice(i,1)}function Ca(e,t){return ya[e].filter((e=>t.includes(e))).map((t=>za.verifier.convertToVerificationSubsteps(e,t)))}function Aa(e){const t=wa();return Object.keys(t).map((i=>({...t[i],subSteps:Ca(i,e)})))}var Sa=Object.freeze({__proto__:null,generateRevocationReason:function(e="",t=da.REVOKED){const i=ua("revocation",t);return e=(e=e.trim()).length>0?` ${ua("revocation","preReason")} ${e}${"."!==e.slice(-1)?".":""}`:"",`${ua("revocation","reason").replace("${CREDENTIAL_STATUS}",ua("revocation",i))}${e}`},getChain:function(e,t){const i=t||null;if(i?.anchors){const e=i.anchors[0];if(e.chain){return function(e){const t=Object.keys(st).map((e=>st[e])).find((t=>t.signatureValue===e));if(void 0===t)throw new Error(ua("errors","getChain"));return t}(e.chain)}}return function(e=""){return sa.isMainnet(e)?st.bitcoin:st.testnet}(e)},getTransactionId:function(e={}){try{const{anchors:t}=e,i=t[0];if(i.sourceId)return i.sourceId;if("string"==typeof i){return i.split(":").pop()}}catch(e){throw new ga("",ua("errors","getTransactionId"))}},getTransactionLink:function(e,t){return e&&t?{rawTransactionLink:t.transactionTemplates.raw.replace(Qe,e),transactionLink:t.transactionTemplates.full.replace(Qe,e)}:null},getVerificationMap:function(e=!1,t=!1,i=!1){const r=function(e,t,i){const r=Object.values(va);return e||_a(r,va.controlVerificationMethod),t||_a(r,va.checkImagesIntegrity),i||_a(r,va.ensureValidityPeriodStarted),r}(e,t,i);return{verificationProcess:r,verificationMap:Aa(r)}}});var Ea=Object.freeze({__proto__:null,isMockChain:function(e){if(e){const t="string"==typeof e?e:e.code;return!!Object.keys(st).some((e=>e===t))&&!!st[t].test}return!1}});const Pa={value:"https://dev.uniresolver.io/1.0/identifiers",set url(e){this.value=e},get url(){return this.value}};function La(e){return e.startsWith("did:",0)}function Ia(e){return e.startsWith("did:key:",0)}var Ta;!function(e){e.ED25519="ed25519",e.SECP256K1="secp256k1"}(Ta||(Ta={}));const Da={"did:key:z6Mk":Ta.ED25519,"did:key:zQ3s":Ta.SECP256K1};async function Ma(e){const t=e.substring(0,12);if(Da[t]){const i=await async function(e){if(e===Ta.ED25519)return await import("./did-key-ed25519.esm-NX9dX9Vr-fZElVDYL.js");if(e===Ta.SECP256K1)return await import("./did-key-secp256k1.esm-FBi5sg1U-hK5l_sjP.js");throw new Error("Error loading did key resolver")}(Da[t]),{didDocument:r}=await i.resolve(e,{accept:"application/did+json"});return r}throw new Error("Unsupported did:key suite")}var Ra,Oa={...Object.freeze({__proto__:null,getIssuerProfileUrl:function(e){if(!e.service)return"";const t=e.service.find((e=>"IssuerProfile"===e.type)),i=t?.serviceEndpoint;return i??""},resolve:async function(e,t=Pa.url){if(Ia(e)){return await Ma(e)}const i=await Wo({url:`${t}/${e}`});return JSON.parse(i).didDocument},resolveDidKeyDocument:Ma}),didResolver:Pa};!function(e){e.DEFAULT="standby",e.FAILURE="failure",e.STARTING="starting",e.SUCCESS="success"}(Ra||(Ra={}));class Ba{code;label;labelPending;parentStep;status;constructor(e,t){this.code=t,this.label=ua("subSteps",`${t}Label`),this.labelPending=ua("subSteps",`${t}LabelPending`),this.parentStep=e,this.status=Ra.DEFAULT}}function ja(e){const t=Date.parse(e);if(t)return new Date(t);const i=function(e){let t=e.slice(0,-5).split(/\D/).map((function(e){return parseInt(e,10)||0}));t[1]-=1,t=new Date(Date.UTC.apply(Date,t));const i=e.slice(-5);let r=parseInt(i,10)/100;return"+"===i.slice(0,1)&&(r*=-1),t.setHours(t.getHours()+r),t}(e);return i||function(e){let t,i;const r=/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/.exec(e)??[];return r[1]?(t=r[1].split(/\D/).map((function(e){return parseInt(e,10)||0})),t[1]-=1,t=new Date(Date.UTC.apply(Date,t)),t.getDate()?(r[5]&&(i=parseInt(r[5],10)/100*60,r[6]&&(i+=parseInt(r[6],10)),"+"===r[4]&&(i*=-1),i&&t.setUTCMinutes(t.getUTCMinutes()+i)),t):null):null}(e)}function Fa(e){return""===e?0:ja(`${e}`).getTime()}function Na(e,t=null){const i=e.created?Fa(e.created):null,r=e.revoked?Fa(e.revoked):null,n=e.expires?Fa(e.expires):null;let o=t;if(!t){o=(e.id||e.publicKey).replace("ecdsa-koblitz-pubkey:","")}return new ha(o,i,r,n)}var Va=Object.freeze({__proto__:null,convertToVerificationSubsteps:function(e,t){return new Ba(e,t)},findVerificationSubstep:function(e,t,i=""){for(let r=0;r<t.length;r++){let n=t[r].subSteps.find((t=>t.code===e));if(n&&""===i)return n;if(t[r].suites?.length)for(let o=0;o<t[r].suites.length;o++){const s=t[r].suites[o];if(n=s.subSteps.find((t=>t.code===e)),n&&s.proofType===i)return n}}},getIssuerProfile:async function e(t){const i=ua("errors","getIssuerProfile");if(!t)throw new ga("getIssuerProfile",`${i} - ${ua("errors","issuerProfileNotSet")}`);let r;if("object"==typeof t&&(t=t.id),La(t))try{const i=await za.did.resolve(t);if(Ia(t))r=function(e){return{"@context":["https://w3id.org/openbadges/v2","https://w3id.org/blockcerts/3.0"],publicKey:[{created:(new Date).toISOString(),id:e.id.split(":").pop()}]}}(i);else{const t=za.did.getIssuerProfileUrl(i);t&&(r=await e(t))}return{didDocument:i,...r}}catch(e){throw console.error(e),new ga("getIssuerProfile",`${i} - ${e}`)}else if(!function(e){return/^(ftp|http|https):\/\/[^ "]+$/.test(e)}(t))throw new ga("getIssuerProfile",`${i} - ${ua("errors","issuerProfileNotSet")}`);if(r=JSON.parse(await Wo({url:t}).catch((()=>{throw new ga("getIssuerProfile",i)}))),!function(e){const t=["issuer","profile"],{type:i}=e;return!!i&&(Array.isArray(i)?i.some((e=>t.includes(e.toLowerCase()))):t.includes(i.toLowerCase()))}(r)&&!function(e){const{issuer_key:t,revocation_key:i,issuerKeys:r,revocationKeys:n}=e;return!(!t||!i)||!(!r||!n)}(r))throw new ga("getIssuerProfile",`${i} - ${ua("errors","issuerProfileInvalid")}`);return r},getRevokedAssertions:async function(e,t){if(!e)return[];const i=ua("errors","getRevokedAssertions");t&&(e=function(e,t,i){const r=e.includes("?")?"&":"?";return`${e}${r}${t}=${i}`}(e,"assertionId",encodeURIComponent(t)));try{const t=await Wo({url:e});return JSON.parse(t).revokedAssertions??[]}catch(e){throw console.error(e),new ga(va.checkRevokedStatus,i)}},lookForTx:Es,parseIssuerKeys:function(e){try{const t={};if("@context"in e){const i=e.publicKey??e.publicKeys;for(let e=0;e<i.length;e++){const r=Na(i[e]);t[r.publicKey]=r}}else{const i=Na({},(e.issuerKeys??[])[0].key);t[i.publicKey]=i}return t}catch(e){throw console.error(e),new ga("parseIssuerKeys",ua("errors","parseIssuerKeys"))}},parseRevocationKey:function(e){return e&&Object.prototype.hasOwnProperty.call(e,"revocationKeys")&&e.revocationKeys.length>0?e.revocationKeys[0].key:""}}),za={addresses:sa,certificates:Sa,chains:Ea,did:Oa,i18n:pa,verifier:Va};function $a(e){const{credentialSubject:t}=e;return t.name||""}function Ua(e){"string"==typeof e&&(e=[e]);const t=(i=function(e){return e.filter(Ze)}(e),i.find((e=>e.toLowerCase().indexOf("blockcerts")>0)));var i;if(!t)return{version:it.V3_0,versionNumber:3};const r=t.split("/").filter((e=>""!==e)),n=Object.keys(Ha),o=parseInt(n.filter((e=>function(e,t){return e.some((e=>e.includes(`v${t}`)||e.includes(`${t}.`)))}(r,e.toString())))[0],10);let s;switch(o){case 1:s=it.V1_2;break;case 2:s=it.V2_0;break;case 3:if(t.includes("-alpha")){s=it.V3_0_alpha;break}if(t.includes("-beta")){s=it.V3_0_beta;break}s=it.V3_0}return{versionNumber:o,version:s}}const Ha={1:function(){throw new ga("","Verification of v1 certificates is not supported by this component. See the python cert-verifier for v1.1 verification or the npm package cert-verifier-js-v1-legacy for v1.2 (https://www.npmjs.com/package/@blockcerts/cert-verifier-js-v1-legacy)")},2:async function(e){const{id:t,expires:i,badge:r}=e,{image:n,name:o,description:s,subtitle:a,issuer:c}=r,u=e.recipientProfile??e.recipient.recipientProfile,l=e.issuedOn,d=e.metadataJson,p=u.name,h=function(e){const t=[];for(const i in e){const r=e[i],n=new fa(r.image,r.jobTitle,r.name);t.push(n)}return t}(r.signatureLines),f=await za.verifier.getIssuerProfile(c);return{certificateImage:n,description:s,expires:i,id:t,issuedOn:l,issuer:f,metadataJson:d,name:o,recipientFullName:p,recordLink:t,revocationKey:null,sealImage:f.image,signatureImage:h,subtitle:a}},3:async function(e){const{issuer:t,metadataJson:i,metadata:r,issuanceDate:n,id:o,expirationDate:s,display:a,validUntil:c,validFrom:u}=e,l=r??i;return{display:a,expires:s??c,validFrom:u,issuedOn:n??u,id:o,issuer:await za.verifier.getIssuerProfile(t),metadataJson:l,recipientFullName:$a(e),recordLink:o}}};function qa(e){if(Array.isArray(e)){return e.find((e=>"ChainedProof2021"!==e.type)).verificationMethod}return e.verificationMethod}var Ka;!function(e){e.MerkleProof2017="MerkleProof2017",e.MerkleProof2019="MerkleProof2019",e.Ed25519Signature2020="Ed25519Signature2020",e.EcdsaSecp256k1Signature2019="EcdsaSecp256k1Signature2019"}(Ka||(Ka={}));class Ja{expires;validFrom;id;issuer;revocationKey;documentToVerify;explorerAPIs;txData;_stepsStatuses=[];hashlinkVerifier;verificationSteps;supportedVerificationSuites={[Ka.MerkleProof2017]:null,[Ka.MerkleProof2019]:null,[Ka.Ed25519Signature2020]:null,[Ka.EcdsaSecp256k1Signature2019]:null};proofVerifiers=[];verificationProcess;proofMap;constructor({certificateJson:e,expires:t,hashlinkVerifier:i,id:r,issuer:n,revocationKey:o,explorerAPIs:s,validFrom:a}){this.expires=t,this.validFrom=a,this.id=r,this.issuer=n,this.hashlinkVerifier=i,this.revocationKey=o,this.explorerAPIs=s,this.documentToVerify=Object.assign({},e)}getVerificationSteps(){return this.verificationSteps}getSignersData(){return this.proofVerifiers.map((e=>({signingDate:e.getSigningDate(),signatureSuiteType:e.type,issuerPublicKey:e.getIssuerPublicKey(),issuerName:e.getIssuerName(),issuerProfileDomain:e.getIssuerProfileDomain(),issuerProfileUrl:e.getIssuerProfileUrl(),chain:e.getChain?.(),transactionId:e.getTransactionIdString?.(),transactionLink:e.getTransactionLink?.(),rawTransactionLink:e.getRawTransactionLink?.()})))}async init(){await this.instantiateProofVerifiers(),this.prepareVerificationProcess()}async verifyProof(){for(let e=0;e<this.proofVerifiers.length;e++)await this.proofVerifiers[e].verifyProof()}async verify(e=(()=>{})){this._stepCallback=e,this._stepsStatuses=[],await this.verifyProof();for(const e of this.verificationProcess){if(!this[e])return void console.error("verification logic for",e,"not implemented");await this[e]()}for(let e=0;e<this.proofVerifiers.length;e++)await this.proofVerifiers[e].verifyIdentity();const t=this._stepsStatuses.find((e=>e.status===Ra.FAILURE));return t?this._failed(t):this._succeed()}getRevocationListUrl(){return this.issuer.revocationList}getProofTypes(){const e=[];return this.proofMap.forEach((t=>{let{type:i}=t;"ChainedProof2021"===i&&(i=t.chainedProofType),Array.isArray(i)&&(i=i[0]),e.push(i)})),e}getProofMap(e){const t=new Map;return"proof"in e?Array.isArray(e.proof)?e.proof.forEach(((e,i)=>t.set(i,e))):t.set(0,e.proof):"signature"in e&&t.set(0,e.signature),t}async instantiateProofVerifiers(){this.proofMap=this.getProofMap(this.documentToVerify);const e=this.getProofTypes(),t=function(e=[],t=[]){return t.filter((t=>!e.includes(t)))}(Object.keys(this.supportedVerificationSuites),e);if(t.length)throw new Error(`No support for proof verification of type: ${t.join(", ")}`);await this.loadRequiredVerificationSuites(e),this.proofMap.forEach(((t,i)=>{const r={executeStep:this.executeStep.bind(this),document:this.documentToVerify,proof:t,explorerAPIs:this.explorerAPIs,issuer:this.issuer};this.proofVerifiers.push(new this.supportedVerificationSuites[e[i]](r))}));for(const e of this.proofVerifiers)await e.init()}async loadRequiredVerificationSuites(e){if(e.includes(Ka.MerkleProof2017)){const{default:e}=await import("./MerkleProof2017-v-cug_ka-8h-1uHue.js");this.supportedVerificationSuites.MerkleProof2017=e}if(e.includes(Ka.MerkleProof2019)){const{default:e}=await import("./MerkleProof2019-IxLr0Lr4-exvrsGAt.js");this.supportedVerificationSuites.MerkleProof2019=e}if(e.includes(Ka.Ed25519Signature2020)){const{default:e}=await import("./Ed25519Signature2020-PVto7akI-7D-o4uG8.js");this.supportedVerificationSuites.Ed25519Signature2020=e}if(e.includes(Ka.EcdsaSecp256k1Signature2019)){const{default:e}=await import("./EcdsaSecp256k1Signature2019-JXyaAxSS-p7r9wTPV.js");this.supportedVerificationSuites.EcdsaSecp256k1Signature2019=e}}prepareVerificationProcess(){const e=za.certificates.getVerificationMap(!!this.issuer.didDocument,this.hashlinkVerifier?.hasHashlinksToVerify()??!1,!!this.validFrom);this.verificationSteps=e.verificationMap,this.verificationProcess=e.verificationProcess,this.registerSignatureVerificationSteps(),this.registerIdentityVerificationSteps(),this.verificationSteps=this.verificationSteps.filter((e=>e.subSteps?.length>0||e.suites?.some((e=>e.subSteps.length>0))))}registerSignatureVerificationSteps(){const e=ma.proofVerification;this.verificationSteps.find((t=>t.code===e)).suites=this.getSuiteSubsteps(e)}getSuiteSubsteps(e){const t={[ma.proofVerification]:"getProofVerificationSteps",[ma.identityVerification]:"getIdentityVerificationSteps"};return this.proofVerifiers.map((i=>({proofType:i.type,subSteps:i[t[e]](e)})))}registerIdentityVerificationSteps(){const e=ma.identityVerification;this.verificationSteps.find((t=>t.code===e)).suites=this.getSuiteSubsteps(e)}async executeStep(e,t,i){if(!this._isFailing()){e&&this._updateStatusCallback(e,Ra.STARTING,i);try{const r=await t();return e&&(this._updateStatusCallback(e,Ra.SUCCESS,i),this._stepsStatuses.push({code:e,status:Ra.SUCCESS})),r}catch(t){console.error(t),e&&(this._updateStatusCallback(e,Ra.FAILURE,i,t.message),this._stepsStatuses.push({code:e,message:t.message,status:Ra.FAILURE}))}}}_stepCallback(e){}async checkImagesIntegrity(){await this.executeStep(va.checkImagesIntegrity,(async()=>{await this.hashlinkVerifier.verifyHashlinkTable().catch((e=>{throw console.error("hashlink verification error",e),new ga(va.checkImagesIntegrity,ua("errors","checkImagesIntegrity"))}))}))}async checkRevokedStatus(){if(this.documentToVerify.credentialStatus){const{default:e}=await import("./checkRevocationStatusList2021-NUr7Ungd-8lPXcMzr.js");return void await this.executeStep(va.checkRevokedStatus,(async()=>{await e(this.documentToVerify.credentialStatus)}))}const e=this.getRevocationListUrl();if(!e)return console.warn("No revocation list url was set on the issuer."),void await this.executeStep(va.checkRevokedStatus,(()=>!0));const t=await this.executeStep(null,(async()=>await za.verifier.getRevokedAssertions(e,this.id))),{default:i}=await import("./ensureNotRevoked--X9grgJr-l9FjOXvf.js");await this.executeStep(va.checkRevokedStatus,(()=>{i(t,this.id)}))}async checkExpiresDate(){await this.executeStep(va.checkExpiresDate,(()=>{!function(e=null){if(!e)return;const t=Fa(e);if((new Date).getTime()>=t)throw new ga(va.checkExpiresDate,ua("errors","ensureNotExpired"))}(this.expires)}))}async ensureValidityPeriodStarted(){await this.executeStep(va.ensureValidityPeriodStarted,(()=>{!function(e=null){if(!e)return;if(Fa(e)>(new Date).getTime())throw new ga(va.ensureValidityPeriodStarted,ua("errors","ensureValidityPeriodStarted"))}(this.validFrom)}))}async controlVerificationMethod(){if(!this.issuer.didDocument)return;const{default:e}=await import("./controlVerificationMethod-Ai0yOkQs-GCeqYaBn.js");await this.executeStep(va.controlVerificationMethod,(()=>{e(this.issuer.didDocument,qa(this.documentToVerify.proof))}))}findStepFromVerificationProcess(e,t){return za.verifier.findVerificationSubstep(e,this.verificationSteps,t)}_failed(e){const{message:t}=e;return this._setFinalStep({status:Ra.FAILURE,message:t})}_isFailing(){return this._stepsStatuses.some((e=>e.status===Ra.FAILURE))}_succeed(){let e;return 1===this.proofVerifiers.length&&(e=this.proofVerifiers[0].type.includes("MerkleProof")?za.chains.isMockChain(this.proofVerifiers[0].getChain())?za.i18n.getComposedText("success","mocknet"):za.i18n.getComposedText("success","blockchain"):{...za.i18n.getComposedText("success","generic"),description:za.i18n.getComposedText("success","generic").description.replace("${SIGNATURE_TYPE}",this.proofVerifiers[0].type)}),this.proofVerifiers.length>1&&(e=za.i18n.getComposedText("success","multisign")),this._setFinalStep({status:Ra.SUCCESS,message:e})}_setFinalStep({status:e,message:t}){return{code:ma.final,status:e,message:t}}_updateStatusCallback(e,t,i="",r=""){if(null!=e){const n=this.findStepFromVerificationProcess(e,i);if(void 0===n)return void console.warn("step with code",e,"was not found for suite",i,"ignoring but you should not.");const o={code:e,status:t,parentStep:n.parentStep,label:n.labelPending};r&&(o.errorMessage=r),this._stepCallback(o)}}}var Ga={exports:{}};!function(e,t){var i="__lodash_hash_undefined__",r=9007199254740991,n="[object Arguments]",o="[object Boolean]",s="[object Date]",a="[object Function]",c="[object GeneratorFunction]",u="[object Map]",l="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",f="[object Set]",g="[object String]",b="[object Symbol]",m="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",_="[object Int16Array]",C="[object Int32Array]",A="[object Uint8Array]",S="[object Uint8ClampedArray]",E="[object Uint16Array]",P="[object Uint32Array]",L=/\w*$/,I=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,D={};D[n]=D["[object Array]"]=D[v]=D[y]=D[o]=D[s]=D[w]=D[x]=D[k]=D[_]=D[C]=D[u]=D[l]=D[d]=D[h]=D[f]=D[g]=D[b]=D[A]=D[S]=D[E]=D[P]=!0,D["[object Error]"]=D[a]=D[m]=!1;var M="object"==typeof ji&&ji&&ji.Object===Object&&ji,R="object"==typeof self&&self&&self.Object===Object&&self,O=M||R||Function("return this")(),B=t&&!t.nodeType&&t,j=B&&e&&!e.nodeType&&e,F=j&&j.exports===B;function N(e,t){return e.set(t[0],t[1]),e}function V(e,t){return e.add(t),e}function z(e,t,i,r){var n=-1,o=e?e.length:0;for(r&&o&&(i=e[++n]);++n<o;)i=t(i,e[n],n,e);return i}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function U(e){var t=-1,i=Array(e.size);return e.forEach((function(e,r){i[++t]=[r,e]})),i}function H(e,t){return function(i){return e(t(i))}}function q(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var K,J=Array.prototype,G=Function.prototype,Y=Object.prototype,W=O["__core-js_shared__"],Z=(K=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",X=G.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+X.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=F?O.Buffer:void 0,re=O.Symbol,ne=O.Uint8Array,oe=H(Object.getPrototypeOf,Object),se=Object.create,ae=Y.propertyIsEnumerable,ce=J.splice,ue=Object.getOwnPropertySymbols,le=ie?ie.isBuffer:void 0,de=H(Object.keys,Object),pe=je(O,"DataView"),he=je(O,"Map"),fe=je(O,"Promise"),ge=je(O,"Set"),be=je(O,"WeakMap"),me=je(Object,"create"),ve=$e(pe),ye=$e(he),we=$e(fe),xe=$e(ge),ke=$e(be),_e=re?re.prototype:void 0,Ce=_e?_e.valueOf:void 0;function Ae(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Pe(e){this.__data__=new Se(e)}function Le(e,t){var i=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&qe(e)}(e)&&Q.call(e,"callee")&&(!ae.call(e,"callee")||ee.call(e)==n)}(e)?function(e,t){for(var i=-1,r=Array(e);++i<e;)r[i]=t(i);return r}(e.length,String):[],r=i.length,o=!!r;for(var s in e)!t&&!Q.call(e,s)||o&&("length"==s||Ve(s,r))||i.push(s);return i}function Ie(e,t,i){var r=e[t];Q.call(e,t)&&Ue(r,i)&&(void 0!==i||t in e)||(e[t]=i)}function Te(e,t){for(var i=e.length;i--;)if(Ue(e[i][0],t))return i;return-1}function De(e,t,i,r,p,m,I){var T;if(r&&(T=m?r(e,p,m,I):r(e)),void 0!==T)return T;if(!Ge(e))return e;var M=He(e);if(M){if(T=function(e){var t=e.length,i=e.constructor(t);t&&"string"==typeof e[0]&&Q.call(e,"index")&&(i.index=e.index,i.input=e.input);return i}(e),!t)return function(e,t){var i=-1,r=e.length;t||(t=Array(r));for(;++i<r;)t[i]=e[i];return t}(e,T)}else{var R=Ne(e),O=R==a||R==c;if(Ke(e))return function(e,t){if(t)return e.slice();var i=new e.constructor(e.length);return e.copy(i),i}(e,t);if(R==d||R==n||O&&!m){if($(e))return m?e:{};if(T=function(e){return"function"!=typeof e.constructor||ze(e)?{}:(t=oe(e),Ge(t)?se(t):{});var t}(O?{}:e),!t)return function(e,t){return Oe(e,Fe(e),t)}(e,function(e,t){return e&&Oe(t,Ye(t),e)}(T,e))}else{if(!D[R])return m?e:{};T=function(e,t,i,r){var n=e.constructor;switch(t){case v:return Re(e);case o:case s:return new n(+e);case y:return function(e,t){var i=t?Re(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,r);case w:case x:case k:case _:case C:case A:case S:case E:case P:return function(e,t){var i=t?Re(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}(e,r);case u:return function(e,t,i){var r=t?i(U(e),!0):U(e);return z(r,N,new e.constructor)}(e,r,i);case l:case g:return new n(e);case h:return function(e){var t=new e.constructor(e.source,L.exec(e));return t.lastIndex=e.lastIndex,t}(e);case f:return function(e,t,i){var r=t?i(q(e),!0):q(e);return z(r,V,new e.constructor)}(e,r,i);case b:return a=e,Ce?Object(Ce.call(a)):{}}var a}(e,R,De,t)}}I||(I=new Pe);var B=I.get(e);if(B)return B;if(I.set(e,T),!M)var j=i?function(e){return function(e,t,i){var r=t(e);return He(e)?r:function(e,t){for(var i=-1,r=t.length,n=e.length;++i<r;)e[n+i]=t[i];return e}(r,i(e))}(e,Ye,Fe)}(e):Ye(e);return function(e,t){for(var i=-1,r=e?e.length:0;++i<r&&!1!==t(e[i],i,e););}(j||e,(function(n,o){j&&(n=e[o=n]),Ie(T,o,De(n,t,i,r,o,e,I))})),T}function Me(e){return!(!Ge(e)||(t=e,Z&&Z in t))&&(Je(e)||$(e)?te:I).test($e(e));var t}function Re(e){var t=new e.constructor(e.byteLength);return new ne(t).set(new ne(e)),t}function Oe(e,t,i,r){i||(i={});for(var n=-1,o=t.length;++n<o;){var s=t[n],a=r?r(i[s],e[s],s,i,e):void 0;Ie(i,s,void 0===a?e[s]:a)}return i}function Be(e,t){var i,r,n=e.__data__;return("string"==(r=typeof(i=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof t?"string":"hash"]:n.map}function je(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(i)?i:void 0}Ae.prototype.clear=function(){this.__data__=me?me(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(me){var r=t[e];return r===i?void 0:r}return Q.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Q.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?i:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,i=Te(t,e);return!(i<0)&&(i==t.length-1?t.pop():ce.call(t,i,1),!0)},Se.prototype.get=function(e){var t=this.__data__,i=Te(t,e);return i<0?void 0:t[i][1]},Se.prototype.has=function(e){return Te(this.__data__,e)>-1},Se.prototype.set=function(e,t){var i=this.__data__,r=Te(i,e);return r<0?i.push([e,t]):i[r][1]=t,this},Ee.prototype.clear=function(){this.__data__={hash:new Ae,map:new(he||Se),string:new Ae}},Ee.prototype.delete=function(e){return Be(this,e).delete(e)},Ee.prototype.get=function(e){return Be(this,e).get(e)},Ee.prototype.has=function(e){return Be(this,e).has(e)},Ee.prototype.set=function(e,t){return Be(this,e).set(e,t),this},Pe.prototype.clear=function(){this.__data__=new Se},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Se){var r=i.__data__;if(!he||r.length<199)return r.push([e,t]),this;i=this.__data__=new Ee(r)}return i.set(e,t),this};var Fe=ue?H(ue,Object):function(){return[]},Ne=function(e){return ee.call(e)};function Ve(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function ze(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function $e(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ue(e,t){return e===t||e!=e&&t!=t}(pe&&Ne(new pe(new ArrayBuffer(1)))!=y||he&&Ne(new he)!=u||fe&&Ne(fe.resolve())!=p||ge&&Ne(new ge)!=f||be&&Ne(new be)!=m)&&(Ne=function(e){var t=ee.call(e),i=t==d?e.constructor:void 0,r=i?$e(i):void 0;if(r)switch(r){case ve:return y;case ye:return u;case we:return p;case xe:return f;case ke:return m}return t});var He=Array.isArray;function qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Je(e)}var Ke=le||function(){return!1};function Je(e){var t=Ge(e)?ee.call(e):"";return t==a||t==c}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return qe(e)?Le(e):function(e){if(!ze(e))return de(e);var t=[];for(var i in Object(e))Q.call(e,i)&&"constructor"!=i&&t.push(i);return t}(e)}e.exports=function(e){return De(e,!0,!0)}}(Ga,Ga.exports);var Ya=Fi(Ga.exports);function Wa(e){return Ya(e)}function Za(e){return e===Object(e)}function Xa(e){return[...e.matchAll(/hl:{1}[a-zA-Z0-9]+:{1}[a-zA-Z0-9]+/gm)].map((e=>e[0])).filter((e=>!!e))}async function Qa(e,t){const i=Xa(e);if(i.length){const r=await async function(e,t){return(await Promise.all(e.map((async e=>await t.decode(e))))).reduce((function(e,t){return e.push(t.meta.url[0]),e}),[])}(i,t);e=function(e,t,i){return t.forEach(((t,r)=>{e=e.replace(i[r],t)})),e}(e,r,i)}return e}class ec{certificateImage;certificateJson;description;display;expires;validFrom;explorerAPIs=[];id;isFormatValid;issuedOn;issuer;locale;metadataJson;name;options;recipientFullName;recordLink;revocationKey;sealImage;signature;signatureImage;signers=[];subtitle;hashlinkVerifier;hasHashlinks=!1;verificationSteps;verifier;constructor(e,t={}){if(this._setOptions(t),"object"!=typeof e)try{e=JSON.parse(e)}catch(e){throw new Error(za.i18n.getText("errors","certificateNotValid"))}this.certificateJson=Wa(e)}async init(){if(this.certificateJson.display?.content){Xa(this.certificateJson.display.content).length&&await import("./HashlinkVerifier-qOLUtyR6-bzhltPG4.js").then((e=>{this.hashlinkVerifier=new e.HashlinkVerifier}))}await this.parseJson(this.certificateJson),this.verifier=new Ja({certificateJson:this.certificateJson,expires:this.expires,validFrom:this.validFrom,id:this.id,issuer:this.issuer,hashlinkVerifier:this.hashlinkVerifier,revocationKey:this.revocationKey,explorerAPIs:Wa(this.explorerAPIs)}),await this.verifier.init(),this.verificationSteps=this.verifier.getVerificationSteps()}async verify(e){const t=await this.verifier.verify(e);return this.setSigners(),t}async parseJson(e){const t=await async function(e){try{const t=Ua(e["@context"]),i=await Ha[t.versionNumber](e);return i.isFormatValid=!0,i}catch(e){return console.error(e),{isFormatValid:!1,error:e.message}}}(e);if(!t.isFormatValid)throw new Error(t.error);await this._setProperties(t)}setSigners(){this.signers=this.verifier.getSignersData()}_setOptions(e){this.options=Object.assign({},oa,e),this.locale=za.i18n.ensureIsSupported("auto"===this.options.locale?za.i18n.detectLocale():this.options.locale),this.explorerAPIs=this.options.explorerAPIs??[],e.didResolverUrl&&(za.did.didResolver.url=e.didResolverUrl),aa.locale=this.locale}async _setProperties({certificateImage:e,description:t,display:i,expires:r,validFrom:n,id:o,isFormatValid:s,issuedOn:a,issuer:c,metadataJson:u,name:l,recipientFullName:d,recordLink:p,revocationKey:h,sealImage:f,signature:g,signatureImage:b,subtitle:m}){this.isFormatValid=s,this.certificateImage=e,this.description=t,this.expires=r,this.validFrom=n,this.id=o,this.issuedOn=a,this.issuer=c,this.metadataJson=u,this.name=l,this.recipientFullName=d,this.recordLink=p,this.revocationKey=h,this.sealImage=f,this.signature=g,this.signatureImage=b,this.subtitle=m,this.display=await this.parseHashlinksInDisplay(i)}async parseHashlinksInDisplay(e){const t=Wa(e);if(t)return"text/html"!==t.contentMediaType||(t.content=await Qa(t.content,this.hashlinkVerifier)),t}}var tc=Object.freeze({__proto__:null,BLOCKCHAINS:st,CERTIFICATE_VERSIONS:it,Certificate:ec,STEPS:xa,SignatureImage:fa,get VERIFICATION_STATUSES(){return Ra},VerificationSubstep:Ba,getSupportedLanguages:la,retrieveBlockcertsVersion:Ua});var ic=function(e,t){return ic=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},ic(e,t)};function rc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}ic(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var nc=function(){return nc=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},nc.apply(this,arguments)};function oc(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function sc(e){return/^(ftp|http|https):\/\/[^ "]+$/.test(e)}function ac(e){return/^(\.\/|\.\.\/|[A-Z]:\/\/|\/)[^ "]+$/.test(e)}function cc(){return{certificateDefinition:null,errorMessage:"errors.invalidBlockcertsUrl"}}var uc=Object.freeze({__proto__:null,displayHtmlHasNoWidthConstraint:Ge,download:function(e){return e+Ye},initializeVerificationSteps:function(e){const t=JSON.parse(JSON.stringify(e.verificationSteps));return t.map(((e,i)=>Object.assign(Object.assign({},e),{isLast:i===t.length-1,status:Ra.DEFAULT})))},isPathToCertificateValidURI:function(e){return sc(e)||ac(e)},parse:function(e,t={}){return oc(this,void 0,void 0,(function*(){t.locale||(t.locale="auto");try{const{retrieveBlockcertsVersion:i,Certificate:r}=yield Promise.resolve().then((function(){return tc}));let n;if(1===i(e["@context"]).versionNumber){const{Certificate:i}=yield import("./index-UlvMASNZ.js").then((function(e){return e.h}));n=new i(e,t)}else n=new r(e,t);return yield n.init(),{certificateDefinition:n}}catch(e){return console.error(e),{certificateDefinition:null,errorMessage:"errors.invalidBlockcerts"}}}))},read:function(e){return oc(this,void 0,void 0,(function*(){if(!e)return;const t=yield function(e){return oc(this,void 0,void 0,(function*(){return yield new Promise((function(t,i){const r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=r.onabort=i,r.readAsText(e)}))}))}(e);return t}))},retrieve:function(e){return oc(this,void 0,void 0,(function*(){if(!sc(e)&&!ac(e))return console.error("Invalid url to retrieve:",e),null;const t=e+Ye;return yield fetch(t).then((e=>oc(this,void 0,void 0,(function*(){return yield e.text()})))).then((e=>{try{return{certificateDefinition:JSON.parse(e)}}catch(e){return console.log(e),{certificateDefinition:null,errorMessage:"errors.invalidBlockcertsUrl"}}})).catch(cc)}))}});var lc=((e={})=>{if(!window.Proxy){const t=function(){let e=null;function t(e){return!!e&&("object"==typeof e||"function"==typeof e)}const i=function(i,r){if(!t(i)||!t(r))throw new TypeError("Cannot create proxy with a non-object as target or handler");let n=function(){};e=function(){n=function(e){throw new TypeError(`Cannot perform '${e}' on a proxy that has been revoked`)}};const o=r;r={get:null,set:null,apply:null,construct:null};for(const e in o)e in r&&(r[e]=o[e]);"function"==typeof o&&(r.apply=o.apply.bind(o));let s=this,a=!1,c=!1;"function"==typeof i?(s=function(){const e=this&&this.constructor===s,t=Array.prototype.slice.call(arguments);return n(e?"construct":"apply"),e&&r.construct?r.construct.call(this,i,t):!e&&r.apply?r.apply(i,this,t):e?(t.unshift(i),new(i.bind.apply(i,t))):i.apply(this,t)},a=!0):i instanceof Array&&(s=[],c=!0);const u=r.get?function(e){return n("get"),r.get(this,e,s)}:function(e){return n("get"),this[e]},l=r.set?function(e,t){n("set"),r.set(this,e,t,s)}:function(e,t){n("set"),this[e]=t},d=Object.getOwnPropertyNames(i),p={};d.forEach((function(e){if((a||c)&&e in s)return;const t={enumerable:!!Object.getOwnPropertyDescriptor(i,e).enumerable,get:u.bind(i,e),set:l.bind(i,e)};Object.defineProperty(s,e,t),p[e]=!0}));let h=!0;if(Object.setPrototypeOf?Object.setPrototypeOf(s,Object.getPrototypeOf(i)):s.__proto__?s.__proto__=i.__proto__:h=!1,r.get||!h)for(const e in i)p[e]||Object.defineProperty(s,e,{get:u.bind(i,e)});return Object.seal(i),Object.seal(s),s};return i.revocable=function(t,r){return{proxy:new i(t,r),revoke:e}},i}();return new t(e,qe)}return new Proxy(e,qe)})({certificates:uc,events:Object.freeze({__proto__:null,dispatch:function(e="",t=null,i){if(!e||"string"!=typeof e)return;if(!t||"object"!=typeof t)return;const r=new CustomEvent(e,{detail:Object.assign({certificateDefinition:t},i)});window.dispatchEvent(r)}})});function dc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pc={exports:{}},hc={},fc={exports:{}},gc={};function bc(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var mc=/javascript\s*\:/gim;gc.whiteList=bc(),gc.getDefaultWhiteList=bc,gc.onAttr=function(e,t,i){},gc.onIgnoreAttr=function(e,t,i){},gc.safeAttrValue=function(e,t){return mc.test(t)?"":t};var vc={indexOf:function(e,t){var i,r;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var r,n;if(Array.prototype.forEach)return e.forEach(t,i);for(r=0,n=e.length;r<n;r++)t.call(i,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}};var yc=function(e,t){";"!==(e=vc.trimRight(e))[e.length-1]&&(e+=";");var i=e.length,r=!1,n=0,o=0,s="";function a(){if(!r){var i=vc.trim(e.slice(n,o)),a=i.indexOf(":");if(-1!==a){var c=vc.trim(i.slice(0,a)),u=vc.trim(i.slice(a+1));if(c){var l=t(n,s.length,c,u,i);l&&(s+=l+"; ")}}}n=o+1}for(;o<i;o++){var c=e[o];if("/"===c&&"*"===e[o+1]){var u=e.indexOf("*/",o+2);if(-1===u)break;n=(o=u+1)+1,r=!1}else"("===c?r=!0:")"===c?r=!1:";"===c?r||a():"\n"===c&&a()}return vc.trim(s)},wc=gc,xc=yc;function kc(e){return null==e}function _c(e){(e=function(e){var t={};for(var i in e)t[i]=e[i];return t}(e||{})).whiteList=e.whiteList||wc.whiteList,e.onAttr=e.onAttr||wc.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||wc.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||wc.safeAttrValue,this.options=e}_c.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,i=t.whiteList,r=t.onAttr,n=t.onIgnoreAttr,o=t.safeAttrValue;return xc(e,(function(e,t,s,a,c){var u=i[s],l=!1;if(!0===u?l=u:"function"==typeof u?l=u(a):u instanceof RegExp&&(l=u.test(a)),!0!==l&&(l=!1),a=o(s,a)){var d,p={position:t,sourcePosition:e,source:c,isWhite:l};return l?kc(d=r(s,a,p))?s+":"+a:d:kc(d=n(s,a,p))?void 0:d}}))};var Cc=_c;!function(e,t){var i=gc,r=Cc;for(var n in t=e.exports=function(e,t){return new r(t).process(e)},t.FilterCSS=r,i)t[n]=i[n];"undefined"!=typeof window&&(window.filterCSS=e.exports)}(fc,fc.exports);var Ac=fc.exports,Sc=dc(Ac),Ec={indexOf:function(e,t){var i,r;if(Array.prototype.indexOf)return e.indexOf(t);for(i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1},forEach:function(e,t,i){var r,n;if(Array.prototype.forEach)return e.forEach(t,i);for(r=0,n=e.length;r<n;r++)t.call(i,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}},Pc=Ac.FilterCSS,Lc=Ac.getDefaultWhiteList,Ic=Ec;function Tc(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Dc=new Pc;function Mc(e){return e.replace(Rc,"&lt;").replace(Oc,"&gt;")}var Rc=/</g,Oc=/>/g,Bc=/"/g,jc=/&quot;/g,Fc=/&#([a-zA-Z0-9]*);?/gim,Nc=/&colon;?/gim,Vc=/&newline;?/gim,zc=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,$c=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Uc=/u\s*r\s*l\s*\(.*/gi;function Hc(e){return e.replace(Bc,"&quot;")}function qc(e){return e.replace(jc,'"')}function Kc(e){return e.replace(Fc,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function Jc(e){return e.replace(Nc,":").replace(Vc," ")}function Gc(e){for(var t="",i=0,r=e.length;i<r;i++)t+=e.charCodeAt(i)<32?" ":e.charAt(i);return Ic.trim(t)}function Yc(e){return e=Gc(e=Jc(e=Kc(e=qc(e))))}function Wc(e){return e=Mc(e=Hc(e))}hc.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},hc.getDefaultWhiteList=Tc,hc.onTag=function(e,t,i){},hc.onIgnoreTag=function(e,t,i){},hc.onTagAttr=function(e,t,i){},hc.onIgnoreTagAttr=function(e,t,i){},hc.safeAttrValue=function(e,t,i,r){if(i=Yc(i),"href"===t||"src"===t){if("#"===(i=Ic.trim(i)))return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===t){if(zc.lastIndex=0,zc.test(i))return""}else if("style"===t){if($c.lastIndex=0,$c.test(i))return"";if(Uc.lastIndex=0,Uc.test(i)&&(zc.lastIndex=0,zc.test(i)))return"";!1!==r&&(i=(r=r||Dc).process(i))}return i=Wc(i)},hc.escapeHtml=Mc,hc.escapeQuote=Hc,hc.unescapeQuote=qc,hc.escapeHtmlEntities=Kc,hc.escapeDangerHtml5Entities=Jc,hc.clearNonPrintableCharacter=Gc,hc.friendlyAttrValue=Yc,hc.escapeAttrValue=Wc,hc.onIgnoreTagStripAll=function(){return""},hc.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var i=!Array.isArray(e),r=[],n=!1;return{onIgnoreTag:function(o,s,a){if(function(t){return!!i||-1!==Ic.indexOf(e,t)}(o)){if(a.isClosing){var c="[/removed]",u=a.position+10;return r.push([!1!==n?n:a.position,u]),n=!1,c}return n||(n=a.position),"[removed]"}return t(o,s,a)},remove:function(e){var t="",i=0;return Ic.forEach(r,(function(r){t+=e.slice(i,r[0]),i=r[1]})),t+=e.slice(i)}}},hc.stripCommentTag=function(e){for(var t="",i=0;i<e.length;){var r=e.indexOf("\x3c!--",i);if(-1===r){t+=e.slice(i);break}t+=e.slice(i,r);var n=e.indexOf("--\x3e",r);if(-1===n)break;i=n+3}return t},hc.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},hc.cssFilter=Dc,hc.getDefaultCSSWhiteList=Lc;var Zc={},Xc=Ec;function Qc(e){var t,i=Xc.spaceIndex(e);return t=-1===i?e.slice(1,-1):e.slice(1,i+1),"/"===(t=Xc.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function eu(e){return"</"===e.slice(0,2)}var tu=/[^a-zA-Z0-9\\_:.-]/gim;function iu(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"="===i?t:-1}}function ru(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"'"===i||'"'===i?t:-1}}function nu(e,t){for(;t>0;t--){var i=e[t];if(" "!==i)return"="===i?t:-1}}function ou(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}Zc.parseTag=function(e,t,i){var r="",n=0,o=!1,s=!1,a=0,c=e.length,u="",l="";e:for(a=0;a<c;a++){var d=e.charAt(a);if(!1===o){if("<"===d){o=a;continue}}else if(!1===s){if("<"===d){r+=i(e.slice(n,a)),o=a,n=a;continue}if(">"===d){r+=i(e.slice(n,o)),u=Qc(l=e.slice(o,a+1)),r+=t(o,r.length,u,l,eu(l)),n=a+1,o=!1;continue}if('"'===d||"'"===d)for(var p=1,h=e.charAt(a-p);""===h.trim()||"="===h;){if("="===h){s=d;continue e}h=e.charAt(a-++p)}}else if(d===s){s=!1;continue}}return n<e.length&&(r+=i(e.substr(n))),r},Zc.parseAttr=function(e,t){var i=0,r=0,n=[],o=!1,s=e.length;function a(e,i){if(!((e=(e=Xc.trim(e)).replace(tu,"").toLowerCase()).length<1)){var r=t(e,i||"");r&&n.push(r)}}for(var c=0;c<s;c++){var u,l=e.charAt(c);if(!1!==o||"="!==l)if(!1===o||c!==r)if(/\s|\n|\t/.test(l)){if(e=e.replace(/\s|\n|\t/g," "),!1===o){if(-1===(u=iu(e,c))){a(Xc.trim(e.slice(i,c))),o=!1,i=c+1;continue}c=u-1;continue}if(-1===(u=nu(e,c-1))){a(o,ou(Xc.trim(e.slice(i,c)))),o=!1,i=c+1;continue}}else;else{if(-1===(u=e.indexOf(l,c+1)))break;a(o,Xc.trim(e.slice(r+1,u))),o=!1,i=(c=u)+1}else o=e.slice(i,c),i=c+1,r='"'===e.charAt(i)||"'"===e.charAt(i)?i:ru(e,c+1)}return i<e.length&&(!1===o?a(e.slice(i)):a(o,ou(Xc.trim(e.slice(i))))),Xc.trim(n.join(" "))};var su=Ac.FilterCSS,au=hc,cu=Zc,uu=cu.parseTag,lu=cu.parseAttr,du=Ec;function pu(e){return null==e}function hu(e){(e=function(e){var t={};for(var i in e)t[i]=e[i];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=au.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var i in e)Array.isArray(e[i])?t[i.toLowerCase()]=e[i].map((function(e){return e.toLowerCase()})):t[i.toLowerCase()]=e[i];return t}(e.whiteList||e.allowList):e.whiteList=au.whiteList,e.onTag=e.onTag||au.onTag,e.onTagAttr=e.onTagAttr||au.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||au.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||au.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||au.safeAttrValue,e.escapeHtml=e.escapeHtml||au.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new su(e.css))}hu.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,i=t.whiteList,r=t.onTag,n=t.onIgnoreTag,o=t.onTagAttr,s=t.onIgnoreTagAttr,a=t.safeAttrValue,c=t.escapeHtml,u=this.cssFilter;t.stripBlankChar&&(e=au.stripBlankChar(e)),t.allowCommentTag||(e=au.stripCommentTag(e));var l=!1;t.stripIgnoreTagBody&&(l=au.StripTagBody(t.stripIgnoreTagBody,n),n=l.onIgnoreTag);var d=uu(e,(function(e,t,l,d,p){var h={sourcePosition:e,position:t,isClosing:p,isWhite:Object.prototype.hasOwnProperty.call(i,l)},f=r(l,d,h);if(!pu(f))return f;if(h.isWhite){if(h.isClosing)return"</"+l+">";var g=function(e){var t=du.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var i="/"===(e=du.trim(e.slice(t+1,-1)))[e.length-1];return i&&(e=du.trim(e.slice(0,-1))),{html:e,closing:i}}(d),b=i[l],m=lu(g.html,(function(e,t){var i=-1!==du.indexOf(b,e),r=o(l,e,t,i);return pu(r)?i?(t=a(l,e,t,u))?e+'="'+t+'"':e:pu(r=s(l,e,t,i))?void 0:r:r}));return d="<"+l,m&&(d+=" "+m),g.closing&&(d+=" /"),d+=">"}return pu(f=n(l,d,h))?c(d):f}),c);return l&&(d=l.remove(d)),d};var fu=hu;!function(e,t){var i=hc,r=Zc,n=fu;function o(e,t){return new n(t).process(e)}(t=e.exports=o).filterXSS=o,t.FilterXSS=n,function(){for(var e in i)t[e]=i[e];for(var n in r)t[n]=r[n]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(pc,pc.exports);var gu=dc(pc.exports);const bu={...Sc.getDefaultWhiteList(),bottom:!0,left:!0,float:!0,overflow:!0,position:!0,right:!0,top:!0,transform:!0,opacity:!0,"transform-origin":!0,"flex-direction":!0,"flex-wrap":!0,"justify-content":!0,"align-items":!0,"white-space":!0,"line-height":!0,"grid-template-columns":!0,"grid-template-rows":!0,"grid-column":!0,"grid-row":!0,"grid-area":!0,"align-self":!0,"justify-self":!0,span:!0};var mu=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,vu=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,yu=/u\s*r\s*l\s*\(.*/gi;const wu={whiteList:function(){const e=gu.getDefaultWhiteList();return Object.keys(e).forEach((t=>{e[t].push("style"),e[t].push("class"),e[t].push("download")})),e}(),css:!1,stripIgnoreTagBody:!0,onTagAttr:function(e,t,i,r){if("style"===t)return`${t}="${Sc(i,{whiteList:bu}).replace(/; /g,";")}"`;if("img"===e&&"src"===t&&function(e){return!!e.match(/^data:.+;base64,/)}(i)){const e=function(e){return e.split("base64,")[1]}(i);try{return atob(e),`${t}="${i}"`}catch(e){return t}}},safeAttrValue:function(e,t,i,r){if(i=gu.friendlyAttrValue(i),"href"===t||"src"===t){if("#"===(i=function(e){if(String.prototype.trim)return e.trim();return e.replace(/(^\s*)|(\s*$)/g,"")}(i)))return"#";if(!function(e){return["http://","https://","mailto:","tel:","data:","#","/"].some((t=>e.substr(0,t.length)===t))}(i))return""}else if("background"===t){if(mu.lastIndex=0,mu.test(i))return""}else if("style"===t){if(vu.lastIndex=0,vu.test(i))return"";if(yu.lastIndex=0,yu.test(i)&&(mu.lastIndex=0,mu.test(i)))return"";!1!==r&&(i=(r=r||gu.getDefaultCSSWhiteList()).process(i))}return i=gu.escapeAttrValue(i)}},xu=new gu.FilterXSS(wu);function ku(e){return xu.process(e)}const _u="en";var Cu={locale:_u};const Au={en:{errors:{errorLabel:"Error",invalidBlockcerts:"Not a valid Blockcerts credential. Please check with the issuer or recipient that has provided this credential.",invalidBlockcertsUrl:"Not a valid credential URL.",invalidFormatDragAndDrop:"Only JSON files are accepted",invalidUrl:"This does not seem to be a valid URL.",noIssuerName:"No name provided",noMetadata:"No metadata specified for this record",noShareUrl:"No URL to share!",noTransactionId:"No transaction ID"},text:{brandName:"Blockcerts",blockcertsHint:"Visit Blockcerts website",by:"by",certified:"Certified by",closeButton:"Click to close",downloadLink:"Download Record in JSON format",downloadPDFLink:"Download Record in PDF Format",downloadPDFLinkIsLoading:"Generating PDF...",dragAndDropHint:"(you can also drag & drop your file).",fileUpload:"Choose JSON file",issued:"Issued on",issueDate:"Issue Date",issuerName:"Issuer",issuerPublicKey:"Issuer's public key",issuerProfileDomain:"Issuer's information",item:"Item",itemPlural:"Items",metadataButton:"View Metadata",metadataTitle:"Metadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Recipient",share:"Share on",shareButton:"Share on Social Networks",signatureSuiteType:"Digital signature type",signatureStatusSuccess:"This signature has been successfully verified",signatureStatusTestSuccess:"This signature has been successfully verified but has been issued on a test chain",signatureStatusFailure:"This signature yielded an error during verification",signed:"Signed by",substepsListClose:"Hide",substepsListHint:"Toggle open list of substeps",transactionId:"Transaction ID",urlInput:"Enter the certificate URL",urlInputPlaceholder:"Certificate URL",verificationStepProgress:"Verifying step...",verify:"Verify",verifyAgain:"Verify again",verifyOther:"Verify another record",viewRecord:"View Record"},date:{months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],pattern:"MM DD, YYYY"},numbers:{ordinal:["th","st","nd","rd"]}},es:{errors:{errorLabel:"Error",invalidBlockcerts:"No es una credencial válida de Blockcerts. Verifique con el emisor o el destinatario que ha proporcionado esta credencial.",invalidBlockcertsUrl:"No es URL de certificado valido.",invalidFormatDragAndDrop:"Solo se aceptan archivos JSON",invalidUrl:"Esto no parece ser un URL válido.",noIssuerName:"No nombre comunicado",noMetadata:"No se han especificado metadatos para este registro",noShareUrl:"No hay URL para compartir!",noTransactionId:"No ID de transacción"},text:{brandName:"Blockcerts",blockcertsHint:"Visite el sitio web de Blockcerts",by:"por",certified:"Certificado por",closeButton:"Haz Click para cerrar",downloadLink:"Descarga el Registro en formato JSON",downloadPDFLink:"Descarga el Registro en formato PDF",downloadPDFLinkIsLoading:"Generando PDF...",dragAndDropHint:"(también puedes arrastrar y soltar tu archivo).",fileUpload:"Escoge archivo JSON",issued:"Emitido el",issueDate:"Fecha de Emisión",issuerName:"Emisor",issuerPublicKey:"Llave publica del Emisor",issuerProfileDomain:"Información del Emisor",item:"Elemento",itemPlural:"Elementos",metadataButton:"Ver Metadata",metadataTitle:"Metadata",motto:"Blockcerts, El Estándar Abierto para Credenciales Blockchain",recipient:"Recipiente",share:"Comparte en",shareButton:"Comparte en Redes Sociales",signatureSuiteType:"Tipo de firma digital",signed:"Firmado Por",signatureStatusSuccess:"La verificación de esta firma digital ha tenido éxito",signatureStatusTestSuccess:"La verificación de esta firma digital ha tenido éxito pero se utilizó una cadena de test",signatureStatusFailure:"Error en la verificación de esta firma digital",substepsListClose:"Esconde",substepsListHint:"Pasa lista abierta de sub-pasos",transactionId:"ID de Transacción",urlInput:"Ingrese el URL del certificado",urlInputPlaceholder:"Certificado del URL",verificationStepProgress:"Paso de verificación...",verify:"Verifica",verifyAgain:"Verifica nuevamente",verifyOther:"Verifica otro registro",viewRecord:"Ver Registro"},date:{months:["enero","feb","marzo","abr","mayo","jun","jul","agosto","set","oct","nov","dic"],pattern:"MM DD, YYYY"},numbers:{ordinal:"°"}},fr:{errors:{errorLabel:"Erreur",invalidBlockcerts:"Ceci n'est pas un certificat Blockcerts valide. Veuillez s'il vous plaît contrôler avec l'organisme émetteur ou le récipiendaire de ce certificat.",invalidBlockcertsUrl:"Ceci n'est pas une URL de certificat valide.",invalidFormatDragAndDrop:"Seul le format JSON est accepté",invalidUrl:"URL invalide",noIssuerName:"Pas de nom fourni",noMetadata:"Ce certificat ne contient pas de métadata",noShareUrl:"Pas d'URL à partager!",noTransactionId:"Pas d'identifiant de transaction"},text:{brandName:"Blockcerts",blockcertsHint:"Visiter le site de Blockcerts",by:"par",certified:"Certifié par",closeButton:"Cliquer pour fermer",downloadLink:"Télécharger le certificat au format JSON",downloadPDFLink:"Télécharger le certificat au format PDF",downloadPDFLinkIsLoading:"Création du PDF...",dragAndDropHint:"(vous pouvez aussi glisser et déposer votre fichier).",fileUpload:"Choisir un fichier JSON",issued:"Émis le",issueDate:"Date d'émission",issuerName:"Émetteur",issuerPublicKey:"Clé publique de l'émetteur",issuerProfileDomain:"Profil de l'émetteur",item:"point contrôlé",itemPlural:"points contrôlés",metadataButton:"Voir les métadata",metadataTitle:"Métadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Titulaire",share:"Partager sur",shareButton:"Partager sur les réseaux sociaux",signatureSuiteType:"Type de signature numérique",signed:"Signé par",signatureStatusSuccess:"Cette signature a été vérifiée avec succès",signatureStatusTestSuccess:"Cette signature a été vérifiée avec succès mais la blockchain utilisée est de test",signatureStatusFailure:"Erreur durant la vérification de cette signature",substepsListClose:"Fermer",substepsListHint:"Afficher les sous-étapes",transactionId:"Identifiant de transaction",urlInput:"Entrez l'URL du certificat",urlInputPlaceholder:"URL du certificat",verificationStepProgress:"Vérification en cours...",verify:"Vérifier",verifyAgain:"Vérifier de nouveau",verifyOther:"Vérifier un autre certificat",viewRecord:"Voir le certificat"},date:{months:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aout","Sept","Oct","Nov","Déc"],pattern:"DD MM YYYY"},numbers:{ordinal:["ème","er"]}},it:{errors:{errorLabel:"Errore",invalidBlockcerts:"Non è una definizione valida di Blockcerts.",invalidBlockcertsUrl:"Non è un URL di certificato valido.",invalidFormatDragAndDrop:"Sono accettati solo file JSON",invalidUrl:"Questo non sembra essere un URL valido.",noIssuerName:"No name provided",noMetadata:"Nessun Metadata specificato per questo record",noShareUrl:"Non c'è un URL da condividere!",noTransactionId:"Nessun ID transazione"},text:{brandName:"Blockcerts",blockcertsHint:"Visita il sito Web Blockcerts",by:"da",certified:"Certificato da",closeButton:"Fai clic per chiudere",downloadLink:"Scarica il Record in formato JSON",downloadPDFLink:"Scarica il Record in formato JSON",downloadPDFLinkIsLoading:"Generazione PDF...",dragAndDropHint:"(puoi anche trascinare il file).",fileUpload:"Scegli il file JSON",issued:"Rilasciato il",issueDate:"Data",issuerName:"Organizzazione Issuer",issuerPublicKey:"Chiave pubblica del Issuer",issuerProfileDomain:"Informazzione del Issuer",item:"Elemento",itemPlural:"Elementi",metadataButton:"Visualizza Metadata",metadataTitle:"Metadata",motto:"Blockcerts, The Open Standard for Blockchain Credentials",recipient:"Titolare",share:"Condividi",shareButton:"Condividi sui Social Network",signed:"Firmato da",signatureStatusSuccess:"This signature has been successfully verified",signatureStatusTestSuccess:"This signature has been successfully verified but has been issued on a test chain",signatureStatusFailure:"This signature yielded an error during verification",signatureSuiteType:"Digital signature type",substepsListClose:"Nascondi",substepsListHint:"Mostra gli step secondari",transactionId:"ID transazione",urlInput:"Inserisci l'URL del certificato",urlInputPlaceholder:"URL del certificato",verificationStepProgress:"Step di verifica...",verify:"Verifica",verifyAgain:"Verifica di nuovo",verifyOther:"Verifica un altro record",viewRecord:"Visualizza il Record"},date:{months:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],pattern:"DD MM YYYY"},numbers:{ordinal:"°"}},ja:{errors:{errorLabel:"エラー",invalidBlockcerts:"この証明書は有効なブロックサーツ証明書ではありません。発行者、もしくはこの証明書を提供した取得者にお問合せください。",invalidBlockcertsUrl:"有効な証明書URLではありません。",invalidFormatDragAndDrop:"JSONファイルしか受理できません",invalidUrl:"このURLは無効のようです。",noIssuerName:"名前が提供されていません",noMetadata:"この証明書に該当するメタデータがありません",noShareUrl:"シェアできるURLがありません!",noTransactionId:"取引IDがありません"},text:{brandName:"Blockcerts",blockcertsHint:"Blockcertsのホームページへ移動",by:" 発行者:",certified:"証明者:",closeButton:"クリックで閉じる",downloadLink:"JSON形式で証明書をダウンロード",downloadPDFLink:"PDF形式で証明書をダウンロード",downloadPDFLinkIsLoading:"PDFを生成中...",dragAndDropHint:"(ファイルのドラッグ&ドロップも可)。",fileUpload:"JSONファイルの選択",issued:"発行時:",issueDate:"発行日:",issuerName:"発行者",issuerPublicKey:"発行者の公開鍵",issuerProfileDomain:"発行者情報",item:"項目",itemPlural:"項目",metadataButton:"メタデータの閲覧",metadataTitle:"メタデータ",motto:"Blockcerts:ブロックチェーン証明書のオープンスタンダード",recipient:"取得者",share:"シェア先:",shareButton:"SNSでシェア",signatureSuiteType:"デジタル署名の種類",signatureStatusSuccess:"この署名の認証に成功しました",signatureStatusTestSuccess:"この署名の認証に成功しましたが、発行は試用のブロックチェーンで行われました。",signatureStatusFailure:"この署名の認証中にエラーが発生しました",signed:"署名者:",substepsListClose:"閉じる",substepsListHint:"サブステップのリストを開く",transactionId:"取引ID",urlInput:"証明書URLの入力",urlInputPlaceholder:"証明書URL",verificationStepProgress:"認証ステップを実行中...",verify:"認証する",verifyAgain:"もう一度認証する",verifyOther:"別の証明書を認証する",viewRecord:"証明書を閲覧する"},date:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],pattern:"YYYY年-MM-DD日"},numbers:{ordinal:["番目","番目","番目","番目"]}}};function Su(){return Au}function Eu(e,t,i,r){if(!e)return"";if(e.includes(".")){const i=e.split(".");e=i[0],t=i[1]}if(!t)return"";i&&r>1&&(t+="Plural");const n=Su();return n[Cu.locale]?n[Cu.locale][e]?n[Cu.locale][e][t]?n[Cu.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]"}function Pu(e){const t=Eu("date","pattern");"Z"===e.slice(-1)?e=e.slice(0,e.length-1):e.includes("+")&&(e=e.split("+")[0]);const i=new Date(e);let r=function(e,t){const i=Eu("date","months");return e.replace("MM",i[t])}(t,i.getMonth());return r=function(e,t){return e.replace("DD",t)}(r,i.getDate().toString(10)),r=function(e,t){return e.replace("YYYY",t)}(r,i.getFullYear().toString(10)),r}function Lu(e){return e.certificateDefinition}function Iu(e){const t=Lu(e);return t?t.signers:[]}function Tu(e){const t=Lu(e);return t?t.issuedOn:""}function Du(e){return Lu(e)?Pu(Tu(e)):""}function Mu(e){const t=Lu(e);return t?t.recipientFullName:""}function Ru(e){const t=Lu(e);return t?t.name:""}function Ou(e){const t=Lu(e);return t?t.issuer.name:""}function Bu(e){const t=Lu(e);return t?t.issuer.image:""}function ju(e){const t=function(e){const t=Lu(e);if(t)return t.certificateImage;return""}(e),i=Ru(e),r=function(e){const t=Lu(e);if(t)return t.subtitle;return""}(e),n=function(e){const t=Lu(e);if(t)return t.description;return""}(e),o=function(e){const t=Lu(e);if(t)return t.sealImage;return""}(e),s=function(e){const t=Lu(e);if(t)return t.signatureImage;return null}(e),a=Mu(e),c=Ou(e),u=s.map((e=>`\n <li class='buv-c-full-certificate-signatures__signature'>\n <img class='buv-c-full-certificate-img--secondary' src='${e.image}' alt='${Eu("text.signed")} ${e.jobTitle}'/>\n ${e.jobTitle?`<span class='buv-o-text-12'>${e.jobTitle}</span>`:""}\n </li>\n `));let l="";return t&&(l+=`<img class='buv-c-full-certificate-img' src='${t}' alt='${i}'/>`),l+=`\n <div class="buv-c-full-certificate__titles">\n ${a?`<h1 class='buv-c-full-certificate__title buv-c-full-certificate__title--name'>${a}</h1>`:""}\n ${i?`<h2 class='buv-c-full-certificate__title buv-c-full-certificate__title--main'>${i}</h2>`:""}\n ${r?`<h3 class='buv-c-full-certificate__title buv-c-full-certificate__title--sub'>${r}</h3>`:""}\n </div>\n `,n&&(l+=`<p class='buv-c-full-certificate__description'>${n}</p>`),u.length&&(l+=`\n <ul class='buv-c-full-certificate-signatures'>\n ${u.join("\n")}\n </ul>\n `),o&&(l+=`<img class='buv-c-full-certificate-img--secondary' src='${o}' alt='${Eu("text.certified")} ${c}'/>`),l}function Fu(e){const t=Lu(e);if(!t)return"";const{displayHtml:i}=t.certificateJson;if(i)return ku(i);const r=t.display;if(r)switch(r.contentMediaType){case Ke.TEXT_HTML:return ku(r.content);case Ke.IMAGE_PNG:case Ke.IMAGE_JPEG:case Ke.IMAGE_GIF:case Ke.IMAGE_BMP:return`<img src="data:${r.contentMediaType};${r.contentEncoding},${r.content}"/>`;case Ke.APPLICATION_PDF:return`<embed width="100%" height="100%" type="application/pdf" src="data:${r.contentMediaType};${r.contentEncoding},${r.content}"/>`;default:return""}return ju(e)}function Nu(e){const t=Lu(e);return t&&sc(t.recordLink)?t.recordLink:""}function Vu(e){const t=Nu(e);return t?lc.certificates.download(t):""}function zu(e){const t=Lu(e);if(t)try{return JSON.parse(t.metadataJson)}catch(e){return null}return null}function $u(e){var t;const i=Iu(e);return 0===i.length?null!==(t=tl(e,"transactionLink"))&&void 0!==t?t:[]:i.map((e=>e.transactionLink))}function Uu(e){var t;const i=Iu(e);return 0===i.length?null!==(t=tl(e,"transactionId"))&&void 0!==t?t:[]:i.map((e=>e.transactionId))}function Hu(e){const t=Iu(e);if(0===t.length){const t=tl(e,"chain");return t?t.map((e=>null==e?void 0:e.name)):[]}return t.map((e=>{var t;return null===(t=e.chain)||void 0===t?void 0:t.name}))}function qu(e){return Hu(e).some((e=>"Mocknet"===e||(null==e?void 0:e.includes("Testnet"))))}function Ku(e,t){const i=Hu(e)[t];return!!i&&("Mocknet"===i||i.includes("Testnet"))}function Ju(e){return e.verifiedSteps||[]}function Gu(e,t){return Ju(e).find((e=>e.code===t))}function Yu(e){return Ju(e).some((e=>e.status===Ra.FAILURE))}function Wu(e){return e.finalStep}function Zu(e){return Iu(e).map((e=>e.issuerPublicKey))}function Xu(e){return Iu(e).map((e=>e.issuerProfileUrl))}function Qu(e){return Iu(e).map((e=>e.issuerProfileDomain))}function el(e){return Iu(e).map((e=>e.signatureSuiteType))}function tl(e,t){const i=Lu(e);return i?[i[t]]:null}function il(e){return e.isGeneratingPDF}function rl(e,t){switch(t.type){case Be:return function(e,t){const{resetSteps:i}=t.payload;return Object.assign(Object.assign({},e),{verifiedSteps:i})}(e,t);case Ie:return function(e,t){return Object.assign(Object.assign({},e),t.payload.options)}(e,t);case Te:return function(e,t){return Object.assign(Object.assign(Object.assign({},e),t.payload),t.payload.certificateDefinition&&{verifiedSteps:lc.certificates.initializeVerificationSteps(t.payload.certificateDefinition)})}(e,t);case De:return function(e,t){return Object.assign(Object.assign({},e),{certificateDefinition:t.payload.definition})}(e,t);case Me:return function(e,t){return Object.assign(Object.assign({},e),{input:Object.assign(Object.assign({},e.input),{certificateUrl:t.payload.url})})}(e,t);case Fe:return function(e,t){const{parentStepCode:i,status:r}=t.payload;return Gu(e,i).status=r,e}(e,t);case Oe:return function(e,t){return Object.assign(Object.assign({},e),{input:Object.assign(Object.assign({},e.input),{isValid:t.payload.isValid})})}(e,t);case $e:return function(e,t){const{errorMessage:i}=t.payload;return Object.assign(Object.assign({},e),{errorMessage:i})}(e,t);case Ue:return function(e,t){return Object.assign(Object.assign({},e),{showVerificationModal:t.payload.showVerificationModal})}(e,t);case je:return function(e,t){const{parentStep:i}=t.payload;return function(e,t){var i;let r=e.subSteps.findIndex((e=>e.code===t.code));r>-1?e.subSteps[r]=t:(null===(i=e.suites)||void 0===i?void 0:i.length)&&e.suites.forEach((e=>{r=e.subSteps.findIndex((e=>e.code===t.code)),r>-1&&(e.subSteps[r]=t)}))}(Gu(e,i),t.payload),e}(e,t);case Ne:return function(e,t){return Object.assign(Object.assign({},e),{verificationStatus:t.payload.status})}(e,t);case Ve:return function(e,t){return Object.assign(Object.assign({},e),{finalStep:t.payload.finalStep})}(e,t);case He:return function(e,t){return Object.assign(Object.assign({},e),{isGeneratingPDF:t.payload.isGeneratingPDF})}(e,t);default:return e}}const nl="card";var ol,sl;!function(e){e.FULL="full",e.CARD="card",e.FULLSCREEN="fullscreen"}(ol||(ol={})),function(e){e.DARK="dark",e.BRIGHT="bright"}(sl||(sl={}));const al=function(e=function(e={}){return Object.assign({input:{},verifiedSteps:[],finalStep:null,verificationStatus:Ra.DEFAULT,showVerificationModal:!1,displayMode:nl,disableDownloadPdf:!1,theme:sl.BRIGHT},e)}()){return ke(rl,e,function(...e){return t=>(i,r)=>{const n=t(i,r);let o=()=>{throw new Error(ve(15))};const s={getState:n.getState,dispatch:(e,...t)=>o(e,...t)},a=e.map((e=>e(s)));return o=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...i)=>e(t(...i))))}(...a)(n.dispatch),{...n,dispatch:o}}}(...[Se]))}();function cl(e,{mapDispatchToProps:t={},mapStateToProps:i=(()=>({})),ownProps:r={}}){return class extends(me(al)(be)){mapDispatchToProps(){return function(e,t){if("function"==typeof e)return _e(e,t);if("object"!=typeof e||null===e)throw new Error(ve(16));const i={};for(const r in e){const n=e[r];"function"==typeof n&&(i[r]=_e(n,t))}return i}(t,al.dispatch)}mapStateToProps(e){return i(al.getState(),e)}static get properties(){return r}_render(t){const i=Object.assign(Object.assign(Object.assign({},this.mapDispatchToProps()),this.mapStateToProps(t)),t);return de`${e(i)}`}_stateChanged(e){this._requestRender()}}}function ul(e){return{type:$e,payload:{errorMessage:e}}}const ll="certificate-load",dl="certificate-verify";function pl(e){return e.status===Ra.SUCCESS}function hl(e){return e.status===Ra.FAILURE}function fl(e){return function(t,i){if(null==e)return;const r=Gu(i(),e);let n=r.status;n===Ra.DEFAULT&&function(e){var t,i;let r=!0;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).some(pl)),r||e.subSteps.some(pl)}(r)&&(n=Ra.STARTING),n!==Ra.DEFAULT&&function(e){var t,i;let r=!0;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).every(pl)),r&&e.subSteps.every(pl)}(r)&&(n=Ra.SUCCESS),function(e){var t,i;let r=!1;return(null===(t=e.suites)||void 0===t?void 0:t.length)&&(r=null===(i=e.suites)||void 0===i?void 0:i.flatMap((e=>e.subSteps)).some(hl)),r||e.subSteps.some(hl)}(r)&&(n=Ra.FAILURE),t({type:Fe,payload:{parentStepCode:e,status:n}})}}class gl{constructor(){this.queue=[],this.dispatchCb=null,this.isExecuting=!1,this.intervalId=0,this.dispatchNext=this.dispatchNext.bind(this)}registerCb(e){this.dispatchCb=e}push(e){e&&this.queue.push(e)}dispatchNext(){const e=this.queue.shift();e?this.dispatchCb(e):this.intervalId&&(this.isExecuting=!1,clearInterval(this.intervalId))}execute(){!this.isExecuting&&this.queue.length&&(this.isExecuting=!0,this.intervalId=setInterval(this.dispatchNext,200))}}const bl=new gl;function ml(e){return function(t,i){const r=function(e){return function(t){e({type:je,payload:t}),e(fl(t.parentStep))}}(t);bl.dispatchCb||bl.registerCb(r),bl.push(e),bl.execute()}}function vl(){return function(e,t){const i=Lu(t());let r=[];i&&(r=lc.certificates.initializeVerificationSteps(i)),e({type:Be,payload:{resetSteps:r}})}}function yl(e){return{type:Ne,payload:{status:e}}}function wl(e){return e.disableVerify}function xl(e){return e.allowDownload}function kl(e){return e.disableDownloadPdf}function _l(e){return e.allowSocialShare}function Cl(e){return e.showMetadata}function Al(e){return e.displayMode}function Sl(e){return e.theme}function El(e){return e.locale}function Pl(e){return e.explorerAPIs}function Ll(e){return e.clickableUrls}function Il(e){return e.didResolverUrl}function Tl(e){return"string"==typeof e&&(e={label:e,description:""}),{type:Ve,payload:{finalStep:e}}}function Dl(){return function(e,t){return oc(this,void 0,void 0,(function*(){const i=t();if(wl(i))return void console.warn("Verification is disabled");e({type:Re}),e(yl(Ra.STARTING)),e(vl());const r=Lu(i);if(r){lc.events.dispatch(dl,r);const t=yield r.verify((t=>{e(ml(t))}));e(Tl(t.message)),e(yl(t.status))}}))}}function Ml(e){return{type:Ue,payload:{showVerificationModal:e}}}function Rl(e){return function(t,i){return oc(this,void 0,void 0,(function*(){const r=i(),n={locale:El(r),explorerAPIs:Pl(r),didResolverUrl:Il(r)},{certificateDefinition:o,errorMessage:s}=yield lc.certificates.parse(e,n);t(ul(s)),t({type:Te,payload:{certificateDefinition:o}}),lc.events.dispatch(ll,o),null!=o&&(yield t((function(e,t){return oc(this,void 0,void 0,(function*(){(function(e){return e.disableAutoVerify})(t())||(e({type:Le}),e(Ml(!0))),yield e(Dl())}))})))}))}}function Ol(e){return function(t){return oc(this,void 0,void 0,(function*(){const i=lc.certificates.isPathToCertificateValidURI(e);var r;if(t((r=i,function(e){e({type:Oe,payload:{isValid:r}}),e(ul(r?null:"errors.invalidUrl"))})),!i)return null;t({type:Me,payload:{url:e}});const n=yield lc.certificates.retrieve(e);n.certificateDefinition?yield t(Rl(n.certificateDefinition)):t(ul(n.errorMessage))}))}}const Bl=/(-\w)/g,jl=e=>e[1].toUpperCase();const Fl={src:String,"disable-auto-verify":Boolean,"disable-verify":Boolean,"allow-download":Boolean,"disable-download-pdf":Boolean,"allow-social-share":Boolean,"display-mode":String,"show-metadata":Boolean,"clickable-urls":Boolean,theme:sl,locale:String,explorerAPIs:{},"did-resolver-url":String},Nl=Object.keys(Fl).map((function(e){return e.replace(Bl,jl)})).reduce(((e,t)=>(e[t]=Fl[t],e)),{});function Vl(e){let t;const i=Object.keys(Au).map((e=>e.toLowerCase()));if(t=i.includes(e.toLowerCase()),!t){const r=e.substr(0,2).toLowerCase(),n=i.map((e=>e.split("-")[0])).indexOf(r);t=n>-1,t&&(e=i[n])}return t||(e=_u),function(e){const t=e.split("-");return t.length>1?`${t[0].toLowerCase()}-${t[1].toUpperCase()}`:t[0].toLowerCase()}(e)}function zl(e){"auto"!==e&&e||(e=navigator.language||navigator.userLanguage||navigator.browserLanguage||_u),Cu.locale=Vl(e)}var $l=de`<style>.buv-c-input{font-size:15px;color:#031532;border-radius:2px 0 0 2px;padding:12px 15px;background-color:#f3f4f5;border:solid 1px rgba(3,21,50,.13);box-sizing:border-box;width:100%}.buv-c-input.is-invalid{border:2px solid red}.buv-c-input::-moz-placeholder{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:rgba(3,21,50,.3);letter-spacing:-0.25px}.buv-c-input::-webkit-input-placeholder{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:rgba(3,21,50,.3);letter-spacing:-0.25px}.buv-c-input:-moz-placeholder{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:rgba(3,21,50,.3);letter-spacing:-0.25px}.buv-c-input:-ms-input-placeholder{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:rgba(3,21,50,.3);letter-spacing:-0.25px}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;function Ul(e){return void 0===e.input.isValid||e.input.isValid}const Hl=cl((({onInput:e=(()=>{}),isValid:t=!0}={})=>{const i="buv-c-input "+(t?"":"is-invalid");return de`
122
+ ${$l}
123
123
  <label
124
124
  for='certificate-json-url'
125
- class='buv-u-visually-hidden'>${Au("text.urlInput")}</label>
125
+ class='buv-u-visually-hidden'>${Eu("text.urlInput")}</label>
126
126
  <input
127
127
  type='text'
128
128
  id='certificate-json-url'
129
- placeholder='${Au("text.urlInputPlaceholder")}'
129
+ placeholder='${Eu("text.urlInputPlaceholder")}'
130
130
  class$='${i}'
131
131
  on-input='${t=>{e(t.target.value)}}'
132
132
  />
133
- `}),{mapDispatchToProps:{onInput:Ml},mapStateToProps:e=>({isValid:Vl(e)})});window.customElements.define("buv-input",$l);var Ul=de`<style>.buv-c-verify-button{background-color:#2ab27b;border-radius:0 2px 2px 0;color:#fff;cursor:pointer;display:block;font-size:15px;font-weight:400;padding:12px 38px;border:1px solid #2ab27b;width:100%}.buv-c-verify-button__label{cursor:pointer}.buv-c-verify-button--hollow{background:#fff;color:#2ab27b;font-weight:100;text-transform:uppercase;padding:12px 30px;font-size:13px}.buv-c-verify-button--link{background:none;color:#031532;border:0;text-decoration:underline;padding:0;margin-top:5px;font-size:13px}.buv-c-verify-button.is-disabled{pointer-events:none}</style>`;const Hl={onClick:function(){return function(e){e({type:"START_VERIFICATION_PROCESS"}),e(Ll(!0)),e(Tl())}}},ql=al((function({isHollow:e=!1,isDisabled:t=!1,onClick:i=(()=>{}),type:r=""}={}){const n=["buv-c-verify-button",e?"buv-c-verify-button--hollow":"",t?"is-disabled":"","link"===r?"buv-c-verify-button--link":""].join(" ");return de`
134
- ${Ul}
133
+ `}),{mapDispatchToProps:{onInput:Ol},mapStateToProps:e=>({isValid:Ul(e)})});window.customElements.define("buv-input",Hl);var ql=de`<style>.buv-c-verify-button{background-color:#2ab27b;border-radius:0 2px 2px 0;color:#fff;cursor:pointer;display:block;font-size:15px;font-weight:400;padding:12px 38px;border:1px solid #2ab27b;width:100%}.buv-c-verify-button__label{cursor:pointer}.buv-c-verify-button--hollow{background:#fff;color:#2ab27b;font-weight:100;text-transform:uppercase;padding:12px 30px;font-size:13px}.buv-c-verify-button--link{background:none;color:#031532;border:0;text-decoration:underline;padding:0;margin-top:5px;font-size:13px}.buv-c-verify-button.is-disabled{pointer-events:none}</style>`;const Kl={onClick:function(){return function(e){e({type:"START_VERIFICATION_PROCESS"}),e(Ml(!0)),e(Dl())}}},Jl=cl((function({isHollow:e=!1,isDisabled:t=!1,onClick:i=(()=>{}),type:r=""}={}){const n=["buv-c-verify-button",e?"buv-c-verify-button--hollow":"",t?"is-disabled":"","link"===r?"buv-c-verify-button--link":""].join(" ");return de`
134
+ ${ql}
135
135
  <button class$='${n}' on-click='${i}' disabled?='${t}'>
136
- <label class='buv-c-verify-button__label'><slot>${Au("text.verify")}</slot></label>
136
+ <label class='buv-c-verify-button__label'><slot>${Eu("text.verify")}</slot></label>
137
137
  </button>
138
- `}),{mapDispatchToProps:Hl,mapStateToProps:e=>({isDisabled:vl(e)||!Su(e)}),ownProps:{isHollow:Boolean,type:String}});window.customElements.define("buv-verify-button",ql);var Kl=de`<style>.buv-c-certificate-input{display:flex;width:100%;padding:40px 30px;background-color:rgba(255,255,255,.1);border:1px solid rgba(0,0,0,.1);box-sizing:border-box}@media only screen and (max-width: 600px){.buv-c-certificate-input{flex-direction:column;grid-row-gap:10px;height:162px;padding:30px;justify-content:space-between}}.buv-c-certificate-input__input{width:100%}</style>`;const Jl=al((({showInput:e=!0})=>e?de`
139
- ${Kl}
138
+ `}),{mapDispatchToProps:Kl,mapStateToProps:e=>({isDisabled:wl(e)||!Lu(e)}),ownProps:{isHollow:Boolean,type:String}});window.customElements.define("buv-verify-button",Jl);var Gl=de`<style>.buv-c-certificate-input{display:flex;width:100%;padding:40px 30px;background-color:rgba(255,255,255,.1);border:1px solid rgba(0,0,0,.1);box-sizing:border-box}@media only screen and (max-width: 600px){.buv-c-certificate-input{flex-direction:column;grid-row-gap:10px;height:162px;padding:30px;justify-content:space-between}}.buv-c-certificate-input__input{width:100%}</style>`;const Yl=cl((({showInput:e=!0})=>e?de`
139
+ ${Gl}
140
140
  <section class="buv-c-certificate-input buv-qa-certificate-input">
141
141
  <buv-input class="buv-c-certificate-input__input"></buv-input><buv-verify-button></buv-verify-button>
142
142
  </section>
143
- `:null),{mapStateToProps:e=>({showInput:!Su(e)})});window.customElements.define("buv-certificate-input",Jl);var Gl=de`<style>.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-c-download-link{text-decoration:none;color:currentColor}.buv-c-download-link--icon{background-image:url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20id%3D%22Capa%5f1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%09%20width%3D%22433.5px%22%20height%3D%22433.5px%22%20fill%3D%22%236e7e8e%22%20viewBox%3D%220%200%20433.5%20433.5%22%20style%3D%22enable-background%3Anew%200%200%20433.5%20433.5%3B%22%20xml%3Aspace%3D%22preserve%22%0A%09%3E%3Cg%3E%3Cg%20id%3D%22file-download%22%3E%3Cpath%20d%3D%22M395.25%2C153h-102V0h-153v153h-102l178.5%2C178.5L395.25%2C153z%20M38.25%2C382.5v51h357v-51H38.25z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");width:17px;height:17px;background-size:17px}.buv-c-download-link.is-disabled{pointer-events:none}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const Yl=al((function({downloadLink:e,display:t=""}){if(!e)return null;const i="plaintext"===t,r=Au("text.downloadLink"),n=["buv-c-download-link","buv-o-button-link",i?"":"buv-c-download-link--icon"].join(" ");return de`
144
- ${Gl}
143
+ `:null),{mapStateToProps:e=>({showInput:!Lu(e)})});window.customElements.define("buv-certificate-input",Yl);var Wl=de`<style>.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-c-download-link{text-decoration:none;color:currentColor}.buv-c-download-link--icon{background-image:url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20id%3D%22Capa%5f1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%09%20width%3D%22433.5px%22%20height%3D%22433.5px%22%20fill%3D%22%236e7e8e%22%20viewBox%3D%220%200%20433.5%20433.5%22%20style%3D%22enable-background%3Anew%200%200%20433.5%20433.5%3B%22%20xml%3Aspace%3D%22preserve%22%0A%09%3E%3Cg%3E%3Cg%20id%3D%22file-download%22%3E%3Cpath%20d%3D%22M395.25%2C153h-102V0h-153v153h-102l178.5%2C178.5L395.25%2C153z%20M38.25%2C382.5v51h357v-51H38.25z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");width:17px;height:17px;background-size:17px}.buv-c-download-link.is-disabled{pointer-events:none}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const Zl=cl((function({downloadLink:e,display:t=""}){if(!e)return null;const i="plaintext"===t,r=Eu("text.downloadLink"),n=["buv-c-download-link","buv-o-button-link",i?"":"buv-c-download-link--icon"].join(" ");return de`
144
+ ${Wl}
145
145
  <a class$='${n}' href='${e}' title$='${r}'>
146
146
  <span class$='${i?"buv-o-button-link__label":"buv-u-visually-hidden"}'>${r}</span>
147
- </a>`}),{mapStateToProps:e=>({downloadLink:Fu(e)}),ownProps:{display:String}});window.customElements.define("buv-download-link",Yl);var Wl=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-c-download-pdf-link{padding:0;color:#2ab27b}.buv-c-download-pdf-link__icon{background-image:url('data:image/svg+xml,%3Csvg data-bx-workspace="master" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com" version="1.1" fill="%236e7e8e" id="Capa_1" x="0px" y="0px" width="550.801px" height="550.801px" viewBox="0 0 550.801 550.801"%3E%3Cg style="" transform="matrix(0.855886, 0, 0, 0.855886, 39.688637, 39.689045)"%3E%3Cpath d="M160.381,282.225c0-14.832-10.299-23.684-28.474-23.684c-7.414,0-12.437,0.715-15.071,1.432V307.6 c3.114,0.707,6.942,0.949,12.192,0.949C148.419,308.549,160.381,298.74,160.381,282.225z"%3E%3C/path%3E%3Cpath d="M272.875,259.019c-8.145,0-13.397,0.717-16.519,1.435v105.523c3.116,0.729,8.142,0.729,12.69,0.729 c33.017,0.231,54.554-17.946,54.554-56.474C323.842,276.719,304.215,259.019,272.875,259.019z"%3E%3C/path%3E%3Cpath d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M362.359,309.023c0,30.876-11.243,52.165-26.82,65.333 c-16.971,14.117-42.82,20.814-74.396,20.814c-18.9,0-32.297-1.197-41.401-2.389V234.365c13.399-2.149,30.878-3.346,49.304-3.346 c30.612,0,50.478,5.508,66.039,17.226C351.828,260.69,362.359,280.547,362.359,309.023z M80.7,393.499V234.365 c11.241-1.904,27.042-3.346,49.296-3.346c22.491,0,38.527,4.308,49.291,12.928c10.292,8.131,17.215,21.534,17.215,37.328 c0,15.799-5.25,29.198-14.829,38.285c-12.442,11.728-30.865,16.996-52.407,16.996c-4.778,0-9.1-0.243-12.435-0.723v57.67H80.7 V393.499z M453.601,523.353H97.2V419.302h356.4V523.353z M484.898,262.127h-61.989v36.851h57.913v29.674h-57.913v64.848h-36.593 V232.216h98.582V262.127z"%3E%3C/path%3E%3C/g%3E%3C/svg%3E');width:25px;height:25px;background-size:25px}.buv-c-download-pdf-link__label--loading{display:none}.buv-c-download-pdf-link--loading{pointer-events:none}.buv-c-download-pdf-link--loading.buv-c-download-pdf-link__icon{background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin:auto;background:transparent;display:block;" width="25px" height="25px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"%3E%3Ccircle cx="50" cy="50" fill="none" stroke="%23999999" stroke-width="7" r="35" stroke-dasharray="164.93361431346415 56.97787143782138"%3E%3CanimateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"%3E%3C/animateTransform%3E%3C/circle%3E%3C/svg%3E')}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label{color:#999}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label--static{display:none}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label--loading{display:block}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;function Zl(e){return{type:He,payload:{isGeneratingPDF:e}}}const Xl={onClick:function(){return function(e,t){return rc(this,void 0,void 0,(function*(){const i=t(),{default:r}=yield import("./downloadPDF--IVgfc2I.js").then((function(e){return e.d})),n=function(e){var t;const i=Su(e);return i?"displayHtml"in i.certificateJson?Ke.TEXT_HTML:null===(t=i.display)||void 0===t?void 0:t.contentMediaType:null}(i),o=function(e){var t;const i=Su(e);return i?"displayHtml"in i.certificateJson?"":null===(t=i.display)||void 0===t?void 0:t.contentEncoding:""}(i),a=function(e){var t,i;const r=Su(e);return r?"displayHtml"in r.certificateJson?r.certificateJson.displayHtml:null!==(i=null===(t=r.display)||void 0===t?void 0:t.content)&&void 0!==i?i:"":""}(i),s=Lu(i),c=Du(i),u=Tu(i),l=Mu(i),d=Ru(i),p=ju(i),h=Yu(i),f=Wu(i),g=Zu(i);e(Zl(!0)),yield r({contentType:n,contentEncoding:o,content:a,recipientName:s,certificateTitle:c,issueDate:u,issuerName:l,issuerLogo:d,recordLink:p,issuerPublicKey:h,issuerProfileUrl:f,issuerProfileDomain:g}),e(Zl(!1))}))}}},Ql=al((function({display:e="plaintext",isGeneratingPDF:t=!1,onClick:i=(()=>{}),isVisible:r=!0}={display:"plaintext",isGeneratingPDF:!1,onClick:()=>{},isVisible:!0}){if(!r)return null;const n="plaintext"===e,o=Au("text.downloadPDFLink"),a=Au("text.downloadPDFLinkIsLoading"),s=["buv-o-button-link","buv-c-download-pdf-link","buv-js-download-pdf-link",n?"":"buv-c-download-pdf-link__icon",t?"buv-c-download-pdf-link--loading":""].join(" ");return de`
148
- ${Wl}
147
+ </a>`}),{mapStateToProps:e=>({downloadLink:Vu(e)}),ownProps:{display:String}});window.customElements.define("buv-download-link",Zl);var Xl=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-c-download-pdf-link{padding:0;color:#2ab27b}.buv-c-download-pdf-link__icon{background-image:url('data:image/svg+xml,%3Csvg data-bx-workspace="master" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com" version="1.1" fill="%236e7e8e" id="Capa_1" x="0px" y="0px" width="550.801px" height="550.801px" viewBox="0 0 550.801 550.801"%3E%3Cg style="" transform="matrix(0.855886, 0, 0, 0.855886, 39.688637, 39.689045)"%3E%3Cpath d="M160.381,282.225c0-14.832-10.299-23.684-28.474-23.684c-7.414,0-12.437,0.715-15.071,1.432V307.6 c3.114,0.707,6.942,0.949,12.192,0.949C148.419,308.549,160.381,298.74,160.381,282.225z"%3E%3C/path%3E%3Cpath d="M272.875,259.019c-8.145,0-13.397,0.717-16.519,1.435v105.523c3.116,0.729,8.142,0.729,12.69,0.729 c33.017,0.231,54.554-17.946,54.554-56.474C323.842,276.719,304.215,259.019,272.875,259.019z"%3E%3C/path%3E%3Cpath d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M362.359,309.023c0,30.876-11.243,52.165-26.82,65.333 c-16.971,14.117-42.82,20.814-74.396,20.814c-18.9,0-32.297-1.197-41.401-2.389V234.365c13.399-2.149,30.878-3.346,49.304-3.346 c30.612,0,50.478,5.508,66.039,17.226C351.828,260.69,362.359,280.547,362.359,309.023z M80.7,393.499V234.365 c11.241-1.904,27.042-3.346,49.296-3.346c22.491,0,38.527,4.308,49.291,12.928c10.292,8.131,17.215,21.534,17.215,37.328 c0,15.799-5.25,29.198-14.829,38.285c-12.442,11.728-30.865,16.996-52.407,16.996c-4.778,0-9.1-0.243-12.435-0.723v57.67H80.7 V393.499z M453.601,523.353H97.2V419.302h356.4V523.353z M484.898,262.127h-61.989v36.851h57.913v29.674h-57.913v64.848h-36.593 V232.216h98.582V262.127z"%3E%3C/path%3E%3C/g%3E%3C/svg%3E');width:25px;height:25px;background-size:25px}.buv-c-download-pdf-link__label--loading{display:none}.buv-c-download-pdf-link--loading{pointer-events:none}.buv-c-download-pdf-link--loading.buv-c-download-pdf-link__icon{background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin:auto;background:transparent;display:block;" width="25px" height="25px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"%3E%3Ccircle cx="50" cy="50" fill="none" stroke="%23999999" stroke-width="7" r="35" stroke-dasharray="164.93361431346415 56.97787143782138"%3E%3CanimateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"%3E%3C/animateTransform%3E%3C/circle%3E%3C/svg%3E')}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label{color:#999}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label--static{display:none}.buv-c-download-pdf-link--loading .buv-c-download-pdf-link__label--loading{display:block}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;function Ql(e){return{type:He,payload:{isGeneratingPDF:e}}}const ed={onClick:function(){return function(e,t){return oc(this,void 0,void 0,(function*(){const i=t(),{default:r}=yield import("./downloadPDF-nmBhJVDh.js").then((function(e){return e.d})),n=function(e){var t;const i=Lu(e);return i?"displayHtml"in i.certificateJson?Ke.TEXT_HTML:null===(t=i.display)||void 0===t?void 0:t.contentMediaType:null}(i),o=function(e){var t;const i=Lu(e);return i?"displayHtml"in i.certificateJson?"":null===(t=i.display)||void 0===t?void 0:t.contentEncoding:""}(i),s=function(e){var t,i;const r=Lu(e);return r?"displayHtml"in r.certificateJson?r.certificateJson.displayHtml:null!==(i=null===(t=r.display)||void 0===t?void 0:t.content)&&void 0!==i?i:"":""}(i),a=Mu(i),c=Ru(i),u=Du(i),l=Ou(i),d=Bu(i),p=Nu(i),h=Zu(i),f=Xu(i),g=Qu(i);e(Ql(!0)),yield r({contentType:n,contentEncoding:o,content:s,recipientName:a,certificateTitle:c,issueDate:u,issuerName:l,issuerLogo:d,recordLink:p,issuerPublicKey:h,issuerProfileUrl:f,issuerProfileDomain:g}),e(Ql(!1))}))}}},td=cl((function({display:e="plaintext",isGeneratingPDF:t=!1,onClick:i=(()=>{}),isVisible:r=!0}={display:"plaintext",isGeneratingPDF:!1,onClick:()=>{},isVisible:!0}){if(!r)return null;const n="plaintext"===e,o=Eu("text.downloadPDFLink"),s=Eu("text.downloadPDFLinkIsLoading"),a=["buv-o-button-link","buv-c-download-pdf-link","buv-js-download-pdf-link",n?"":"buv-c-download-pdf-link__icon",t?"buv-c-download-pdf-link--loading":""].join(" ");return de`
148
+ ${Xl}
149
149
  <button onclick='${i}'
150
- class$='${s}'
150
+ class$='${a}'
151
151
  title$='${o}'>
152
152
  <label class$='buv-c-download-pdf-link__label ${n?"buv-o-button-link__label":"buv-u-visually-hidden"}'>
153
153
  <span class='buv-c-download-pdf-link__label--static'>${o}</span>
154
- <span class='buv-c-download-pdf-link__label--loading'>${a}</span>
154
+ <span class='buv-c-download-pdf-link__label--loading'>${s}</span>
155
155
  </label>
156
- </button>`}),{mapDispatchToProps:Xl,mapStateToProps:e=>({isVisible:!!Su(e),isGeneratingPDF:el(e)}),ownProps:{display:String}});window.customElements.define("buv-download-pdf-link",Ql);var ed=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-metadata-container{box-sizing:border-box;padding:47px;height:100%;width:400px;position:fixed;top:0;right:-400px;display:flex;flex-direction:column}.buv-c-metadata-container__close-button{top:52px;right:47px}.buv-c-metadata-container__title{border-bottom:solid 1px #e8e9eb;padding-bottom:38px;font-weight:300;margin:0 0 38px}.buv-c-metadata-link{padding:0}.buv-c-metadata-link--icon{background-image:url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%0A%09%20width%3D%22512px%22%20fill%3D%22%236e7e8e%22%20height%3D%22512px%22%20viewBox%3D%220%200%20512%20512%22%20enable-background%3D%22new%200%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%3E%0A%0A%3Cpath%20id%3D%22info-2-icon%22%20d%3D%22M255.998%2C90.001c91.74%2C0%2C166.002%2C74.241%2C166.002%2C165.998c0%2C91.741-74.245%2C166-166.002%2C166%0A%0A%09c-91.74%2C0-165.998-74.243-165.998-166C90%2C164.259%2C164.243%2C90.001%2C255.998%2C90.001%20M255.998%2C50.001%0A%0A%09C142.229%2C50.001%2C50%2C142.229%2C50%2C255.999c0%2C113.771%2C92.229%2C206%2C205.998%2C206c113.771%2C0%2C206.002-92.229%2C206.002-206%0A%0A%09C462%2C142.229%2C369.77%2C50.001%2C255.998%2C50.001L255.998%2C50.001z%20M285.822%2C367.567h-57.646V230.6h57.646V367.567z%20M257%2C202.268%0A%09c-17.522%2C0-31.729-14.206-31.729-31.73c0-17.522%2C14.206-31.729%2C31.729-31.729c17.524%2C0%2C31.728%2C14.206%2C31.728%2C31.729%0A%09C288.728%2C188.062%2C274.524%2C202.268%2C257%2C202.268z%22%2F%3E%3C%2Fsvg%3E");width:22px;height:22px;background-size:22px}.buv-c-metadata-list{margin:0;overflow:auto;flex:1}.buv-c-metadata-list__title{color:#999;line-height:15px}.buv-c-metadata-list__detail{margin:0 0 20px}.buv-c-metadata-list__detail-text{white-space:pre-wrap;word-wrap:break-word;font:inherit;margin:0}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}.buv-u-slide-from-right{opacity:0;-webkit-transition:right ease .5s,opacity .2s;-moz-transition:right ease .5s,opacity .2s;-ms-transition:right ease .5s,opacity .2s;-o-transition:right ease .5s,opacity .2s;transition:right ease .5s,opacity .2s}.buv-u-slide-from-right.is-active{right:0;opacity:1}</style>`,td=de`<style>.buv-c-close-button{display:inline-block;overflow:hidden;cursor:pointer;border:0;width:20px;height:20px;position:absolute;background-color:rgba(0,0,0,0)}.buv-c-close-button::before,.buv-c-close-button::after{content:"";position:absolute;height:2px;width:100%;top:50%;left:0;margin-top:-1px;background:#000}.buv-c-close-button::before{transform:rotate(45deg)}.buv-c-close-button::after{transform:rotate(-45deg)}.buv-c-close-button--big{transform:scale(3)}.buv-c-close-button--hairline::before,.buv-c-close-button--hairline::after{height:1px}.buv-c-close-button--thick::before,.buv-c-close-button--thick::after{height:4px;margin-top:-2px}.buv-c-close-button--black::before,.buv-c-close-button--black::after{height:8px;margin-top:-4px}.buv-c-close-button--heavy::before,.buv-c-close-button--heavy::after{height:12px;margin-top:-6px}.buv-c-close-button--pointy::before,.buv-c-close-button--pointy::after{width:200%;left:-50%}.buv-c-close-button--rounded::before,.buv-c-close-button--rounded::after{border-radius:5px}.buv-c-close-button--blades::before,.buv-c-close-button--blades::after{border-radius:5px 0}.buv-c-close-button--warp::before,.buv-c-close-button--warp::after{border-radius:120% 0}.buv-c-close-button--fat::before,.buv-c-close-button--fat::after{border-radius:100%}.buv-c-close-button--position{position:relative}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const id=({onClick:e=(()=>{}),className:t=""}={})=>de`
157
- ${td}
156
+ </button>`}),{mapDispatchToProps:ed,mapStateToProps:e=>({isVisible:!!Lu(e),isGeneratingPDF:il(e)}),ownProps:{display:String}});window.customElements.define("buv-download-pdf-link",td);var id=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-metadata-container{box-sizing:border-box;padding:47px;height:100%;width:400px;position:fixed;top:0;right:-400px;display:flex;flex-direction:column}.buv-c-metadata-container__close-button{top:52px;right:47px}.buv-c-metadata-container__title{border-bottom:solid 1px #e8e9eb;padding-bottom:38px;font-weight:300;margin:0 0 38px}.buv-c-metadata-link{padding:0}.buv-c-metadata-link--icon{background-image:url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%0A%09%20width%3D%22512px%22%20fill%3D%22%236e7e8e%22%20height%3D%22512px%22%20viewBox%3D%220%200%20512%20512%22%20enable-background%3D%22new%200%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%3E%0A%0A%3Cpath%20id%3D%22info-2-icon%22%20d%3D%22M255.998%2C90.001c91.74%2C0%2C166.002%2C74.241%2C166.002%2C165.998c0%2C91.741-74.245%2C166-166.002%2C166%0A%0A%09c-91.74%2C0-165.998-74.243-165.998-166C90%2C164.259%2C164.243%2C90.001%2C255.998%2C90.001%20M255.998%2C50.001%0A%0A%09C142.229%2C50.001%2C50%2C142.229%2C50%2C255.999c0%2C113.771%2C92.229%2C206%2C205.998%2C206c113.771%2C0%2C206.002-92.229%2C206.002-206%0A%0A%09C462%2C142.229%2C369.77%2C50.001%2C255.998%2C50.001L255.998%2C50.001z%20M285.822%2C367.567h-57.646V230.6h57.646V367.567z%20M257%2C202.268%0A%09c-17.522%2C0-31.729-14.206-31.729-31.73c0-17.522%2C14.206-31.729%2C31.729-31.729c17.524%2C0%2C31.728%2C14.206%2C31.728%2C31.729%0A%09C288.728%2C188.062%2C274.524%2C202.268%2C257%2C202.268z%22%2F%3E%3C%2Fsvg%3E");width:22px;height:22px;background-size:22px}.buv-c-metadata-list{margin:0;overflow:auto;flex:1}.buv-c-metadata-list__title{color:#999;line-height:15px}.buv-c-metadata-list__detail{margin:0 0 20px}.buv-c-metadata-list__detail-text{white-space:pre-wrap;word-wrap:break-word;font:inherit;margin:0}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}.buv-u-slide-from-right{opacity:0;-webkit-transition:right ease .5s,opacity .2s;-moz-transition:right ease .5s,opacity .2s;-ms-transition:right ease .5s,opacity .2s;-o-transition:right ease .5s,opacity .2s;transition:right ease .5s,opacity .2s}.buv-u-slide-from-right.is-active{right:0;opacity:1}</style>`,rd=de`<style>.buv-c-close-button{display:inline-block;overflow:hidden;cursor:pointer;border:0;width:20px;height:20px;position:absolute;background-color:rgba(0,0,0,0)}.buv-c-close-button::before,.buv-c-close-button::after{content:"";position:absolute;height:2px;width:100%;top:50%;left:0;margin-top:-1px;background:#000}.buv-c-close-button::before{transform:rotate(45deg)}.buv-c-close-button::after{transform:rotate(-45deg)}.buv-c-close-button--big{transform:scale(3)}.buv-c-close-button--hairline::before,.buv-c-close-button--hairline::after{height:1px}.buv-c-close-button--thick::before,.buv-c-close-button--thick::after{height:4px;margin-top:-2px}.buv-c-close-button--black::before,.buv-c-close-button--black::after{height:8px;margin-top:-4px}.buv-c-close-button--heavy::before,.buv-c-close-button--heavy::after{height:12px;margin-top:-6px}.buv-c-close-button--pointy::before,.buv-c-close-button--pointy::after{width:200%;left:-50%}.buv-c-close-button--rounded::before,.buv-c-close-button--rounded::after{border-radius:5px}.buv-c-close-button--blades::before,.buv-c-close-button--blades::after{border-radius:5px 0}.buv-c-close-button--warp::before,.buv-c-close-button--warp::after{border-radius:120% 0}.buv-c-close-button--fat::before,.buv-c-close-button--fat::after{border-radius:100%}.buv-c-close-button--position{position:relative}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const nd=({onClick:e=(()=>{}),className:t=""}={})=>de`
157
+ ${rd}
158
158
  <button onclick='${e}' class$='${`buv-c-close-button buv-c-close-button--hairline ${t||"buv-c-close-button--position"} `}'>
159
- <label class='buv-u-visually-hidden'>${Au("text.closeButton")}</label>
159
+ <label class='buv-u-visually-hidden'>${Eu("text.closeButton")}</label>
160
160
  </button>
161
- `;window.customElements.define("buv-metadata-raw",class extends be{constructor(){super(),this._isOpen=!1,this.toggleOpen=this.toggleOpen.bind(this)}static get properties(){return{_isOpen:Boolean,metadataList:Object,display:String}}toggleOpen(){this._isOpen=!this._isOpen}_render({metadataList:e,display:t}){var i;const r=["buv-o-overlay","buv-c-metadata-container","buv-u-slide-from-right",this._isOpen?"is-active":""].join(" ");let n="";if(e){const t=function(e){var t;return null===(t=e.schema)||void 0===t?void 0:t.properties.certificate.properties}(e);n=null===(i=e.displayOrder)||void 0===i?void 0:i.map((i=>{const r=i.split(".")[1],n=function(e,t){const i=t.split(".");return function e(t,i,r){const n=r.indexOf(i)+1,o=r[n];return o?Object.prototype.hasOwnProperty.call(t[i],o)?e(t[i],o,r):void 0:t[i]}(e,i[0],i)}(e,i);return function(e,t){let{title:i,format:r,type:n}=e;Array.isArray(n)&&(n=n[0]);const o=de`<dt class='buv-c-metadata-list__title'>${i}</dt>`;let a=!1,s="",c=de`${t}`;if("string"===n)switch(r){case"uri":a=!0,s=t;break;case"email":s=`mailto:${t}`;break;case"phoneNumber":s=`tel:${t}`}s&&(c=de`<a href="${s}" target="${a?"_blank":""}" >${t}</a>`);const u=de`<dd class='buv-c-metadata-list__detail'>
162
- <pre class='buv-c-metadata-list__detail-text'>${c}</pre></dd>`;return de`${o}${u}`}(t[r],n)}))}const o="plaintext"===t,a=Au(e?"text.metadataButton":"errors.noMetadata"),s=["buv-c-metadata-link","buv-o-button-link",o?"":"buv-c-metadata-link--icon"].join(" ");return de`
163
- ${ed}
161
+ `;window.customElements.define("buv-metadata-raw",class extends be{constructor(){super(),this._isOpen=!1,this.toggleOpen=this.toggleOpen.bind(this)}static get properties(){return{_isOpen:Boolean,metadataList:Object,display:String}}toggleOpen(){this._isOpen=!this._isOpen}_render({metadataList:e,display:t}){var i;const r=["buv-o-overlay","buv-c-metadata-container","buv-u-slide-from-right",this._isOpen?"is-active":""].join(" ");let n="";if(e){const t=function(e){var t;return null===(t=e.schema)||void 0===t?void 0:t.properties.certificate.properties}(e);n=null===(i=e.displayOrder)||void 0===i?void 0:i.map((i=>{const r=i.split(".")[1],n=function(e,t){const i=t.split(".");return function e(t,i,r){const n=r.indexOf(i)+1,o=r[n];return o?Object.prototype.hasOwnProperty.call(t[i],o)?e(t[i],o,r):void 0:t[i]}(e,i[0],i)}(e,i);return function(e,t){let{title:i,format:r,type:n}=e;Array.isArray(n)&&(n=n[0]);const o=de`<dt class='buv-c-metadata-list__title'>${i}</dt>`;let s=!1,a="",c=de`${t}`;if("string"===n)switch(r){case"uri":s=!0,a=t;break;case"email":a=`mailto:${t}`;break;case"phoneNumber":a=`tel:${t}`}a&&(c=de`<a href="${a}" target="${s?"_blank":""}" >${t}</a>`);const u=de`<dd class='buv-c-metadata-list__detail'>
162
+ <pre class='buv-c-metadata-list__detail-text'>${c}</pre></dd>`;return de`${o}${u}`}(t[r],n)}))}const o="plaintext"===t,s=Eu(e?"text.metadataButton":"errors.noMetadata"),a=["buv-c-metadata-link","buv-o-button-link",o?"":"buv-c-metadata-link--icon"].join(" ");return de`
163
+ ${id}
164
164
  <button onclick='${this.toggleOpen}'
165
- class$='${s}'
165
+ class$='${a}'
166
166
  disabled?='${!e}'
167
167
  aria-disabled?='${!e}'
168
- title$=${a}>
169
- <label class$='${o?"buv-o-button-link__label":"buv-u-visually-hidden"}'>${a}</label>
168
+ title$=${s}>
169
+ <label class$='${o?"buv-o-button-link__label":"buv-u-visually-hidden"}'>${s}</label>
170
170
  </button>
171
171
  <section class$='${r}'>
172
- <h1 class='buv-c-metadata-container__title'>${Au("text.metadataTitle")}</h1>
173
- ${id({onClick:this.toggleOpen,className:"buv-c-metadata-container__close-button"})}
172
+ <h1 class='buv-c-metadata-container__title'>${Eu("text.metadataTitle")}</h1>
173
+ ${nd({onClick:this.toggleOpen,className:"buv-c-metadata-container__close-button"})}
174
174
  <dl class='buv-c-metadata-list buv-o-text-12'>${n}</dl>
175
175
  </section>
176
- `}});const rd=al((function(e){return de`
176
+ `}});const od=cl((function(e){return de`
177
177
  <buv-metadata-raw
178
178
  metadataList='${e.metadataList}'
179
179
  display='${e.display}'
180
- ></buv-metadata-raw>`}),{mapStateToProps:e=>({metadataList:Nu(e)}),ownProps:{display:String}});window.customElements.define("buv-metadata",rd);var nd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-social-share-link{width:17px;height:17px;background-size:17px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' id='Capa_1' x='0px' y='0px' viewBox='0 0 473.932 473.932' style='enable-background:new 0 0 473.932 473.932;' xml:space='preserve' width='24px' height='24px'%3E%3Cg%3E%3Cg%3E%3Cpath d='M385.513,301.214c-27.438,0-51.64,13.072-67.452,33.09l-146.66-75.002 c1.92-7.161,3.3-14.56,3.3-22.347c0-8.477-1.639-16.458-3.926-24.224l146.013-74.656c15.725,20.924,40.553,34.6,68.746,34.6 c47.758,0,86.391-38.633,86.391-86.348C471.926,38.655,433.292,0,385.535,0c-47.65,0-86.326,38.655-86.326,86.326 c0,7.809,1.381,15.229,3.322,22.412L155.892,183.74c-15.833-20.039-40.079-33.154-67.56-33.154 c-47.715,0-86.326,38.676-86.326,86.369s38.612,86.348,86.326,86.348c28.236,0,53.043-13.719,68.832-34.664l145.948,74.656 c-2.287,7.744-3.947,15.79-3.947,24.289c0,47.693,38.676,86.348,86.326,86.348c47.758,0,86.391-38.655,86.391-86.348 C471.904,339.848,433.271,301.214,385.513,301.214z' fill='%236e7e8e'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A")}.buv-c-social-share-modal{position:absolute;padding:38px 34px 34px;width:120px}.buv-c-social-share-modal__close-button{top:10px;right:10px}.buv-c-social-share-modal__list{list-style-type:none;margin:0;padding:0}.buv-c-social-share-modal__list-item{margin-bottom:24px}.buv-c-social-share-modal__list-item--plaintext{margin-bottom:5px;font-size:13px}.buv-c-social-share-modal__list-item:last-child{margin-bottom:0}.buv-c-social-share-modal__link{text-decoration:none}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;window.customElements.define("buv-social-share-raw",class extends be{constructor(){super(),this.isOpen=!1,this.toggleOpen=this.toggleOpen.bind(this)}static get properties(){return{url:String,isOpen:Boolean,onShare:Function,display:String}}toggleOpen(){this.isOpen=!this.isOpen}sharingTemplate({url:e,onShare:t,display:i}){if(!this.isOpen)return;if(!e)return;const r="plaintext"===i,n=[{name:"LinkedIn",shareUrl:`https://www.linkedin.com/shareArticle?url=${e}&mini=true`},{name:"Facebook",shareUrl:`https://www.facebook.com/sharer/sharer.php?u=${e}`},{name:"Twitter",shareUrl:`https://twitter.com/intent/tweet?url=${e}`}].map((e=>de`<li class$='buv-c-social-share-modal__list-item ${r?"buv-c-social-share-modal__list-item--plaintext":""}'>
180
+ ></buv-metadata-raw>`}),{mapStateToProps:e=>({metadataList:zu(e)}),ownProps:{display:String}});window.customElements.define("buv-metadata",od);var sd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-button-link{display:block;cursor:pointer;border:0;background-color:rgba(0,0,0,0)}.buv-o-button-link__label{display:block;font-size:13px;cursor:pointer}.buv-o-button-link.is-disabled,.buv-o-button-link:disabled{cursor:help;opacity:.6}.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-social-share-link{width:17px;height:17px;background-size:17px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' id='Capa_1' x='0px' y='0px' viewBox='0 0 473.932 473.932' style='enable-background:new 0 0 473.932 473.932;' xml:space='preserve' width='24px' height='24px'%3E%3Cg%3E%3Cg%3E%3Cpath d='M385.513,301.214c-27.438,0-51.64,13.072-67.452,33.09l-146.66-75.002 c1.92-7.161,3.3-14.56,3.3-22.347c0-8.477-1.639-16.458-3.926-24.224l146.013-74.656c15.725,20.924,40.553,34.6,68.746,34.6 c47.758,0,86.391-38.633,86.391-86.348C471.926,38.655,433.292,0,385.535,0c-47.65,0-86.326,38.655-86.326,86.326 c0,7.809,1.381,15.229,3.322,22.412L155.892,183.74c-15.833-20.039-40.079-33.154-67.56-33.154 c-47.715,0-86.326,38.676-86.326,86.369s38.612,86.348,86.326,86.348c28.236,0,53.043-13.719,68.832-34.664l145.948,74.656 c-2.287,7.744-3.947,15.79-3.947,24.289c0,47.693,38.676,86.348,86.326,86.348c47.758,0,86.391-38.655,86.391-86.348 C471.904,339.848,433.271,301.214,385.513,301.214z' fill='%236e7e8e'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A")}.buv-c-social-share-modal{position:absolute;padding:38px 34px 34px;width:120px}.buv-c-social-share-modal__close-button{top:10px;right:10px}.buv-c-social-share-modal__list{list-style-type:none;margin:0;padding:0}.buv-c-social-share-modal__list-item{margin-bottom:24px}.buv-c-social-share-modal__list-item--plaintext{margin-bottom:5px;font-size:13px}.buv-c-social-share-modal__list-item:last-child{margin-bottom:0}.buv-c-social-share-modal__link{text-decoration:none}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;window.customElements.define("buv-social-share-raw",class extends be{constructor(){super(),this.isOpen=!1,this.toggleOpen=this.toggleOpen.bind(this)}static get properties(){return{url:String,isOpen:Boolean,onShare:Function,display:String}}toggleOpen(){this.isOpen=!this.isOpen}sharingTemplate({url:e,onShare:t,display:i}){if(!this.isOpen)return;if(!e)return;const r="plaintext"===i,n=[{name:"LinkedIn",shareUrl:`https://www.linkedin.com/shareArticle?url=${e}&mini=true`},{name:"Facebook",shareUrl:`https://www.facebook.com/sharer/sharer.php?u=${e}`},{name:"Twitter",shareUrl:`https://twitter.com/intent/tweet?url=${e}`}].map((e=>de`<li class$='buv-c-social-share-modal__list-item ${r?"buv-c-social-share-modal__list-item--plaintext":""}'>
181
181
  <a
182
182
  href='${e.shareUrl}'
183
183
  title='Share on ${e.name}'
@@ -185,14 +185,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
185
185
  target='_blank'
186
186
  onclick='${()=>{t(e.name)}}'
187
187
  >
188
- <span>${Au("text.share")} ${e.name}</span>
188
+ <span>${Eu("text.share")} ${e.name}</span>
189
189
  </a>
190
190
  </li>`)),o=de`<ul class='buv-c-social-share-modal__list'>
191
191
  ${n}
192
192
  </ul>`;return r?o:de`<div class='buv-c-social-share-modal buv-o-text-12 buv-o-overlay'>
193
- ${id({onClick:this.toggleOpen,className:"buv-c-social-share-modal__close-button"})}
193
+ ${nd({onClick:this.toggleOpen,className:"buv-c-social-share-modal__close-button"})}
194
194
  ${o}
195
- </div>`}sharingButton({url:e,display:t}){if("plaintext"===t)return void(this.isOpen=!0);const i=!!e,r=Au(i?"text.shareButton":"text.noShareUrl");return de`<button
195
+ </div>`}sharingButton({url:e,display:t}){if("plaintext"===t)return void(this.isOpen=!0);const i=!!e,r=Eu(i?"text.shareButton":"text.noShareUrl");return de`<button
196
196
  onclick='${this.toggleOpen}'
197
197
  class='buv-c-social-share-link buv-o-button-link'
198
198
  disabled?='${!i}'
@@ -201,16 +201,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
201
201
  >
202
202
  <label class='buv-u-visually-hidden'>${r}</label>
203
203
  </button>`}_render(e){return de`
204
- ${nd}
204
+ ${sd}
205
205
  ${this.sharingButton(e)}
206
206
  ${this.sharingTemplate(e)}
207
- `}});const od={onShare:function(e){return function(t,i){const r=Su(i());cc.events.dispatch("certificate-share",r,{socialNetwork:e}),t({type:"SHARE_SOCIAL_NETWORK"})}}},ad=al((function(e){return de`
207
+ `}});const ad={onShare:function(e){return function(t,i){const r=Lu(i());lc.events.dispatch("certificate-share",r,{socialNetwork:e}),t({type:"SHARE_SOCIAL_NETWORK"})}}},cd=cl((function(e){return de`
208
208
  <buv-social-share-raw
209
209
  url='${e.url}'
210
210
  onShare='${e.onShare}'
211
211
  display='${e.display}'
212
- ></buv-social-share-raw>`}),{mapDispatchToProps:od,mapStateToProps:e=>({url:ju(e)}),ownProps:{display:String}});window.customElements.define("buv-social-share",ad);var sd=de`<style>.buv-c-action-menu{display:flex;align-items:center;padding:0}.buv-c-action-menu-item{flex-basis:30px}</style>`;const cd=al((({allowDownload:e,disableDownloadPdf:t,allowSocialShare:i,showMetadata:r,isVisible:n})=>(e||!t||i||r||(n=!1),n?de`
213
- ${sd}
212
+ ></buv-social-share-raw>`}),{mapDispatchToProps:ad,mapStateToProps:e=>({url:Nu(e)}),ownProps:{display:String}});window.customElements.define("buv-social-share",cd);var ud=de`<style>.buv-c-action-menu{display:flex;align-items:center;padding:0}.buv-c-action-menu-item{flex-basis:30px}</style>`;const ld=cl((({allowDownload:e,disableDownloadPdf:t,allowSocialShare:i,showMetadata:r,isVisible:n})=>(e||!t||i||r||(n=!1),n?de`
213
+ ${ud}
214
214
  <menu class='buv-c-action-menu'>
215
215
  ${e?de`
216
216
  <menuitem class='buv-c-action-menu-item'>
@@ -229,10 +229,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
229
229
  <buv-social-share></buv-social-share>
230
230
  </menuitem>`:""}
231
231
  </menu>
232
- `:null)),{mapStateToProps:e=>({allowDownload:yl(e),disableDownloadPdf:wl(e),allowSocialShare:xl(e),showMetadata:kl(e),isVisible:"full"===_l(e)&&!!Su(e)})});window.customElements.define("buv-action-menu",cd);var ud=de`<style>.buv-c-verification-modal__process{display:flex;justify-content:space-around}.buv-c-verification-modal__separator{margin-bottom:30px;background-color:rgba(3,21,50,.05);height:1px;border:0 none}.buv-c-verification-modal__content{max-height:100vh;padding-bottom:43px;box-sizing:border-box;overflow:auto}@media only screen and (max-width: 600px){.buv-c-verification-modal__content{max-height:calc(100vh - 120px)}}</style>`,ld=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;let dd=!1,pd=!1;function hd(e){return function(t){return rc(this,void 0,void 0,(function*(){t({type:"UPLOAD_CERTIFICATE_DEFINITION"});const i=yield cc.certificates.read(e);t(Dl(JSON.parse(i)))}))}}const fd=al((function({onChange:e=(()=>{}),hideFileUpload:t=!1}){return t?null:de`
233
- ${ld}
232
+ `:null)),{mapStateToProps:e=>({allowDownload:xl(e),disableDownloadPdf:kl(e),allowSocialShare:_l(e),showMetadata:Cl(e),isVisible:"full"===Al(e)&&!!Lu(e)})});window.customElements.define("buv-action-menu",ld);var dd=de`<style>.buv-c-verification-modal__process{display:flex;justify-content:space-around}.buv-c-verification-modal__separator{margin-bottom:30px;background-color:rgba(3,21,50,.05);height:1px;border:0 none}.buv-c-verification-modal__content{max-height:100vh;padding-bottom:43px;box-sizing:border-box;overflow:auto}@media only screen and (max-width: 600px){.buv-c-verification-modal__content{max-height:calc(100vh - 120px)}}</style>`,pd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;let hd=!1,fd=!1;function gd(e){return function(t){return oc(this,void 0,void 0,(function*(){t({type:"UPLOAD_CERTIFICATE_DEFINITION"});const i=yield lc.certificates.read(e);t(Rl(JSON.parse(i)))}))}}const bd=cl((function({onChange:e=(()=>{}),hideFileUpload:t=!1}){return t?null:de`
233
+ ${pd}
234
234
  <label for='buv-json-file-upload' class='buv-o-link buv-o-text-12'>
235
- <span class='buv-o-link__text--underline'>${Au("text.fileUpload")}</span>
235
+ <span class='buv-o-link__text--underline'>${Eu("text.fileUpload")}</span>
236
236
  <input
237
237
  type='file'
238
238
  accept='application/json'
@@ -241,12 +241,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
241
241
  onchange='${t=>{e(t.target.files[0])}}'
242
242
  />
243
243
  </label>
244
- ${(dd?pd:(dd=!0,!("ontouchstart"in document.createElement("div"))&&(pd=!0,pd)))?de`<span class="buv-o-text-12 qa-drag-and-drop-hint">${Au("text.dragAndDropHint")}</span>`:""}`}),{mapDispatchToProps:{onChange:hd},mapStateToProps:e=>({hideFileUpload:!!Su(e)})});function gd(){return function(e){e(bl()),e((function(e){e({type:Ve}),e(ml(Ds.DEFAULT)),e(Il(null))})),e({type:De,payload:{definition:null}})}}window.customElements.define("buv-file-upload",fd);var bd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-verify-other-certificate{display:block}</style>`;const md=al((function({onClick:e=(()=>{}),isVisible:t=!1}={}){return t?de`
245
- ${bd}
244
+ ${(hd?fd:(hd=!0,!("ontouchstart"in document.createElement("div"))&&(fd=!0,fd)))?de`<span class="buv-o-text-12 qa-drag-and-drop-hint">${Eu("text.dragAndDropHint")}</span>`:""}`}),{mapDispatchToProps:{onChange:gd},mapStateToProps:e=>({hideFileUpload:!!Lu(e)})});function md(){return function(e){e(vl()),e((function(e){e({type:ze}),e(yl(Ra.DEFAULT)),e(Tl(null))})),e({type:De,payload:{definition:null}})}}window.customElements.define("buv-file-upload",bd);var vd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-verify-other-certificate{display:block}</style>`;const yd=cl((function({onClick:e=(()=>{}),isVisible:t=!1}={}){return t?de`
245
+ ${vd}
246
246
  <a onclick='${e}' class='buv-o-text-12 buv-o-link buv-c-verify-other-certificate buv-qa-verify-other-certificate'>
247
- <span class='buv-o-link__text--underline'>${Au("text.verifyOther")}</span>
247
+ <span class='buv-o-link__text--underline'>${Eu("text.verifyOther")}</span>
248
248
  </a>
249
- `:null}),{mapDispatchToProps:{onClick:gd},mapStateToProps:e=>({isVisible:!!Su(e)})});window.customElements.define("buv-verify-other-certificate",md);var vd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-footer{width:100%;height:60px;background-color:rgba(0,0,0,.1);color:#031532;fill:#111;display:flex;justify-content:space-between;align-items:center;padding:0 30px;box-sizing:border-box}.buv-c-footer a{line-height:1}.buv-c-footer--dark{color:#fff;fill:#fff}.buv-c-footer--forced{position:absolute;bottom:0;left:0;margin-top:0;justify-content:flex-end}</style>`,yd=de`<style>.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}.buv-c-logo{color:currentColor;text-decoration:none}.buv-c-logo--small{width:113px;height:16px}.buv-c-logo--medium{width:66%}.buv-c-logo__motto{font-size:12px}</style>`;function wd(){return de`
249
+ `:null}),{mapDispatchToProps:{onClick:md},mapStateToProps:e=>({isVisible:!!Lu(e)})});window.customElements.define("buv-verify-other-certificate",yd);var wd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-footer{width:100%;height:60px;background-color:rgba(0,0,0,.1);color:#031532;fill:#111;display:flex;justify-content:space-between;align-items:center;padding:0 30px;box-sizing:border-box}.buv-c-footer a{line-height:1}.buv-c-footer--dark{color:#fff;fill:#fff}.buv-c-footer--forced{position:absolute;bottom:0;left:0;margin-top:0;justify-content:flex-end}</style>`,xd=de`<style>.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}.buv-c-logo{color:currentColor;text-decoration:none}.buv-c-logo--small{width:113px;height:16px}.buv-c-logo--medium{width:66%}.buv-c-logo__motto{font-size:12px}</style>`;function kd(){return de`
250
250
  <svg class='buv-qa-logo--branded buv-c-logo--medium' version="1.1" viewBox="0 0 686 163" xmlns="http://www.w3.org/2000/svg">
251
251
  <g fill="none" fill-rule="evenodd">
252
252
  <g transform="translate(-76 -70)">
@@ -271,11 +271,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
271
271
  </g>
272
272
  </g>
273
273
  </svg>
274
- <span class='buv-u-visually-hidden'>${Au("text.motto")}</span>
275
- `}const xd=({className:e="",showMotto:t=!1}={className:"",showMotto:!1})=>de`
276
- ${yd}
277
- <a href='https://www.blockcerts.org' title='${Au("text.blockcertsHint")}' class$='buv-c-logo ${e}'>
278
- ${t?wd():de`
274
+ <span class='buv-u-visually-hidden'>${Eu("text.motto")}</span>
275
+ `}const _d=({className:e="",showMotto:t=!1}={className:"",showMotto:!1})=>de`
276
+ ${xd}
277
+ <a href='https://www.blockcerts.org' title='${Eu("text.blockcertsHint")}' class$='buv-c-logo ${e}'>
278
+ ${t?kd():de`
279
279
  <svg class='buv-qa-logo--simple buv-c-logo--small' viewBox="0 0 113 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
280
280
  <defs></defs>
281
281
  <g id="Page-1" stroke="none" stroke-width="1" fill-rule="evenodd" fill-opacity="0.37">
@@ -297,36 +297,36 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
297
297
  </g>
298
298
  </g>
299
299
  </svg>
300
- <span class='buv-u-visually-hidden'>${Au("text.brandname")}</span>
300
+ <span class='buv-u-visually-hidden'>${Eu("text.brandname")}</span>
301
301
  `}
302
- </a>`,kd=al((({forceInPlace:e=!1,interactive:t=!1,theme:i}={})=>{const r=["buv-c-footer",e?"buv-c-footer--forced":"",i===nl.DARK?"buv-c-footer--dark":""].join(" ");return de`
303
- ${vd}
302
+ </a>`,Cd=cl((({forceInPlace:e=!1,interactive:t=!1,theme:i}={})=>{const r=["buv-c-footer",e?"buv-c-footer--forced":"",i===sl.DARK?"buv-c-footer--dark":""].join(" ");return de`
303
+ ${wd}
304
304
  <footer class$='${r}'>
305
305
  ${t?de`<section>
306
306
  <buv-file-upload></buv-file-upload>
307
307
  <buv-verify-other-certificate></buv-verify-other-certificate>
308
308
  </section>`:""}
309
- ${xd()}
310
- </footer>`}),{mapStateToProps:e=>({theme:Cl(e)}),ownProps:{forceInPlace:Boolean,interactive:Boolean}});window.customElements.define("buv-footer",kd);var _d=de`<style>.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-modal{position:fixed;width:100%;height:100%;background-color:rgba(3,21,50,.7);top:0;left:0;z-index:1000}.buv-c-modal.is-hidden{display:none}.buv-c-modal__content{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);width:100vw;min-width:300px;max-width:600px;min-height:calc(600px - 50px);padding:49px 38px 98px;box-sizing:border-box}@media only screen and (max-width: 600px){.buv-c-modal__content{height:100vh;min-height:100vh;top:0;left:0;transform:none}}.buv-c-modal__close-button{top:25px;right:25px}</style>`;window.customElements.define("buv-modal",class extends be{constructor(){super(),this.isOpen=!1,this.handleClick=this.handleClick.bind(this)}static get properties(){return{isOpen:Boolean,onClose:Function}}close(){this.isOpen=!1}handleClick(){this.close(),this._props.onClose()}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i)}_render(){const e=["buv-c-modal","buv-qa-modal",this.isOpen?"":"is-hidden"].join(" ");return de`
311
- ${_d}
309
+ ${_d()}
310
+ </footer>`}),{mapStateToProps:e=>({theme:Sl(e)}),ownProps:{forceInPlace:Boolean,interactive:Boolean}});window.customElements.define("buv-footer",Cd);var Ad=de`<style>.buv-o-overlay{z-index:100;box-shadow:0 0 30px rgba(0,0,0,.25);background-color:#fff}.buv-c-modal{position:fixed;width:100%;height:100%;background-color:rgba(3,21,50,.7);top:0;left:0;z-index:1000}.buv-c-modal.is-hidden{display:none}.buv-c-modal__content{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);width:100vw;min-width:300px;max-width:600px;min-height:calc(600px - 50px);padding:49px 38px 98px;box-sizing:border-box}@media only screen and (max-width: 600px){.buv-c-modal__content{height:100vh;min-height:100vh;top:0;left:0;transform:none}}.buv-c-modal__close-button{top:25px;right:25px}</style>`;window.customElements.define("buv-modal",class extends be{constructor(){super(),this.isOpen=!1,this.handleClick=this.handleClick.bind(this)}static get properties(){return{isOpen:Boolean,onClose:Function}}close(){this.isOpen=!1}handleClick(){this.close(),this._props.onClose()}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i)}_render(){const e=["buv-c-modal","buv-qa-modal",this.isOpen?"":"is-hidden"].join(" ");return de`
311
+ ${Ad}
312
312
  <div class$='${e}' onclick='${this.handleClick}'>
313
313
  <div class='buv-c-modal__content buv-o-overlay' onclick='${e=>{e.stopPropagation()}}'>
314
- ${id({className:"buv-c-modal__close-button",onClick:this.handleClick})}
314
+ ${nd({className:"buv-c-modal__close-button",onClick:this.handleClick})}
315
315
  <slot></slot>
316
316
  </div>
317
317
  </div>
318
- `}});var Cd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.71428571}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:rgba(255,255,255,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;-webkit-transition:opacity .3s ease-out .2s;-o-transition:opacity .3s ease-out .2s;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}</style>`,Ad=de`<style>.buv-c-error-message{background:rgba(208,2,27,.1);border-radius:2px;letter-spacing:.05px;padding:10px}.buv-c-error-message--solid{background:#fff;border-radius:2px 2px 0 0;margin:0}.buv-c-error-message-title{color:#d0021b;font-weight:bold;display:block;margin-bottom:5px;font-size:15px}</style>`;function Ed(e,t=!1){if(null==e)return null;const i=["buv-c-error-message","buv-qa-error-message",t?"buv-c-error-message--solid":""].join(" ");return de`
319
- ${Ad}
318
+ `}});var Sd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.71428571}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:rgba(255,255,255,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;-webkit-transition:opacity .3s ease-out .2s;-o-transition:opacity .3s ease-out .2s;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}</style>`,Ed=de`<style>.buv-c-error-message{background:rgba(208,2,27,.1);border-radius:2px;letter-spacing:.05px;padding:10px}.buv-c-error-message--solid{background:#fff;border-radius:2px 2px 0 0;margin:0}.buv-c-error-message-title{color:#d0021b;font-weight:bold;display:block;margin-bottom:5px;font-size:15px}</style>`;function Pd(e,t=!1){if(null==e)return null;const i=["buv-c-error-message","buv-qa-error-message",t?"buv-c-error-message--solid":""].join(" ");return de`
319
+ ${Ed}
320
320
  <p class$='${i}'>
321
- <span class='buv-c-error-message-title'>${Au("errors.errorLabel")}</span>
322
- ${function(e){return function(e){return e.includes(".")&&!e.includes(" ")}(e)?Au(e):e}(e)}
323
- </p>`}function Sd({label:e,status:t,errorMessage:i,isParent:r,isFirst:n,isTestChain:o}){const a=["buv-o-text-15","buv-c-verification-step","buv-c-badge",n?"is-first":"",`is-${t}`,o?"is-test":""].join(" ");let s;return s=r?de`${Cd}<dt class$='${a}'>${e}</dt>`:de`${Cd}<dd class='buv-c-verification-step buv-c-verification-substep buv-o-text-12'>
321
+ <span class='buv-c-error-message-title'>${Eu("errors.errorLabel")}</span>
322
+ ${function(e){return function(e){return e.includes(".")&&!e.includes(" ")}(e)?Eu(e):e}(e)}
323
+ </p>`}function Ld({label:e,status:t,errorMessage:i,isParent:r,isFirst:n,isTestChain:o}){const s=["buv-o-text-15","buv-c-verification-step","buv-c-badge",n?"is-first":"",`is-${t}`,o?"is-test":""].join(" ");let a;return a=r?de`${Sd}<dt class$='${s}'>${e}</dt>`:de`${Sd}<dd class='buv-c-verification-step buv-c-verification-substep buv-o-text-12'>
324
324
  ${e}
325
- ${Ed(i)}
326
- </dd>`,de`${s}`}var Pd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.71428571}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:rgba(255,255,255,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;-webkit-transition:opacity .3s ease-out .2s;-o-transition:opacity .3s ease-out .2s;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}.buv-c-final-verification-step{white-space:nowrap;opacity:0;position:relative;font-weight:600;font-size:15px;color:#031532;margin-top:15px}.buv-c-final-verification-step.is-success{font-size:21px;color:#2ab27b;line-height:19px}.buv-c-final-verification-step--standalone{margin-top:0}.buv-c-final-verification-step.is-test,.buv-c-final-verification-step--standalone.is-success{font-size:15px;color:#031532}.buv-c-final-verification-step.is-failure{font-size:13px;font-weight:400}.buv-c-verification-step__description{margin:0}.buv-c-final-verification-step.is-visible{opacity:1}.buv-c-final-verification-step.is-visible::after{opacity:1}.buv-c-final-verification-step::after{position:absolute;content:"";height:26px;width:23px;left:-37px;top:-3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyM3B4IiB2aWV3Qm94PSIwIDAgMjAgMjMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZyBpZD0iVmVyaWZpY2F0aW9uIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1NC4wMDAwMDAsIC00NzQuMDAwMDAwKSIgZmlsbD0iIzJBQjI3QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ4LjAwMDAwMCwgNDY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDUgTDYsOS4xODE4MTgxOCBMNiwxNS40NTQ1NDU1IEM2LDIxLjI1NjgxODIgMTAuMjY2NjY2NywyNi42ODI3MjczIDE2LDI4IEMyMS43MzMzMzMzLDI2LjY4MjcyNzMgMjYsMjEuMjU2ODE4MiAyNiwxNS40NTQ1NDU1IEwyNiw5LjE4MTgxODE4IEwxNiw1IEwxNiw1IFogTTksMTcuNzUzNzE1NSBMMTAuNTI3NSwxNi4yNTY5MDAyIEwxMy4zMzMzMzMzLDE4Ljk5NTc1MzcgTDIwLjQ3MjUsMTIgTDIyLDEzLjUwNzQzMSBMMTMuMzMzMzMzMywyMiBMOSwxNy43NTM3MTU1IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}.buv-c-final-verification-step.is-test::after{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4IiBmaWxsPSIjRjVBNjIzIj48cGF0aCBkPSJNLjUgMTZoMTdMOSAxIC41IDE2em05LjUtMkg4di0yaDJ2MnptMC0zSDhWN2gydjR6Ii8+PC9zdmc+IA==")}.buv-c-final-verification-step.is-failure::after{content:"❌";font-size:17px;top:-1px;color:#d0021b;background:none}.buv-c-final-verification-step--standalone-wrapper{padding:10px;box-sizing:border-box;border-left:3px solid}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:rgba(42,178,123,.1);border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:rgba(208,2,27,.1);border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:rgba(245,166,35,.1);border-color:#f5a623}.buv-c-final-verification-step--standalone{margin:0 0 5px 30px;white-space:unset}.buv-c-final-verification-step--standalone.is-failure{margin-bottom:0}.buv-c-final-verification-step--standalone::after{left:-30px}.buv-c-verification-substep.is-final{display:none;line-height:1.35}.buv-c-verification-substep.is-final.is-visible{display:block}.buv-c-verification-substep::after{display:none}.buv-u-excluded-from-flow{position:absolute}.buv-u-full-width{width:100%}</style>`;function Id(e){return e.verificationStatus}function Td(e,t){var i;const r=null===(i=qu(e).find((e=>"proofVerification"===e.code)).suites)||void 0===i?void 0:i.find((e=>e.proofType===t));return r?r.subSteps.every((e=>e.status===Ds.SUCCESS))?Ds.SUCCESS:r.subSteps.some((e=>e.status===Ds.FAILURE))?Ds.FAILURE:"":""}function Ld(e){return e.showVerificationModal}const Dd=al((function({chain:e=[""],transactionLink:t=[""],isTestChain:i=!1,isVisible:r=!1,finalStep:n=null,hideLink:o=!1,status:a="",standalone:s=!1}={}){if(!n)return;const c=[s?"buv-c-final-verification-step--standalone-wrapper":"",`is-${a}`,i?"is-test":""].join(" "),u=["buv-c-final-verification-step","buv-qa-final-verification-step",s?"buv-c-final-verification-step--standalone":"","buv-qa-verification-step",r?"is-visible":"",i?"is-test":"",`is-${a}`,a&&!s?"buv-c-badge buv-c-badge--large":""].join(" "),l=["buv-c-verification-substep",s?"":"buv-u-excluded-from-flow","buv-u-full-width","buv-o-text-12","is-final",r?"is-visible":""].join(" "),d=n.label,p=function(e,t){return e.description?de`<p class='buv-c-verification-step__description buv-qa-final-step-description'>${e.description.replace("${chain}",t[0])}</p>`:null}(n,e),h=!o&&n.linkText?de`<a class='buv-o-link' href='${t[0]}' hidden?='${!t[0]}'>
325
+ ${Pd(i)}
326
+ </dd>`,de`${a}`}var Id=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.71428571}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:rgba(255,255,255,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;-webkit-transition:opacity .3s ease-out .2s;-o-transition:opacity .3s ease-out .2s;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}.buv-c-final-verification-step{white-space:nowrap;opacity:0;position:relative;font-weight:600;font-size:15px;color:#031532;margin-top:15px}.buv-c-final-verification-step.is-success{font-size:21px;color:#2ab27b;line-height:19px}.buv-c-final-verification-step--standalone{margin-top:0}.buv-c-final-verification-step.is-test,.buv-c-final-verification-step--standalone.is-success{font-size:15px;color:#031532}.buv-c-final-verification-step.is-failure{font-size:13px;font-weight:400}.buv-c-verification-step__description{margin:0}.buv-c-final-verification-step.is-visible{opacity:1}.buv-c-final-verification-step.is-visible::after{opacity:1}.buv-c-final-verification-step::after{position:absolute;content:"";height:26px;width:23px;left:-37px;top:-3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyM3B4IiB2aWV3Qm94PSIwIDAgMjAgMjMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZyBpZD0iVmVyaWZpY2F0aW9uIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1NC4wMDAwMDAsIC00NzQuMDAwMDAwKSIgZmlsbD0iIzJBQjI3QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ4LjAwMDAwMCwgNDY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDUgTDYsOS4xODE4MTgxOCBMNiwxNS40NTQ1NDU1IEM2LDIxLjI1NjgxODIgMTAuMjY2NjY2NywyNi42ODI3MjczIDE2LDI4IEMyMS43MzMzMzMzLDI2LjY4MjcyNzMgMjYsMjEuMjU2ODE4MiAyNiwxNS40NTQ1NDU1IEwyNiw5LjE4MTgxODE4IEwxNiw1IEwxNiw1IFogTTksMTcuNzUzNzE1NSBMMTAuNTI3NSwxNi4yNTY5MDAyIEwxMy4zMzMzMzMzLDE4Ljk5NTc1MzcgTDIwLjQ3MjUsMTIgTDIyLDEzLjUwNzQzMSBMMTMuMzMzMzMzMywyMiBMOSwxNy43NTM3MTU1IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}.buv-c-final-verification-step.is-test::after{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4IiBmaWxsPSIjRjVBNjIzIj48cGF0aCBkPSJNLjUgMTZoMTdMOSAxIC41IDE2em05LjUtMkg4di0yaDJ2MnptMC0zSDhWN2gydjR6Ii8+PC9zdmc+IA==")}.buv-c-final-verification-step.is-failure::after{content:"❌";font-size:17px;top:-1px;color:#d0021b;background:none}.buv-c-final-verification-step--standalone-wrapper{padding:10px;box-sizing:border-box;border-left:3px solid}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:rgba(42,178,123,.1);border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:rgba(208,2,27,.1);border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:rgba(245,166,35,.1);border-color:#f5a623}.buv-c-final-verification-step--standalone{margin:0 0 5px 30px;white-space:unset}.buv-c-final-verification-step--standalone.is-failure{margin-bottom:0}.buv-c-final-verification-step--standalone::after{left:-30px}.buv-c-verification-substep.is-final{display:none;line-height:1.35}.buv-c-verification-substep.is-final.is-visible{display:block}.buv-c-verification-substep::after{display:none}.buv-u-excluded-from-flow{position:absolute}.buv-u-full-width{width:100%}</style>`;function Td(e){return e.verificationStatus}function Dd(e,t){var i;const r=null===(i=Ju(e).find((e=>"proofVerification"===e.code)).suites)||void 0===i?void 0:i.find((e=>e.proofType===t));return r?r.subSteps.every((e=>e.status===Ra.SUCCESS))?Ra.SUCCESS:r.subSteps.some((e=>e.status===Ra.FAILURE))?Ra.FAILURE:"":""}function Md(e){return e.showVerificationModal}const Rd=cl((function({chain:e=[""],transactionLink:t=[""],isTestChain:i=!1,isVisible:r=!1,finalStep:n=null,hideLink:o=!1,status:s="",standalone:a=!1}={}){if(!n)return;const c=[a?"buv-c-final-verification-step--standalone-wrapper":"",`is-${s}`,i?"is-test":""].join(" "),u=["buv-c-final-verification-step","buv-qa-final-verification-step",a?"buv-c-final-verification-step--standalone":"","buv-qa-verification-step",r?"is-visible":"",i?"is-test":"",`is-${s}`,s&&!a?"buv-c-badge buv-c-badge--large":""].join(" "),l=["buv-c-verification-substep",a?"":"buv-u-excluded-from-flow","buv-u-full-width","buv-o-text-12","is-final",r?"is-visible":""].join(" "),d=n.label,p=function(e,t){return e.description?de`<p class='buv-c-verification-step__description buv-qa-final-step-description'>${e.description.replace("${chain}",t[0])}</p>`:null}(n,e),h=!o&&n.linkText?de`<a class='buv-o-link' href='${t[0]}' hidden?='${!t[0]}'>
327
327
  <span class='buv-o-link__text--underline buv-qa-transaction-link'>${n.linkText}</span>
328
328
  </a>`:"";return de`
329
- ${Pd}
329
+ ${Id}
330
330
  <div class$='${c}'>
331
331
  <dt class$='${u}'>${d}</dt>
332
332
  <dd class$='${l}'>
@@ -335,41 +335,41 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
335
335
  </dd>
336
336
  <slot></slot>
337
337
  </div>
338
- `}),{mapStateToProps:e=>({finalStep:Gu(e),chain:$u(e),transactionLink:zu(e),isTestChain:Uu(e),status:Id(e)}),ownProps:{isVisible:Boolean,hideLink:Boolean,standalone:Boolean}});window.customElements.define("buv-final-verification-step",Dd);var Md=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-c-substeps-list__link::after{content:"";width:0;height:0;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-bottom:4px solid #768087;display:inline-block;vertical-align:2px;margin:0 6px;-webkit-transition:-webkit-transform .3s ease-in;-o-transition:transform .3s ease-in;transition:transform .3s ease-in}.buv-c-substeps-list__link.is-open::after{transform:rotate(180deg)}.buv-c-substeps-list__list{max-height:0;overflow:auto;-webkit-transition:max-height .3s ease-in;-o-transition:max-height .3s ease-in;transition:max-height .3s ease-in;padding-left:50px;margin-left:-50px;padding-top:0;height:0}.buv-c-substeps-list__list.is-open{height:auto;padding-top:5px}.buv-c-substeps-list__list.is-nested{padding-left:60px}</style>`;window.customElements.define("buv-substeps-list",class extends be{constructor(){super(),this.isOpen=!1,this.wasForcedOpen=!1,this.resetOpen=!1,this.toggleOpen=this.toggleOpen.bind(this),this.totalHeight=0,this.heightWasReset=!1,this.hasNestedList=!1,this.renderEvent=null}static get properties(){return{subSteps:[],suites:[],isOpen:Boolean,hasError:Boolean,isNested:Boolean}}toggleOpen(){this.wasForcedOpen&&!this.resetOpen&&(this.isOpen=!0,this.resetOpen=!0),this.isOpen=!this.isOpen}_didRender(){if(0===this.totalHeight){const e=this.shadowRoot.querySelectorAll(".buv-js-substeps-list__list")[0],t=e?Array.from(e.childNodes):[];this.totalHeight=t.reduce(((e,t)=>t.getBoundingClientRect?e+t.getBoundingClientRect().height:e),0),this.wasForcedOpen&&!this.heightWasReset&&(e.style.maxHeight=this.totalHeight+"px",this.heightWasReset=!0)}this.isNested&&!this.renderEvent&&(this.renderEvent=new CustomEvent("child-list-rendered",{detail:{childHeight:this.totalHeight},bubbles:!0,composed:!0}),this.dispatchEvent(this.renderEvent))}getRenderableSuites(e){if(!(null==e?void 0:e.length))return[];const t=e.filter((e=>e.subSteps.length>0)).filter((e=>e.subSteps.some((e=>e.status))));return 0===t.length?[]:(this.hasNestedList=t.length>1,this.shadowRoot.addEventListener("child-list-rendered",(e=>{this.totalHeight+=e.detail.childHeight})),t)}renderSuiteTitle(e,t){return 1===t.length?null:de`<dt class='buv-o-text-12 buv-o-text-bold'>Proof type: ${e.proofType}</dt>`}renderSuites(e,t){if(e)return e.map((i=>de`
338
+ `}),{mapStateToProps:e=>({finalStep:Wu(e),chain:Hu(e),transactionLink:$u(e),isTestChain:qu(e),status:Td(e)}),ownProps:{isVisible:Boolean,hideLink:Boolean,standalone:Boolean}});window.customElements.define("buv-final-verification-step",Rd);var Od=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-c-substeps-list__link::after{content:"";width:0;height:0;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-bottom:4px solid #768087;display:inline-block;vertical-align:2px;margin:0 6px;-webkit-transition:-webkit-transform .3s ease-in;-o-transition:transform .3s ease-in;transition:transform .3s ease-in}.buv-c-substeps-list__link.is-open::after{transform:rotate(180deg)}.buv-c-substeps-list__list{max-height:0;overflow:auto;-webkit-transition:max-height .3s ease-in;-o-transition:max-height .3s ease-in;transition:max-height .3s ease-in;padding-left:50px;margin-left:-50px;padding-top:0;height:0}.buv-c-substeps-list__list.is-open{height:auto;padding-top:5px}.buv-c-substeps-list__list.is-nested{padding-left:60px}</style>`;window.customElements.define("buv-substeps-list",class extends be{constructor(){super(),this.isOpen=!1,this.wasForcedOpen=!1,this.resetOpen=!1,this.toggleOpen=this.toggleOpen.bind(this),this.totalHeight=0,this.heightWasReset=!1,this.hasNestedList=!1,this.renderEvent=null}static get properties(){return{subSteps:[],suites:[],isOpen:Boolean,hasError:Boolean,isNested:Boolean}}toggleOpen(){this.wasForcedOpen&&!this.resetOpen&&(this.isOpen=!0,this.resetOpen=!0),this.isOpen=!this.isOpen}_didRender(){if(0===this.totalHeight){const e=this.shadowRoot.querySelectorAll(".buv-js-substeps-list__list")[0],t=e?Array.from(e.childNodes):[];this.totalHeight=t.reduce(((e,t)=>t.getBoundingClientRect?e+t.getBoundingClientRect().height:e),0),this.wasForcedOpen&&!this.heightWasReset&&(e.style.maxHeight=this.totalHeight+"px",this.heightWasReset=!0)}this.isNested&&!this.renderEvent&&(this.renderEvent=new CustomEvent("child-list-rendered",{detail:{childHeight:this.totalHeight},bubbles:!0,composed:!0}),this.dispatchEvent(this.renderEvent))}getRenderableSuites(e){if(!(null==e?void 0:e.length))return[];const t=e.filter((e=>e.subSteps.length>0)).filter((e=>e.subSteps.some((e=>e.status))));return 0===t.length?[]:(this.hasNestedList=t.length>1,this.shadowRoot.addEventListener("child-list-rendered",(e=>{this.totalHeight+=e.detail.childHeight})),t)}renderSuiteTitle(e,t){return 1===t.length?null:de`<dt class='buv-o-text-12 buv-o-text-bold'>Proof type: ${e.proofType}</dt>`}renderSuites(e,t){if(e)return e.map((i=>de`
339
339
  ${this.renderSuiteTitle(i,e)}
340
- <buv-substeps-list subSteps='${i.subSteps}' hasError?='${t}' isNested?='${!0}'></buv-substeps-list>`))}_render({subSteps:e=[],suites:t=[],hasError:i=!1,isNested:r=!1}={}){let n=JSON.parse(JSON.stringify(e)),o=this.getRenderableSuites(t);if(1===o.length){n=JSON.parse(JSON.stringify(n)).concat(o[0].subSteps),o=null}this.isNested=r,!this.wasForcedOpen&&i&&(this.isOpen=!0,this.wasForcedOpen=!0);const a=n.filter((e=>e.status)),s=a.length||o.length;if(0===s)return null;const c=`${s} ${Au("text","item",!0,s)}`,u=this.isOpen?this.totalHeight:1,l=["buv-o-text-12","buv-o-link","buv-c-substeps-list__link",this.isOpen?"is-open":""].join(" "),d=["buv-c-substeps-list__list","buv-js-substeps-list__list",this.isOpen?"is-open":"",this.hasNestedList?"is-nested":""].join(" ");return de`
341
- ${Md}
342
- <a title='${Au("text.substepsListHint")}' onclick='${this.toggleOpen}' class$='${l}'>
343
- <span class='buv-o-link__text--underline'>${this.isOpen?Au("text.substepsListClose"):c}</span>
340
+ <buv-substeps-list subSteps='${i.subSteps}' hasError?='${t}' isNested?='${!0}'></buv-substeps-list>`))}_render({subSteps:e=[],suites:t=[],hasError:i=!1,isNested:r=!1}={}){let n=JSON.parse(JSON.stringify(e)),o=this.getRenderableSuites(t);if(1===o.length){n=JSON.parse(JSON.stringify(n)).concat(o[0].subSteps),o=null}this.isNested=r,!this.wasForcedOpen&&i&&(this.isOpen=!0,this.wasForcedOpen=!0);const s=n.filter((e=>e.status)),a=s.length||o.length;if(0===a)return null;const c=`${a} ${Eu("text","item",!0,a)}`,u=this.isOpen?this.totalHeight:1,l=["buv-o-text-12","buv-o-link","buv-c-substeps-list__link",this.isOpen?"is-open":""].join(" "),d=["buv-c-substeps-list__list","buv-js-substeps-list__list",this.isOpen?"is-open":"",this.hasNestedList?"is-nested":""].join(" ");return de`
341
+ ${Od}
342
+ <a title='${Eu("text.substepsListHint")}' onclick='${this.toggleOpen}' class$='${l}'>
343
+ <span class='buv-o-link__text--underline'>${this.isOpen?Eu("text.substepsListClose"):c}</span>
344
344
  </a>
345
345
  <div class$='${d}' style$='max-height: ${u}px'>
346
- ${a.map((e=>de`${Sd(e)}`))}
346
+ ${s.map((e=>de`${Ld(e)}`))}
347
347
  ${this.renderSuites(o,i)}
348
348
  </div>
349
- `}});var Rd=de`<style>.buv-c-verification-process{position:relative}.buv-c-verification-progress-bar{position:absolute;left:13px;top:0;width:14px;display:flex;flex-direction:column;height:100%}.buv-c-verification-progress-bar__tube{min-height:14px;transition:flex .4s ease-in-out,max-height .4s ease-in;background-color:#2ab27b;border-radius:7px;flex-grow:0;opacity:0}.buv-c-verification-progress-bar__tube.has-started{flex-grow:1;opacity:1}.buv-c-verification-progress-bar__tube.is-test{background-color:#d8d8d8}.buv-c-verification-progress-bar__tube.has-errored{background-color:#d0021b}.buv-c-verification-progress-bar.no-transition{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.buv-c-verification-process__step-list{padding-left:46px;margin-top:0}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;window.customElements.define("buv-verification-process-raw",class extends be{static get properties(){return{steps:[],hasError:Boolean,isTestChain:Boolean}}verificationInProgressTemplate(){return de`
350
- <span class='buv-u-visually-hidden'>${Au("text.verificationStepProgress")}</span>
349
+ `}});var Bd=de`<style>.buv-c-verification-process{position:relative}.buv-c-verification-progress-bar{position:absolute;left:13px;top:0;width:14px;display:flex;flex-direction:column;height:100%}.buv-c-verification-progress-bar__tube{min-height:14px;transition:flex .4s ease-in-out,max-height .4s ease-in;background-color:#2ab27b;border-radius:7px;flex-grow:0;opacity:0}.buv-c-verification-progress-bar__tube.has-started{flex-grow:1;opacity:1}.buv-c-verification-progress-bar__tube.is-test{background-color:#d8d8d8}.buv-c-verification-progress-bar__tube.has-errored{background-color:#d0021b}.buv-c-verification-progress-bar.no-transition{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.buv-c-verification-process__step-list{padding-left:46px;margin-top:0}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;window.customElements.define("buv-verification-process-raw",class extends be{static get properties(){return{steps:[],hasError:Boolean,isTestChain:Boolean}}verificationInProgressTemplate(){return de`
350
+ <span class='buv-u-visually-hidden'>${Eu("text.verificationStepProgress")}</span>
351
351
  <svg width='20' height='7' viewBox='0 0 120 30' xmlns='http://www.w3.org/2000/svg'><circle cx='15' cy='15' r='15'><animate attributeName='r' from='15' to='15' begin='0s' dur='0.8s' values='15;9;15' calcMode='linear' repeatCount='indefinite'/><animate attributeName='fill-opacity' from='1' to='1' begin='0s' dur='0.8s' values='1;.5;1' calcMode='linear' repeatCount='indefinite'/></circle><circle cx='60' cy='15' r='9' fill-opacity=''.9'><animate attributeName='r' from='9' to='9' begin='0s' dur='0.8s' values='9;15;9' calcMode='linear' repeatCount='indefinite'/><animate attributeName='fill-opacity' from=''.5' to='.5' begin='0s' dur='0.8s' values='.5;1;.5' calcMode='linear' repeatCount='indefinite'/></circle><circle cx='105' cy='15' r='15'><animate attributeName='r' from='15' to='15' begin='0s' dur='0.8s' values='15;9;15' calcMode='linear' repeatCount='indefinite'/><animate attributeName='fill-opacity' from='1' to='1' begin='0s' dur='0.8s' values='1;.5;1' calcMode='linear' repeatCount='indefinite'/></circle></svg>
352
- `}_didRender(){this.listElement||(this.listElement=this.shadowRoot.querySelectorAll(".buv-js-verification-process__step-list")[0])}_render({steps:e,hasError:t,isTestChain:i}){const r=e.filter((e=>e.status!==Ds.DEFAULT)).map(((e,r)=>de`
353
- ${Sd(Object.assign(Object.assign({},e),{isParent:!0,isFirst:0===r,isTestChain:i}))}
354
- ${e.status===Ds.STARTING?de`${this.verificationInProgressTemplate()}`:de`<buv-substeps-list subSteps='${e.subSteps}' suites='${e.suites}' hasError?='${t}'></buv-substeps-list>`}
355
- `)),n=["buv-c-verification-progress-bar__tube","buv-qa-verification-progress-bar__tube",t?"has-errored":"",i?"is-test":"",r.length?"has-started":""].join(" ");let o=`${this.listElement?this.listElement.getBoundingClientRect().height:0}px`;const a=e.every((e=>e.status===Ds.SUCCESS))||e.some((e=>e.status===Ds.FAILURE));return a&&(o="100%"),de`
356
- ${Rd}
352
+ `}_didRender(){this.listElement||(this.listElement=this.shadowRoot.querySelectorAll(".buv-js-verification-process__step-list")[0])}_render({steps:e,hasError:t,isTestChain:i}){const r=e.filter((e=>e.status!==Ra.DEFAULT)).map(((e,r)=>de`
353
+ ${Ld(Object.assign(Object.assign({},e),{isParent:!0,isFirst:0===r,isTestChain:i}))}
354
+ ${e.status===Ra.STARTING?de`${this.verificationInProgressTemplate()}`:de`<buv-substeps-list subSteps='${e.subSteps}' suites='${e.suites}' hasError?='${t}'></buv-substeps-list>`}
355
+ `)),n=["buv-c-verification-progress-bar__tube","buv-qa-verification-progress-bar__tube",t?"has-errored":"",i?"is-test":"",r.length?"has-started":""].join(" ");let o=`${this.listElement?this.listElement.getBoundingClientRect().height:0}px`;const s=e.every((e=>e.status===Ra.SUCCESS))||e.some((e=>e.status===Ra.FAILURE));return s&&(o="100%"),de`
356
+ ${Bd}
357
357
  <section class='buv-c-verification-process'>
358
358
  <div class='buv-c-verification-progress-bar' >
359
359
  <div class$='${n}' style$='max-height: ${o}'></div>
360
360
  </div>
361
361
  <dl class='buv-c-verification-process__step-list buv-js-verification-process__step-list'>
362
362
  ${r}
363
- <buv-final-verification-step isVisible='${a&&!t}'></buv-final-verification-step>
363
+ <buv-final-verification-step isVisible='${s&&!t}'></buv-final-verification-step>
364
364
  </dl>
365
365
  </section>
366
- `}});const Od=al((function({steps:e,hasError:t,isTestChain:i}){return de`<buv-verification-process-raw
366
+ `}});const jd=cl((function({steps:e,hasError:t,isTestChain:i}){return de`<buv-verification-process-raw
367
367
  steps='${e}'
368
368
  hasError?='${t}'
369
369
  isTestChain?='${i}'
370
370
  style='max-width: 100%;'
371
- ></buv-verification-process-raw>`}),{mapStateToProps:e=>({steps:JSON.parse(JSON.stringify(qu(e))),isTestChain:Uu(e),hasError:Ju(e)})});window.customElements.define("buv-verification-process",Od);const Bd=al((function({isOpen:e,onClose:t}){return de`
372
- ${ud}
371
+ ></buv-verification-process-raw>`}),{mapStateToProps:e=>({steps:JSON.parse(JSON.stringify(Ju(e))),isTestChain:qu(e),hasError:Yu(e)})});window.customElements.define("buv-verification-process",jd);const Fd=cl((function({isOpen:e,onClose:t}){return de`
372
+ ${dd}
373
373
  <buv-modal isOpen?='${e}' onClose='${t}' class$="qa-isopen-${e}">
374
374
  <div class='buv-c-verification-modal__content'>
375
375
  <buv-card-certificate class='buv-c-verification-modal__certificate' hideRecordLink hideVerifyButton></buv-card-certificate>
@@ -378,8 +378,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
378
378
  </div>
379
379
  <buv-footer forceInPlace></buv-footer>
380
380
  </buv-modal>
381
- `}),{mapDispatchToProps:{onClose:Ll.bind(null,!1)},mapStateToProps:e=>({isOpen:Ld(e)})});window.customElements.define("buv-verification-modal",Bd);var jd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-drag-and-drop__droparea{z-index:100;background-color:rgba(0,0,0,.1);display:none;position:absolute;top:0;left:0;width:100%;height:100%}.buv-c-drag-and-drop__droparea.is-active{display:block}</style>`;window.customElements.define("buv-drag-and-drop-raw",class extends be{constructor(){super(),this.isDraggedOver=!1,this.denyDrop=!1,this.handleDragEnter=this.handleDragEnter.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this)}static get properties(){return{isDraggedOver:Boolean,denyDrop:Boolean,onDrop:Function}}handleDragEnter(){this.isDraggedOver=!0}handleDragOver(e){e.preventDefault()}handleDragLeave(){this.isDraggedOver=!1}handleDrop(e){e.preventDefault(),this.isDraggedOver=!1;const t=e.dataTransfer.files[0];this.denyDrop=!function(e){const{name:t}=e;return"json"===t.substr(t.length-4,4)}(t),this.denyDrop||this._props.onDrop(t)}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i)}_render(){const e=["buv-c-drag-and-drop__droparea",this.isDraggedOver?"is-active":""].join(" "),t=this.denyDrop?Au("errors.invalidFormatDragAndDrop"):"";return de`
382
- ${jd}
381
+ `}),{mapDispatchToProps:{onClose:Ml.bind(null,!1)},mapStateToProps:e=>({isOpen:Md(e)})});window.customElements.define("buv-verification-modal",Fd);var Nd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-drag-and-drop__droparea{z-index:100;background-color:rgba(0,0,0,.1);display:none;position:absolute;top:0;left:0;width:100%;height:100%}.buv-c-drag-and-drop__droparea.is-active{display:block}</style>`;window.customElements.define("buv-drag-and-drop-raw",class extends be{constructor(){super(),this.isDraggedOver=!1,this.denyDrop=!1,this.handleDragEnter=this.handleDragEnter.bind(this),this.handleDragOver=this.handleDragOver.bind(this),this.handleDragLeave=this.handleDragLeave.bind(this),this.handleDrop=this.handleDrop.bind(this)}static get properties(){return{isDraggedOver:Boolean,denyDrop:Boolean,onDrop:Function}}handleDragEnter(){this.isDraggedOver=!0}handleDragOver(e){e.preventDefault()}handleDragLeave(){this.isDraggedOver=!1}handleDrop(e){e.preventDefault(),this.isDraggedOver=!1;const t=e.dataTransfer.files[0];this.denyDrop=!function(e){const{name:t}=e;return"json"===t.substr(t.length-4,4)}(t),this.denyDrop||this._props.onDrop(t)}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i)}_render(){const e=["buv-c-drag-and-drop__droparea",this.isDraggedOver?"is-active":""].join(" "),t=this.denyDrop?Eu("errors.invalidFormatDragAndDrop"):"";return de`
382
+ ${Nd}
383
383
  <div ondragenter='${this.handleDragEnter}'>
384
384
  <div class$='${e}'
385
385
  ondragover='${this.handleDragOver}'
@@ -388,33 +388,33 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
388
388
  ></div>
389
389
  <span>${t}</span>
390
390
  <slot></slot>
391
- </div>`}});const Fd=al((function(e){return de`
391
+ </div>`}});const Vd=cl((function(e){return de`
392
392
  <buv-drag-and-drop-raw
393
393
  onDrop='${e.onDrop}'
394
394
  >
395
395
  <slot></slot>
396
- </buv-drag-and-drop-raw>`}),{mapDispatchToProps:{onDrop:hd}});window.customElements.define("buv-drag-and-drop",Fd);var Nd=de`<style>.buv-c-verifier-main{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:#031532;position:relative}.buv-c-verifier-layout{display:flex;flex-direction:column}.buv-c-verifier-body{background-color:#fff;flex-grow:1}.buv-c-verifier-body--padded{padding:20px}</style>`,zd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-card{position:relative;display:flex;margin-bottom:20px}.buv-c-card__img-wrapper{margin-right:1.5vw;min-width:50px;width:20%}.buv-c-card__img{max-width:100%;max-height:100%}.buv-c-card__title-wrapper{display:flex;flex-direction:column;justify-content:center}.buv-c-card__download-button{margin-top:10px}.buv-c-card__title{font-size:calc(16px + .5vw);margin-top:0;margin-bottom:0;font-weight:400;padding-right:100px}.buv-c-card__title--no-padding{padding:0}.buv-c-card__recipient{font-weight:600;margin:6px 0 12px}.buv-c-card__record-link{position:absolute;top:0;right:0;line-height:30px}.buv-c-card__record-link::after{content:"";border:solid currentColor;border-width:0 2px 2px 0;width:5px;height:5px;transform:rotate(-45deg);font-weight:bold;display:inline-block;margin-left:5px}.buv-c-card__verify-button{float:right}@media only screen and (max-width: 600px){.buv-c-card__title{font-size:16px}.buv-c-card__recipient{margin:6px 0}.buv-c-card__img-wrapper{margin-right:18px}}</style>`;const Vd=al((function(e){const{hasCertificateDefinition:t,recipientName:i,certificateTitle:r,issuedOn:n,issueDate:o,issuerName:a,recordLink:s,hideVerifyButton:c,disableDownloadPdf:u}=e;let{hideRecordLink:l}=e;if(!t)return null;s||l||(l=!0);const d=["buv-c-card__title",l?"buv-c-card__title--no-padding":""].join(" ");return de`
397
- ${zd}
396
+ </buv-drag-and-drop-raw>`}),{mapDispatchToProps:{onDrop:gd}});window.customElements.define("buv-drag-and-drop",Vd);var zd=de`<style>.buv-c-verifier-main{font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:#031532;position:relative}.buv-c-verifier-layout{display:flex;flex-direction:column}.buv-c-verifier-body{background-color:#fff;flex-grow:1}.buv-c-verifier-body--padded{padding:20px}</style>`,$d=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-card{position:relative;display:flex;margin-bottom:20px}.buv-c-card__img-wrapper{margin-right:1.5vw;min-width:50px;width:20%}.buv-c-card__img{max-width:100%;max-height:100%}.buv-c-card__title-wrapper{display:flex;flex-direction:column;justify-content:center}.buv-c-card__download-button{margin-top:10px}.buv-c-card__title{font-size:calc(16px + .5vw);margin-top:0;margin-bottom:0;font-weight:400;padding-right:100px}.buv-c-card__title--no-padding{padding:0}.buv-c-card__recipient{font-weight:600;margin:6px 0 12px}.buv-c-card__record-link{position:absolute;top:0;right:0;line-height:30px}.buv-c-card__record-link::after{content:"";border:solid currentColor;border-width:0 2px 2px 0;width:5px;height:5px;transform:rotate(-45deg);font-weight:bold;display:inline-block;margin-left:5px}.buv-c-card__verify-button{float:right}@media only screen and (max-width: 600px){.buv-c-card__title{font-size:16px}.buv-c-card__recipient{margin:6px 0}.buv-c-card__img-wrapper{margin-right:18px}}</style>`;const Ud=cl((function(e){const{hasCertificateDefinition:t,recipientName:i,certificateTitle:r,issuedOn:n,issueDate:o,issuerName:s,recordLink:a,hideVerifyButton:c,disableDownloadPdf:u}=e;let{hideRecordLink:l}=e;if(!t)return null;a||l||(l=!0);const d=["buv-c-card__title",l?"buv-c-card__title--no-padding":""].join(" ");return de`
397
+ ${$d}
398
398
  <section class='buv-c-card'>
399
399
  <div class='buv-c-card__img-wrapper'>
400
- ${function(e){return rc(this,void 0,void 0,(function*(){return yield new Promise((t=>{const i=new Image;i.addEventListener("load",(()=>{t(de`<img src='${e.issuerLogo}' alt='${e.issuerName}' class='buv-c-card__img'/>`)})),i.addEventListener("error",(()=>{t(de`<p class='buv-o-text-15'>${e.issuerName}</p>`)})),i.src=e.issuerLogo}))}))}(e)}
400
+ ${function(e){return oc(this,void 0,void 0,(function*(){return yield new Promise((t=>{const i=new Image;i.addEventListener("load",(()=>{t(de`<img src='${e.issuerLogo}' alt='${e.issuerName}' class='buv-c-card__img'/>`)})),i.addEventListener("error",(()=>{t(de`<p class='buv-o-text-15'>${e.issuerName}</p>`)})),i.src=e.issuerLogo}))}))}(e)}
401
401
  </div>
402
402
  <div class='buv-c-card__title-wrapper'>
403
403
  <h1 class$=${d}>${r}</h1>
404
404
  <h2 class$='${d} buv-c-card__recipient'>${i}</h2>
405
- <span class='buv-o-text-12'>${Au("text.issued")} <time datetime$='${n}'>${o}</time> ${Au("text.by")} ${a}</span>
405
+ <span class='buv-o-text-12'>${Eu("text.issued")} <time datetime$='${n}'>${o}</time> ${Eu("text.by")} ${s}</span>
406
406
  ${u?"":de`<div class='buv-c-card__download-button'>
407
407
  <buv-download-pdf-link></buv-download-pdf-link>
408
408
  </div>`}
409
409
  </div>
410
- ${l?"":de`<a class='buv-o-text-12 buv-o-link buv-c-card__record-link qa-card-record-link' href='${s}' target='_blank'>
411
- <span class='buv-o-link__text--underline'>${Au("text.viewRecord")}</span>
410
+ ${l?"":de`<a class='buv-o-text-12 buv-o-link buv-c-card__record-link qa-card-record-link' href='${a}' target='_blank'>
411
+ <span class='buv-o-link__text--underline'>${Eu("text.viewRecord")}</span>
412
412
  </a>`}
413
413
  </section>
414
414
  ${c?"":de`<buv-final-verification-step class='buv-c-fullscreen-certificate__verification-status' isVisible hideLink standalone>
415
- <buv-verify-button type='link'>${Au("text.verifyAgain")}</buv-verify-button>
415
+ <buv-verify-button type='link'>${Eu("text.verifyAgain")}</buv-verify-button>
416
416
  </buv-final-verification-step>`}
417
- `}),{mapStateToProps:e=>({hasCertificateDefinition:!!Su(e),recipientName:Lu(e),certificateTitle:Du(e),issueDate:Tu(e),issuedOn:Iu(e),issuerName:Mu(e),issuerLogo:Ru(e),recordLink:ju(e),disableDownloadPdf:wl(e)}),ownProps:{hideRecordLink:Boolean,hideVerifyButton:Boolean}});window.customElements.define("buv-card-certificate",Vd);
417
+ `}),{mapStateToProps:e=>({hasCertificateDefinition:!!Lu(e),recipientName:Mu(e),certificateTitle:Ru(e),issueDate:Du(e),issuedOn:Tu(e),issuerName:Ou(e),issuerLogo:Bu(e),recordLink:Nu(e),disableDownloadPdf:kl(e)}),ownProps:{hideRecordLink:Boolean,hideVerifyButton:Boolean}});window.customElements.define("buv-card-certificate",Ud);
418
418
  /**
419
419
  * @license
420
420
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -428,64 +428,64 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
428
428
  * subject to an additional IP rights grant found at
429
429
  * http://polymer.github.io/PATENTS.txt
430
430
  */
431
- const $d=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML=e,t.setValue(document.importNode(i.content,!0))}).__litDirective=!0,t;var t};var Ud=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-full-certificate{box-shadow:0 1px 5px rgba(0,0,0,.15);padding:20px;background-color:#fff;display:block;font-family:serif;text-align:center;color:#49555f;font-size:12px;overflow:auto;word-wrap:break-word;height:100vh;max-height:calc(100vh - 150px);line-height:initial}.buv-c-full-certificate section{max-width:100%;padding:0}.buv-c-full-certificate img{max-width:100%;height:auto;width:inherit}@media only screen and (min-width: 640px){.buv-c-full-certificate{font-size:16px}}.buv-c-full-certificate__button{margin-top:15px}.buv-c-full-certificate__details{justify-content:space-between;margin-top:15px}.buv-c-full-certificate .buv-c-full-certificate-img{max-width:125px;max-height:125px}.buv-c-full-certificate__titles::before,.buv-c-full-certificate__titles::after{content:" ";display:block;background-color:#edf1f4;width:30%;text-align:center;margin:20px auto;height:2px}.buv-c-full-certificate__title{font-weight:normal;margin:0}.buv-c-full-certificate__title--name{color:#000;font-size:30px;margin-bottom:10px}.buv-c-full-certificate__title--main{font-size:21px;margin-bottom:10px}.buv-c-full-certificate__title--sub{font-size:16px;font-style:italic}.buv-c-full-certificate__description{margin:0 0 40px;line-height:1.5}.buv-c-full-certificate-signatures{list-style-type:none;display:flex;justify-content:space-around;width:100%;margin:0 0 20px;padding:0}.buv-c-full-certificate-signatures__signature{margin-right:30px;display:flex;flex-direction:column;justify-content:center}.buv-c-full-certificate-signatures__signature:last-child{margin:0}.buv-c-full-certificate-img--secondary{max-width:150px;max-height:150px}</style>`,Hd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate-details{display:flex;margin:0;position:relative;padding-bottom:60px}@media only screen and (max-width: 750px){.buv-c-certificate-details{flex-direction:column;padding-bottom:0}}.buv-c-certificate-details--grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;padding:20px 0 0}.buv-c-certificate-details--column{flex-direction:column;padding-bottom:0}.buv-c-certificate-details__group{box-sizing:border-box;padding-right:15px;margin-top:15px}.buv-c-certificate-details__group--row{max-width:33%;margin-top:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__group--row{max-width:100%}}.buv-c-certificate-details__group--row-grid{min-width:0;max-width:none}.buv-c-certificate-details__title{margin-bottom:5px;text-transform:uppercase;font-weight:600}.buv-c-certificate-details__value{margin:0;word-wrap:break-word}.buv-c-certificate-details__standalone{position:absolute;bottom:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__standalone{position:initial;margin-top:15px}}.buv-c-certificate-details--inline{display:inline-block;margin:0 0 5px}</style>`;const qd={en:function(e){const t=Au("numbers","ordinal"),i=e%100;return t[(i-20)%10]||t[i]||t[0]},fr:function(e){const t=Au("numbers","ordinal");return 1===e?t[e]:t[0]},es:()=>Au("numbers","ordinal"),it:()=>Au("numbers","ordinal"),mt:e=>Au("numbers","ordinal")[e-1]};function Kd(e){return"mt"===ku.locale?qd[ku.locale](e):e+qd[ku.locale](e)}var Jd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.71428571}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:rgba(255,255,255,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;-webkit-transition:opacity .3s ease-out .2s;-o-transition:opacity .3s ease-out .2s;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}.buv-c-final-verification-step{white-space:nowrap;opacity:0;position:relative;font-weight:600;font-size:15px;color:#031532;margin-top:15px}.buv-c-final-verification-step.is-success{font-size:21px;color:#2ab27b;line-height:19px}.buv-c-final-verification-step--standalone{margin-top:0}.buv-c-final-verification-step.is-test,.buv-c-final-verification-step--standalone.is-success{font-size:15px;color:#031532}.buv-c-final-verification-step.is-failure{font-size:13px;font-weight:400}.buv-c-verification-step__description{margin:0}.buv-c-final-verification-step.is-visible{opacity:1}.buv-c-final-verification-step.is-visible::after{opacity:1}.buv-c-final-verification-step::after{position:absolute;content:"";height:26px;width:23px;left:-37px;top:-3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyM3B4IiB2aWV3Qm94PSIwIDAgMjAgMjMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZyBpZD0iVmVyaWZpY2F0aW9uIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1NC4wMDAwMDAsIC00NzQuMDAwMDAwKSIgZmlsbD0iIzJBQjI3QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ4LjAwMDAwMCwgNDY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDUgTDYsOS4xODE4MTgxOCBMNiwxNS40NTQ1NDU1IEM2LDIxLjI1NjgxODIgMTAuMjY2NjY2NywyNi42ODI3MjczIDE2LDI4IEMyMS43MzMzMzMzLDI2LjY4MjcyNzMgMjYsMjEuMjU2ODE4MiAyNiwxNS40NTQ1NDU1IEwyNiw5LjE4MTgxODE4IEwxNiw1IEwxNiw1IFogTTksMTcuNzUzNzE1NSBMMTAuNTI3NSwxNi4yNTY5MDAyIEwxMy4zMzMzMzMzLDE4Ljk5NTc1MzcgTDIwLjQ3MjUsMTIgTDIyLDEzLjUwNzQzMSBMMTMuMzMzMzMzMywyMiBMOSwxNy43NTM3MTU1IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}.buv-c-final-verification-step.is-test::after{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4IiBmaWxsPSIjRjVBNjIzIj48cGF0aCBkPSJNLjUgMTZoMTdMOSAxIC41IDE2em05LjUtMkg4di0yaDJ2MnptMC0zSDhWN2gydjR6Ii8+PC9zdmc+IA==")}.buv-c-final-verification-step.is-failure::after{content:"❌";font-size:17px;top:-1px;color:#d0021b;background:none}.buv-c-final-verification-step--standalone-wrapper{padding:10px;box-sizing:border-box;border-left:3px solid}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:rgba(42,178,123,.1);border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:rgba(208,2,27,.1);border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:rgba(245,166,35,.1);border-color:#f5a623}.buv-c-final-verification-step--standalone{margin:0 0 5px 30px;white-space:unset}.buv-c-final-verification-step--standalone.is-failure{margin-bottom:0}.buv-c-final-verification-step--standalone::after{left:-30px}.buv-c-verification-substep.is-final{display:none;line-height:1.35}.buv-c-verification-substep.is-final.is-visible{display:block}.buv-c-verification-substep::after{display:none}.buv-u-excluded-from-flow{position:absolute}.buv-u-full-width{width:100%}.buv-c-suite-verification-status{margin-left:30px;font-weight:400}.buv-c-suite-verification-status.is-visible{font-size:13px}.buv-c-suite-verification-status.is-visible::after{width:20px;height:20px;left:-28px}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const Gd=al((function({isTestChain:e,status:t}){const i=["buv-c-final-verification-step","buv-c-suite-verification-status","is-visible",`is-${t}`,e?"is-test":""].join(" "),r=function(e,t){let i="signatureStatusSuccess";return e&&(i="signatureStatusTestSuccess"),t===Ds.FAILURE&&(i="signatureStatusFailure"),Au("text",i)}(e,t);return de`
432
- ${Jd}
431
+ const Hd=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML=e,t.setValue(document.importNode(i.content,!0))}).__litDirective=!0,t;var t};var qd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-full-certificate{box-shadow:0 1px 5px rgba(0,0,0,.15);padding:20px;background-color:#fff;display:block;font-family:serif;text-align:center;color:#49555f;font-size:12px;overflow:auto;word-wrap:break-word;height:100vh;max-height:calc(100vh - 150px);line-height:initial}.buv-c-full-certificate section{max-width:100%;padding:0}.buv-c-full-certificate img{max-width:100%;height:auto;width:inherit}@media only screen and (min-width: 640px){.buv-c-full-certificate{font-size:16px}}.buv-c-full-certificate__button{margin-top:15px}.buv-c-full-certificate__details{justify-content:space-between;margin-top:15px}.buv-c-full-certificate .buv-c-full-certificate-img{max-width:125px;max-height:125px}.buv-c-full-certificate__titles::before,.buv-c-full-certificate__titles::after{content:" ";display:block;background-color:#edf1f4;width:30%;text-align:center;margin:20px auto;height:2px}.buv-c-full-certificate__title{font-weight:normal;margin:0}.buv-c-full-certificate__title--name{color:#000;font-size:30px;margin-bottom:10px}.buv-c-full-certificate__title--main{font-size:21px;margin-bottom:10px}.buv-c-full-certificate__title--sub{font-size:16px;font-style:italic}.buv-c-full-certificate__description{margin:0 0 40px;line-height:1.5}.buv-c-full-certificate-signatures{list-style-type:none;display:flex;justify-content:space-around;width:100%;margin:0 0 20px;padding:0}.buv-c-full-certificate-signatures__signature{margin-right:30px;display:flex;flex-direction:column;justify-content:center}.buv-c-full-certificate-signatures__signature:last-child{margin:0}.buv-c-full-certificate-img--secondary{max-width:150px;max-height:150px}</style>`,Kd=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate-details{display:flex;margin:0;position:relative;padding-bottom:60px}@media only screen and (max-width: 750px){.buv-c-certificate-details{flex-direction:column;padding-bottom:0}}.buv-c-certificate-details--grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;padding:20px 0 0}.buv-c-certificate-details--column{flex-direction:column;padding-bottom:0}.buv-c-certificate-details__group{box-sizing:border-box;padding-right:15px;margin-top:15px}.buv-c-certificate-details__group--row{max-width:33%;margin-top:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__group--row{max-width:100%}}.buv-c-certificate-details__group--row-grid{min-width:0;max-width:none}.buv-c-certificate-details__title{margin-bottom:5px;text-transform:uppercase;font-weight:600}.buv-c-certificate-details__value{margin:0;word-wrap:break-word}.buv-c-certificate-details__standalone{position:absolute;bottom:0}@media only screen and (max-width: 750px){.buv-c-certificate-details__standalone{position:initial;margin-top:15px}}.buv-c-certificate-details--inline{display:inline-block;margin:0 0 5px}</style>`;const Jd={en:function(e){const t=Eu("numbers","ordinal"),i=e%100;return t[(i-20)%10]||t[i]||t[0]},fr:function(e){const t=Eu("numbers","ordinal");return 1===e?t[e]:t[0]},es:()=>Eu("numbers","ordinal"),it:()=>Eu("numbers","ordinal"),mt:e=>Eu("numbers","ordinal")[e-1]};function Gd(e){return"mt"===Cu.locale?Jd[Cu.locale](e):e+Jd[Cu.locale](e)}var Yd=de`<style>.buv-o-link{cursor:pointer;text-decoration:none;color:currentColor}.buv-o-link__text--underline{border-bottom:1px solid}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out;z-index:2;box-sizing:content-box;box-shadow:0 2px 4px 0 rgba(22,40,55,.21)}.buv-c-badge--medium::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-badge--large::before{width:38px;height:38px;left:-45px;top:-9px}.buv-c-verification-step{position:relative;margin:15px 0 5px;font-weight:600}.buv-c-verification-step.is-first{margin-top:0}.buv-c-verification-substep{margin:0;font-weight:400;color:rgba(3,21,50,.7);padding:3px 0 0;line-height:1.71428571}.buv-c-verification-step.is-success::before,.buv-c-verification-step.is-failure::before{left:-38px;top:-4px;width:24px;height:24px}.buv-c-verification-substep::before{left:-28px;top:10px;width:4px;height:4px;background-color:rgba(255,255,255,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;-webkit-transition:opacity .3s ease-out .2s;-o-transition:opacity .3s ease-out .2s;transition:opacity .3s ease-out .2s;opacity:0}.buv-c-verification-step.is-success::after,.buv-c-verification-step.is-failure::after{opacity:1}.buv-c-verification-step.is-success::after{border:solid #2ab27b;border-width:0 2px 2px 0;left:-29px;width:5px;height:11px;transform:rotate(45deg)}.buv-c-verification-step.is-success.is-test::after{border-color:#031532}.buv-c-verification-step.is-failure::after{content:"❌";left:-32px;top:-1px;font-size:11px;color:#d0021b}@supports(-ms-ime-align: auto){.buv-c-verification-step.is-failure::after{left:-34px}}.buv-c-final-verification-step{white-space:nowrap;opacity:0;position:relative;font-weight:600;font-size:15px;color:#031532;margin-top:15px}.buv-c-final-verification-step.is-success{font-size:21px;color:#2ab27b;line-height:19px}.buv-c-final-verification-step--standalone{margin-top:0}.buv-c-final-verification-step.is-test,.buv-c-final-verification-step--standalone.is-success{font-size:15px;color:#031532}.buv-c-final-verification-step.is-failure{font-size:13px;font-weight:400}.buv-c-verification-step__description{margin:0}.buv-c-final-verification-step.is-visible{opacity:1}.buv-c-final-verification-step.is-visible::after{opacity:1}.buv-c-final-verification-step::after{position:absolute;content:"";height:26px;width:23px;left:-37px;top:-3px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyM3B4IiB2aWV3Qm94PSIwIDAgMjAgMjMiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8ZyBpZD0iVmVyaWZpY2F0aW9uIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI1NC4wMDAwMDAsIC00NzQuMDAwMDAwKSIgZmlsbD0iIzJBQjI3QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQ4LjAwMDAwMCwgNDY5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2LDUgTDYsOS4xODE4MTgxOCBMNiwxNS40NTQ1NDU1IEM2LDIxLjI1NjgxODIgMTAuMjY2NjY2NywyNi42ODI3MjczIDE2LDI4IEMyMS43MzMzMzMzLDI2LjY4MjcyNzMgMjYsMjEuMjU2ODE4MiAyNiwxNS40NTQ1NDU1IEwyNiw5LjE4MTgxODE4IEwxNiw1IEwxNiw1IFogTTksMTcuNzUzNzE1NSBMMTAuNTI3NSwxNi4yNTY5MDAyIEwxMy4zMzMzMzMzLDE4Ljk5NTc1MzcgTDIwLjQ3MjUsMTIgTDIyLDEzLjUwNzQzMSBMMTMuMzMzMzMzMywyMiBMOSwxNy43NTM3MTU1IFoiIGlkPSJTaGFwZSI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=");background-repeat:no-repeat;background-position:center;background-size:contain;z-index:3}.buv-c-final-verification-step.is-test::after{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4IiBmaWxsPSIjRjVBNjIzIj48cGF0aCBkPSJNLjUgMTZoMTdMOSAxIC41IDE2em05LjUtMkg4di0yaDJ2MnptMC0zSDhWN2gydjR6Ii8+PC9zdmc+IA==")}.buv-c-final-verification-step.is-failure::after{content:"❌";font-size:17px;top:-1px;color:#d0021b;background:none}.buv-c-final-verification-step--standalone-wrapper{padding:10px;box-sizing:border-box;border-left:3px solid}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:rgba(42,178,123,.1);border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:rgba(208,2,27,.1);border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:rgba(245,166,35,.1);border-color:#f5a623}.buv-c-final-verification-step--standalone{margin:0 0 5px 30px;white-space:unset}.buv-c-final-verification-step--standalone.is-failure{margin-bottom:0}.buv-c-final-verification-step--standalone::after{left:-30px}.buv-c-verification-substep.is-final{display:none;line-height:1.35}.buv-c-verification-substep.is-final.is-visible{display:block}.buv-c-verification-substep::after{display:none}.buv-u-excluded-from-flow{position:absolute}.buv-u-full-width{width:100%}.buv-c-suite-verification-status{margin-left:30px;font-weight:400}.buv-c-suite-verification-status.is-visible{font-size:13px}.buv-c-suite-verification-status.is-visible::after{width:20px;height:20px;left:-28px}.buv-u-visually-hidden{position:absolute !important;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height:1px !important;width:1px !important;overflow:hidden}</style>`;const Wd=cl((function({isTestChain:e,status:t}){const i=["buv-c-final-verification-step","buv-c-suite-verification-status","is-visible",`is-${t}`,e?"is-test":""].join(" "),r=function(e,t){let i="signatureStatusSuccess";return e&&(i="signatureStatusTestSuccess"),t===Ra.FAILURE&&(i="signatureStatusFailure"),Eu("text",i)}(e,t);return de`
432
+ ${Yd}
433
433
  <a class$='${i}' title$='${r}'>
434
434
  <span class='buv-u-visually-hidden'>${r}</span>
435
435
  <slot></slot>
436
436
  </a>
437
- `}),{mapStateToProps:(e,t)=>({isTestChain:Hu(e,parseInt(t.index,10)),status:Td(e,t.suiteType)}),ownProps:{suiteType:String,index:String}});function Yd(e){return"grid"===e}function Wd(e){return"column"===e}function Zd(e){return e?` (${e})`:""}window.customElements.define("buv-suite-verification-status",Gd);const Xd=al((function({recipientName:e,issuedOn:t,issueDate:i,issuerName:r,issuerProfileDomain:n=[],issuerProfileUrl:o=[],issuerPublicKey:a=[],transactionId:s=[],display:c,hideRecipientName:u,signatureSuiteType:l=[],chain:d=[]}){const p=[];u||p.push({title:Au("text.recipient"),value:e}),p.push({title:Au("text.issueDate"),value:de`<time datetime$='${t}'>${i}</time>`},{title:Au("text.issuerName"),value:null!=r?r:Au("errors.noIssuerName")});for(let e=0;e<a.length;e++){let t="";a.length>1&&(t=`${Kd(e+1)} `),l[e]&&p.push({title:`${t}${Au("text.signatureSuiteType")}`,value:de`<buv-suite-verification-status suiteType$='${l[e]}' index$='${e}'>
438
- ${l[e]}${Zd(d[e])}
439
- </buv-suite-verification-status>`}),n[e]&&p.push({title:`${t}${Au("text.issuerProfileDomain")}`,value:de`<a href$='${o[e]}' target="_blank">${n[e]}</a>`}),a[e]&&p.push({title:`${t}${Au("text.issuerPublicKey")}`,value:a[e]}),s[e]&&p.push({title:`${t}${Au("text.transactionId")}`,value:s[e]})}const h=p.map((e=>function({title:e,value:t,display:i,renderInline:r=!1}){const n=["buv-c-certificate-details__group",Wd(i)?"":"buv-c-certificate-details__group--row",Yd(i)?"buv-c-certificate-details__group--row-grid":""].join(" "),o=["buv-c-certificate-details__title",Wd(i)?"":"buv-o-text-11"].join(" "),a=["buv-c-certificate-details__value",r?"buv-c-certificate-details--inline":""].join(" ");return de`<div class$='${n}'>
437
+ `}),{mapStateToProps:(e,t)=>({isTestChain:Ku(e,parseInt(t.index,10)),status:Dd(e,t.suiteType)}),ownProps:{suiteType:String,index:String}});function Zd(e){return"grid"===e}function Xd(e){return"column"===e}function Qd(e){return e?` (${e})`:""}window.customElements.define("buv-suite-verification-status",Wd);const ep=cl((function({recipientName:e,issuedOn:t,issueDate:i,issuerName:r,issuerProfileDomain:n=[],issuerProfileUrl:o=[],issuerPublicKey:s=[],transactionId:a=[],display:c,hideRecipientName:u,signatureSuiteType:l=[],chain:d=[]}){const p=[];u||p.push({title:Eu("text.recipient"),value:e}),p.push({title:Eu("text.issueDate"),value:de`<time datetime$='${t}'>${i}</time>`},{title:Eu("text.issuerName"),value:null!=r?r:Eu("errors.noIssuerName")});for(let e=0;e<s.length;e++){let t="";s.length>1&&(t=`${Gd(e+1)} `),l[e]&&p.push({title:`${t}${Eu("text.signatureSuiteType")}`,value:de`<buv-suite-verification-status suiteType$='${l[e]}' index$='${e}'>
438
+ ${l[e]}${Qd(d[e])}
439
+ </buv-suite-verification-status>`}),n[e]&&p.push({title:`${t}${Eu("text.issuerProfileDomain")}`,value:de`<a href$='${o[e]}' target="_blank">${n[e]}</a>`}),s[e]&&p.push({title:`${t}${Eu("text.issuerPublicKey")}`,value:s[e]}),a[e]&&p.push({title:`${t}${Eu("text.transactionId")}`,value:a[e]})}const h=p.map((e=>function({title:e,value:t,display:i,renderInline:r=!1}){const n=["buv-c-certificate-details__group",Xd(i)?"":"buv-c-certificate-details__group--row",Zd(i)?"buv-c-certificate-details__group--row-grid":""].join(" "),o=["buv-c-certificate-details__title",Xd(i)?"":"buv-o-text-11"].join(" "),s=["buv-c-certificate-details__value",r?"buv-c-certificate-details--inline":""].join(" ");return de`<div class$='${n}'>
440
440
  <dt class$='${o}'>${e}</dt>
441
- <dd class$='${a}'>${t}</dd>
442
- </div>`}(Object.assign(Object.assign({},e),{display:c})))),f=["buv-c-certificate-details","buv-o-text-13",Wd(c)?"buv-c-certificate-details--column":"",Yd(c)?"buv-c-certificate-details--grid":""].join(" ");return de`
443
- ${Hd}
441
+ <dd class$='${s}'>${t}</dd>
442
+ </div>`}(Object.assign(Object.assign({},e),{display:c})))),f=["buv-c-certificate-details","buv-o-text-13",Xd(c)?"buv-c-certificate-details--column":"",Zd(c)?"buv-c-certificate-details--grid":""].join(" ");return de`
443
+ ${Kd}
444
444
  <dl class$='${f}'>
445
445
  ${h}
446
446
  </dl>
447
- `}),{mapStateToProps:e=>({recipientName:Lu(e),issueDate:Tu(e),issuedOn:Iu(e),issuerName:Mu(e),transactionId:Vu(e),issuerPublicKey:Yu(e),issuerProfileDomain:Zu(e),issuerProfileUrl:Wu(e),signatureSuiteType:Xu(e),chain:$u(e)}),ownProps:{display:String,hideRecipientName:Boolean}});window.customElements.define("buv-certificate-details",Xd);function Qd(e){return"boolean"==typeof e}function ep(e,t){for(var i=e.length-1;i>=0;i--)e[i]===t&&e.splice(i,1)}function tp(e,t){for(var i=e.length-1;i>=0;i--)!0===t(e[i])&&e.splice(i,1)}function ip(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var rp=/[A-Za-z]/,np=/[\d]/,op=/\s/,ap=/['"]/,sp=/[\x00-\x1F\x7F]/,cp=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source+/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,up=new RegExp("[".concat(cp,"]")),lp=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,i=this.getClass(),r=i?i.split(op):[],n=e.split(op);t=n.shift();)-1===r.indexOf(t)&&r.push(t);return this.getAttrs().class=r.join(" "),this},e.prototype.removeClass=function(e){for(var t,i=this.getClass(),r=i?i.split(op):[],n=e.split(op);r.length&&(t=n.shift());){var o=r.indexOf(t);-1!==o&&r.splice(o,1)}return this.getAttrs().class=r.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i+'="'+e[i]+'"');return t.join(" ")},e}();var dp=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new lp({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},i=this.createCssClass(e);return i&&(t.class=i),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var i=[t],r=e.getCssClassSuffixes(),n=0,o=r.length;n<o;n++)i.push(t+"-"+r[n]);return i.join(" ")}return""},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var i=t.length,r=t.location;return"smart"===r?function(e,t,i){var r,n;null==i?(i="&hellip;",n=3,r=8):(n=i.length,r=i.length);var o=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},a=function(e,t){var r=t/2,n=Math.ceil(r),o=-1*Math.floor(r),a="";return o<0&&(a=e.substr(o)),e.substr(0,n)+i+a};if(e.length<=t)return e;var s=t-n,c=function(e){var t={},i=e,r=i.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],i=i.substr(r[0].length)),(r=i.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=r[1],i=i.substr(r[0].length)),(r=i.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=r[1],i=i.substr(r[0].length)),(r=i.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=r[1],i=i.substr(r[0].length)),(r=i.match(/^#(.*?)$/i))&&(t.fragment=r[1]),t}(e);if(c.query){var u=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);u&&(c.query=c.query.substr(0,u[1].length),e=o(c))}if(e.length<=t)return e;if(c.host&&(c.host=c.host.replace(/^www\./,""),e=o(c)),e.length<=t)return e;var l="";if(c.host&&(l+=c.host),l.length>=s)return c.host.length==t?(c.host.substr(0,t-n)+i).substr(0,s+r):a(l,s).substr(0,s+r);var d="";if(c.path&&(d+="/"+c.path),c.query&&(d+="?"+c.query),d){if((l+d).length>=s)return(l+d).length==t?(l+d).substr(0,t):(l+a(d,s-l.length)).substr(0,s+r);l+=d}if(c.fragment){var p="#"+c.fragment;if((l+p).length>=s)return(l+p).length==t?(l+p).substr(0,t):(l+a(p,s-l.length)).substr(0,s+r);l+=p}if(c.scheme&&c.host){var h=c.scheme+"://";if((l+h).length<s)return(h+l).substr(0,t)}if(l.length<=t)return l;var f="";return s>0&&(f=l.substr(-1*Math.floor(s/2))),(l.substr(0,Math.ceil(s/2))+i+f).substr(0,s+r)}(e,i):"middle"===r?function(e,t,i){if(e.length<=t)return e;var r,n;null==i?(i="&hellip;",r=8,n=3):(r=i.length,n=i.length);var o=t-n,a="";return o>0&&(a=e.substr(-1*Math.floor(o/2))),(e.substr(0,Math.ceil(o/2))+i+a).substr(0,o+r)}(e,i):function(e,t,i){return function(e,t,i){var r;return e.length>t&&(null==i?(i="&hellip;",r=3):r=i.length,e=e.substring(0,t-r)+i),e}(e,t,i)}(e,i)},e}(),pp=function(){function e(e){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.type]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),hp=new RegExp("^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)$"),fp=/[\/?#]/,gp=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,bp=/[?!:,.;^]/,mp=/https?:\/\//i,vp=new RegExp("^"+mp.source,"i"),yp=new RegExp(bp.source+"$"),wp=/^(javascript|vbscript):/i,xp=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,kp=/^(?:\/\/)?([^/#?:]+)/;function _p(e){return rp.test(e)}function Cp(e){return rp.test(e)||np.test(e)||"+"===e||"-"===e||"."===e}function Ap(e){return up.test(e)}function Ep(e){return"_"===e||Ap(e)}function Sp(e){return up.test(e)||gp.test(e)||bp.test(e)}function Pp(e){return fp.test(e)}function Ip(e){return hp.test(e.toLowerCase())}var Tp=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,Lp=/[:/?#]/;var Dp=/^(https?:\/\/)?(www\.)?/i,Mp=/^\/\//,Rp=function(e){function t(t){var i=e.call(this,t)||this;return i.type="url",i.url="",i.urlMatchType="scheme",i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.protocolPrepended=!1,i.urlMatchType=t.urlMatchType,i.url=t.url,i.protocolRelativeMatch=t.protocolRelativeMatch,i.stripPrefix=t.stripPrefix,i.stripTrailingSlash=t.stripTrailingSlash,i.decodePercentEncoding=t.decodePercentEncoding,i}return tc(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||"scheme"===this.urlMatchType||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=e.replace(Mp,"")),this.stripPrefix.scheme&&(e=function(e){return e.replace(vp,"")}(e)),this.stripPrefix.www&&(e=function(e){return e.replace(Dp,"$1")}(e)),this.stripTrailingSlash&&(e=function(e){"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1));return e}(e)),this.decodePercentEncoding&&(e=function(e){var t=e.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(t)}catch(e){return t}}(e)),e},t}(pp);var Op=/^mailto:/i,Bp=new RegExp("[".concat(cp,"!#$%&'*+/=?^_`{|}~-]"));function jp(e){return Bp.test(e)}var Fp=function(e){function t(t){var i=e.call(this,t)||this;return i.type="email",i.email="",i.email=t.email,i}return tc(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(pp);function Np(e){return"_"===e||up.test(e)}var zp=["twitter","facebook","instagram","tiktok"],Vp=function(e){function t(t){var i=e.call(this,t)||this;return i.type="hashtag",i.serviceName="twitter",i.hashtag="",i.serviceName=t.serviceName,i.hashtag=t.hashtag,i}return tc(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;case"tiktok":return"https://www.tiktok.com/tag/"+t;default:throw ip(e),new Error("Invalid hashtag service: ".concat(e))}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&t.push(i),t},t}(pp),$p={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/},Up=/[-\w.]/;function Hp(e){return Up.test(e)}var qp=["twitter","instagram","soundcloud","tiktok"],Kp=function(e){function t(t){var i=e.call(this,t)||this;return i.type="mention",i.serviceName="twitter",i.mention="",i.mention=t.mention,i.serviceName=t.serviceName,i}return tc(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&t.push(i),t},t}(pp),Jp=/[-. ]/,Gp=/[-. ()]/,Yp=/[,;]/,Wp=new RegExp("^".concat(/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source,"$"));function Zp(e){return Jp.test(e)}function Xp(e){return Yp.test(e)}var Qp=function(e){function t(t){var i=e.call(this,t)||this;return i.type="phone",i.number="",i.plusSign=!1,i.number=t.number,i.plusSign=t.plusSign,i}return tc(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(pp);function eh(e,t){for(var i=t.tagBuilder,r=t.stripPrefix,n=t.stripTrailingSlash,o=t.decodePercentEncoding,a=t.hashtagServiceName,s=t.mentionServiceName,c=[],u=e.length,l=[],d=0;d<u;d++){var p=e.charAt(d);if(0===l.length)b(p);else for(var h=l.length-1;h>=0;h--){var f=l[h];switch(f.state){case 11:k(f,p);break;case 12:_(f,p);break;case 0:m(f,p);break;case 1:v(f,p);break;case 2:y(f,p);break;case 3:w(f,p);break;case 4:x(f,p);break;case 5:C(f,p);break;case 6:A(f,p);break;case 7:E(f,p);break;case 13:S(f,p);break;case 14:P(f,p);break;case 8:I(f,p);break;case 9:T(f,p);break;case 10:L(f,p);break;case 15:D(f,p);break;case 16:M(f,p);break;case 17:R(f,p);break;case 18:O(f,p);break;case 19:B(f,p);break;case 20:j(f,p);break;case 21:F(f,p);break;case 22:N(f,p);break;case 23:z(f,p);break;case 24:V(f,p);break;case 25:$(f,p);break;case 26:U(f,p);break;case 27:H(f,p);break;case 28:q(f,p);break;case 29:K(f,p);break;case 30:J(f,p);break;case 31:G(f,p);break;case 32:W(f,p);break;case 33:Z(f,p);break;case 34:X(f,p);break;case 35:Q(f,p);break;case 36:ee(f,p);break;case 37:Y(f,p);break;case 38:te(f,p);break;case 39:ie(f,p);break;case 40:re(f,p);break;case 41:ne(f,p);break;default:ip(f.state)}}}for(var g=l.length-1;g>=0;g--)l.forEach((function(e){return oe(e)}));return c;function b(e){if("#"===e)l.push({type:"hashtag",startIdx:d,state:28,acceptStateReached:!1});else if("@"===e)l.push(function(e,t){return{type:"mention",startIdx:e,state:t,acceptStateReached:!1}}(d,30));else if("/"===e)l.push(oh(d,11));else if("+"===e)l.push(ah(d,37));else if("("===e)l.push(ah(d,32));else{if(np.test(e)&&(l.push(ah(d,38)),l.push(function(e,t){return{type:"url",startIdx:e,state:t,acceptStateReached:!1,matchType:"ipV4",octetsEncountered:1}}(d,13))),function(e){return up.test(e)}(e)){var t="m"===e.toLowerCase()?15:22;l.push(function(e,t){return{type:"email",startIdx:e,state:t,acceptStateReached:!1}}(d,t))}_p(e)&&l.push(nh(d,0)),up.test(e)&&l.push(oh(d,5))}}function m(e,t){":"===t?e.state=2:"-"===t?e.state=1:Cp(t)||ep(l,e)}function v(e,t){"-"===t||("/"===t?(ep(l,e),l.push(oh(d,11))):Cp(t)?e.state=0:ep(l,e))}function y(e,t){"/"===t?e.state=3:"."===t?ep(l,e):Ap(t)?(e.state=5,_p(t)&&l.push(nh(d,0))):ep(l,e)}function w(e,t){"/"===t?e.state=4:Sp(t)?(e.state=10,e.acceptStateReached=!0):oe(e)}function x(e,t){"/"===t?e.state=10:Ap(t)?(e.state=5,e.acceptStateReached=!0):ep(l,e)}function k(e,t){"/"===t?e.state=12:ep(l,e)}function _(e,t){Ap(t)?e.state=5:ep(l,e)}function C(e,t){"."===t?e.state=7:"-"===t?e.state=6:":"===t?e.state=8:Pp(t)?e.state=10:Ep(t)||oe(e)}function A(e,t){"-"===t||("."===t?oe(e):Ap(t)?e.state=5:oe(e))}function E(e,t){"."===t?oe(e):Ap(t)?(e.state=5,e.acceptStateReached=!0):oe(e)}function S(e,t){"."===t?e.state=14:":"===t?e.state=8:np.test(t)||(Pp(t)?e.state=10:up.test(t)?ep(l,e):oe(e))}function P(e,t){np.test(t)?(e.octetsEncountered++,4===e.octetsEncountered&&(e.acceptStateReached=!0),e.state=13):oe(e)}function I(e,t){np.test(t)?e.state=9:oe(e)}function T(e,t){np.test(t)||(Pp(t)?e.state=10:oe(e))}function L(e,t){Sp(t)||oe(e)}function D(e,t){"a"===t.toLowerCase()?e.state=16:N(e,t)}function M(e,t){"i"===t.toLowerCase()?e.state=17:N(e,t)}function R(e,t){"l"===t.toLowerCase()?e.state=18:N(e,t)}function O(e,t){"t"===t.toLowerCase()?e.state=19:N(e,t)}function B(e,t){"o"===t.toLowerCase()?e.state=20:N(e,t)}function j(e,t){":"===t.toLowerCase()?e.state=21:N(e,t)}function F(e,t){jp(t)?e.state=22:ep(l,e)}function N(e,t){"."===t?e.state=23:"@"===t?e.state=24:jp(t)?e.state=22:ep(l,e)}function z(e,t){"."===t||"@"===t?ep(l,e):jp(t)?e.state=22:ep(l,e)}function V(e,t){Ap(t)?e.state=25:ep(l,e)}function $(e,t){"."===t?e.state=27:"-"===t?e.state=26:Ep(t)||oe(e)}function U(e,t){"-"===t||"."===t?oe(e):Ep(t)?e.state=25:oe(e)}function H(e,t){"."===t||"-"===t?oe(e):Ap(t)?(e.state=25,e.acceptStateReached=!0):oe(e)}function q(e,t){Np(t)?(e.state=29,e.acceptStateReached=!0):ep(l,e)}function K(e,t){Np(t)||oe(e)}function J(e,t){Hp(t)?(e.state=31,e.acceptStateReached=!0):ep(l,e)}function G(e,t){Hp(t)||(up.test(t)?ep(l,e):oe(e))}function Y(e,t){np.test(t)?e.state=38:(ep(l,e),b(t))}function W(e,t){np.test(t)?e.state=33:ep(l,e),b(t)}function Z(e,t){np.test(t)?e.state=34:ep(l,e)}function X(e,t){np.test(t)?e.state=35:ep(l,e)}function Q(e,t){")"===t?e.state=36:ep(l,e)}function ee(e,t){np.test(t)?e.state=38:Zp(t)?e.state=39:ep(l,e)}function te(e,t){e.acceptStateReached=!0,Xp(t)?e.state=40:"#"===t?e.state=41:np.test(t)||("("===t?e.state=32:Zp(t)?e.state=39:(oe(e),_p(t)&&l.push(nh(d,0))))}function ie(e,t){np.test(t)?e.state=38:"("===t?e.state=32:(oe(e),b(t))}function re(e,t){Xp(t)||("#"===t?e.state=41:np.test(t)?e.state=38:oe(e))}function ne(e,t){Xp(t)?e.state=40:np.test(t)?ep(l,e):oe(e)}function oe(t){if(ep(l,t),t.acceptStateReached){var u,p,h=t.startIdx,f=e.slice(t.startIdx,d);if(f=function(e){for(var t={"(":0,"{":0,"[":0},i=0;i<e.length;i++){var r=e.charAt(i);th.test(r)?t[r]++:ih.test(r)&&t[rh[r]]--}var n,o=e.length-1;for(;o>=0;)if(n=e.charAt(o),ih.test(n)){var a=rh[n];if(!(t[a]<0))break;t[a]++,o--}else{if(!yp.test(n))break;o--}return e.slice(0,o+1)}(f),"url"===t.type){if("@"===e.charAt(t.startIdx-1))return;var g=t.matchType;if("scheme"===g){var b=mp.exec(f);if(b&&(h+=b.index,f=f.slice(b.index)),!function(e){if(wp.test(e))return!1;var t=e.match(xp);if(!t)return!1;var i=!!t[1],r=t[2];return!!i||!(-1===r.indexOf(".")||!rp.test(r))}(f))return}else if("tld"===g){if(!function(e){var t=e.match(kp);if(!t)return!1;var i=t[0].split(".");return!(i.length<2||!Ip(i[i.length-1]))}(f))return}else if("ipV4"===g){if(!function(e){var t=e.split(Lp,1)[0];return Tp.test(t)}(f))return}else ip(g);c.push(new Rp({tagBuilder:i,matchedText:f,offset:h,urlMatchType:g,url:f,protocolRelativeMatch:"//"===f.slice(0,2),stripPrefix:r,stripTrailingSlash:n,decodePercentEncoding:o}))}else if("email"===t.type)Ip(f.split(".").pop()||"")&&c.push(new Fp({tagBuilder:i,matchedText:f,offset:h,email:f.replace(Op,"")}));else if("hashtag"===t.type)f.length<=140&&c.push(new Vp({tagBuilder:i,matchedText:f,offset:h,serviceName:a,hashtag:f.slice(1)}));else if("mention"===t.type)p=f,$p[s].test(p)&&c.push(new Kp({tagBuilder:i,matchedText:f,offset:h,serviceName:s,mention:f.slice(1)}));else if("phone"===t.type){if(f=f.replace(/ +$/g,""),("+"===(u=f).charAt(0)||Gp.test(u))&&Wp.test(u)){var m=f.replace(/[^0-9,;#]/g,"");c.push(new Qp({tagBuilder:i,matchedText:f,offset:h,number:m,plusSign:"+"===f.charAt(0)}))}}else ip(t)}}}var th=/[\(\{\[]/,ih=/[\)\}\]]/,rh={")":"(","}":"{","]":"["};function nh(e,t){return{type:"url",startIdx:e,state:t,acceptStateReached:!1,matchType:"scheme"}}function oh(e,t){return{type:"url",startIdx:e,state:t,acceptStateReached:!1,matchType:"tld"}}function ah(e,t){return{type:"phone",startIdx:e,state:t,acceptStateReached:!1}}function sh(e,t){for(var i,r=t.onOpenTag,n=t.onCloseTag,o=t.onText,a=t.onComment,s=t.onDoctype,c=new ch,u=0,l=e.length,d=0,p=0,h=c;u<l;){var f=e.charAt(u);switch(d){case 0:g(f);break;case 1:b(f);break;case 2:v(f);break;case 3:m(f);break;case 4:y(f);break;case 5:w(f);break;case 6:x(f);break;case 7:k(f);break;case 8:_(f);break;case 9:C(f);break;case 10:A(f);break;case 11:E(f);break;case 12:S(f);break;case 13:P();break;case 14:I(f);break;case 15:T(f);break;case 16:L(f);break;case 17:D(f);break;case 18:M(f);break;case 19:R(f);break;case 20:O(f);break;default:ip(d)}u++}function g(e){"<"===e&&j()}function b(e){"!"===e?d=13:"/"===e?(d=2,h=new ch(ic(ic({},h),{isClosing:!0}))):"<"===e?j():rp.test(e)?(d=3,h=new ch(ic(ic({},h),{isOpening:!0}))):(d=0,h=c)}function m(e){op.test(e)?(h=new ch(ic(ic({},h),{name:N()})),d=4):"<"===e?j():"/"===e?(h=new ch(ic(ic({},h),{name:N()})),d=12):">"===e?(h=new ch(ic(ic({},h),{name:N()})),F()):rp.test(e)||np.test(e)||":"===e||B()}function v(e){">"===e?B():rp.test(e)?d=3:B()}function y(e){op.test(e)||("/"===e?d=12:">"===e?F():"<"===e?j():"="===e||ap.test(e)||sp.test(e)?B():d=5)}function w(e){op.test(e)?d=6:"/"===e?d=12:"="===e?d=7:">"===e?F():"<"===e?j():ap.test(e)&&B()}function x(e){op.test(e)||("/"===e?d=12:"="===e?d=7:">"===e?F():"<"===e?j():ap.test(e)?B():d=5)}function k(e){op.test(e)||('"'===e?d=8:"'"===e?d=9:/[>=`]/.test(e)?B():"<"===e?j():d=10)}function _(e){'"'===e&&(d=11)}function C(e){"'"===e&&(d=11)}function A(e){op.test(e)?d=4:">"===e?F():"<"===e&&j()}function E(e){op.test(e)?d=4:"/"===e?d=12:">"===e?F():"<"===e?j():(d=4,u--)}function S(e){">"===e?(h=new ch(ic(ic({},h),{isClosing:!0})),F()):d=4}function P(t){"--"===e.substr(u,2)?(u+=2,h=new ch(ic(ic({},h),{type:"comment"})),d=14):"DOCTYPE"===e.substr(u,7).toUpperCase()?(u+=7,h=new ch(ic(ic({},h),{type:"doctype"})),d=20):B()}function I(e){"-"===e?d=15:">"===e?B():d=16}function T(e){"-"===e?d=18:">"===e?B():d=16}function L(e){"-"===e&&(d=17)}function D(e){d="-"===e?18:16}function M(e){">"===e?F():"!"===e?d=19:"-"===e||(d=16)}function R(e){"-"===e?d=17:">"===e?F():d=16}function O(e){">"===e?F():"<"===e&&j()}function B(){d=0,h=c}function j(){d=1,h=new ch({idx:u})}function F(){var t=e.slice(p,h.idx);t&&o(t,p),"comment"===h.type?a(h.idx):"doctype"===h.type?s(h.idx):(h.isOpening&&r(h.name,h.idx),h.isClosing&&n(h.name,h.idx)),B(),p=u+1}function N(){var t=h.idx+(h.isClosing?2:1);return e.slice(t,u).toLowerCase()}p<u&&(i=e.slice(p,u),o(i,p),p=u+1)}var ch=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},uh=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=function(e){null==e&&(e=!0);return Qd(e)?{schemeMatches:e,tldMatches:e,ipV4Matches:e}:{schemeMatches:!Qd(e.schemeMatches)||e.schemeMatches,tldMatches:!Qd(e.tldMatches)||e.tldMatches,ipV4Matches:!Qd(e.ipV4Matches)||e.ipV4Matches}}(t.urls),this.email=Qd(t.email)?t.email:this.email,this.phone=Qd(t.phone)?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow=Qd(t.newWindow)?t.newWindow:this.newWindow,this.stripPrefix=function(e){null==e&&(e=!0);return Qd(e)?{scheme:e,www:e}:{scheme:!Qd(e.scheme)||e.scheme,www:!Qd(e.www)||e.www}}(t.stripPrefix),this.stripTrailingSlash=Qd(t.stripTrailingSlash)?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=Qd(t.decodePercentEncoding)?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var i=this.mention;if(!1!==i&&-1===qp.indexOf(i))throw new Error("invalid `mention` cfg '".concat(i,"' - see docs"));var r,n=this.hashtag;if(!1!==n&&-1===zp.indexOf(n))throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate="number"==typeof(r=t.truncate)?{length:r,location:"end"}:function(e,t){for(var i in t)t.hasOwnProperty(i)&&void 0===e[i]&&(e[i]=t[i]);return e}(r||{},{length:Number.POSITIVE_INFINITY,location:"end"}),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,i){return new e(i).link(t)},e.parse=function(t,i){return new e(i).parse(t)},e.prototype.parse=function(e){var t=this,i=["a","style","script"],r=0,n=[];return sh(e,{onOpenTag:function(e){i.indexOf(e)>=0&&r++},onText:function(e,i){if(0===r){var o=e.split(/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),a=i;o.forEach((function(e,i){if(i%2==0){var r=t.parseText(e,a);n.push.apply(n,r)}a+=e.length}))}},onCloseTag:function(e){i.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(e){},onDoctype:function(e){}}),n=this.compactMatches(n),n=this.removeUnwantedMatches(n)},e.prototype.compactMatches=function(e){e.sort((function(e,t){return e.getOffset()-t.getOffset()}));for(var t=0;t<e.length-1;){var i=e[t],r=i.getOffset(),n=i.getMatchedText().length,o=r+n;if(t+1<e.length){if(e[t+1].getOffset()===r){var a=e[t+1].getMatchedText().length>n?t:t+1;e.splice(a,1);continue}if(e[t+1].getOffset()<o){e.splice(t+1,1);continue}}t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||tp(e,(function(e){return"hashtag"===e.getType()})),this.email||tp(e,(function(e){return"email"===e.getType()})),this.phone||tp(e,(function(e){return"phone"===e.getType()})),this.mention||tp(e,(function(e){return"mention"===e.getType()})),this.urls.schemeMatches||tp(e,(function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()})),this.urls.tldMatches||tp(e,(function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()})),this.urls.ipV4Matches||tp(e,(function(e){return"url"===e.getType()&&"ipV4"===e.getUrlMatchType()})),e},e.prototype.parseText=function(e,t){void 0===t&&(t=0),t=t||0;for(var i=eh(e,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),r=0,n=i.length;r<n;r++)i[r].setOffset(t+i[r].getOffset());return i},e.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var t=this.parse(e),i=[],r=0,n=0,o=t.length;n<o;n++){var a=t[n];i.push(e.substring(r,a.getOffset())),i.push(this.createMatchReturnVal(a)),r=a.getOffset()+a.getMatchedText().length}return i.push(e.substring(r)),i.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof lp?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new dp({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="4.0.0",e}();function lh(e){return uh.link(e,{stripPrefix:!1,email:!1,phone:!1})}window.customElements.define("buv-full-certificate-raw",class extends be{static get properties(){return{clickableUrls:Boolean,hasCertificateDefinition:Boolean,displayHTML:String}}_shouldRender(e,t,i){return!!(null==t?void 0:t.displayHTML)||!1===(null==t?void 0:t.hasCertificateDefinition)}_render({clickableUrls:e,hasCertificateDefinition:t,displayHTML:i}){return t?de`
448
- ${Ud}
449
- ${function(e,t){const i=["buv-c-full-certificate","qa-fullscreen-certificate"];cc.certificates.displayHtmlHasNoWidthConstraint(e)&&i.push("buv-c-certificate--fixed-width");const r=t?lh(e):e;return de`<section class$=${i.join(" ")}>${$d(r)}</section>`}(i,e)}
447
+ `}),{mapStateToProps:e=>({recipientName:Mu(e),issueDate:Du(e),issuedOn:Tu(e),issuerName:Ou(e),transactionId:Uu(e),issuerPublicKey:Zu(e),issuerProfileDomain:Qu(e),issuerProfileUrl:Xu(e),signatureSuiteType:el(e),chain:Hu(e)}),ownProps:{display:String,hideRecipientName:Boolean}});window.customElements.define("buv-certificate-details",ep);function tp(e){return"boolean"==typeof e}function ip(e,t){for(var i=e.length-1;i>=0;i--)e[i]===t&&e.splice(i,1)}function rp(e,t){for(var i=e.length-1;i>=0;i--)!0===t(e[i])&&e.splice(i,1)}function np(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var op=/[A-Za-z]/,sp=/[\d]/,ap=/\s/,cp=/['"]/,up=/[\x00-\x1F\x7F]/,lp=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source+/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,dp=new RegExp("[".concat(lp,"]")),pp=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,i=this.getClass(),r=i?i.split(ap):[],n=e.split(ap);t=n.shift();)-1===r.indexOf(t)&&r.push(t);return this.getAttrs().class=r.join(" "),this},e.prototype.removeClass=function(e){for(var t,i=this.getClass(),r=i?i.split(ap):[],n=e.split(ap);r.length&&(t=n.shift());){var o=r.indexOf(t);-1!==o&&r.splice(o,1)}return this.getAttrs().class=r.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i+'="'+e[i]+'"');return t.join(" ")},e}();var hp=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new pp({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},i=this.createCssClass(e);return i&&(t.class=i),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var i=[t],r=e.getCssClassSuffixes(),n=0,o=r.length;n<o;n++)i.push(t+"-"+r[n]);return i.join(" ")}return""},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var i=t.length,r=t.location;return"smart"===r?function(e,t,i){var r,n;null==i?(i="&hellip;",n=3,r=8):(n=i.length,r=i.length);var o=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},s=function(e,t){var r=t/2,n=Math.ceil(r),o=-1*Math.floor(r),s="";return o<0&&(s=e.substr(o)),e.substr(0,n)+i+s};if(e.length<=t)return e;var a=t-n,c=function(e){var t={},i=e,r=i.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],i=i.substr(r[0].length)),(r=i.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=r[1],i=i.substr(r[0].length)),(r=i.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=r[1],i=i.substr(r[0].length)),(r=i.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=r[1],i=i.substr(r[0].length)),(r=i.match(/^#(.*?)$/i))&&(t.fragment=r[1]),t}(e);if(c.query){var u=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);u&&(c.query=c.query.substr(0,u[1].length),e=o(c))}if(e.length<=t)return e;if(c.host&&(c.host=c.host.replace(/^www\./,""),e=o(c)),e.length<=t)return e;var l="";if(c.host&&(l+=c.host),l.length>=a)return c.host.length==t?(c.host.substr(0,t-n)+i).substr(0,a+r):s(l,a).substr(0,a+r);var d="";if(c.path&&(d+="/"+c.path),c.query&&(d+="?"+c.query),d){if((l+d).length>=a)return(l+d).length==t?(l+d).substr(0,t):(l+s(d,a-l.length)).substr(0,a+r);l+=d}if(c.fragment){var p="#"+c.fragment;if((l+p).length>=a)return(l+p).length==t?(l+p).substr(0,t):(l+s(p,a-l.length)).substr(0,a+r);l+=p}if(c.scheme&&c.host){var h=c.scheme+"://";if((l+h).length<a)return(h+l).substr(0,t)}if(l.length<=t)return l;var f="";return a>0&&(f=l.substr(-1*Math.floor(a/2))),(l.substr(0,Math.ceil(a/2))+i+f).substr(0,a+r)}(e,i):"middle"===r?function(e,t,i){if(e.length<=t)return e;var r,n;null==i?(i="&hellip;",r=8,n=3):(r=i.length,n=i.length);var o=t-n,s="";return o>0&&(s=e.substr(-1*Math.floor(o/2))),(e.substr(0,Math.ceil(o/2))+i+s).substr(0,o+r)}(e,i):function(e,t,i){return function(e,t,i){var r;return e.length>t&&(null==i?(i="&hellip;",r=3):r=i.length,e=e.substring(0,t-r)+i),e}(e,t,i)}(e,i)},e}(),fp=function(){function e(e){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.type]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),gp=new RegExp("^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)$"),bp=/[\/?#]/,mp=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,vp=/[?!:,.;^]/,yp=/https?:\/\//i,wp=new RegExp("^"+yp.source,"i"),xp=new RegExp(vp.source+"$"),kp=/^(javascript|vbscript):/i,_p=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,Cp=/^(?:\/\/)?([^/#?:]+)/;function Ap(e){return op.test(e)}function Sp(e){return op.test(e)||sp.test(e)||"+"===e||"-"===e||"."===e}function Ep(e){return dp.test(e)}function Pp(e){return"_"===e||Ep(e)}function Lp(e){return dp.test(e)||mp.test(e)||vp.test(e)}function Ip(e){return bp.test(e)}function Tp(e){return gp.test(e.toLowerCase())}var Dp=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,Mp=/[:/?#]/;var Rp=/^(https?:\/\/)?(www\.)?/i,Op=/^\/\//,Bp=function(e){function t(t){var i=e.call(this,t)||this;return i.type="url",i.url="",i.urlMatchType="scheme",i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.protocolPrepended=!1,i.urlMatchType=t.urlMatchType,i.url=t.url,i.protocolRelativeMatch=t.protocolRelativeMatch,i.stripPrefix=t.stripPrefix,i.stripTrailingSlash=t.stripTrailingSlash,i.decodePercentEncoding=t.decodePercentEncoding,i}return rc(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||"scheme"===this.urlMatchType||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=e.replace(Op,"")),this.stripPrefix.scheme&&(e=function(e){return e.replace(wp,"")}(e)),this.stripPrefix.www&&(e=function(e){return e.replace(Rp,"$1")}(e)),this.stripTrailingSlash&&(e=function(e){"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1));return e}(e)),this.decodePercentEncoding&&(e=function(e){var t=e.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(t)}catch(e){return t}}(e)),e},t}(fp);var jp=/^mailto:/i,Fp=new RegExp("[".concat(lp,"!#$%&'*+/=?^_`{|}~-]"));function Np(e){return Fp.test(e)}var Vp=function(e){function t(t){var i=e.call(this,t)||this;return i.type="email",i.email="",i.email=t.email,i}return rc(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(fp);function zp(e){return"_"===e||dp.test(e)}var $p=["twitter","facebook","instagram","tiktok"],Up=function(e){function t(t){var i=e.call(this,t)||this;return i.type="hashtag",i.serviceName="twitter",i.hashtag="",i.serviceName=t.serviceName,i.hashtag=t.hashtag,i}return rc(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;case"tiktok":return"https://www.tiktok.com/tag/"+t;default:throw np(e),new Error("Invalid hashtag service: ".concat(e))}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&t.push(i),t},t}(fp),Hp={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/},qp=/[-\w.]/;function Kp(e){return qp.test(e)}var Jp=["twitter","instagram","soundcloud","tiktok"],Gp=function(e){function t(t){var i=e.call(this,t)||this;return i.type="mention",i.serviceName="twitter",i.mention="",i.mention=t.mention,i.serviceName=t.serviceName,i}return rc(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&t.push(i),t},t}(fp),Yp=/[-. ]/,Wp=/[-. ()]/,Zp=/[,;]/,Xp=new RegExp("^".concat(/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source,"$"));function Qp(e){return Yp.test(e)}function eh(e){return Zp.test(e)}var th=function(e){function t(t){var i=e.call(this,t)||this;return i.type="phone",i.number="",i.plusSign=!1,i.number=t.number,i.plusSign=t.plusSign,i}return rc(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(fp);function ih(e,t){for(var i=t.tagBuilder,r=t.stripPrefix,n=t.stripTrailingSlash,o=t.decodePercentEncoding,s=t.hashtagServiceName,a=t.mentionServiceName,c=[],u=e.length,l=[],d=0;d<u;d++){var p=e.charAt(d);if(0===l.length)b(p);else for(var h=l.length-1;h>=0;h--){var f=l[h];switch(f.state){case 11:k(f,p);break;case 12:_(f,p);break;case 0:m(f,p);break;case 1:v(f,p);break;case 2:y(f,p);break;case 3:w(f,p);break;case 4:x(f,p);break;case 5:C(f,p);break;case 6:A(f,p);break;case 7:S(f,p);break;case 13:E(f,p);break;case 14:P(f,p);break;case 8:L(f,p);break;case 9:I(f,p);break;case 10:T(f,p);break;case 15:D(f,p);break;case 16:M(f,p);break;case 17:R(f,p);break;case 18:O(f,p);break;case 19:B(f,p);break;case 20:j(f,p);break;case 21:F(f,p);break;case 22:N(f,p);break;case 23:V(f,p);break;case 24:z(f,p);break;case 25:$(f,p);break;case 26:U(f,p);break;case 27:H(f,p);break;case 28:q(f,p);break;case 29:K(f,p);break;case 30:J(f,p);break;case 31:G(f,p);break;case 32:W(f,p);break;case 33:Z(f,p);break;case 34:X(f,p);break;case 35:Q(f,p);break;case 36:ee(f,p);break;case 37:Y(f,p);break;case 38:te(f,p);break;case 39:ie(f,p);break;case 40:re(f,p);break;case 41:ne(f,p);break;default:np(f.state)}}}for(var g=l.length-1;g>=0;g--)l.forEach((function(e){return oe(e)}));return c;function b(e){if("#"===e)l.push({type:"hashtag",startIdx:d,state:28,acceptStateReached:!1});else if("@"===e)l.push(function(e,t){return{type:"mention",startIdx:e,state:t,acceptStateReached:!1}}(d,30));else if("/"===e)l.push(ah(d,11));else if("+"===e)l.push(ch(d,37));else if("("===e)l.push(ch(d,32));else{if(sp.test(e)&&(l.push(ch(d,38)),l.push(function(e,t){return{type:"url",startIdx:e,state:t,acceptStateReached:!1,matchType:"ipV4",octetsEncountered:1}}(d,13))),function(e){return dp.test(e)}(e)){var t="m"===e.toLowerCase()?15:22;l.push(function(e,t){return{type:"email",startIdx:e,state:t,acceptStateReached:!1}}(d,t))}Ap(e)&&l.push(sh(d,0)),dp.test(e)&&l.push(ah(d,5))}}function m(e,t){":"===t?e.state=2:"-"===t?e.state=1:Sp(t)||ip(l,e)}function v(e,t){"-"===t||("/"===t?(ip(l,e),l.push(ah(d,11))):Sp(t)?e.state=0:ip(l,e))}function y(e,t){"/"===t?e.state=3:"."===t?ip(l,e):Ep(t)?(e.state=5,Ap(t)&&l.push(sh(d,0))):ip(l,e)}function w(e,t){"/"===t?e.state=4:Lp(t)?(e.state=10,e.acceptStateReached=!0):oe(e)}function x(e,t){"/"===t?e.state=10:Ep(t)?(e.state=5,e.acceptStateReached=!0):ip(l,e)}function k(e,t){"/"===t?e.state=12:ip(l,e)}function _(e,t){Ep(t)?e.state=5:ip(l,e)}function C(e,t){"."===t?e.state=7:"-"===t?e.state=6:":"===t?e.state=8:Ip(t)?e.state=10:Pp(t)||oe(e)}function A(e,t){"-"===t||("."===t?oe(e):Ep(t)?e.state=5:oe(e))}function S(e,t){"."===t?oe(e):Ep(t)?(e.state=5,e.acceptStateReached=!0):oe(e)}function E(e,t){"."===t?e.state=14:":"===t?e.state=8:sp.test(t)||(Ip(t)?e.state=10:dp.test(t)?ip(l,e):oe(e))}function P(e,t){sp.test(t)?(e.octetsEncountered++,4===e.octetsEncountered&&(e.acceptStateReached=!0),e.state=13):oe(e)}function L(e,t){sp.test(t)?e.state=9:oe(e)}function I(e,t){sp.test(t)||(Ip(t)?e.state=10:oe(e))}function T(e,t){Lp(t)||oe(e)}function D(e,t){"a"===t.toLowerCase()?e.state=16:N(e,t)}function M(e,t){"i"===t.toLowerCase()?e.state=17:N(e,t)}function R(e,t){"l"===t.toLowerCase()?e.state=18:N(e,t)}function O(e,t){"t"===t.toLowerCase()?e.state=19:N(e,t)}function B(e,t){"o"===t.toLowerCase()?e.state=20:N(e,t)}function j(e,t){":"===t.toLowerCase()?e.state=21:N(e,t)}function F(e,t){Np(t)?e.state=22:ip(l,e)}function N(e,t){"."===t?e.state=23:"@"===t?e.state=24:Np(t)?e.state=22:ip(l,e)}function V(e,t){"."===t||"@"===t?ip(l,e):Np(t)?e.state=22:ip(l,e)}function z(e,t){Ep(t)?e.state=25:ip(l,e)}function $(e,t){"."===t?e.state=27:"-"===t?e.state=26:Pp(t)||oe(e)}function U(e,t){"-"===t||"."===t?oe(e):Pp(t)?e.state=25:oe(e)}function H(e,t){"."===t||"-"===t?oe(e):Ep(t)?(e.state=25,e.acceptStateReached=!0):oe(e)}function q(e,t){zp(t)?(e.state=29,e.acceptStateReached=!0):ip(l,e)}function K(e,t){zp(t)||oe(e)}function J(e,t){Kp(t)?(e.state=31,e.acceptStateReached=!0):ip(l,e)}function G(e,t){Kp(t)||(dp.test(t)?ip(l,e):oe(e))}function Y(e,t){sp.test(t)?e.state=38:(ip(l,e),b(t))}function W(e,t){sp.test(t)?e.state=33:ip(l,e),b(t)}function Z(e,t){sp.test(t)?e.state=34:ip(l,e)}function X(e,t){sp.test(t)?e.state=35:ip(l,e)}function Q(e,t){")"===t?e.state=36:ip(l,e)}function ee(e,t){sp.test(t)?e.state=38:Qp(t)?e.state=39:ip(l,e)}function te(e,t){e.acceptStateReached=!0,eh(t)?e.state=40:"#"===t?e.state=41:sp.test(t)||("("===t?e.state=32:Qp(t)?e.state=39:(oe(e),Ap(t)&&l.push(sh(d,0))))}function ie(e,t){sp.test(t)?e.state=38:"("===t?e.state=32:(oe(e),b(t))}function re(e,t){eh(t)||("#"===t?e.state=41:sp.test(t)?e.state=38:oe(e))}function ne(e,t){eh(t)?e.state=40:sp.test(t)?ip(l,e):oe(e)}function oe(t){if(ip(l,t),t.acceptStateReached){var u,p,h=t.startIdx,f=e.slice(t.startIdx,d);if(f=function(e){for(var t={"(":0,"{":0,"[":0},i=0;i<e.length;i++){var r=e.charAt(i);rh.test(r)?t[r]++:nh.test(r)&&t[oh[r]]--}var n,o=e.length-1;for(;o>=0;)if(n=e.charAt(o),nh.test(n)){var s=oh[n];if(!(t[s]<0))break;t[s]++,o--}else{if(!xp.test(n))break;o--}return e.slice(0,o+1)}(f),"url"===t.type){if("@"===e.charAt(t.startIdx-1))return;var g=t.matchType;if("scheme"===g){var b=yp.exec(f);if(b&&(h+=b.index,f=f.slice(b.index)),!function(e){if(kp.test(e))return!1;var t=e.match(_p);if(!t)return!1;var i=!!t[1],r=t[2];return!!i||!(-1===r.indexOf(".")||!op.test(r))}(f))return}else if("tld"===g){if(!function(e){var t=e.match(Cp);if(!t)return!1;var i=t[0].split(".");return!(i.length<2||!Tp(i[i.length-1]))}(f))return}else if("ipV4"===g){if(!function(e){var t=e.split(Mp,1)[0];return Dp.test(t)}(f))return}else np(g);c.push(new Bp({tagBuilder:i,matchedText:f,offset:h,urlMatchType:g,url:f,protocolRelativeMatch:"//"===f.slice(0,2),stripPrefix:r,stripTrailingSlash:n,decodePercentEncoding:o}))}else if("email"===t.type)Tp(f.split(".").pop()||"")&&c.push(new Vp({tagBuilder:i,matchedText:f,offset:h,email:f.replace(jp,"")}));else if("hashtag"===t.type)f.length<=140&&c.push(new Up({tagBuilder:i,matchedText:f,offset:h,serviceName:s,hashtag:f.slice(1)}));else if("mention"===t.type)p=f,Hp[a].test(p)&&c.push(new Gp({tagBuilder:i,matchedText:f,offset:h,serviceName:a,mention:f.slice(1)}));else if("phone"===t.type){if(f=f.replace(/ +$/g,""),("+"===(u=f).charAt(0)||Wp.test(u))&&Xp.test(u)){var m=f.replace(/[^0-9,;#]/g,"");c.push(new th({tagBuilder:i,matchedText:f,offset:h,number:m,plusSign:"+"===f.charAt(0)}))}}else np(t)}}}var rh=/[\(\{\[]/,nh=/[\)\}\]]/,oh={")":"(","}":"{","]":"["};function sh(e,t){return{type:"url",startIdx:e,state:t,acceptStateReached:!1,matchType:"scheme"}}function ah(e,t){return{type:"url",startIdx:e,state:t,acceptStateReached:!1,matchType:"tld"}}function ch(e,t){return{type:"phone",startIdx:e,state:t,acceptStateReached:!1}}function uh(e,t){for(var i,r=t.onOpenTag,n=t.onCloseTag,o=t.onText,s=t.onComment,a=t.onDoctype,c=new lh,u=0,l=e.length,d=0,p=0,h=c;u<l;){var f=e.charAt(u);switch(d){case 0:g(f);break;case 1:b(f);break;case 2:v(f);break;case 3:m(f);break;case 4:y(f);break;case 5:w(f);break;case 6:x(f);break;case 7:k(f);break;case 8:_(f);break;case 9:C(f);break;case 10:A(f);break;case 11:S(f);break;case 12:E(f);break;case 13:P();break;case 14:L(f);break;case 15:I(f);break;case 16:T(f);break;case 17:D(f);break;case 18:M(f);break;case 19:R(f);break;case 20:O(f);break;default:np(d)}u++}function g(e){"<"===e&&j()}function b(e){"!"===e?d=13:"/"===e?(d=2,h=new lh(nc(nc({},h),{isClosing:!0}))):"<"===e?j():op.test(e)?(d=3,h=new lh(nc(nc({},h),{isOpening:!0}))):(d=0,h=c)}function m(e){ap.test(e)?(h=new lh(nc(nc({},h),{name:N()})),d=4):"<"===e?j():"/"===e?(h=new lh(nc(nc({},h),{name:N()})),d=12):">"===e?(h=new lh(nc(nc({},h),{name:N()})),F()):op.test(e)||sp.test(e)||":"===e||B()}function v(e){">"===e?B():op.test(e)?d=3:B()}function y(e){ap.test(e)||("/"===e?d=12:">"===e?F():"<"===e?j():"="===e||cp.test(e)||up.test(e)?B():d=5)}function w(e){ap.test(e)?d=6:"/"===e?d=12:"="===e?d=7:">"===e?F():"<"===e?j():cp.test(e)&&B()}function x(e){ap.test(e)||("/"===e?d=12:"="===e?d=7:">"===e?F():"<"===e?j():cp.test(e)?B():d=5)}function k(e){ap.test(e)||('"'===e?d=8:"'"===e?d=9:/[>=`]/.test(e)?B():"<"===e?j():d=10)}function _(e){'"'===e&&(d=11)}function C(e){"'"===e&&(d=11)}function A(e){ap.test(e)?d=4:">"===e?F():"<"===e&&j()}function S(e){ap.test(e)?d=4:"/"===e?d=12:">"===e?F():"<"===e?j():(d=4,u--)}function E(e){">"===e?(h=new lh(nc(nc({},h),{isClosing:!0})),F()):d=4}function P(t){"--"===e.substr(u,2)?(u+=2,h=new lh(nc(nc({},h),{type:"comment"})),d=14):"DOCTYPE"===e.substr(u,7).toUpperCase()?(u+=7,h=new lh(nc(nc({},h),{type:"doctype"})),d=20):B()}function L(e){"-"===e?d=15:">"===e?B():d=16}function I(e){"-"===e?d=18:">"===e?B():d=16}function T(e){"-"===e&&(d=17)}function D(e){d="-"===e?18:16}function M(e){">"===e?F():"!"===e?d=19:"-"===e||(d=16)}function R(e){"-"===e?d=17:">"===e?F():d=16}function O(e){">"===e?F():"<"===e&&j()}function B(){d=0,h=c}function j(){d=1,h=new lh({idx:u})}function F(){var t=e.slice(p,h.idx);t&&o(t,p),"comment"===h.type?s(h.idx):"doctype"===h.type?a(h.idx):(h.isOpening&&r(h.name,h.idx),h.isClosing&&n(h.name,h.idx)),B(),p=u+1}function N(){var t=h.idx+(h.isClosing?2:1);return e.slice(t,u).toLowerCase()}p<u&&(i=e.slice(p,u),o(i,p),p=u+1)}var lh=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},dh=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=function(e){null==e&&(e=!0);return tp(e)?{schemeMatches:e,tldMatches:e,ipV4Matches:e}:{schemeMatches:!tp(e.schemeMatches)||e.schemeMatches,tldMatches:!tp(e.tldMatches)||e.tldMatches,ipV4Matches:!tp(e.ipV4Matches)||e.ipV4Matches}}(t.urls),this.email=tp(t.email)?t.email:this.email,this.phone=tp(t.phone)?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow=tp(t.newWindow)?t.newWindow:this.newWindow,this.stripPrefix=function(e){null==e&&(e=!0);return tp(e)?{scheme:e,www:e}:{scheme:!tp(e.scheme)||e.scheme,www:!tp(e.www)||e.www}}(t.stripPrefix),this.stripTrailingSlash=tp(t.stripTrailingSlash)?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=tp(t.decodePercentEncoding)?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var i=this.mention;if(!1!==i&&-1===Jp.indexOf(i))throw new Error("invalid `mention` cfg '".concat(i,"' - see docs"));var r,n=this.hashtag;if(!1!==n&&-1===$p.indexOf(n))throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate="number"==typeof(r=t.truncate)?{length:r,location:"end"}:function(e,t){for(var i in t)t.hasOwnProperty(i)&&void 0===e[i]&&(e[i]=t[i]);return e}(r||{},{length:Number.POSITIVE_INFINITY,location:"end"}),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,i){return new e(i).link(t)},e.parse=function(t,i){return new e(i).parse(t)},e.prototype.parse=function(e){var t=this,i=["a","style","script"],r=0,n=[];return uh(e,{onOpenTag:function(e){i.indexOf(e)>=0&&r++},onText:function(e,i){if(0===r){var o=e.split(/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),s=i;o.forEach((function(e,i){if(i%2==0){var r=t.parseText(e,s);n.push.apply(n,r)}s+=e.length}))}},onCloseTag:function(e){i.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(e){},onDoctype:function(e){}}),n=this.compactMatches(n),n=this.removeUnwantedMatches(n)},e.prototype.compactMatches=function(e){e.sort((function(e,t){return e.getOffset()-t.getOffset()}));for(var t=0;t<e.length-1;){var i=e[t],r=i.getOffset(),n=i.getMatchedText().length,o=r+n;if(t+1<e.length){if(e[t+1].getOffset()===r){var s=e[t+1].getMatchedText().length>n?t:t+1;e.splice(s,1);continue}if(e[t+1].getOffset()<o){e.splice(t+1,1);continue}}t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||rp(e,(function(e){return"hashtag"===e.getType()})),this.email||rp(e,(function(e){return"email"===e.getType()})),this.phone||rp(e,(function(e){return"phone"===e.getType()})),this.mention||rp(e,(function(e){return"mention"===e.getType()})),this.urls.schemeMatches||rp(e,(function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()})),this.urls.tldMatches||rp(e,(function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()})),this.urls.ipV4Matches||rp(e,(function(e){return"url"===e.getType()&&"ipV4"===e.getUrlMatchType()})),e},e.prototype.parseText=function(e,t){void 0===t&&(t=0),t=t||0;for(var i=ih(e,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),r=0,n=i.length;r<n;r++)i[r].setOffset(t+i[r].getOffset());return i},e.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var t=this.parse(e),i=[],r=0,n=0,o=t.length;n<o;n++){var s=t[n];i.push(e.substring(r,s.getOffset())),i.push(this.createMatchReturnVal(s)),r=s.getOffset()+s.getMatchedText().length}return i.push(e.substring(r)),i.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof pp?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new hp({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="4.0.0",e}();function ph(e){return dh.link(e,{stripPrefix:!1,email:!1,phone:!1})}window.customElements.define("buv-full-certificate-raw",class extends be{static get properties(){return{clickableUrls:Boolean,hasCertificateDefinition:Boolean,displayHTML:String}}_shouldRender(e,t,i){return!!(null==t?void 0:t.displayHTML)||!1===(null==t?void 0:t.hasCertificateDefinition)}_render({clickableUrls:e,hasCertificateDefinition:t,displayHTML:i}){return t?de`
448
+ ${qd}
449
+ ${function(e,t){const i=["buv-c-full-certificate","qa-fullscreen-certificate"];lc.certificates.displayHtmlHasNoWidthConstraint(e)&&i.push("buv-c-certificate--fixed-width");const r=t?ph(e):e;return de`<section class$=${i.join(" ")}>${Hd(r)}</section>`}(i,e)}
450
450
  <div class='buv-c-full-certificate__details'>
451
451
  <buv-final-verification-step class='buv-c-fullscreen-certificate__verification-status' isVisible hideLink standalone>
452
- <buv-verify-button type='link'>${Au("text.verifyAgain")}</buv-verify-button>
452
+ <buv-verify-button type='link'>${Eu("text.verifyAgain")}</buv-verify-button>
453
453
  </buv-final-verification-step>
454
454
  <buv-certificate-details display="grid" class='buv-c-full-certificate__details-list'></buv-certificate-details>
455
455
  </div>
456
- `:de``}});const dh=al((function(e){return de`
456
+ `:de``}});const hh=cl((function(e){return de`
457
457
  <buv-full-certificate-raw
458
458
  clickableUrls = '${e.clickableUrls}'
459
459
  hasCertificateDefinition = '${e.hasCertificateDefinition}'
460
460
  displayHTML = '${e.displayHTML}'
461
- ></buv-full-certificate-raw>`}),{mapStateToProps:e=>({hasCertificateDefinition:!!Su(e),displayHTML:Bu(e),clickableUrls:Sl(e)})});window.customElements.define("buv-full-certificate",dh);var ph=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-fullscreen-certificate{z-index:200;position:fixed;top:0;left:0;background-color:#fff;width:100vw;height:100vh;overflow:auto;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate{padding-top:170px}}.buv-c-fullscreen-certificate-header{box-shadow:0 1px 5px rgba(0,0,0,.15);width:100%;background-color:#fff}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header{position:fixed;top:0;z-index:10}}.buv-c-fullscreen-certificate-header__content{max-width:1440px;margin:0 auto;padding:20px;display:flex;align-items:center;position:relative;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header__content{flex-direction:column;justify-content:left;align-items:unset}}.buv-c-fullscreen-certificate__title{margin:0 30px 0 0}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__title{margin-bottom:10px}}.buv-c-fullscreen-certificate__close{top:27px;right:20px}.buv-c-fullscreen-certificate__content{padding:20px;display:flex;max-width:1440px;margin:20px auto 0}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__content{flex-direction:column-reverse;margin-top:0}}.buv-c-fullscreen-certificate__details{display:flex;flex-grow:1;flex-direction:column;max-width:280px;min-width:220px;margin-right:20px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__details{max-width:100vw;margin:20px 0 0}}.buv-c-fullscreen-certificate__verification-status{margin-bottom:15px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__verification-status{position:absolute;top:90px;width:calc(100% - 40px);margin:0}}.buv-c-fullscreen-certificate__details-item{margin-top:5px}.buv-c-fullscreen-certificate__separator{margin-top:30px;padding-top:30px;border-top:1px solid #f1f2f3}.buv-c-fullscreen-certificate__certificate{box-shadow:0 1px 5px rgba(0,0,0,.15);padding:20px;background-color:#fff;font-family:serif;text-align:center;color:#49555f;font-size:12px;word-wrap:break-word;min-height:calc(100vh - 145px);box-sizing:border-box;margin:0 auto;min-width:600px;line-height:initial}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__certificate{min-width:unset;width:100%;overflow:auto}}.buv-c-fullscreen-certificate__verify-other{margin-top:20px}.buv-c-fullscreen-certificate .buv-c-full-certificate-img{max-width:125px;max-height:125px}.buv-c-full-certificate__titles::before,.buv-c-full-certificate__titles::after{content:" ";display:block;background-color:#edf1f4;width:30%;text-align:center;margin:20px auto;height:2px}.buv-c-full-certificate__title{font-weight:normal;margin:0}.buv-c-full-certificate__title--name{color:#000;font-size:30px;margin-bottom:10px}.buv-c-full-certificate__title--main{font-size:21px;margin-bottom:10px}.buv-c-full-certificate__title--sub{font-size:16px;font-style:italic}.buv-c-full-certificate__description{margin:0 0 40px;line-height:1.5}.buv-c-full-certificate-signatures{list-style-type:none;display:flex;justify-content:space-around;width:100%;margin:0 0 20px;padding:0}.buv-c-full-certificate-signatures__signature{margin-right:30px;display:flex;flex-direction:column;justify-content:center}.buv-c-full-certificate-signatures__signature:last-child{margin:0}.buv-c-full-certificate-img--secondary{max-width:150px;max-height:150px}</style>`;window.customElements.define("buv-fullscreen-certificate-raw",class extends be{static get properties(){return{clickableUrls:Boolean,hasCertificateDefinition:Boolean,recipientName:String,displayHTML:String,onClose:Function,disableDownloadPdf:Boolean}}_shouldRender(e,t,i){return!!(null==t?void 0:t.displayHTML)||!1===(null==t?void 0:t.hasCertificateDefinition)}_render({clickableUrls:e,hasCertificateDefinition:t,recipientName:i,displayHTML:r,onClose:n,disableDownloadPdf:o}){if(!t)return de``;const a=["buv-c-fullscreen-certificate__certificate","qa-fullscreen-certificate"];return r&&cc.certificates.displayHtmlHasNoWidthConstraint(r)&&a.push("buv-c-certificate--fixed-width"),de`
462
- ${ph}
461
+ ></buv-full-certificate-raw>`}),{mapStateToProps:e=>({hasCertificateDefinition:!!Lu(e),displayHTML:Fu(e),clickableUrls:Ll(e)})});window.customElements.define("buv-full-certificate",hh);var fh=de`<style>.buv-o-text-11{font-size:11px}.buv-o-text-12{font-size:12px}.buv-o-text-13{font-size:13px}.buv-o-text-15{font-size:15px;line-height:20px}.buv-o-text-bold{font-weight:bold}.buv-c-certificate--fixed-width{max-width:460px;min-width:0;margin:0 auto}.buv-c-fullscreen-certificate{z-index:200;position:fixed;top:0;left:0;background-color:#fff;width:100vw;height:100vh;overflow:auto;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate{padding-top:170px}}.buv-c-fullscreen-certificate-header{box-shadow:0 1px 5px rgba(0,0,0,.15);width:100%;background-color:#fff}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header{position:fixed;top:0;z-index:10}}.buv-c-fullscreen-certificate-header__content{max-width:1440px;margin:0 auto;padding:20px;display:flex;align-items:center;position:relative;box-sizing:border-box}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate-header__content{flex-direction:column;justify-content:left;align-items:unset}}.buv-c-fullscreen-certificate__title{margin:0 30px 0 0}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__title{margin-bottom:10px}}.buv-c-fullscreen-certificate__close{top:27px;right:20px}.buv-c-fullscreen-certificate__content{padding:20px;display:flex;max-width:1440px;margin:20px auto 0}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__content{flex-direction:column-reverse;margin-top:0}}.buv-c-fullscreen-certificate__details{display:flex;flex-grow:1;flex-direction:column;max-width:280px;min-width:220px;margin-right:20px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__details{max-width:100vw;margin:20px 0 0}}.buv-c-fullscreen-certificate__verification-status{margin-bottom:15px}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__verification-status{position:absolute;top:90px;width:calc(100% - 40px);margin:0}}.buv-c-fullscreen-certificate__details-item{margin-top:5px}.buv-c-fullscreen-certificate__separator{margin-top:30px;padding-top:30px;border-top:1px solid #f1f2f3}.buv-c-fullscreen-certificate__certificate{box-shadow:0 1px 5px rgba(0,0,0,.15);padding:20px;background-color:#fff;font-family:serif;text-align:center;color:#49555f;font-size:12px;word-wrap:break-word;min-height:calc(100vh - 145px);box-sizing:border-box;margin:0 auto;min-width:600px;line-height:initial}@media only screen and (max-width: 750px){.buv-c-fullscreen-certificate__certificate{min-width:unset;width:100%;overflow:auto}}.buv-c-fullscreen-certificate__verify-other{margin-top:20px}.buv-c-fullscreen-certificate .buv-c-full-certificate-img{max-width:125px;max-height:125px}.buv-c-full-certificate__titles::before,.buv-c-full-certificate__titles::after{content:" ";display:block;background-color:#edf1f4;width:30%;text-align:center;margin:20px auto;height:2px}.buv-c-full-certificate__title{font-weight:normal;margin:0}.buv-c-full-certificate__title--name{color:#000;font-size:30px;margin-bottom:10px}.buv-c-full-certificate__title--main{font-size:21px;margin-bottom:10px}.buv-c-full-certificate__title--sub{font-size:16px;font-style:italic}.buv-c-full-certificate__description{margin:0 0 40px;line-height:1.5}.buv-c-full-certificate-signatures{list-style-type:none;display:flex;justify-content:space-around;width:100%;margin:0 0 20px;padding:0}.buv-c-full-certificate-signatures__signature{margin-right:30px;display:flex;flex-direction:column;justify-content:center}.buv-c-full-certificate-signatures__signature:last-child{margin:0}.buv-c-full-certificate-img--secondary{max-width:150px;max-height:150px}</style>`;window.customElements.define("buv-fullscreen-certificate-raw",class extends be{static get properties(){return{clickableUrls:Boolean,hasCertificateDefinition:Boolean,recipientName:String,displayHTML:String,onClose:Function,disableDownloadPdf:Boolean}}_shouldRender(e,t,i){return!!(null==t?void 0:t.displayHTML)||!1===(null==t?void 0:t.hasCertificateDefinition)}_render({clickableUrls:e,hasCertificateDefinition:t,recipientName:i,displayHTML:r,onClose:n,disableDownloadPdf:o}){if(!t)return de``;const s=["buv-c-fullscreen-certificate__certificate","qa-fullscreen-certificate"];return r&&lc.certificates.displayHtmlHasNoWidthConstraint(r)&&s.push("buv-c-certificate--fixed-width"),de`
462
+ ${fh}
463
463
  <section class='buv-c-fullscreen-certificate'>
464
464
  <header class='buv-c-fullscreen-certificate-header'>
465
465
  <div class='buv-c-fullscreen-certificate-header__content'>
466
466
  <h1 class='buv-c-fullscreen-certificate__title'>${i}</h1>
467
- ${id({onClick:n,className:"buv-c-fullscreen-certificate__close"})}
467
+ ${nd({onClick:n,className:"buv-c-fullscreen-certificate__close"})}
468
468
  </div>
469
469
  </header>
470
470
  <section class='buv-c-fullscreen-certificate__content'>
471
471
  <div class='buv-c-fullscreen-certificate__details'>
472
472
  <buv-final-verification-step class='buv-c-fullscreen-certificate__verification-status' isVisible hideLink standalone>
473
- <buv-verify-button type='link'>${Au("text.verifyAgain")}</buv-verify-button>
473
+ <buv-verify-button type='link'>${Eu("text.verifyAgain")}</buv-verify-button>
474
474
  </buv-final-verification-step>
475
475
  <buv-certificate-details display='column' hideRecipientName></buv-certificate-details>
476
476
  <buv-metadata class='buv-c-fullscreen-certificate__details-item buv-c-fullscreen-certificate__separator' display='plaintext'></buv-metadata>
477
477
  ${o?"":de`<buv-download-pdf-link class='buv-c-fullscreen-certificate__details-item' display='plaintext'></buv-download-pdf-link>`}
478
478
  <buv-download-link class='buv-c-fullscreen-certificate__details-item' display='plaintext'></buv-download-link>
479
479
  <buv-social-share class='buv-c-fullscreen-certificate__details-item' display='plaintext'></buv-social-share>
480
- ${xd({className:"buv-c-fullscreen-certificate__separator",showMotto:!0})}
480
+ ${_d({className:"buv-c-fullscreen-certificate__separator",showMotto:!0})}
481
481
  <buv-verify-other-certificate class='buv-c-fullscreen-certificate__verify-other'></buv-verify-other-certificate>
482
482
  </div>
483
- <div class$=${a.join(" ")}>
484
- ${function(e,t){const i=t?lh(e):e;return de`${$d(i)}`}(r,e)}
483
+ <div class$=${s.join(" ")}>
484
+ ${function(e,t){const i=t?ph(e):e;return de`${Hd(i)}`}(r,e)}
485
485
  </div>
486
486
  </section>
487
487
  </section>
488
- `}});const hh=al((function(e){return de`
488
+ `}});const gh=cl((function(e){return de`
489
489
  <buv-fullscreen-certificate-raw
490
490
  clickableUrls = '${e.clickableUrls}'
491
491
  hasCertificateDefinition = '${e.hasCertificateDefinition}'
@@ -493,13 +493,13 @@ const $d=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
493
493
  displayHTML = '${e.displayHTML}'
494
494
  onClose = '${e.onClose}'
495
495
  disableDownloadPdf = '${e.disableDownloadPdf}'
496
- ></buv-fullscreen-certificate-raw>`}),{mapDispatchToProps:{onClose:gd},mapStateToProps:e=>({recipientName:Lu(e),hasCertificateDefinition:!!Su(e),displayHTML:Bu(e),clickableUrls:Sl(e),disableDownloadPdf:wl(e)})});window.customElements.define("buv-fullscreen-certificate",hh);class fh extends be{constructor(){super(),this.onLoad=()=>{},this.hasRenderedOnce=!1}static get properties(){return Object.assign({onLoad:Function,errorMessage:String,hasCertificate:Boolean},jl)}_firstRendered(){this.onLoad(this._props),this.hasRenderedOnce=!0}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i),t.src!==i.src&&this.hasRenderedOnce&&this.onLoad({src:t.src}),t.explorerAPIs&&!i.explorerAPIs&&this.onLoad({explorerAPIs:t.explorerAPIs})}renderCertificate(e){switch(e.displayMode){case rl.FULL:return de`<buv-full-certificate></buv-full-certificate>`;case rl.FULLSCREEN:return de`<buv-fullscreen-certificate></buv-fullscreen-certificate>`;default:return de`<buv-card-certificate></buv-card-certificate>`}}_render(e){const t=e.hasCertificate?"buv-c-verifier-body buv-c-verifier-body--padded":"";return de`
497
- ${Nd}
496
+ ></buv-fullscreen-certificate-raw>`}),{mapDispatchToProps:{onClose:md},mapStateToProps:e=>({recipientName:Mu(e),hasCertificateDefinition:!!Lu(e),displayHTML:Fu(e),clickableUrls:Ll(e),disableDownloadPdf:kl(e)})});window.customElements.define("buv-fullscreen-certificate",gh);class bh extends be{constructor(){super(),this.onLoad=()=>{},this.hasRenderedOnce=!1}static get properties(){return Object.assign({onLoad:Function,errorMessage:String,hasCertificate:Boolean},Nl)}_firstRendered(){this.onLoad(this._props),this.hasRenderedOnce=!0}_propertiesChanged(e,t,i){this._props=e,super._propertiesChanged(e,t,i),t.src!==i.src&&this.hasRenderedOnce&&this.onLoad({src:t.src}),t.explorerAPIs&&!i.explorerAPIs&&this.onLoad({explorerAPIs:t.explorerAPIs})}renderCertificate(e){switch(e.displayMode){case ol.FULL:return de`<buv-full-certificate></buv-full-certificate>`;case ol.FULLSCREEN:return de`<buv-fullscreen-certificate></buv-fullscreen-certificate>`;default:return de`<buv-card-certificate></buv-card-certificate>`}}_render(e){const t=e.hasCertificate?"buv-c-verifier-body buv-c-verifier-body--padded":"";return de`
497
+ ${zd}
498
498
  <section class='buv-c-verifier-main'>
499
499
  <buv-drag-and-drop>
500
500
  <div class='buv-c-verifier-layout'>
501
501
  <section class$='${t}'>
502
- ${Ed(e.errorMessage,!0)}
502
+ ${Pd(e.errorMessage,!0)}
503
503
  <buv-certificate-input></buv-certificate-input>
504
504
  <buv-action-menu></buv-action-menu>
505
505
  ${this.renderCertificate(e)}
@@ -509,7 +509,7 @@ const $d=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
509
509
  </div>
510
510
  </buv-drag-and-drop>
511
511
  </section>
512
- `}}function gh(e){return e.errorMessage}window.customElements.define("buv-raw",fh);const bh={onLoad:function(e={}){return function(t){const i=function(e){return Object.keys(jl).reduce(((t,i)=>(e[i]&&(t[i]=e[i]),t)),{})}(e),{src:r,locale:n}=i;t({type:Te,payload:{options:i}}),cc.certificates.isPathToCertificateValidURI(r)?t(Ml(r)):function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(r)&&t(Dl(JSON.parse(r))),Nl(n)}}},mh=al((function(e={}){return de`<buv-raw
512
+ `}}function mh(e){return e.errorMessage}window.customElements.define("buv-raw",bh);const vh={onLoad:function(e={}){return function(t){const i=function(e){return Object.keys(Nl).reduce(((t,i)=>(e[i]&&(t[i]=e[i]),t)),{})}(e),{src:r,locale:n}=i;t({type:Ie,payload:{options:i}}),lc.certificates.isPathToCertificateValidURI(r)?t(Ol(r)):function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(r)&&t(Rl(JSON.parse(r))),zl(n)}}},yh=cl((function(e={}){return de`<buv-raw
513
513
  src='${e.src}'
514
514
  onLoad='${e.onLoad}'
515
515
  errorMessage='${e.errorMessage}'
@@ -526,4 +526,4 @@ const $d=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
526
526
  locale='${e.locale}'
527
527
  explorerAPIs='${e.explorerAPIs}'
528
528
  didResolverUrl='${e["did-resolver-url"]}'
529
- ></buv-raw>`}),{mapDispatchToProps:bh,mapStateToProps:e=>({errorMessage:gh(e),hasCertificate:!!Su(e)}),ownProps:Object.assign(Object.assign({},fh.properties),Bl)});window.customElements.define("blockcerts-verifier",mh);export{bs as A,Et as B,Wo as C,Xs as D,Ds as E,ys as F,wd as G,Kd as H,Ke as I,Ge as J,nt as S,hs as V,rc as _,ji as a,Ys as b,yn as c,Ns as d,cs as e,Gs as f,Fi as g,Za as h,ui as i,Us as j,Ss as k,vn as l,Sa as m,at as n,Bs as o,Bi as p,wn as q,ws as r,xn as s,_i as t,Ni as u,Nn as v,Kn as w,Do as x,zr as y,di as z};
529
+ ></buv-raw>`}),{mapDispatchToProps:vh,mapStateToProps:e=>({errorMessage:mh(e),hasCertificate:!!Lu(e)}),ownProps:Object.assign(Object.assign({},bh.properties),Fl)});window.customElements.define("blockcerts-verifier",yh);export{va as A,St as B,da as C,Wo as D,ec as E,Ra as F,ka as G,kd as H,Gd as I,Ke as J,Ge as K,nt as S,ga as V,oc as _,ji as a,Za as b,yn as c,za as d,ua as e,Wa as f,Fi as g,Xs as h,ui as i,qa as j,La as k,vn as l,Es as m,st as n,Fa as o,Bi as p,wn as q,_a as r,xn as s,_i as t,Ni as u,Nn as v,Kn as w,Do as x,Vr as y,di as z};