@blockcerts/blockcerts-verifier 1.72.2 → 1.72.3
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.
- package/bundle-stats.html +1 -1
- package/coverage/lcov.info +2089 -1413
- package/dist/main.js +119 -119
- package/package.json +3 -3
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 l(e){return"string"!=typeof e&&(e=String(e)),e}function u(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 f(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 p(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=f(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=f(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(p);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,r,n,o=f(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(v)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=l(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)]=l(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)}),u(e)},d.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},d.prototype.entries=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),u(e)},i&&(d.prototype[Symbol.iterator]=d.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function y(t,i){if(!(this instanceof y))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 y){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 v(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)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},b.call(y.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.ok=!1,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 _=e.DOMException;try{new _}catch(en){(_=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack}).prototype=Object.create(Error.prototype),_.prototype.constructor=_}function k(t,i){return new Promise(function(n,a){var s=new y(t,i);if(s.signal&&s.signal.aborted)return a(new _("Aborted","AbortError"));var u=new XMLHttpRequest;function f(){u.abort()}if(u.onload=function(){var e,t,i={statusText:u.statusText,headers:(e=u.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)};0===s.url.indexOf("file://")&&(u.status<200||u.status>599)?i.status=200:i.status=u.status,i.url="responseURL"in u?u.responseURL:i.headers.get("X-Request-URL");var r="response"in u?u.response:u.responseText;setTimeout(function(){n(new w(r,i))},0)},u.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},u.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},u.onabort=function(){setTimeout(function(){a(new _("Aborted","AbortError"))},0)},u.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?u.withCredentials=!0:"omit"===s.credentials&&(u.withCredentials=!1),"responseType"in u&&(r?u.responseType="blob":o&&(u.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)),u.setRequestHeader(e,l(i.headers[e]))}),s.headers.forEach(function(e,t){-1===h.indexOf(t)&&u.setRequestHeader(t,e)})}else s.headers.forEach(function(e,t){u.setRequestHeader(t,e)});s.signal&&(s.signal.addEventListener("abort",f),u.onreadystatechange=function(){4===u.readyState&&s.signal.removeEventListener("abort",f)}),u.send(void 0===s._bodyInit?null:s._bodyInit)})}k.polyfill=!0,e.fetch||(e.fetch=k,e.Headers=d,e.Request=y,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 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 l(e){return"string"!=typeof e&&(e=String(e)),e}function u(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 f(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function p(e){return new Promise(function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}})}function h(e){var t=new FileReader,i=p(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=f(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=f(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(h);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,r,n,o=f(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=p(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(v)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=l(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)]=l(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)}),u(e)},d.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},d.prototype.entries=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),u(e)},i&&(d.prototype[Symbol.iterator]=d.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function y(t,i){if(!(this instanceof y))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 y){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 v(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)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},b.call(y.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.ok=!1,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 _=e.DOMException;try{new _}catch(en){(_=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack}).prototype=Object.create(Error.prototype),_.prototype.constructor=_}function k(t,i){return new Promise(function(n,a){var s=new y(t,i);if(s.signal&&s.signal.aborted)return a(new _("Aborted","AbortError"));var u=new XMLHttpRequest;function f(){u.abort()}if(u.onload=function(){var e,t,i={statusText:u.statusText,headers:(e=u.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)};0===s.url.indexOf("file://")&&(u.status<200||u.status>599)?i.status=200:i.status=u.status,i.url="responseURL"in u?u.responseURL:i.headers.get("X-Request-URL");var r="response"in u?u.response:u.responseText;setTimeout(function(){n(new w(r,i))},0)},u.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},u.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},u.onabort=function(){setTimeout(function(){a(new _("Aborted","AbortError"))},0)},u.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?u.withCredentials=!0:"omit"===s.credentials&&(u.withCredentials=!1),"responseType"in u&&(r?u.responseType="blob":o&&(u.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof d||e.Headers&&i.headers instanceof e.Headers)){var p=[];Object.getOwnPropertyNames(i.headers).forEach(function(e){p.push(c(e)),u.setRequestHeader(e,l(i.headers[e]))}),s.headers.forEach(function(e,t){-1===p.indexOf(t)&&u.setRequestHeader(t,e)})}else s.headers.forEach(function(e,t){u.setRequestHeader(t,e)});s.signal&&(s.signal.addEventListener("abort",f),u.onreadystatechange=function(){4===u.readyState&&s.signal.removeEventListener("abort",f)}),u.send(void 0===s._bodyInit?null:s._bodyInit)})}k.polyfill=!0,e.fetch||(e.fetch=k,e.Headers=d,e.Request=y,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})
|
|
2
2
|
/**
|
|
3
3
|
@license
|
|
4
4
|
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 C=0,E=0,I=[],
|
|
39
|
+
let C=0,E=0,I=[],A=0,T=!1,L=document.createTextNode("");new window.MutationObserver(function(){T=!1;const e=I.length;for(let t=0;t<e;t++){let e=I[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}I.splice(0,e),E+=e}).observe(L,{characterData:!0});const M={run:e=>(T||(T=!0,L.textContent=A++),I.push(e),C++),cancel(e){const t=e-E;if(t>=0){if(!I[t])throw new Error("invalid async handle: "+e);I[t]=null}}},j=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e,D=M,R=P(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,D.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=j(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
|
|
71
|
+
*/class z{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=F(e);i=n>-1?n<e.length:i,t+=i?B: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)}}}`,B=`\x3c!--${N}--\x3e`,$=new RegExp(`${N}|${B}`),U=/[ \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 F(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 K=e=>-1!==e.index;class q{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=U.exec(r)[1],s=i.getNamedItem(a),c=s.value.split($);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($),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)=>W(t)?(t=t(e),Y):null===t?void 0:t,W=e=>"function"==typeof e&&!0===e.__litDirective,Y={},G=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]||!G(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(G(e)){if(e===this._previousValue)return;this._setText(e)}else e instanceof z?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=K(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.
|
|
@@ -108,7 +108,7 @@ const oe=(e,t)=>`${e}--${t}`,ae=["html","svg"];function se(e){ae.forEach(t=>{con
|
|
|
108
108
|
* Code distributed by Google as part of the polymer project is also
|
|
109
109
|
* subject to an additional IP rights grant found at
|
|
110
110
|
* http://polymer.github.io/PATENTS.txt
|
|
111
|
-
*/const de=(e,...t)=>new
|
|
111
|
+
*/const de=(e,...t)=>new z(e,t,"html",fe),fe=(e,t,i)=>{if("attribute"===t.type){if("on-"===t.rawName.substr(0,3)){const r=t.rawName.slice(3);return new ge(e,i,r)}const r=t.name.substr(t.name.length-1);if("$"===r){const r=t.name.slice(0,-1);return new Z(e,i,r,t.strings)}if("?"===r){const r=t.name.slice(0,-1);return new pe(e,i,r,t.strings)}return new he(e,i,t.rawName,t.strings)}return Q(e,t,i)};class pe extends Z{setValue(e,t){const i=this.strings;if(2!==i.length||""!==i[0]||""!==i[1])throw new Error("boolean attributes can only contain a single expression");{const i=J(this,e[t]);if(i===Y)return;i?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)}}}class he extends Z{setValue(e,t){const i=this.strings;let r;this._equalToPreviousValues(e,t)||(r=2===i.length&&""===i[0]&&""===i[1]?J(this,e[t]):this._interpolate(e,t),r!==Y&&(this.element[this.name]=r),this._previousValues=e)}}class ge{constructor(e,t,i){this.instance=e,this.element=t,this.eventName=i}setValue(e){const t=J(this,e);t!==this._listener&&(null==t?this.element.removeEventListener(this.eventName,this):null==this._listener&&this.element.addEventListener(this.eventName,this),this._listener=t)}handleEvent(e){"function"==typeof this._listener?this._listener.call(this.element,e):"function"==typeof this._listener.handleEvent&&this._listener.handleEvent(e)}}class be extends(O(HTMLElement)){constructor(){super(...arguments),this.__renderComplete=null,this.__resolveRenderComplete=null,this.__isInvalid=!1,this.__isChanging=!1}ready(){this._root=this._createRoot(),super.ready(),this._firstRendered()}_firstRendered(){}_createRoot(){return this.attachShadow({mode:"open"})}_shouldPropertiesChange(e,t,i){const r=this._shouldRender(e,t,i);return!r&&this.__resolveRenderComplete&&this.__resolveRenderComplete(!1),r}_shouldRender(e,t,i){return!0}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i);const r=this._render(e);r&&void 0!==this._root&&this._applyRender(r,this._root),this._didRender(e,t,i),this.__resolveRenderComplete&&this.__resolveRenderComplete(!0)}_flushProperties(){this.__isChanging=!0,this.__isInvalid=!1,super._flushProperties(),this.__isChanging=!1}_shouldPropertyChange(e,t,i){const r=super._shouldPropertyChange(e,t,i);return r&&this.__isChanging&&console.trace(`Setting properties in response to other properties changing considered harmful. Setting '${e}' from '${this._getProperty(e)}' to '${t}'.`),r}_render(e){throw new Error("_render() not implemented")}_applyRender(e,t){ue(e,t,this.localName)}_didRender(e,t,i){}_requestRender(){this._invalidateProperties()}_invalidateProperties(){this.__isInvalid=!0,super._invalidateProperties()}get renderComplete(){return this.__renderComplete||(this.__renderComplete=new Promise(e=>{this.__resolveRenderComplete=t=>{this.__resolveRenderComplete=this.__renderComplete=null,e(t)}}),!this.__isInvalid&&this.__resolveRenderComplete&&Promise.resolve().then(()=>this.__resolveRenderComplete(!1))),this.__renderComplete}}
|
|
112
112
|
/**
|
|
113
113
|
@license
|
|
114
114
|
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
|
@@ -117,43 +117,43 @@ 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 ye(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 ve=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),we=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${we()}`,REPLACE:`@@redux/REPLACE${we()}`};function _e(e,t,i){if("function"!=typeof e)throw new Error(ye(2));if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ye(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ye(1));return i(_e)(e,t)}let r=e,n=t,o=new Map,a=o,s=0,c=!1;function l(){a===o&&(a=new Map,o.forEach((e,t)=>{a.set(t,e)}))}function u(){if(c)throw new Error(ye(3));return n}function d(e){if("function"!=typeof e)throw new Error(ye(4));if(c)throw new Error(ye(5));let t=!0;l();const i=s++;return a.set(i,e),function(){if(t){if(c)throw new Error(ye(6));t=!1,l(),a.delete(i),o=null}}}function f(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||null===Object.getPrototypeOf(e)}(e))throw new Error(ye(7));if(void 0===e.type)throw new Error(ye(8));if("string"!=typeof e.type)throw new Error(ye(17));if(c)throw new Error(ye(9));try{c=!0,n=r(n,e)}finally{c=!1}return(o=a).forEach(e=>{e()}),e}f({type:xe.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ye(10));r=e,f({type:xe.REPLACE})},[ve]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ye(11));function i(){const e=t;e.next&&e.next(u())}i();return{unsubscribe:e(i)}},[ve](){return this}}}}}function ke(e,t){return function(...i){return t(e.apply(this,i))}}function Se(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 Pe=Se();function Ce(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Ee(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}Pe.withExtraArgument=Se,Ce(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})},Ee),Ce(function e(t,i){e.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:i,enumerable:!0})},Ee),Ce(function e(t,i){e.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:i,enumerable:!0})},Ee),Ce(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})},Ee);const Ie="AUTO_VERIFY",Te="INITIALIZE",Le="UPDATE_CERTIFICATE_DEFINITION",Ae="RESET_CERTIFICATE_DEFINITION",Me="UPDATE_CERTIFICATE_URL",je="VALIDATE_URL_INPUT",De="CLEAR_VERIFIED_STEPS",Re="STEP_VERIFIED",Oe="UPDATE_PARENT_STEP_STATUS",Ve="UPDATE_VERIFICATION_STATUS",Ne="UPDATE_FINAL_STEP",ze="SET_ERROR_MESSAGE",Be="SHOW_VERIFICATION_MODAL",$e="UPDATE_IS_GENERATING_PDF";const Ue={get:(e,t)=>{const i=t in e?e[t]:null;return i||console.warn("the service does not exist",t),i}};function Fe(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function He(e){return"string"==typeof e}var Ke;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(Ke||(Ke={}));const qe="{transaction_id}";var Je;!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"}(Je||(Je={}));var We,Ye=Je;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(We||(We={}));const Ge="{transaction_id}";var Ze,Xe;!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"}(Ze||(Ze={})),function(e){e.btc="btc",e.eth="eth",e.mocknet="mocknet"}(Xe||(Xe={}));const Qe={[Ze.Bitcoin]:{code:Ze.Bitcoin,blinkCode:Xe.btc,name:"Bitcoin",prefixes:["6a20","OP_RETURN "],signatureValue:"bitcoinMainnet",transactionTemplates:{full:`https://blockchain.info/tx/${Ge}`,raw:`https://blockchain.info/rawtx/${Ge}`}},[Ze.Ethmain]:{code:Ze.Ethmain,blinkCode:Xe.eth,name:"Ethereum",prefixes:["0x"],signatureValue:"ethereumMainnet",transactionTemplates:{full:`https://etherscan.io/tx/${Ge}`,raw:`https://etherscan.io/tx/${Ge}`}},[Ze.Ethropst]:{code:Ze.Ethropst,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumRopsten",transactionTemplates:{full:`https://ropsten.etherscan.io/tx/${Ge}`,raw:`https://ropsten.etherscan.io/getRawTx?tx=${Ge}`}},[Ze.Ethrinkeby]:{code:Ze.Ethrinkeby,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumRinkeby",transactionTemplates:{full:`https://rinkeby.etherscan.io/tx/${Ge}`,raw:`https://rinkeby.etherscan.io/getRawTx?tx=${Ge}`}},[Ze.Ethgoerli]:{code:Ze.Ethgoerli,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumGoerli",transactionTemplates:{full:`https://goerli.etherscan.io/tx/${Ge}`,raw:`https://goerli.etherscan.io/getRawTx?tx=${Ge}`}},[Ze.Ethsepolia]:{code:Ze.Ethsepolia,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumSepolia",transactionTemplates:{full:`https://sepolia.etherscan.io/tx/${Ge}`,raw:`https://sepolia.etherscan.io/getRawTx?tx=${Ge}`}},[Ze.Mocknet]:{code:Ze.Mocknet,blinkCode:Xe.mocknet,name:"Mocknet",test:!0,signatureValue:"mockchain",transactionTemplates:{full:"",raw:""}},[Ze.Regtest]:{code:Ze.Regtest,blinkCode:Xe.mocknet,name:"Mocknet",test:!0,signatureValue:"bitcoinRegtest",transactionTemplates:{full:"",raw:""}},[Ze.Testnet]:{code:Ze.Testnet,blinkCode:Xe.btc,name:"Bitcoin Testnet",signatureValue:"bitcoinTestnet",transactionTemplates:{full:`https://testnet.blockchain.info/tx/${Ge}`,raw:`https://testnet.blockchain.info/rawtx/${Ge}`}}};const et=1,tt=1;function it({explorerAPI:e,transactionIdPlaceholder:t=Ge,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!==Qe.bitcoin.code&&e!==Qe.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 rt=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 nt(e){return rt(this,void 0,void 0,function*(){var t;let{url:i}=e;if(!i)throw new Error("URL is missing");i.startsWith("http://")&&!e.forceHttp&&(console.warn(`Upgrading requested url ${i} to https protocol.`),i=i.replace("http://","https://"));const r={};let n,o;e["bearer-token"]&&(r.Authorization=`Bearer ${e["bearer-token"]}`),e.body&&(n=JSON.stringify(e.body),r["Content-Type"]="application/json");try{o=yield fetch(i,{method:null!==(t=e.method)&&void 0!==t?t:"GET",headers:r,body:n})}catch(e){const t=e instanceof Error?e.message:"Unknown network error";throw console.error(`Request failed with error ${t}`),new Error(t)}const a=yield o.text();if(!o.ok){console.log(a);const e=`Error fetching url:${i}; status code:${o.status}`;throw new Error(e)}return a})}function ot(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function at(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(ot(e,r))return e.slice(r.length)}return e}var st=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 ct={[Ze.Ethmain]:1,[Ze.Ethgoerli]:5,[Ze.Ethsepolia]:11155111};function lt(e=Ze.Ethmain){const t=ct[e];if(!t)throw new Error(`Unsupported chain: ${e}`);return`https://api.etherscan.io/v2/api?chainid=${t}&module=proxy`}const ut={serviceURL:function(e){return`${lt(e)}&action=eth_getTransactionByHash&txhash=${Ge}`},serviceName:We.etherscan,parsingFunction:function(e){return st(this,arguments,void 0,function*({jsonResponse:e,chain:t,key:i,keyPropertyName:r}){const n=lt(t),o={serviceURL:{main:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${Ge}`,test:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${Ge}`}},a={serviceURL:{main:`${n}&action=eth_blockNumber`,test:`${n}&action=eth_blockNumber`}};const s=yield function(e,t){return st(this,void 0,void 0,function*(){const n=e.result.blockNumber,s=it({explorerAPI:Object.assign(Object.assign({},o),{key:i,keyPropertyName:r}),transactionId:n,chain:t});try{const e=yield nt({url:s}),o=JSON.parse(e).result;return yield function(e,t){return st(this,void 0,void 0,function*(){const n=it({explorerAPI:Object.assign(Object.assign({},a),{key:i,keyPropertyName:r}),chain:e});let o;try{o=yield nt({url:n})}catch(e){throw console.log("checkEtherScanConfirmations error",e),new Error("Unable to get remote hash")}const s=JSON.parse(o).result;if(s-t<et)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:at(i.input,Qe.ethmain.prefixes),issuingAddress:n,time:r,revokedAddresses:[]}}(e,s)})},priority:-1};function dt(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){var t;let i,r;const n=null!==(t=/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/.exec(e))&&void 0!==t?t:[];return n[1]?(i=n[1].split(/\D/).map(function(e){return parseInt(e,10)||0}),i[1]-=1,i=new Date(Date.UTC.apply(Date,i)),i.getDate()?(n[5]&&(r=parseInt(n[5],10)/100*60,n[6]&&(r+=parseInt(n[6],10)),"+"===n[4]&&(r*=-1),r&&i.setUTCMinutes(i.getUTCMinutes()+r)),i):null):null}(e)}function ft(e){return""===e?"":dt(`${e}`)}function ht(e){return new Date(1e3*e)}const pt={serviceURL:{main:`https://api.blockcypher.com/v1/eth/main/txs/${Ge}?limit=500`,test:`https://api.blockcypher.com/v1/beth/test/txs/${Ge}?limit=500`},serviceName:We.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<et)throw new Error("Not enough");const t=ft(e.received),i=e.outputs,r=i[i.length-1];let n=e.inputs[0].addresses[0];const o=at(r.script,Qe.ethmain.prefixes);return n=function(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(!ot(e,r))return`${r}${e}`}return e}(n,Qe.ethmain.prefixes),{remoteHash:o,issuingAddress:n,time:t,revokedAddresses:i.filter(e=>!!e.spent_by).map(e=>e.addresses[0])}},priority:-1};const gt={serviceURL:{main:`https://blockstream.info/api/tx/${Ge}`,test:`https://blockstream.info/testnet/api/tx/${Ge}`},serviceName:We.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=ht(e.status.block_time),i=e.vout,r=i[i.length-1],n=e.vin[0].prevout.scriptpubkey_address;return{remoteHash:at(r.scriptpubkey,Qe.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter(e=>!!e.scriptpubkey_address).map(e=>e.scriptpubkey_address)}},priority:-1};const bt={serviceURL:{main:`https://api.blockcypher.com/v1/btc/main/txs/${Ge}?limit=500`,test:`https://api.blockcypher.com/v1/btc/test3/txs/${Ge}?limit=500`},serviceName:We.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<et)throw new Error("Number of transaction confirmations were less than the minimum required, according to Blockcypher API");const t=ft(e.received),i=e.outputs,r=i[i.length-1],n=e.inputs[0].addresses[0];return{remoteHash:at(r.script,Qe.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter(e=>!!e.spent_by).map(e=>e.addresses[0])}},priority:-1};var mt=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 yt(e){return e.map(e=>({getTxData:(t,i)=>mt(this,void 0,void 0,function*(){return yield function(e,t,i){return mt(this,void 0,void 0,function*(){const r=it({explorerAPI:e,transactionId:t,chain:i});try{console.log("calling getTransactionFromApi url:",r);const t=yield nt({url:r});return yield e.parsingFunction(Object.assign({jsonResponse:JSON.parse(t),chain:i},e))}catch(e){throw console.log("getTransactionFromApi error",e),new Error("Unable to get remote hash")}})}(e,t,i)}),priority:e.priority}))}const vt=[bt,gt],wt=[ut,pt];var xt=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 _t(e){return xt(this,arguments,void 0,function*({serviceUrl:e,transactionId:t}){const i={method:"eth_getTransactionByHash",jsonrpc:"2.0",id:"getbyhash",params:["0x"+t]},r=yield nt({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 nt({url:e,body:o,method:"POST"}),s=JSON.parse(a),c=n.result,l=s.result,u=new Date(1e3*parseInt(l.timestamp,16)),d=c.from;return{remoteHash:at(c.input,["0x"]),issuingAddress:d,time:u,revokedAddresses:[]}})}var kt=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 St(e){return kt(this,arguments,void 0,function*({serviceUrl:e,transactionId:t}){const i={method:"getrawtransaction",jsonrpc:"2.0",id:"rpctest",params:[t,!0]},r=yield nt({url:e,body:i,method:"POST"}),n=JSON.parse(r).result;return{issuingAddress:n.vout[0].scriptPubKey.addresses[0],remoteHash:at(n.vout[1].scriptPubKey.asm,["6a20","OP_RETURN "]),time:ht(n.blocktime),revokedAddresses:n.vout.filter(e=>!!e.scriptPubKey.addresses).map(e=>e.scriptPubKey.addresses).flat()}})}var Pt=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 Ct(e=[],t=[]){const i=e.filter(e=>e&&e.serviceName&&We[e.serviceName]);return i.length?t.map(t=>{const r=i.findIndex(e=>e.serviceName===t.serviceName);if(-1===r)return t;const n=i[r];!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.`)}(n);const o=e.findIndex(e=>e&&e.serviceName===n.serviceName);return o>-1&&e.splice(o,1),i.splice(r,1),Object.assign({},t,n)}):t}function Et(e){return e.map(e=>(e.parsingFunction||(e.parsingFunction="btc"===e.chainType?St:_t),e)).map(e=>({getTxData:t=>Pt(this,void 0,void 0,function*(){return yield e.parsingFunction(Object.assign(Object.assign({},e),{transactionId:t}))}),priority:e.priority}))}function It(e){const{bitcoin:t,ethereum:i}={bitcoin:yt(Ct(r=e,vt)),ethereum:yt(Ct(r,wt))};var r;const{custom:n}=function(e){return{custom:Et(e)}}(e.filter(e=>"rpc"===e.apiType));return{bitcoin:t,ethereum:i,custom:[...n,...yt(e.filter(e=>"rpc"!==e.apiType))]}}var Tt,Lt=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 At(e,t){var i;switch(e){case Qe[Ze.Bitcoin].code:case Qe[Ze.Regtest].code:case Qe[Ze.Testnet].code:case Qe[Ze.Mocknet].code:return t.bitcoin;case Qe[Ze.Ethmain].code:case Qe[Ze.Ethropst].code:case Qe[Ze.Ethrinkeby].code:case Qe[Ze.Ethgoerli].code:case Qe[Ze.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 Mt(e,t,i,r){return Lt(this,void 0,void 0,function*(){try{const n=function(e,t,i){if(tt>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 function(e){return Lt(this,void 0,void 0,function*(){return new Promise((t,i)=>{if(!e.length)return void i(new Error("No explorers configured"));let r=e.length,n=!1;const o=()=>{r-=1,n||0!==r||i(new Error("Could not confirm transaction data."))},a=e=>!!e&&!!e.issuingAddress&&!!e.remoteHash;for(const i of e)i.then(e=>{n||(a(e)?(n=!0,t(e)):o())}).catch(()=>{n||o()})})})}(n)}catch(n){if(t<e.length-1)return t++,yield Mt(e,t,i,r);throw n}})}function jt(e){return Lt(this,arguments,void 0,function*({transactionId:e,chain:t,explorerAPIs:i=[]}){const r=It(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(tt>r)throw new Error("Invalid application configuration; check the CONFIG.MinimumBlockchainExplorers configuration value");return i}({defaultAPIs:At(t,r),customAPIs:r.custom});return yield Mt(n,0,e,t)})}!function(e){e.mainnet="mainnet",e.testnet="testnet"}(Tt||(Tt={}));var Dt="ecdsa-koblitz-pubkey:1",Rt="https://openbadgespec.org/v2/context.json",Ot="https://www.w3.org/2018/credentials/v1",Vt="https://www.w3.org/ns/credentials/v2",Nt="https://w3id.org/blockcerts/schema/2.0/context.json",zt="https://w3id.org/blockcerts/v2",Bt="https://www.blockcerts.org/schema/2.0/context.json",$t="https://w3id.org/blockcerts/schema/2.1/context.json",Ut="https://w3id.org/blockcerts/v2.1",Ft="https://www.blockcerts.org/schema/2.1/context.json",Ht="https://w3id.org/blockcerts/schema/3.0/context.json",Kt="https://w3id.org/blockcerts/v3",qt="https://www.blockcerts.org/schema/3.0/context.json",Jt="https://w3id.org/blockcerts/schema/3.1/context.json",Wt="https://w3id.org/blockcerts/v3.1",Yt="https://www.blockcerts.org/schema/3.1/context.json",Gt="https://w3id.org/blockcerts/schema/3.2/context.json",Zt="https://w3id.org/blockcerts/v3.2",Xt="https://www.blockcerts.org/schema/3.2/context.json",Qt="https://w3id.org/security/suites/merkle-2019/v1",ei="https://w3id.org/security/suites/chained-2021/v1",ti="https://w3id.org/vc/status-list/2021/v1",ii="https://w3id.org/security/data-integrity/v2",ri={"@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"}},ni={"@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"}]},oi={"@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"}]},ai={"@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"}}},si={"@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"}}},ci={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",schema:"https://schema.org/",sec:"https://w3id.org/security#",BlockcertsCredential:"bc:BlockcertsCredential",BlockcertsIssuerProfile:"bc:BlockcertsIssuerProfile",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"}}},email:{"@id":"schema:email"},publicKey:{"@context":{created:{"@id":"bc:created"}},"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"},revocationList:{"@id":"bc:revocationList"}}};const li={};li["https://w3id.org/openbadges/v2"]=ri,li[Rt]=ri,li[Ot]={"@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"}}},li[Vt]={"@context":{"@protected":!0,id:"@id",type:"@type",description:"https://schema.org/description",digestMultibase:{"@id":"https://w3id.org/security#digestMultibase","@type":"https://w3id.org/security#multibase"},digestSRI:{"@id":"https://www.w3.org/2018/credentials#digestSRI","@type":"https://www.w3.org/2018/credentials#sriString"},mediaType:{"@id":"https://schema.org/encodingFormat"},name:"https://schema.org/name",VerifiableCredential:{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@protected":!0,id:"@id",type:"@type",confidenceMethod:{"@id":"https://www.w3.org/2018/credentials#confidenceMethod","@type":"@id"},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"},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"},relatedResource:{"@id":"https://www.w3.org/2018/credentials#relatedResource","@type":"@id"},renderMethod:{"@id":"https://www.w3.org/2018/credentials#renderMethod","@type":"@id"},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@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"}}},EnvelopedVerifiableCredential:"https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential",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"},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},verifiableCredential:{"@id":"https://www.w3.org/2018/credentials#verifiableCredential","@type":"@id","@container":"@graph","@context":null}}},EnvelopedVerifiablePresentation:"https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation",JsonSchemaCredential:"https://www.w3.org/2018/credentials#JsonSchemaCredential",JsonSchema:{"@id":"https://www.w3.org/2018/credentials#JsonSchema","@context":{"@protected":!0,id:"@id",type:"@type",jsonSchema:{"@id":"https://www.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",encodedList:{"@id":"https://www.w3.org/ns/credentials/status#encodedList","@type":"https://w3id.org/security#multibase"},statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",ttl:"https://www.w3.org/ns/credentials/status#ttl"}},BitstringStatusListEntry:{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusListEntry","@context":{"@protected":!0,id:"@id",type:"@type",statusListCredential:{"@id":"https://www.w3.org/ns/credentials/status#statusListCredential","@type":"@id"},statusListIndex:"https://www.w3.org/ns/credentials/status#statusListIndex",statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",statusMessage:{"@id":"https://www.w3.org/ns/credentials/status#statusMessage","@context":{"@protected":!0,id:"@id",type:"@type",message:"https://www.w3.org/ns/credentials/status#message",status:"https://www.w3.org/ns/credentials/status#status"}},statusReference:{"@id":"https://www.w3.org/ns/credentials/status#statusReference","@type":"@id"},statusSize:{"@id":"https://www.w3.org/ns/credentials/status#statusSize","@type":"https://www.w3.org/2001/XMLSchema#integer"}}},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"},cryptosuite:{"@id":"https://w3id.org/security#cryptosuite","@type":"https://w3id.org/security#cryptosuiteString"},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"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@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"}}},"...":{"@id":"https://www.iana.org/assignments/jwt#..."},_sd:{"@id":"https://www.iana.org/assignments/jwt#_sd","@type":"@json"},_sd_alg:{"@id":"https://www.iana.org/assignments/jwt#_sd_alg"},aud:{"@id":"https://www.iana.org/assignments/jwt#aud","@type":"@id"},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"}}},exp:{"@id":"https://www.iana.org/assignments/jwt#exp","@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"},iss:{"@id":"https://www.iana.org/assignments/jose#iss","@type":"@id"},jku:{"@id":"https://www.iana.org/assignments/jose#jku","@type":"@id"},kid:{"@id":"https://www.iana.org/assignments/jose#kid","@type":"@id"},nbf:{"@id":"https://www.iana.org/assignments/jwt#nbf","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},sub:{"@id":"https://www.iana.org/assignments/jose#sub","@type":"@id"},x5u:{"@id":"https://www.iana.org/assignments/jose#x5u","@type":"@id"}}},li[Nt]=ni,li[Bt]=ni,li[zt]=ni,li[$t]=oi,li[Ft]=oi,li[Ut]=oi,li[Ht]=ai,li[qt]=ai,li[Kt]=ai,li[Jt]=si,li[Yt]=si,li[Wt]=si,li[Gt]=ci,li[Xt]=ci,li[Zt]=ci,li[Qt]={"@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"}}}}},li[ei]={"@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"}}}}},li[ti]={"@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"}}}}},li[ii]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},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"}}}}};var ui={"@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"}]},di={"@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"}}},fi={"@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"}}},hi={"@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"}}},pi={"@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"}}}}},gi={"@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"}}}}};li["https://w3id.org/blockcerts/schema/2.0-alpha/context.json"]=ui,li["https://www.blockcerts.org/schema/2.0-alpha/context.json"]=ui,li["https://www.blockcerts.org/schema/3.0-alpha/context.json"]=di,li["https://w3id.org/blockcerts/schema/3.0-alpha/context.json"]=di,li["https://w3id.org/blockcerts/v3.0-alpha"]=di,li["https://www.blockcerts.org/schema/3.0-beta/context.json"]=fi,li["https://w3id.org/blockcerts/schema/3.0-beta/context.json"]=fi,li["https://w3id.org/blockcerts/v3.0-beta"]=fi,li["https://w3id.org/security/suites/ed25519-2020/v1"]=gi,li["https://ns.did.ai/suites/secp256k1-2019/v1"]=pi,li["https://w3id.org/security/suites/secp256k1-2019/v1"]=pi,li["https://www.w3.org/ns/did/v1"]=hi;const bi={locale:"en-US"};var mi=Object.freeze({__proto__:null,isMainnet:function(e){return Fe(e,"1")||Fe(e,Dt)}});var yi={locale:"en-US"},vi={"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:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",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",checkCredentialSchemaConformityLabel:"Check Conformity with Credential Schema",checkCredentialSchemaConformityLabelPending:"Checking Conformity with Credential Schema",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",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",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",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},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",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",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 on ",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.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],pattern:"MM DD, YYYY"}},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:{assertProofValidityLabel:"Vérification de l'objectif de la signature",assertProofValidityLabelPending:"Vérification de l'objectif de la signature",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é",checkCredentialSchemaConformityLabel:"Vérification de la conformité avec le schéma du certificat",checkCredentialSchemaConformityLabelPending:"Vérification de la conformité avec le schéma du certificat",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é",ensureVerificationMethodValidityLabel:"Vérification de la validité de la méthode de vérification",ensureVerificationMethodValidityLabelPending:"Vérification de la validité de la méthode de vérification",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",validateDateFormatLabel:"Vérification du format des dates",validateDateFormatLabelPending:"Vérification du format des dates",verifyIssuerProfileLabel:"Vérification du profil de l'émetteur",verifyIssuerProfileLabelPending:"Vérification du profil de l'émetteur"},revocation:{preReason:"Raison :",reason:"Ce certificat a été ${CREDENTIAL_STATUS} par l'émetteur le ",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",checkCredentialSchemaConformity:"Ce certificat n'est pas conforme avec le schema de certificat fourni",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.",validateDateFormat:"Le format de date spécifié n'est pas conforme aux exigences de la spécification (RFC3339). Propriété :"},date:{months:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aout","Sept","Oct","Nov","Déc"],pattern:"DD MM YYYY"}},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:{assertProofValidityLabel:"Afirmar propósito de la prueba",assertProofValidityLabelPending:"Afirmando propósito de la prueba",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",checkCredentialSchemaConformityLabel:"Verificar conformidad con el esquema del certificado",checkCredentialSchemaConformityLabelPending:"Verificando conformidad con el esquema del certificado",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",ensureVerificationMethodValidityLabel:"Verificar Validez del Método de Verificación",ensureVerificationMethodValidityLabelPending:"Verificando Validez del Método de Verificació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",validateDateFormatLabel:"Verificar formato de fecha",validateDateFormatLabelPending:"Verificando formato de fecha",verifyIssuerProfileLabel:"Verificar perfil del emisor",verifyIssuerProfileLabelPending:"Verificando perfil del emisor"},revocation:{preReason:"Motivo:",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",checkCredentialSchemaConformity:"Este certificado no cumple con el esquema de certificado especificado",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 el ",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.",validateDateFormat:"El formato de fecha especificado no cumple con los requisitos de la especificación (RFC3339). Propiedad:"},date:{months:["enero","feb","marzo","abr","mayo","jun","jul","agosto","set","oct","nov","dic"],pattern:"MM DD, YYYY"}},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:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",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",checkCredentialSchemaConformityLabel:"Check conformity with credential schema",checkCredentialSchemaConformityLabelPending:"Checking conformity with credential schema",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",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",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",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},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",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",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 fid-data - ",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.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Diċembru"],pattern:"DD MM YYYY"}},"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:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",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:"Controllare firma del documento",checkDocumentSignatureLabelPending:"Controllo firma del documento",checkMerkleRootLabel:"Controllare radice di Merkle",checkMerkleRootLabelPending:"Controllo radice di Merkle",checkReceiptLabel:"Verificare ricevuta",checkReceiptLabelPending:"Verifica ricevuta",checkAuthenticityLabel:"Verificare autenticità",checkAuthenticityLabelPending:"Verifica autenticità",checkCredentialSchemaConformityLabel:"Verificare conformità con lo schema del certificato",checkCredentialSchemaConformityLabelPending:"Verifica conformità con lo schema del certificato",checkRevokedStatusLabel:"Verificare stato revocato",checkRevokedStatusLabelPending:"Verifica stato revocato",checkExpiresDateLabel:"Verificare data di scadenza",checkExpiresDateLabelPending:"Verifica data di scadenza",ensureValidityPeriodStartedLabel:"Verificare data di inizio validità",ensureValidityPeriodStartedLabelPending:"Verifica data di inizio validità",ensureVerificationMethodValidityLabel:"Verificare validità del metodo di verifica",ensureVerificationMethodValidityLabelPending:"Verifica validità del metodo di verifica",controlVerificationMethodLabel:"Controllare il metodo di verifica",controlVerificationMethodLabelPending:"Controllo del metodo di verifica",retrieveVerificationMethodPublicKeyLabel:"Estrarre chiave pubblica dal documento DID",retrieveVerificationMethodPublicKeyLabelPending:"Estrazione chiave pubblica dal documento DID",deriveIssuingAddressFromPublicKeyLabel:"Derivare l'indirizzo di emissione dalla chiave pubblica",deriveIssuingAddressFromPublicKeyLabelPending:"Derivazione dell'indirizzo di emissione dalla chiave pubblica",compareIssuingAddressLabel:"Confrontare gli indirizzi",compareIssuingAddressLabelPending:"Confronto degli indirizzi",checkImagesIntegrityLabel:"Verificare l'integrità delle immagini",checkImagesIntegrityLabelPending:"Verifica dell'integrità delle immagini",validateDateFormatLabel:"Verificare il formato della data",validateDateFormatLabelPending:"Verifica del formato della data",verifyIssuerProfileLabel:"Verificare il profilo dell'emittente",verifyIssuerProfileLabelPending:"Verifica del profilo dell'emittente"},revocation:{preReason:"Motivo indicato:",reason:"Questo certificato è stato ${CREDENTIAL_STATUS} dall'emittente.",revocationListAuthenticityFailure:"L'autenticità dell'elenco di revoca non è stata confermata.",noRevocationStatusList2021Found:"Nessun elenco di stato di revoca trovato all'URL specificato per '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:"La firma ${SIGNATURE_TYPE} di questo certificato è stata verificata con successo."},multisign:{label:"Verificato",description:"Tutte le firme digitali di questo certificato sono state verificate con successo."}},errors:{certificateNotValid:"Questo non è un certificato valido",checkCredentialSchemaConformity:"Questo certificato non è conforme allo schema di certificazione specificato",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 il ",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.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],pattern:"DD MM YYYY"}},ja:{steps:{formatValidationLabel:"形式の検証",formatValidationLabelPending:"形式を検証",signatureVerificationLabel:"証明の検証",signatureVerificationLabelPending:"証明を検証",identityVerificationLabel:"アイデンティティの検証",identityVerificationLabelPending:"アイデンティティを検証",statusCheckLabel:"ステータスの確認",statusCheckLabelPending:"ステータスを確認"},subSteps:{assertProofValidityLabel:"証明の目的を主弭する",assertProofValidityLabelPending:"証明の目的を主弭中",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:"真正性を確認",checkCredentialSchemaConformityLabel:"Check conformity with credential schema",checkCredentialSchemaConformityLabelPending:"Checking conformity with credential schema",checkRevokedStatusLabel:"取消ステータスの確認",checkRevokedStatusLabelPending:"取消ステータスを確認",checkExpiresDateLabel:"有効期限の確認",checkExpiresDateLabelPending:"有効期限を確認",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",controlVerificationMethodLabel:"検証方法の設定",controlVerificationMethodLabelPending:"検証方法を設定",retrieveVerificationMethodPublicKeyLabel:"DID Documentからの公開鍵取得",retrieveVerificationMethodPublicKeyLabelPending:"DID Documentから公開鍵を取得",deriveIssuingAddressFromPublicKeyLabel:"公開鍵からの発行者アドレス取得",deriveIssuingAddressFromPublicKeyLabelPending:"公開鍵から発行者アドレスを取得",compareIssuingAddressLabel:"アドレスの照合",compareIssuingAddressLabelPending:"アドレスを照合",checkImagesIntegrityLabel:"画像の保全性の確認",checkImagesIntegrityLabelPending:"画像の保全性を確認",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},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:"この証明書は無効です",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",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.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],pattern:"YYYY年-MM-DD日"}}};function wi(e,t){return e&&t?vi[yi.locale]?vi[yi.locale][e]?vi[yi.locale][e][t]?vi[yi.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]":""}function xi(){return Object.keys(vi)}var _i,ki=Object.freeze({__proto__:null,detectLocale:function(){return navigator.language||bi.locale},ensureIsSupported:function(e){let t;const i=uh.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=bi.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 wi(e,t)},getDateFormat:function(e){const t=wi("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=wi("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},getSupportedLanguages:xi,getText:wi,setLocale:function(e){yi.locale=e}});!function(e){e.REVOKED="revoked",e.SUSPENDED="suspended"}(_i||(_i={}));class Si{publicKey;created;revoked;expires;constructor(e,t,i,r){this.publicKey=e,this.created=t,this.revoked=i,this.expires=r}}class Pi{image;jobTitle;name;constructor(e,t,i){this.image=e,this.jobTitle=t,this.name=i}}class Ci extends Error{stepCode;constructor(e,t){super(t),this.stepCode=e}}var Ei=Object.freeze({__proto__:null,generateRevocationReason:function(e="",t=_i.REVOKED){const i=wi("revocation",t);return e=(e=e.trim()).length>0?` ${wi("revocation","preReason")} ${e}${"."!==e.slice(-1)?".":""}`:"",`${wi("revocation","reason").replace("${CREDENTIAL_STATUS}",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(Qe).map(e=>Qe[e]).find(t=>t.signatureValue===e);if(void 0===t)throw new Error(wi("errors","getChain"));return t}(e.chain)}}return function(e=""){return mi.isMainnet(e)?Qe.bitcoin:Qe.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 Ci("",wi("errors","getTransactionId"))}},getTransactionLink:function(e,t){return e&&t?{rawTransactionLink:t.transactionTemplates.raw.replace(qe,e),transactionLink:t.transactionTemplates.full.replace(qe,e)}:null}});var Ii=Object.freeze({__proto__:null,isMockChain:function(e){if(e){const t="string"==typeof e?e:e.code;return!!Object.keys(Qe).some(e=>e===t)&&!!Qe[t].test}return!1}});const Ti={value:"https://dev.uniresolver.io/1.0/identifiers",set url(e){this.value=e},get url(){return this.value}};function Li(e){return e.startsWith("did:",0)}function Ai(e){return e.startsWith("did:key:",0)}var Mi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Di(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var i=function e(){var i=!1;try{i=this instanceof e}catch{}return i?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}var Ri={exports:{}},Oi="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Vi=[],Ni=[],zi="undefined"!=typeof Uint8Array?Uint8Array:Array,Bi=!1;function $i(){Bi=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Vi[t]=e[t],Ni[e.charCodeAt(t)]=t;Ni["-".charCodeAt(0)]=62,Ni["_".charCodeAt(0)]=63}function Ui(e){return Vi[e>>18&63]+Vi[e>>12&63]+Vi[e>>6&63]+Vi[63&e]}function Fi(e,t,i){for(var r,n=[],o=t;o<i;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],n.push(Ui(r));return n.join("")}function Hi(e){var t;Bi||$i();for(var i=e.length,r=i%3,n="",o=[],a=16383,s=0,c=i-r;s<c;s+=a)o.push(Fi(e,s,s+a>c?c:s+a));return 1===r?(t=e[i-1],n+=Vi[t>>2],n+=Vi[t<<4&63],n+="=="):2===r&&(t=(e[i-2]<<8)+e[i-1],n+=Vi[t>>10],n+=Vi[t>>4&63],n+=Vi[t<<2&63],n+="="),o.push(n),o.join("")}function Ki(e,t,i,r,n){var o,a,s=8*n-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=i?n-1:0,f=i?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)}function qi(e,t,i,r,n,o){var a,s,c,l=8*o-n-1,u=(1<<l)-1,d=u>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=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=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):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+=p,s/=256,n-=8);for(a=a<<n|s,l+=n;l>0;e[i+h]=255&a,h+=p,a/=256,l-=8);e[i+h-p]|=128*g}var Ji={}.toString,Wi=Array.isArray||function(e){return"[object Array]"==Ji.call(e)};Xi.TYPED_ARRAY_SUPPORT=void 0===Oi.TYPED_ARRAY_SUPPORT||Oi.TYPED_ARRAY_SUPPORT;var Yi=Gi();function Gi(){return Xi.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Zi(e,t){if(Gi()<t)throw new RangeError("Invalid typed array length");return Xi.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Xi.prototype:(null===e&&(e=new Xi(t)),e.length=t),e}function Xi(e,t,i){if(!(Xi.TYPED_ARRAY_SUPPORT||this instanceof Xi))return new Xi(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 tr(this,e)}return Qi(this,e,t,i)}function Qi(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);Xi.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Xi.prototype:e=ir(e,t);return e}(e,t,i,r):"string"==typeof t?function(e,t,i){"string"==typeof i&&""!==i||(i="utf8");if(!Xi.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=0|or(t,i);e=Zi(e,r);var n=e.write(t,i);n!==r&&(e=e.slice(0,n));return e}(e,t,i):function(e,t){if(nr(t)){var i=0|rr(t.length);return 0===(e=Zi(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?Zi(e,0):ir(e,t);if("Buffer"===t.type&&Wi(t.data))return ir(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function er(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 tr(e,t){if(er(t),e=Zi(e,t<0?0:0|rr(t)),!Xi.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function ir(e,t){var i=t.length<0?0:0|rr(t.length);e=Zi(e,i);for(var r=0;r<i;r+=1)e[r]=255&t[r];return e}function rr(e){if(e>=Gi())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Gi().toString(16)+" bytes");return 0|e}function nr(e){return!(null==e||!e._isBuffer)}function or(e,t){if(nr(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 Mr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return jr(e).length;default:if(r)return Mr(e).length;t=(""+t).toLowerCase(),r=!0}}function ar(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 xr(this,t,i);case"utf8":case"utf-8":return mr(this,t,i);case"ascii":return vr(this,t,i);case"latin1":case"binary":return wr(this,t,i);case"base64":return br(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _r(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function sr(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function cr(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=Xi.from(t,r)),nr(t))return 0===t.length?-1:lr(e,t,i,r,n);if("number"==typeof t)return t&=255,Xi.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):lr(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function lr(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 l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var u=-1;for(o=i;o<s;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(i+c>s&&(i=s-c),o=i;o>=0;o--){for(var d=!0,f=0;f<c;f++)if(l(e,o+f)!==l(t,f)){d=!1;break}if(d)return o}return-1}function ur(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 dr(e,t,i,r){return Dr(Mr(t,e.length-i),e,i,r)}function fr(e,t,i,r){return Dr(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,r)}function hr(e,t,i,r){return fr(e,t,i,r)}function pr(e,t,i,r){return Dr(jr(t),e,i,r)}function gr(e,t,i,r){return Dr(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 br(e,t,i){return 0===t&&i===e.length?Hi(e):Hi(e.slice(t,i))}function mr(e,t,i){i=Math.min(e.length,i);for(var r=[],n=t;n<i;){var o,a,s,c,l=e[n],u=null,d=l>239?4:l>223?3:l>191?2:1;if(n+d<=i)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[n+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=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&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),n+=d}return function(e){var t=e.length;if(t<=yr)return String.fromCharCode.apply(String,e);var i="",r=0;for(;r<t;)i+=String.fromCharCode.apply(String,e.slice(r,r+=yr));return i}(r)}Xi.poolSize=8192,Xi._augment=function(e){return e.__proto__=Xi.prototype,e},Xi.from=function(e,t,i){return Qi(null,e,t,i)},Xi.TYPED_ARRAY_SUPPORT&&(Xi.prototype.__proto__=Uint8Array.prototype,Xi.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Xi[Symbol.species]),Xi.alloc=function(e,t,i){return function(e,t,i,r){return er(t),t<=0?Zi(e,t):void 0!==i?"string"==typeof r?Zi(e,t).fill(i,r):Zi(e,t).fill(i):Zi(e,t)}(null,e,t,i)},Xi.allocUnsafe=function(e){return tr(null,e)},Xi.allocUnsafeSlow=function(e){return tr(null,e)},Xi.isBuffer=Rr,Xi.compare=function(e,t){if(!nr(e)||!nr(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},Xi.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}},Xi.concat=function(e,t){if(!Wi(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Xi.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var r=Xi.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var o=e[i];if(!nr(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},Xi.byteLength=or,Xi.prototype._isBuffer=!0,Xi.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)sr(this,t,t+1);return this},Xi.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)sr(this,t,t+3),sr(this,t+1,t+2);return this},Xi.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)sr(this,t,t+7),sr(this,t+1,t+6),sr(this,t+2,t+5),sr(this,t+3,t+4);return this},Xi.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?mr(this,0,e):ar.apply(this,arguments)},Xi.prototype.equals=function(e){if(!nr(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Xi.compare(this,e)},Xi.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+">"},Xi.prototype.compare=function(e,t,i,r,n){if(!nr(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),l=e.slice(t,i),u=0;u<s;++u)if(c[u]!==l[u]){o=c[u],a=l[u];break}return o<a?-1:a<o?1:0},Xi.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},Xi.prototype.indexOf=function(e,t,i){return cr(this,e,t,i,!0)},Xi.prototype.lastIndexOf=function(e,t,i){return cr(this,e,t,i,!1)},Xi.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 ur(this,e,t,i);case"utf8":case"utf-8":return dr(this,e,t,i);case"ascii":return fr(this,e,t,i);case"latin1":case"binary":return hr(this,e,t,i);case"base64":return pr(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gr(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Xi.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var yr=4096;function vr(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 wr(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 xr(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+=Ar(e[o]);return n}function _r(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 kr(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 Sr(e,t,i,r,n,o){if(!nr(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 Pr(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 Cr(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 Er(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 Ir(e,t,i,r,n){return n||Er(e,0,i,4),qi(e,t,i,r,23,4),i+4}function Tr(e,t,i,r,n){return n||Er(e,0,i,8),qi(e,t,i,r,52,8),i+8}Xi.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),Xi.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=Xi.prototype;else{var n=t-e;i=new Xi(n,void 0);for(var o=0;o<n;++o)i[o]=this[o+e]}return i},Xi.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||kr(e,t,this.length);for(var r=this[e],n=1,o=0;++o<t&&(n*=256);)r+=this[e+o]*n;return r},Xi.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||kr(e,t,this.length);for(var r=this[e+--t],n=1;t>0&&(n*=256);)r+=this[e+--t]*n;return r},Xi.prototype.readUInt8=function(e,t){return t||kr(e,1,this.length),this[e]},Xi.prototype.readUInt16LE=function(e,t){return t||kr(e,2,this.length),this[e]|this[e+1]<<8},Xi.prototype.readUInt16BE=function(e,t){return t||kr(e,2,this.length),this[e]<<8|this[e+1]},Xi.prototype.readUInt32LE=function(e,t){return t||kr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Xi.prototype.readUInt32BE=function(e,t){return t||kr(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Xi.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||kr(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},Xi.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||kr(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},Xi.prototype.readInt8=function(e,t){return t||kr(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Xi.prototype.readInt16LE=function(e,t){t||kr(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},Xi.prototype.readInt16BE=function(e,t){t||kr(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},Xi.prototype.readInt32LE=function(e,t){return t||kr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Xi.prototype.readInt32BE=function(e,t){return t||kr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Xi.prototype.readFloatLE=function(e,t){return t||kr(e,4,this.length),Ki(this,e,!0,23,4)},Xi.prototype.readFloatBE=function(e,t){return t||kr(e,4,this.length),Ki(this,e,!1,23,4)},Xi.prototype.readDoubleLE=function(e,t){return t||kr(e,8,this.length),Ki(this,e,!0,52,8)},Xi.prototype.readDoubleBE=function(e,t){return t||kr(e,8,this.length),Ki(this,e,!1,52,8)},Xi.prototype.writeUIntLE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Sr(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},Xi.prototype.writeUIntBE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Sr(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},Xi.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,1,255,0),Xi.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Xi.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,2,65535,0),Xi.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Pr(this,e,t,!0),t+2},Xi.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,2,65535,0),Xi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Pr(this,e,t,!1),t+2},Xi.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,4,4294967295,0),Xi.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Cr(this,e,t,!0),t+4},Xi.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,4,4294967295,0),Xi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Cr(this,e,t,!1),t+4},Xi.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Sr(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},Xi.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Sr(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},Xi.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,1,127,-128),Xi.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Xi.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,2,32767,-32768),Xi.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Pr(this,e,t,!0),t+2},Xi.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,2,32767,-32768),Xi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Pr(this,e,t,!1),t+2},Xi.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,4,2147483647,-2147483648),Xi.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Cr(this,e,t,!0),t+4},Xi.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Xi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Cr(this,e,t,!1),t+4},Xi.prototype.writeFloatLE=function(e,t,i){return Ir(this,e,t,!0,i)},Xi.prototype.writeFloatBE=function(e,t,i){return Ir(this,e,t,!1,i)},Xi.prototype.writeDoubleLE=function(e,t,i){return Tr(this,e,t,!0,i)},Xi.prototype.writeDoubleBE=function(e,t,i){return Tr(this,e,t,!1,i)},Xi.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||!Xi.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},Xi.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&&!Xi.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=nr(e)?e:Mr(new Xi(e,r).toString()),s=a.length;for(o=0;o<i-t;++o)this[o+t]=a[o%s]}return this};var Lr=/[^+\/0-9A-Za-z-_]/g;function Ar(e){return e<16?"0"+e.toString(16):e.toString(16)}function Mr(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 jr(e){return function(e){var t,i,r,n,o,a;Bi||$i();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 zi(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=Ni[e.charCodeAt(t)]<<18|Ni[e.charCodeAt(t+1)]<<12|Ni[e.charCodeAt(t+2)]<<6|Ni[e.charCodeAt(t+3)],a[c++]=n>>16&255,a[c++]=n>>8&255,a[c++]=255&n;return 2===o?(n=Ni[e.charCodeAt(t)]<<2|Ni[e.charCodeAt(t+1)]>>4,a[c++]=255&n):1===o&&(n=Ni[e.charCodeAt(t)]<<10|Ni[e.charCodeAt(t+1)]<<4|Ni[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(Lr,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Dr(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 Rr(e){return null!=e&&(!!e._isBuffer||Or(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Or(e.slice(0,0))}(e))}function Or(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Vr,Nr,zr,Br=Object.freeze({__proto__:null,Buffer:Xi,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),Xi.alloc(+e)},isBuffer:Rr,kMaxLength:Yi}),$r={},Ur={};function Fr(){if(Nr)return $r;Nr=1,Object.defineProperty($r,"__esModule",{value:!0});var e=(Vr||(Vr=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=function(e){var t=e.length,i=t%4;if(!i)return e;var r=t,n=4-i,o=t+n,a=Xi.alloc(o);for(a.write(e);n--;)a.write("=",r++);return a.toString()}),Ur);function t(e,t){return void 0===t&&(t="utf8"),Xi.isBuffer(e)?r(e.toString("base64")):r(Xi.from(e,t).toString("base64"))}function i(t){return t=t.toString(),e.default(t).replace(/\-/g,"+").replace(/_/g,"/")}function r(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var n=t;return n.encode=t,n.decode=function(e,t){return void 0===t&&(t="utf8"),Xi.from(i(e),"base64").toString(t)},n.toBase64=i,n.fromBase64=r,n.toBuffer=function(e){return Xi.from(i(e),"base64")},$r.default=n,$r}var Hr,Kr=ji((zr||(zr=1,(Hr=Ri).exports=Fr().default,Hr.exports.default=Hr.exports),Ri.exports));
|
|
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 ye(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 ve=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),we=()=>Math.random().toString(36).substring(7).split("").join("."),xe={INIT:`@@redux/INIT${we()}`,REPLACE:`@@redux/REPLACE${we()}`};function _e(e,t,i){if("function"!=typeof e)throw new Error(ye(2));if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ye(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ye(1));return i(_e)(e,t)}let r=e,n=t,o=new Map,a=o,s=0,c=!1;function l(){a===o&&(a=new Map,o.forEach((e,t)=>{a.set(t,e)}))}function u(){if(c)throw new Error(ye(3));return n}function d(e){if("function"!=typeof e)throw new Error(ye(4));if(c)throw new Error(ye(5));let t=!0;l();const i=s++;return a.set(i,e),function(){if(t){if(c)throw new Error(ye(6));t=!1,l(),a.delete(i),o=null}}}function f(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||null===Object.getPrototypeOf(e)}(e))throw new Error(ye(7));if(void 0===e.type)throw new Error(ye(8));if("string"!=typeof e.type)throw new Error(ye(17));if(c)throw new Error(ye(9));try{c=!0,n=r(n,e)}finally{c=!1}return(o=a).forEach(e=>{e()}),e}f({type:xe.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ye(10));r=e,f({type:xe.REPLACE})},[ve]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ye(11));function i(){const e=t;e.next&&e.next(u())}i();return{unsubscribe:e(i)}},[ve](){return this}}}}}function ke(e,t){return function(...i){return t(e.apply(this,i))}}function Se(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 Pe=Se();function Ce(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Ee(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}Pe.withExtraArgument=Se,Ce(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})},Ee),Ce(function e(t,i){e.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:i,enumerable:!0})},Ee),Ce(function e(t,i){e.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:i,enumerable:!0})},Ee),Ce(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})},Ee);const Ie="AUTO_VERIFY",Ae="INITIALIZE",Te="UPDATE_CERTIFICATE_DEFINITION",Le="RESET_CERTIFICATE_DEFINITION",Me="UPDATE_CERTIFICATE_URL",je="VALIDATE_URL_INPUT",De="CLEAR_VERIFIED_STEPS",Re="STEP_VERIFIED",Oe="UPDATE_PARENT_STEP_STATUS",Ve="UPDATE_VERIFICATION_STATUS",ze="UPDATE_FINAL_STEP",Ne="SET_ERROR_MESSAGE",Be="SHOW_VERIFICATION_MODAL",$e="UPDATE_IS_GENERATING_PDF";const Ue={get:(e,t)=>{const i=t in e?e[t]:null;return i||console.warn("the service does not exist",t),i}};function Fe(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function He(e){return"string"==typeof e}var Ke;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(Ke||(Ke={}));const qe="{transaction_id}";var Je;!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"}(Je||(Je={}));var We,Ye=Je;!function(e){e.blockcypher="blockcypher",e.blockstream="blockstream",e.etherscan="etherscan"}(We||(We={}));const Ge="{transaction_id}";var Ze,Xe;!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"}(Ze||(Ze={})),function(e){e.btc="btc",e.eth="eth",e.mocknet="mocknet"}(Xe||(Xe={}));const Qe={[Ze.Bitcoin]:{code:Ze.Bitcoin,blinkCode:Xe.btc,name:"Bitcoin",prefixes:["6a20","OP_RETURN "],signatureValue:"bitcoinMainnet",transactionTemplates:{full:`https://blockchain.info/tx/${Ge}`,raw:`https://blockchain.info/rawtx/${Ge}`}},[Ze.Ethmain]:{code:Ze.Ethmain,blinkCode:Xe.eth,name:"Ethereum",prefixes:["0x"],signatureValue:"ethereumMainnet",transactionTemplates:{full:`https://etherscan.io/tx/${Ge}`,raw:`https://etherscan.io/tx/${Ge}`}},[Ze.Ethropst]:{code:Ze.Ethropst,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumRopsten",transactionTemplates:{full:`https://ropsten.etherscan.io/tx/${Ge}`,raw:`https://ropsten.etherscan.io/getRawTx?tx=${Ge}`}},[Ze.Ethrinkeby]:{code:Ze.Ethrinkeby,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumRinkeby",transactionTemplates:{full:`https://rinkeby.etherscan.io/tx/${Ge}`,raw:`https://rinkeby.etherscan.io/getRawTx?tx=${Ge}`}},[Ze.Ethgoerli]:{code:Ze.Ethgoerli,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumGoerli",transactionTemplates:{full:`https://goerli.etherscan.io/tx/${Ge}`,raw:`https://goerli.etherscan.io/getRawTx?tx=${Ge}`}},[Ze.Ethsepolia]:{code:Ze.Ethsepolia,blinkCode:Xe.eth,name:"Ethereum Testnet",signatureValue:"ethereumSepolia",transactionTemplates:{full:`https://sepolia.etherscan.io/tx/${Ge}`,raw:`https://sepolia.etherscan.io/getRawTx?tx=${Ge}`}},[Ze.Mocknet]:{code:Ze.Mocknet,blinkCode:Xe.mocknet,name:"Mocknet",test:!0,signatureValue:"mockchain",transactionTemplates:{full:"",raw:""}},[Ze.Regtest]:{code:Ze.Regtest,blinkCode:Xe.mocknet,name:"Mocknet",test:!0,signatureValue:"bitcoinRegtest",transactionTemplates:{full:"",raw:""}},[Ze.Testnet]:{code:Ze.Testnet,blinkCode:Xe.btc,name:"Bitcoin Testnet",signatureValue:"bitcoinTestnet",transactionTemplates:{full:`https://testnet.blockchain.info/tx/${Ge}`,raw:`https://testnet.blockchain.info/rawtx/${Ge}`}}};const et=1,tt=1;function it({explorerAPI:e,transactionIdPlaceholder:t=Ge,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!==Qe.bitcoin.code&&e!==Qe.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 rt=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 nt(e){return rt(this,void 0,void 0,function*(){var t;let{url:i}=e;if(!i)throw new Error("URL is missing");i.startsWith("http://")&&!e.forceHttp&&(console.warn(`Upgrading requested url ${i} to https protocol.`),i=i.replace("http://","https://"));const r={};let n,o;e["bearer-token"]&&(r.Authorization=`Bearer ${e["bearer-token"]}`),e.body&&(n=JSON.stringify(e.body),r["Content-Type"]="application/json");try{o=yield fetch(i,{method:null!==(t=e.method)&&void 0!==t?t:"GET",headers:r,body:n})}catch(e){const t=e instanceof Error?e.message:"Unknown network error";throw console.error(`Request failed with error ${t}`),new Error(t)}const a=yield o.text();if(!o.ok){console.log(a);const e=`Error fetching url:${i}; status code:${o.status}`;throw new Error(e)}return a})}function ot(e,t){return"string"!=typeof e?(console.warn("Trying to test a non string variable"),!1):0===e.indexOf(t)}function at(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(ot(e,r))return e.slice(r.length)}return e}var st=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 ct={[Ze.Ethmain]:1,[Ze.Ethgoerli]:5,[Ze.Ethsepolia]:11155111};function lt(e=Ze.Ethmain){const t=ct[e];if(!t)throw new Error(`Unsupported chain: ${e}`);return`https://api.etherscan.io/v2/api?chainid=${t}&module=proxy`}const ut={serviceURL:function(e){return`${lt(e)}&action=eth_getTransactionByHash&txhash=${Ge}`},serviceName:We.etherscan,parsingFunction:function(e){return st(this,arguments,void 0,function*({jsonResponse:e,chain:t,key:i,keyPropertyName:r}){const n=lt(t),o={serviceURL:{main:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${Ge}`,test:`${n}&action=eth_getBlockByNumber&boolean=true&tag=${Ge}`}},a={serviceURL:{main:`${n}&action=eth_blockNumber`,test:`${n}&action=eth_blockNumber`}};const s=yield function(e,t){return st(this,void 0,void 0,function*(){const n=e.result.blockNumber,s=it({explorerAPI:Object.assign(Object.assign({},o),{key:i,keyPropertyName:r}),transactionId:n,chain:t});try{const e=yield nt({url:s}),o=JSON.parse(e).result;return yield function(e,t){return st(this,void 0,void 0,function*(){const n=it({explorerAPI:Object.assign(Object.assign({},a),{key:i,keyPropertyName:r}),chain:e});let o;try{o=yield nt({url:n})}catch(e){throw console.log("checkEtherScanConfirmations error",e),new Error("Unable to get remote hash")}const s=JSON.parse(o).result;if(s-t<et)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:at(i.input,Qe.ethmain.prefixes),issuingAddress:n,time:r,revokedAddresses:[]}}(e,s)})},priority:-1};function dt(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){var t;let i,r;const n=null!==(t=/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/.exec(e))&&void 0!==t?t:[];return n[1]?(i=n[1].split(/\D/).map(function(e){return parseInt(e,10)||0}),i[1]-=1,i=new Date(Date.UTC.apply(Date,i)),i.getDate()?(n[5]&&(r=parseInt(n[5],10)/100*60,n[6]&&(r+=parseInt(n[6],10)),"+"===n[4]&&(r*=-1),r&&i.setUTCMinutes(i.getUTCMinutes()+r)),i):null):null}(e)}function ft(e){return""===e?"":dt(`${e}`)}function pt(e){return new Date(1e3*e)}const ht={serviceURL:{main:`https://api.blockcypher.com/v1/eth/main/txs/${Ge}?limit=500`,test:`https://api.blockcypher.com/v1/beth/test/txs/${Ge}?limit=500`},serviceName:We.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<et)throw new Error("Not enough");const t=ft(e.received),i=e.outputs,r=i[i.length-1];let n=e.inputs[0].addresses[0];const o=at(r.script,Qe.ethmain.prefixes);return n=function(e,t){for(let i=0;i<t.length;i++){const r=t[i];if(!ot(e,r))return`${r}${e}`}return e}(n,Qe.ethmain.prefixes),{remoteHash:o,issuingAddress:n,time:t,revokedAddresses:i.filter(e=>!!e.spent_by).map(e=>e.addresses[0])}},priority:-1};const gt={serviceURL:{main:`https://blockstream.info/api/tx/${Ge}`,test:`https://blockstream.info/testnet/api/tx/${Ge}`},serviceName:We.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=pt(e.status.block_time),i=e.vout,r=i[i.length-1],n=e.vin[0].prevout.scriptpubkey_address;return{remoteHash:at(r.scriptpubkey,Qe.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter(e=>!!e.scriptpubkey_address).map(e=>e.scriptpubkey_address)}},priority:-1};const bt={serviceURL:{main:`https://api.blockcypher.com/v1/btc/main/txs/${Ge}?limit=500`,test:`https://api.blockcypher.com/v1/btc/test3/txs/${Ge}?limit=500`},serviceName:We.blockcypher,parsingFunction:function({jsonResponse:e}){if(e.confirmations<et)throw new Error("Number of transaction confirmations were less than the minimum required, according to Blockcypher API");const t=ft(e.received),i=e.outputs,r=i[i.length-1],n=e.inputs[0].addresses[0];return{remoteHash:at(r.script,Qe.bitcoin.prefixes),issuingAddress:n,time:t,revokedAddresses:i.filter(e=>!!e.spent_by).map(e=>e.addresses[0])}},priority:-1};var mt=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 yt(e){return e.map(e=>({getTxData:(t,i)=>mt(this,void 0,void 0,function*(){return yield function(e,t,i){return mt(this,void 0,void 0,function*(){const r=it({explorerAPI:e,transactionId:t,chain:i});try{console.log("calling getTransactionFromApi url:",r);const t=yield nt({url:r});return yield e.parsingFunction(Object.assign({jsonResponse:JSON.parse(t),chain:i},e))}catch(e){throw console.log("getTransactionFromApi error",e),new Error("Unable to get remote hash")}})}(e,t,i)}),priority:e.priority}))}const vt=[bt,gt],wt=[ut,ht];var xt=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 _t(e){return xt(this,arguments,void 0,function*({serviceUrl:e,transactionId:t}){const i={method:"eth_getTransactionByHash",jsonrpc:"2.0",id:"getbyhash",params:["0x"+t]},r=yield nt({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 nt({url:e,body:o,method:"POST"}),s=JSON.parse(a),c=n.result,l=s.result,u=new Date(1e3*parseInt(l.timestamp,16)),d=c.from;return{remoteHash:at(c.input,["0x"]),issuingAddress:d,time:u,revokedAddresses:[]}})}var kt=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 St(e){return kt(this,arguments,void 0,function*({serviceUrl:e,transactionId:t}){const i={method:"getrawtransaction",jsonrpc:"2.0",id:"rpctest",params:[t,!0]},r=yield nt({url:e,body:i,method:"POST"}),n=JSON.parse(r).result;return{issuingAddress:n.vout[0].scriptPubKey.addresses[0],remoteHash:at(n.vout[1].scriptPubKey.asm,["6a20","OP_RETURN "]),time:pt(n.blocktime),revokedAddresses:n.vout.filter(e=>!!e.scriptPubKey.addresses).map(e=>e.scriptPubKey.addresses).flat()}})}var Pt=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 Ct(e=[],t=[]){const i=e.filter(e=>e&&e.serviceName&&We[e.serviceName]);return i.length?t.map(t=>{const r=i.findIndex(e=>e.serviceName===t.serviceName);if(-1===r)return t;const n=i[r];!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.`)}(n);const o=e.findIndex(e=>e&&e.serviceName===n.serviceName);return o>-1&&e.splice(o,1),i.splice(r,1),Object.assign({},t,n)}):t}function Et(e){return e.map(e=>(e.parsingFunction||(e.parsingFunction="btc"===e.chainType?St:_t),e)).map(e=>({getTxData:t=>Pt(this,void 0,void 0,function*(){return yield e.parsingFunction(Object.assign(Object.assign({},e),{transactionId:t}))}),priority:e.priority}))}function It(e){const{bitcoin:t,ethereum:i}={bitcoin:yt(Ct(r=e,vt)),ethereum:yt(Ct(r,wt))};var r;const{custom:n}=function(e){return{custom:Et(e)}}(e.filter(e=>"rpc"===e.apiType));return{bitcoin:t,ethereum:i,custom:[...n,...yt(e.filter(e=>"rpc"!==e.apiType))]}}var At,Tt=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 Lt(e,t){var i;switch(e){case Qe[Ze.Bitcoin].code:case Qe[Ze.Regtest].code:case Qe[Ze.Testnet].code:case Qe[Ze.Mocknet].code:return t.bitcoin;case Qe[Ze.Ethmain].code:case Qe[Ze.Ethropst].code:case Qe[Ze.Ethrinkeby].code:case Qe[Ze.Ethgoerli].code:case Qe[Ze.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 Mt(e,t,i,r){return Tt(this,void 0,void 0,function*(){try{const n=function(e,t,i){if(tt>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 function(e){return Tt(this,void 0,void 0,function*(){return new Promise((t,i)=>{if(!e.length)return void i(new Error("No explorers configured"));let r=e.length,n=!1;const o=()=>{r-=1,n||0!==r||i(new Error("Could not confirm transaction data."))},a=e=>!!e&&!!e.issuingAddress&&!!e.remoteHash;for(const i of e)i.then(e=>{n||(a(e)?(n=!0,t(e)):o())}).catch(()=>{n||o()})})})}(n)}catch(n){if(t<e.length-1)return t++,yield Mt(e,t,i,r);throw n}})}function jt(e){return Tt(this,arguments,void 0,function*({transactionId:e,chain:t,explorerAPIs:i=[]}){const r=It(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(tt>r)throw new Error("Invalid application configuration; check the CONFIG.MinimumBlockchainExplorers configuration value");return i}({defaultAPIs:Lt(t,r),customAPIs:r.custom});return yield Mt(n,0,e,t)})}!function(e){e.mainnet="mainnet",e.testnet="testnet"}(At||(At={}));var Dt="ecdsa-koblitz-pubkey:1",Rt="https://openbadgespec.org/v2/context.json",Ot="https://www.w3.org/2018/credentials/v1",Vt="https://www.w3.org/ns/credentials/v2",zt="https://w3id.org/blockcerts/schema/2.0/context.json",Nt="https://w3id.org/blockcerts/v2",Bt="https://www.blockcerts.org/schema/2.0/context.json",$t="https://w3id.org/blockcerts/schema/2.1/context.json",Ut="https://w3id.org/blockcerts/v2.1",Ft="https://www.blockcerts.org/schema/2.1/context.json",Ht="https://w3id.org/blockcerts/schema/3.0/context.json",Kt="https://w3id.org/blockcerts/v3",qt="https://www.blockcerts.org/schema/3.0/context.json",Jt="https://w3id.org/blockcerts/schema/3.1/context.json",Wt="https://w3id.org/blockcerts/v3.1",Yt="https://www.blockcerts.org/schema/3.1/context.json",Gt="https://w3id.org/blockcerts/schema/3.2/context.json",Zt="https://w3id.org/blockcerts/v3.2",Xt="https://www.blockcerts.org/schema/3.2/context.json",Qt="https://w3id.org/security/suites/merkle-2019/v1",ei="https://w3id.org/security/suites/chained-2021/v1",ti="https://w3id.org/vc/status-list/2021/v1",ii="https://w3id.org/security/data-integrity/v2",ri={"@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"}},ni={"@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"}]},oi={"@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"}]},ai={"@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"}}},si={"@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"}}},ci={"@context":{id:"@id",type:"@type",bc:"https://w3id.org/blockcerts#",schema:"https://schema.org/",sec:"https://w3id.org/security#",BlockcertsCredential:"bc:BlockcertsCredential",BlockcertsIssuerProfile:"bc:BlockcertsIssuerProfile",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"}}},email:{"@id":"schema:email"},publicKey:{"@context":{created:{"@id":"bc:created"}},"@id":"sec:publicKey"},url:{"@id":"schema:url"},image:{"@id":"schema:image"},criteria:{"@id":"schema:criteria"},claim:{"@id":"schema:claim"},revocationList:{"@id":"bc:revocationList"}}};const li={};li["https://w3id.org/openbadges/v2"]=ri,li[Rt]=ri,li[Ot]={"@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"}}},li[Vt]={"@context":{"@protected":!0,id:"@id",type:"@type",description:"https://schema.org/description",digestMultibase:{"@id":"https://w3id.org/security#digestMultibase","@type":"https://w3id.org/security#multibase"},digestSRI:{"@id":"https://www.w3.org/2018/credentials#digestSRI","@type":"https://www.w3.org/2018/credentials#sriString"},mediaType:{"@id":"https://schema.org/encodingFormat"},name:"https://schema.org/name",VerifiableCredential:{"@id":"https://www.w3.org/2018/credentials#VerifiableCredential","@context":{"@protected":!0,id:"@id",type:"@type",confidenceMethod:{"@id":"https://www.w3.org/2018/credentials#confidenceMethod","@type":"@id"},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"},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"},relatedResource:{"@id":"https://www.w3.org/2018/credentials#relatedResource","@type":"@id"},renderMethod:{"@id":"https://www.w3.org/2018/credentials#renderMethod","@type":"@id"},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@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"}}},EnvelopedVerifiableCredential:"https://www.w3.org/2018/credentials#EnvelopedVerifiableCredential",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"},termsOfUse:{"@id":"https://www.w3.org/2018/credentials#termsOfUse","@type":"@id"},verifiableCredential:{"@id":"https://www.w3.org/2018/credentials#verifiableCredential","@type":"@id","@container":"@graph","@context":null}}},EnvelopedVerifiablePresentation:"https://www.w3.org/2018/credentials#EnvelopedVerifiablePresentation",JsonSchemaCredential:"https://www.w3.org/2018/credentials#JsonSchemaCredential",JsonSchema:{"@id":"https://www.w3.org/2018/credentials#JsonSchema","@context":{"@protected":!0,id:"@id",type:"@type",jsonSchema:{"@id":"https://www.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",encodedList:{"@id":"https://www.w3.org/ns/credentials/status#encodedList","@type":"https://w3id.org/security#multibase"},statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",ttl:"https://www.w3.org/ns/credentials/status#ttl"}},BitstringStatusListEntry:{"@id":"https://www.w3.org/ns/credentials/status#BitstringStatusListEntry","@context":{"@protected":!0,id:"@id",type:"@type",statusListCredential:{"@id":"https://www.w3.org/ns/credentials/status#statusListCredential","@type":"@id"},statusListIndex:"https://www.w3.org/ns/credentials/status#statusListIndex",statusPurpose:"https://www.w3.org/ns/credentials/status#statusPurpose",statusMessage:{"@id":"https://www.w3.org/ns/credentials/status#statusMessage","@context":{"@protected":!0,id:"@id",type:"@type",message:"https://www.w3.org/ns/credentials/status#message",status:"https://www.w3.org/ns/credentials/status#status"}},statusReference:{"@id":"https://www.w3.org/ns/credentials/status#statusReference","@type":"@id"},statusSize:{"@id":"https://www.w3.org/ns/credentials/status#statusSize","@type":"https://www.w3.org/2001/XMLSchema#integer"}}},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"},cryptosuite:{"@id":"https://w3id.org/security#cryptosuite","@type":"https://w3id.org/security#cryptosuiteString"},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"},capabilityDelegation:{"@id":"https://w3id.org/security#capabilityDelegationMethod","@type":"@id","@container":"@set"},capabilityInvocation:{"@id":"https://w3id.org/security#capabilityInvocationMethod","@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"}}},"...":{"@id":"https://www.iana.org/assignments/jwt#..."},_sd:{"@id":"https://www.iana.org/assignments/jwt#_sd","@type":"@json"},_sd_alg:{"@id":"https://www.iana.org/assignments/jwt#_sd_alg"},aud:{"@id":"https://www.iana.org/assignments/jwt#aud","@type":"@id"},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"}}},exp:{"@id":"https://www.iana.org/assignments/jwt#exp","@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"},iss:{"@id":"https://www.iana.org/assignments/jose#iss","@type":"@id"},jku:{"@id":"https://www.iana.org/assignments/jose#jku","@type":"@id"},kid:{"@id":"https://www.iana.org/assignments/jose#kid","@type":"@id"},nbf:{"@id":"https://www.iana.org/assignments/jwt#nbf","@type":"https://www.w3.org/2001/XMLSchema#nonNegativeInteger"},sub:{"@id":"https://www.iana.org/assignments/jose#sub","@type":"@id"},x5u:{"@id":"https://www.iana.org/assignments/jose#x5u","@type":"@id"}}},li[zt]=ni,li[Bt]=ni,li[Nt]=ni,li[$t]=oi,li[Ft]=oi,li[Ut]=oi,li[Ht]=ai,li[qt]=ai,li[Kt]=ai,li[Jt]=si,li[Yt]=si,li[Wt]=si,li[Gt]=ci,li[Xt]=ci,li[Zt]=ci,li[Qt]={"@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"}}}}},li[ei]={"@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"}}}}},li[ti]={"@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"}}}}},li[ii]={"@context":{id:"@id",type:"@type","@protected":!0,proof:{"@id":"https://w3id.org/security#proof","@type":"@id","@container":"@graph"},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"}}}}};var ui={"@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"}]},di={"@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"}}},fi={"@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"}}},pi={"@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"}}},hi={"@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"}}}}},gi={"@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"}}}}};li["https://w3id.org/blockcerts/schema/2.0-alpha/context.json"]=ui,li["https://www.blockcerts.org/schema/2.0-alpha/context.json"]=ui,li["https://www.blockcerts.org/schema/3.0-alpha/context.json"]=di,li["https://w3id.org/blockcerts/schema/3.0-alpha/context.json"]=di,li["https://w3id.org/blockcerts/v3.0-alpha"]=di,li["https://www.blockcerts.org/schema/3.0-beta/context.json"]=fi,li["https://w3id.org/blockcerts/schema/3.0-beta/context.json"]=fi,li["https://w3id.org/blockcerts/v3.0-beta"]=fi,li["https://w3id.org/security/suites/ed25519-2020/v1"]=gi,li["https://ns.did.ai/suites/secp256k1-2019/v1"]=hi,li["https://w3id.org/security/suites/secp256k1-2019/v1"]=hi,li["https://www.w3.org/ns/did/v1"]=pi;const bi={locale:"en-US"};var mi=Object.freeze({__proto__:null,isMainnet:function(e){return Fe(e,"1")||Fe(e,Dt)}});var yi={locale:"en-US"},vi={"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:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",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",checkCredentialSchemaConformityLabel:"Check Conformity with Credential Schema",checkCredentialSchemaConformityLabelPending:"Checking Conformity with Credential Schema",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",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",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",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},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",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",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 on ",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.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],pattern:"MM DD, YYYY"}},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:{assertProofValidityLabel:"Vérification de l'objectif de la signature",assertProofValidityLabelPending:"Vérification de l'objectif de la signature",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é",checkCredentialSchemaConformityLabel:"Vérification de la conformité avec le schéma du certificat",checkCredentialSchemaConformityLabelPending:"Vérification de la conformité avec le schéma du certificat",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é",ensureVerificationMethodValidityLabel:"Vérification de la validité de la méthode de vérification",ensureVerificationMethodValidityLabelPending:"Vérification de la validité de la méthode de vérification",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",validateDateFormatLabel:"Vérification du format des dates",validateDateFormatLabelPending:"Vérification du format des dates",verifyIssuerProfileLabel:"Vérification du profil de l'émetteur",verifyIssuerProfileLabelPending:"Vérification du profil de l'émetteur"},revocation:{preReason:"Raison :",reason:"Ce certificat a été ${CREDENTIAL_STATUS} par l'émetteur le ",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",checkCredentialSchemaConformity:"Ce certificat n'est pas conforme avec le schema de certificat fourni",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.",validateDateFormat:"Le format de date spécifié n'est pas conforme aux exigences de la spécification (RFC3339). Propriété :"},date:{months:["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Aout","Sept","Oct","Nov","Déc"],pattern:"DD MM YYYY"}},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:{assertProofValidityLabel:"Afirmar propósito de la prueba",assertProofValidityLabelPending:"Afirmando propósito de la prueba",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",checkCredentialSchemaConformityLabel:"Verificar conformidad con el esquema del certificado",checkCredentialSchemaConformityLabelPending:"Verificando conformidad con el esquema del certificado",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",ensureVerificationMethodValidityLabel:"Verificar Validez del Método de Verificación",ensureVerificationMethodValidityLabelPending:"Verificando Validez del Método de Verificació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",validateDateFormatLabel:"Verificar formato de fecha",validateDateFormatLabelPending:"Verificando formato de fecha",verifyIssuerProfileLabel:"Verificar perfil del emisor",verifyIssuerProfileLabelPending:"Verificando perfil del emisor"},revocation:{preReason:"Motivo:",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",checkCredentialSchemaConformity:"Este certificado no cumple con el esquema de certificado especificado",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 el ",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.",validateDateFormat:"El formato de fecha especificado no cumple con los requisitos de la especificación (RFC3339). Propiedad:"},date:{months:["enero","feb","marzo","abr","mayo","jun","jul","agosto","set","oct","nov","dic"],pattern:"MM DD, YYYY"}},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:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",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",checkCredentialSchemaConformityLabel:"Check conformity with credential schema",checkCredentialSchemaConformityLabelPending:"Checking conformity with credential schema",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",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",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",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},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",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",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 fid-data - ",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.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Diċembru"],pattern:"DD MM YYYY"}},"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:{assertProofValidityLabel:"Assert proof purpose",assertProofValidityLabelPending:"Asserting proof purpose",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:"Controllare firma del documento",checkDocumentSignatureLabelPending:"Controllo firma del documento",checkMerkleRootLabel:"Controllare radice di Merkle",checkMerkleRootLabelPending:"Controllo radice di Merkle",checkReceiptLabel:"Verificare ricevuta",checkReceiptLabelPending:"Verifica ricevuta",checkAuthenticityLabel:"Verificare autenticità",checkAuthenticityLabelPending:"Verifica autenticità",checkCredentialSchemaConformityLabel:"Verificare conformità con lo schema del certificato",checkCredentialSchemaConformityLabelPending:"Verifica conformità con lo schema del certificato",checkRevokedStatusLabel:"Verificare stato revocato",checkRevokedStatusLabelPending:"Verifica stato revocato",checkExpiresDateLabel:"Verificare data di scadenza",checkExpiresDateLabelPending:"Verifica data di scadenza",ensureValidityPeriodStartedLabel:"Verificare data di inizio validità",ensureValidityPeriodStartedLabelPending:"Verifica data di inizio validità",ensureVerificationMethodValidityLabel:"Verificare validità del metodo di verifica",ensureVerificationMethodValidityLabelPending:"Verifica validità del metodo di verifica",controlVerificationMethodLabel:"Controllare il metodo di verifica",controlVerificationMethodLabelPending:"Controllo del metodo di verifica",retrieveVerificationMethodPublicKeyLabel:"Estrarre chiave pubblica dal documento DID",retrieveVerificationMethodPublicKeyLabelPending:"Estrazione chiave pubblica dal documento DID",deriveIssuingAddressFromPublicKeyLabel:"Derivare l'indirizzo di emissione dalla chiave pubblica",deriveIssuingAddressFromPublicKeyLabelPending:"Derivazione dell'indirizzo di emissione dalla chiave pubblica",compareIssuingAddressLabel:"Confrontare gli indirizzi",compareIssuingAddressLabelPending:"Confronto degli indirizzi",checkImagesIntegrityLabel:"Verificare l'integrità delle immagini",checkImagesIntegrityLabelPending:"Verifica dell'integrità delle immagini",validateDateFormatLabel:"Verificare il formato della data",validateDateFormatLabelPending:"Verifica del formato della data",verifyIssuerProfileLabel:"Verificare il profilo dell'emittente",verifyIssuerProfileLabelPending:"Verifica del profilo dell'emittente"},revocation:{preReason:"Motivo indicato:",reason:"Questo certificato è stato ${CREDENTIAL_STATUS} dall'emittente.",revocationListAuthenticityFailure:"L'autenticità dell'elenco di revoca non è stata confermata.",noRevocationStatusList2021Found:"Nessun elenco di stato di revoca trovato all'URL specificato per '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:"La firma ${SIGNATURE_TYPE} di questo certificato è stata verificata con successo."},multisign:{label:"Verificato",description:"Tutte le firme digitali di questo certificato sono state verificate con successo."}},errors:{certificateNotValid:"Questo non è un certificato valido",checkCredentialSchemaConformity:"Questo certificato non è conforme allo schema di certificazione specificato",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 il ",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.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],pattern:"DD MM YYYY"}},ja:{steps:{formatValidationLabel:"形式の検証",formatValidationLabelPending:"形式を検証",signatureVerificationLabel:"証明の検証",signatureVerificationLabelPending:"証明を検証",identityVerificationLabel:"アイデンティティの検証",identityVerificationLabelPending:"アイデンティティを検証",statusCheckLabel:"ステータスの確認",statusCheckLabelPending:"ステータスを確認"},subSteps:{assertProofValidityLabel:"証明の目的を主弭する",assertProofValidityLabelPending:"証明の目的を主弭中",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:"真正性を確認",checkCredentialSchemaConformityLabel:"Check conformity with credential schema",checkCredentialSchemaConformityLabelPending:"Checking conformity with credential schema",checkRevokedStatusLabel:"取消ステータスの確認",checkRevokedStatusLabelPending:"取消ステータスを確認",checkExpiresDateLabel:"有効期限の確認",checkExpiresDateLabelPending:"有効期限を確認",ensureValidityPeriodStartedLabel:"Verify Validity Start Date",ensureValidityPeriodStartedLabelPending:"Verifying Validity Start Date",ensureVerificationMethodValidityLabel:"Ensure Verification Method Validity",ensureVerificationMethodValidityLabelPending:"Ensuring Verification Method Validity",controlVerificationMethodLabel:"検証方法の設定",controlVerificationMethodLabelPending:"検証方法を設定",retrieveVerificationMethodPublicKeyLabel:"DID Documentからの公開鍵取得",retrieveVerificationMethodPublicKeyLabelPending:"DID Documentから公開鍵を取得",deriveIssuingAddressFromPublicKeyLabel:"公開鍵からの発行者アドレス取得",deriveIssuingAddressFromPublicKeyLabelPending:"公開鍵から発行者アドレスを取得",compareIssuingAddressLabel:"アドレスの照合",compareIssuingAddressLabelPending:"アドレスを照合",checkImagesIntegrityLabel:"画像の保全性の確認",checkImagesIntegrityLabelPending:"画像の保全性を確認",validateDateFormatLabel:"Validate date format",validateDateFormatLabelPending:"Validating date format",verifyIssuerProfileLabel:"Verify issuer profile",verifyIssuerProfileLabelPending:"Verifying issuer profile"},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:"この証明書は無効です",checkCredentialSchemaConformity:"This certificate does not conform with the provided credential schema",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.",validateDateFormat:"The date format specified does not conform with the spec requirements (RFC3339). Property:"},date:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],pattern:"YYYY年-MM-DD日"}}};function wi(e,t){return e&&t?vi[yi.locale]?vi[yi.locale][e]?vi[yi.locale][e][t]?vi[yi.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]":""}function xi(){return Object.keys(vi)}var _i,ki=Object.freeze({__proto__:null,detectLocale:function(){return navigator.language||bi.locale},ensureIsSupported:function(e){let t;const i=up.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=bi.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 wi(e,t)},getDateFormat:function(e){const t=wi("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=wi("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},getSupportedLanguages:xi,getText:wi,setLocale:function(e){yi.locale=e}});!function(e){e.REVOKED="revoked",e.SUSPENDED="suspended"}(_i||(_i={}));class Si{publicKey;created;revoked;expires;constructor(e,t,i,r){this.publicKey=e,this.created=t,this.revoked=i,this.expires=r}}class Pi{image;jobTitle;name;constructor(e,t,i){this.image=e,this.jobTitle=t,this.name=i}}class Ci extends Error{stepCode;constructor(e,t){super(t),this.stepCode=e}}var Ei=Object.freeze({__proto__:null,generateRevocationReason:function(e="",t=_i.REVOKED){const i=wi("revocation",t);return e=(e=e.trim()).length>0?` ${wi("revocation","preReason")} ${e}${"."!==e.slice(-1)?".":""}`:"",`${wi("revocation","reason").replace("${CREDENTIAL_STATUS}",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(Qe).map(e=>Qe[e]).find(t=>t.signatureValue===e);if(void 0===t)throw new Error(wi("errors","getChain"));return t}(e.chain)}}return function(e=""){return mi.isMainnet(e)?Qe.bitcoin:Qe.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 Ci("",wi("errors","getTransactionId"))}},getTransactionLink:function(e,t){return e&&t?{rawTransactionLink:t.transactionTemplates.raw.replace(qe,e),transactionLink:t.transactionTemplates.full.replace(qe,e)}:null}});var Ii=Object.freeze({__proto__:null,isMockChain:function(e){if(e){const t="string"==typeof e?e:e.code;return!!Object.keys(Qe).some(e=>e===t)&&!!Qe[t].test}return!1}});const Ai={value:"https://dev.uniresolver.io/1.0/identifiers",set url(e){this.value=e},get url(){return this.value}};function Ti(e){return e.startsWith("did:",0)}function Li(e){return e.startsWith("did:key:",0)}var Mi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Di(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var i=function e(){var i=!1;try{i=this instanceof e}catch{}return i?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}var Ri={exports:{}},Oi="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Vi=[],zi=[],Ni="undefined"!=typeof Uint8Array?Uint8Array:Array,Bi=!1;function $i(){Bi=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Vi[t]=e[t],zi[e.charCodeAt(t)]=t;zi["-".charCodeAt(0)]=62,zi["_".charCodeAt(0)]=63}function Ui(e){return Vi[e>>18&63]+Vi[e>>12&63]+Vi[e>>6&63]+Vi[63&e]}function Fi(e,t,i){for(var r,n=[],o=t;o<i;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],n.push(Ui(r));return n.join("")}function Hi(e){var t;Bi||$i();for(var i=e.length,r=i%3,n="",o=[],a=16383,s=0,c=i-r;s<c;s+=a)o.push(Fi(e,s,s+a>c?c:s+a));return 1===r?(t=e[i-1],n+=Vi[t>>2],n+=Vi[t<<4&63],n+="=="):2===r&&(t=(e[i-2]<<8)+e[i-1],n+=Vi[t>>10],n+=Vi[t>>4&63],n+=Vi[t<<2&63],n+="="),o.push(n),o.join("")}function Ki(e,t,i,r,n){var o,a,s=8*n-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=i?n-1:0,f=i?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=l}return(p?-1:1)*a*Math.pow(2,o-r)}function qi(e,t,i,r,n,o){var a,s,c,l=8*o-n-1,u=(1<<l)-1,d=u>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=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=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):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+p]=255&s,p+=h,s/=256,n-=8);for(a=a<<n|s,l+=n;l>0;e[i+p]=255&a,p+=h,a/=256,l-=8);e[i+p-h]|=128*g}var Ji={}.toString,Wi=Array.isArray||function(e){return"[object Array]"==Ji.call(e)};Xi.TYPED_ARRAY_SUPPORT=void 0===Oi.TYPED_ARRAY_SUPPORT||Oi.TYPED_ARRAY_SUPPORT;var Yi=Gi();function Gi(){return Xi.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Zi(e,t){if(Gi()<t)throw new RangeError("Invalid typed array length");return Xi.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Xi.prototype:(null===e&&(e=new Xi(t)),e.length=t),e}function Xi(e,t,i){if(!(Xi.TYPED_ARRAY_SUPPORT||this instanceof Xi))return new Xi(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 tr(this,e)}return Qi(this,e,t,i)}function Qi(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);Xi.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Xi.prototype:e=ir(e,t);return e}(e,t,i,r):"string"==typeof t?function(e,t,i){"string"==typeof i&&""!==i||(i="utf8");if(!Xi.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var r=0|or(t,i);e=Zi(e,r);var n=e.write(t,i);n!==r&&(e=e.slice(0,n));return e}(e,t,i):function(e,t){if(nr(t)){var i=0|rr(t.length);return 0===(e=Zi(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?Zi(e,0):ir(e,t);if("Buffer"===t.type&&Wi(t.data))return ir(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function er(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 tr(e,t){if(er(t),e=Zi(e,t<0?0:0|rr(t)),!Xi.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function ir(e,t){var i=t.length<0?0:0|rr(t.length);e=Zi(e,i);for(var r=0;r<i;r+=1)e[r]=255&t[r];return e}function rr(e){if(e>=Gi())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Gi().toString(16)+" bytes");return 0|e}function nr(e){return!(null==e||!e._isBuffer)}function or(e,t){if(nr(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 Mr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return jr(e).length;default:if(r)return Mr(e).length;t=(""+t).toLowerCase(),r=!0}}function ar(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 xr(this,t,i);case"utf8":case"utf-8":return mr(this,t,i);case"ascii":return vr(this,t,i);case"latin1":case"binary":return wr(this,t,i);case"base64":return br(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _r(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function sr(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function cr(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=Xi.from(t,r)),nr(t))return 0===t.length?-1:lr(e,t,i,r,n);if("number"==typeof t)return t&=255,Xi.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):lr(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function lr(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 l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var u=-1;for(o=i;o<s;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(i+c>s&&(i=s-c),o=i;o>=0;o--){for(var d=!0,f=0;f<c;f++)if(l(e,o+f)!==l(t,f)){d=!1;break}if(d)return o}return-1}function ur(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 dr(e,t,i,r){return Dr(Mr(t,e.length-i),e,i,r)}function fr(e,t,i,r){return Dr(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,r)}function pr(e,t,i,r){return fr(e,t,i,r)}function hr(e,t,i,r){return Dr(jr(t),e,i,r)}function gr(e,t,i,r){return Dr(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 br(e,t,i){return 0===t&&i===e.length?Hi(e):Hi(e.slice(t,i))}function mr(e,t,i){i=Math.min(e.length,i);for(var r=[],n=t;n<i;){var o,a,s,c,l=e[n],u=null,d=l>239?4:l>223?3:l>191?2:1;if(n+d<=i)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[n+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=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&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),n+=d}return function(e){var t=e.length;if(t<=yr)return String.fromCharCode.apply(String,e);var i="",r=0;for(;r<t;)i+=String.fromCharCode.apply(String,e.slice(r,r+=yr));return i}(r)}Xi.poolSize=8192,Xi._augment=function(e){return e.__proto__=Xi.prototype,e},Xi.from=function(e,t,i){return Qi(null,e,t,i)},Xi.TYPED_ARRAY_SUPPORT&&(Xi.prototype.__proto__=Uint8Array.prototype,Xi.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Xi[Symbol.species]),Xi.alloc=function(e,t,i){return function(e,t,i,r){return er(t),t<=0?Zi(e,t):void 0!==i?"string"==typeof r?Zi(e,t).fill(i,r):Zi(e,t).fill(i):Zi(e,t)}(null,e,t,i)},Xi.allocUnsafe=function(e){return tr(null,e)},Xi.allocUnsafeSlow=function(e){return tr(null,e)},Xi.isBuffer=Rr,Xi.compare=function(e,t){if(!nr(e)||!nr(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},Xi.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}},Xi.concat=function(e,t){if(!Wi(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Xi.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var r=Xi.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var o=e[i];if(!nr(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},Xi.byteLength=or,Xi.prototype._isBuffer=!0,Xi.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)sr(this,t,t+1);return this},Xi.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)sr(this,t,t+3),sr(this,t+1,t+2);return this},Xi.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)sr(this,t,t+7),sr(this,t+1,t+6),sr(this,t+2,t+5),sr(this,t+3,t+4);return this},Xi.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?mr(this,0,e):ar.apply(this,arguments)},Xi.prototype.equals=function(e){if(!nr(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Xi.compare(this,e)},Xi.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+">"},Xi.prototype.compare=function(e,t,i,r,n){if(!nr(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),l=e.slice(t,i),u=0;u<s;++u)if(c[u]!==l[u]){o=c[u],a=l[u];break}return o<a?-1:a<o?1:0},Xi.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},Xi.prototype.indexOf=function(e,t,i){return cr(this,e,t,i,!0)},Xi.prototype.lastIndexOf=function(e,t,i){return cr(this,e,t,i,!1)},Xi.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 ur(this,e,t,i);case"utf8":case"utf-8":return dr(this,e,t,i);case"ascii":return fr(this,e,t,i);case"latin1":case"binary":return pr(this,e,t,i);case"base64":return hr(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gr(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Xi.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var yr=4096;function vr(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 wr(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 xr(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+=Lr(e[o]);return n}function _r(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 kr(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 Sr(e,t,i,r,n,o){if(!nr(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 Pr(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 Cr(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 Er(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 Ir(e,t,i,r,n){return n||Er(e,0,i,4),qi(e,t,i,r,23,4),i+4}function Ar(e,t,i,r,n){return n||Er(e,0,i,8),qi(e,t,i,r,52,8),i+8}Xi.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),Xi.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=Xi.prototype;else{var n=t-e;i=new Xi(n,void 0);for(var o=0;o<n;++o)i[o]=this[o+e]}return i},Xi.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||kr(e,t,this.length);for(var r=this[e],n=1,o=0;++o<t&&(n*=256);)r+=this[e+o]*n;return r},Xi.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||kr(e,t,this.length);for(var r=this[e+--t],n=1;t>0&&(n*=256);)r+=this[e+--t]*n;return r},Xi.prototype.readUInt8=function(e,t){return t||kr(e,1,this.length),this[e]},Xi.prototype.readUInt16LE=function(e,t){return t||kr(e,2,this.length),this[e]|this[e+1]<<8},Xi.prototype.readUInt16BE=function(e,t){return t||kr(e,2,this.length),this[e]<<8|this[e+1]},Xi.prototype.readUInt32LE=function(e,t){return t||kr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Xi.prototype.readUInt32BE=function(e,t){return t||kr(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Xi.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||kr(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},Xi.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||kr(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},Xi.prototype.readInt8=function(e,t){return t||kr(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Xi.prototype.readInt16LE=function(e,t){t||kr(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},Xi.prototype.readInt16BE=function(e,t){t||kr(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},Xi.prototype.readInt32LE=function(e,t){return t||kr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Xi.prototype.readInt32BE=function(e,t){return t||kr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Xi.prototype.readFloatLE=function(e,t){return t||kr(e,4,this.length),Ki(this,e,!0,23,4)},Xi.prototype.readFloatBE=function(e,t){return t||kr(e,4,this.length),Ki(this,e,!1,23,4)},Xi.prototype.readDoubleLE=function(e,t){return t||kr(e,8,this.length),Ki(this,e,!0,52,8)},Xi.prototype.readDoubleBE=function(e,t){return t||kr(e,8,this.length),Ki(this,e,!1,52,8)},Xi.prototype.writeUIntLE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Sr(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},Xi.prototype.writeUIntBE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||Sr(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},Xi.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,1,255,0),Xi.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Xi.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,2,65535,0),Xi.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Pr(this,e,t,!0),t+2},Xi.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,2,65535,0),Xi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Pr(this,e,t,!1),t+2},Xi.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,4,4294967295,0),Xi.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Cr(this,e,t,!0),t+4},Xi.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,4,4294967295,0),Xi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Cr(this,e,t,!1),t+4},Xi.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Sr(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},Xi.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);Sr(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},Xi.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,1,127,-128),Xi.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Xi.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,2,32767,-32768),Xi.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Pr(this,e,t,!0),t+2},Xi.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,2,32767,-32768),Xi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Pr(this,e,t,!1),t+2},Xi.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,4,2147483647,-2147483648),Xi.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Cr(this,e,t,!0),t+4},Xi.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||Sr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Xi.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Cr(this,e,t,!1),t+4},Xi.prototype.writeFloatLE=function(e,t,i){return Ir(this,e,t,!0,i)},Xi.prototype.writeFloatBE=function(e,t,i){return Ir(this,e,t,!1,i)},Xi.prototype.writeDoubleLE=function(e,t,i){return Ar(this,e,t,!0,i)},Xi.prototype.writeDoubleBE=function(e,t,i){return Ar(this,e,t,!1,i)},Xi.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||!Xi.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},Xi.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&&!Xi.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=nr(e)?e:Mr(new Xi(e,r).toString()),s=a.length;for(o=0;o<i-t;++o)this[o+t]=a[o%s]}return this};var Tr=/[^+\/0-9A-Za-z-_]/g;function Lr(e){return e<16?"0"+e.toString(16):e.toString(16)}function Mr(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 jr(e){return function(e){var t,i,r,n,o,a;Bi||$i();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 Ni(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=zi[e.charCodeAt(t)]<<18|zi[e.charCodeAt(t+1)]<<12|zi[e.charCodeAt(t+2)]<<6|zi[e.charCodeAt(t+3)],a[c++]=n>>16&255,a[c++]=n>>8&255,a[c++]=255&n;return 2===o?(n=zi[e.charCodeAt(t)]<<2|zi[e.charCodeAt(t+1)]>>4,a[c++]=255&n):1===o&&(n=zi[e.charCodeAt(t)]<<10|zi[e.charCodeAt(t+1)]<<4|zi[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(Tr,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Dr(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 Rr(e){return null!=e&&(!!e._isBuffer||Or(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Or(e.slice(0,0))}(e))}function Or(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Vr,zr,Nr,Br=Object.freeze({__proto__:null,Buffer:Xi,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),Xi.alloc(+e)},isBuffer:Rr,kMaxLength:Yi}),$r={},Ur={};function Fr(){if(zr)return $r;zr=1,Object.defineProperty($r,"__esModule",{value:!0});var e=(Vr||(Vr=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=function(e){var t=e.length,i=t%4;if(!i)return e;var r=t,n=4-i,o=t+n,a=Xi.alloc(o);for(a.write(e);n--;)a.write("=",r++);return a.toString()}),Ur);function t(e,t){return void 0===t&&(t="utf8"),Xi.isBuffer(e)?r(e.toString("base64")):r(Xi.from(e,t).toString("base64"))}function i(t){return t=t.toString(),e.default(t).replace(/\-/g,"+").replace(/_/g,"/")}function r(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var n=t;return n.encode=t,n.decode=function(e,t){return void 0===t&&(t="utf8"),Xi.from(i(e),"base64").toString(t)},n.toBase64=i,n.fromBase64=r,n.toBuffer=function(e){return Xi.from(i(e),"base64")},$r.default=n,$r}var Hr,Kr=ji((Nr||(Nr=1,(Hr=Ri).exports=Fr().default,Hr.exports.default=Hr.exports),Ri.exports));
|
|
121
121
|
/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
|
122
|
-
const qr={p:0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2fn,n:0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n,h:1n,a:0n,b:7n,Gx:0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798n,Gy:0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8n},{p:Jr,n:Wr,Gx:Yr,Gy:Gr,b:Zr}=qr,Xr=32,Qr={publicKey:33,publicKeyUncompressed:65,signature:64,seed:48},en=(e="")=>{const t=new Error(e);throw((...e)=>{"captureStackTrace"in Error&&"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(...e)})(t,en),t},tn=(e,t,i="")=>{const r=(n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&"Uint8Array"===n.constructor.name;var n;const o=e?.length,a=void 0!==t;if(!r||a&&o!==t){en((i&&`"${i}" `)+"expected Uint8Array"+(a?` of length ${t}`:"")+", got "+(r?`length=${o}`:"type="+typeof e))}return e},rn=e=>new Uint8Array(e),nn=(e,t)=>e.toString(16).padStart(t,"0"),on=e=>Array.from(tn(e)).map(e=>nn(e,2)).join(""),an=48,sn=57,cn=65,ln=70,un=97,dn=102,fn=e=>e>=an&&e<=sn?e-an:e>=cn&&e<=ln?e-(cn-10):e>=un&&e<=dn?e-(un-10):void 0,hn=e=>{const t="hex invalid";if("string"!=typeof e)return en(t);const i=e.length,r=i/2;if(i%2)return en(t);const n=rn(r);for(let i=0,o=0;i<r;i++,o+=2){const r=fn(e.charCodeAt(o)),a=fn(e.charCodeAt(o+1));if(void 0===r||void 0===a)return en(t);n[i]=16*r+a}return n},pn=()=>globalThis?.crypto,gn=()=>pn()?.subtle??en("crypto.subtle must be defined, consider polyfill"),bn=(...e)=>{const t=rn(e.reduce((e,t)=>e+tn(t).length,0));let i=0;return e.forEach(e=>{t.set(e,i),i+=e.length}),t},mn=(e=Xr)=>pn().getRandomValues(rn(e)),yn=BigInt,vn=(e,t,i,r="bad number: out of range")=>(e=>"bigint"==typeof e)(e)&&t<=e&&e<i?e:en(r),wn=(e,t=Jr)=>{const i=e%t;return i>=0n?i:t+i},xn=e=>wn(e,Wr),_n=(e,t)=>{(0n===e||t<=0n)&&en("no inverse n="+e+" mod="+t);let i=wn(e,t),r=t,n=0n,o=1n;for(;0n!==i;){const e=r%i,t=n-o*(r/i);r=i,i=e,n=o,o=t}return 1n===r?wn(n,t):en("no inverse")},kn=e=>e instanceof Ln?e:en("Point expected"),Sn=e=>wn(wn(e*e)*e+Zr),Pn=e=>vn(e,0n,Jr),Cn=e=>vn(e,1n,Jr),En=e=>vn(e,1n,Wr),In=e=>0n==(1n&e),Tn=e=>Uint8Array.of(e);class Ln{static BASE;static ZERO;X;Y;Z;constructor(e,t,i){this.X=Pn(e),this.Y=Cn(t),this.Z=Pn(i),Object.freeze(this)}static CURVE(){return qr}static fromAffine(e){const{x:t,y:i}=e;return 0n===t&&0n===i?Mn:new Ln(t,i,1n)}static fromBytes(e){tn(e);const{publicKey:t,publicKeyUncompressed:i}=Qr;let r;const n=e.length,o=e[0],a=e.subarray(1),s=Dn(a,0,Xr);if(n===t&&(2===o||3===o)){let e=(e=>{const t=Sn(Cn(e));let i=1n;for(let e=t,r=(Jr+1n)/4n;r>0n;r>>=1n)1n&r&&(i=i*e%Jr),e=e*e%Jr;return wn(i*i)===t?i:en("sqrt invalid")})(s);const t=In(e);In(yn(o))!==t&&(e=wn(-e)),r=new Ln(s,e,1n)}return n===i&&4===o&&(r=new Ln(s,Dn(a,Xr,64),1n)),r?r.assertValidity():en("bad point: not on curve")}static fromHex(e){return Ln.fromBytes(hn(e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}equals(e){const{X:t,Y:i,Z:r}=this,{X:n,Y:o,Z:a}=kn(e),s=wn(t*a),c=wn(n*r),l=wn(i*a),u=wn(o*r);return s===c&&l===u}is0(){return this.equals(Mn)}negate(){return new Ln(this.X,wn(-this.Y),this.Z)}double(){return this.add(this)}add(e){const{X:t,Y:i,Z:r}=this,{X:n,Y:o,Z:a}=kn(e);let s=0n,c=0n,l=0n;const u=wn(3n*Zr);let d=wn(t*n),f=wn(i*o),h=wn(r*a),p=wn(t+i),g=wn(n+o);p=wn(p*g),g=wn(d+f),p=wn(p-g),g=wn(t+r);let b=wn(n+a);return g=wn(g*b),b=wn(d+h),g=wn(g-b),b=wn(i+r),s=wn(o+a),b=wn(b*s),s=wn(f+h),b=wn(b-s),l=wn(0n*g),s=wn(u*h),l=wn(s+l),s=wn(f-l),l=wn(f+l),c=wn(s*l),f=wn(d+d),f=wn(f+d),h=wn(0n*h),g=wn(u*g),f=wn(f+h),h=wn(d-h),h=wn(0n*h),g=wn(g+h),d=wn(f*g),c=wn(c+d),d=wn(b*g),s=wn(p*s),s=wn(s-d),d=wn(p*f),l=wn(b*l),l=wn(l+d),new Ln(s,c,l)}subtract(e){return this.add(kn(e).negate())}multiply(e,t=!0){if(!t&&0n===e)return Mn;if(En(e),1n===e)return this;if(this.equals(An))return lo(e).p;let i=Mn,r=An;for(let n=this;e>0n;n=n.double(),e>>=1n)1n&e?i=i.add(n):t&&(r=r.add(n));return i}multiplyUnsafe(e){return this.multiply(e,!1)}toAffine(){const{X:e,Y:t,Z:i}=this;if(this.equals(Mn))return{x:0n,y:0n};if(1n===i)return{x:e,y:t};const r=_n(i,Jr);return 1n!==wn(i*r)&&en("inverse invalid"),{x:wn(e*r),y:wn(t*r)}}assertValidity(){const{x:e,y:t}=this.toAffine();return Cn(e),Cn(t),wn(t*t)===Sn(e)?this:en("bad point: not on curve")}toBytes(e=!0){const{x:t,y:i}=this.assertValidity().toAffine(),r=On(t);return e?bn((e=>Tn(In(e)?2:3))(i),r):bn(Tn(4),r,On(i))}toHex(e){return on(this.toBytes(e))}}const An=new Ln(Yr,Gr,1n),Mn=new Ln(0n,1n,0n);Ln.BASE=An,Ln.ZERO=Mn;const jn=e=>yn("0x"+(on(e)||"0")),Dn=(e,t,i)=>jn(e.subarray(t,i)),Rn=2n**256n,On=e=>hn(nn(vn(e,0n,Rn),64)),Vn=e=>{const t=jn(tn(e,Xr,"secret key"));return vn(t,1n,Wr,"invalid secret key: outside of range")},Nn=e=>e>Wr>>1n,zn=(e,t=!0)=>An.multiply(Vn(e)).toBytes(t),Bn=(e,t=Hn)=>{(e=>{null==e||Jn.includes(e)||en(`Signature format must be one of: ${Jn.join(", ")}`),e===qn&&en('Signature format "der" is not supported: switch to noble-curves')})(t);const i=Qr.signature,r=i+1;let n=`Signature format "${t}" expects Uint8Array with length `;t===Hn&&e.length!==i&&en(n+i),t===Kn&&e.length!==r&&en(n+r)};class $n{r;s;recovery;constructor(e,t,i){this.r=En(e),this.s=En(t),null!=i&&(this.recovery=i),Object.freeze(this)}static fromBytes(e,t=Hn){let i;Bn(e,t),t===Kn&&(i=e[0],e=e.subarray(1));const r=Dn(e,0,Xr),n=Dn(e,Xr,64);return new $n(r,n,i)}addRecoveryBit(e){return new $n(this.r,this.s,e)}hasHighS(){return Nn(this.s)}toBytes(e=Hn){const{r:t,s:i,recovery:r}=this,n=bn(On(t),On(i));return e===Kn?((e=>{[0,1,2,3].includes(e)||en("recovery id must be valid and present")})(r),bn(Uint8Array.of(r),n)):n}}const Un=e=>{const t=8*e.length-256;t>1024&&en("msg invalid");const i=jn(e);return t>0?i>>yn(t):i},Fn=e=>xn(Un(tn(e))),Hn="compact",Kn="recovered",qn="der",Jn=[Hn,Kn,qn],Wn={lowS:!0,prehash:!0,format:Hn,extraEntropy:!1},Yn="SHA-256",Gn={hmacSha256Async:async(e,t)=>{const i=gn(),r="HMAC",n=await i.importKey("raw",e,{name:r,hash:{name:Yn}},!1,["sign"]);return rn(await i.sign(r,n,t))},hmacSha256:void 0,sha256Async:async e=>rn(await gn().digest(Yn,e)),sha256:void 0},Zn=(e,t,i)=>(tn(e,void 0,"message"),t.prehash?i?Gn.sha256Async(e):(e=>{const t=Gn[e];return en("hashes."+e+" not set"),t})("sha256")(e):e),Xn=rn(0),Qn=Tn(0),eo=Tn(1),to=async(e,t)=>{let i=rn(Xr),r=rn(Xr),n=0;const o=()=>{i.fill(1),r.fill(0)},a=(...e)=>Gn.hmacSha256Async(r,bn(i,...e)),s=async(e=Xn)=>{r=await a(Qn,e),i=await a(),0!==e.length&&(r=await a(eo,e),i=await a())},c=async()=>(n++>=1e3&&en("drbg: tried max amount of iterations"),i=await a(),i);let l;for(o(),await s(e);!(l=t(await c()));)await s();return o(),l},io=(e,t,i,r={})=>{const{lowS:n,format:o}=r;e instanceof $n&&en("Signature must be in Uint8Array, use .toBytes()"),Bn(e,o),tn(i,void 0,"publicKey");try{const{r:r,s:a}=$n.fromBytes(e,o),s=Fn(t),c=Ln.fromBytes(i);if(n&&Nn(a))return!1;const l=_n(a,Wr),u=xn(s*l),d=((e,t,i)=>An.multiply(t,!1).add(e.multiply(i,!1)).assertValidity())(c,u,xn(r*l)).toAffine();return xn(d.x)===r}catch(e){return!1}},ro=e=>{const t={};return Object.keys(Wn).forEach(i=>{t[i]=e[i]??Wn[i]}),t},no=async(e,t,i={})=>(i=ro(i),((e,t,i,r)=>{let{lowS:n,extraEntropy:o}=i;const a=On,s=Fn(e),c=a(s),l=Vn(t),u=[a(l),c];if(null!=o&&!1!==o){const e=!0===o?mn(Xr):o;u.push(tn(e,void 0,"extraEntropy"))}const d=bn(...u),f=s;return r(d,e=>{const t=Un(e);if(!(1n<=t&&t<Wr))return;const r=_n(t,Wr),o=An.multiply(t).toAffine(),a=xn(o.x);if(0n===a)return;const s=xn(r*xn(f+a*l));if(0n===s)return;let c=(o.x===a?0:2)|Number(1n&o.y),u=s;return n&&Nn(s)&&(u=xn(-s),c^=1),new $n(a,u,c).toBytes(i.format)})})(e=await Zn(e,i,!0),t,i,to)),oo=e=>{try{return!!Vn(e)}catch(e){return!1}},ao=Math.ceil(32)+1;let so;const co=(e,t)=>{const i=t.negate();return e?i:t},lo=e=>{const t=so||(so=(()=>{const e=[];let t=An,i=t;for(let r=0;r<ao;r++){i=t,e.push(i);for(let r=1;r<128;r++)i=i.add(t),e.push(i);t=i.double()}return e})());let i=Mn,r=An;const n=yn(255),o=yn(8);for(let a=0;a<ao;a++){let s=Number(e&n);e>>=o,s>128&&(s-=256,e+=1n);const c=128*a,l=c,u=c+Math.abs(s)-1,d=a%2!=0,f=s<0;0===s?r=r.add(co(d,t[l])):i=i.add(co(f,t[u]))}return 0n!==e&&en("invalid wnaf"),{p:i,f:r}};var uo,fo,ho,po,go,bo,mo,yo,vo,wo,xo,_o,ko,So,Po,Co,Eo,Io,To,Lo,Ao,Mo,jo,Do,Ro,Oo,Vo,No,zo,Bo,$o,Uo,Fo,Ho,Ko,qo,Jo,Wo,Yo,Go,Zo,Xo,Qo,ea,ta,ia,ra,na,oa,aa,sa,ca,la,ua,da,fa,ha,pa,ga,ba,ma,ya,va,wa,xa,_a,ka,Sa,Pa,Ca,Ea,Ia,Ta,La,Aa,Ma,ja,Da,Ra,Oa,Va,Na="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},za=Di(Object.freeze({__proto__:null,default:Na})),Ba={exports:{}},$a=Di(Br);function Ua(){return uo||(uo=1,function(e,t){var i=$a,r=i.Buffer;function n(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return r(e,t,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(n(i,t),t.Buffer=o),o.prototype=Object.create(r.prototype),n(r,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=r(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}}(Ba,Ba.exports)),Ba.exports}function Fa(){return go?po:(go=1,po=TypeError)}function Ha(){return mo?bo:(mo=1,bo=Object)}function Ka(){return vo?yo:(vo=1,yo=Error)}function qa(){return xo?wo:(xo=1,wo=EvalError)}function Ja(){return ko?_o:(ko=1,_o=RangeError)}function Wa(){return Po?So:(Po=1,So=ReferenceError)}function Ya(){return Eo?Co:(Eo=1,Co=SyntaxError)}function Ga(){return To?Io:(To=1,Io=URIError)}function Za(){return Ao?Lo:(Ao=1,Lo=Math.abs)}function Xa(){return jo?Mo:(jo=1,Mo=Math.floor)}function Qa(){return Ro?Do:(Ro=1,Do=Math.max)}function es(){return Vo?Oo:(Vo=1,Oo=Math.min)}function ts(){return zo?No:(zo=1,No=Math.pow)}function is(){return $o?Bo:($o=1,Bo=Math.round)}function rs(){return Fo?Uo:(Fo=1,Uo=Number.isNaN||function(e){return e!=e})}function ns(){if(Ko)return Ho;Ko=1;var e=rs();return Ho=function(t){return e(t)||0===t?t:t<0?-1:1}}function os(){return Jo?qo:(Jo=1,qo=Object.getOwnPropertyDescriptor)}function as(){if(Yo)return Wo;Yo=1;var e=os();if(e)try{e([],"length")}catch(t){e=null}return Wo=e}function ss(){if(Zo)return Go;Zo=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return Go=e}function cs(){return Qo?Xo:(Qo=1,Xo=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),i=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0})}function ls(){if(ta)return ea;ta=1;var e="undefined"!=typeof Symbol&&Symbol,t=cs();return ea=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}function us(){return ra?ia:(ra=1,ia="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function ds(){return oa?na:(oa=1,na=Ha().getPrototypeOf||null)}function fs(){if(sa)return aa;sa=1;var e=Object.prototype.toString,t=Math.max,i=function(e,t){for(var i=[],r=0;r<e.length;r+=1)i[r]=e[r];for(var n=0;n<t.length;n+=1)i[n+e.length]=t[n];return i};return aa=function(r){var n=this;if("function"!=typeof n||"[object Function]"!==e.apply(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var o,a=function(e,t){for(var i=[],r=t,n=0;r<e.length;r+=1,n+=1)i[n]=e[r];return i}(arguments,1),s=t(0,n.length-a.length),c=[],l=0;l<s;l++)c[l]="$"+l;if(o=Function("binder","return function ("+function(e,t){for(var i="",r=0;r<e.length;r+=1)i+=e[r],r+1<e.length&&(i+=t);return i}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=n.apply(this,i(a,arguments));return Object(e)===e?e:this}return n.apply(r,i(a,arguments))}),n.prototype){var u=function(){};u.prototype=n.prototype,o.prototype=new u,u.prototype=null}return o},aa}function hs(){if(la)return ca;la=1;var e=fs();return ca=Function.prototype.bind||e}function ps(){return da?ua:(da=1,ua=Function.prototype.call)}function gs(){return ha?fa:(ha=1,fa=Function.prototype.apply)}function bs(){if(ma)return ba;ma=1;var e=hs(),t=gs(),i=ps(),r=ga?pa:(ga=1,pa="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return ba=r||e.call(i,t)}function ms(){if(va)return ya;va=1;var e=hs(),t=Fa(),i=ps(),r=bs();return ya=function(n){if(n.length<1||"function"!=typeof n[0])throw new t("a function is required");return r(e,i,n)}}function ys(){if(xa)return wa;xa=1;var e,t=ms(),i=as();try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!e&&i&&i(Object.prototype,"__proto__"),n=Object,o=n.getPrototypeOf;return wa=r&&"function"==typeof r.get?t([r.get]):"function"==typeof o&&function(e){return o(null==e?e:n(e))}}function vs(){if(ka)return _a;ka=1;var e=us(),t=ds(),i=ys();return _a=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:i?function(e){return i(e)}:null}function ws(){if(Pa)return Sa;Pa=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,i=hs();return Sa=i.call(e,t)}function xs(){if(Ea)return Ca;var e;Ea=1;var t=Ha(),i=Ka(),r=qa(),n=Ja(),o=Wa(),a=Ya(),s=Fa(),c=Ga(),l=Za(),u=Xa(),d=Qa(),f=es(),h=ts(),p=is(),g=ns(),b=Function,m=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},y=as(),v=ss(),w=function(){throw new s},x=y?function(){try{return w}catch(e){try{return y(arguments,"callee").get}catch(e){return w}}}():w,_=ls()(),k=vs(),S=ds(),P=us(),C=gs(),E=ps(),I={},T="undefined"!=typeof Uint8Array&&k?k(Uint8Array):e,L={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":_&&k?k([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":r,"%Float16Array%":"undefined"==typeof Float16Array?e:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&k?k(k([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&k?k((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":n,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&k?k((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&k?k(""[Symbol.iterator]()):e,"%Symbol%":_?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":x,"%TypedArray%":T,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet,"%Function.prototype.call%":E,"%Function.prototype.apply%":C,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":S,"%Math.abs%":l,"%Math.floor%":u,"%Math.max%":d,"%Math.min%":f,"%Math.pow%":h,"%Math.round%":p,"%Math.sign%":g,"%Reflect.getPrototypeOf%":P};if(k)try{null.error}catch(e){var A=k(k(e));L["%Error.prototype%"]=A}var M=function e(t){var i;if("%AsyncFunction%"===t)i=m("async function () {}");else if("%GeneratorFunction%"===t)i=m("function* () {}");else if("%AsyncGeneratorFunction%"===t)i=m("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(i=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&k&&(i=k(n.prototype))}return L[t]=i,i},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=hs(),R=ws(),O=D.call(E,Array.prototype.concat),V=D.call(C,Array.prototype.splice),N=D.call(E,String.prototype.replace),z=D.call(E,String.prototype.slice),B=D.call(E,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,F=function(e,t){var i,r=e;if(R(j,r)&&(r="%"+(i=j[r])[0]+"%"),R(L,r)){var n=L[r];if(n===I&&(n=M(r)),void 0===n&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:n}}throw new a("intrinsic "+e+" does not exist!")};return Ca=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=function(e){var t=z(e,0,1),i=z(e,-1);if("%"===t&&"%"!==i)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return N(e,$,function(e,t,i,n){r[r.length]=i?N(n,U,"$1"):t||e}),r}(e),r=i.length>0?i[0]:"",n=F("%"+r+"%",t),o=n.name,c=n.value,l=!1,u=n.alias;u&&(r=u[0],V(i,O([0,1],u)));for(var d=1,f=!0;d<i.length;d+=1){var h=i[d],p=z(h,0,1),g=z(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new a("property names with quotes must have matching quotes");if("constructor"!==h&&f||(l=!0),R(L,o="%"+(r+="."+h)+"%"))c=L[o];else if(null!=c){if(!(h in c)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(y&&d+1>=i.length){var b=y(c,h);c=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[h]}else f=R(c,h),c=c[h];f&&!l&&(L[o]=c)}}return c},Ca}function _s(){if(Ta)return Ia;Ta=1;var e=xs(),t=ms(),i=t([e("%String.prototype.indexOf%")]);return Ia=function(r,n){var o=e(r,!!n);return"function"==typeof o&&i(r,".prototype.")>-1?t([o]):o}}function ks(){if(Aa)return La;Aa=1;var e,t,i=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw t}}),t={},r(function(){throw 42},null,e)}catch(e){e!==t&&(r=null)}else r=null;var n=/^\s*class\b/,o=function(e){try{var t=i.call(e);return n.test(t)}catch(e){return!1}},a=function(e){try{return!o(e)&&(i.call(e),!0)}catch(e){return!1}},s=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var d=document.all;s.call(d)===s.call(document.all)&&(u=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=s.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}return La=r?function(i){if(u(i))return!0;if(!i)return!1;if("function"!=typeof i&&"object"!=typeof i)return!1;try{r(i,null,e)}catch(e){if(e!==t)return!1}return!o(i)&&a(i)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return a(e);if(o(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}}function Ss(){if(ja)return Ma;ja=1;var e=ks(),t=Object.prototype.toString,i=Object.prototype.hasOwnProperty;return Ma=function(r,n,o){if(!e(n))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=o),s=r,"[object Array]"===t.call(s)?function(e,t,r){for(var n=0,o=e.length;n<o;n++)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(r,n,a):"string"==typeof r?function(e,t,i){for(var r=0,n=e.length;r<n;r++)null==i?t(e.charAt(r),r,e):t.call(i,e.charAt(r),r,e)}(r,n,a):function(e,t,r){for(var n in e)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(r,n,a)},Ma}function Ps(){return Ra?Da:(Ra=1,Da=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"])}function Cs(){if(Va)return Oa;Va=1;var e=Ps(),t="undefined"==typeof globalThis?Mi:globalThis;return Oa=function(){for(var i=[],r=0;r<e.length;r++)"function"==typeof t[e[r]]&&(i[i.length]=e[r]);return i}}var Es,Is,Ts,Ls,As,Ms,js,Ds,Rs,Os,Vs,Ns,zs,Bs,$s,Us,Fs,Hs,Ks,qs,Js,Ws={exports:{}};function Ys(){if(Is)return Es;Is=1;var e=ss(),t=Ya(),i=Fa(),r=as();return Es=function(n,o,a){if(!n||"object"!=typeof n&&"function"!=typeof n)throw new i("`obj` must be an object or a function`");if("string"!=typeof o&&"symbol"!=typeof o)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!r&&r(n,o);if(e)e(n,o,{configurable:null===l&&d?d.configurable:!l,enumerable:null===s&&d?d.enumerable:!s,value:a,writable:null===c&&d?d.writable:!c});else{if(!u&&(s||c||l))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");n[o]=a}},Es}function Gs(){if(Ls)return Ts;Ls=1;var e=ss(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return 1!==e([],"length",{value:1}).length}catch(e){return!0}},Ts=t}function Zs(){if(Ms)return As;Ms=1;var e=xs(),t=Ys(),i=Gs()(),r=as(),n=Fa(),o=e("%Math.floor%");return As=function(e,a){if("function"!=typeof e)throw new n("`fn` is not a function");if("number"!=typeof a||a<0||a>4294967295||o(a)!==a)throw new n("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],c=!0,l=!0;if("length"in e&&r){var u=r(e,"length");u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!s)&&(i?t(e,"length",a,!0,!0):t(e,"length",a)),e},As}function Xs(){if(Ds)return js;Ds=1;var e=hs(),t=gs(),i=bs();return js=function(){return i(e,t,arguments)},js}function Qs(){return Rs||(Rs=1,function(e){var t=Zs(),i=ss(),r=ms(),n=Xs();e.exports=function(e){var i=r(arguments),n=e.length-(arguments.length-1);return t(i,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:n}):e.exports.apply=n}(Ws)),Ws.exports}function ec(){if(zs)return Ns;zs=1;var e=Ss(),t=Cs(),i=Qs(),r=_s(),n=as(),o=vs(),a=r("Object.prototype.toString"),s=function(){if(Vs)return Os;Vs=1;var e=cs();return Os=function(){return e()&&!!Symbol.toStringTag}}()(),c="undefined"==typeof globalThis?Mi:globalThis,l=t(),u=r("String.prototype.slice"),d=r("Array.prototype.indexOf",!0)||function(e,t){for(var i=0;i<e.length;i+=1)if(e[i]===t)return i;return-1},f={__proto__:null};e(l,s&&n&&o?function(e){var t=new c[e];if(Symbol.toStringTag in t&&o){var r=o(t),a=n(r,Symbol.toStringTag);if(!a&&r){var s=o(r);a=n(s,Symbol.toStringTag)}if(a&&a.get){var l=i(a.get);f["$"+e]=l}}}:function(e){var t=new c[e],r=t.slice||t.set;if(r){var n=i(r);f["$"+e]=n}});return Ns=function(t){if(!t||"object"!=typeof t)return!1;if(!s){var i=u(a(t),8,-1);return d(l,i)>-1?i:"Object"===i&&function(t){var i=!1;return e(f,function(e,r){if(!i)try{e(t),i=u(r,1)}catch(e){}}),i}(t)}return n?function(t){var i=!1;return e(f,function(e,r){if(!i)try{"$"+e(t)===r&&(i=u(r,1))}catch(e){}}),i}(t):null}}function tc(){if($s)return Bs;$s=1;var e=ec();return Bs=function(t){return!!e(t)}}function ic(){if(Fs)return Us;Fs=1;var e=Fa(),t=_s()("TypedArray.prototype.buffer",!0),i=tc();return Us=t||function(t){if(!i(t))throw new e("Not a Typed Array");return t.buffer}}function rc(){if(Ks)return Hs;Ks=1;var e=Ua().Buffer,t=function(){if(ho)return fo;ho=1;var e={}.toString;return fo=Array.isArray||function(t){return"[object Array]"==e.call(t)}}(),i=ic(),r=ArrayBuffer.isView||function(e){try{return i(e),!0}catch(e){return!1}},n="undefined"!=typeof Uint8Array,o="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,a=o&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return Hs=function(i,s){if(e.isBuffer(i))return i.constructor&&!("isBuffer"in i)?e.from(i):i;if("string"==typeof i)return e.from(i,s);if(o&&r(i)){if(0===i.byteLength)return e.alloc(0);if(a){var c=e.from(i.buffer,i.byteOffset,i.byteLength);if(c.byteLength===i.byteLength)return c}var l=i instanceof Uint8Array?i:new Uint8Array(i.buffer,i.byteOffset,i.byteLength),u=e.from(l);if(u.length===i.byteLength)return u}if(n&&i instanceof Uint8Array)return e.from(i);var d=t(i);if(d)for(var f=0;f<i.length;f+=1){var h=i[f];if("number"!=typeof h||h<0||h>255||~~h!==h)throw new RangeError("Array items must be numbers in the range 0-255.")}if(d||e.isBuffer(i)&&i.constructor&&"function"==typeof i.constructor.isBuffer&&i.constructor.isBuffer(i))return e.from(i);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}var nc={exports:{}};function oc(){throw new Error("setTimeout has not been defined")}function ac(){throw new Error("clearTimeout has not been defined")}var sc=oc,cc=ac;function lc(e){if(sc===setTimeout)return setTimeout(e,0);if((sc===oc||!sc)&&setTimeout)return sc=setTimeout,setTimeout(e,0);try{return sc(e,0)}catch(t){try{return sc.call(null,e,0)}catch(t){return sc.call(this,e,0)}}}"function"==typeof Oi.setTimeout&&(sc=setTimeout),"function"==typeof Oi.clearTimeout&&(cc=clearTimeout);var uc,dc=[],fc=!1,hc=-1;function pc(){fc&&uc&&(fc=!1,uc.length?dc=uc.concat(dc):hc=-1,dc.length&&gc())}function gc(){if(!fc){var e=lc(pc);fc=!0;for(var t=dc.length;t;){for(uc=dc,dc=[];++hc<t;)uc&&uc[hc].run();hc=-1,t=dc.length}uc=null,fc=!1,function(e){if(cc===clearTimeout)return clearTimeout(e);if((cc===ac||!cc)&&clearTimeout)return cc=clearTimeout,clearTimeout(e);try{return cc(e)}catch(t){try{return cc.call(null,e)}catch(t){return cc.call(this,e)}}}(e)}}function bc(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];dc.push(new mc(e,t)),1!==dc.length||fc||lc(gc)}function mc(e,t){this.fun=e,this.array=t}mc.prototype.run=function(){this.fun.apply(null,this.array)};var yc="";function vc(){}var wc=vc,xc=vc,_c=vc,kc=vc,Sc=vc,Pc=vc,Cc=vc;var Ec=Oi.performance||{},Ic=Ec.now||Ec.mozNow||Ec.msNow||Ec.oNow||Ec.webkitNow||function(){return(new Date).getTime()};var Tc=new Date;var Lc,Ac,Mc,jc,Dc={nextTick:bc,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:wc,addListener:xc,once:_c,off:kc,removeListener:Sc,removeAllListeners:Pc,emit:Cc,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*Ic.call(Ec),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-Tc)/1e3}},Rc={exports:{}};function Oc(){if(Lc)return Rc.exports;return Lc=1,Rc.exports={nextTick:function(e,t,i,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var n,o,a=arguments.length;switch(a){case 0:case 1:return Dc.nextTick(e);case 2:return Dc.nextTick(function(){e.call(null,t)});case 3:return Dc.nextTick(function(){e.call(null,t,i)});case 4:return Dc.nextTick(function(){e.call(null,t,i,r)});default:for(n=new Array(a-1),o=0;o<n.length;)n[o++]=arguments[o];return Dc.nextTick(function(){e.apply(null,n)})}}},Rc.exports}function Vc(){}function Nc(){Nc.init.call(this)}function zc(e){return void 0===e._maxListeners?Nc.defaultMaxListeners:e._maxListeners}function Bc(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 Vc,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=zc(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 $c(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 Uc(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 Fc(e,t){for(var i=new Array(t);t--;)i[t]=e[t];return i}Vc.prototype=Object.create(null),Nc.EventEmitter=Nc,Nc.usingDomains=!1,Nc.prototype.domain=void 0,Nc.prototype._events=void 0,Nc.prototype._maxListeners=void 0,Nc.defaultMaxListeners=10,Nc.init=function(){this.domain=null,Nc.usingDomains&&(!jc.active||this instanceof jc.Domain||(this.domain=jc.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Vc,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Nc.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},Nc.prototype.getMaxListeners=function(){return zc(this)},Nc.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 l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}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 u="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=Fc(e,r),o=0;o<r;++o)n[o].call(i)}(i,u,this);break;case 2:!function(e,t,i,r){if(t)e.call(i,r);else for(var n=e.length,o=Fc(e,n),a=0;a<n;++a)o[a].call(i,r)}(i,u,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=Fc(e,o),s=0;s<o;++s)a[s].call(i,r,n)}(i,u,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=Fc(e,a),c=0;c<a;++c)s[c].call(i,r,n,o)}(i,u,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=Fc(e,n),a=0;a<n;++a)o[a].apply(i,r)}(i,u,this,n)}return!0},Nc.prototype.addListener=function(e,t){return Bc(this,e,t,!1)},Nc.prototype.on=Nc.prototype.addListener,Nc.prototype.prependListener=function(e,t){return Bc(this,e,t,!0)},Nc.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,$c(this,e,t)),this},Nc.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,$c(this,e,t)),this},Nc.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 Vc:(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 Vc,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},Nc.prototype.off=function(e,t){return this.removeListener(e,t)},Nc.prototype.removeAllListeners=function(e){var t,i;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=new Vc,this._eventsCount=0):i[e]&&(0===--this._eventsCount?this._events=new Vc: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 Vc,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},Nc.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):[]},Nc.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Uc.call(e,t)},Nc.prototype.listenerCount=Uc,Nc.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Hc,Kc,qc=Di(Object.freeze({__proto__:null,EventEmitter:Nc,default:Nc}));function Jc(){return Kc?Hc:(Kc=1,Hc=qc.EventEmitter)}var Wc,Yc={exports:{}};function Gc(){return Wc||(Wc=1,function(e,t){var i=$a,r=i.Buffer;function n(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return r(e,t,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(n(i,t),t.Buffer=o),n(r,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=r(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}}(Yc,Yc.exports)),Yc.exports}var Zc,Xc,Qc={};function el(){if(Zc)return Qc;function e(e){return Object.prototype.toString.call(e)}return Zc=1,Qc.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},Qc.isBoolean=function(e){return"boolean"==typeof e},Qc.isNull=function(e){return null===e},Qc.isNullOrUndefined=function(e){return null==e},Qc.isNumber=function(e){return"number"==typeof e},Qc.isString=function(e){return"string"==typeof e},Qc.isSymbol=function(e){return"symbol"==typeof e},Qc.isUndefined=function(e){return void 0===e},Qc.isRegExp=function(t){return"[object RegExp]"===e(t)},Qc.isObject=function(e){return"object"==typeof e&&null!==e},Qc.isDate=function(t){return"[object Date]"===e(t)},Qc.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},Qc.isFunction=function(e){return"function"==typeof e},Qc.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},Qc.isBuffer=$a.Buffer.isBuffer,Qc}Xc="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};var tl=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),i={},r=0;r<t.length;r++)i[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return i},il=/%[sdj%]/g;function rl(e){if(!vl(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(cl(arguments[i]));return t.join(" ")}i=1;for(var r=arguments,n=r.length,o=String(e).replace(il,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])bl(a)||!kl(a)?o+=" "+a:o+=" "+cl(a);return o}function nl(e,t){if(xl(Oi.process))return function(){return nl(e,t).apply(this,arguments)};if(!0===Dc.noDeprecation)return e;var i=!1;return function(){if(!i){if(Dc.throwDeprecation)throw new Error(t);Dc.traceDeprecation?console.trace(t):console.error(t),i=!0}return e.apply(this,arguments)}}var ol,al={};function sl(e){if(xl(ol)&&(ol=Dc.env.NODE_DEBUG||""),e=e.toUpperCase(),!al[e])if(new RegExp("\\b"+e+"\\b","i").test(ol)){al[e]=function(){var t=rl.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else al[e]=function(){};return al[e]}function cl(e,t){var i={seen:[],stylize:ul};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),gl(t)?i.showHidden=t:t&&jl(i,t),xl(i.showHidden)&&(i.showHidden=!1),xl(i.depth)&&(i.depth=2),xl(i.colors)&&(i.colors=!1),xl(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=ll),dl(i,e,i.depth)}function ll(e,t){var i=cl.styles[t];return i?"["+cl.colors[i][0]+"m"+e+"["+cl.colors[i][1]+"m":e}function ul(e,t){return e}function dl(e,t,i){if(e.customInspect&&t&&Cl(t.inspect)&&t.inspect!==cl&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(i,e);return vl(r)||(r=dl(e,r,i)),r}var n=function(e,t){if(xl(t))return e.stylize("undefined","undefined");if(vl(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}if(yl(t))return e.stylize(""+t,"number");if(gl(t))return e.stylize(""+t,"boolean");if(bl(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)),Pl(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return fl(t);if(0===o.length){if(Cl(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(_l(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Sl(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Pl(t))return fl(t)}var c,l="",u=!1,d=["{","}"];(pl(t)&&(u=!0,d=["[","]"]),Cl(t))&&(l=" [Function"+(t.name?": "+t.name:"")+"]");return _l(t)&&(l=" "+RegExp.prototype.toString.call(t)),Sl(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Pl(t)&&(l=" "+fl(t)),0!==o.length||u&&0!=t.length?i<0?_l(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=u?function(e,t,i,r,n){for(var o=[],a=0,s=t.length;a<s;++a)Dl(t,String(a))?o.push(hl(e,t,i,r,String(a),!0)):o.push("");return n.forEach(function(n){n.match(/^\d+$/)||o.push(hl(e,t,i,r,n,!0))}),o}(e,t,i,a,o):o.map(function(r){return hl(e,t,i,a,r,u)}),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,l,d)):d[0]+l+d[1]}function fl(e){return"["+Error.prototype.toString.call(e)+"]"}function hl(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")),Dl(r,n)||(a="["+n+"]"),s||(e.seen.indexOf(c.value)<0?(s=bl(i)?dl(e,c.value,null):dl(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")),xl(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 pl(e){return Array.isArray(e)}function gl(e){return"boolean"==typeof e}function bl(e){return null===e}function ml(e){return null==e}function yl(e){return"number"==typeof e}function vl(e){return"string"==typeof e}function wl(e){return"symbol"==typeof e}function xl(e){return void 0===e}function _l(e){return kl(e)&&"[object RegExp]"===Tl(e)}function kl(e){return"object"==typeof e&&null!==e}function Sl(e){return kl(e)&&"[object Date]"===Tl(e)}function Pl(e){return kl(e)&&("[object Error]"===Tl(e)||e instanceof Error)}function Cl(e){return"function"==typeof e}function El(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Il(e){return Xi.isBuffer(e)}function Tl(e){return Object.prototype.toString.call(e)}function Ll(e){return e<10?"0"+e.toString(10):e.toString(10)}cl.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]},cl.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Al=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ml(){var e,t;console.log("%s - %s",(e=new Date,t=[Ll(e.getHours()),Ll(e.getMinutes()),Ll(e.getSeconds())].join(":"),[e.getDate(),Al[e.getMonth()],t].join(" ")),rl.apply(null,arguments))}function jl(e,t){if(!t||!kl(t))return e;for(var i=Object.keys(t),r=i.length;r--;)e[i[r]]=t[i[r]];return e}function Dl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Rl="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function Ol(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(Rl&&e[Rl]){var t;if("function"!=typeof(t=e[Rl]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Rl,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,i,r=new Promise(function(e,r){t=e,i=r}),n=[],o=0;o<arguments.length;o++)n.push(arguments[o]);n.push(function(e,r){e?i(e):t(r)});try{e.apply(this,n)}catch(e){i(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Rl&&Object.defineProperty(t,Rl,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,tl(e))}function Vl(e,t){if(!e){var i=new Error("Promise was rejected with a falsy value");i.reason=e,e=i}return t(e)}function Nl(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],i=0;i<arguments.length;i++)t.push(arguments[i]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var n=this,o=function(){return r.apply(n,arguments)};e.apply(this,t).then(function(e){Dc.nextTick(o.bind(null,null,e))},function(e){Dc.nextTick(Vl.bind(null,e,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,tl(e)),t}Ol.custom=Rl;var zl,Bl,$l,Ul,Fl,Hl,Kl,ql,Jl,Wl={inherits:Xc,_extend:jl,log:Ml,isBuffer:Il,isPrimitive:El,isFunction:Cl,isError:Pl,isDate:Sl,isObject:kl,isRegExp:_l,isUndefined:xl,isSymbol:wl,isString:vl,isNumber:yl,isNullOrUndefined:ml,isNull:bl,isBoolean:gl,isArray:pl,inspect:cl,deprecate:nl,format:rl,debuglog:sl,promisify:Ol,callbackify:Nl},Yl=Di(Object.freeze({__proto__:null,_extend:jl,callbackify:Nl,debuglog:sl,default:Wl,deprecate:nl,format:rl,inherits:Xc,inspect:cl,isArray:pl,isBoolean:gl,isBuffer:Il,isDate:Sl,isError:Pl,isFunction:Cl,isNull:bl,isNullOrUndefined:ml,isNumber:yl,isObject:kl,isPrimitive:El,isRegExp:_l,isString:vl,isSymbol:wl,isUndefined:xl,log:Ml,promisify:Ol})),Gl={exports:{}};function Zl(){return zl||(zl=1,function(e){var t=Gc().Buffer,i=Yl;function r(e,t,i){e.copy(t,i)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.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},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.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},e.prototype.concat=function(e){if(0===this.length)return t.alloc(0);for(var i=t.allocUnsafe(e>>>0),n=this.head,o=0;n;)r(n.data,i,o),o+=n.data.length,n=n.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})}(Gl)),Gl.exports}function Xl(){if($l)return Bl;$l=1;var e=Oc();function t(e,t){e.emit("error",t)}return Bl={destroy:function(i,r){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(r?r(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(t,this,i)):e.nextTick(t,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(i){!r&&i?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,e.nextTick(t,n,i)):e.nextTick(t,n,i):r&&r(i)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}},Bl}function Ql(){if(Fl)return Ul;function e(e){try{if(!Mi.localStorage)return!1}catch(e){return!1}var t=Mi.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}return Fl=1,Ul=function(t,i){if(e("noDeprecation"))return t;var r=!1;return function(){if(!r){if(e("throwDeprecation"))throw new Error(i);e("traceDeprecation")?console.trace(i):console.warn(i),r=!0}return t.apply(this,arguments)}},Ul}function eu(){if(Kl)return Hl;Kl=1;var e=Oc();function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,i){var r=e.entry;e.entry=null;for(;r;){var n=r.callback;t.pendingcb--,n(i),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}Hl=h;var i,r=e.nextTick;h.WritableState=f;var n=Object.create(el());n.inherits=za;var o={deprecate:Ql()},a=Jc(),s=Gc().Buffer,c=(void 0!==Mi?Mi:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,u=Xl();function d(){}function f(n,o){i=i||tu(),n=n||{};var a=o instanceof i;this.objectMode=!!n.objectMode,a&&(this.objectMode=this.objectMode||!!n.writableObjectMode);var s=n.highWaterMark,c=n.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:a&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===n.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,i){var n=t._writableState,o=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),i)!function(t,i,r,n,o){--i.pendingcb,r?(e.nextTick(o,n),e.nextTick(v,t,i),t._writableState.errorEmitted=!0,t.emit("error",n)):(o(n),t._writableState.errorEmitted=!0,t.emit("error",n),v(t,i))}(t,n,o,i,a);else{var s=m(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||b(t,n),o?r(g,t,n,s,a):g(t,n,s,a)}}(o,t)},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 t(this)}function h(e){if(i=i||tu(),!(l.call(h,this)||this instanceof i))return new h(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function p(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 g(e,t,i,r){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),v(e,t)}function b(e,i){i.bufferProcessing=!0;var r=i.bufferedRequest;if(e._writev&&r&&r.next){var n=i.bufferedRequestCount,o=new Array(n),a=i.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,p(e,i,!0,i.length,o,"",a.finish),i.pendingcb++,i.lastBufferedRequest=null,a.next?(i.corkedRequestsFree=a.next,a.next=null):i.corkedRequestsFree=new t(i),i.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(p(e,i,!1,i.objectMode?1:l.length,l,u,d),r=r.next,i.bufferedRequestCount--,i.writing)break}null===r&&(i.lastBufferedRequest=null)}i.bufferedRequest=r,i.bufferProcessing=!1}function m(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function y(e,t){e._final(function(i){t.pendingcb--,i&&e.emit("error",i),t.prefinished=!0,e.emit("prefinish"),v(e,t)})}function v(t,i){var r=m(i);return r&&(!function(t,i){i.prefinished||i.finalCalled||("function"==typeof t._final?(i.pendingcb++,i.finalCalled=!0,e.nextTick(y,t,i)):(i.prefinished=!0,t.emit("prefinish")))}(t,i),0===i.pendingcb&&(i.finished=!0,t.emit("finish"))),r}return n.inherits(h,a),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(h,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===h&&(e&&e._writableState instanceof f)}})):l=function(e){return e instanceof this},h.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},h.prototype.write=function(t,i,r){var n,o=this._writableState,a=!1,l=!o.objectMode&&(n=t,s.isBuffer(n)||n instanceof c);return l&&!s.isBuffer(t)&&(t=function(e){return s.from(e)}(t)),"function"==typeof i&&(r=i,i=null),l?i="buffer":i||(i=o.defaultEncoding),"function"!=typeof r&&(r=d),o.ended?function(t,i){var r=new Error("write after end");t.emit("error",r),e.nextTick(i,r)}(this,r):(l||function(t,i,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||i.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),e.nextTick(n,a),o=!1),o}(this,o,t,r))&&(o.pendingcb++,a=function(e,t,i,r,n,o){if(!i){var a=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,i));return t}(t,r,n);r!==a&&(i=!0,n="buffer",r=a)}var c=t.objectMode?1:r.length;t.length+=c;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:n,isBuf:i,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else p(e,t,!1,c,r,n,o);return l}(this,o,l,t,i,r)),a},h.prototype.cork=function(){this._writableState.corked++},h.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||b(this,e))},h.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},Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),h.prototype._write=function(e,t,i){i(new Error("_write() is not implemented"))},h.prototype._writev=null,h.prototype.end=function(t,i,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,i=null):"function"==typeof i&&(r=i,i=null),null!=t&&this.write(t,i),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,i,r){i.ending=!0,v(t,i),r&&(i.finished?e.nextTick(r):t.once("finish",r));i.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),h.prototype.destroy=u.destroy,h.prototype._undestroy=u.undestroy,h.prototype._destroy=function(e,t){this.end(),t(e)},Hl}function tu(){if(Jl)return ql;Jl=1;var e=Oc(),t=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};ql=c;var i=Object.create(el());i.inherits=za;var r=xu(),n=eu();i.inherits(c,r);for(var o=t(n.prototype),a=0;a<o.length;a++){var s=o[a];c.prototype[s]||(c.prototype[s]=n.prototype[s])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),n.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",l)}function l(){this.allowHalfOpen||this._writableState.ended||e.nextTick(u,this)}function u(e){e.end()}return Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),c.prototype._destroy=function(t,i){this.push(null),this.end(),e.nextTick(i,t)},ql}var iu=Xi.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 ru(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!iu(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=ou;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=au;break;default:return void(this.write=nu)}this.charBuffer=new Xi(6),this.charReceived=0,this.charLength=0}function nu(e){return e.toString(this.encoding)}function ou(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function au(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}ru.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},ru.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},ru.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 su,cu,lu,uu,du,fu,hu,pu,gu,bu,mu,yu,vu,wu=Di(Object.freeze({__proto__:null,StringDecoder:ru}));function xu(){if(cu)return su;cu=1;var e=Oc();su=g;var t,i=function(){if(Mc)return Ac;Mc=1;var e={}.toString;return Ac=Array.isArray||function(t){return"[object Array]"==e.call(t)}}();g.ReadableState=p,qc.EventEmitter;var r=function(e,t){return e.listeners(t).length},n=Jc(),o=Gc().Buffer,a=(void 0!==Mi?Mi:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s=Object.create(el());s.inherits=za;var c=Yl,l=void 0;l=c&&c.debuglog?c.debuglog("stream"):function(){};var u,d=Zl(),f=Xl();s.inherits(g,n);var h=["error","close","destroy","pause","resume"];function p(e,i){e=e||{};var r=i instanceof(t=t||tu());this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=wu.StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function g(e){if(t=t||tu(),!(this instanceof g))return new g(e);this._readableState=new p(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),n.call(this)}function b(e,t,i,r,n){var s,c=e._readableState;null===t?(c.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,w(e)}(e,c)):(n||(s=function(e,t){var i;r=t,o.isBuffer(r)||r instanceof a||"string"==typeof t||void 0===t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));var r;return i}(c,t)),s?e.emit("error",s):c.objectMode||t&&t.length>0?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===o.prototype||(t=function(e){return o.from(e)}(t)),r?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):m(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,c.decoder&&!i?(t=c.decoder.write(t),c.objectMode||0!==t.length?m(e,c,t,!1):_(e,c)):m(e,c,t,!1))):r||(c.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(c)}function m(e,t,i,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,r?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&w(e)),_(e,t)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),g.prototype.destroy=f.destroy,g.prototype._undestroy=f.undestroy,g.prototype._destroy=function(e,t){this.push(null),t(e)},g.prototype.push=function(e,t){var i,r=this._readableState;return r.objectMode?i=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=o.from(e,t),t=""),i=!0),b(this,e,t,!1,i)},g.prototype.unshift=function(e){return b(this,e,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing},g.prototype.setEncoding=function(e){return u||(u=wu.StringDecoder),this._readableState.decoder=new u(e),this._readableState.encoding=e,this};var y=8388608;function v(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>=y?e=y:(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 w(t){var i=t._readableState;i.needReadable=!1,i.emittedReadable||(l("emitReadable",i.flowing),i.emittedReadable=!0,i.sync?e.nextTick(x,t):x(t))}function x(e){l("emit readable"),e.emit("readable"),C(e)}function _(t,i){i.readingMore||(i.readingMore=!0,e.nextTick(k,t,i))}function k(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(l("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function S(e){l("readable nexttick read 0"),e.read(0)}function P(e,t){t.reading||(l("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function E(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=o.allocUnsafe(e),r=t.head,n=1;r.data.copy(i),e-=r.data.length;for(;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(a.copy(i,i.length-e,0,s),0===(e-=s)){s===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++n}return t.length-=n,i}(e,t);return r}(e,t.buffer,t.decoder),i);var i}function I(t){var i=t._readableState;if(i.length>0)throw new Error('"endReadable()" called on non-empty stream');i.endEmitted||(i.ended=!0,e.nextTick(T,i,t))}function T(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}return g.prototype.read=function(e){l("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 l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):w(this),null;if(0===(e=v(e,t))&&t.ended)return 0===t.length&&I(this),null;var r,n=t.needReadable;return l("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",n=!0),t.ended||t.reading?l("reading or ended",n=!1):n&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=v(i,t))),null===(r=e>0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&I(this)),null!==r&&this.emit("data",r),r},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(t,n){var o=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t)}a.pipesCount+=1,l("pipe count=%d opts=%j",a.pipesCount,n);var s=(!n||!1!==n.end)&&t!==Dc.stdout&&t!==Dc.stderr?u:y;function c(e,i){l("onunpipe"),e===o&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),t.removeListener("close",b),t.removeListener("finish",m),t.removeListener("drain",d),t.removeListener("error",g),t.removeListener("unpipe",c),o.removeListener("end",u),o.removeListener("end",y),o.removeListener("data",p),f=!0,!a.awaitDrain||t._writableState&&!t._writableState.needDrain||d())}function u(){l("onend"),t.end()}a.endEmitted?e.nextTick(s):o.once("end",s),t.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&r(e,"data")&&(t.flowing=!0,C(e))}}(o);t.on("drain",d);var f=!1;var h=!1;function p(e){l("ondata"),h=!1,!1!==t.write(e)||h||((1===a.pipesCount&&a.pipes===t||a.pipesCount>1&&-1!==L(a.pipes,t))&&!f&&(l("false write response, pause",a.awaitDrain),a.awaitDrain++,h=!0),o.pause())}function g(e){l("onerror",e),y(),t.removeListener("error",g),0===r(t,"error")&&t.emit("error",e)}function b(){t.removeListener("finish",m),y()}function m(){l("onfinish"),t.removeListener("close",b),y()}function y(){l("unpipe"),o.unpipe(t)}return o.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?i(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(t,"error",g),t.once("close",b),t.once("finish",m),t.emit("pipe",o),a.flowing||(l("pipe resume"),o.resume()),t},g.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};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,i)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<n;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=L(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i)),this},g.prototype.on=function(t,i){var r=n.prototype.on.call(this,t,i);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var o=this._readableState;o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.emittedReadable=!1,o.reading?o.length&&w(this):e.nextTick(S,this))}return r},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!0,function(t,i){i.resumeScheduled||(i.resumeScheduled=!0,e.nextTick(P,t,i))}(this,t)),this},g.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this},g.prototype.wrap=function(e){var t=this,i=this._readableState,r=!1;for(var n in e.on("end",function(){if(l("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(n){(l("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n)||(i.objectMode||n&&n.length)&&(t.push(n)||(r=!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));for(var o=0;o<h.length;o++)e.on(h[o],this.emit.bind(this,h[o]));return this._read=function(t){l("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=E,su}function _u(){if(uu)return lu;uu=1,lu=r;var e=tu(),t=Object.create(el());function i(e,t){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,null!=t&&this.push(t),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function r(t){if(!(this instanceof r))return new r(t);e.call(this,t),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",n)}function n(){var e=this;"function"==typeof this._flush?this._flush(function(t,i){o(e,t,i)}):o(this,null,null)}function o(e,t,i){if(t)return e.emit("error",t);if(null!=i&&e.push(i),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}return t.inherits=za,t.inherits(r,e),r.prototype.push=function(t,i){return this._transformState.needTransform=!1,e.prototype.push.call(this,t,i)},r.prototype._transform=function(e,t,i){throw new Error("_transform() is not implemented")},r.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)}},r.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},r.prototype._destroy=function(t,i){var r=this;e.prototype._destroy.call(this,t,function(e){i(e),r.emit("close")})},lu}function ku(){return hu||(hu=1,e=nc.exports,(e=nc.exports=xu()).Stream=e,e.Readable=e,e.Writable=eu(),e.Duplex=tu(),e.Transform=_u(),e.PassThrough=function(){if(fu)return du;fu=1,du=i;var e=_u(),t=Object.create(el());function i(t){if(!(this instanceof i))return new i(t);e.call(this,t)}return t.inherits=za,t.inherits(i,e),i.prototype._transform=function(e,t,i){i(null,e)},du}()),nc.exports;var e}function Su(){if(gu)return pu;gu=1;var e=Ua().Buffer,t=function(){if(Js)return qs;Js=1;var e=Ua().Buffer,t=rc(),i="undefined"!=typeof Uint8Array,r=i&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;return qs=function(n,o){if("string"==typeof n||e.isBuffer(n)||i&&n instanceof Uint8Array||r&&r(n))return t(n,o);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}}(),i=ku().Transform;function r(t){i.call(this),this._block=e.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return za(r,i),r.prototype._transform=function(e,t,i){var r=null;try{this.update(e,t)}catch(e){r=e}i(r)},r.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},r.prototype.update=function(e,i){if(this._finalized)throw new Error("Digest already called");for(var r=t(e,i),n=this._block,o=0;this._blockOffset+r.length-o>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a]=r[o],a+=1,o+=1;this._update(),this._blockOffset=0}for(;o<r.length;)n[this._blockOffset]=r[o],this._blockOffset+=1,o+=1;for(var s=0,c=8*r.length;c>0;++s)this._length[s]+=c,(c=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*c);return this},r.prototype._update=function(){throw new Error("_update is not implemented")},r.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return t},r.prototype._digest=function(){throw new Error("_digest is not implemented")},pu=r}var Pu,Cu,Eu,Iu,Tu,Lu,Au,Mu,ju,Du,Ru,Ou,Vu,Nu,zu,Bu={exports:{}};function $u(){if(Cu)return Pu;Cu=1;var e=Ua().Buffer,t=rc();function i(t,i){this._block=e.alloc(t),this._finalSize=i,this._blockSize=t,this._len=0}return i.prototype.update=function(e,i){e=t(e,i||"utf8");for(var r=this._block,n=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var c=a%n,l=Math.min(o-s,n-c),u=0;u<l;u++)r[c+u]=e[s+u];s+=l,(a+=l)%n===0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var r=(4294967295&i)>>>0,n=(i-r)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Pu=i}function Uu(){if(Mu)return Au;Mu=1;var e=za,t=$u(),i=Ua().Buffer,r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],n=new Array(64);function o(){this.init(),this._w=n,t.call(this,64,56)}function a(e,t,i){return i^e&(t^i)}function s(e,t,i){return e&t|i&(e|t)}function c(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function l(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function u(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function d(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}return e(o,t),o.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},o.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,o=0|this._c,f=0|this._d,h=0|this._e,p=0|this._f,g=0|this._g,b=0|this._h,m=0;m<16;++m)t[m]=e.readInt32BE(4*m);for(;m<64;++m)t[m]=d(t[m-2])+t[m-7]+u(t[m-15])+t[m-16]|0;for(var y=0;y<64;++y){var v=b+l(h)+a(h,p,g)+r[y]+t[y]|0,w=c(i)+s(i,n,o)|0;b=g,g=p,p=h,h=f+v|0,f=o,o=n,n=i,i=v+w|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=f+this._d|0,this._e=h+this._e|0,this._f=p+this._f|0,this._g=g+this._g|0,this._h=b+this._h|0},o.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},Au=o}function Fu(){if(Ou)return Ru;Ou=1;var e=za,t=$u(),i=Ua().Buffer,r=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],n=new Array(160);function o(){this.init(),this._w=n,t.call(this,128,112)}function a(e,t,i){return i^e&(t^i)}function s(e,t,i){return e&t|i&(e|t)}function c(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function l(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function f(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function p(e,t){return e>>>0<t>>>0?1:0}return e(o,t),o.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},o.prototype._update=function(e){for(var t=this._w,i=0|this._ah,n=0|this._bh,o=0|this._ch,g=0|this._dh,b=0|this._eh,m=0|this._fh,y=0|this._gh,v=0|this._hh,w=0|this._al,x=0|this._bl,_=0|this._cl,k=0|this._dl,S=0|this._el,P=0|this._fl,C=0|this._gl,E=0|this._hl,I=0;I<32;I+=2)t[I]=e.readInt32BE(4*I),t[I+1]=e.readInt32BE(4*I+4);for(;I<160;I+=2){var T=t[I-30],L=t[I-30+1],A=u(T,L),M=d(L,T),j=f(T=t[I-4],L=t[I-4+1]),D=h(L,T),R=t[I-14],O=t[I-14+1],V=t[I-32],N=t[I-32+1],z=M+O|0,B=A+R+p(z,M)|0;B=(B=B+j+p(z=z+D|0,D)|0)+V+p(z=z+N|0,N)|0,t[I]=B,t[I+1]=z}for(var $=0;$<160;$+=2){B=t[$],z=t[$+1];var U=s(i,n,o),F=s(w,x,_),H=c(i,w),K=c(w,i),q=l(b,S),J=l(S,b),W=r[$],Y=r[$+1],G=a(b,m,y),Z=a(S,P,C),X=E+J|0,Q=v+q+p(X,E)|0;Q=(Q=(Q=Q+G+p(X=X+Z|0,Z)|0)+W+p(X=X+Y|0,Y)|0)+B+p(X=X+z|0,z)|0;var ee=K+F|0,te=H+U+p(ee,K)|0;v=y,E=C,y=m,C=P,m=b,P=S,b=g+Q+p(S=k+X|0,k)|0,g=o,k=_,o=n,_=x,n=i,x=w,i=Q+te+p(w=X+ee|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+x|0,this._cl=this._cl+_|0,this._dl=this._dl+k|0,this._el=this._el+S|0,this._fl=this._fl+P|0,this._gl=this._gl+C|0,this._hl=this._hl+E|0,this._ah=this._ah+i+p(this._al,w)|0,this._bh=this._bh+n+p(this._bl,x)|0,this._ch=this._ch+o+p(this._cl,_)|0,this._dh=this._dh+g+p(this._dl,k)|0,this._eh=this._eh+b+p(this._el,S)|0,this._fh=this._fh+m+p(this._fl,P)|0,this._gh=this._gh+y+p(this._gl,C)|0,this._hh=this._hh+v+p(this._hl,E)|0},o.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},Ru=o}function Hu(){return zu||(zu=1,function(e){e.exports=function(t){var i=t.toLowerCase(),r=e.exports[i];if(!r)throw new Error(i+" is not supported (we accept pull requests)");return new r},e.exports.sha=function(){if(Iu)return Eu;Iu=1;var e=za,t=$u(),i=Ua().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function o(){this.init(),this._w=n,t.call(this,64,56)}function a(e){return e<<5|e>>>27}function s(e){return e<<30|e>>>2}function c(e,t,i,r){return 0===e?t&i|~t&r:2===e?t&i|t&r|i&r:t^i^r}return e(o,t),o.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},o.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,o=0|this._c,l=0|this._d,u=0|this._e,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<80;++d)t[d]=t[d-3]^t[d-8]^t[d-14]^t[d-16];for(var f=0;f<80;++f){var h=~~(f/20),p=a(i)+c(h,n,o,l)+u+t[f]+r[h]|0;u=l,l=o,o=s(n),n=i,i=p}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=l+this._d|0,this._e=u+this._e|0},o.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},Eu=o}(),e.exports.sha1=function(){if(Lu)return Tu;Lu=1;var e=za,t=$u(),i=Ua().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function o(){this.init(),this._w=n,t.call(this,64,56)}function a(e){return e<<1|e>>>31}function s(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function l(e,t,i,r){return 0===e?t&i|~t&r:2===e?t&i|t&r|i&r:t^i^r}return e(o,t),o.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},o.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,o=0|this._c,u=0|this._d,d=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=a(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var h=0;h<80;++h){var p=~~(h/20),g=s(i)+l(p,n,o,u)+d+t[h]+r[p]|0;d=u,u=o,o=c(n),n=i,i=g}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=d+this._e|0},o.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},Tu=o}(),e.exports.sha224=function(){if(Du)return ju;Du=1;var e=za,t=Uu(),i=$u(),r=Ua().Buffer,n=new Array(64);function o(){this.init(),this._w=n,i.call(this,64,56)}return e(o,t),o.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},o.prototype._hash=function(){var e=r.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},ju=o}(),e.exports.sha256=Uu(),e.exports.sha384=function(){if(Nu)return Vu;Nu=1;var e=za,t=Fu(),i=$u(),r=Ua().Buffer,n=new Array(160);function o(){this.init(),this._w=n,i.call(this,128,112)}return e(o,t),o.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},o.prototype._hash=function(){var e=r.allocUnsafe(48);function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},Vu=o}(),e.exports.sha512=Fu()}(Bu)),Bu.exports}function Ku(){this.head=null,this.tail=null,this.length=0}Ku.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},Ku.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Ku.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}},Ku.prototype.clear=function(){this.head=this.tail=null,this.length=0},Ku.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},Ku.prototype.concat=function(e){if(0===this.length)return Xi.alloc(0);if(1===this.length)return this.head.data;for(var t=Xi.allocUnsafe(e>>>0),i=this.head,r=0;i;)i.data.copy(t,r),r+=i.data.length,i=i.next;return t},Wu.ReadableState=Ju;var qu=sl("stream");function Ju(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof _d&&(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 Ku,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 ru(e.encoding),this.encoding=e.encoding)}function Wu(e){if(!(this instanceof Wu))return new Wu(e);this._readableState=new Ju(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),Nc.call(this)}function Yu(e,t,i,r,n){var o=function(e,t){var i=null;Xi.isBuffer(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,Xu(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&&Xu(e))),function(e,t){t.readingMore||(t.readingMore=!0,bc(ed,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)}Xc(Wu,Nc),Wu.prototype.push=function(e,t){var i=this._readableState;return i.objectMode||"string"!=typeof e||(t=t||i.defaultEncoding)!==i.encoding&&(e=Xi.from(e,t),t=""),Yu(this,i,e,t,!1)},Wu.prototype.unshift=function(e){return Yu(this,this._readableState,e,"",!0)},Wu.prototype.isPaused=function(){return!1===this._readableState.flowing},Wu.prototype.setEncoding=function(e){return this._readableState.decoder=new ru(e),this._readableState.encoding=e,this};var Gu=8388608;function Zu(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>=Gu?e=Gu:(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 Xu(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(qu("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?bc(Qu,e):Qu(e))}function Qu(e){qu("emit readable"),e.emit("readable"),rd(e)}function ed(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(qu("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function td(e){qu("readable nexttick read 0"),e.read(0)}function id(e,t){t.reading||(qu("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),rd(e),t.flowing&&!t.reading&&e.read(0)}function rd(e){var t=e._readableState;for(qu("flow",t.flowing);t.flowing&&null!==e.read(););}function nd(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=Xi.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 od(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,bc(ad,t,e))}function ad(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function sd(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}function cd(){}function ld(e,t,i){this.chunk=e,this.encoding=t,this.callback=i,this.next=null}function ud(e,t){Object.defineProperty(this,"buffer",{get:nl(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof _d&&(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?bc(n,r):n(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,i,r,t,n);else{var o=gd(i);o||i.corked||i.bufferProcessing||!i.bufferedRequest||pd(e,i),r?bc(hd,e,i,o,n):hd(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 yd(this)}function dd(e){if(!(this instanceof dd||this instanceof _d))return new dd(e);this._writableState=new ud(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),Nc.call(this)}function fd(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 hd(e,t,i,r){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),md(e,t)}function pd(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;fd(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 yd(t)}else{for(;i;){var s=i.chunk,c=i.encoding,l=i.callback;if(fd(e,t,!1,t.objectMode?1:s.length,s,c,l),i=i.next,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=i,t.bufferProcessing=!1}function gd(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function bd(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function md(e,t){var i=gd(t);return i&&(0===t.pendingcb?(bd(e,t),t.finished=!0,e.emit("finish")):bd(e,t)),i}function yd(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}}Wu.prototype.read=function(e){qu("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 qu("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?od(this):Xu(this),null;if(0===(e=Zu(e,t))&&t.ended)return 0===t.length&&od(this),null;var r,n=t.needReadable;return qu("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&qu("length less than watermark",n=!0),t.ended||t.reading?qu("reading or ended",n=!1):n&&(qu("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Zu(i,t))),null===(r=e>0?nd(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&od(this)),null!==r&&this.emit("data",r),r},Wu.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Wu.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,qu("pipe count=%d opts=%j",r.pipesCount,t);var n=!t||!1!==t.end?a:l;function o(e){qu("onunpipe"),e===i&&l()}function a(){qu("onend"),e.end()}r.endEmitted?bc(n):i.once("end",n),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;qu("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,rd(e))}}(i);e.on("drain",s);var c=!1;function l(){qu("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",f),e.removeListener("unpipe",o),i.removeListener("end",a),i.removeListener("end",l),i.removeListener("data",d),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var u=!1;function d(t){qu("ondata"),u=!1,!1!==e.write(t)||u||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==sd(r.pipes,e))&&!c&&(qu("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,u=!0),i.pause())}function f(t){qu("onerror",t),g(),e.removeListener("error",f),0===function(e,t){return e.listeners(t).length}(e,"error")&&e.emit("error",t)}function h(){e.removeListener("finish",p),g()}function p(){qu("onfinish"),e.removeListener("close",h),g()}function g(){qu("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",f),e.once("close",h),e.once("finish",p),e.emit("pipe",i),r.flowing||(qu("pipe resume"),i.resume()),e},Wu.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=sd(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},Wu.prototype.on=function(e,t){var i=Nc.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&&Xu(this):bc(td,this))}return i},Wu.prototype.addListener=Wu.prototype.on,Wu.prototype.resume=function(){var e=this._readableState;return e.flowing||(qu("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,bc(id,e,t))}(this,e)),this},Wu.prototype.pause=function(){return qu("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(qu("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Wu.prototype.wrap=function(e){var t=this._readableState,i=!1,r=this;for(var n in e.on("end",function(){if(qu("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){(qu("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){qu("wrapped _read",t),i&&(i=!1,e.resume())},r},Wu._fromList=nd,dd.WritableState=ud,Xc(dd,Nc),ud.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},dd.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},dd.prototype.write=function(e,t,i){var r=this._writableState,n=!1;return"function"==typeof t&&(i=t,t=null),Xi.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof i&&(i=cd),r.ended?function(e,t){var i=new Error("write after end");e.emit("error",i),bc(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"):Xi.isBuffer(i)||"string"==typeof i||void 0===i||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),bc(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=Xi.from(t,i));return t}(t,i,r),Xi.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 ld(i,r,n),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else fd(e,t,!1,o,i,r,n);return a}(this,r,e,t,i)),n},dd.prototype.cork=function(){this._writableState.corked++},dd.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||pd(this,e))},dd.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},dd.prototype._write=function(e,t,i){i(new Error("not implemented"))},dd.prototype._writev=null,dd.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,md(e,t),i&&(t.finished?bc(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,r,i)},Xc(_d,Wu);for(var vd=Object.keys(dd.prototype),wd=0;wd<vd.length;wd++){var xd=vd[wd];_d.prototype[xd]||(_d.prototype[xd]=dd.prototype[xd])}function _d(e){if(!(this instanceof _d))return new _d(e);Wu.call(this,e),dd.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",kd)}function kd(){this.allowHalfOpen||this._writableState.ended||bc(Sd,this)}function Sd(e){e.end()}function Pd(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 Cd(e){if(!(this instanceof Cd))return new Cd(e);_d.call(this,e),this._transformState=new Pd(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){Ed(t,e)}):Ed(t)})}function Ed(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 Id(e){if(!(this instanceof Id))return new Id(e);Cd.call(this,e)}function Td(){Nc.call(this)}Xc(Cd,_d),Cd.prototype.push=function(e,t){return this._transformState.needTransform=!1,_d.prototype.push.call(this,e,t)},Cd.prototype._transform=function(e,t,i){throw new Error("Not implemented")},Cd.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)}},Cd.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},Xc(Id,Cd),Id.prototype._transform=function(e,t,i){i(null,e)},Xc(Td,Nc),Td.Readable=Wu,Td.Writable=dd,Td.Duplex=_d,Td.Transform=Cd,Td.PassThrough=Id,Td.Stream=Td,Td.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(l(),0===Nc.listenerCount(this,"error"))throw e}function l(){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",l),i.removeListener("close",l),e.removeListener("close",l)}return i.on("error",c),e.on("error",c),i.on("end",l),i.on("close",l),e.on("close",l),e.emit("pipe",i),e};var Ld,Ad,Md,jd,Dd=Di(Object.freeze({__proto__:null,Duplex:_d,PassThrough:Id,Readable:Wu,Stream:Td,Transform:Cd,Writable:dd,default:Td}));var Rd,Od=function(){if(jd)return Md;jd=1;var e=za,t=function(){if(mu)return bu;mu=1;var e=za,t=Su(),i=Ua().Buffer,r=new Array(16);function n(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function o(e,t){return e<<t|e>>>32-t}function a(e,t,i,r,n,a,s){return o(e+(t&i|~t&r)+n+a|0,s)+t|0}function s(e,t,i,r,n,a,s){return o(e+(t&r|i&~r)+n+a|0,s)+t|0}function c(e,t,i,r,n,a,s){return o(e+(t^i^r)+n+a|0,s)+t|0}function l(e,t,i,r,n,a,s){return o(e+(i^(t|~r))+n+a|0,s)+t|0}return e(n,t),n.prototype._update=function(){for(var e=r,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var i=this._a,n=this._b,o=this._c,u=this._d;i=a(i,n,o,u,e[0],3614090360,7),u=a(u,i,n,o,e[1],3905402710,12),o=a(o,u,i,n,e[2],606105819,17),n=a(n,o,u,i,e[3],3250441966,22),i=a(i,n,o,u,e[4],4118548399,7),u=a(u,i,n,o,e[5],1200080426,12),o=a(o,u,i,n,e[6],2821735955,17),n=a(n,o,u,i,e[7],4249261313,22),i=a(i,n,o,u,e[8],1770035416,7),u=a(u,i,n,o,e[9],2336552879,12),o=a(o,u,i,n,e[10],4294925233,17),n=a(n,o,u,i,e[11],2304563134,22),i=a(i,n,o,u,e[12],1804603682,7),u=a(u,i,n,o,e[13],4254626195,12),o=a(o,u,i,n,e[14],2792965006,17),i=s(i,n=a(n,o,u,i,e[15],1236535329,22),o,u,e[1],4129170786,5),u=s(u,i,n,o,e[6],3225465664,9),o=s(o,u,i,n,e[11],643717713,14),n=s(n,o,u,i,e[0],3921069994,20),i=s(i,n,o,u,e[5],3593408605,5),u=s(u,i,n,o,e[10],38016083,9),o=s(o,u,i,n,e[15],3634488961,14),n=s(n,o,u,i,e[4],3889429448,20),i=s(i,n,o,u,e[9],568446438,5),u=s(u,i,n,o,e[14],3275163606,9),o=s(o,u,i,n,e[3],4107603335,14),n=s(n,o,u,i,e[8],1163531501,20),i=s(i,n,o,u,e[13],2850285829,5),u=s(u,i,n,o,e[2],4243563512,9),o=s(o,u,i,n,e[7],1735328473,14),i=c(i,n=s(n,o,u,i,e[12],2368359562,20),o,u,e[5],4294588738,4),u=c(u,i,n,o,e[8],2272392833,11),o=c(o,u,i,n,e[11],1839030562,16),n=c(n,o,u,i,e[14],4259657740,23),i=c(i,n,o,u,e[1],2763975236,4),u=c(u,i,n,o,e[4],1272893353,11),o=c(o,u,i,n,e[7],4139469664,16),n=c(n,o,u,i,e[10],3200236656,23),i=c(i,n,o,u,e[13],681279174,4),u=c(u,i,n,o,e[0],3936430074,11),o=c(o,u,i,n,e[3],3572445317,16),n=c(n,o,u,i,e[6],76029189,23),i=c(i,n,o,u,e[9],3654602809,4),u=c(u,i,n,o,e[12],3873151461,11),o=c(o,u,i,n,e[15],530742520,16),i=l(i,n=c(n,o,u,i,e[2],3299628645,23),o,u,e[0],4096336452,6),u=l(u,i,n,o,e[7],1126891415,10),o=l(o,u,i,n,e[14],2878612391,15),n=l(n,o,u,i,e[5],4237533241,21),i=l(i,n,o,u,e[12],1700485571,6),u=l(u,i,n,o,e[3],2399980690,10),o=l(o,u,i,n,e[10],4293915773,15),n=l(n,o,u,i,e[1],2240044497,21),i=l(i,n,o,u,e[8],1873313359,6),u=l(u,i,n,o,e[15],4264355552,10),o=l(o,u,i,n,e[6],2734768916,15),n=l(n,o,u,i,e[13],1309151649,21),i=l(i,n,o,u,e[4],4149444226,6),u=l(u,i,n,o,e[11],3174756917,10),o=l(o,u,i,n,e[2],718787259,15),n=l(n,o,u,i,e[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+n|0,this._c=this._c+o|0,this._d=this._d+u|0},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},bu=n}(),i=function(){if(vu)return yu;vu=1;var e=$a.Buffer,t=za,i=Su(),r=new Array(16),n=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],o=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],a=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],c=[0,1518500249,1859775393,2400959708,2840853838],l=[1352829926,1548603684,1836072691,2053994217,0];function u(e,t){return e<<t|e>>>32-t}function d(e,t,i,r,n,o,a,s){return u(e+(t^i^r)+o+a|0,s)+n|0}function f(e,t,i,r,n,o,a,s){return u(e+(t&i|~t&r)+o+a|0,s)+n|0}function h(e,t,i,r,n,o,a,s){return u(e+((t|~i)^r)+o+a|0,s)+n|0}function p(e,t,i,r,n,o,a,s){return u(e+(t&r|i&~r)+o+a|0,s)+n|0}function g(e,t,i,r,n,o,a,s){return u(e+(t^(i|~r))+o+a|0,s)+n|0}function b(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}return t(b,i),b.prototype._update=function(){for(var e=r,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var i=0|this._a,b=0|this._b,m=0|this._c,y=0|this._d,v=0|this._e,w=0|this._a,x=0|this._b,_=0|this._c,k=0|this._d,S=0|this._e,P=0;P<80;P+=1){var C,E;P<16?(C=d(i,b,m,y,v,e[n[P]],c[0],a[P]),E=g(w,x,_,k,S,e[o[P]],l[0],s[P])):P<32?(C=f(i,b,m,y,v,e[n[P]],c[1],a[P]),E=p(w,x,_,k,S,e[o[P]],l[1],s[P])):P<48?(C=h(i,b,m,y,v,e[n[P]],c[2],a[P]),E=h(w,x,_,k,S,e[o[P]],l[2],s[P])):P<64?(C=p(i,b,m,y,v,e[n[P]],c[3],a[P]),E=f(w,x,_,k,S,e[o[P]],l[3],s[P])):(C=g(i,b,m,y,v,e[n[P]],c[4],a[P]),E=d(w,x,_,k,S,e[o[P]],l[4],s[P])),i=v,v=y,y=u(m,10),m=b,b=C,w=S,S=k,k=u(_,10),_=x,x=E}var I=this._b+m+k|0;this._b=this._c+y+S|0,this._c=this._d+v+w|0,this._d=this._e+i+x|0,this._e=this._a+b+_|0,this._a=I},b.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=e.alloc?e.alloc(20):new e(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},yu=b}(),r=Hu(),n=function(){if(Ad)return Ld;Ad=1;var e=Ua().Buffer,t=Dd.Transform,i=wu.StringDecoder,r=za,n=rc();function o(e){t.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return r(o,t),o.prototype.update=function(e,t,i){var r=n(e,t),o=this._update(r);return this.hashMode?this:(i&&(o=this._toString(o,i)),o)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,i){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{i(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(t){var i=this.__final()||e.alloc(0);return t&&(i=this._toString(i,t,!0)),i},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new i(t),this._encoding=t),this._encoding!==t)throw new Error("can’t switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},Ld=o}();function o(e){n.call(this,"digest"),this._hash=e}return e(o,n),o.prototype._update=function(e){this._hash.update(e)},o.prototype._final=function(){return this._hash.digest()},Md=function(e){return"md5"===(e=e.toLowerCase())?new t:"rmd160"===e||"ripemd160"===e?new i:new o(r(e))}}(),Vd=ji(Od),Nd={exports:{}};var zd,Bd,$d,Ud,Fd,Hd,Kd=ji(function(){if(Rd)return Nd.exports;Rd=1;var e=65536,t=4294967295,i=Ua().Buffer,r=Mi.crypto||Mi.msCrypto;return r&&r.getRandomValues?Nd.exports=function(n,o){if(n>t)throw new RangeError("requested too many random bytes");var a=i.allocUnsafe(n);if(n>0)if(n>e)for(var s=0;s<n;s+=e)r.getRandomValues(a.slice(s,s+e));else r.getRandomValues(a);if("function"==typeof o)return Dc.nextTick(function(){o(null,a)});return a}:Nd.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")},Nd.exports}());var qd=function(){if(Hd)return Fd;Hd=1;const{CryptoLD:e}=(Bd||(Bd=1,zd={CryptoLD:class{constructor({suites:e}={}){this.suites=e||new Map}use(e){this.suites.set(e.suite,e)}async generate(e={}){return this._suiteForType(e).generate(e)}async from(e={}){const t=this._suiteForType(e);return e["@context"]?t.fromKeyDocument({document:e}):t.from(e)}async fromKeyDocument({document:e,checkContext:t=!0,checkRevoked:i=!0}={}){if(!e)throw new TypeError('The "document" parameter is required.');return this._suiteForType(e).fromKeyDocument({document:e,checkContext:t,checkRevoked:i})}async fromKeyId({id:e,documentLoader:t,checkContext:i=!0,checkRevoked:r=!0}={}){if(!e)throw new TypeError('The "id" parameter is required.');if(!t)throw new TypeError('The "documentLoader" parameter is required.');let n;try{if(({document:n}=await t(e)),!n)throw new Error('The "documentLoader" function must return a "document" object.')}catch(e){const t=new Error("Error fetching document: "+e.message);throw t.cause=e,t}const o=n.type;if(!o)throw new Error("Key suite type not found in fetched document.");const a=this.suites.get(o);if(!a)throw new Error(`Support for suite "${o}" is not installed.`);return a.fromKeyDocument({document:n,checkContext:i,checkRevoked:r})}_installed({type:e}){return this.suites.has(e)}_suiteForType(e){const t=e&&e.type;if(!t)throw new TypeError("Missing key type.");if(!this._installed({type:t}))throw new Error(`Support for key type "${t}" is not installed.`);return this.suites.get(t)}}}),zd),{LDKeyPair:t}=function(){if(Ud)return $d;Ud=1;class e{constructor({id:e,controller:t,revoked:i}={}){this.id=e,this.controller=t,this.revoked=i}static async generate(){throw new Error("Abstract method, must be implemented in subclass.")}static async fromKeyDocument({document:e,checkContext:t=!0,checkRevoked:i=!0}={}){if(!e)throw new TypeError('The "document" parameter is required.');if(t&&![].concat(e["@context"]).includes(this.SUITE_CONTEXT))throw new Error('Key document does not contain required context "'+this.SUITE_CONTEXT+'".');if(i&&e.revoked)throw new Error(`Key has been revoked since: "${e.revoked}".`);return this.from(e)}static async from(){throw new Error("Abstract method from() must be implemented in subclass.")}export({publicKey:e=!1,privateKey:t=!1}={}){if(!e&&!t)throw new Error('Export requires specifying either "publicKey" or "privateKey".');const i={id:this.id,type:this.type,controller:this.controller};return this.revoked&&(i.revoked=this.revoked),i}fingerprint(){throw new Error("Abstract method, must be implemented in subclass.")}verifyFingerprint(){throw new Error("Abstract method, must be implemented in subclass.")}signer(){return{async sign({}){throw new Error("Abstract method, must be implemented in subclass.")}}}verifier(){return{async verify({}){throw new Error("Abstract method, must be implemented in subclass.")}}}}return e.SUITE_CONTEXT="INVALID LDKeyPair CONTEXT",$d={LDKeyPair:e}}();return Fd={CryptoLD:e,LDKeyPair:t}}(),Jd=ji(qd);const Wd={};
|
|
122
|
+
const qr={p:0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2fn,n:0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n,h:1n,a:0n,b:7n,Gx:0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798n,Gy:0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8n},{p:Jr,n:Wr,Gx:Yr,Gy:Gr,b:Zr}=qr,Xr=32,Qr={publicKey:33,publicKeyUncompressed:65,signature:64,seed:48},en=(e="")=>{const t=new Error(e);throw((...e)=>{"captureStackTrace"in Error&&"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(...e)})(t,en),t},tn=(e,t,i="")=>{const r=(n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&"Uint8Array"===n.constructor.name;var n;const o=e?.length,a=void 0!==t;if(!r||a&&o!==t){en((i&&`"${i}" `)+"expected Uint8Array"+(a?` of length ${t}`:"")+", got "+(r?`length=${o}`:"type="+typeof e))}return e},rn=e=>new Uint8Array(e),nn=(e,t)=>e.toString(16).padStart(t,"0"),on=e=>Array.from(tn(e)).map(e=>nn(e,2)).join(""),an=48,sn=57,cn=65,ln=70,un=97,dn=102,fn=e=>e>=an&&e<=sn?e-an:e>=cn&&e<=ln?e-(cn-10):e>=un&&e<=dn?e-(un-10):void 0,pn=e=>{const t="hex invalid";if("string"!=typeof e)return en(t);const i=e.length,r=i/2;if(i%2)return en(t);const n=rn(r);for(let i=0,o=0;i<r;i++,o+=2){const r=fn(e.charCodeAt(o)),a=fn(e.charCodeAt(o+1));if(void 0===r||void 0===a)return en(t);n[i]=16*r+a}return n},hn=()=>globalThis?.crypto,gn=()=>hn()?.subtle??en("crypto.subtle must be defined, consider polyfill"),bn=(...e)=>{const t=rn(e.reduce((e,t)=>e+tn(t).length,0));let i=0;return e.forEach(e=>{t.set(e,i),i+=e.length}),t},mn=(e=Xr)=>hn().getRandomValues(rn(e)),yn=BigInt,vn=(e,t,i,r="bad number: out of range")=>(e=>"bigint"==typeof e)(e)&&t<=e&&e<i?e:en(r),wn=(e,t=Jr)=>{const i=e%t;return i>=0n?i:t+i},xn=e=>wn(e,Wr),_n=(e,t)=>{(0n===e||t<=0n)&&en("no inverse n="+e+" mod="+t);let i=wn(e,t),r=t,n=0n,o=1n;for(;0n!==i;){const e=r%i,t=n-o*(r/i);r=i,i=e,n=o,o=t}return 1n===r?wn(n,t):en("no inverse")},kn=e=>e instanceof Tn?e:en("Point expected"),Sn=e=>wn(wn(e*e)*e+Zr),Pn=e=>vn(e,0n,Jr),Cn=e=>vn(e,1n,Jr),En=e=>vn(e,1n,Wr),In=e=>0n==(1n&e),An=e=>Uint8Array.of(e);class Tn{static BASE;static ZERO;X;Y;Z;constructor(e,t,i){this.X=Pn(e),this.Y=Cn(t),this.Z=Pn(i),Object.freeze(this)}static CURVE(){return qr}static fromAffine(e){const{x:t,y:i}=e;return 0n===t&&0n===i?Mn:new Tn(t,i,1n)}static fromBytes(e){tn(e);const{publicKey:t,publicKeyUncompressed:i}=Qr;let r;const n=e.length,o=e[0],a=e.subarray(1),s=Dn(a,0,Xr);if(n===t&&(2===o||3===o)){let e=(e=>{const t=Sn(Cn(e));let i=1n;for(let e=t,r=(Jr+1n)/4n;r>0n;r>>=1n)1n&r&&(i=i*e%Jr),e=e*e%Jr;return wn(i*i)===t?i:en("sqrt invalid")})(s);const t=In(e);In(yn(o))!==t&&(e=wn(-e)),r=new Tn(s,e,1n)}return n===i&&4===o&&(r=new Tn(s,Dn(a,Xr,64),1n)),r?r.assertValidity():en("bad point: not on curve")}static fromHex(e){return Tn.fromBytes(pn(e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}equals(e){const{X:t,Y:i,Z:r}=this,{X:n,Y:o,Z:a}=kn(e),s=wn(t*a),c=wn(n*r),l=wn(i*a),u=wn(o*r);return s===c&&l===u}is0(){return this.equals(Mn)}negate(){return new Tn(this.X,wn(-this.Y),this.Z)}double(){return this.add(this)}add(e){const{X:t,Y:i,Z:r}=this,{X:n,Y:o,Z:a}=kn(e);let s=0n,c=0n,l=0n;const u=wn(3n*Zr);let d=wn(t*n),f=wn(i*o),p=wn(r*a),h=wn(t+i),g=wn(n+o);h=wn(h*g),g=wn(d+f),h=wn(h-g),g=wn(t+r);let b=wn(n+a);return g=wn(g*b),b=wn(d+p),g=wn(g-b),b=wn(i+r),s=wn(o+a),b=wn(b*s),s=wn(f+p),b=wn(b-s),l=wn(0n*g),s=wn(u*p),l=wn(s+l),s=wn(f-l),l=wn(f+l),c=wn(s*l),f=wn(d+d),f=wn(f+d),p=wn(0n*p),g=wn(u*g),f=wn(f+p),p=wn(d-p),p=wn(0n*p),g=wn(g+p),d=wn(f*g),c=wn(c+d),d=wn(b*g),s=wn(h*s),s=wn(s-d),d=wn(h*f),l=wn(b*l),l=wn(l+d),new Tn(s,c,l)}subtract(e){return this.add(kn(e).negate())}multiply(e,t=!0){if(!t&&0n===e)return Mn;if(En(e),1n===e)return this;if(this.equals(Ln))return lo(e).p;let i=Mn,r=Ln;for(let n=this;e>0n;n=n.double(),e>>=1n)1n&e?i=i.add(n):t&&(r=r.add(n));return i}multiplyUnsafe(e){return this.multiply(e,!1)}toAffine(){const{X:e,Y:t,Z:i}=this;if(this.equals(Mn))return{x:0n,y:0n};if(1n===i)return{x:e,y:t};const r=_n(i,Jr);return 1n!==wn(i*r)&&en("inverse invalid"),{x:wn(e*r),y:wn(t*r)}}assertValidity(){const{x:e,y:t}=this.toAffine();return Cn(e),Cn(t),wn(t*t)===Sn(e)?this:en("bad point: not on curve")}toBytes(e=!0){const{x:t,y:i}=this.assertValidity().toAffine(),r=On(t);return e?bn((e=>An(In(e)?2:3))(i),r):bn(An(4),r,On(i))}toHex(e){return on(this.toBytes(e))}}const Ln=new Tn(Yr,Gr,1n),Mn=new Tn(0n,1n,0n);Tn.BASE=Ln,Tn.ZERO=Mn;const jn=e=>yn("0x"+(on(e)||"0")),Dn=(e,t,i)=>jn(e.subarray(t,i)),Rn=2n**256n,On=e=>pn(nn(vn(e,0n,Rn),64)),Vn=e=>{const t=jn(tn(e,Xr,"secret key"));return vn(t,1n,Wr,"invalid secret key: outside of range")},zn=e=>e>Wr>>1n,Nn=(e,t=!0)=>Ln.multiply(Vn(e)).toBytes(t),Bn=(e,t=Hn)=>{(e=>{null==e||Jn.includes(e)||en(`Signature format must be one of: ${Jn.join(", ")}`),e===qn&&en('Signature format "der" is not supported: switch to noble-curves')})(t);const i=Qr.signature,r=i+1;let n=`Signature format "${t}" expects Uint8Array with length `;t===Hn&&e.length!==i&&en(n+i),t===Kn&&e.length!==r&&en(n+r)};class $n{r;s;recovery;constructor(e,t,i){this.r=En(e),this.s=En(t),null!=i&&(this.recovery=i),Object.freeze(this)}static fromBytes(e,t=Hn){let i;Bn(e,t),t===Kn&&(i=e[0],e=e.subarray(1));const r=Dn(e,0,Xr),n=Dn(e,Xr,64);return new $n(r,n,i)}addRecoveryBit(e){return new $n(this.r,this.s,e)}hasHighS(){return zn(this.s)}toBytes(e=Hn){const{r:t,s:i,recovery:r}=this,n=bn(On(t),On(i));return e===Kn?((e=>{[0,1,2,3].includes(e)||en("recovery id must be valid and present")})(r),bn(Uint8Array.of(r),n)):n}}const Un=e=>{const t=8*e.length-256;t>1024&&en("msg invalid");const i=jn(e);return t>0?i>>yn(t):i},Fn=e=>xn(Un(tn(e))),Hn="compact",Kn="recovered",qn="der",Jn=[Hn,Kn,qn],Wn={lowS:!0,prehash:!0,format:Hn,extraEntropy:!1},Yn="SHA-256",Gn={hmacSha256Async:async(e,t)=>{const i=gn(),r="HMAC",n=await i.importKey("raw",e,{name:r,hash:{name:Yn}},!1,["sign"]);return rn(await i.sign(r,n,t))},hmacSha256:void 0,sha256Async:async e=>rn(await gn().digest(Yn,e)),sha256:void 0},Zn=(e,t,i)=>(tn(e,void 0,"message"),t.prehash?i?Gn.sha256Async(e):(e=>{const t=Gn[e];return en("hashes."+e+" not set"),t})("sha256")(e):e),Xn=rn(0),Qn=An(0),eo=An(1),to=async(e,t)=>{let i=rn(Xr),r=rn(Xr),n=0;const o=()=>{i.fill(1),r.fill(0)},a=(...e)=>Gn.hmacSha256Async(r,bn(i,...e)),s=async(e=Xn)=>{r=await a(Qn,e),i=await a(),0!==e.length&&(r=await a(eo,e),i=await a())},c=async()=>(n++>=1e3&&en("drbg: tried max amount of iterations"),i=await a(),i);let l;for(o(),await s(e);!(l=t(await c()));)await s();return o(),l},io=(e,t,i,r={})=>{const{lowS:n,format:o}=r;e instanceof $n&&en("Signature must be in Uint8Array, use .toBytes()"),Bn(e,o),tn(i,void 0,"publicKey");try{const{r:r,s:a}=$n.fromBytes(e,o),s=Fn(t),c=Tn.fromBytes(i);if(n&&zn(a))return!1;const l=_n(a,Wr),u=xn(s*l),d=((e,t,i)=>Ln.multiply(t,!1).add(e.multiply(i,!1)).assertValidity())(c,u,xn(r*l)).toAffine();return xn(d.x)===r}catch(e){return!1}},ro=e=>{const t={};return Object.keys(Wn).forEach(i=>{t[i]=e[i]??Wn[i]}),t},no=async(e,t,i={})=>(i=ro(i),((e,t,i,r)=>{let{lowS:n,extraEntropy:o}=i;const a=On,s=Fn(e),c=a(s),l=Vn(t),u=[a(l),c];if(null!=o&&!1!==o){const e=!0===o?mn(Xr):o;u.push(tn(e,void 0,"extraEntropy"))}const d=bn(...u),f=s;return r(d,e=>{const t=Un(e);if(!(1n<=t&&t<Wr))return;const r=_n(t,Wr),o=Ln.multiply(t).toAffine(),a=xn(o.x);if(0n===a)return;const s=xn(r*xn(f+a*l));if(0n===s)return;let c=(o.x===a?0:2)|Number(1n&o.y),u=s;return n&&zn(s)&&(u=xn(-s),c^=1),new $n(a,u,c).toBytes(i.format)})})(e=await Zn(e,i,!0),t,i,to)),oo=e=>{try{return!!Vn(e)}catch(e){return!1}},ao=Math.ceil(32)+1;let so;const co=(e,t)=>{const i=t.negate();return e?i:t},lo=e=>{const t=so||(so=(()=>{const e=[];let t=Ln,i=t;for(let r=0;r<ao;r++){i=t,e.push(i);for(let r=1;r<128;r++)i=i.add(t),e.push(i);t=i.double()}return e})());let i=Mn,r=Ln;const n=yn(255),o=yn(8);for(let a=0;a<ao;a++){let s=Number(e&n);e>>=o,s>128&&(s-=256,e+=1n);const c=128*a,l=c,u=c+Math.abs(s)-1,d=a%2!=0,f=s<0;0===s?r=r.add(co(d,t[l])):i=i.add(co(f,t[u]))}return 0n!==e&&en("invalid wnaf"),{p:i,f:r}};var uo,fo,po,ho,go,bo,mo,yo,vo,wo,xo,_o,ko,So,Po,Co,Eo,Io,Ao,To,Lo,Mo,jo,Do,Ro,Oo,Vo,zo,No,Bo,$o,Uo,Fo,Ho,Ko,qo,Jo,Wo,Yo,Go,Zo,Xo,Qo,ea,ta,ia,ra,na,oa,aa,sa,ca,la,ua,da,fa,pa,ha,ga,ba,ma,ya,va,wa,xa,_a,ka,Sa,Pa,Ca,Ea,Ia,Aa,Ta,La,Ma,ja,Da,Ra,Oa,Va,za="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},Na=Di(Object.freeze({__proto__:null,default:za})),Ba={exports:{}},$a=Di(Br);function Ua(){return uo||(uo=1,function(e,t){var i=$a,r=i.Buffer;function n(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return r(e,t,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(n(i,t),t.Buffer=o),o.prototype=Object.create(r.prototype),n(r,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=r(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}}(Ba,Ba.exports)),Ba.exports}function Fa(){return go?ho:(go=1,ho=TypeError)}function Ha(){return mo?bo:(mo=1,bo=Object)}function Ka(){return vo?yo:(vo=1,yo=Error)}function qa(){return xo?wo:(xo=1,wo=EvalError)}function Ja(){return ko?_o:(ko=1,_o=RangeError)}function Wa(){return Po?So:(Po=1,So=ReferenceError)}function Ya(){return Eo?Co:(Eo=1,Co=SyntaxError)}function Ga(){return Ao?Io:(Ao=1,Io=URIError)}function Za(){return Lo?To:(Lo=1,To=Math.abs)}function Xa(){return jo?Mo:(jo=1,Mo=Math.floor)}function Qa(){return Ro?Do:(Ro=1,Do=Math.max)}function es(){return Vo?Oo:(Vo=1,Oo=Math.min)}function ts(){return No?zo:(No=1,zo=Math.pow)}function is(){return $o?Bo:($o=1,Bo=Math.round)}function rs(){return Fo?Uo:(Fo=1,Uo=Number.isNaN||function(e){return e!=e})}function ns(){if(Ko)return Ho;Ko=1;var e=rs();return Ho=function(t){return e(t)||0===t?t:t<0?-1:1}}function os(){return Jo?qo:(Jo=1,qo=Object.getOwnPropertyDescriptor)}function as(){if(Yo)return Wo;Yo=1;var e=os();if(e)try{e([],"length")}catch(t){e=null}return Wo=e}function ss(){if(Zo)return Go;Zo=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return Go=e}function cs(){return Qo?Xo:(Qo=1,Xo=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),i=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0})}function ls(){if(ta)return ea;ta=1;var e="undefined"!=typeof Symbol&&Symbol,t=cs();return ea=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}function us(){return ra?ia:(ra=1,ia="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function ds(){return oa?na:(oa=1,na=Ha().getPrototypeOf||null)}function fs(){if(sa)return aa;sa=1;var e=Object.prototype.toString,t=Math.max,i=function(e,t){for(var i=[],r=0;r<e.length;r+=1)i[r]=e[r];for(var n=0;n<t.length;n+=1)i[n+e.length]=t[n];return i};return aa=function(r){var n=this;if("function"!=typeof n||"[object Function]"!==e.apply(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var o,a=function(e,t){for(var i=[],r=t,n=0;r<e.length;r+=1,n+=1)i[n]=e[r];return i}(arguments,1),s=t(0,n.length-a.length),c=[],l=0;l<s;l++)c[l]="$"+l;if(o=Function("binder","return function ("+function(e,t){for(var i="",r=0;r<e.length;r+=1)i+=e[r],r+1<e.length&&(i+=t);return i}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=n.apply(this,i(a,arguments));return Object(e)===e?e:this}return n.apply(r,i(a,arguments))}),n.prototype){var u=function(){};u.prototype=n.prototype,o.prototype=new u,u.prototype=null}return o},aa}function ps(){if(la)return ca;la=1;var e=fs();return ca=Function.prototype.bind||e}function hs(){return da?ua:(da=1,ua=Function.prototype.call)}function gs(){return pa?fa:(pa=1,fa=Function.prototype.apply)}function bs(){if(ma)return ba;ma=1;var e=ps(),t=gs(),i=hs(),r=ga?ha:(ga=1,ha="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return ba=r||e.call(i,t)}function ms(){if(va)return ya;va=1;var e=ps(),t=Fa(),i=hs(),r=bs();return ya=function(n){if(n.length<1||"function"!=typeof n[0])throw new t("a function is required");return r(e,i,n)}}function ys(){if(xa)return wa;xa=1;var e,t=ms(),i=as();try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!e&&i&&i(Object.prototype,"__proto__"),n=Object,o=n.getPrototypeOf;return wa=r&&"function"==typeof r.get?t([r.get]):"function"==typeof o&&function(e){return o(null==e?e:n(e))}}function vs(){if(ka)return _a;ka=1;var e=us(),t=ds(),i=ys();return _a=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:i?function(e){return i(e)}:null}function ws(){if(Pa)return Sa;Pa=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,i=ps();return Sa=i.call(e,t)}function xs(){if(Ea)return Ca;var e;Ea=1;var t=Ha(),i=Ka(),r=qa(),n=Ja(),o=Wa(),a=Ya(),s=Fa(),c=Ga(),l=Za(),u=Xa(),d=Qa(),f=es(),p=ts(),h=is(),g=ns(),b=Function,m=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},y=as(),v=ss(),w=function(){throw new s},x=y?function(){try{return w}catch(e){try{return y(arguments,"callee").get}catch(e){return w}}}():w,_=ls()(),k=vs(),S=ds(),P=us(),C=gs(),E=hs(),I={},A="undefined"!=typeof Uint8Array&&k?k(Uint8Array):e,T={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":_&&k?k([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":r,"%Float16Array%":"undefined"==typeof Float16Array?e:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&k?k(k([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&k?k((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":n,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&k?k((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&k?k(""[Symbol.iterator]()):e,"%Symbol%":_?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":x,"%TypedArray%":A,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet,"%Function.prototype.call%":E,"%Function.prototype.apply%":C,"%Object.defineProperty%":v,"%Object.getPrototypeOf%":S,"%Math.abs%":l,"%Math.floor%":u,"%Math.max%":d,"%Math.min%":f,"%Math.pow%":p,"%Math.round%":h,"%Math.sign%":g,"%Reflect.getPrototypeOf%":P};if(k)try{null.error}catch(e){var L=k(k(e));T["%Error.prototype%"]=L}var M=function e(t){var i;if("%AsyncFunction%"===t)i=m("async function () {}");else if("%GeneratorFunction%"===t)i=m("function* () {}");else if("%AsyncGeneratorFunction%"===t)i=m("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(i=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&k&&(i=k(n.prototype))}return T[t]=i,i},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=ps(),R=ws(),O=D.call(E,Array.prototype.concat),V=D.call(C,Array.prototype.splice),z=D.call(E,String.prototype.replace),N=D.call(E,String.prototype.slice),B=D.call(E,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,F=function(e,t){var i,r=e;if(R(j,r)&&(r="%"+(i=j[r])[0]+"%"),R(T,r)){var n=T[r];if(n===I&&(n=M(r)),void 0===n&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:n}}throw new a("intrinsic "+e+" does not exist!")};return Ca=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=function(e){var t=N(e,0,1),i=N(e,-1);if("%"===t&&"%"!==i)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,$,function(e,t,i,n){r[r.length]=i?z(n,U,"$1"):t||e}),r}(e),r=i.length>0?i[0]:"",n=F("%"+r+"%",t),o=n.name,c=n.value,l=!1,u=n.alias;u&&(r=u[0],V(i,O([0,1],u)));for(var d=1,f=!0;d<i.length;d+=1){var p=i[d],h=N(p,0,1),g=N(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===g||"'"===g||"`"===g)&&h!==g)throw new a("property names with quotes must have matching quotes");if("constructor"!==p&&f||(l=!0),R(T,o="%"+(r+="."+p)+"%"))c=T[o];else if(null!=c){if(!(p in c)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(y&&d+1>=i.length){var b=y(c,p);c=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[p]}else f=R(c,p),c=c[p];f&&!l&&(T[o]=c)}}return c},Ca}function _s(){if(Aa)return Ia;Aa=1;var e=xs(),t=ms(),i=t([e("%String.prototype.indexOf%")]);return Ia=function(r,n){var o=e(r,!!n);return"function"==typeof o&&i(r,".prototype.")>-1?t([o]):o}}function ks(){if(La)return Ta;La=1;var e,t,i=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw t}}),t={},r(function(){throw 42},null,e)}catch(e){e!==t&&(r=null)}else r=null;var n=/^\s*class\b/,o=function(e){try{var t=i.call(e);return n.test(t)}catch(e){return!1}},a=function(e){try{return!o(e)&&(i.call(e),!0)}catch(e){return!1}},s=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var d=document.all;s.call(d)===s.call(document.all)&&(u=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=s.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}return Ta=r?function(i){if(u(i))return!0;if(!i)return!1;if("function"!=typeof i&&"object"!=typeof i)return!1;try{r(i,null,e)}catch(e){if(e!==t)return!1}return!o(i)&&a(i)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return a(e);if(o(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}}function Ss(){if(ja)return Ma;ja=1;var e=ks(),t=Object.prototype.toString,i=Object.prototype.hasOwnProperty;return Ma=function(r,n,o){if(!e(n))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=o),s=r,"[object Array]"===t.call(s)?function(e,t,r){for(var n=0,o=e.length;n<o;n++)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(r,n,a):"string"==typeof r?function(e,t,i){for(var r=0,n=e.length;r<n;r++)null==i?t(e.charAt(r),r,e):t.call(i,e.charAt(r),r,e)}(r,n,a):function(e,t,r){for(var n in e)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(r,n,a)},Ma}function Ps(){return Ra?Da:(Ra=1,Da=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"])}function Cs(){if(Va)return Oa;Va=1;var e=Ps(),t="undefined"==typeof globalThis?Mi:globalThis;return Oa=function(){for(var i=[],r=0;r<e.length;r++)"function"==typeof t[e[r]]&&(i[i.length]=e[r]);return i}}var Es,Is,As,Ts,Ls,Ms,js,Ds,Rs,Os,Vs,zs,Ns,Bs,$s,Us,Fs,Hs,Ks,qs,Js,Ws={exports:{}};function Ys(){if(Is)return Es;Is=1;var e=ss(),t=Ya(),i=Fa(),r=as();return Es=function(n,o,a){if(!n||"object"!=typeof n&&"function"!=typeof n)throw new i("`obj` must be an object or a function`");if("string"!=typeof o&&"symbol"!=typeof o)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!r&&r(n,o);if(e)e(n,o,{configurable:null===l&&d?d.configurable:!l,enumerable:null===s&&d?d.enumerable:!s,value:a,writable:null===c&&d?d.writable:!c});else{if(!u&&(s||c||l))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");n[o]=a}},Es}function Gs(){if(Ts)return As;Ts=1;var e=ss(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return 1!==e([],"length",{value:1}).length}catch(e){return!0}},As=t}function Zs(){if(Ms)return Ls;Ms=1;var e=xs(),t=Ys(),i=Gs()(),r=as(),n=Fa(),o=e("%Math.floor%");return Ls=function(e,a){if("function"!=typeof e)throw new n("`fn` is not a function");if("number"!=typeof a||a<0||a>4294967295||o(a)!==a)throw new n("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],c=!0,l=!0;if("length"in e&&r){var u=r(e,"length");u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!s)&&(i?t(e,"length",a,!0,!0):t(e,"length",a)),e},Ls}function Xs(){if(Ds)return js;Ds=1;var e=ps(),t=gs(),i=bs();return js=function(){return i(e,t,arguments)},js}function Qs(){return Rs||(Rs=1,function(e){var t=Zs(),i=ss(),r=ms(),n=Xs();e.exports=function(e){var i=r(arguments),n=e.length-(arguments.length-1);return t(i,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:n}):e.exports.apply=n}(Ws)),Ws.exports}function ec(){if(Ns)return zs;Ns=1;var e=Ss(),t=Cs(),i=Qs(),r=_s(),n=as(),o=vs(),a=r("Object.prototype.toString"),s=function(){if(Vs)return Os;Vs=1;var e=cs();return Os=function(){return e()&&!!Symbol.toStringTag}}()(),c="undefined"==typeof globalThis?Mi:globalThis,l=t(),u=r("String.prototype.slice"),d=r("Array.prototype.indexOf",!0)||function(e,t){for(var i=0;i<e.length;i+=1)if(e[i]===t)return i;return-1},f={__proto__:null};e(l,s&&n&&o?function(e){var t=new c[e];if(Symbol.toStringTag in t&&o){var r=o(t),a=n(r,Symbol.toStringTag);if(!a&&r){var s=o(r);a=n(s,Symbol.toStringTag)}if(a&&a.get){var l=i(a.get);f["$"+e]=l}}}:function(e){var t=new c[e],r=t.slice||t.set;if(r){var n=i(r);f["$"+e]=n}});return zs=function(t){if(!t||"object"!=typeof t)return!1;if(!s){var i=u(a(t),8,-1);return d(l,i)>-1?i:"Object"===i&&function(t){var i=!1;return e(f,function(e,r){if(!i)try{e(t),i=u(r,1)}catch(e){}}),i}(t)}return n?function(t){var i=!1;return e(f,function(e,r){if(!i)try{"$"+e(t)===r&&(i=u(r,1))}catch(e){}}),i}(t):null}}function tc(){if($s)return Bs;$s=1;var e=ec();return Bs=function(t){return!!e(t)}}function ic(){if(Fs)return Us;Fs=1;var e=Fa(),t=_s()("TypedArray.prototype.buffer",!0),i=tc();return Us=t||function(t){if(!i(t))throw new e("Not a Typed Array");return t.buffer}}function rc(){if(Ks)return Hs;Ks=1;var e=Ua().Buffer,t=function(){if(po)return fo;po=1;var e={}.toString;return fo=Array.isArray||function(t){return"[object Array]"==e.call(t)}}(),i=ic(),r=ArrayBuffer.isView||function(e){try{return i(e),!0}catch(e){return!1}},n="undefined"!=typeof Uint8Array,o="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,a=o&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return Hs=function(i,s){if(e.isBuffer(i))return i.constructor&&!("isBuffer"in i)?e.from(i):i;if("string"==typeof i)return e.from(i,s);if(o&&r(i)){if(0===i.byteLength)return e.alloc(0);if(a){var c=e.from(i.buffer,i.byteOffset,i.byteLength);if(c.byteLength===i.byteLength)return c}var l=i instanceof Uint8Array?i:new Uint8Array(i.buffer,i.byteOffset,i.byteLength),u=e.from(l);if(u.length===i.byteLength)return u}if(n&&i instanceof Uint8Array)return e.from(i);var d=t(i);if(d)for(var f=0;f<i.length;f+=1){var p=i[f];if("number"!=typeof p||p<0||p>255||~~p!==p)throw new RangeError("Array items must be numbers in the range 0-255.")}if(d||e.isBuffer(i)&&i.constructor&&"function"==typeof i.constructor.isBuffer&&i.constructor.isBuffer(i))return e.from(i);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}}var nc={exports:{}};function oc(){throw new Error("setTimeout has not been defined")}function ac(){throw new Error("clearTimeout has not been defined")}var sc=oc,cc=ac;function lc(e){if(sc===setTimeout)return setTimeout(e,0);if((sc===oc||!sc)&&setTimeout)return sc=setTimeout,setTimeout(e,0);try{return sc(e,0)}catch(t){try{return sc.call(null,e,0)}catch(t){return sc.call(this,e,0)}}}"function"==typeof Oi.setTimeout&&(sc=setTimeout),"function"==typeof Oi.clearTimeout&&(cc=clearTimeout);var uc,dc=[],fc=!1,pc=-1;function hc(){fc&&uc&&(fc=!1,uc.length?dc=uc.concat(dc):pc=-1,dc.length&&gc())}function gc(){if(!fc){var e=lc(hc);fc=!0;for(var t=dc.length;t;){for(uc=dc,dc=[];++pc<t;)uc&&uc[pc].run();pc=-1,t=dc.length}uc=null,fc=!1,function(e){if(cc===clearTimeout)return clearTimeout(e);if((cc===ac||!cc)&&clearTimeout)return cc=clearTimeout,clearTimeout(e);try{return cc(e)}catch(t){try{return cc.call(null,e)}catch(t){return cc.call(this,e)}}}(e)}}function bc(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];dc.push(new mc(e,t)),1!==dc.length||fc||lc(gc)}function mc(e,t){this.fun=e,this.array=t}mc.prototype.run=function(){this.fun.apply(null,this.array)};var yc="";function vc(){}var wc=vc,xc=vc,_c=vc,kc=vc,Sc=vc,Pc=vc,Cc=vc;var Ec=Oi.performance||{},Ic=Ec.now||Ec.mozNow||Ec.msNow||Ec.oNow||Ec.webkitNow||function(){return(new Date).getTime()};var Ac=new Date;var Tc,Lc,Mc,jc,Dc={nextTick:bc,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:wc,addListener:xc,once:_c,off:kc,removeListener:Sc,removeAllListeners:Pc,emit:Cc,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*Ic.call(Ec),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-Ac)/1e3}},Rc={exports:{}};function Oc(){if(Tc)return Rc.exports;return Tc=1,Rc.exports={nextTick:function(e,t,i,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var n,o,a=arguments.length;switch(a){case 0:case 1:return Dc.nextTick(e);case 2:return Dc.nextTick(function(){e.call(null,t)});case 3:return Dc.nextTick(function(){e.call(null,t,i)});case 4:return Dc.nextTick(function(){e.call(null,t,i,r)});default:for(n=new Array(a-1),o=0;o<n.length;)n[o++]=arguments[o];return Dc.nextTick(function(){e.apply(null,n)})}}},Rc.exports}function Vc(){}function zc(){zc.init.call(this)}function Nc(e){return void 0===e._maxListeners?zc.defaultMaxListeners:e._maxListeners}function Bc(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 Vc,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=Nc(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 $c(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 Uc(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 Fc(e,t){for(var i=new Array(t);t--;)i[t]=e[t];return i}Vc.prototype=Object.create(null),zc.EventEmitter=zc,zc.usingDomains=!1,zc.prototype.domain=void 0,zc.prototype._events=void 0,zc.prototype._maxListeners=void 0,zc.defaultMaxListeners=10,zc.init=function(){this.domain=null,zc.usingDomains&&(!jc.active||this instanceof jc.Domain||(this.domain=jc.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new Vc,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},zc.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},zc.prototype.getMaxListeners=function(){return Nc(this)},zc.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 l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}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 u="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=Fc(e,r),o=0;o<r;++o)n[o].call(i)}(i,u,this);break;case 2:!function(e,t,i,r){if(t)e.call(i,r);else for(var n=e.length,o=Fc(e,n),a=0;a<n;++a)o[a].call(i,r)}(i,u,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=Fc(e,o),s=0;s<o;++s)a[s].call(i,r,n)}(i,u,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=Fc(e,a),c=0;c<a;++c)s[c].call(i,r,n,o)}(i,u,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=Fc(e,n),a=0;a<n;++a)o[a].apply(i,r)}(i,u,this,n)}return!0},zc.prototype.addListener=function(e,t){return Bc(this,e,t,!1)},zc.prototype.on=zc.prototype.addListener,zc.prototype.prependListener=function(e,t){return Bc(this,e,t,!0)},zc.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,$c(this,e,t)),this},zc.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,$c(this,e,t)),this},zc.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 Vc:(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 Vc,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},zc.prototype.off=function(e,t){return this.removeListener(e,t)},zc.prototype.removeAllListeners=function(e){var t,i;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=new Vc,this._eventsCount=0):i[e]&&(0===--this._eventsCount?this._events=new Vc: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 Vc,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},zc.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):[]},zc.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Uc.call(e,t)},zc.prototype.listenerCount=Uc,zc.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Hc,Kc,qc=Di(Object.freeze({__proto__:null,EventEmitter:zc,default:zc}));function Jc(){return Kc?Hc:(Kc=1,Hc=qc.EventEmitter)}var Wc,Yc={exports:{}};function Gc(){return Wc||(Wc=1,function(e,t){var i=$a,r=i.Buffer;function n(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return r(e,t,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(n(i,t),t.Buffer=o),n(r,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=r(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}}(Yc,Yc.exports)),Yc.exports}var Zc,Xc,Qc={};function el(){if(Zc)return Qc;function e(e){return Object.prototype.toString.call(e)}return Zc=1,Qc.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},Qc.isBoolean=function(e){return"boolean"==typeof e},Qc.isNull=function(e){return null===e},Qc.isNullOrUndefined=function(e){return null==e},Qc.isNumber=function(e){return"number"==typeof e},Qc.isString=function(e){return"string"==typeof e},Qc.isSymbol=function(e){return"symbol"==typeof e},Qc.isUndefined=function(e){return void 0===e},Qc.isRegExp=function(t){return"[object RegExp]"===e(t)},Qc.isObject=function(e){return"object"==typeof e&&null!==e},Qc.isDate=function(t){return"[object Date]"===e(t)},Qc.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},Qc.isFunction=function(e){return"function"==typeof e},Qc.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},Qc.isBuffer=$a.Buffer.isBuffer,Qc}Xc="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};var tl=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),i={},r=0;r<t.length;r++)i[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return i},il=/%[sdj%]/g;function rl(e){if(!vl(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(cl(arguments[i]));return t.join(" ")}i=1;for(var r=arguments,n=r.length,o=String(e).replace(il,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])bl(a)||!kl(a)?o+=" "+a:o+=" "+cl(a);return o}function nl(e,t){if(xl(Oi.process))return function(){return nl(e,t).apply(this,arguments)};if(!0===Dc.noDeprecation)return e;var i=!1;return function(){if(!i){if(Dc.throwDeprecation)throw new Error(t);Dc.traceDeprecation?console.trace(t):console.error(t),i=!0}return e.apply(this,arguments)}}var ol,al={};function sl(e){if(xl(ol)&&(ol=Dc.env.NODE_DEBUG||""),e=e.toUpperCase(),!al[e])if(new RegExp("\\b"+e+"\\b","i").test(ol)){al[e]=function(){var t=rl.apply(null,arguments);console.error("%s %d: %s",e,0,t)}}else al[e]=function(){};return al[e]}function cl(e,t){var i={seen:[],stylize:ul};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),gl(t)?i.showHidden=t:t&&jl(i,t),xl(i.showHidden)&&(i.showHidden=!1),xl(i.depth)&&(i.depth=2),xl(i.colors)&&(i.colors=!1),xl(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=ll),dl(i,e,i.depth)}function ll(e,t){var i=cl.styles[t];return i?"["+cl.colors[i][0]+"m"+e+"["+cl.colors[i][1]+"m":e}function ul(e,t){return e}function dl(e,t,i){if(e.customInspect&&t&&Cl(t.inspect)&&t.inspect!==cl&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(i,e);return vl(r)||(r=dl(e,r,i)),r}var n=function(e,t){if(xl(t))return e.stylize("undefined","undefined");if(vl(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}if(yl(t))return e.stylize(""+t,"number");if(gl(t))return e.stylize(""+t,"boolean");if(bl(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)),Pl(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return fl(t);if(0===o.length){if(Cl(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(_l(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Sl(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Pl(t))return fl(t)}var c,l="",u=!1,d=["{","}"];(hl(t)&&(u=!0,d=["[","]"]),Cl(t))&&(l=" [Function"+(t.name?": "+t.name:"")+"]");return _l(t)&&(l=" "+RegExp.prototype.toString.call(t)),Sl(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Pl(t)&&(l=" "+fl(t)),0!==o.length||u&&0!=t.length?i<0?_l(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=u?function(e,t,i,r,n){for(var o=[],a=0,s=t.length;a<s;++a)Dl(t,String(a))?o.push(pl(e,t,i,r,String(a),!0)):o.push("");return n.forEach(function(n){n.match(/^\d+$/)||o.push(pl(e,t,i,r,n,!0))}),o}(e,t,i,a,o):o.map(function(r){return pl(e,t,i,a,r,u)}),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,l,d)):d[0]+l+d[1]}function fl(e){return"["+Error.prototype.toString.call(e)+"]"}function pl(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")),Dl(r,n)||(a="["+n+"]"),s||(e.seen.indexOf(c.value)<0?(s=bl(i)?dl(e,c.value,null):dl(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")),xl(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 hl(e){return Array.isArray(e)}function gl(e){return"boolean"==typeof e}function bl(e){return null===e}function ml(e){return null==e}function yl(e){return"number"==typeof e}function vl(e){return"string"==typeof e}function wl(e){return"symbol"==typeof e}function xl(e){return void 0===e}function _l(e){return kl(e)&&"[object RegExp]"===Al(e)}function kl(e){return"object"==typeof e&&null!==e}function Sl(e){return kl(e)&&"[object Date]"===Al(e)}function Pl(e){return kl(e)&&("[object Error]"===Al(e)||e instanceof Error)}function Cl(e){return"function"==typeof e}function El(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Il(e){return Xi.isBuffer(e)}function Al(e){return Object.prototype.toString.call(e)}function Tl(e){return e<10?"0"+e.toString(10):e.toString(10)}cl.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]},cl.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Ll=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ml(){var e,t;console.log("%s - %s",(e=new Date,t=[Tl(e.getHours()),Tl(e.getMinutes()),Tl(e.getSeconds())].join(":"),[e.getDate(),Ll[e.getMonth()],t].join(" ")),rl.apply(null,arguments))}function jl(e,t){if(!t||!kl(t))return e;for(var i=Object.keys(t),r=i.length;r--;)e[i[r]]=t[i[r]];return e}function Dl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Rl="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function Ol(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(Rl&&e[Rl]){var t;if("function"!=typeof(t=e[Rl]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Rl,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,i,r=new Promise(function(e,r){t=e,i=r}),n=[],o=0;o<arguments.length;o++)n.push(arguments[o]);n.push(function(e,r){e?i(e):t(r)});try{e.apply(this,n)}catch(e){i(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Rl&&Object.defineProperty(t,Rl,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,tl(e))}function Vl(e,t){if(!e){var i=new Error("Promise was rejected with a falsy value");i.reason=e,e=i}return t(e)}function zl(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],i=0;i<arguments.length;i++)t.push(arguments[i]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var n=this,o=function(){return r.apply(n,arguments)};e.apply(this,t).then(function(e){Dc.nextTick(o.bind(null,null,e))},function(e){Dc.nextTick(Vl.bind(null,e,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,tl(e)),t}Ol.custom=Rl;var Nl,Bl,$l,Ul,Fl,Hl,Kl,ql,Jl,Wl={inherits:Xc,_extend:jl,log:Ml,isBuffer:Il,isPrimitive:El,isFunction:Cl,isError:Pl,isDate:Sl,isObject:kl,isRegExp:_l,isUndefined:xl,isSymbol:wl,isString:vl,isNumber:yl,isNullOrUndefined:ml,isNull:bl,isBoolean:gl,isArray:hl,inspect:cl,deprecate:nl,format:rl,debuglog:sl,promisify:Ol,callbackify:zl},Yl=Di(Object.freeze({__proto__:null,_extend:jl,callbackify:zl,debuglog:sl,default:Wl,deprecate:nl,format:rl,inherits:Xc,inspect:cl,isArray:hl,isBoolean:gl,isBuffer:Il,isDate:Sl,isError:Pl,isFunction:Cl,isNull:bl,isNullOrUndefined:ml,isNumber:yl,isObject:kl,isPrimitive:El,isRegExp:_l,isString:vl,isSymbol:wl,isUndefined:xl,log:Ml,promisify:Ol})),Gl={exports:{}};function Zl(){return Nl||(Nl=1,function(e){var t=Gc().Buffer,i=Yl;function r(e,t,i){e.copy(t,i)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.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},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.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}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.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},e.prototype.concat=function(e){if(0===this.length)return t.alloc(0);for(var i=t.allocUnsafe(e>>>0),n=this.head,o=0;n;)r(n.data,i,o),o+=n.data.length,n=n.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})}(Gl)),Gl.exports}function Xl(){if($l)return Bl;$l=1;var e=Oc();function t(e,t){e.emit("error",t)}return Bl={destroy:function(i,r){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(r?r(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(t,this,i)):e.nextTick(t,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(i){!r&&i?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,e.nextTick(t,n,i)):e.nextTick(t,n,i):r&&r(i)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}},Bl}function Ql(){if(Fl)return Ul;function e(e){try{if(!Mi.localStorage)return!1}catch(e){return!1}var t=Mi.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}return Fl=1,Ul=function(t,i){if(e("noDeprecation"))return t;var r=!1;return function(){if(!r){if(e("throwDeprecation"))throw new Error(i);e("traceDeprecation")?console.trace(i):console.warn(i),r=!0}return t.apply(this,arguments)}},Ul}function eu(){if(Kl)return Hl;Kl=1;var e=Oc();function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,i){var r=e.entry;e.entry=null;for(;r;){var n=r.callback;t.pendingcb--,n(i),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}Hl=p;var i,r=e.nextTick;p.WritableState=f;var n=Object.create(el());n.inherits=Na;var o={deprecate:Ql()},a=Jc(),s=Gc().Buffer,c=(void 0!==Mi?Mi:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,u=Xl();function d(){}function f(n,o){i=i||tu(),n=n||{};var a=o instanceof i;this.objectMode=!!n.objectMode,a&&(this.objectMode=this.objectMode||!!n.writableObjectMode);var s=n.highWaterMark,c=n.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:a&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===n.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,i){var n=t._writableState,o=n.sync,a=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),i)!function(t,i,r,n,o){--i.pendingcb,r?(e.nextTick(o,n),e.nextTick(v,t,i),t._writableState.errorEmitted=!0,t.emit("error",n)):(o(n),t._writableState.errorEmitted=!0,t.emit("error",n),v(t,i))}(t,n,o,i,a);else{var s=m(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||b(t,n),o?r(g,t,n,s,a):g(t,n,s,a)}}(o,t)},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 t(this)}function p(e){if(i=i||tu(),!(l.call(p,this)||this instanceof i))return new p(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function h(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 g(e,t,i,r){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),v(e,t)}function b(e,i){i.bufferProcessing=!0;var r=i.bufferedRequest;if(e._writev&&r&&r.next){var n=i.bufferedRequestCount,o=new Array(n),a=i.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,h(e,i,!0,i.length,o,"",a.finish),i.pendingcb++,i.lastBufferedRequest=null,a.next?(i.corkedRequestsFree=a.next,a.next=null):i.corkedRequestsFree=new t(i),i.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(h(e,i,!1,i.objectMode?1:l.length,l,u,d),r=r.next,i.bufferedRequestCount--,i.writing)break}null===r&&(i.lastBufferedRequest=null)}i.bufferedRequest=r,i.bufferProcessing=!1}function m(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function y(e,t){e._final(function(i){t.pendingcb--,i&&e.emit("error",i),t.prefinished=!0,e.emit("prefinish"),v(e,t)})}function v(t,i){var r=m(i);return r&&(!function(t,i){i.prefinished||i.finalCalled||("function"==typeof t._final?(i.pendingcb++,i.finalCalled=!0,e.nextTick(y,t,i)):(i.prefinished=!0,t.emit("prefinish")))}(t,i),0===i.pendingcb&&(i.finished=!0,t.emit("finish"))),r}return n.inherits(p,a),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===p&&(e&&e._writableState instanceof f)}})):l=function(e){return e instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(t,i,r){var n,o=this._writableState,a=!1,l=!o.objectMode&&(n=t,s.isBuffer(n)||n instanceof c);return l&&!s.isBuffer(t)&&(t=function(e){return s.from(e)}(t)),"function"==typeof i&&(r=i,i=null),l?i="buffer":i||(i=o.defaultEncoding),"function"!=typeof r&&(r=d),o.ended?function(t,i){var r=new Error("write after end");t.emit("error",r),e.nextTick(i,r)}(this,r):(l||function(t,i,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||i.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),e.nextTick(n,a),o=!1),o}(this,o,t,r))&&(o.pendingcb++,a=function(e,t,i,r,n,o){if(!i){var a=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=s.from(t,i));return t}(t,r,n);r!==a&&(i=!0,n="buffer",r=a)}var c=t.objectMode?1:r.length;t.length+=c;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:n,isBuf:i,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else h(e,t,!1,c,r,n,o);return l}(this,o,l,t,i,r)),a},p.prototype.cork=function(){this._writableState.corked++},p.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||b(this,e))},p.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},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(e,t,i){i(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(t,i,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,i=null):"function"==typeof i&&(r=i,i=null),null!=t&&this.write(t,i),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,i,r){i.ending=!0,v(t,i),r&&(i.finished?e.nextTick(r):t.once("finish",r));i.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),p.prototype.destroy=u.destroy,p.prototype._undestroy=u.undestroy,p.prototype._destroy=function(e,t){this.end(),t(e)},Hl}function tu(){if(Jl)return ql;Jl=1;var e=Oc(),t=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};ql=c;var i=Object.create(el());i.inherits=Na;var r=xu(),n=eu();i.inherits(c,r);for(var o=t(n.prototype),a=0;a<o.length;a++){var s=o[a];c.prototype[s]||(c.prototype[s]=n.prototype[s])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),n.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",l)}function l(){this.allowHalfOpen||this._writableState.ended||e.nextTick(u,this)}function u(e){e.end()}return Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),c.prototype._destroy=function(t,i){this.push(null),this.end(),e.nextTick(i,t)},ql}var iu=Xi.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 ru(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!iu(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=ou;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=au;break;default:return void(this.write=nu)}this.charBuffer=new Xi(6),this.charReceived=0,this.charLength=0}function nu(e){return e.toString(this.encoding)}function ou(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function au(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}ru.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},ru.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},ru.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 su,cu,lu,uu,du,fu,pu,hu,gu,bu,mu,yu,vu,wu=Di(Object.freeze({__proto__:null,StringDecoder:ru}));function xu(){if(cu)return su;cu=1;var e=Oc();su=g;var t,i=function(){if(Mc)return Lc;Mc=1;var e={}.toString;return Lc=Array.isArray||function(t){return"[object Array]"==e.call(t)}}();g.ReadableState=h,qc.EventEmitter;var r=function(e,t){return e.listeners(t).length},n=Jc(),o=Gc().Buffer,a=(void 0!==Mi?Mi:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s=Object.create(el());s.inherits=Na;var c=Yl,l=void 0;l=c&&c.debuglog?c.debuglog("stream"):function(){};var u,d=Zl(),f=Xl();s.inherits(g,n);var p=["error","close","destroy","pause","resume"];function h(e,i){e=e||{};var r=i instanceof(t=t||tu());this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,o=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=wu.StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function g(e){if(t=t||tu(),!(this instanceof g))return new g(e);this._readableState=new h(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),n.call(this)}function b(e,t,i,r,n){var s,c=e._readableState;null===t?(c.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,w(e)}(e,c)):(n||(s=function(e,t){var i;r=t,o.isBuffer(r)||r instanceof a||"string"==typeof t||void 0===t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));var r;return i}(c,t)),s?e.emit("error",s):c.objectMode||t&&t.length>0?("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===o.prototype||(t=function(e){return o.from(e)}(t)),r?c.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):m(e,c,t,!0):c.ended?e.emit("error",new Error("stream.push() after EOF")):(c.reading=!1,c.decoder&&!i?(t=c.decoder.write(t),c.objectMode||0!==t.length?m(e,c,t,!1):_(e,c)):m(e,c,t,!1))):r||(c.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(c)}function m(e,t,i,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,r?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&w(e)),_(e,t)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),g.prototype.destroy=f.destroy,g.prototype._undestroy=f.undestroy,g.prototype._destroy=function(e,t){this.push(null),t(e)},g.prototype.push=function(e,t){var i,r=this._readableState;return r.objectMode?i=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=o.from(e,t),t=""),i=!0),b(this,e,t,!1,i)},g.prototype.unshift=function(e){return b(this,e,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing},g.prototype.setEncoding=function(e){return u||(u=wu.StringDecoder),this._readableState.decoder=new u(e),this._readableState.encoding=e,this};var y=8388608;function v(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>=y?e=y:(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 w(t){var i=t._readableState;i.needReadable=!1,i.emittedReadable||(l("emitReadable",i.flowing),i.emittedReadable=!0,i.sync?e.nextTick(x,t):x(t))}function x(e){l("emit readable"),e.emit("readable"),C(e)}function _(t,i){i.readingMore||(i.readingMore=!0,e.nextTick(k,t,i))}function k(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(l("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function S(e){l("readable nexttick read 0"),e.read(0)}function P(e,t){t.reading||(l("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),C(e),t.flowing&&!t.reading&&e.read(0)}function C(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function E(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=o.allocUnsafe(e),r=t.head,n=1;r.data.copy(i),e-=r.data.length;for(;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(a.copy(i,i.length-e,0,s),0===(e-=s)){s===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++n}return t.length-=n,i}(e,t);return r}(e,t.buffer,t.decoder),i);var i}function I(t){var i=t._readableState;if(i.length>0)throw new Error('"endReadable()" called on non-empty stream');i.endEmitted||(i.ended=!0,e.nextTick(A,i,t))}function A(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function T(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}return g.prototype.read=function(e){l("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 l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):w(this),null;if(0===(e=v(e,t))&&t.ended)return 0===t.length&&I(this),null;var r,n=t.needReadable;return l("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",n=!0),t.ended||t.reading?l("reading or ended",n=!1):n&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=v(i,t))),null===(r=e>0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&I(this)),null!==r&&this.emit("data",r),r},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(t,n){var o=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=t;break;case 1:a.pipes=[a.pipes,t];break;default:a.pipes.push(t)}a.pipesCount+=1,l("pipe count=%d opts=%j",a.pipesCount,n);var s=(!n||!1!==n.end)&&t!==Dc.stdout&&t!==Dc.stderr?u:y;function c(e,i){l("onunpipe"),e===o&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),t.removeListener("close",b),t.removeListener("finish",m),t.removeListener("drain",d),t.removeListener("error",g),t.removeListener("unpipe",c),o.removeListener("end",u),o.removeListener("end",y),o.removeListener("data",h),f=!0,!a.awaitDrain||t._writableState&&!t._writableState.needDrain||d())}function u(){l("onend"),t.end()}a.endEmitted?e.nextTick(s):o.once("end",s),t.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&r(e,"data")&&(t.flowing=!0,C(e))}}(o);t.on("drain",d);var f=!1;var p=!1;function h(e){l("ondata"),p=!1,!1!==t.write(e)||p||((1===a.pipesCount&&a.pipes===t||a.pipesCount>1&&-1!==T(a.pipes,t))&&!f&&(l("false write response, pause",a.awaitDrain),a.awaitDrain++,p=!0),o.pause())}function g(e){l("onerror",e),y(),t.removeListener("error",g),0===r(t,"error")&&t.emit("error",e)}function b(){t.removeListener("finish",m),y()}function m(){l("onfinish"),t.removeListener("close",b),y()}function y(){l("unpipe"),o.unpipe(t)}return o.on("data",h),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?i(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(t,"error",g),t.once("close",b),t.once("finish",m),t.emit("pipe",o),a.flowing||(l("pipe resume"),o.resume()),t},g.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};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,i)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<n;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=T(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i)),this},g.prototype.on=function(t,i){var r=n.prototype.on.call(this,t,i);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var o=this._readableState;o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.emittedReadable=!1,o.reading?o.length&&w(this):e.nextTick(S,this))}return r},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!0,function(t,i){i.resumeScheduled||(i.resumeScheduled=!0,e.nextTick(P,t,i))}(this,t)),this},g.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this},g.prototype.wrap=function(e){var t=this,i=this._readableState,r=!1;for(var n in e.on("end",function(){if(l("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(n){(l("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n)||(i.objectMode||n&&n.length)&&(t.push(n)||(r=!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));for(var o=0;o<p.length;o++)e.on(p[o],this.emit.bind(this,p[o]));return this._read=function(t){l("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=E,su}function _u(){if(uu)return lu;uu=1,lu=r;var e=tu(),t=Object.create(el());function i(e,t){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,null!=t&&this.push(t),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function r(t){if(!(this instanceof r))return new r(t);e.call(this,t),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",n)}function n(){var e=this;"function"==typeof this._flush?this._flush(function(t,i){o(e,t,i)}):o(this,null,null)}function o(e,t,i){if(t)return e.emit("error",t);if(null!=i&&e.push(i),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}return t.inherits=Na,t.inherits(r,e),r.prototype.push=function(t,i){return this._transformState.needTransform=!1,e.prototype.push.call(this,t,i)},r.prototype._transform=function(e,t,i){throw new Error("_transform() is not implemented")},r.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)}},r.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},r.prototype._destroy=function(t,i){var r=this;e.prototype._destroy.call(this,t,function(e){i(e),r.emit("close")})},lu}function ku(){return pu||(pu=1,e=nc.exports,(e=nc.exports=xu()).Stream=e,e.Readable=e,e.Writable=eu(),e.Duplex=tu(),e.Transform=_u(),e.PassThrough=function(){if(fu)return du;fu=1,du=i;var e=_u(),t=Object.create(el());function i(t){if(!(this instanceof i))return new i(t);e.call(this,t)}return t.inherits=Na,t.inherits(i,e),i.prototype._transform=function(e,t,i){i(null,e)},du}()),nc.exports;var e}function Su(){if(gu)return hu;gu=1;var e=Ua().Buffer,t=function(){if(Js)return qs;Js=1;var e=Ua().Buffer,t=rc(),i="undefined"!=typeof Uint8Array,r=i&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;return qs=function(n,o){if("string"==typeof n||e.isBuffer(n)||i&&n instanceof Uint8Array||r&&r(n))return t(n,o);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}}(),i=ku().Transform;function r(t){i.call(this),this._block=e.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return Na(r,i),r.prototype._transform=function(e,t,i){var r=null;try{this.update(e,t)}catch(e){r=e}i(r)},r.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},r.prototype.update=function(e,i){if(this._finalized)throw new Error("Digest already called");for(var r=t(e,i),n=this._block,o=0;this._blockOffset+r.length-o>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a]=r[o],a+=1,o+=1;this._update(),this._blockOffset=0}for(;o<r.length;)n[this._blockOffset]=r[o],this._blockOffset+=1,o+=1;for(var s=0,c=8*r.length;c>0;++s)this._length[s]+=c,(c=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*c);return this},r.prototype._update=function(){throw new Error("_update is not implemented")},r.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return t},r.prototype._digest=function(){throw new Error("_digest is not implemented")},hu=r}var Pu,Cu,Eu,Iu,Au,Tu,Lu,Mu,ju,Du,Ru,Ou,Vu,zu,Nu,Bu={exports:{}};function $u(){if(Cu)return Pu;Cu=1;var e=Ua().Buffer,t=rc();function i(t,i){this._block=e.alloc(t),this._finalSize=i,this._blockSize=t,this._len=0}return i.prototype.update=function(e,i){e=t(e,i||"utf8");for(var r=this._block,n=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var c=a%n,l=Math.min(o-s,n-c),u=0;u<l;u++)r[c+u]=e[s+u];s+=l,(a+=l)%n===0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var r=(4294967295&i)>>>0,n=(i-r)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Pu=i}function Uu(){if(Mu)return Lu;Mu=1;var e=Na,t=$u(),i=Ua().Buffer,r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],n=new Array(64);function o(){this.init(),this._w=n,t.call(this,64,56)}function a(e,t,i){return i^e&(t^i)}function s(e,t,i){return e&t|i&(e|t)}function c(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function l(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function u(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function d(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}return e(o,t),o.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},o.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,o=0|this._c,f=0|this._d,p=0|this._e,h=0|this._f,g=0|this._g,b=0|this._h,m=0;m<16;++m)t[m]=e.readInt32BE(4*m);for(;m<64;++m)t[m]=d(t[m-2])+t[m-7]+u(t[m-15])+t[m-16]|0;for(var y=0;y<64;++y){var v=b+l(p)+a(p,h,g)+r[y]+t[y]|0,w=c(i)+s(i,n,o)|0;b=g,g=h,h=p,p=f+v|0,f=o,o=n,n=i,i=v+w|0}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=f+this._d|0,this._e=p+this._e|0,this._f=h+this._f|0,this._g=g+this._g|0,this._h=b+this._h|0},o.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},Lu=o}function Fu(){if(Ou)return Ru;Ou=1;var e=Na,t=$u(),i=Ua().Buffer,r=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],n=new Array(160);function o(){this.init(),this._w=n,t.call(this,128,112)}function a(e,t,i){return i^e&(t^i)}function s(e,t,i){return e&t|i&(e|t)}function c(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function l(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function f(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function h(e,t){return e>>>0<t>>>0?1:0}return e(o,t),o.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},o.prototype._update=function(e){for(var t=this._w,i=0|this._ah,n=0|this._bh,o=0|this._ch,g=0|this._dh,b=0|this._eh,m=0|this._fh,y=0|this._gh,v=0|this._hh,w=0|this._al,x=0|this._bl,_=0|this._cl,k=0|this._dl,S=0|this._el,P=0|this._fl,C=0|this._gl,E=0|this._hl,I=0;I<32;I+=2)t[I]=e.readInt32BE(4*I),t[I+1]=e.readInt32BE(4*I+4);for(;I<160;I+=2){var A=t[I-30],T=t[I-30+1],L=u(A,T),M=d(T,A),j=f(A=t[I-4],T=t[I-4+1]),D=p(T,A),R=t[I-14],O=t[I-14+1],V=t[I-32],z=t[I-32+1],N=M+O|0,B=L+R+h(N,M)|0;B=(B=B+j+h(N=N+D|0,D)|0)+V+h(N=N+z|0,z)|0,t[I]=B,t[I+1]=N}for(var $=0;$<160;$+=2){B=t[$],N=t[$+1];var U=s(i,n,o),F=s(w,x,_),H=c(i,w),K=c(w,i),q=l(b,S),J=l(S,b),W=r[$],Y=r[$+1],G=a(b,m,y),Z=a(S,P,C),X=E+J|0,Q=v+q+h(X,E)|0;Q=(Q=(Q=Q+G+h(X=X+Z|0,Z)|0)+W+h(X=X+Y|0,Y)|0)+B+h(X=X+N|0,N)|0;var ee=K+F|0,te=H+U+h(ee,K)|0;v=y,E=C,y=m,C=P,m=b,P=S,b=g+Q+h(S=k+X|0,k)|0,g=o,k=_,o=n,_=x,n=i,x=w,i=Q+te+h(w=X+ee|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+x|0,this._cl=this._cl+_|0,this._dl=this._dl+k|0,this._el=this._el+S|0,this._fl=this._fl+P|0,this._gl=this._gl+C|0,this._hl=this._hl+E|0,this._ah=this._ah+i+h(this._al,w)|0,this._bh=this._bh+n+h(this._bl,x)|0,this._ch=this._ch+o+h(this._cl,_)|0,this._dh=this._dh+g+h(this._dl,k)|0,this._eh=this._eh+b+h(this._el,S)|0,this._fh=this._fh+m+h(this._fl,P)|0,this._gh=this._gh+y+h(this._gl,C)|0,this._hh=this._hh+v+h(this._hl,E)|0},o.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},Ru=o}function Hu(){return Nu||(Nu=1,function(e){e.exports=function(t){var i=t.toLowerCase(),r=e.exports[i];if(!r)throw new Error(i+" is not supported (we accept pull requests)");return new r},e.exports.sha=function(){if(Iu)return Eu;Iu=1;var e=Na,t=$u(),i=Ua().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function o(){this.init(),this._w=n,t.call(this,64,56)}function a(e){return e<<5|e>>>27}function s(e){return e<<30|e>>>2}function c(e,t,i,r){return 0===e?t&i|~t&r:2===e?t&i|t&r|i&r:t^i^r}return e(o,t),o.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},o.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,o=0|this._c,l=0|this._d,u=0|this._e,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<80;++d)t[d]=t[d-3]^t[d-8]^t[d-14]^t[d-16];for(var f=0;f<80;++f){var p=~~(f/20),h=a(i)+c(p,n,o,l)+u+t[f]+r[p]|0;u=l,l=o,o=s(n),n=i,i=h}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=l+this._d|0,this._e=u+this._e|0},o.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},Eu=o}(),e.exports.sha1=function(){if(Tu)return Au;Tu=1;var e=Na,t=$u(),i=Ua().Buffer,r=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function o(){this.init(),this._w=n,t.call(this,64,56)}function a(e){return e<<1|e>>>31}function s(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function l(e,t,i,r){return 0===e?t&i|~t&r:2===e?t&i|t&r|i&r:t^i^r}return e(o,t),o.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},o.prototype._update=function(e){for(var t=this._w,i=0|this._a,n=0|this._b,o=0|this._c,u=0|this._d,d=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=a(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var p=0;p<80;++p){var h=~~(p/20),g=s(i)+l(h,n,o,u)+d+t[p]+r[h]|0;d=u,u=o,o=c(n),n=i,i=g}this._a=i+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=d+this._e|0},o.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},Au=o}(),e.exports.sha224=function(){if(Du)return ju;Du=1;var e=Na,t=Uu(),i=$u(),r=Ua().Buffer,n=new Array(64);function o(){this.init(),this._w=n,i.call(this,64,56)}return e(o,t),o.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},o.prototype._hash=function(){var e=r.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},ju=o}(),e.exports.sha256=Uu(),e.exports.sha384=function(){if(zu)return Vu;zu=1;var e=Na,t=Fu(),i=$u(),r=Ua().Buffer,n=new Array(160);function o(){this.init(),this._w=n,i.call(this,128,112)}return e(o,t),o.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},o.prototype._hash=function(){var e=r.allocUnsafe(48);function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},Vu=o}(),e.exports.sha512=Fu()}(Bu)),Bu.exports}function Ku(){this.head=null,this.tail=null,this.length=0}Ku.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},Ku.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Ku.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}},Ku.prototype.clear=function(){this.head=this.tail=null,this.length=0},Ku.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},Ku.prototype.concat=function(e){if(0===this.length)return Xi.alloc(0);if(1===this.length)return this.head.data;for(var t=Xi.allocUnsafe(e>>>0),i=this.head,r=0;i;)i.data.copy(t,r),r+=i.data.length,i=i.next;return t},Wu.ReadableState=Ju;var qu=sl("stream");function Ju(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof _d&&(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 Ku,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 ru(e.encoding),this.encoding=e.encoding)}function Wu(e){if(!(this instanceof Wu))return new Wu(e);this._readableState=new Ju(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),zc.call(this)}function Yu(e,t,i,r,n){var o=function(e,t){var i=null;Xi.isBuffer(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,Xu(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&&Xu(e))),function(e,t){t.readingMore||(t.readingMore=!0,bc(ed,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)}Xc(Wu,zc),Wu.prototype.push=function(e,t){var i=this._readableState;return i.objectMode||"string"!=typeof e||(t=t||i.defaultEncoding)!==i.encoding&&(e=Xi.from(e,t),t=""),Yu(this,i,e,t,!1)},Wu.prototype.unshift=function(e){return Yu(this,this._readableState,e,"",!0)},Wu.prototype.isPaused=function(){return!1===this._readableState.flowing},Wu.prototype.setEncoding=function(e){return this._readableState.decoder=new ru(e),this._readableState.encoding=e,this};var Gu=8388608;function Zu(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>=Gu?e=Gu:(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 Xu(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(qu("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?bc(Qu,e):Qu(e))}function Qu(e){qu("emit readable"),e.emit("readable"),rd(e)}function ed(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(qu("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function td(e){qu("readable nexttick read 0"),e.read(0)}function id(e,t){t.reading||(qu("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),rd(e),t.flowing&&!t.reading&&e.read(0)}function rd(e){var t=e._readableState;for(qu("flow",t.flowing);t.flowing&&null!==e.read(););}function nd(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=Xi.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 od(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,bc(ad,t,e))}function ad(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function sd(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}function cd(){}function ld(e,t,i){this.chunk=e,this.encoding=t,this.callback=i,this.next=null}function ud(e,t){Object.defineProperty(this,"buffer",{get:nl(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof _d&&(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?bc(n,r):n(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,i,r,t,n);else{var o=gd(i);o||i.corked||i.bufferProcessing||!i.bufferedRequest||hd(e,i),r?bc(pd,e,i,o,n):pd(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 yd(this)}function dd(e){if(!(this instanceof dd||this instanceof _d))return new dd(e);this._writableState=new ud(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),zc.call(this)}function fd(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 pd(e,t,i,r){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),md(e,t)}function hd(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;fd(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 yd(t)}else{for(;i;){var s=i.chunk,c=i.encoding,l=i.callback;if(fd(e,t,!1,t.objectMode?1:s.length,s,c,l),i=i.next,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=i,t.bufferProcessing=!1}function gd(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function bd(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function md(e,t){var i=gd(t);return i&&(0===t.pendingcb?(bd(e,t),t.finished=!0,e.emit("finish")):bd(e,t)),i}function yd(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}}Wu.prototype.read=function(e){qu("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 qu("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?od(this):Xu(this),null;if(0===(e=Zu(e,t))&&t.ended)return 0===t.length&&od(this),null;var r,n=t.needReadable;return qu("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&qu("length less than watermark",n=!0),t.ended||t.reading?qu("reading or ended",n=!1):n&&(qu("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Zu(i,t))),null===(r=e>0?nd(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&od(this)),null!==r&&this.emit("data",r),r},Wu.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Wu.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,qu("pipe count=%d opts=%j",r.pipesCount,t);var n=!t||!1!==t.end?a:l;function o(e){qu("onunpipe"),e===i&&l()}function a(){qu("onend"),e.end()}r.endEmitted?bc(n):i.once("end",n),e.on("unpipe",o);var s=function(e){return function(){var t=e._readableState;qu("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,rd(e))}}(i);e.on("drain",s);var c=!1;function l(){qu("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",s),e.removeListener("error",f),e.removeListener("unpipe",o),i.removeListener("end",a),i.removeListener("end",l),i.removeListener("data",d),c=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var u=!1;function d(t){qu("ondata"),u=!1,!1!==e.write(t)||u||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==sd(r.pipes,e))&&!c&&(qu("false write response, pause",i._readableState.awaitDrain),i._readableState.awaitDrain++,u=!0),i.pause())}function f(t){qu("onerror",t),g(),e.removeListener("error",f),0===function(e,t){return e.listeners(t).length}(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",h),g()}function h(){qu("onfinish"),e.removeListener("close",p),g()}function g(){qu("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",f),e.once("close",p),e.once("finish",h),e.emit("pipe",i),r.flowing||(qu("pipe resume"),i.resume()),e},Wu.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=sd(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},Wu.prototype.on=function(e,t){var i=zc.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&&Xu(this):bc(td,this))}return i},Wu.prototype.addListener=Wu.prototype.on,Wu.prototype.resume=function(){var e=this._readableState;return e.flowing||(qu("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,bc(id,e,t))}(this,e)),this},Wu.prototype.pause=function(){return qu("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(qu("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Wu.prototype.wrap=function(e){var t=this._readableState,i=!1,r=this;for(var n in e.on("end",function(){if(qu("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){(qu("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){qu("wrapped _read",t),i&&(i=!1,e.resume())},r},Wu._fromList=nd,dd.WritableState=ud,Xc(dd,zc),ud.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},dd.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},dd.prototype.write=function(e,t,i){var r=this._writableState,n=!1;return"function"==typeof t&&(i=t,t=null),Xi.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof i&&(i=cd),r.ended?function(e,t){var i=new Error("write after end");e.emit("error",i),bc(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"):Xi.isBuffer(i)||"string"==typeof i||void 0===i||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),bc(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=Xi.from(t,i));return t}(t,i,r),Xi.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 ld(i,r,n),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else fd(e,t,!1,o,i,r,n);return a}(this,r,e,t,i)),n},dd.prototype.cork=function(){this._writableState.corked++},dd.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||hd(this,e))},dd.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},dd.prototype._write=function(e,t,i){i(new Error("not implemented"))},dd.prototype._writev=null,dd.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,md(e,t),i&&(t.finished?bc(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,r,i)},Xc(_d,Wu);for(var vd=Object.keys(dd.prototype),wd=0;wd<vd.length;wd++){var xd=vd[wd];_d.prototype[xd]||(_d.prototype[xd]=dd.prototype[xd])}function _d(e){if(!(this instanceof _d))return new _d(e);Wu.call(this,e),dd.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",kd)}function kd(){this.allowHalfOpen||this._writableState.ended||bc(Sd,this)}function Sd(e){e.end()}function Pd(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 Cd(e){if(!(this instanceof Cd))return new Cd(e);_d.call(this,e),this._transformState=new Pd(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){Ed(t,e)}):Ed(t)})}function Ed(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 Id(e){if(!(this instanceof Id))return new Id(e);Cd.call(this,e)}function Ad(){zc.call(this)}Xc(Cd,_d),Cd.prototype.push=function(e,t){return this._transformState.needTransform=!1,_d.prototype.push.call(this,e,t)},Cd.prototype._transform=function(e,t,i){throw new Error("Not implemented")},Cd.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)}},Cd.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},Xc(Id,Cd),Id.prototype._transform=function(e,t,i){i(null,e)},Xc(Ad,zc),Ad.Readable=Wu,Ad.Writable=dd,Ad.Duplex=_d,Ad.Transform=Cd,Ad.PassThrough=Id,Ad.Stream=Ad,Ad.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(l(),0===zc.listenerCount(this,"error"))throw e}function l(){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",l),i.removeListener("close",l),e.removeListener("close",l)}return i.on("error",c),e.on("error",c),i.on("end",l),i.on("close",l),e.on("close",l),e.emit("pipe",i),e};var Td,Ld,Md,jd,Dd=Di(Object.freeze({__proto__:null,Duplex:_d,PassThrough:Id,Readable:Wu,Stream:Ad,Transform:Cd,Writable:dd,default:Ad}));var Rd,Od=function(){if(jd)return Md;jd=1;var e=Na,t=function(){if(mu)return bu;mu=1;var e=Na,t=Su(),i=Ua().Buffer,r=new Array(16);function n(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function o(e,t){return e<<t|e>>>32-t}function a(e,t,i,r,n,a,s){return o(e+(t&i|~t&r)+n+a|0,s)+t|0}function s(e,t,i,r,n,a,s){return o(e+(t&r|i&~r)+n+a|0,s)+t|0}function c(e,t,i,r,n,a,s){return o(e+(t^i^r)+n+a|0,s)+t|0}function l(e,t,i,r,n,a,s){return o(e+(i^(t|~r))+n+a|0,s)+t|0}return e(n,t),n.prototype._update=function(){for(var e=r,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var i=this._a,n=this._b,o=this._c,u=this._d;i=a(i,n,o,u,e[0],3614090360,7),u=a(u,i,n,o,e[1],3905402710,12),o=a(o,u,i,n,e[2],606105819,17),n=a(n,o,u,i,e[3],3250441966,22),i=a(i,n,o,u,e[4],4118548399,7),u=a(u,i,n,o,e[5],1200080426,12),o=a(o,u,i,n,e[6],2821735955,17),n=a(n,o,u,i,e[7],4249261313,22),i=a(i,n,o,u,e[8],1770035416,7),u=a(u,i,n,o,e[9],2336552879,12),o=a(o,u,i,n,e[10],4294925233,17),n=a(n,o,u,i,e[11],2304563134,22),i=a(i,n,o,u,e[12],1804603682,7),u=a(u,i,n,o,e[13],4254626195,12),o=a(o,u,i,n,e[14],2792965006,17),i=s(i,n=a(n,o,u,i,e[15],1236535329,22),o,u,e[1],4129170786,5),u=s(u,i,n,o,e[6],3225465664,9),o=s(o,u,i,n,e[11],643717713,14),n=s(n,o,u,i,e[0],3921069994,20),i=s(i,n,o,u,e[5],3593408605,5),u=s(u,i,n,o,e[10],38016083,9),o=s(o,u,i,n,e[15],3634488961,14),n=s(n,o,u,i,e[4],3889429448,20),i=s(i,n,o,u,e[9],568446438,5),u=s(u,i,n,o,e[14],3275163606,9),o=s(o,u,i,n,e[3],4107603335,14),n=s(n,o,u,i,e[8],1163531501,20),i=s(i,n,o,u,e[13],2850285829,5),u=s(u,i,n,o,e[2],4243563512,9),o=s(o,u,i,n,e[7],1735328473,14),i=c(i,n=s(n,o,u,i,e[12],2368359562,20),o,u,e[5],4294588738,4),u=c(u,i,n,o,e[8],2272392833,11),o=c(o,u,i,n,e[11],1839030562,16),n=c(n,o,u,i,e[14],4259657740,23),i=c(i,n,o,u,e[1],2763975236,4),u=c(u,i,n,o,e[4],1272893353,11),o=c(o,u,i,n,e[7],4139469664,16),n=c(n,o,u,i,e[10],3200236656,23),i=c(i,n,o,u,e[13],681279174,4),u=c(u,i,n,o,e[0],3936430074,11),o=c(o,u,i,n,e[3],3572445317,16),n=c(n,o,u,i,e[6],76029189,23),i=c(i,n,o,u,e[9],3654602809,4),u=c(u,i,n,o,e[12],3873151461,11),o=c(o,u,i,n,e[15],530742520,16),i=l(i,n=c(n,o,u,i,e[2],3299628645,23),o,u,e[0],4096336452,6),u=l(u,i,n,o,e[7],1126891415,10),o=l(o,u,i,n,e[14],2878612391,15),n=l(n,o,u,i,e[5],4237533241,21),i=l(i,n,o,u,e[12],1700485571,6),u=l(u,i,n,o,e[3],2399980690,10),o=l(o,u,i,n,e[10],4293915773,15),n=l(n,o,u,i,e[1],2240044497,21),i=l(i,n,o,u,e[8],1873313359,6),u=l(u,i,n,o,e[15],4264355552,10),o=l(o,u,i,n,e[6],2734768916,15),n=l(n,o,u,i,e[13],1309151649,21),i=l(i,n,o,u,e[4],4149444226,6),u=l(u,i,n,o,e[11],3174756917,10),o=l(o,u,i,n,e[2],718787259,15),n=l(n,o,u,i,e[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+n|0,this._c=this._c+o|0,this._d=this._d+u|0},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},bu=n}(),i=function(){if(vu)return yu;vu=1;var e=$a.Buffer,t=Na,i=Su(),r=new Array(16),n=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],o=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],a=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],s=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],c=[0,1518500249,1859775393,2400959708,2840853838],l=[1352829926,1548603684,1836072691,2053994217,0];function u(e,t){return e<<t|e>>>32-t}function d(e,t,i,r,n,o,a,s){return u(e+(t^i^r)+o+a|0,s)+n|0}function f(e,t,i,r,n,o,a,s){return u(e+(t&i|~t&r)+o+a|0,s)+n|0}function p(e,t,i,r,n,o,a,s){return u(e+((t|~i)^r)+o+a|0,s)+n|0}function h(e,t,i,r,n,o,a,s){return u(e+(t&r|i&~r)+o+a|0,s)+n|0}function g(e,t,i,r,n,o,a,s){return u(e+(t^(i|~r))+o+a|0,s)+n|0}function b(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}return t(b,i),b.prototype._update=function(){for(var e=r,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var i=0|this._a,b=0|this._b,m=0|this._c,y=0|this._d,v=0|this._e,w=0|this._a,x=0|this._b,_=0|this._c,k=0|this._d,S=0|this._e,P=0;P<80;P+=1){var C,E;P<16?(C=d(i,b,m,y,v,e[n[P]],c[0],a[P]),E=g(w,x,_,k,S,e[o[P]],l[0],s[P])):P<32?(C=f(i,b,m,y,v,e[n[P]],c[1],a[P]),E=h(w,x,_,k,S,e[o[P]],l[1],s[P])):P<48?(C=p(i,b,m,y,v,e[n[P]],c[2],a[P]),E=p(w,x,_,k,S,e[o[P]],l[2],s[P])):P<64?(C=h(i,b,m,y,v,e[n[P]],c[3],a[P]),E=f(w,x,_,k,S,e[o[P]],l[3],s[P])):(C=g(i,b,m,y,v,e[n[P]],c[4],a[P]),E=d(w,x,_,k,S,e[o[P]],l[4],s[P])),i=v,v=y,y=u(m,10),m=b,b=C,w=S,S=k,k=u(_,10),_=x,x=E}var I=this._b+m+k|0;this._b=this._c+y+S|0,this._c=this._d+v+w|0,this._d=this._e+i+x|0,this._e=this._a+b+_|0,this._a=I},b.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=e.alloc?e.alloc(20):new e(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},yu=b}(),r=Hu(),n=function(){if(Ld)return Td;Ld=1;var e=Ua().Buffer,t=Dd.Transform,i=wu.StringDecoder,r=Na,n=rc();function o(e){t.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return r(o,t),o.prototype.update=function(e,t,i){var r=n(e,t),o=this._update(r);return this.hashMode?this:(i&&(o=this._toString(o,i)),o)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,i){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{i(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(t){var i=this.__final()||e.alloc(0);return t&&(i=this._toString(i,t,!0)),i},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new i(t),this._encoding=t),this._encoding!==t)throw new Error("can’t switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},Td=o}();function o(e){n.call(this,"digest"),this._hash=e}return e(o,n),o.prototype._update=function(e){this._hash.update(e)},o.prototype._final=function(){return this._hash.digest()},Md=function(e){return"md5"===(e=e.toLowerCase())?new t:"rmd160"===e||"ripemd160"===e?new i:new o(r(e))}}(),Vd=ji(Od),zd={exports:{}};var Nd,Bd,$d,Ud,Fd,Hd,Kd=ji(function(){if(Rd)return zd.exports;Rd=1;var e=65536,t=4294967295,i=Ua().Buffer,r=Mi.crypto||Mi.msCrypto;return r&&r.getRandomValues?zd.exports=function(n,o){if(n>t)throw new RangeError("requested too many random bytes");var a=i.allocUnsafe(n);if(n>0)if(n>e)for(var s=0;s<n;s+=e)r.getRandomValues(a.slice(s,s+e));else r.getRandomValues(a);if("function"==typeof o)return Dc.nextTick(function(){o(null,a)});return a}:zd.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")},zd.exports}());var qd=function(){if(Hd)return Fd;Hd=1;const{CryptoLD:e}=(Bd||(Bd=1,Nd={CryptoLD:class{constructor({suites:e}={}){this.suites=e||new Map}use(e){this.suites.set(e.suite,e)}async generate(e={}){return this._suiteForType(e).generate(e)}async from(e={}){const t=this._suiteForType(e);return e["@context"]?t.fromKeyDocument({document:e}):t.from(e)}async fromKeyDocument({document:e,checkContext:t=!0,checkRevoked:i=!0}={}){if(!e)throw new TypeError('The "document" parameter is required.');return this._suiteForType(e).fromKeyDocument({document:e,checkContext:t,checkRevoked:i})}async fromKeyId({id:e,documentLoader:t,checkContext:i=!0,checkRevoked:r=!0}={}){if(!e)throw new TypeError('The "id" parameter is required.');if(!t)throw new TypeError('The "documentLoader" parameter is required.');let n;try{if(({document:n}=await t(e)),!n)throw new Error('The "documentLoader" function must return a "document" object.')}catch(e){const t=new Error("Error fetching document: "+e.message);throw t.cause=e,t}const o=n.type;if(!o)throw new Error("Key suite type not found in fetched document.");const a=this.suites.get(o);if(!a)throw new Error(`Support for suite "${o}" is not installed.`);return a.fromKeyDocument({document:n,checkContext:i,checkRevoked:r})}_installed({type:e}){return this.suites.has(e)}_suiteForType(e){const t=e&&e.type;if(!t)throw new TypeError("Missing key type.");if(!this._installed({type:t}))throw new Error(`Support for key type "${t}" is not installed.`);return this.suites.get(t)}}}),Nd),{LDKeyPair:t}=function(){if(Ud)return $d;Ud=1;class e{constructor({id:e,controller:t,revoked:i}={}){this.id=e,this.controller=t,this.revoked=i}static async generate(){throw new Error("Abstract method, must be implemented in subclass.")}static async fromKeyDocument({document:e,checkContext:t=!0,checkRevoked:i=!0}={}){if(!e)throw new TypeError('The "document" parameter is required.');if(t&&![].concat(e["@context"]).includes(this.SUITE_CONTEXT))throw new Error('Key document does not contain required context "'+this.SUITE_CONTEXT+'".');if(i&&e.revoked)throw new Error(`Key has been revoked since: "${e.revoked}".`);return this.from(e)}static async from(){throw new Error("Abstract method from() must be implemented in subclass.")}export({publicKey:e=!1,privateKey:t=!1}={}){if(!e&&!t)throw new Error('Export requires specifying either "publicKey" or "privateKey".');const i={id:this.id,type:this.type,controller:this.controller};return this.revoked&&(i.revoked=this.revoked),i}fingerprint(){throw new Error("Abstract method, must be implemented in subclass.")}verifyFingerprint(){throw new Error("Abstract method, must be implemented in subclass.")}signer(){return{async sign({}){throw new Error("Abstract method, must be implemented in subclass.")}}}verifier(){return{async verify({}){throw new Error("Abstract method, must be implemented in subclass.")}}}}return e.SUITE_CONTEXT="INVALID LDKeyPair CONTEXT",$d={LDKeyPair:e}}();return Fd={CryptoLD:e,LDKeyPair:t}}(),Jd=ji(qd);const Wd={};
|
|
123
123
|
/*!
|
|
124
124
|
* Copyright (c) 2019-2022 Digital Bazaar, Inc. All rights reserved.
|
|
125
125
|
*/
|
|
126
126
|
const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function Gd(e,t){return function(e,t){if(!(e instanceof Uint8Array))throw new TypeError('"input" must be a Uint8Array.');if(0===e.length)return"";let i="",r=0;const n=t.length,o=t.charAt(0),a=[0];for(r=0;r<e.length;++r){let t=e[r];for(let e=0;e<a.length;++e)t+=a[e]<<8,a[e]=t%n,t=t/n|0;for(;t>0;)a.push(t%n),t=t/n|0}for(r=0;0===e[r]&&r<e.length-1;++r)i+=o;for(r=a.length-1;r>=0;--r)i+=t[a[r]];return i}(e,Yd)}function Zd(e){return function(e,t){if("string"!=typeof e)throw new TypeError('"input" must be a string.');if(0===e.length)return new Uint8Array;let i=Wd[t];if(!i){i=Wd[t]=[];for(let e=0;e<t.length;++e)i[t.charCodeAt(e)]=e}e=e.replace(/\s/g,"");const r=t.length,n=t.charAt(0),o=[0];for(let t=0;t<e.length;t++){const n=i[e.charCodeAt(t)];if(void 0===n)return;let a=n;for(let e=0;e<o.length;++e)a+=o[e]*r,o[e]=255&a,a>>=8;for(;a>0;)o.push(255&a),a>>=8}for(let t=0;e[t]===n&&t<e.length-1;++t)o.push(0);return new Uint8Array(o.reverse())}(e,Yd)}
|
|
127
127
|
/*!
|
|
128
128
|
* Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved.
|
|
129
|
-
*/const Xd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Qd=[62,-1,-1,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,63,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];function ef(e){if(!(e instanceof Uint8Array||"string"==typeof e))throw new TypeError('"input" be a string or Uint8Array.');"string"==typeof e&&(e=(new TextEncoder).encode(e));let t,i,r,n="",o=0;for(;o<e.byteLength;)t=e[o++],i=e[o++],r=e[o++],n+=Xd.charAt(t>>2),n+=Xd.charAt((3&t)<<4|i>>4),isNaN(i)||(n+=Xd.charAt((15&i)<<2|r>>6),isNaN(r)||(n+=Xd.charAt(63&r)));return n}function tf(e){let t=e.length;const i=t%4;if(1===i)throw new Error("Illegal base64 string.");let r=0;i>0&&(r=4-i,t+=r);const n=new Uint8Array(t/4*3-r);let o,a,s,c,l=0,u=0;for(;l<t;)o=Qd[e.charCodeAt(l++)-45],a=Qd[e.charCodeAt(l++)-45],n[u++]=o<<2|a>>4,l<e.length&&(s=Qd[e.charCodeAt(l++)-45],n[u++]=(15&a)<<4|s>>2,l<e.length&&(c=Qd[e.charCodeAt(l++)-45],n[u++]=(3&s)<<6|c));return n}const rf="EcdsaSecp256k1VerificationKey2019",nf=e=>Vd("sha256").update(e).digest();class of extends Jd.LDKeyPair{constructor({publicKeyBase58:e,privateKeyBase58:t,...i}){if(super(i),t&&!e){const e=zn(Zd(t));this.publicKeyBase58=Gd(e)}else this.publicKeyBase58=e;if(this.type=rf,this.privateKeyBase58=t,!this.publicKeyBase58)throw new TypeError('The "publicKeyBase58" property is required.')}static from(e){if(e.publicKeyHex||e.privateKeyHex){const{publicKeyHex:t,privateKeyHex:i,...r}=e;return new of({...r,publicKeyBase58:t?Gd(Xi.from(t,"hex")):void 0,privateKeyBase58:i?Gd(Xi.from(i,"hex")):void 0})}return new of(e)}static async generate({seed:e,compressed:t,...i}){if(e&&!oo(e))throw new Error("Provided seed is not a valid private key");let r=e;for(;void 0===r||!oo(r);)r=new Uint8Array(Kd(32));const n=zn(r,t);return new of({publicKeyBase58:Gd(n),privateKeyBase58:Gd(r),...i})}export({publicKey:e=!1,privateKey:t=!1,includeContext:i=!1}={}){if(!e&&!t)throw new TypeError('export requires specifying either "publicKey" or "privateKey".');if(t&&!this.privateKeyBase58)throw new TypeError("No privateKey to export.");if(e&&!this.publicKeyBase58)throw new TypeError("No publicKey to export.");const r={type:this.type,id:this.id,controller:this.controller,revoked:this.revoked};return i&&(r["@context"]=of.SUITE_CONTEXT),t&&(r.privateKeyBase58=this.privateKeyBase58),e&&(r.publicKeyBase58=this.publicKeyBase58),r}signer(){const{privateKeyBase58:e}=this;return e?{async sign({data:t}){const i=Kr.encode(JSON.stringify({alg:"ES256K",b64:!1,crit:["b64"]})),r=Xi.from(t.buffer,t.byteOffset,t.length),n=nf(Xi.from(Xi.concat([Xi.from(`${i}.`,"utf8"),Xi.from(r.buffer,r.byteOffset,r.length)]))),o=await no(n,Zd(e),{prehash:!1});return`${i}..${Kr.encode(Xi.from(o))}`},id:this.id}:{async sign(){throw new Error("No private key to sign with.")},id:this.id}}verifier(){const{publicKeyBase58:e}=this;return e?{async verify({data:t,signature:i}){if(i.indexOf("..")<0)return!1;const[r,n]=i.split(".."),o=JSON.parse(Kr.decode(r));if("ES256K"!==o.alg||!1!==o.b64||!o.crit||!o.crit.length||"b64"!==o.crit[0])return!1;const a=Xi.from(t.buffer,t.byteOffset,t.length),s=nf(Xi.from(Xi.concat([Xi.from(`${r}.`,"utf8"),Xi.from(a.buffer,a.byteOffset,a.length)])));let c;try{c=((e,t,i,r={})=>(r=ro(r),t=Zn(t,r,!1),io(e,t,i,r)))(Xi.from(Kr.decode(n,"hex"),"hex"),s,Zd(e),{prehash:!1})}catch(e){console.error(e),c=!1}return c},id:this.id}:{async verify(){throw new Error("No public key to verify against")},id:this.id}}}of.suite=rf,of.SUITE_CONTEXT="https://ns.did.ai/suites/secp256k1-2019/v1";const af="P-256",sf="P-384",cf="P-521",lf="K-256";function uf({curve:e}){if(e===af||e===lf||"secp256k1"===e)return 32;if(e===sf)return 48;if(e===cf)return 66;throw new TypeError(`Unsupported curve "${e}".`)}function df({jwk:e}={}){if("EC"!==e?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:t}=e,i=uf({curve:t}),r=tf(e.d),n=new Uint8Array(i);return n.set(r,n.length-r.length),n}function ff(e,t=null){let i=e.toString(16);i.length%2&&(i=`0${i}`);let r=Uint8Array.from(i.match(/.{2}/g).map(e=>parseInt(e,16)));if(null!==t){if(r.length>t)throw new Error("BigInt too large");const e=new Uint8Array(t);e.set(r,t-r.length),r=e}return r}const hf={publicKeyBase58:e=>Xi.from(Zd(e)).toString("hex"),publicKeyJWK:e=>Xi.from(function({jwk:e}={}){if("EC"!==e?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:t}=e,i=uf({curve:t}),r=tf(e.x),n=tf(e.y),o=new Uint8Array(i+1),a=n[n.length-1]%2==0;return o[0]=a?2:3,o.set(r,o.length-r.length),o}({jwk:e})).toString("hex"),publicKeyUint8Array:e=>Xi.from(e).toString("hex"),privateKeyHex:e=>Xi.from(zn(new Uint8Array(Xi.from(e,"hex")))).toString("hex")},pf={privateKeyBase58:e=>Xi.from(Zd(e)).toString("hex"),privateKeyJWK:e=>Xi.from(df({jwk:e})).toString("hex"),privateKeyUint8Array:e=>Xi.from(e).toString("hex")},gf={publicKeyBase58:e=>Zd(e),publicKeyHex:e=>Uint8Array.from(Xi.from(e,"hex")),publicKeyJWK:e=>{let t=Xi.from(hf.publicKeyJWK(e),"hex"),i=32-t.length;for(;i>0;)t=Xi.concat([Xi.from("00","hex"),t]),i-=1;return Uint8Array.from(t)},privateKeyUint8Array:e=>zn(e)},bf={privateKeyBase58:e=>Zd(e),privateKeyHex:e=>Uint8Array.from(Xi.from(e,"hex")),privateKeyJWK:e=>{let t=Xi.from(pf.privateKeyJWK(e),"hex"),i=32-t.length;for(;i>0;)t=Xi.concat([Xi.from("00","hex"),t]),i-=1;return Uint8Array.from(t)}},mf={publicKeyBase58:(e,t)=>mf.publicKeyHex(Xi.from(Zd(e)).toString("hex"),t),publicKeyHex:(e,t)=>{let i;if(66===e.length){const t=Ln.fromHex(e);i={x:ff(t.x),y:ff(t.y)}}else i={x:Xi.from(e.slice(2,e.length/2+1),"hex"),y:Xi.from(e.slice(e.length/2+1),"hex")};return{...{x:ef(i.x),y:ef(i.y)},crv:"secp256k1",kty:"EC",kid:t}},publicKeyUint8Array:(e,t)=>mf.publicKeyHex(Xi.from(e).toString("hex"),t),privateKeyJWK:e=>{const{d:t,...i}=e;return i}},yf={privateKeyBase58:(e,t)=>yf.privateKeyHex(Xi.from(Zd(e)).toString("hex"),t),privateKeyHex:(e,t)=>{const i=Xi.from(e,"hex"),r=zn(i,!1);return{...mf.publicKeyHex(Xi.from(r).toString("hex"),t),d:ef(i)}},privateKeyUint8Array:(e,t)=>yf.privateKeyHex(pf.privateKeyUint8Array(e),t)};var vf=Object.freeze({__proto__:null,toSecretKeyBytes:df,publicKeyHexFrom:hf,privateKeyHexFrom:pf,publicKeyUint8ArrayFrom:gf,privateKeyUint8ArrayFrom:bf,publicKeyJWKFrom:mf,privateKeyJWKFrom:yf});var wf=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let e=0;e<t.length;e++)t[e]=255;for(let i=0;i<e.length;i++){const r=e.charAt(i),n=r.charCodeAt(0);if(255!==t[n])throw new TypeError(r+" is ambiguous");t[n]=i}const i=e.length,r=e.charAt(0),n=Math.log(i)/Math.log(256),o=Math.log(256)/Math.log(i);function a(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;let o=0,a=0,s=0;for(;e[o]===r;)a++,o++;const c=(e.length-o)*n+1>>>0,l=new Uint8Array(c);for(;o<e.length;){const r=e.charCodeAt(o);if(r>255)return;let n=t[r];if(255===n)return;let a=0;for(let e=c-1;(0!==n||a<s)&&-1!==e;e--,a++)n+=i*l[e]>>>0,l[e]=n%256>>>0,n=n/256>>>0;if(0!==n)throw new Error("Non-zero carry");s=a,o++}let u=c-s;for(;u!==c&&0===l[u];)u++;const d=new Uint8Array(a+(c-u));let f=a;for(;u!==c;)d[f++]=l[u++];return d}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";let n=0,a=0,s=0;const c=t.length;for(;s!==c&&0===t[s];)s++,n++;const l=(c-s)*o+1>>>0,u=new Uint8Array(l);for(;s!==c;){let e=t[s],r=0;for(let t=l-1;(0!==e||r<a)&&-1!==t;t--,r++)e+=256*u[t]>>>0,u[t]=e%i>>>0,e=e/i>>>0;if(0!==e)throw new Error("Non-zero carry");a=r,s++}let d=l-a;for(;d!==l&&0===u[d];)d++;let f=r.repeat(n);for(;d<l;++d)f+=e.charAt(u[d]);return f},decodeUnsafe:a,decode:function(e){const t=a(e);if(t)return t;throw new Error("Non-base"+i+" character")}}}("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");const xf="undefined"==typeof Buffer?Xi:Buffer,_f="P-256",kf="P-384",Sf="P-521",Pf="K-256";function Cf({jwk:e}={}){if("EC"!==e?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:t}=e,i=function({curve:e}){if(e===_f||e===Pf||"secp256k1"===e)return 32;if(e===kf)return 48;if(e===Sf)return 66;throw new TypeError(`Unsupported curve "${e}".`)}({curve:t}),r=tf(e.x),n=tf(e.y),o=new Uint8Array(i+1),a=n[n.length-1]%2==0;return o[0]=a?2:3,o.set(r,o.length-r.length),o}const Ef=e=>xf.from(Cf({jwk:e})).toString("hex"),If=e=>wf.encode(xf.from(e,"hex"));const Tf=e=>{const t=new Uint8Array([237,1]),i=function(e){const{kty:t,crv:i,x:r}=e;if("OKP"!==t)throw new TypeError('"jwk.kty" must be "OKP".');if("Ed25519"!==i)throw new TypeError('"jwk.crv" must be "Ed25519".');if("string"!=typeof r)throw new TypeError('"jwk.x" must be a string.');const n=tf(e.x);if(32!==n.length)throw new Error(`Invalid public key size (${n.length}); expected 32.`);return n}(e),r=new Uint8Array(t.length+i.length);r.set(t),r.set(i,t.length);var n;return`z${n=r,wf.encode(n)}`};function Lf(e){return Uint8Array.from(wf.decode(e.slice(1)).slice(2))}var Af;function Mf({keyId:e,did:t,keyType:i,jwk:r}){return{"@context":["https://www.w3.org/ns/did/v1"],verificationMethod:[{id:e,type:i,controller:t,publicKeyJwk:r}],id:t,authentication:[e],assertionMethod:[e],capabilityDelegation:[e],capabilityInvocation:[e],keyAgreement:[e]}}async function jf(e){const t=e.substring(8),i=Lf(t);return Mf({keyId:e+"#"+t,did:e,jwk:vf.publicKeyJWKFrom.publicKeyUint8Array(i,""),keyType:"EcdsaVerificationKey2019"})}async function Df(e){const t=await import("./index-DjD0A6uJ-BdFUkPCF.js").then(function(e){return e.i}),i=e.substring(8),r=Lf(i);return Mf({keyId:e+"#"+i,did:e,jwk:await t.toJwk({keyPair:{publicKey:r}}),keyType:"JsonWebKey2020"})}!function(e){e.ED25519="ed25519",e.SECP256K1="secp256k1"}(Af||(Af={}));const Rf={"did:key:z6Mk":Af.ED25519,"did:key:zQ3s":Af.SECP256K1};async function Of(e){const t=e.substring(0,12);if(Rf[t]){const i=await async function(e){if(e===Af.ED25519)return{resolve:async e=>({didDocument:await Df(e)})};if(e===Af.SECP256K1)return{resolve:async e=>({didDocument:await jf(e)})};throw new Error("Error loading did key resolver")}(Rf[t]),{didDocument:r}=await i.resolve(e);return r}throw new Error("Unsupported did:key suite")}var Vf,Nf={...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=Ti.url){if(Ai(e)){return await Of(e)}const i=await nt({url:`${t}/${e}`});return JSON.parse(i).didDocument},resolveDidKeyDocument:Of}),didResolver:Ti};!function(e){e.DEFAULT="standby",e.FAILURE="failure",e.STARTING="starting",e.SUCCESS="success"}(Vf||(Vf={}));class zf{code;label;labelPending;parentStep;status;constructor(e,t){this.code=t,this.label=wi("subSteps",`${t}Label`),this.labelPending=wi("subSteps",`${t}LabelPending`),this.parentStep=e,this.status=Vf.DEFAULT}}const Bf=vi[yi.locale];var $f,Uf;!function(e){e.formatValidation="formatValidation",e.proofVerification="proofVerification",e.identityVerification="identityVerification",e.statusCheck="statusCheck",e.final="final"}($f||($f={})),function(e){e.checkImagesIntegrity="checkImagesIntegrity",e.checkRevokedStatus="checkRevokedStatus",e.checkExpiresDate="checkExpiresDate",e.controlVerificationMethod="controlVerificationMethod",e.verifyIssuerProfile="verifyIssuerProfile",e.ensureValidityPeriodStarted="ensureValidityPeriodStarted",e.checkCredentialSchemaConformity="checkCredentialSchemaConformity",e.validateDateFormat="validateDateFormat"}(Uf||(Uf={}));const Ff={[$f.formatValidation]:[Uf.checkImagesIntegrity,Uf.checkCredentialSchemaConformity,Uf.validateDateFormat],[$f.proofVerification]:[],[$f.identityVerification]:[Uf.verifyIssuerProfile,Uf.controlVerificationMethod],[$f.statusCheck]:[Uf.checkRevokedStatus,Uf.ensureValidityPeriodStarted,Uf.checkExpiresDate]};function Hf(){return{[$f.formatValidation]:{code:$f.formatValidation,label:Bf.steps.formatValidationLabel,labelPending:Bf.steps.formatValidationLabelPending,subSteps:[]},[$f.proofVerification]:{code:$f.proofVerification,label:Bf.steps.signatureVerificationLabel,labelPending:Bf.steps.signatureVerificationLabelPending,subSteps:[]},[$f.identityVerification]:{code:$f.identityVerification,label:Bf.steps.identityVerificationLabel,labelPending:Bf.steps.identityVerificationLabelPending,subSteps:[]},[$f.statusCheck]:{code:$f.statusCheck,label:Bf.steps.statusCheckLabel,labelPending:Bf.steps.statusCheckLabelPending,subSteps:[]}}}var Kf=Object.freeze({__proto__:null,get SUB_STEPS(){return Uf},get VerificationSteps(){return $f},default:Hf,final:"final",verificationMap:Ff});function qf(e){try{const t=new URL(e);return!t.pathname.includes(" ")&&!t.hostname.includes(" ")&&e.includes(":")}catch{return!1}}function Jf(e=[],t=[]){return e.filter(e=>t.includes(e)).filter((e,t,i)=>i.indexOf(e)===t)}function Wf(e,t){const i=e.findIndex(e=>e===t);i>-1&&e.splice(i,1)}function Yf(e,t){return Ff[e].filter(e=>t.includes(e)).map(t=>uh.verifier.convertToVerificationSubsteps(e,t))}function Gf(e){const t=Hf();return Object.keys(t).map(i=>({...t[i],subSteps:Yf(i,e)}))}const Zf=/-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$/;function Xf(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=Zf.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 Qf(e){return""===e?0:Xf(`${e}`).getTime()}function eh(e){return Zf.test(e)}function th(e,t=null){const i=e.created?Qf(e.created):null,r=e.revoked?Qf(e.revoked):null,n=e.expires?Qf(e.expires):null;let o=t;if(!t){o=(e.id||e.publicKey).replace("ecdsa-koblitz-pubkey:","")}return new Si(o,i,r,n)}function ih(e){if(Array.isArray(e)){return e.find(e=>"ChainedProof2021"!==e.type).verificationMethod}return e.verificationMethod}function rh(e){return e.type.includes("VerifiablePresentation")}function nh(e){return e.includes(Ot)}function oh(e){return e.includes(Vt)}function ah(e,t){let i=`${t} must be a valid RFC3339 string.`;if("string"!=typeof e)throw i+=`${t}: ${e} is not a string`,new Error(i);if(!function(e){return/^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$/.test(e)}(e))throw i+=` Received: \`${e}\``,new Error(i)}function sh(e){if("object"!=typeof e)throw new Error("`credentialSubject` must be an object");if(Array.isArray(e)&&0===e.length)throw new Error("`credentialSubject` cannot be an empty array");Array.isArray(e)&&e.forEach(e=>{sh(e)})}function ch(e,t){(Array.isArray(e)?e:[e]).forEach(e=>{if(!e.id)throw new Error(`${t}.id must be defined`);if(function(e,t=""){if(!qf(e))throw new Error(`Invalid URL: ${e}. ${t?`Property: ${t}`:""}`)}(e.id,`${t}.id`),!e.type)throw new Error(`${t}.type must be defined`)})}var lh=Object.freeze({__proto__:null,convertToVerificationSubsteps:function(e,t){return new zf(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}}},getDatesToValidate:function(e){const t=[];e.validFrom&&t.push({property:"validFrom",dateTimeStamp:e.validFrom}),e.validUntil&&t.push({property:"validUntil",dateTimeStamp:e.validUntil});const i=Array.isArray(e.proof)?e.proof:[e.proof];for(const e of i)e.created&&t.push({property:`proof ${e.cryptosuite??e.type} created`,dateTimeStamp:e.created});return t},getIssuerProfile:async function e(t){const i=wi("errors","getIssuerProfile");if(!t)throw new Ci("getIssuerProfile",`${i} - ${wi("errors","issuerProfileNotSet")}`);let r;if("object"==typeof t&&(t=t.id),Li(t))try{const i=await uh.did.resolve(t);if(Ai(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=uh.did.getIssuerProfileUrl(i);t&&(r=await e(t))}return{didDocument:i,...r}}catch(e){throw console.error(e),new Ci("getIssuerProfile",`${i} - ${e}`)}else if(!/^(ftp|http|https):\/\/[^ "]+$/.test(t))throw new Ci("getIssuerProfile",`${i} - ${wi("errors","issuerProfileNotSet")}`);if(r=JSON.parse(await nt({url:t}).catch(e=>{throw console.error(e),new Ci("getIssuerProfile",i)})),!function(e){const t=["issuer","profile","blockcertsissuerprofile"],{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 Ci("getIssuerProfile",`${i} - ${wi("errors","issuerProfileInvalid")}`);return r},getRevokedAssertions:async function(e,t){if(!e)return[];const i=wi("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 nt({url:e});return JSON.parse(t).revokedAssertions??[]}catch(e){throw console.error(e),new Ci(Uf.checkRevokedStatus,i)}},getVerificationMap:function(e={}){const t=function({hasDid:e=!1,hasHashlinks:t=!1,hasValidFrom:i=!1,hasCredentialSchema:r=!1,isVCV2:n=!1,isVerifiablePresentation:o=!1,isIssuerProfileSigned:a=!1}){const s=JSON.parse(JSON.stringify(Ff));return e||Wf(s[$f.identityVerification],Uf.controlVerificationMethod),t||Wf(s[$f.formatValidation],Uf.checkImagesIntegrity),i&&!o||Wf(s[$f.statusCheck],Uf.ensureValidityPeriodStarted),r||Wf(s[$f.formatValidation],Uf.checkCredentialSchemaConformity),n||Wf(s[$f.formatValidation],Uf.validateDateFormat),a||Wf(s[$f.identityVerification],Uf.verifyIssuerProfile),Object.keys(s).map(e=>s[e]).flat()}(e);return{verificationProcess:t,verificationMap:Gf(t)}},lookForTx:jt,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=th(i[e]);t[r.publicKey]=r}}else{const i=th({},(e.issuerKeys??[])[0].key);t[i.publicKey]=i}return t}catch(e){throw console.error(e),new Ci("parseIssuerKeys",wi("errors","parseIssuerKeys"))}},parseRevocationKey:function(e){return e&&Object.prototype.hasOwnProperty.call(e,"revocationKeys")&&e.revocationKeys.length>0?e.revocationKeys[0].key:""},validateVerifiableCredential:function e(t){if(rh(t))return void(t.verifiableCredential&&t.verifiableCredential.forEach(t=>{e(t)}));if(!t.credentialSubject)throw new Error("`credentialSubject` must be defined");if(sh(t.credentialSubject),function(e){if(!Array.isArray(e))throw new Error("`type` property must be an array");const t=["VerifiableCredential","VerifiablePresentation"].filter(t=>e.includes(t));if(0===e.length||0===t.length)throw new Error("`type` property must include `VerifiableCredential` or `VerifiablePresentation`")}(t.type),function(e,t){const i=[Ot,Vt];if(!Array.isArray(e))throw new Error("`@context` property must be an array");if(!i.includes(e[0]))throw new Error(`First @context must be one of ${i.join(", ")}, given ${e[0]}`);if(nh(e)&&oh(e))throw new Error("Cannot have both v1 and v2 Verifiable Credential contexts");if(t.length>1&&1===e.length)throw new Error(`More specific type: ${t[1]} was detected but no additional context provided`)}(t["@context"],t.type),function(e){let t=!1;if((null==e||"string"==typeof e&&!qf(e)||"object"==typeof e&&!qf(e.id)||Array.isArray(e))&&(t=!0),t)throw new Error("`issuer` must be a URL string or an object with an `id` URL string")}(t.issuer),nh(t["@context"])&&(t.issuanceDate&&ah(t.issuanceDate,"issuanceDate"),t.expirationDate&&ah(t.expirationDate,"expirationDate")),oh(t["@context"])&&(t.validFrom&&ah(t.validFrom,"validFrom"),t.validUntil&&ah(t.validUntil,"validUntil")),t.credentialStatus&&ch(t.credentialStatus,"credentialStatus"),t.credentialSchema&&ch(t.credentialSchema,"credentialSchema"),t.termsOfUse&&ch(t.termsOfUse,"termsOfUse"),t.evidence&&ch(t.evidence,"evidence"),t.refreshService&&ch(t.refreshService,"refreshService"),!t.proof)throw new Error("`proof` must be defined");let{proof:i}=t;Array.isArray(i)||(i=[i]),i.forEach(e=>{!function(e){if(!e.created)throw new Error("`proof.created` must be defined");if(!e.proofPurpose)throw new Error("`proof.proofPurpose` must be defined")}(e)})}}),uh={addresses:mi,certificates:Ei,chains:Ii,did:Nf,i18n:ki,verifier:lh};function dh(e,t,i){return void 0===t?"":"string"==typeof t?t:(Array.isArray(t)||(t=[t]),t.find(e=>e["@language"]===i)?.[e]??t.find(e=>e["@language"]?.split("-")[0]===i.split("-")[0])?.[e]??t[0][e])}function fh(e){let t=e;return Array.isArray(e)&&(t=e[0]),t}function hh(e){"string"==typeof e&&(e=[e]);const t=(i=function(e){return e.filter(He)}(e),i.find(e=>e.toLowerCase().indexOf("blockcerts")>0));var i;if(!t)return{version:Ye.V3_0,versionNumber:3};const r=t.split("/").filter(e=>""!==e),n=Object.keys(ph),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=Ye.V1_2;break;case 2:a=Ye.V2_0;break;case 3:if(t.includes("-alpha")){a=Ye.V3_0_alpha;break}if(t.includes("-beta")){a=Ye.V3_0_beta;break}a=Ye.V3_0}return{versionNumber:o,version:a}}const ph={1:function(){throw new Ci("","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,l=e.recipientProfile??e.recipient.recipientProfile,u=e.issuedOn,d=e.metadataJson,f=l.name,h=function(e){const t=[];for(const i in e){const r=e[i],n=new Pi(r.image,r.jobTitle,r.name);t.push(n)}return t}(r.signatureLines),p=await uh.verifier.getIssuerProfile(c);return{certificateImage:n,description:a,expires:i,id:t,issuedOn:u,issuer:p,metadataJson:d,name:o,recipientFullName:f,recordLink:t,revocationKey:null,sealImage:p.image,signatureImage:h,subtitle:s}},3:async function(e,t){const{metadataJson:i,metadata:r,issuanceDate:n,id:o,expirationDate:a,display:s,validUntil:c,proof:l,name:u,description:d,credentialSubject:f}=e;let{issuer:h}=e;try{uh.verifier.validateVerifiableCredential(e)}catch(e){throw console.error("Error validating the Verifiable Credential format: ",e.message),new Error(`Document presented is not a valid Verifiable Credential: ${e.message}`)}let{validFrom:p}=e;const g=r??i;if(rh(e)){const e=fh(l);h=e.verificationMethod?.split("#")[0]}const b=await uh.verifier.getIssuerProfile(h);if(!p){p=fh(l).created}return{display:s,expires:a??c,validFrom:p,issuedOn:n??p,id:o,issuer:b,name:dh("@value",u,t),description:dh("@value",d,t),metadataJson:g,recipientFullName:dh("name",f,t),recordLink:o}}};function gh(e){return 2===function(e){"string"==typeof e&&(e=[e]);const t=[Ot,Vt],i=e.filter(He).find(e=>t.includes(e));let r=-1;i?.includes("v1")&&(r=1);i?.includes("v2")&&(r=2);return{versionNumber:r}}(e).versionNumber}function bh(e){return(e=e.replace(/-./g,e=>e[1].toUpperCase())).charAt(0).toUpperCase()+e.slice(1)}var mh;!function(e){e.MerkleProof2017="MerkleProof2017",e.MerkleProof2019="MerkleProof2019",e.Ed25519Signature2020="Ed25519Signature2020",e.EcdsaSecp256k1Signature2019="EcdsaSecp256k1Signature2019",e.EcdsaSd2023="EcdsaSd2023",e.EddsaRdfc2022="EddsaRdfc2022"}(mh||(mh={}));class yh{expires;validFrom;id;issuer;revocationKey;documentToVerify;explorerAPIs;txData;_stepsStatuses=[];hashlinkVerifier;verificationSteps;supportedVerificationSuites={[mh.MerkleProof2017]:null,[mh.MerkleProof2019]:null,[mh.Ed25519Signature2020]:null,[mh.EcdsaSecp256k1Signature2019]:null,[mh.EcdsaSd2023]:null,[mh.EddsaRdfc2022]:null};proofVerifiers=[];verificationProcess;proofMap;proofPurpose;proofDomain;proofChallenge;constructor({certificateJson:e,expires:t,hashlinkVerifier:i,id:r,issuer:n,revocationKey:o,explorerAPIs:a,validFrom:s,proofPurpose:c,proofDomain:l,proofChallenge:u}){this.expires=t,this.validFrom=s,this.id=r,this.issuer=n,this.hashlinkVerifier=i,this.revocationKey=o,this.explorerAPIs=a,this.proofPurpose=c,this.proofDomain=l,this.proofChallenge=u,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===Vf.FAILURE);return t?this._failed(t):this._succeed()}convertCryptosuiteToType(e){return bh(e)}getRevocationListUrl(){return this.issuer.revocationList}getProofTypes(){const e=[];return this.proofMap.forEach(t=>{let{type:i}=t;"ChainedProof2021"===i&&(i=t.chainedProofType),"DataIntegrityProof"===i&&(i=this.convertCryptosuiteToType(t.cryptosuite)),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,proofPurpose:this.proofPurpose,proofDomain:this.proofDomain,proofChallenge:this.proofChallenge};this.proofVerifiers.push(new this.supportedVerificationSuites[e[i]](r))});for(const e of this.proofVerifiers)await e.init()}async loadRequiredVerificationSuites(e){if(e.includes(mh.MerkleProof2017)){const{default:e}=await import("./MerkleProof2017-C0RhRNNx-zjQMRSQY.js");this.supportedVerificationSuites.MerkleProof2017=e}if(e.includes(mh.MerkleProof2019)){const{default:e}=await import("./MerkleProof2019-B7f1hhem-CjLDyx6Q.js");this.supportedVerificationSuites.MerkleProof2019=e}if(e.includes(mh.Ed25519Signature2020)){const{default:e}=await import("./Ed25519Signature2020-fJGvlbIp-B6XhFwr4.js");this.supportedVerificationSuites.Ed25519Signature2020=e}if(e.includes(mh.EcdsaSecp256k1Signature2019)){const{default:e}=await import("./EcdsaSecp256k1Signature2019-D90cAynb-Bf5kILPF.js");this.supportedVerificationSuites.EcdsaSecp256k1Signature2019=e}if(e.includes(mh.EcdsaSd2023)){const{default:e}=await import("./EcdsaSd2023-CUjrjGzC-Cx7ejHu-.js");this.supportedVerificationSuites.EcdsaSd2023=e}if(e.includes(mh.EddsaRdfc2022)){const{default:e}=await import("./EddsaRdfc2022-XufziFi3-D5IoKiRE.js");this.supportedVerificationSuites.EddsaRdfc2022=e}}prepareVerificationProcess(){const e=uh.verifier.getVerificationMap({hasDid:!!this.issuer.didDocument,hasHashlinks:this.hashlinkVerifier?.hasHashlinksToVerify()??!1,hasValidFrom:!!this.validFrom,hasCredentialSchema:!!this.documentToVerify.credentialSchema,isVCV2:gh(this.documentToVerify["@context"]),isVerifiablePresentation:rh(this.documentToVerify),isIssuerProfileSigned:!!this.issuer.proof});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=$f.proofVerification;this.verificationSteps.find(t=>t.code===e).suites=this.getSuiteSubsteps(e)}getSuiteSubsteps(e){const t={[$f.proofVerification]:"getProofVerificationSteps",[$f.identityVerification]:"getIdentityVerificationSteps"};return this.proofVerifiers.map(i=>({proofType:i.type,subSteps:i[t[e]](e)}))}registerIdentityVerificationSteps(){const e=$f.identityVerification;this.verificationSteps.find(t=>t.code===e).suites=this.getSuiteSubsteps(e)}async executeStep(e,t,i){if(!this._isFailing()){e&&this._updateStatusCallback(e,Vf.STARTING,i);try{const r=await t();return e&&(this._updateStatusCallback(e,Vf.SUCCESS,i),this._stepsStatuses.push({code:e,status:Vf.SUCCESS})),r}catch(t){console.error(t),e&&(this._updateStatusCallback(e,Vf.FAILURE,i,t.message),this._stepsStatuses.push({code:e,message:t.message,status:Vf.FAILURE}))}}}_stepCallback(e){}async checkImagesIntegrity(){await this.executeStep(Uf.checkImagesIntegrity,async()=>{await this.hashlinkVerifier.verifyHashlinkTable().catch(e=>{throw console.error("hashlink verification error",e),new Ci(Uf.checkImagesIntegrity,wi("errors","checkImagesIntegrity"))})})}async checkRevokedStatus(){if(this.documentToVerify.credentialStatus){const{default:e}=await import("./checkRevocationStatusList2021-D4VNDRlW-DgNfOAoI.js");return void await this.executeStep(Uf.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(Uf.checkRevokedStatus,()=>!0);const t=await this.executeStep(null,async()=>await uh.verifier.getRevokedAssertions(e,this.id)),{default:i}=await import("./ensureNotRevoked-ByWaYoog-BheL-ZKZ.js");await this.executeStep(Uf.checkRevokedStatus,()=>{i(t,this.id)})}async checkExpiresDate(){await this.executeStep(Uf.checkExpiresDate,()=>{!function(e=null){if(!e)return;const t=Qf(e);if((new Date).getTime()>=t)throw new Ci(Uf.checkExpiresDate,`${wi("errors","ensureNotExpired")}${uh.i18n.getDateFormat(e)}`)}(this.expires)})}async ensureValidityPeriodStarted(){await this.executeStep(Uf.ensureValidityPeriodStarted,()=>{!function(e=null){if(!e)return;if(Qf(e)>(new Date).getTime())throw new Ci(Uf.ensureValidityPeriodStarted,wi("errors","ensureValidityPeriodStarted"))}(this.validFrom)})}async validateDateFormat(){await this.executeStep(Uf.validateDateFormat,()=>{!function(e){for(const{dateTimeStamp:t,property:i}of e)if(!eh(t))throw console.error("Date",t,"is not valid:",i),new Ci(Uf.validateDateFormat,`${wi("errors","validateDateFormat")} ${i}`)}(uh.verifier.getDatesToValidate(this.documentToVerify))})}async checkCredentialSchemaConformity(){const{default:e}=await import("./checkCredentialSchemaConformity-CgpOS3eC-AjSPoJub.js");await this.executeStep(Uf.checkCredentialSchemaConformity,async()=>{await e(this.documentToVerify.credentialSubject,this.documentToVerify.credentialSchema)})}async controlVerificationMethod(){if(!this.issuer.didDocument)return;const{default:e}=await import("./controlVerificationMethod-CSwPoUL8-CvUADmjg.js");await this.executeStep(Uf.controlVerificationMethod,()=>{e(this.issuer.didDocument,ih(this.documentToVerify.proof))})}async verifyIssuerProfile(){if(!this.issuer.proof)return;const{default:e}=await import("./verifyIssuerProfile-2PhdMtQZ-CfqcAkBL.js");await this.executeStep(Uf.verifyIssuerProfile,async()=>{await e(this.issuer)})}findStepFromVerificationProcess(e,t){return uh.verifier.findVerificationSubstep(e,this.verificationSteps,t)}_failed(e){const{message:t}=e;return this._setFinalStep({status:Vf.FAILURE,message:t})}_isFailing(){return this._stepsStatuses.some(e=>e.status===Vf.FAILURE)}_succeed(){let e;return 1===this.proofVerifiers.length&&(e=this.proofVerifiers[0].type.includes("MerkleProof")?uh.chains.isMockChain(this.proofVerifiers[0].getChain())?uh.i18n.getComposedText("success","mocknet"):uh.i18n.getComposedText("success","blockchain"):{...uh.i18n.getComposedText("success","generic"),description:uh.i18n.getComposedText("success","generic").description.replace("${SIGNATURE_TYPE}",this.proofVerifiers[0].type)}),this.proofVerifiers.length>1&&(e=uh.i18n.getComposedText("success","multisign")),this._setFinalStep({status:Vf.SUCCESS,message:e})}_setFinalStep({status:e,message:t}){return{code:$f.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 vh,wh={exports:{}};var xh,_h=(vh||(vh=1,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]",l="[object Map]",u="[object Number]",d="[object Object]",f="[object Promise]",h="[object RegExp]",p="[object Set]",g="[object String]",b="[object Symbol]",m="[object WeakMap]",y="[object ArrayBuffer]",v="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",_="[object Int8Array]",k="[object Int16Array]",S="[object Int32Array]",P="[object Uint8Array]",C="[object Uint8ClampedArray]",E="[object Uint16Array]",I="[object Uint32Array]",T=/\w*$/,L=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,M={};M[n]=M["[object Array]"]=M[y]=M[v]=M[o]=M[a]=M[w]=M[x]=M[_]=M[k]=M[S]=M[l]=M[u]=M[d]=M[h]=M[p]=M[g]=M[b]=M[P]=M[C]=M[E]=M[I]=!0,M["[object Error]"]=M[s]=M[m]=!1;var j="object"==typeof Mi&&Mi&&Mi.Object===Object&&Mi,D="object"==typeof self&&self&&self.Object===Object&&self,R=j||D||Function("return this")(),O=t&&!t.nodeType&&t,V=O&&e&&!e.nodeType&&e,N=V&&V.exports===O;function z(e,t){return e.set(t[0],t[1]),e}function B(e,t){return e.add(t),e}function $(e,t,i,r){for(var n=-1,o=e?e.length:0;++n<o;)i=t(i,e[n],n,e);return i}function U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function F(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 K(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var q,J=Array.prototype,W=Function.prototype,Y=Object.prototype,G=R["__core-js_shared__"],Z=(q=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",X=W.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+X.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=N?R.Buffer:void 0,re=R.Symbol,ne=R.Uint8Array,oe=H(Object.getPrototypeOf,Object),ae=Object.create,se=Y.propertyIsEnumerable,ce=J.splice,le=Object.getOwnPropertySymbols,ue=ie?ie.isBuffer:void 0,de=H(Object.keys,Object),fe=Ve(R,"DataView"),he=Ve(R,"Map"),pe=Ve(R,"Promise"),ge=Ve(R,"Set"),be=Ve(R,"WeakMap"),me=Ve(Object,"create"),ye=Ue(fe),ve=Ue(he),we=Ue(pe),xe=Ue(ge),_e=Ue(be),ke=re?re.prototype:void 0,Se=ke?ke.valueOf:void 0;function Pe(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 Ce(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 Ie(e){this.__data__=new Ce(e)}function Te(e,t){var i=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ke(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)!Q.call(e,a)||o&&("length"==a||Be(a,r))||i.push(a);return i}function Le(e,t,i){var r=e[t];Q.call(e,t)&&Fe(r,i)&&(void 0!==i||t in e)||(e[t]=i)}function Ae(e,t){for(var i=e.length;i--;)if(Fe(e[i][0],t))return i;return-1}function Me(e,t,i,r,f,m,L){var A;if(r&&(A=m?r(e,f,m,L):r(e)),void 0!==A)return A;if(!We(e))return e;var j=He(e);if(j){if(A=function(e){var t=e.length,i=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(e),!t)return function(e,t){var i=-1,r=e.length;for(t||(t=Array(r));++i<r;)t[i]=e[i];return t}(e,A)}else{var D=ze(e),R=D==s||D==c;if(qe(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(D==d||D==n||R&&!m){if(U(e))return m?e:{};if(A=function(e){return"function"!=typeof e.constructor||$e(e)?{}:We(t=oe(e))?ae(t):{};var t}(R?{}:e),!t)return function(e,t){return Re(e,Ne(e),t)}(e,function(e,t){return e&&Re(t,Ye(t),e)}(A,e))}else{if(!M[D])return m?e:{};A=function(e,t,i,r){var n,s=e.constructor;switch(t){case y:return De(e);case o:case a:return new s(+e);case v:return function(e,t){var i=t?De(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,r);case w:case x:case _:case k:case S:case P:case C:case E:case I:return function(e,t){var i=t?De(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}(e,r);case l:return function(e,t,i){var r=t?i(F(e),!0):F(e);return $(r,z,new e.constructor)}(e,r,i);case u:case g:return new s(e);case h:return function(e){var t=new e.constructor(e.source,T.exec(e));return t.lastIndex=e.lastIndex,t}(e);case p:return function(e,t,i){var r=t?i(K(e),!0):K(e);return $(r,B,new e.constructor)}(e,r,i);case b:return n=e,Se?Object(Se.call(n)):{}}}(e,D,Me,t)}}L||(L=new Ie);var O=L.get(e);if(O)return O;if(L.set(e,A),!j)var V=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,Ne)}(e):Ye(e);return function(e,t){for(var i=-1,r=e?e.length:0;++i<r&&!1!==t(e[i],i,e););}(V||e,function(n,o){V&&(n=e[o=n]),Le(A,o,Me(n,t,i,r,o,e,L))}),A}function je(e){return!(!We(e)||(t=e,Z&&Z in t))&&(Je(e)||U(e)?te:L).test(Ue(e));var t}function De(e){var t=new e.constructor(e.byteLength);return new ne(t).set(new ne(e)),t}function Re(e,t,i,r){i||(i={});for(var n=-1,o=t.length;++n<o;){var a=t[n];Le(i,a,e[a])}return i}function Oe(e,t){var i=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?i["string"==typeof t?"string":"hash"]:i.map}function Ve(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return je(i)?i:void 0}Pe.prototype.clear=function(){this.__data__=me?me(null):{}},Pe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Pe.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},Pe.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Q.call(t,e)},Pe.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?i:t,this},Ce.prototype.clear=function(){this.__data__=[]},Ce.prototype.delete=function(e){var t=this.__data__,i=Ae(t,e);return!(i<0||(i==t.length-1?t.pop():ce.call(t,i,1),0))},Ce.prototype.get=function(e){var t=this.__data__,i=Ae(t,e);return i<0?void 0:t[i][1]},Ce.prototype.has=function(e){return Ae(this.__data__,e)>-1},Ce.prototype.set=function(e,t){var i=this.__data__,r=Ae(i,e);return r<0?i.push([e,t]):i[r][1]=t,this},Ee.prototype.clear=function(){this.__data__={hash:new Pe,map:new(he||Ce),string:new Pe}},Ee.prototype.delete=function(e){return Oe(this,e).delete(e)},Ee.prototype.get=function(e){return Oe(this,e).get(e)},Ee.prototype.has=function(e){return Oe(this,e).has(e)},Ee.prototype.set=function(e,t){return Oe(this,e).set(e,t),this},Ie.prototype.clear=function(){this.__data__=new Ce},Ie.prototype.delete=function(e){return this.__data__.delete(e)},Ie.prototype.get=function(e){return this.__data__.get(e)},Ie.prototype.has=function(e){return this.__data__.has(e)},Ie.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Ce){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 Ne=le?H(le,Object):function(){return[]},ze=function(e){return ee.call(e)};function Be(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function $e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function Ue(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(fe&&ze(new fe(new ArrayBuffer(1)))!=v||he&&ze(new he)!=l||pe&&ze(pe.resolve())!=f||ge&&ze(new ge)!=p||be&&ze(new be)!=m)&&(ze=function(e){var t=ee.call(e),i=t==d?e.constructor:void 0,r=i?Ue(i):void 0;if(r)switch(r){case ye:return v;case ve:return l;case we:return f;case xe:return p;case _e:return m}return t});var He=Array.isArray;function Ke(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Je(e)}var qe=ue||function(){return!1};function Je(e){var t=We(e)?ee.call(e):"";return t==s||t==c}function We(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return Ke(e)?Te(e):function(e){if(!$e(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 Me(e,!0,!0)}}(wh,wh.exports)),wh.exports),kh=ji(_h);function Sh(e){return kh(e)}function Ph(e){return e===Object(e)}function Ch(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 Eh(e,t){const i=Ch(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 Ih{certificateImage;certificateJson;description;display;expires;validFrom;explorerAPIs=[];id;isFormatValid;isVerifiablePresentation;issuedOn;issuer;locale;metadataJson;name;options;proofPurpose;proofDomain;proofChallenge;recipientFullName;recordLink;revocationKey;sealImage;signature;signatureImage;signers=[];subtitle;hashlinkVerifier;hasHashlinks=!1;verifiableCredentials;verificationSteps;verifier;verificationStatus;constructor(e,t={}){if(this._setOptions(t),"object"!=typeof e)try{e=JSON.parse(e)}catch(e){throw new Error(uh.i18n.getText("errors","certificateNotValid"))}this.certificateJson=Sh(e),this.isVerifiablePresentation=rh(this.certificateJson),this.isVerifiablePresentation&&(this.verifiableCredentials=this.certificateJson.verifiableCredential?.map(e=>new Ih(e,t))??[])}async init(){if(this.isVerifiablePresentation)for(const e of this.verifiableCredentials)await e.init();if(this.certificateJson.display?.content){Ch(this.certificateJson.display.content).length&&await import("./HashlinkVerifier-udsj5z09-BTqOkVoD.js").then(e=>{this.hashlinkVerifier=new e.HashlinkVerifier})}await this.parseJson(this.certificateJson),this.verifier=new yh({certificateJson:this.certificateJson,expires:this.expires,validFrom:this.validFrom,id:this.id,issuer:this.issuer,hashlinkVerifier:this.hashlinkVerifier,revocationKey:this.revocationKey,explorerAPIs:Sh(this.explorerAPIs),proofPurpose:this.proofPurpose,proofDomain:this.proofDomain,proofChallenge:this.proofChallenge}),await this.verifier.init(),this.verificationSteps=this.verifier.getVerificationSteps()}async verify(e){let t=await this.verifier.verify(e);if(this.setSigners(),this.isVerifiablePresentation)for(const e of this.verifiableCredentials){const i=await e.verify();e.verificationStatus=i,i.status!==Vf.SUCCESS&&(t={...t,status:Vf.FAILURE,message:`Credential ${e.name?e.name+" ":""}with id ${e.id} failed verification. Error: ${i.message}`,errors:[i]})}return this.verificationStatus=t,t}async parseJson(e){const t=await async function(e,t=""){try{const i=hh(e["@context"]),r=await ph[i.versionNumber](e,t);return r.isFormatValid=!0,r}catch(e){return console.error(e),{isFormatValid:!1,error:e.message}}}(e,this.locale);if(!t.isFormatValid)throw new Error(t.error);await this._setProperties(t)}setSigners(){this.signers=this.verifier.getSignersData()}_setOptions(e){this.options=Object.assign({},bi,e),this.locale=uh.i18n.ensureIsSupported("auto"===this.options.locale?uh.i18n.detectLocale():this.options.locale),this.explorerAPIs=this.options.explorerAPIs??[],this.proofPurpose=this.options.proofPurpose,this.proofDomain=this.options.domain,this.proofChallenge=this.options.challenge,e.didResolverUrl&&(uh.did.didResolver.url=e.didResolverUrl),uh.i18n.setLocale(this.locale)}async _setProperties({certificateImage:e,description:t,display:i,expires:r,validFrom:n,id:o,isFormatValid:a,issuedOn:s,issuer:c,metadataJson:l,name:u,recipientFullName:d,recordLink:f,revocationKey:h,sealImage:p,signature:g,signatureImage:b,subtitle:m}){this.isFormatValid=a,this.certificateImage=e,this.description=t,this.expires=r,this.validFrom=n,this.id=o,this.issuedOn=s,this.issuer=c,this.metadataJson=l,this.name=u,this.recipientFullName=d,this.recordLink=f,this.revocationKey=h,this.sealImage=p,this.signature=g,this.signatureImage=b,this.subtitle=m,this.display=await this.parseHashlinksInDisplay(i)}async parseHashlinksInDisplay(e){const t=Sh(e);if(t)return"text/html"!==t.contentMediaType||(t.content=await Eh(t.content,this.hashlinkVerifier)),t}}!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"}(xh||(xh={})),void 0===globalThis.setImmediate&&(globalThis.setImmediate=(e,...t)=>setTimeout(e,0,...t));var Th=Object.freeze({__proto__:null,BLOCKCHAINS:Qe,CERTIFICATE_VERSIONS:Ye,get CONTENT_MEDIA_TYPES(){return xh},Certificate:Ih,STEPS:Kf,SignatureImage:Pi,get VERIFICATION_STATUSES(){return Vf},VerificationSubstep:zf,getSupportedLanguages:xi,isVerifiablePresentation:rh,retrieveBlockcertsVersion:hh});const Lh=["text","image","signature","variable"];function Ah(e){const t=(new DOMParser).parseFromString(e,xh.TEXT_HTML);return t.body.childElementCount===t.body.querySelectorAll(Lh.map(e=>`section[class*="${e}"]`).join(", ")).length}const Mh="?format=json";var jh=function(e,t){return jh=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])},jh(e,t)};function Dh(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}jh(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var Rh=function(){return Rh=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},Rh.apply(this,arguments)};function Oh(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 Vh(e){return/^(ftp|http|https):\/\/[^ "]+$/.test(e)}function Nh(e){return/^(\.\/|\.\.\/|[A-Z]:\/\/|\/)[^ "]+$/.test(e)}function zh(){return{certificateDefinition:null,errorMessage:"errors.invalidBlockcertsUrl"}}"function"==typeof SuppressedError&&SuppressedError;var Bh=Object.freeze({__proto__:null,displayHtmlHasNoWidthConstraint:Ah,download:function(e){return e+Mh},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:Vf.DEFAULT}))},isPathToCertificateValidURI:function(e){return Vh(e)||Nh(e)},parse:function(e){return Oh(this,arguments,void 0,function*(e,t={}){t.locale||(t.locale="auto");try{const{retrieveBlockcertsVersion:i,Certificate:r}=yield Promise.resolve().then(function(){return Th});let n;if(1===i(e["@context"]).versionNumber){const{Certificate:i}=yield import("./index-RfFwckcH.js").then(function(e){return e.f});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",additionalErrorInfo:e.message}}})},read:function(e){return Oh(this,void 0,void 0,function*(){if(!e)return;const t=yield function(e){return Oh(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 Oh(this,void 0,void 0,function*(){if(!Vh(e)&&!Nh(e))return console.error("Invalid url to retrieve:",e),null;const t=e+Mh;return yield fetch(t).then(e=>Oh(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(zh)})}});var $h=((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 l=r.get?function(e){return n("get"),r.get(this,e,a)}:function(e){return n("get"),this[e]},u=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),f={};d.forEach(function(e){if((s||c)&&e in a)return;const t={enumerable:!!Object.getOwnPropertyDescriptor(i,e).enumerable,get:l.bind(i,e),set:u.bind(i,e)};Object.defineProperty(a,e,t),f[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)f[e]||Object.defineProperty(a,e,{get:l.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,Ue)}return new Proxy(e,Ue)})({certificates:Bh,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 Uh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fh={exports:{}},Hh={},Kh={exports:{}},qh={};function Jh(){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 Wh=/javascript\s*\:/gim;qh.whiteList=Jh(),qh.getDefaultWhiteList=Jh,qh.onAttr=function(e,t,i){},qh.onIgnoreAttr=function(e,t,i){},qh.safeAttrValue=function(e,t){return Wh.test(t)?"":t};var Yh={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 Gh=function(e,t){";"!==(e=Yh.trimRight(e))[e.length-1]&&(e+=";");var i=e.length,r=!1,n=0,o=0,a="";function s(){if(!r){var i=Yh.trim(e.slice(n,o)),s=i.indexOf(":");if(-1!==s){var c=Yh.trim(i.slice(0,s)),l=Yh.trim(i.slice(s+1));if(c){var u=t(n,a.length,c,l,i);u&&(a+=u+"; ")}}}n=o+1}for(;o<i;o++){var c=e[o];if("/"===c&&"*"===e[o+1]){var l=e.indexOf("*/",o+2);if(-1===l)break;n=(o=l+1)+1,r=!1}else"("===c?r=!0:")"===c?r=!1:";"===c?r||s():"\n"===c&&s()}return Yh.trim(a)},Zh=qh,Xh=Gh;function Qh(e){return null==e}function ep(e){(e=function(e){var t={};for(var i in e)t[i]=e[i];return t}(e||{})).whiteList=e.whiteList||Zh.whiteList,e.onAttr=e.onAttr||Zh.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Zh.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Zh.safeAttrValue,this.options=e}ep.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 Xh(e,function(e,t,a,s,c){var l=i[a],u=!1;if(!0===l?u=l:"function"==typeof l?u=l(s):l instanceof RegExp&&(u=l.test(s)),!0!==u&&(u=!1),s=o(a,s)){var d,f={position:t,sourcePosition:e,source:c,isWhite:u};return u?Qh(d=r(a,s,f))?a+":"+s:d:Qh(d=n(a,s,f))?void 0:d}})};var tp=ep;!function(e,t){var i=qh,r=tp;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)}(Kh,Kh.exports);var ip=Kh.exports,rp=Uh(ip),np={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}},op=ip.FilterCSS,ap=ip.getDefaultWhiteList,sp=np;function cp(){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 lp=new op;function up(e){return e.replace(dp,"<").replace(fp,">")}var dp=/</g,fp=/>/g,hp=/"/g,pp=/"/g,gp=/&#([a-zA-Z0-9]*);?/gim,bp=/:?/gim,mp=/&newline;?/gim,yp=/((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,vp=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,wp=/u\s*r\s*l\s*\(.*/gi;function xp(e){return e.replace(hp,""")}function _p(e){return e.replace(pp,'"')}function kp(e){return e.replace(gp,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function Sp(e){return e.replace(bp,":").replace(mp," ")}function Pp(e){for(var t="",i=0,r=e.length;i<r;i++)t+=e.charCodeAt(i)<32?" ":e.charAt(i);return sp.trim(t)}function Cp(e){return e=Pp(e=Sp(e=kp(e=_p(e))))}function Ep(e){return e=up(e=xp(e))}Hh.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"]},Hh.getDefaultWhiteList=cp,Hh.onTag=function(e,t,i){},Hh.onIgnoreTag=function(e,t,i){},Hh.onTagAttr=function(e,t,i){},Hh.onIgnoreTagAttr=function(e,t,i){},Hh.safeAttrValue=function(e,t,i,r){if(i=Cp(i),"href"===t||"src"===t){if("#"===(i=sp.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(yp.lastIndex=0,yp.test(i))return""}else if("style"===t){if(vp.lastIndex=0,vp.test(i))return"";if(wp.lastIndex=0,wp.test(i)&&(yp.lastIndex=0,yp.test(i)))return"";!1!==r&&(i=(r=r||lp).process(i))}return i=Ep(i)},Hh.escapeHtml=up,Hh.escapeQuote=xp,Hh.unescapeQuote=_p,Hh.escapeHtmlEntities=kp,Hh.escapeDangerHtml5Entities=Sp,Hh.clearNonPrintableCharacter=Pp,Hh.friendlyAttrValue=Cp,Hh.escapeAttrValue=Ep,Hh.onIgnoreTagStripAll=function(){return""},Hh.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!==sp.indexOf(e,t)}(o)){if(s.isClosing){var c="[/removed]",l=s.position+10;return r.push([!1!==n?n:s.position,l]),n=!1,c}return n||(n=s.position),"[removed]"}return t(o,a,s)},remove:function(e){var t="",i=0;return sp.forEach(r,function(r){t+=e.slice(i,r[0]),i=r[1]}),t+=e.slice(i)}}},Hh.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},Hh.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("")},Hh.cssFilter=lp,Hh.getDefaultCSSWhiteList=ap;var Ip={},Tp=np;function Lp(e){var t,i=Tp.spaceIndex(e);return t=-1===i?e.slice(1,-1):e.slice(1,i+1),"/"===(t=Tp.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function Ap(e){return"</"===e.slice(0,2)}var Mp=/[^a-zA-Z0-9\\_:.-]/gim;function jp(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"="===i?t:-1}}function Dp(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"'"===i||'"'===i?t:-1}}function Rp(e,t){for(;t>0;t--){var i=e[t];if(" "!==i)return"="===i?t:-1}}function Op(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}Ip.parseTag=function(e,t,i){var r="",n=0,o=!1,a=!1,s=0,c=e.length,l="",u="";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)),l=Lp(u=e.slice(o,s+1)),r+=t(o,r.length,l,u,Ap(u)),n=s+1,o=!1;continue}if('"'===d||"'"===d)for(var f=1,h=e.charAt(s-f);""===h.trim()||"="===h;){if("="===h){a=d;continue e}h=e.charAt(s-++f)}}else if(d===a){a=!1;continue}}return n<e.length&&(r+=i(e.substr(n))),r},Ip.parseAttr=function(e,t){var i=0,r=0,n=[],o=!1,a=e.length;function s(e,i){if(!((e=(e=Tp.trim(e)).replace(Mp,"").toLowerCase()).length<1)){var r=t(e,i||"");r&&n.push(r)}}for(var c=0;c<a;c++){var l,u=e.charAt(c);if(!1!==o||"="!==u)if(!1===o||c!==r)if(/\s|\n|\t/.test(u)){if(e=e.replace(/\s|\n|\t/g," "),!1===o){if(-1===(l=jp(e,c))){s(Tp.trim(e.slice(i,c))),o=!1,i=c+1;continue}c=l-1;continue}if(-1===(l=Rp(e,c-1))){s(o,Op(Tp.trim(e.slice(i,c)))),o=!1,i=c+1;continue}}else;else{if(-1===(l=e.indexOf(u,c+1)))break;s(o,Tp.trim(e.slice(r+1,l))),o=!1,i=(c=l)+1}else o=e.slice(i,c),i=c+1,r='"'===e.charAt(i)||"'"===e.charAt(i)?i:Dp(e,c+1)}return i<e.length&&(!1===o?s(e.slice(i)):s(o,Op(Tp.trim(e.slice(i))))),Tp.trim(n.join(" "))};var Vp=ip.FilterCSS,Np=Hh,zp=Ip,Bp=zp.parseTag,$p=zp.parseAttr,Up=np;function Fp(e){return null==e}function Hp(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=Np.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=Np.whiteList,e.onTag=e.onTag||Np.onTag,e.onTagAttr=e.onTagAttr||Np.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Np.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Np.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Np.safeAttrValue,e.escapeHtml=e.escapeHtml||Np.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Vp(e.css))}Hp.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,l=this.cssFilter;t.stripBlankChar&&(e=Np.stripBlankChar(e)),t.allowCommentTag||(e=Np.stripCommentTag(e));var u=!1;t.stripIgnoreTagBody&&(u=Np.StripTagBody(t.stripIgnoreTagBody,n),n=u.onIgnoreTag);var d=Bp(e,function(e,t,u,d,f){var h={sourcePosition:e,position:t,isClosing:f,isWhite:Object.prototype.hasOwnProperty.call(i,u)},p=r(u,d,h);if(!Fp(p))return p;if(h.isWhite){if(h.isClosing)return"</"+u+">";var g=function(e){var t=Up.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var i="/"===(e=Up.trim(e.slice(t+1,-1)))[e.length-1];return i&&(e=Up.trim(e.slice(0,-1))),{html:e,closing:i}}(d),b=i[u],m=$p(g.html,function(e,t){var i=-1!==Up.indexOf(b,e),r=o(u,e,t,i);return Fp(r)?i?(t=s(u,e,t,l))?e+'="'+t+'"':e:Fp(r=a(u,e,t,i))?void 0:r:r});return d="<"+u,m&&(d+=" "+m),g.closing&&(d+=" /"),d+=">"}return Fp(p=n(u,d,h))?c(d):p},c);return u&&(d=u.remove(d)),d};var Kp=Hp;!function(e,t){var i=Hh,r=Ip,n=Kp;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)}(Fh,Fh.exports);var qp=Uh(Fh.exports);const Jp={...rp.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 Wp=/((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,Yp=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Gp=/u\s*r\s*l\s*\(.*/gi;const Zp={whiteList:function(){const e=qp.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}="${rp(i,{whiteList:Jp}).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=qp.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(Wp.lastIndex=0,Wp.test(i))return""}else if("style"===t){if(Yp.lastIndex=0,Yp.test(i))return"";if(Gp.lastIndex=0,Gp.test(i)&&(Wp.lastIndex=0,Wp.test(i)))return"";!1!==r&&(i=(r=r||qp.getDefaultCSSWhiteList()).process(i))}return i=qp.escapeAttrValue(i)}},Xp=new qp.FilterXSS(Zp);function Qp(e){return Xp.process(e)}const eg="en";var tg={locale:eg};const ig={en:{errors:{errorLabel:"Error",additionalErrorInfoLabel:"The following error occurred:",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",additionalErrorInfoLabel:"El siguiente error ocurrió:",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",additionalErrorInfoLabel:"Cette erreur s'est produite :",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",additionalErrorInfoLabel:"Si è verificato il seguente 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:"エラー",additionalErrorInfoLabel:"次のエラーが発生しました:",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 rg(){return ig}function ng(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=rg();return n[tg.locale]?n[tg.locale][e]?n[tg.locale][e][t]?n[tg.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]"}function og(e){const t=ng("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=ng("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 ag(e){return e.display}function sg(e){var t;return null!==(t=null==e?void 0:e.content)&&void 0!==t?t:""}function cg(e){return null==e?void 0:e.contentMediaType}function lg(e){var t;return null!==(t=null==e?void 0:e.contentEncoding)&&void 0!==t?t:""}function ug(e){return e.certificateDefinition}function dg(e){const t=ug(e);return t?t.signers:[]}function fg(e){const t=ug(e);return t?t.issuedOn:""}function hg(e){return ug(e)?og(fg(e)):""}function pg(e){const t=ug(e);return t?t.recipientFullName:""}function gg(e){var t;const i=ug(e);return i&&null!==(t=i.name)&&void 0!==t?t:""}function bg(e){const t=ug(e);return t?t.issuer.name:""}function mg(e){const t=ug(e);return t?t.issuer.image:""}function yg(e){const t=ug(e);return!!t&&t.isVerifiablePresentation}function vg(e){const t=ug(e);return t?t.verifiableCredentials:[]}function wg(e){return e.verificationStatus}function xg(e){const t=function(e){const t=ug(e);if(t)return t.certificateImage;return""}(e),i=gg(e),r=function(e){const t=ug(e);if(t)return t.subtitle;return""}(e),n=$g(e),o=function(e){const t=ug(e);if(t)return t.sealImage;return""}(e),a=function(e){const t=ug(e);if(t)return t.signatureImage;return null}(e),s=pg(e),c=bg(e),l=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='${ng("text.signed")} ${e.jobTitle}'/>\n ${e.jobTitle?`<span class='buv-o-text-12'>${e.jobTitle}</span>`:""}\n </li>\n `);let u="";return t&&(u+=`<img class='buv-c-full-certificate-img' src='${t}' alt='${i}'/>`),u+=`\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&&(u+=`<p class='buv-c-full-certificate__description'>${n}</p>`),l.length&&(u+=`\n <ul class='buv-c-full-certificate-signatures'>\n ${l.join("\n")}\n </ul>\n `),o&&(u+=`<img class='buv-c-full-certificate-img--secondary' src='${o}' alt='${ng("text.certified")} ${c}'/>`),u}function _g(e){const t=ug(e);if(!t)return"";let{displayHtml:i}=t.certificateJson;return i?Qp(i):yg(e)?"<div></div>":(i=kg(t),i||xg(e))}function kg(e){const t=ag(e);if(t)switch(cg(t)){case xh.TEXT_HTML:return Qp(t.content);case xh.IMAGE_PNG:case xh.IMAGE_JPEG:case xh.IMAGE_GIF:case xh.IMAGE_BMP:return`<img src="data:${cg(t)};${lg(t)},${sg(t)}"/>`;case xh.APPLICATION_PDF:return`<embed width="100%" height="100%" type="application/pdf" src="data:${cg(t)};${lg(t)},${sg(t)}"/>`;default:return""}}function Sg(e){const t=ug(e);return t&&Vh(t.recordLink)?t.recordLink:""}function Pg(e){const t=Sg(e);return t?$h.certificates.download(t):""}function Cg(e){const t=ug(e);if(t)try{return JSON.parse(t.metadataJson)}catch(e){return null}return null}function Eg(e){var t;const i=dg(e);return 0===i.length?null!==(t=Bg(e,"transactionLink"))&&void 0!==t?t:[]:i.map(e=>e.transactionLink)}function Ig(e){var t;const i=dg(e);return 0===i.length?null!==(t=Bg(e,"transactionId"))&&void 0!==t?t:[]:i.map(e=>e.transactionId)}function Tg(e){const t=dg(e);if(0===t.length){const t=Bg(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 Lg(e){return Tg(e).some(e=>"Mocknet"===e||(null==e?void 0:e.includes("Testnet")))}function Ag(e,t){const i=Tg(e)[t];return!!i&&("Mocknet"===i||i.includes("Testnet"))}function Mg(e){return e.verifiedSteps||[]}function jg(e,t){return Mg(e).find(e=>e.code===t)}function Dg(e){return Mg(e).some(e=>e.status===Vf.FAILURE)}function Rg(e){return e.finalStep}function Og(e){return dg(e).map(e=>e.issuerPublicKey)}function Vg(e){return dg(e).map(e=>e.issuerProfileUrl)}function Ng(e){return dg(e).map(e=>e.issuerProfileDomain)}function zg(e){return dg(e).map(e=>e.signatureSuiteType)}function Bg(e,t){const i=ug(e);return i?[i[t]]:null}function $g(e){var t;const i=ug(e);return i&&null!==(t=i.description)&&void 0!==t?t:""}function Ug(e){return e.isGeneratingPDF}function Fg(e,t){switch(t.type){case De: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:$h.certificates.initializeVerificationSteps(t.payload.certificateDefinition)})}(e,t);case Ae: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 Oe:return function(e,t){const{parentStepCode:i,status:r}=t.payload;return jg(e,i).status=r,e}(e,t);case je:return function(e,t){return Object.assign(Object.assign({},e),{input:Object.assign(Object.assign({},e.input),{isValid:t.payload.isValid})})}(e,t);case ze:return function(e,t){const{errorMessage:i,additionalErrorInfo:r}=t.payload;return Object.assign(Object.assign({},e),{errorMessage:i,additionalErrorInfo:r})}(e,t);case Be:return function(e,t){return Object.assign(Object.assign({},e),{showVerificationModal:t.payload.showVerificationModal})}(e,t);case Re: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)})}(jg(e,i),t.payload),e}(e,t);case Ve:return function(e,t){return Object.assign(Object.assign({},e),{verificationStatus:t.payload.status})}(e,t);case Ne:return function(e,t){return Object.assign(Object.assign({},e),{finalStep:t.payload.finalStep})}(e,t);case $e:return function(e,t){return Object.assign(Object.assign({},e),{isGeneratingPDF:t.payload.isGeneratingPDF})}(e,t);default:return e}}var Hg,Kg;!function(e){e.FULL="full",e.CARD="card",e.FULLSCREEN="fullscreen"}(Hg||(Hg={})),function(e){e.DARK="dark",e.BRIGHT="bright"}(Kg||(Kg={}));const qg=function(e=function(e={}){return Object.assign({input:{},verifiedSteps:[],finalStep:null,verificationStatus:Vf.DEFAULT,showVerificationModal:!1,displayMode:"card",disableDownloadPdf:!1,theme:Kg.BRIGHT},e)}()){return _e(Fg,e,function(...e){return t=>(i,r)=>{const n=t(i,r);let o=()=>{throw new Error(ye(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}}}(...[Pe]))}();function Jg(e,{mapDispatchToProps:t={},mapStateToProps:i=()=>({}),ownProps:r={}}){return class extends(me(qg)(be)){mapDispatchToProps(){return function(e,t){if("function"==typeof e)return ke(e,t);if("object"!=typeof e||null===e)throw new Error(ye(16));const i={};for(const r in e){const n=e[r];"function"==typeof n&&(i[r]=ke(n,t))}return i}(t,qg.dispatch)}mapStateToProps(e){return i(qg.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 Wg(e,t){return{type:ze,payload:{errorMessage:e,additionalErrorInfo:t}}}function Yg(e){return e.status===Vf.SUCCESS}function Gg(e){return e.status===Vf.FAILURE}function Zg(e){return function(t,i){if(null==e)return;const r=jg(i(),e);let n=r.status;n===Vf.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(Yg)),r||e.subSteps.some(Yg)}(r)&&(n=Vf.STARTING),n!==Vf.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(Yg)),r&&e.subSteps.every(Yg)}(r)&&(n=Vf.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(Gg)),r||e.subSteps.some(Gg)}(r)&&(n=Vf.FAILURE),t({type:Oe,payload:{parentStepCode:e,status:n}})}}class Xg{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 Qg=new Xg;function eb(e){return function(t,i){const r=function(e){return function(t){e({type:Re,payload:t}),e(Zg(t.parentStep))}}(t);Qg.dispatchCb||Qg.registerCb(r),Qg.push(e),Qg.execute()}}function tb(){return function(e,t){const i=ug(t());let r=[];i&&(r=$h.certificates.initializeVerificationSteps(i)),e({type:De,payload:{resetSteps:r}})}}function ib(e){return{type:Ve,payload:{status:e}}}function rb(e){return e.disableVerify}function nb(e){return e.allowDownload}function ob(e){return e.disableDownloadPdf}function ab(e){return e.allowSocialShare}function sb(e){return e.showMetadata}function cb(e){return e.displayMode}function lb(e){return e.theme}function ub(e){return e.locale}function db(e){return e.explorerAPIs}function fb(e){return e.clickableUrls}function hb(e){return e.didResolverUrl}function pb(e){return"string"==typeof e&&(e={label:e,description:""}),{type:Ne,payload:{finalStep:e}}}function gb(){return function(e,t){return Oh(this,void 0,void 0,function*(){const i=t();if(rb(i))return void console.warn("Verification is disabled");e({type:"VERIFY_CERTIFICATE"}),e(ib(Vf.STARTING)),e(tb());const r=ug(i);if(r){$h.events.dispatch("certificate-verify",r);const t=yield r.verify(t=>{e(eb(t))});e(pb(t.message)),e(ib(t.status))}})}}function bb(e){return{type:Be,payload:{showVerificationModal:e}}}function mb(e){return function(t,i){return Oh(this,void 0,void 0,function*(){const r=i(),n={locale:ub(r),explorerAPIs:db(r),didResolverUrl:hb(r)},{certificateDefinition:o,errorMessage:a,additionalErrorInfo:s}=yield $h.certificates.parse(e,n);t(Wg(a,s)),t({type:Le,payload:{certificateDefinition:o}}),$h.events.dispatch("certificate-load",o),null!=o&&(yield t(function(e,t){return Oh(this,void 0,void 0,function*(){(function(e){return e.disableAutoVerify})(t())||(e({type:Ie}),e(bb(!0))),yield e(gb())})}))})}}function yb(e){return function(t){return Oh(this,void 0,void 0,function*(){const i=$h.certificates.isPathToCertificateValidURI(e);var r;if(t((r=i,function(e){e({type:je,payload:{isValid:r}}),e(Wg(r?null:"errors.invalidUrl"))})),!i)return null;t({type:Me,payload:{url:e}});const n=yield $h.certificates.retrieve(e);n.certificateDefinition?yield t(mb(n.certificateDefinition)):t(Wg(n.errorMessage))})}}const vb=/(-\w)/g,wb=e=>e[1].toUpperCase();const xb={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:Kg,locale:String,explorerAPIs:{},"did-resolver-url":String},_b=Object.keys(xb).map(function(e){return e.replace(vb,wb)}).reduce((e,t)=>(e[t]=xb[t],e),{});function kb(e){let t;const i=Object.keys(ig).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=eg),function(e){const t=e.split("-");return t.length>1?`${t[0].toLowerCase()}-${t[1].toUpperCase()}`:t[0].toLowerCase()}(e)}function Sb(e){"auto"!==e&&e||(e=navigator.language||navigator.userLanguage||navigator.browserLanguage||eg),tg.locale=kb(e)}var Pb=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::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 Cb(e){return void 0===e.input.isValid||e.input.isValid}const Eb=Jg(({onInput:e=()=>{},isValid:t=!0}={})=>{const i="buv-c-input "+(t?"":"is-invalid");return de`
|
|
130
|
-
${
|
|
129
|
+
*/const Xd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Qd=[62,-1,-1,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,63,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];function ef(e){if(!(e instanceof Uint8Array||"string"==typeof e))throw new TypeError('"input" be a string or Uint8Array.');"string"==typeof e&&(e=(new TextEncoder).encode(e));let t,i,r,n="",o=0;for(;o<e.byteLength;)t=e[o++],i=e[o++],r=e[o++],n+=Xd.charAt(t>>2),n+=Xd.charAt((3&t)<<4|i>>4),isNaN(i)||(n+=Xd.charAt((15&i)<<2|r>>6),isNaN(r)||(n+=Xd.charAt(63&r)));return n}function tf(e){let t=e.length;const i=t%4;if(1===i)throw new Error("Illegal base64 string.");let r=0;i>0&&(r=4-i,t+=r);const n=new Uint8Array(t/4*3-r);let o,a,s,c,l=0,u=0;for(;l<t;)o=Qd[e.charCodeAt(l++)-45],a=Qd[e.charCodeAt(l++)-45],n[u++]=o<<2|a>>4,l<e.length&&(s=Qd[e.charCodeAt(l++)-45],n[u++]=(15&a)<<4|s>>2,l<e.length&&(c=Qd[e.charCodeAt(l++)-45],n[u++]=(3&s)<<6|c));return n}const rf="EcdsaSecp256k1VerificationKey2019",nf=e=>Vd("sha256").update(e).digest();class of extends Jd.LDKeyPair{constructor({publicKeyBase58:e,privateKeyBase58:t,...i}){if(super(i),t&&!e){const e=Nn(Zd(t));this.publicKeyBase58=Gd(e)}else this.publicKeyBase58=e;if(this.type=rf,this.privateKeyBase58=t,!this.publicKeyBase58)throw new TypeError('The "publicKeyBase58" property is required.')}static from(e){if(e.publicKeyHex||e.privateKeyHex){const{publicKeyHex:t,privateKeyHex:i,...r}=e;return new of({...r,publicKeyBase58:t?Gd(Xi.from(t,"hex")):void 0,privateKeyBase58:i?Gd(Xi.from(i,"hex")):void 0})}return new of(e)}static async generate({seed:e,compressed:t,...i}){if(e&&!oo(e))throw new Error("Provided seed is not a valid private key");let r=e;for(;void 0===r||!oo(r);)r=new Uint8Array(Kd(32));const n=Nn(r,t);return new of({publicKeyBase58:Gd(n),privateKeyBase58:Gd(r),...i})}export({publicKey:e=!1,privateKey:t=!1,includeContext:i=!1}={}){if(!e&&!t)throw new TypeError('export requires specifying either "publicKey" or "privateKey".');if(t&&!this.privateKeyBase58)throw new TypeError("No privateKey to export.");if(e&&!this.publicKeyBase58)throw new TypeError("No publicKey to export.");const r={type:this.type,id:this.id,controller:this.controller,revoked:this.revoked};return i&&(r["@context"]=of.SUITE_CONTEXT),t&&(r.privateKeyBase58=this.privateKeyBase58),e&&(r.publicKeyBase58=this.publicKeyBase58),r}signer(){const{privateKeyBase58:e}=this;return e?{async sign({data:t}){const i=Kr.encode(JSON.stringify({alg:"ES256K",b64:!1,crit:["b64"]})),r=Xi.from(t.buffer,t.byteOffset,t.length),n=nf(Xi.from(Xi.concat([Xi.from(`${i}.`,"utf8"),Xi.from(r.buffer,r.byteOffset,r.length)]))),o=await no(n,Zd(e),{prehash:!1});return`${i}..${Kr.encode(Xi.from(o))}`},id:this.id}:{async sign(){throw new Error("No private key to sign with.")},id:this.id}}verifier(){const{publicKeyBase58:e}=this;return e?{async verify({data:t,signature:i}){if(i.indexOf("..")<0)return!1;const[r,n]=i.split(".."),o=JSON.parse(Kr.decode(r));if("ES256K"!==o.alg||!1!==o.b64||!o.crit||!o.crit.length||"b64"!==o.crit[0])return!1;const a=Xi.from(t.buffer,t.byteOffset,t.length),s=nf(Xi.from(Xi.concat([Xi.from(`${r}.`,"utf8"),Xi.from(a.buffer,a.byteOffset,a.length)])));let c;try{c=((e,t,i,r={})=>(r=ro(r),t=Zn(t,r,!1),io(e,t,i,r)))(Xi.from(Kr.decode(n,"hex"),"hex"),s,Zd(e),{prehash:!1})}catch(e){console.error(e),c=!1}return c},id:this.id}:{async verify(){throw new Error("No public key to verify against")},id:this.id}}}of.suite=rf,of.SUITE_CONTEXT="https://ns.did.ai/suites/secp256k1-2019/v1";const af="P-256",sf="P-384",cf="P-521",lf="K-256";function uf({curve:e}){if(e===af||e===lf||"secp256k1"===e)return 32;if(e===sf)return 48;if(e===cf)return 66;throw new TypeError(`Unsupported curve "${e}".`)}function df({jwk:e}={}){if("EC"!==e?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:t}=e,i=uf({curve:t}),r=tf(e.d),n=new Uint8Array(i);return n.set(r,n.length-r.length),n}function ff(e,t=null){let i=e.toString(16);i.length%2&&(i=`0${i}`);let r=Uint8Array.from(i.match(/.{2}/g).map(e=>parseInt(e,16)));if(null!==t){if(r.length>t)throw new Error("BigInt too large");const e=new Uint8Array(t);e.set(r,t-r.length),r=e}return r}const pf={publicKeyBase58:e=>Xi.from(Zd(e)).toString("hex"),publicKeyJWK:e=>Xi.from(function({jwk:e}={}){if("EC"!==e?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:t}=e,i=uf({curve:t}),r=tf(e.x),n=tf(e.y),o=new Uint8Array(i+1),a=n[n.length-1]%2==0;return o[0]=a?2:3,o.set(r,o.length-r.length),o}({jwk:e})).toString("hex"),publicKeyUint8Array:e=>Xi.from(e).toString("hex"),privateKeyHex:e=>Xi.from(Nn(new Uint8Array(Xi.from(e,"hex")))).toString("hex")},hf={privateKeyBase58:e=>Xi.from(Zd(e)).toString("hex"),privateKeyJWK:e=>Xi.from(df({jwk:e})).toString("hex"),privateKeyUint8Array:e=>Xi.from(e).toString("hex")},gf={publicKeyBase58:e=>Zd(e),publicKeyHex:e=>Uint8Array.from(Xi.from(e,"hex")),publicKeyJWK:e=>{let t=Xi.from(pf.publicKeyJWK(e),"hex"),i=32-t.length;for(;i>0;)t=Xi.concat([Xi.from("00","hex"),t]),i-=1;return Uint8Array.from(t)},privateKeyUint8Array:e=>Nn(e)},bf={privateKeyBase58:e=>Zd(e),privateKeyHex:e=>Uint8Array.from(Xi.from(e,"hex")),privateKeyJWK:e=>{let t=Xi.from(hf.privateKeyJWK(e),"hex"),i=32-t.length;for(;i>0;)t=Xi.concat([Xi.from("00","hex"),t]),i-=1;return Uint8Array.from(t)}},mf={publicKeyBase58:(e,t)=>mf.publicKeyHex(Xi.from(Zd(e)).toString("hex"),t),publicKeyHex:(e,t)=>{let i;if(66===e.length){const t=Tn.fromHex(e);i={x:ff(t.x),y:ff(t.y)}}else i={x:Xi.from(e.slice(2,e.length/2+1),"hex"),y:Xi.from(e.slice(e.length/2+1),"hex")};return{...{x:ef(i.x),y:ef(i.y)},crv:"secp256k1",kty:"EC",kid:t}},publicKeyUint8Array:(e,t)=>mf.publicKeyHex(Xi.from(e).toString("hex"),t),privateKeyJWK:e=>{const{d:t,...i}=e;return i}},yf={privateKeyBase58:(e,t)=>yf.privateKeyHex(Xi.from(Zd(e)).toString("hex"),t),privateKeyHex:(e,t)=>{const i=Xi.from(e,"hex"),r=Nn(i,!1);return{...mf.publicKeyHex(Xi.from(r).toString("hex"),t),d:ef(i)}},privateKeyUint8Array:(e,t)=>yf.privateKeyHex(hf.privateKeyUint8Array(e),t)};var vf=Object.freeze({__proto__:null,toSecretKeyBytes:df,publicKeyHexFrom:pf,privateKeyHexFrom:hf,publicKeyUint8ArrayFrom:gf,privateKeyUint8ArrayFrom:bf,publicKeyJWKFrom:mf,privateKeyJWKFrom:yf});var wf=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let e=0;e<t.length;e++)t[e]=255;for(let i=0;i<e.length;i++){const r=e.charAt(i),n=r.charCodeAt(0);if(255!==t[n])throw new TypeError(r+" is ambiguous");t[n]=i}const i=e.length,r=e.charAt(0),n=Math.log(i)/Math.log(256),o=Math.log(256)/Math.log(i);function a(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;let o=0,a=0,s=0;for(;e[o]===r;)a++,o++;const c=(e.length-o)*n+1>>>0,l=new Uint8Array(c);for(;o<e.length;){const r=e.charCodeAt(o);if(r>255)return;let n=t[r];if(255===n)return;let a=0;for(let e=c-1;(0!==n||a<s)&&-1!==e;e--,a++)n+=i*l[e]>>>0,l[e]=n%256>>>0,n=n/256>>>0;if(0!==n)throw new Error("Non-zero carry");s=a,o++}let u=c-s;for(;u!==c&&0===l[u];)u++;const d=new Uint8Array(a+(c-u));let f=a;for(;u!==c;)d[f++]=l[u++];return d}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";let n=0,a=0,s=0;const c=t.length;for(;s!==c&&0===t[s];)s++,n++;const l=(c-s)*o+1>>>0,u=new Uint8Array(l);for(;s!==c;){let e=t[s],r=0;for(let t=l-1;(0!==e||r<a)&&-1!==t;t--,r++)e+=256*u[t]>>>0,u[t]=e%i>>>0,e=e/i>>>0;if(0!==e)throw new Error("Non-zero carry");a=r,s++}let d=l-a;for(;d!==l&&0===u[d];)d++;let f=r.repeat(n);for(;d<l;++d)f+=e.charAt(u[d]);return f},decodeUnsafe:a,decode:function(e){const t=a(e);if(t)return t;throw new Error("Non-base"+i+" character")}}}("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");const xf="undefined"==typeof Buffer?Xi:Buffer,_f="P-256",kf="P-384",Sf="P-521",Pf="K-256";function Cf({jwk:e}={}){if("EC"!==e?.kty)throw new TypeError('"jwk.kty" must be "EC".');const{crv:t}=e,i=function({curve:e}){if(e===_f||e===Pf||"secp256k1"===e)return 32;if(e===kf)return 48;if(e===Sf)return 66;throw new TypeError(`Unsupported curve "${e}".`)}({curve:t}),r=tf(e.x),n=tf(e.y),o=new Uint8Array(i+1),a=n[n.length-1]%2==0;return o[0]=a?2:3,o.set(r,o.length-r.length),o}const Ef=e=>xf.from(Cf({jwk:e})).toString("hex"),If=e=>wf.encode(xf.from(e,"hex"));const Af=e=>{const t=new Uint8Array([237,1]),i=function(e){const{kty:t,crv:i,x:r}=e;if("OKP"!==t)throw new TypeError('"jwk.kty" must be "OKP".');if("Ed25519"!==i)throw new TypeError('"jwk.crv" must be "Ed25519".');if("string"!=typeof r)throw new TypeError('"jwk.x" must be a string.');const n=tf(e.x);if(32!==n.length)throw new Error(`Invalid public key size (${n.length}); expected 32.`);return n}(e),r=new Uint8Array(t.length+i.length);r.set(t),r.set(i,t.length);var n;return`z${n=r,wf.encode(n)}`};function Tf(e){return Uint8Array.from(wf.decode(e.slice(1)).slice(2))}var Lf;function Mf({keyId:e,did:t,keyType:i,jwk:r}){return{"@context":["https://www.w3.org/ns/did/v1"],verificationMethod:[{id:e,type:i,controller:t,publicKeyJwk:r}],id:t,authentication:[e],assertionMethod:[e],capabilityDelegation:[e],capabilityInvocation:[e],keyAgreement:[e]}}async function jf(e){const t=e.substring(8),i=Tf(t);return Mf({keyId:e+"#"+t,did:e,jwk:vf.publicKeyJWKFrom.publicKeyUint8Array(i,""),keyType:"EcdsaVerificationKey2019"})}async function Df(e){const t=await import("./index-DjD0A6uJ-BdFUkPCF.js").then(function(e){return e.i}),i=e.substring(8),r=Tf(i);return Mf({keyId:e+"#"+i,did:e,jwk:await t.toJwk({keyPair:{publicKey:r}}),keyType:"JsonWebKey2020"})}!function(e){e.ED25519="ed25519",e.SECP256K1="secp256k1"}(Lf||(Lf={}));const Rf={"did:key:z6Mk":Lf.ED25519,"did:key:zQ3s":Lf.SECP256K1};async function Of(e){const t=e.substring(0,12);if(Rf[t]){const i=await async function(e){if(e===Lf.ED25519)return{resolve:async e=>({didDocument:await Df(e)})};if(e===Lf.SECP256K1)return{resolve:async e=>({didDocument:await jf(e)})};throw new Error("Error loading did key resolver")}(Rf[t]),{didDocument:r}=await i.resolve(e);return r}throw new Error("Unsupported did:key suite")}var Vf,zf={...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=Ai.url){if(Li(e)){return await Of(e)}const i=await nt({url:`${t}/${e}`});return JSON.parse(i).didDocument},resolveDidKeyDocument:Of}),didResolver:Ai};!function(e){e.DEFAULT="standby",e.FAILURE="failure",e.STARTING="starting",e.SUCCESS="success"}(Vf||(Vf={}));class Nf{code;label;labelPending;parentStep;status;constructor(e,t){this.code=t,this.label=wi("subSteps",`${t}Label`),this.labelPending=wi("subSteps",`${t}LabelPending`),this.parentStep=e,this.status=Vf.DEFAULT}}const Bf=vi[yi.locale];var $f,Uf;!function(e){e.formatValidation="formatValidation",e.proofVerification="proofVerification",e.identityVerification="identityVerification",e.statusCheck="statusCheck",e.final="final"}($f||($f={})),function(e){e.checkImagesIntegrity="checkImagesIntegrity",e.checkRevokedStatus="checkRevokedStatus",e.checkExpiresDate="checkExpiresDate",e.controlVerificationMethod="controlVerificationMethod",e.verifyIssuerProfile="verifyIssuerProfile",e.ensureValidityPeriodStarted="ensureValidityPeriodStarted",e.checkCredentialSchemaConformity="checkCredentialSchemaConformity",e.validateDateFormat="validateDateFormat"}(Uf||(Uf={}));const Ff={[$f.formatValidation]:[Uf.checkImagesIntegrity,Uf.checkCredentialSchemaConformity,Uf.validateDateFormat],[$f.proofVerification]:[],[$f.identityVerification]:[Uf.verifyIssuerProfile,Uf.controlVerificationMethod],[$f.statusCheck]:[Uf.checkRevokedStatus,Uf.ensureValidityPeriodStarted,Uf.checkExpiresDate]};function Hf(){return{[$f.formatValidation]:{code:$f.formatValidation,label:Bf.steps.formatValidationLabel,labelPending:Bf.steps.formatValidationLabelPending,subSteps:[]},[$f.proofVerification]:{code:$f.proofVerification,label:Bf.steps.signatureVerificationLabel,labelPending:Bf.steps.signatureVerificationLabelPending,subSteps:[]},[$f.identityVerification]:{code:$f.identityVerification,label:Bf.steps.identityVerificationLabel,labelPending:Bf.steps.identityVerificationLabelPending,subSteps:[]},[$f.statusCheck]:{code:$f.statusCheck,label:Bf.steps.statusCheckLabel,labelPending:Bf.steps.statusCheckLabelPending,subSteps:[]}}}var Kf=Object.freeze({__proto__:null,get SUB_STEPS(){return Uf},get VerificationSteps(){return $f},default:Hf,final:"final",verificationMap:Ff});function qf(e){try{const t=new URL(e);return!t.pathname.includes(" ")&&!t.hostname.includes(" ")&&e.includes(":")}catch{return!1}}function Jf(e=[],t=[]){return e.filter(e=>t.includes(e)).filter((e,t,i)=>i.indexOf(e)===t)}function Wf(e,t){const i=e.findIndex(e=>e===t);i>-1&&e.splice(i,1)}function Yf(e,t){return Ff[e].filter(e=>t.includes(e)).map(t=>up.verifier.convertToVerificationSubsteps(e,t))}function Gf(e){const t=Hf();return Object.keys(t).map(i=>({...t[i],subSteps:Yf(i,e)}))}const Zf=/-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$/;function Xf(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=Zf.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 Qf(e){return""===e?0:Xf(`${e}`).getTime()}function ep(e){return Zf.test(e)}function tp(e,t=null){const i=e.created?Qf(e.created):null,r=e.revoked?Qf(e.revoked):null,n=e.expires?Qf(e.expires):null;let o=t;if(!t){o=(e.id||e.publicKey).replace("ecdsa-koblitz-pubkey:","")}return new Si(o,i,r,n)}function ip(e){if(Array.isArray(e)){return e.find(e=>"ChainedProof2021"!==e.type).verificationMethod}return e.verificationMethod}function rp(e){return e.type.includes("VerifiablePresentation")}function np(e){return e.includes(Ot)}function op(e){return e.includes(Vt)}function ap(e,t){let i=`${t} must be a valid RFC3339 string.`;if("string"!=typeof e)throw i+=`${t}: ${e} is not a string`,new Error(i);if(!function(e){return/^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$/.test(e)}(e))throw i+=` Received: \`${e}\``,new Error(i)}function sp(e){if("object"!=typeof e)throw new Error("`credentialSubject` must be an object");if(Array.isArray(e)&&0===e.length)throw new Error("`credentialSubject` cannot be an empty array");Array.isArray(e)&&e.forEach(e=>{sp(e)})}function cp(e,t){(Array.isArray(e)?e:[e]).forEach(e=>{if(!e.id)throw new Error(`${t}.id must be defined`);if(function(e,t=""){if(!qf(e))throw new Error(`Invalid URL: ${e}. ${t?`Property: ${t}`:""}`)}(e.id,`${t}.id`),!e.type)throw new Error(`${t}.type must be defined`)})}var lp=Object.freeze({__proto__:null,convertToVerificationSubsteps:function(e,t){return new Nf(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}}},getDatesToValidate:function(e){const t=[];e.validFrom&&t.push({property:"validFrom",dateTimeStamp:e.validFrom}),e.validUntil&&t.push({property:"validUntil",dateTimeStamp:e.validUntil});const i=Array.isArray(e.proof)?e.proof:[e.proof];for(const e of i)e.created&&t.push({property:`proof ${e.cryptosuite??e.type} created`,dateTimeStamp:e.created});return t},getIssuerProfile:async function e(t){const i=wi("errors","getIssuerProfile");if(!t)throw new Ci("getIssuerProfile",`${i} - ${wi("errors","issuerProfileNotSet")}`);let r;if("object"==typeof t&&(t=t.id),Ti(t))try{const i=await up.did.resolve(t);if(Li(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=up.did.getIssuerProfileUrl(i);t&&(r=await e(t))}return{didDocument:i,...r}}catch(e){throw console.error(e),new Ci("getIssuerProfile",`${i} - ${e}`)}else if(!/^(ftp|http|https):\/\/[^ "]+$/.test(t))throw new Ci("getIssuerProfile",`${i} - ${wi("errors","issuerProfileNotSet")}`);if(r=JSON.parse(await nt({url:t}).catch(e=>{throw console.error(e),new Ci("getIssuerProfile",i)})),!function(e){const t=["issuer","profile","blockcertsissuerprofile"],{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 Ci("getIssuerProfile",`${i} - ${wi("errors","issuerProfileInvalid")}`);return r},getRevokedAssertions:async function(e,t){if(!e)return[];const i=wi("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 nt({url:e});return JSON.parse(t).revokedAssertions??[]}catch(e){throw console.error(e),new Ci(Uf.checkRevokedStatus,i)}},getVerificationMap:function(e={}){const t=function({hasDid:e=!1,hasHashlinks:t=!1,hasValidFrom:i=!1,hasCredentialSchema:r=!1,isVCV2:n=!1,isVerifiablePresentation:o=!1,isIssuerProfileSigned:a=!1}){const s=JSON.parse(JSON.stringify(Ff));return e||Wf(s[$f.identityVerification],Uf.controlVerificationMethod),t||Wf(s[$f.formatValidation],Uf.checkImagesIntegrity),i&&!o||Wf(s[$f.statusCheck],Uf.ensureValidityPeriodStarted),r||Wf(s[$f.formatValidation],Uf.checkCredentialSchemaConformity),n||Wf(s[$f.formatValidation],Uf.validateDateFormat),a||Wf(s[$f.identityVerification],Uf.verifyIssuerProfile),Object.keys(s).map(e=>s[e]).flat()}(e);return{verificationProcess:t,verificationMap:Gf(t)}},lookForTx:jt,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=tp(i[e]);t[r.publicKey]=r}}else{const i=tp({},(e.issuerKeys??[])[0].key);t[i.publicKey]=i}return t}catch(e){throw console.error(e),new Ci("parseIssuerKeys",wi("errors","parseIssuerKeys"))}},parseRevocationKey:function(e){return e&&Object.prototype.hasOwnProperty.call(e,"revocationKeys")&&e.revocationKeys.length>0?e.revocationKeys[0].key:""},validateVerifiableCredential:function e(t){if(rp(t))return void(t.verifiableCredential&&t.verifiableCredential.forEach(t=>{e(t)}));if(!t.credentialSubject)throw new Error("`credentialSubject` must be defined");if(sp(t.credentialSubject),function(e){if(!Array.isArray(e))throw new Error("`type` property must be an array");const t=["VerifiableCredential","VerifiablePresentation"].filter(t=>e.includes(t));if(0===e.length||0===t.length)throw new Error("`type` property must include `VerifiableCredential` or `VerifiablePresentation`")}(t.type),function(e,t){const i=[Ot,Vt];if(!Array.isArray(e))throw new Error("`@context` property must be an array");if(!i.includes(e[0]))throw new Error(`First @context must be one of ${i.join(", ")}, given ${e[0]}`);if(np(e)&&op(e))throw new Error("Cannot have both v1 and v2 Verifiable Credential contexts");if(t.length>1&&1===e.length)throw new Error(`More specific type: ${t[1]} was detected but no additional context provided`)}(t["@context"],t.type),function(e){let t=!1;if((null==e||"string"==typeof e&&!qf(e)||"object"==typeof e&&!qf(e.id)||Array.isArray(e))&&(t=!0),t)throw new Error("`issuer` must be a URL string or an object with an `id` URL string")}(t.issuer),np(t["@context"])&&(t.issuanceDate&&ap(t.issuanceDate,"issuanceDate"),t.expirationDate&&ap(t.expirationDate,"expirationDate")),op(t["@context"])&&(t.validFrom&&ap(t.validFrom,"validFrom"),t.validUntil&&ap(t.validUntil,"validUntil")),t.credentialStatus&&cp(t.credentialStatus,"credentialStatus"),t.credentialSchema&&cp(t.credentialSchema,"credentialSchema"),t.termsOfUse&&cp(t.termsOfUse,"termsOfUse"),t.evidence&&cp(t.evidence,"evidence"),t.refreshService&&cp(t.refreshService,"refreshService"),!t.proof)throw new Error("`proof` must be defined");let{proof:i}=t;Array.isArray(i)||(i=[i]),i.forEach(e=>{!function(e){if(!e.created)throw new Error("`proof.created` must be defined");if(!e.proofPurpose)throw new Error("`proof.proofPurpose` must be defined")}(e)})}}),up={addresses:mi,certificates:Ei,chains:Ii,did:zf,i18n:ki,verifier:lp};function dp(e,t,i){return void 0===t?"":"string"==typeof t?t:(Array.isArray(t)||(t=[t]),t.find(e=>e["@language"]===i)?.[e]??t.find(e=>e["@language"]?.split("-")[0]===i.split("-")[0])?.[e]??t[0][e])}function fp(e){let t=e;return Array.isArray(e)&&(t=e[0]),t}function pp(e){"string"==typeof e&&(e=[e]);const t=(i=function(e){return e.filter(He)}(e),i.find(e=>e.toLowerCase().indexOf("blockcerts")>0));var i;if(!t)return{version:Ye.V3_0,versionNumber:3};const r=t.split("/").filter(e=>""!==e),n=Object.keys(hp),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=Ye.V1_2;break;case 2:a=Ye.V2_0;break;case 3:if(t.includes("-alpha")){a=Ye.V3_0_alpha;break}if(t.includes("-beta")){a=Ye.V3_0_beta;break}a=Ye.V3_0}return{versionNumber:o,version:a}}const hp={1:function(){throw new Ci("","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,l=e.recipientProfile??e.recipient.recipientProfile,u=e.issuedOn,d=e.metadataJson,f=l.name,p=function(e){const t=[];for(const i in e){const r=e[i],n=new Pi(r.image,r.jobTitle,r.name);t.push(n)}return t}(r.signatureLines),h=await up.verifier.getIssuerProfile(c);return{certificateImage:n,description:a,expires:i,id:t,issuedOn:u,issuer:h,metadataJson:d,name:o,recipientFullName:f,recordLink:t,revocationKey:null,sealImage:h.image,signatureImage:p,subtitle:s}},3:async function(e,t){const{metadataJson:i,metadata:r,issuanceDate:n,id:o,expirationDate:a,display:s,validUntil:c,proof:l,name:u,description:d,credentialSubject:f}=e;let{issuer:p}=e;try{up.verifier.validateVerifiableCredential(e)}catch(e){throw console.error("Error validating the Verifiable Credential format: ",e.message),new Error(`Document presented is not a valid Verifiable Credential: ${e.message}`)}let{validFrom:h}=e;const g=r??i;if(rp(e)){const e=fp(l);p=e.verificationMethod?.split("#")[0]}const b=await up.verifier.getIssuerProfile(p);if(!h){h=fp(l).created}return{display:s,expires:a??c,validFrom:h,issuedOn:n??h,id:o,issuer:b,name:dp("@value",u,t),description:dp("@value",d,t),metadataJson:g,recipientFullName:dp("name",f,t),recordLink:o}}};function gp(e){return 2===function(e){"string"==typeof e&&(e=[e]);const t=[Ot,Vt],i=e.filter(He).find(e=>t.includes(e));let r=-1;i?.includes("v1")&&(r=1);i?.includes("v2")&&(r=2);return{versionNumber:r}}(e).versionNumber}function bp(e){return(e=e.replace(/-./g,e=>e[1].toUpperCase())).charAt(0).toUpperCase()+e.slice(1)}var mp;!function(e){e.MerkleProof2017="MerkleProof2017",e.MerkleProof2019="MerkleProof2019",e.Ed25519Signature2020="Ed25519Signature2020",e.EcdsaSecp256k1Signature2019="EcdsaSecp256k1Signature2019",e.EcdsaSd2023="EcdsaSd2023",e.EddsaRdfc2022="EddsaRdfc2022"}(mp||(mp={}));class yp{expires;validFrom;id;issuer;revocationKey;documentToVerify;explorerAPIs;txData;_stepsStatuses=[];hashlinkVerifier;verificationSteps;supportedVerificationSuites={[mp.MerkleProof2017]:null,[mp.MerkleProof2019]:null,[mp.Ed25519Signature2020]:null,[mp.EcdsaSecp256k1Signature2019]:null,[mp.EcdsaSd2023]:null,[mp.EddsaRdfc2022]:null};proofVerifiers=[];verificationProcess;proofMap;proofPurpose;proofDomain;proofChallenge;constructor({certificateJson:e,expires:t,hashlinkVerifier:i,id:r,issuer:n,revocationKey:o,explorerAPIs:a,validFrom:s,proofPurpose:c,proofDomain:l,proofChallenge:u}){this.expires=t,this.validFrom=s,this.id=r,this.issuer=n,this.hashlinkVerifier=i,this.revocationKey=o,this.explorerAPIs=a,this.proofPurpose=c,this.proofDomain=l,this.proofChallenge=u,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===Vf.FAILURE);return t?this._failed(t):this._succeed()}convertCryptosuiteToType(e){return bp(e)}getRevocationListUrl(){return this.issuer.revocationList}getProofTypes(){const e=[];return this.proofMap.forEach(t=>{let{type:i}=t;"ChainedProof2021"===i&&(i=t.chainedProofType),"DataIntegrityProof"===i&&(i=this.convertCryptosuiteToType(t.cryptosuite)),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,proofPurpose:this.proofPurpose,proofDomain:this.proofDomain,proofChallenge:this.proofChallenge};this.proofVerifiers.push(new this.supportedVerificationSuites[e[i]](r))});for(const e of this.proofVerifiers)await e.init()}async loadRequiredVerificationSuites(e){if(e.includes(mp.MerkleProof2017)){const{default:e}=await import("./MerkleProof2017-C0RhRNNx-zjQMRSQY.js");this.supportedVerificationSuites.MerkleProof2017=e}if(e.includes(mp.MerkleProof2019)){const{default:e}=await import("./MerkleProof2019-B7f1hhem-CjLDyx6Q.js");this.supportedVerificationSuites.MerkleProof2019=e}if(e.includes(mp.Ed25519Signature2020)){const{default:e}=await import("./Ed25519Signature2020-fJGvlbIp-B6XhFwr4.js");this.supportedVerificationSuites.Ed25519Signature2020=e}if(e.includes(mp.EcdsaSecp256k1Signature2019)){const{default:e}=await import("./EcdsaSecp256k1Signature2019-D90cAynb-Bf5kILPF.js");this.supportedVerificationSuites.EcdsaSecp256k1Signature2019=e}if(e.includes(mp.EcdsaSd2023)){const{default:e}=await import("./EcdsaSd2023-CUjrjGzC-Cx7ejHu-.js");this.supportedVerificationSuites.EcdsaSd2023=e}if(e.includes(mp.EddsaRdfc2022)){const{default:e}=await import("./EddsaRdfc2022-XufziFi3-D5IoKiRE.js");this.supportedVerificationSuites.EddsaRdfc2022=e}}prepareVerificationProcess(){const e=up.verifier.getVerificationMap({hasDid:!!this.issuer.didDocument,hasHashlinks:this.hashlinkVerifier?.hasHashlinksToVerify()??!1,hasValidFrom:!!this.validFrom,hasCredentialSchema:!!this.documentToVerify.credentialSchema,isVCV2:gp(this.documentToVerify["@context"]),isVerifiablePresentation:rp(this.documentToVerify),isIssuerProfileSigned:!!this.issuer.proof});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=$f.proofVerification;this.verificationSteps.find(t=>t.code===e).suites=this.getSuiteSubsteps(e)}getSuiteSubsteps(e){const t={[$f.proofVerification]:"getProofVerificationSteps",[$f.identityVerification]:"getIdentityVerificationSteps"};return this.proofVerifiers.map(i=>({proofType:i.type,subSteps:i[t[e]](e)}))}registerIdentityVerificationSteps(){const e=$f.identityVerification;this.verificationSteps.find(t=>t.code===e).suites=this.getSuiteSubsteps(e)}async executeStep(e,t,i){if(!this._isFailing()){e&&this._updateStatusCallback(e,Vf.STARTING,i);try{const r=await t();return e&&(this._updateStatusCallback(e,Vf.SUCCESS,i),this._stepsStatuses.push({code:e,status:Vf.SUCCESS})),r}catch(t){console.error(t),e&&(this._updateStatusCallback(e,Vf.FAILURE,i,t.message),this._stepsStatuses.push({code:e,message:t.message,status:Vf.FAILURE}))}}}_stepCallback(e){}async checkImagesIntegrity(){await this.executeStep(Uf.checkImagesIntegrity,async()=>{await this.hashlinkVerifier.verifyHashlinkTable().catch(e=>{throw console.error("hashlink verification error",e),new Ci(Uf.checkImagesIntegrity,wi("errors","checkImagesIntegrity"))})})}async checkRevokedStatus(){if(this.documentToVerify.credentialStatus){const{default:e}=await import("./checkRevocationStatusList2021-D4VNDRlW-DgNfOAoI.js");return void await this.executeStep(Uf.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(Uf.checkRevokedStatus,()=>!0);const t=await this.executeStep(null,async()=>await up.verifier.getRevokedAssertions(e,this.id)),{default:i}=await import("./ensureNotRevoked-ByWaYoog-BheL-ZKZ.js");await this.executeStep(Uf.checkRevokedStatus,()=>{i(t,this.id)})}async checkExpiresDate(){await this.executeStep(Uf.checkExpiresDate,()=>{!function(e=null){if(!e)return;const t=Qf(e);if((new Date).getTime()>=t)throw new Ci(Uf.checkExpiresDate,`${wi("errors","ensureNotExpired")}${up.i18n.getDateFormat(e)}`)}(this.expires)})}async ensureValidityPeriodStarted(){await this.executeStep(Uf.ensureValidityPeriodStarted,()=>{!function(e=null){if(!e)return;if(Qf(e)>(new Date).getTime())throw new Ci(Uf.ensureValidityPeriodStarted,wi("errors","ensureValidityPeriodStarted"))}(this.validFrom)})}async validateDateFormat(){await this.executeStep(Uf.validateDateFormat,()=>{!function(e){for(const{dateTimeStamp:t,property:i}of e)if(!ep(t))throw console.error("Date",t,"is not valid:",i),new Ci(Uf.validateDateFormat,`${wi("errors","validateDateFormat")} ${i}`)}(up.verifier.getDatesToValidate(this.documentToVerify))})}async checkCredentialSchemaConformity(){const{default:e}=await import("./checkCredentialSchemaConformity-CgpOS3eC-AjSPoJub.js");await this.executeStep(Uf.checkCredentialSchemaConformity,async()=>{await e(this.documentToVerify.credentialSubject,this.documentToVerify.credentialSchema)})}async controlVerificationMethod(){if(!this.issuer.didDocument)return;const{default:e}=await import("./controlVerificationMethod-CSwPoUL8-CvUADmjg.js");await this.executeStep(Uf.controlVerificationMethod,()=>{e(this.issuer.didDocument,ip(this.documentToVerify.proof))})}async verifyIssuerProfile(){if(!this.issuer.proof)return;const{default:e}=await import("./verifyIssuerProfile-2PhdMtQZ-CfqcAkBL.js");await this.executeStep(Uf.verifyIssuerProfile,async()=>{await e(this.issuer)})}findStepFromVerificationProcess(e,t){return up.verifier.findVerificationSubstep(e,this.verificationSteps,t)}_failed(e){const{message:t}=e;return this._setFinalStep({status:Vf.FAILURE,message:t})}_isFailing(){return this._stepsStatuses.some(e=>e.status===Vf.FAILURE)}_succeed(){let e;return 1===this.proofVerifiers.length&&(e=this.proofVerifiers[0].type.includes("MerkleProof")?up.chains.isMockChain(this.proofVerifiers[0].getChain())?up.i18n.getComposedText("success","mocknet"):up.i18n.getComposedText("success","blockchain"):{...up.i18n.getComposedText("success","generic"),description:up.i18n.getComposedText("success","generic").description.replace("${SIGNATURE_TYPE}",this.proofVerifiers[0].type)}),this.proofVerifiers.length>1&&(e=up.i18n.getComposedText("success","multisign")),this._setFinalStep({status:Vf.SUCCESS,message:e})}_setFinalStep({status:e,message:t}){return{code:$f.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 vp,wp={exports:{}};var xp,_p=(vp||(vp=1,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]",l="[object Map]",u="[object Number]",d="[object Object]",f="[object Promise]",p="[object RegExp]",h="[object Set]",g="[object String]",b="[object Symbol]",m="[object WeakMap]",y="[object ArrayBuffer]",v="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",_="[object Int8Array]",k="[object Int16Array]",S="[object Int32Array]",P="[object Uint8Array]",C="[object Uint8ClampedArray]",E="[object Uint16Array]",I="[object Uint32Array]",A=/\w*$/,T=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,M={};M[n]=M["[object Array]"]=M[y]=M[v]=M[o]=M[a]=M[w]=M[x]=M[_]=M[k]=M[S]=M[l]=M[u]=M[d]=M[p]=M[h]=M[g]=M[b]=M[P]=M[C]=M[E]=M[I]=!0,M["[object Error]"]=M[s]=M[m]=!1;var j="object"==typeof Mi&&Mi&&Mi.Object===Object&&Mi,D="object"==typeof self&&self&&self.Object===Object&&self,R=j||D||Function("return this")(),O=t&&!t.nodeType&&t,V=O&&e&&!e.nodeType&&e,z=V&&V.exports===O;function N(e,t){return e.set(t[0],t[1]),e}function B(e,t){return e.add(t),e}function $(e,t,i,r){for(var n=-1,o=e?e.length:0;++n<o;)i=t(i,e[n],n,e);return i}function U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function F(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 K(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}var q,J=Array.prototype,W=Function.prototype,Y=Object.prototype,G=R["__core-js_shared__"],Z=(q=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",X=W.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+X.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=z?R.Buffer:void 0,re=R.Symbol,ne=R.Uint8Array,oe=H(Object.getPrototypeOf,Object),ae=Object.create,se=Y.propertyIsEnumerable,ce=J.splice,le=Object.getOwnPropertySymbols,ue=ie?ie.isBuffer:void 0,de=H(Object.keys,Object),fe=Ve(R,"DataView"),pe=Ve(R,"Map"),he=Ve(R,"Promise"),ge=Ve(R,"Set"),be=Ve(R,"WeakMap"),me=Ve(Object,"create"),ye=Ue(fe),ve=Ue(pe),we=Ue(he),xe=Ue(ge),_e=Ue(be),ke=re?re.prototype:void 0,Se=ke?ke.valueOf:void 0;function Pe(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 Ce(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 Ie(e){this.__data__=new Ce(e)}function Ae(e,t){var i=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ke(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)!Q.call(e,a)||o&&("length"==a||Be(a,r))||i.push(a);return i}function Te(e,t,i){var r=e[t];Q.call(e,t)&&Fe(r,i)&&(void 0!==i||t in e)||(e[t]=i)}function Le(e,t){for(var i=e.length;i--;)if(Fe(e[i][0],t))return i;return-1}function Me(e,t,i,r,f,m,T){var L;if(r&&(L=m?r(e,f,m,T):r(e)),void 0!==L)return L;if(!We(e))return e;var j=He(e);if(j){if(L=function(e){var t=e.length,i=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(e),!t)return function(e,t){var i=-1,r=e.length;for(t||(t=Array(r));++i<r;)t[i]=e[i];return t}(e,L)}else{var D=Ne(e),R=D==s||D==c;if(qe(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(D==d||D==n||R&&!m){if(U(e))return m?e:{};if(L=function(e){return"function"!=typeof e.constructor||$e(e)?{}:We(t=oe(e))?ae(t):{};var t}(R?{}:e),!t)return function(e,t){return Re(e,ze(e),t)}(e,function(e,t){return e&&Re(t,Ye(t),e)}(L,e))}else{if(!M[D])return m?e:{};L=function(e,t,i,r){var n,s=e.constructor;switch(t){case y:return De(e);case o:case a:return new s(+e);case v:return function(e,t){var i=t?De(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,r);case w:case x:case _:case k:case S:case P:case C:case E:case I:return function(e,t){var i=t?De(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}(e,r);case l:return function(e,t,i){var r=t?i(F(e),!0):F(e);return $(r,N,new e.constructor)}(e,r,i);case u:case g:return new s(e);case p:return function(e){var t=new e.constructor(e.source,A.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,i){var r=t?i(K(e),!0):K(e);return $(r,B,new e.constructor)}(e,r,i);case b:return n=e,Se?Object(Se.call(n)):{}}}(e,D,Me,t)}}T||(T=new Ie);var O=T.get(e);if(O)return O;if(T.set(e,L),!j)var V=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,ze)}(e):Ye(e);return function(e,t){for(var i=-1,r=e?e.length:0;++i<r&&!1!==t(e[i],i,e););}(V||e,function(n,o){V&&(n=e[o=n]),Te(L,o,Me(n,t,i,r,o,e,T))}),L}function je(e){return!(!We(e)||(t=e,Z&&Z in t))&&(Je(e)||U(e)?te:T).test(Ue(e));var t}function De(e){var t=new e.constructor(e.byteLength);return new ne(t).set(new ne(e)),t}function Re(e,t,i,r){i||(i={});for(var n=-1,o=t.length;++n<o;){var a=t[n];Te(i,a,e[a])}return i}function Oe(e,t){var i=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?i["string"==typeof t?"string":"hash"]:i.map}function Ve(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return je(i)?i:void 0}Pe.prototype.clear=function(){this.__data__=me?me(null):{}},Pe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Pe.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},Pe.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Q.call(t,e)},Pe.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?i:t,this},Ce.prototype.clear=function(){this.__data__=[]},Ce.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))},Ce.prototype.get=function(e){var t=this.__data__,i=Le(t,e);return i<0?void 0:t[i][1]},Ce.prototype.has=function(e){return Le(this.__data__,e)>-1},Ce.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},Ee.prototype.clear=function(){this.__data__={hash:new Pe,map:new(pe||Ce),string:new Pe}},Ee.prototype.delete=function(e){return Oe(this,e).delete(e)},Ee.prototype.get=function(e){return Oe(this,e).get(e)},Ee.prototype.has=function(e){return Oe(this,e).has(e)},Ee.prototype.set=function(e,t){return Oe(this,e).set(e,t),this},Ie.prototype.clear=function(){this.__data__=new Ce},Ie.prototype.delete=function(e){return this.__data__.delete(e)},Ie.prototype.get=function(e){return this.__data__.get(e)},Ie.prototype.has=function(e){return this.__data__.has(e)},Ie.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Ce){var r=i.__data__;if(!pe||r.length<199)return r.push([e,t]),this;i=this.__data__=new Ee(r)}return i.set(e,t),this};var ze=le?H(le,Object):function(){return[]},Ne=function(e){return ee.call(e)};function Be(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||L.test(e))&&e>-1&&e%1==0&&e<t}function $e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function Ue(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(fe&&Ne(new fe(new ArrayBuffer(1)))!=v||pe&&Ne(new pe)!=l||he&&Ne(he.resolve())!=f||ge&&Ne(new ge)!=h||be&&Ne(new be)!=m)&&(Ne=function(e){var t=ee.call(e),i=t==d?e.constructor:void 0,r=i?Ue(i):void 0;if(r)switch(r){case ye:return v;case ve:return l;case we:return f;case xe:return h;case _e:return m}return t});var He=Array.isArray;function Ke(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Je(e)}var qe=ue||function(){return!1};function Je(e){var t=We(e)?ee.call(e):"";return t==s||t==c}function We(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return Ke(e)?Ae(e):function(e){if(!$e(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 Me(e,!0,!0)}}(wp,wp.exports)),wp.exports),kp=ji(_p);function Sp(e){return kp(e)}function Pp(e){return e===Object(e)}function Cp(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 Ep(e,t){const i=Cp(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 Ip{certificateImage;certificateJson;description;display;expires;validFrom;explorerAPIs=[];id;isFormatValid;isVerifiablePresentation;issuedOn;issuer;locale;metadataJson;name;options;proofPurpose;proofDomain;proofChallenge;recipientFullName;recordLink;revocationKey;sealImage;signature;signatureImage;signers=[];subtitle;hashlinkVerifier;hasHashlinks=!1;verifiableCredentials;verificationSteps;verifier;verificationStatus;constructor(e,t={}){if(this._setOptions(t),"object"!=typeof e)try{e=JSON.parse(e)}catch(e){throw new Error(up.i18n.getText("errors","certificateNotValid"))}this.certificateJson=Sp(e),this.isVerifiablePresentation=rp(this.certificateJson),this.isVerifiablePresentation&&(this.verifiableCredentials=this.certificateJson.verifiableCredential?.map(e=>new Ip(e,t))??[])}async init(){if(this.isVerifiablePresentation)for(const e of this.verifiableCredentials)await e.init();if(this.certificateJson.display?.content){Cp(this.certificateJson.display.content).length&&await import("./HashlinkVerifier-udsj5z09-BTqOkVoD.js").then(e=>{this.hashlinkVerifier=new e.HashlinkVerifier})}await this.parseJson(this.certificateJson),this.verifier=new yp({certificateJson:this.certificateJson,expires:this.expires,validFrom:this.validFrom,id:this.id,issuer:this.issuer,hashlinkVerifier:this.hashlinkVerifier,revocationKey:this.revocationKey,explorerAPIs:Sp(this.explorerAPIs),proofPurpose:this.proofPurpose,proofDomain:this.proofDomain,proofChallenge:this.proofChallenge}),await this.verifier.init(),this.verificationSteps=this.verifier.getVerificationSteps()}async verify(e){let t=await this.verifier.verify(e);if(this.setSigners(),this.isVerifiablePresentation)for(const e of this.verifiableCredentials){const i=await e.verify();e.verificationStatus=i,i.status!==Vf.SUCCESS&&(t={...t,status:Vf.FAILURE,message:`Credential ${e.name?e.name+" ":""}with id ${e.id} failed verification. Error: ${i.message}`,errors:[i]})}return this.verificationStatus=t,t}async parseJson(e){const t=await async function(e,t=""){try{const i=pp(e["@context"]),r=await hp[i.versionNumber](e,t);return r.isFormatValid=!0,r}catch(e){return console.error(e),{isFormatValid:!1,error:e.message}}}(e,this.locale);if(!t.isFormatValid)throw new Error(t.error);await this._setProperties(t)}setSigners(){this.signers=this.verifier.getSignersData()}_setOptions(e){this.options=Object.assign({},bi,e),this.locale=up.i18n.ensureIsSupported("auto"===this.options.locale?up.i18n.detectLocale():this.options.locale),this.explorerAPIs=this.options.explorerAPIs??[],this.proofPurpose=this.options.proofPurpose,this.proofDomain=this.options.domain,this.proofChallenge=this.options.challenge,e.didResolverUrl&&(up.did.didResolver.url=e.didResolverUrl),up.i18n.setLocale(this.locale)}async _setProperties({certificateImage:e,description:t,display:i,expires:r,validFrom:n,id:o,isFormatValid:a,issuedOn:s,issuer:c,metadataJson:l,name:u,recipientFullName:d,recordLink:f,revocationKey:p,sealImage:h,signature:g,signatureImage:b,subtitle:m}){this.isFormatValid=a,this.certificateImage=e,this.description=t,this.expires=r,this.validFrom=n,this.id=o,this.issuedOn=s,this.issuer=c,this.metadataJson=l,this.name=u,this.recipientFullName=d,this.recordLink=f,this.revocationKey=p,this.sealImage=h,this.signature=g,this.signatureImage=b,this.subtitle=m,this.display=await this.parseHashlinksInDisplay(i)}async parseHashlinksInDisplay(e){const t=Sp(e);if(t)return"text/html"!==t.contentMediaType||(t.content=await Ep(t.content,this.hashlinkVerifier)),t}}!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"}(xp||(xp={})),void 0===globalThis.setImmediate&&(globalThis.setImmediate=(e,...t)=>setTimeout(e,0,...t));var Ap=Object.freeze({__proto__:null,BLOCKCHAINS:Qe,CERTIFICATE_VERSIONS:Ye,get CONTENT_MEDIA_TYPES(){return xp},Certificate:Ip,STEPS:Kf,SignatureImage:Pi,get VERIFICATION_STATUSES(){return Vf},VerificationSubstep:Nf,getSupportedLanguages:xi,isVerifiablePresentation:rp,retrieveBlockcertsVersion:pp});const Tp=["text","image","signature","variable"];function Lp(e){const t=(new DOMParser).parseFromString(e,xp.TEXT_HTML);return t.body.childElementCount===t.body.querySelectorAll(Tp.map(e=>`section[class*="${e}"]`).join(", ")).length}const Mp="?format=json";var jp=function(e,t){return jp=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])},jp(e,t)};function Dp(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}jp(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var Rp=function(){return Rp=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},Rp.apply(this,arguments)};function Op(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 Vp(e){return/^(ftp|http|https):\/\/[^ "]+$/.test(e)}function zp(e){return/^(\.\/|\.\.\/|[A-Z]:\/\/|\/)[^ "]+$/.test(e)}function Np(){return{certificateDefinition:null,errorMessage:"errors.invalidBlockcertsUrl"}}"function"==typeof SuppressedError&&SuppressedError;var Bp=Object.freeze({__proto__:null,displayHtmlHasNoWidthConstraint:Lp,download:function(e){return e+Mp},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:Vf.DEFAULT}))},isPathToCertificateValidURI:function(e){return Vp(e)||zp(e)},parse:function(e){return Op(this,arguments,void 0,function*(e,t={}){t.locale||(t.locale="auto");try{const{retrieveBlockcertsVersion:i,Certificate:r}=yield Promise.resolve().then(function(){return Ap});let n;if(1===i(e["@context"]).versionNumber){const{Certificate:i}=yield import("./index-RfFwckcH.js").then(function(e){return e.f});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",additionalErrorInfo:e.message}}})},read:function(e){return Op(this,void 0,void 0,function*(){if(!e)return;const t=yield function(e){return Op(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 Op(this,void 0,void 0,function*(){if(!Vp(e)&&!zp(e))return console.error("Invalid url to retrieve:",e),null;const t=e+Mp;return yield fetch(t).then(e=>Op(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(Np)})}});var $p=((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 l=r.get?function(e){return n("get"),r.get(this,e,a)}:function(e){return n("get"),this[e]},u=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),f={};d.forEach(function(e){if((s||c)&&e in a)return;const t={enumerable:!!Object.getOwnPropertyDescriptor(i,e).enumerable,get:l.bind(i,e),set:u.bind(i,e)};Object.defineProperty(a,e,t),f[e]=!0});let p=!0;if(Object.setPrototypeOf?Object.setPrototypeOf(a,Object.getPrototypeOf(i)):a.__proto__?a.__proto__=i.__proto__:p=!1,r.get||!p)for(const e in i)f[e]||Object.defineProperty(a,e,{get:l.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,Ue)}return new Proxy(e,Ue)})({certificates:Bp,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 Up(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fp,Hp,Kp,qp,Jp,Wp,Yp,Gp,Zp,Xp,Qp,eh={exports:{}},th={},ih={exports:{}},rh={};function nh(){if(Fp)return rh;function e(){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}Fp=1;var t=/javascript\s*\:/gim;return rh.whiteList=e(),rh.getDefaultWhiteList=e,rh.onAttr=function(e,t,i){},rh.onIgnoreAttr=function(e,t,i){},rh.safeAttrValue=function(e,i){return t.test(i)?"":i},rh}function oh(){return Kp?Hp:(Kp=1,Hp={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,"")}})}function ah(){if(Yp)return Wp;Yp=1;var e=nh(),t=function(){if(Jp)return qp;Jp=1;var e=oh();return qp=function(t,i){";"!==(t=e.trimRight(t))[t.length-1]&&(t+=";");var r=t.length,n=!1,o=0,a=0,s="";function c(){if(!n){var r=e.trim(t.slice(o,a)),c=r.indexOf(":");if(-1!==c){var l=e.trim(r.slice(0,c)),u=e.trim(r.slice(c+1));if(l){var d=i(o,s.length,l,u,r);d&&(s+=d+"; ")}}}o=a+1}for(;a<r;a++){var l=t[a];if("/"===l&&"*"===t[a+1]){var u=t.indexOf("*/",a+2);if(-1===u)break;o=(a=u+1)+1,n=!1}else"("===l?n=!0:")"===l?n=!1:";"===l?n||c():"\n"===l&&c()}return e.trim(s)},qp}();function i(e){return null==e}function r(t){(t=function(e){var t={};for(var i in e)t[i]=e[i];return t}(t||{})).whiteList=t.whiteList||e.whiteList,t.onAttr=t.onAttr||e.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||e.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||e.safeAttrValue,this.options=t}return oh(),r.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var r=this.options,n=r.whiteList,o=r.onAttr,a=r.onIgnoreAttr,s=r.safeAttrValue;return t(e,function(e,t,r,c,l){var u=n[r],d=!1;if(!0===u?d=u:"function"==typeof u?d=u(c):u instanceof RegExp&&(d=u.test(c)),!0!==d&&(d=!1),c=s(r,c)){var f,p={position:t,sourcePosition:e,source:l,isWhite:d};return d?i(f=o(r,c,p))?r+":"+c:f:i(f=a(r,c,p))?void 0:f}})},Wp=r}function sh(){return Gp||(Gp=1,function(e,t){var i=nh(),r=ah();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)}(ih,ih.exports)),ih.exports}function ch(){return Xp?Zp:(Xp=1,Zp={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}})}function lh(){if(Qp)return th;Qp=1;var e=sh().FilterCSS,t=sh().getDefaultWhiteList,i=ch();function r(){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","loading"],ins:["datetime"],kbd:[],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 n=new e;function o(e){return e.replace(a,"<").replace(s,">")}var a=/</g,s=/>/g,c=/"/g,l=/"/g,u=/&#([a-zA-Z0-9]*);?/gim,d=/:?/gim,f=/&newline;?/gim,p=/((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,h=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,g=/u\s*r\s*l\s*\(.*/gi;function b(e){return e.replace(c,""")}function m(e){return e.replace(l,'"')}function y(e){return e.replace(u,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function v(e){return e.replace(d,":").replace(f," ")}function w(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return i.trim(t)}function x(e){return e=w(e=v(e=y(e=m(e))))}function _(e){return e=o(e=b(e))}return th.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","loading"],ins:["datetime"],kbd:[],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"]},th.getDefaultWhiteList=r,th.onTag=function(e,t,i){},th.onIgnoreTag=function(e,t,i){},th.onTagAttr=function(e,t,i){},th.onIgnoreTagAttr=function(e,t,i){},th.safeAttrValue=function(e,t,r,o){if(r=x(r),"href"===t||"src"===t){if("#"===(r=i.trim(r)))return"#";if("http://"!==r.substr(0,7)&&"https://"!==r.substr(0,8)&&"mailto:"!==r.substr(0,7)&&"tel:"!==r.substr(0,4)&&"data:image/"!==r.substr(0,11)&&"ftp://"!==r.substr(0,6)&&"./"!==r.substr(0,2)&&"../"!==r.substr(0,3)&&"#"!==r[0]&&"/"!==r[0])return""}else if("background"===t){if(p.lastIndex=0,p.test(r))return""}else if("style"===t){if(h.lastIndex=0,h.test(r))return"";if(g.lastIndex=0,g.test(r)&&(p.lastIndex=0,p.test(r)))return"";!1!==o&&(r=(o=o||n).process(r))}return r=_(r)},th.escapeHtml=o,th.escapeQuote=b,th.unescapeQuote=m,th.escapeHtmlEntities=y,th.escapeDangerHtml5Entities=v,th.clearNonPrintableCharacter=w,th.friendlyAttrValue=x,th.escapeAttrValue=_,th.onIgnoreTagStripAll=function(){return""},th.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var r=!Array.isArray(e),n=[],o=!1;return{onIgnoreTag:function(a,s,c){if(function(t){return!!r||-1!==i.indexOf(e,t)}(a)){if(c.isClosing){var l="[/removed]",u=c.position+10;return n.push([!1!==o?o:c.position,u]),o=!1,l}return o||(o=c.position),"[removed]"}return t(a,s,c)},remove:function(e){var t="",r=0;return i.forEach(n,function(i){t+=e.slice(r,i[0]),r=i[1]}),t+=e.slice(r)}}},th.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},th.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("")},th.attributeWrapSign='"',th.cssFilter=n,th.getDefaultCSSWhiteList=t,th}var uh,dh,fh,ph,hh={};function gh(){if(uh)return hh;uh=1;var e=ch();function t(t){var i,r=e.spaceIndex(t);return i=-1===r?t.slice(1,-1):t.slice(1,r+1),"/"===(i=e.trim(i).toLowerCase()).slice(0,1)&&(i=i.slice(1)),"/"===i.slice(-1)&&(i=i.slice(0,-1)),i}function i(e){return"</"===e.slice(0,2)}var r=/[^a-zA-Z0-9\\_:.-]/gim;function n(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"="===i?t:-1}}function o(e,t){for(;t<e.length;t++){var i=e[t];if(" "!==i)return"'"===i||'"'===i?t:-1}}function a(e,t){for(;t>0;t--){var i=e[t];if(" "!==i)return"="===i?t:-1}}function s(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}return hh.parseTag=function(e,r,n){var o="",a=0,s=!1,c=!1,l=0,u=e.length,d="",f="";e:for(l=0;l<u;l++){var p=e.charAt(l);if(!1===s){if("<"===p){s=l;continue}}else if(!1===c){if("<"===p){o+=n(e.slice(a,l)),s=l,a=l;continue}if(">"===p||l===u-1){o+=n(e.slice(a,s)),d=t(f=e.slice(s,l+1)),o+=r(s,o.length,d,f,i(f)),a=l+1,s=!1;continue}if('"'===p||"'"===p)for(var h=1,g=e.charAt(l-h);""===g.trim()||"="===g;){if("="===g){c=p;continue e}g=e.charAt(l-++h)}}else if(p===c){c=!1;continue}}return a<u&&(o+=n(e.substr(a))),o},hh.parseAttr=function(t,i){var c=0,l=0,u=[],d=!1,f=t.length;function p(t,n){if(!((t=(t=e.trim(t)).replace(r,"").toLowerCase()).length<1)){var o=i(t,n||"");o&&u.push(o)}}for(var h=0;h<f;h++){var g,b=t.charAt(h);if(!1!==d||"="!==b)if(!1===d||h!==l)if(/\s|\n|\t/.test(b)){if(t=t.replace(/\s|\n|\t/g," "),!1===d){if(-1===(g=n(t,h))){p(e.trim(t.slice(c,h))),d=!1,c=h+1;continue}h=g-1;continue}if(-1===(g=a(t,h-1))){p(d,s(e.trim(t.slice(c,h)))),d=!1,c=h+1;continue}}else;else{if(-1===(g=t.indexOf(b,h+1)))break;p(d,e.trim(t.slice(l+1,g))),d=!1,c=(h=g)+1}else d=t.slice(c,h),c=h+1,l='"'===t.charAt(c)||"'"===t.charAt(c)?c:o(t,h+1)}return c<t.length&&(!1===d?p(t.slice(c)):p(d,s(e.trim(t.slice(c))))),e.trim(u.join(" "))},hh}function bh(){if(fh)return dh;fh=1;var e=sh().FilterCSS,t=lh(),i=gh(),r=i.parseTag,n=i.parseAttr,o=ch();function a(e){return null==e}function s(i){(i=function(e){var t={};for(var i in e)t[i]=e[i];return t}(i||{})).stripIgnoreTag&&(i.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),i.onIgnoreTag=t.onIgnoreTagStripAll),i.whiteList||i.allowList?i.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}(i.whiteList||i.allowList):i.whiteList=t.whiteList,this.attributeWrapSign=!0===i.singleQuotedAttributeValue?"'":t.attributeWrapSign,i.onTag=i.onTag||t.onTag,i.onTagAttr=i.onTagAttr||t.onTagAttr,i.onIgnoreTag=i.onIgnoreTag||t.onIgnoreTag,i.onIgnoreTagAttr=i.onIgnoreTagAttr||t.onIgnoreTagAttr,i.safeAttrValue=i.safeAttrValue||t.safeAttrValue,i.escapeHtml=i.escapeHtml||t.escapeHtml,this.options=i,!1===i.css?this.cssFilter=!1:(i.css=i.css||{},this.cssFilter=new e(i.css))}return s.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var i=this,s=i.options,c=s.whiteList,l=s.onTag,u=s.onIgnoreTag,d=s.onTagAttr,f=s.onIgnoreTagAttr,p=s.safeAttrValue,h=s.escapeHtml,g=i.attributeWrapSign,b=i.cssFilter;s.stripBlankChar&&(e=t.stripBlankChar(e)),s.allowCommentTag||(e=t.stripCommentTag(e));var m=!1;s.stripIgnoreTagBody&&(m=t.StripTagBody(s.stripIgnoreTagBody,u),u=m.onIgnoreTag);var y=r(e,function(e,t,i,r,s){var m={sourcePosition:e,position:t,isClosing:s,isWhite:Object.prototype.hasOwnProperty.call(c,i)},y=l(i,r,m);if(!a(y))return y;if(m.isWhite){if(m.isClosing)return"</"+i+">";var v=function(e){var t=o.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var i="/"===(e=o.trim(e.slice(t+1,-1)))[e.length-1];return i&&(e=o.trim(e.slice(0,-1))),{html:e,closing:i}}(r),w=c[i],x=n(v.html,function(e,t){var r=-1!==o.indexOf(w,e),n=d(i,e,t,r);return a(n)?r?(t=p(i,e,t,b))?e+"="+g+t+g:e:a(n=f(i,e,t,r))?void 0:n:n});return r="<"+i,x&&(r+=" "+x),v.closing&&(r+=" /"),r+=">"}return a(y=u(i,r,m))?h(r):y},h);return m&&(y=m.remove(y)),y},dh=s}var mh,yh,vh,wh,xh,_h,kh,Sh,Ph=(ph||(ph=1,function(e,t){var i=lh(),r=gh(),n=bh();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)}(eh,eh.exports)),eh.exports),Ch=Up(Ph),Eh={exports:{}},Ih={};function Ah(){if(mh)return Ih;function e(){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,gap:!1,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,"row-gap":!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}mh=1;var t=/javascript\s*\:/gim;return Ih.whiteList=e(),Ih.getDefaultWhiteList=e,Ih.onAttr=function(e,t,i){},Ih.onIgnoreAttr=function(e,t,i){},Ih.safeAttrValue=function(e,i){return t.test(i)?"":i},Ih}function Th(){return vh?yh:(vh=1,yh={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,"")}})}function Lh(){if(kh)return _h;kh=1;var e=Ah(),t=function(){if(xh)return wh;xh=1;var e=Th();return wh=function(t,i){";"!==(t=e.trimRight(t))[t.length-1]&&(t+=";");var r=t.length,n=!1,o=0,a=0,s="";function c(){if(!n){var r=e.trim(t.slice(o,a)),c=r.indexOf(":");if(-1!==c){var l=e.trim(r.slice(0,c)),u=e.trim(r.slice(c+1));if(l){var d=i(o,s.length,l,u,r);d&&(s+=d+"; ")}}}o=a+1}for(;a<r;a++){var l=t[a];if("/"===l&&"*"===t[a+1]){var u=t.indexOf("*/",a+2);if(-1===u)break;o=(a=u+1)+1,n=!1}else"("===l?n=!0:")"===l?n=!1:";"===l?n||c():"\n"===l&&c()}return e.trim(s)},wh}();function i(e){return null==e}function r(t){(t=function(e){var t={};for(var i in e)t[i]=e[i];return t}(t||{})).whiteList=t.whiteList||e.whiteList,t.onAttr=t.onAttr||e.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||e.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||e.safeAttrValue,this.options=t}return Th(),r.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var r=this.options,n=r.whiteList,o=r.onAttr,a=r.onIgnoreAttr,s=r.safeAttrValue;return t(e,function(e,t,r,c,l){var u=n[r],d=!1;if(!0===u?d=u:"function"==typeof u?d=u(c):u instanceof RegExp&&(d=u.test(c)),!0!==d&&(d=!1),c=s(r,c)){var f,p={position:t,sourcePosition:e,source:l,isWhite:d};return d?i(f=o(r,c,p))?r+":"+c:f:i(f=a(r,c,p))?void 0:f}})},_h=r}var Mh=(Sh||(Sh=1,function(e,t){var i=Ah(),r=Lh();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)}(Eh,Eh.exports)),Eh.exports),jh=Up(Mh);const Dh={...jh.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,container:!0,"aspect-ratio":!0};var Rh=/((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,Oh=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Vh=/u\s*r\s*l\s*\(.*/gi;const zh={whiteList:function(){const e=Ch.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}="${jh(i,{whiteList:Dh}).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=Ch.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(Rh.lastIndex=0,Rh.test(i))return""}else if("style"===t){if(Oh.lastIndex=0,Oh.test(i))return"";if(Vh.lastIndex=0,Vh.test(i)&&(Rh.lastIndex=0,Rh.test(i)))return"";!1!==r&&(i=(r=r||Ch.getDefaultCSSWhiteList()).process(i))}return i=Ch.escapeAttrValue(i)}},Nh=new Ch.FilterXSS(zh);function Bh(e){return Nh.process(e)}const $h="en";var Uh={locale:$h};const Fh={en:{errors:{errorLabel:"Error",additionalErrorInfoLabel:"The following error occurred:",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",additionalErrorInfoLabel:"El siguiente error ocurrió:",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",additionalErrorInfoLabel:"Cette erreur s'est produite :",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",additionalErrorInfoLabel:"Si è verificato il seguente 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:"エラー",additionalErrorInfoLabel:"次のエラーが発生しました:",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 Hh(){return Fh}function Kh(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=Hh();return n[Uh.locale]?n[Uh.locale][e]?n[Uh.locale][e][t]?n[Uh.locale][e][t]||"":"[missing locale item data]":"[missing locale group data]":"[missing locale data]"}function qh(e){const t=Kh("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=Kh("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 Jh(e){return e.display}function Wh(e){var t;return null!==(t=null==e?void 0:e.content)&&void 0!==t?t:""}function Yh(e){return null==e?void 0:e.contentMediaType}function Gh(e){var t;return null!==(t=null==e?void 0:e.contentEncoding)&&void 0!==t?t:""}function Zh(e){return e.certificateDefinition}function Xh(e){const t=Zh(e);return t?t.signers:[]}function Qh(e){const t=Zh(e);return t?t.issuedOn:""}function eg(e){return Zh(e)?qh(Qh(e)):""}function tg(e){const t=Zh(e);return t?t.recipientFullName:""}function ig(e){var t;const i=Zh(e);return i&&null!==(t=i.name)&&void 0!==t?t:""}function rg(e){const t=Zh(e);return t?t.issuer.name:""}function ng(e){const t=Zh(e);return t?t.issuer.image:""}function og(e){const t=Zh(e);return!!t&&t.isVerifiablePresentation}function ag(e){const t=Zh(e);return t?t.verifiableCredentials:[]}function sg(e){return e.verificationStatus}function cg(e){const t=function(e){const t=Zh(e);if(t)return t.certificateImage;return""}(e),i=ig(e),r=function(e){const t=Zh(e);if(t)return t.subtitle;return""}(e),n=Ig(e),o=function(e){const t=Zh(e);if(t)return t.sealImage;return""}(e),a=function(e){const t=Zh(e);if(t)return t.signatureImage;return null}(e),s=tg(e),c=rg(e),l=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='${Kh("text.signed")} ${e.jobTitle}'/>\n ${e.jobTitle?`<span class='buv-o-text-12'>${e.jobTitle}</span>`:""}\n </li>\n `);let u="";return t&&(u+=`<img class='buv-c-full-certificate-img' src='${t}' alt='${i}'/>`),u+=`\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&&(u+=`<p class='buv-c-full-certificate__description'>${n}</p>`),l.length&&(u+=`\n <ul class='buv-c-full-certificate-signatures'>\n ${l.join("\n")}\n </ul>\n `),o&&(u+=`<img class='buv-c-full-certificate-img--secondary' src='${o}' alt='${Kh("text.certified")} ${c}'/>`),u}function lg(e){const t=Zh(e);if(!t)return"";let{displayHtml:i}=t.certificateJson;return i?Bh(i):og(e)?"<div></div>":(i=ug(t),i||cg(e))}function ug(e){const t=Jh(e);if(t)switch(Yh(t)){case xp.TEXT_HTML:return Bh(t.content);case xp.IMAGE_PNG:case xp.IMAGE_JPEG:case xp.IMAGE_GIF:case xp.IMAGE_BMP:return`<img src="data:${Yh(t)};${Gh(t)},${Wh(t)}"/>`;case xp.APPLICATION_PDF:return`<embed width="100%" height="100%" type="application/pdf" src="data:${Yh(t)};${Gh(t)},${Wh(t)}"/>`;default:return""}}function dg(e){const t=Zh(e);return t&&Vp(t.recordLink)?t.recordLink:""}function fg(e){const t=dg(e);return t?$p.certificates.download(t):""}function pg(e){const t=Zh(e);if(t)try{return JSON.parse(t.metadataJson)}catch(e){return null}return null}function hg(e){var t;const i=Xh(e);return 0===i.length?null!==(t=Eg(e,"transactionLink"))&&void 0!==t?t:[]:i.map(e=>e.transactionLink)}function gg(e){var t;const i=Xh(e);return 0===i.length?null!==(t=Eg(e,"transactionId"))&&void 0!==t?t:[]:i.map(e=>e.transactionId)}function bg(e){const t=Xh(e);if(0===t.length){const t=Eg(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 mg(e){return bg(e).some(e=>"Mocknet"===e||(null==e?void 0:e.includes("Testnet")))}function yg(e,t){const i=bg(e)[t];return!!i&&("Mocknet"===i||i.includes("Testnet"))}function vg(e){return e.verifiedSteps||[]}function wg(e,t){return vg(e).find(e=>e.code===t)}function xg(e){return vg(e).some(e=>e.status===Vf.FAILURE)}function _g(e){return e.finalStep}function kg(e){return Xh(e).map(e=>e.issuerPublicKey)}function Sg(e){return Xh(e).map(e=>e.issuerProfileUrl)}function Pg(e){return Xh(e).map(e=>e.issuerProfileDomain)}function Cg(e){return Xh(e).map(e=>e.signatureSuiteType)}function Eg(e,t){const i=Zh(e);return i?[i[t]]:null}function Ig(e){var t;const i=Zh(e);return i&&null!==(t=i.description)&&void 0!==t?t:""}function Ag(e){return e.isGeneratingPDF}function Tg(e,t){switch(t.type){case De:return function(e,t){const{resetSteps:i}=t.payload;return Object.assign(Object.assign({},e),{verifiedSteps:i})}(e,t);case Ae: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:$p.certificates.initializeVerificationSteps(t.payload.certificateDefinition)})}(e,t);case Le: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 Oe:return function(e,t){const{parentStepCode:i,status:r}=t.payload;return wg(e,i).status=r,e}(e,t);case je:return function(e,t){return Object.assign(Object.assign({},e),{input:Object.assign(Object.assign({},e.input),{isValid:t.payload.isValid})})}(e,t);case Ne:return function(e,t){const{errorMessage:i,additionalErrorInfo:r}=t.payload;return Object.assign(Object.assign({},e),{errorMessage:i,additionalErrorInfo:r})}(e,t);case Be:return function(e,t){return Object.assign(Object.assign({},e),{showVerificationModal:t.payload.showVerificationModal})}(e,t);case Re: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)})}(wg(e,i),t.payload),e}(e,t);case Ve: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 $e:return function(e,t){return Object.assign(Object.assign({},e),{isGeneratingPDF:t.payload.isGeneratingPDF})}(e,t);default:return e}}var Lg,Mg;!function(e){e.FULL="full",e.CARD="card",e.FULLSCREEN="fullscreen"}(Lg||(Lg={})),function(e){e.DARK="dark",e.BRIGHT="bright"}(Mg||(Mg={}));const jg=function(e=function(e={}){return Object.assign({input:{},verifiedSteps:[],finalStep:null,verificationStatus:Vf.DEFAULT,showVerificationModal:!1,displayMode:"card",disableDownloadPdf:!1,theme:Mg.BRIGHT},e)}()){return _e(Tg,e,function(...e){return t=>(i,r)=>{const n=t(i,r);let o=()=>{throw new Error(ye(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}}}(...[Pe]))}();function Dg(e,{mapDispatchToProps:t={},mapStateToProps:i=()=>({}),ownProps:r={}}){return class extends(me(jg)(be)){mapDispatchToProps(){return function(e,t){if("function"==typeof e)return ke(e,t);if("object"!=typeof e||null===e)throw new Error(ye(16));const i={};for(const r in e){const n=e[r];"function"==typeof n&&(i[r]=ke(n,t))}return i}(t,jg.dispatch)}mapStateToProps(e){return i(jg.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 Rg(e,t){return{type:Ne,payload:{errorMessage:e,additionalErrorInfo:t}}}function Og(e){return e.status===Vf.SUCCESS}function Vg(e){return e.status===Vf.FAILURE}function zg(e){return function(t,i){if(null==e)return;const r=wg(i(),e);let n=r.status;n===Vf.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(Og)),r||e.subSteps.some(Og)}(r)&&(n=Vf.STARTING),n!==Vf.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(Og)),r&&e.subSteps.every(Og)}(r)&&(n=Vf.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(Vg)),r||e.subSteps.some(Vg)}(r)&&(n=Vf.FAILURE),t({type:Oe,payload:{parentStepCode:e,status:n}})}}class Ng{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 Bg=new Ng;function $g(e){return function(t,i){const r=function(e){return function(t){e({type:Re,payload:t}),e(zg(t.parentStep))}}(t);Bg.dispatchCb||Bg.registerCb(r),Bg.push(e),Bg.execute()}}function Ug(){return function(e,t){const i=Zh(t());let r=[];i&&(r=$p.certificates.initializeVerificationSteps(i)),e({type:De,payload:{resetSteps:r}})}}function Fg(e){return{type:Ve,payload:{status:e}}}function Hg(e){return e.disableVerify}function Kg(e){return e.allowDownload}function qg(e){return e.disableDownloadPdf}function Jg(e){return e.allowSocialShare}function Wg(e){return e.showMetadata}function Yg(e){return e.displayMode}function Gg(e){return e.theme}function Zg(e){return e.locale}function Xg(e){return e.explorerAPIs}function Qg(e){return e.clickableUrls}function eb(e){return e.didResolverUrl}function tb(e){return"string"==typeof e&&(e={label:e,description:""}),{type:ze,payload:{finalStep:e}}}function ib(){return function(e,t){return Op(this,void 0,void 0,function*(){const i=t();if(Hg(i))return void console.warn("Verification is disabled");e({type:"VERIFY_CERTIFICATE"}),e(Fg(Vf.STARTING)),e(Ug());const r=Zh(i);if(r){$p.events.dispatch("certificate-verify",r);const t=yield r.verify(t=>{e($g(t))});e(tb(t.message)),e(Fg(t.status))}})}}function rb(e){return{type:Be,payload:{showVerificationModal:e}}}function nb(e){return function(t,i){return Op(this,void 0,void 0,function*(){const r=i(),n={locale:Zg(r),explorerAPIs:Xg(r),didResolverUrl:eb(r)},{certificateDefinition:o,errorMessage:a,additionalErrorInfo:s}=yield $p.certificates.parse(e,n);t(Rg(a,s)),t({type:Te,payload:{certificateDefinition:o}}),$p.events.dispatch("certificate-load",o),null!=o&&(yield t(function(e,t){return Op(this,void 0,void 0,function*(){(function(e){return e.disableAutoVerify})(t())||(e({type:Ie}),e(rb(!0))),yield e(ib())})}))})}}function ob(e){return function(t){return Op(this,void 0,void 0,function*(){const i=$p.certificates.isPathToCertificateValidURI(e);var r;if(t((r=i,function(e){e({type:je,payload:{isValid:r}}),e(Rg(r?null:"errors.invalidUrl"))})),!i)return null;t({type:Me,payload:{url:e}});const n=yield $p.certificates.retrieve(e);n.certificateDefinition?yield t(nb(n.certificateDefinition)):t(Rg(n.errorMessage))})}}const ab=/(-\w)/g,sb=e=>e[1].toUpperCase();const cb={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:Mg,locale:String,explorerAPIs:{},"did-resolver-url":String},lb=Object.keys(cb).map(function(e){return e.replace(ab,sb)}).reduce((e,t)=>(e[t]=cb[t],e),{});function ub(e){let t;const i=Object.keys(Fh).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=$h),function(e){const t=e.split("-");return t.length>1?`${t[0].toLowerCase()}-${t[1].toUpperCase()}`:t[0].toLowerCase()}(e)}function db(e){"auto"!==e&&e||(e=navigator.language||navigator.userLanguage||navigator.browserLanguage||$h),Uh.locale=ub(e)}var fb=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::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 pb(e){return void 0===e.input.isValid||e.input.isValid}const hb=Dg(({onInput:e=()=>{},isValid:t=!0}={})=>{const i="buv-c-input "+(t?"":"is-invalid");return de`
|
|
130
|
+
${fb}
|
|
131
131
|
<label
|
|
132
132
|
for='certificate-json-url'
|
|
133
|
-
class='buv-u-visually-hidden'>${
|
|
133
|
+
class='buv-u-visually-hidden'>${Kh("text.urlInput")}</label>
|
|
134
134
|
<input
|
|
135
135
|
type='text'
|
|
136
136
|
id='certificate-json-url'
|
|
137
|
-
placeholder='${
|
|
137
|
+
placeholder='${Kh("text.urlInputPlaceholder")}'
|
|
138
138
|
class$='${i}'
|
|
139
139
|
on-input='${t=>{e(t.target.value)}}'
|
|
140
140
|
/>
|
|
141
|
-
`},{mapDispatchToProps:{onInput:
|
|
142
|
-
${
|
|
141
|
+
`},{mapDispatchToProps:{onInput:ob},mapStateToProps:e=>({isValid:pb(e)})});window.customElements.define("buv-input",hb);var gb=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 bb={onClick:function(){return function(e){e({type:"START_VERIFICATION_PROCESS"}),e(rb(!0)),e(ib())}}},mb=Dg(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`
|
|
142
|
+
${gb}
|
|
143
143
|
<button class$='${n}' on-click='${i}' disabled?='${t}'>
|
|
144
|
-
<label class='buv-c-verify-button__label'><slot>${
|
|
144
|
+
<label class='buv-c-verify-button__label'><slot>${Kh("text.verify")}</slot></label>
|
|
145
145
|
</button>
|
|
146
|
-
`},{mapDispatchToProps:
|
|
147
|
-
${
|
|
146
|
+
`},{mapDispatchToProps:bb,mapStateToProps:e=>({isDisabled:Hg(e)||!Zh(e)}),ownProps:{isHollow:Boolean,type:String}});window.customElements.define("buv-verify-button",mb);var yb=de`<style>.buv-c-certificate-input{display:flex;width:100%;padding:40px 30px;background-color:hsla(0,0%,100%,.1);border:1px solid rgba(0,0,0,.1);box-sizing:border-box}@media only screen and (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 vb=Dg(({showInput:e=!0})=>e?de`
|
|
147
|
+
${yb}
|
|
148
148
|
<section class="buv-c-certificate-input buv-qa-certificate-input">
|
|
149
149
|
<buv-input class="buv-c-certificate-input__input"></buv-input><buv-verify-button></buv-verify-button>
|
|
150
150
|
</section>
|
|
151
|
-
`:null,{mapStateToProps:e=>({showInput:!
|
|
152
|
-
${
|
|
151
|
+
`:null,{mapStateToProps:e=>({showInput:!Zh(e)})});window.customElements.define("buv-certificate-input",vb);var wb=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 xb=Dg(function({downloadLink:e,display:t=""}){if(!e)return null;const i="plaintext"===t,r=Kh("text.downloadLink"),n=["buv-c-download-link","buv-o-button-link",i?"":"buv-c-download-link--icon"].join(" ");return de`
|
|
152
|
+
${wb}
|
|
153
153
|
<a class$='${n}' href='${e}' title$='${r}'>
|
|
154
154
|
<span class$='${i?"buv-o-button-link__label":"buv-u-visually-hidden"}'>${r}</span>
|
|
155
|
-
</a>`},{mapStateToProps:e=>({downloadLink:
|
|
156
|
-
${
|
|
155
|
+
</a>`},{mapStateToProps:e=>({downloadLink:fg(e)}),ownProps:{display:String}});window.customElements.define("buv-download-link",xb);var _b=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 kb(e){return{type:$e,payload:{isGeneratingPDF:e}}}const Sb={onClick:function(){return function(e,t){return Op(this,void 0,void 0,function*(){const i=t(),{default:r}=yield import("./downloadPDF-UAsY-nU_.js").then(function(e){return e.d}),n=function(e){const t=Zh(e);return t?"displayHtml"in t.certificateJson?xp.TEXT_HTML:Yh(Jh(t)):null}(i),o=function(e){const t=Zh(e);return t?"displayHtml"in t.certificateJson?"":Gh(Jh(t)):""}(i),a=function(e){const t=Zh(e);return t?"displayHtml"in t.certificateJson?t.certificateJson.displayHtml:Wh(Jh(t)):""}(i),s=tg(i),c=ig(i),l=eg(i),u=rg(i),d=ng(i),f=dg(i),p=kg(i),h=Sg(i),g=Pg(i);e(kb(!0)),yield r({contentType:n,contentEncoding:o,content:a,recipientName:s,certificateTitle:c,issueDate:l,issuerName:u,issuerLogo:d,recordLink:f,issuerPublicKey:p,issuerProfileUrl:h,issuerProfileDomain:g}),e(kb(!1))})}}},Pb=Dg(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=Kh("text.downloadPDFLink"),a=Kh("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`
|
|
156
|
+
${_b}
|
|
157
157
|
<button onclick='${i}'
|
|
158
158
|
class$='${s}'
|
|
159
159
|
title$='${o}'>
|
|
@@ -161,14 +161,14 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
161
161
|
<span class='buv-c-download-pdf-link__label--static'>${o}</span>
|
|
162
162
|
<span class='buv-c-download-pdf-link__label--loading'>${a}</span>
|
|
163
163
|
</label>
|
|
164
|
-
</button>`},{mapDispatchToProps:
|
|
165
|
-
${
|
|
164
|
+
</button>`},{mapDispatchToProps:Sb,mapStateToProps:e=>({isVisible:!!Zh(e),isGeneratingPDF:Ag(e)}),ownProps:{display:String}});window.customElements.define("buv-download-pdf-link",Pb);var Cb=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;transition:right ease .5s,opacity .2s}.buv-u-slide-from-right.is-active{right:0;opacity:1}</style>`,Eb=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 Ib=({onClick:e=()=>{},className:t=""}={})=>de`
|
|
165
|
+
${Eb}
|
|
166
166
|
<button onclick='${e}' class$='${`buv-c-close-button buv-c-close-button--hairline ${t||"buv-c-close-button--position"} `}'>
|
|
167
|
-
<label class='buv-u-visually-hidden'>${
|
|
167
|
+
<label class='buv-u-visually-hidden'>${Kh("text.closeButton")}</label>
|
|
168
168
|
</button>
|
|
169
169
|
`;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){const{format:i,title:r}=e;let{type:n}=e;Array.isArray(n)&&(n=n[0]);const o=de`<dt class='buv-c-metadata-list__title'>${r}</dt>`;let a=!1,s="",c=de`${t}`;if("string"===n)switch(i){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 l=de`<dd class='buv-c-metadata-list__detail'>
|
|
170
|
-
<pre class='buv-c-metadata-list__detail-text'>${c}</pre></dd>`;return de`${o}${l}`}(t[r],n)})}const o="plaintext"===t,a=
|
|
171
|
-
${
|
|
170
|
+
<pre class='buv-c-metadata-list__detail-text'>${c}</pre></dd>`;return de`${o}${l}`}(t[r],n)})}const o="plaintext"===t,a=Kh(e?"text.metadataButton":"errors.noMetadata"),s=["buv-c-metadata-link","buv-o-button-link",o?"":"buv-c-metadata-link--icon"].join(" ");return de`
|
|
171
|
+
${Cb}
|
|
172
172
|
<button onclick='${this.toggleOpen}'
|
|
173
173
|
class$='${s}'
|
|
174
174
|
disabled?='${!e}'
|
|
@@ -177,15 +177,15 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
177
177
|
<label class$='${o?"buv-o-button-link__label":"buv-u-visually-hidden"}'>${a}</label>
|
|
178
178
|
</button>
|
|
179
179
|
<section class$='${r}'>
|
|
180
|
-
<h1 class='buv-c-metadata-container__title'>${
|
|
181
|
-
${
|
|
180
|
+
<h1 class='buv-c-metadata-container__title'>${Kh("text.metadataTitle")}</h1>
|
|
181
|
+
${Ib({onClick:this.toggleOpen,className:"buv-c-metadata-container__close-button"})}
|
|
182
182
|
<dl class='buv-c-metadata-list buv-o-text-12'>${n}</dl>
|
|
183
183
|
</section>
|
|
184
|
-
`}});const
|
|
184
|
+
`}});const Ab=Dg(function(e){return de`
|
|
185
185
|
<buv-metadata-raw
|
|
186
186
|
metadataList='${e.metadataList}'
|
|
187
187
|
display='${e.display}'
|
|
188
|
-
></buv-metadata-raw>`},{mapStateToProps:e=>({metadataList:
|
|
188
|
+
></buv-metadata-raw>`},{mapStateToProps:e=>({metadataList:pg(e)}),ownProps:{display:String}});window.customElements.define("buv-metadata",Ab);var Tb=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":""}'>
|
|
189
189
|
<a
|
|
190
190
|
href='${e.shareUrl}'
|
|
191
191
|
title='Share on ${e.name}'
|
|
@@ -193,14 +193,14 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
193
193
|
target='_blank'
|
|
194
194
|
onclick='${()=>{t(e.name)}}'
|
|
195
195
|
>
|
|
196
|
-
<span>${
|
|
196
|
+
<span>${Kh("text.share")} ${e.name}</span>
|
|
197
197
|
</a>
|
|
198
198
|
</li>`),o=de`<ul class='buv-c-social-share-modal__list'>
|
|
199
199
|
${n}
|
|
200
200
|
</ul>`;return r?o:de`<div class='buv-c-social-share-modal buv-o-text-12 buv-o-overlay'>
|
|
201
|
-
${
|
|
201
|
+
${Ib({onClick:this.toggleOpen,className:"buv-c-social-share-modal__close-button"})}
|
|
202
202
|
${o}
|
|
203
|
-
</div>`}sharingButton({url:e,display:t}){if("plaintext"===t)return void(this.isOpen=!0);const i=!!e,r=
|
|
203
|
+
</div>`}sharingButton({url:e,display:t}){if("plaintext"===t)return void(this.isOpen=!0);const i=!!e,r=Kh(i?"text.shareButton":"text.noShareUrl");return de`<button
|
|
204
204
|
onclick='${this.toggleOpen}'
|
|
205
205
|
class='buv-c-social-share-link buv-o-button-link'
|
|
206
206
|
disabled?='${!i}'
|
|
@@ -209,16 +209,16 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
209
209
|
>
|
|
210
210
|
<label class='buv-u-visually-hidden'>${r}</label>
|
|
211
211
|
</button>`}_render(e){return de`
|
|
212
|
-
${
|
|
212
|
+
${Tb}
|
|
213
213
|
${this.sharingButton(e)}
|
|
214
214
|
${this.sharingTemplate(e)}
|
|
215
|
-
`}});const
|
|
215
|
+
`}});const Lb={onShare:function(e){return function(t,i){const r=Zh(i());$p.events.dispatch("certificate-share",r,{socialNetwork:e}),t({type:"SHARE_SOCIAL_NETWORK"})}}},Mb=Dg(function(e){return de`
|
|
216
216
|
<buv-social-share-raw
|
|
217
217
|
url='${e.url}'
|
|
218
218
|
onShare='${e.onShare}'
|
|
219
219
|
display='${e.display}'
|
|
220
|
-
></buv-social-share-raw>`},{mapDispatchToProps:
|
|
221
|
-
${
|
|
220
|
+
></buv-social-share-raw>`},{mapDispatchToProps:Lb,mapStateToProps:e=>({url:dg(e)}),ownProps:{display:String}});window.customElements.define("buv-social-share",Mb);var jb=de`<style>.buv-c-action-menu{display:flex;align-items:center;padding:0}.buv-c-action-menu-item{flex-basis:30px}</style>`;const Db=Dg(({allowDownload:e,disableDownloadPdf:t,allowSocialShare:i,showMetadata:r,isVisible:n})=>(e||!t||i||r||(n=!1),n?de`
|
|
221
|
+
${jb}
|
|
222
222
|
<menu class='buv-c-action-menu'>
|
|
223
223
|
${e?de`
|
|
224
224
|
<menuitem class='buv-c-action-menu-item'>
|
|
@@ -237,10 +237,10 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
237
237
|
<buv-social-share></buv-social-share>
|
|
238
238
|
</menuitem>`:""}
|
|
239
239
|
</menu>
|
|
240
|
-
`:null),{mapStateToProps:e=>({allowDownload:
|
|
241
|
-
${
|
|
240
|
+
`:null),{mapStateToProps:e=>({allowDownload:Kg(e),disableDownloadPdf:qg(e),allowSocialShare:Jg(e),showMetadata:Wg(e),isVisible:"full"===Yg(e)&&!!Zh(e)})});window.customElements.define("buv-action-menu",Db);var Rb=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>`,Ob=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 Vb=!1,zb=!1;function Nb(e){return function(t){return Op(this,void 0,void 0,function*(){t({type:"UPLOAD_CERTIFICATE_DEFINITION"});const i=yield $p.certificates.read(e);t(nb(JSON.parse(i)))})}}const Bb=Dg(function({onChange:e=()=>{},hideFileUpload:t=!1}){return t?null:de`
|
|
241
|
+
${Ob}
|
|
242
242
|
<label for='buv-json-file-upload' class='buv-o-link buv-o-text-12'>
|
|
243
|
-
<span class='buv-o-link__text--underline'>${
|
|
243
|
+
<span class='buv-o-link__text--underline'>${Kh("text.fileUpload")}</span>
|
|
244
244
|
<input
|
|
245
245
|
type='file'
|
|
246
246
|
accept='application/json'
|
|
@@ -249,12 +249,12 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
249
249
|
onchange='${t=>{e(t.target.files[0])}}'
|
|
250
250
|
/>
|
|
251
251
|
</label>
|
|
252
|
-
${(
|
|
253
|
-
${
|
|
252
|
+
${(Vb?zb:(Vb=!0,!("ontouchstart"in document.createElement("div"))&&(zb=!0,zb)))?de`<span class="buv-o-text-12 qa-drag-and-drop-hint">${Kh("text.dragAndDropHint")}</span>`:""}`},{mapDispatchToProps:{onChange:Nb},mapStateToProps:e=>({hideFileUpload:!!Zh(e)})});function $b(){return function(e){e(Ug()),e(function(e){e({type:"RESET_VERIFICATION_STATUS"}),e(Fg(Vf.DEFAULT)),e(tb(null))}),e({type:Le,payload:{definition:null}})}}window.customElements.define("buv-file-upload",Bb);var Ub=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 Fb=Dg(function({onClick:e=()=>{},isVisible:t=!1}={}){return t?de`
|
|
253
|
+
${Ub}
|
|
254
254
|
<a onclick='${e}' class='buv-o-text-12 buv-o-link buv-c-verify-other-certificate buv-qa-verify-other-certificate'>
|
|
255
|
-
<span class='buv-o-link__text--underline'>${
|
|
255
|
+
<span class='buv-o-link__text--underline'>${Kh("text.verifyOther")}</span>
|
|
256
256
|
</a>
|
|
257
|
-
`:null},{mapDispatchToProps:{onClick
|
|
257
|
+
`:null},{mapDispatchToProps:{onClick:$b},mapStateToProps:e=>({isVisible:!!Zh(e)})});window.customElements.define("buv-verify-other-certificate",Fb);var Hb=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>`,Kb=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 qb(){return de`
|
|
258
258
|
<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">
|
|
259
259
|
<g fill="none" fill-rule="evenodd">
|
|
260
260
|
<g transform="translate(-76 -70)">
|
|
@@ -279,11 +279,11 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
279
279
|
</g>
|
|
280
280
|
</g>
|
|
281
281
|
</svg>
|
|
282
|
-
<span class='buv-u-visually-hidden'>${
|
|
283
|
-
`}const
|
|
284
|
-
${
|
|
285
|
-
<a href='https://www.blockcerts.org' title='${
|
|
286
|
-
${t?
|
|
282
|
+
<span class='buv-u-visually-hidden'>${Kh("text.motto")}</span>
|
|
283
|
+
`}const Jb=({className:e="",showMotto:t=!1}={className:"",showMotto:!1})=>de`
|
|
284
|
+
${Kb}
|
|
285
|
+
<a href='https://www.blockcerts.org' title='${Kh("text.blockcertsHint")}' class$='buv-c-logo ${e}'>
|
|
286
|
+
${t?qb():de`
|
|
287
287
|
<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">
|
|
288
288
|
<defs></defs>
|
|
289
289
|
<g id="Page-1" stroke="none" stroke-width="1" fill-rule="evenodd" fill-opacity="0.37">
|
|
@@ -305,72 +305,72 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
305
305
|
</g>
|
|
306
306
|
</g>
|
|
307
307
|
</svg>
|
|
308
|
-
<span class='buv-u-visually-hidden'>${
|
|
308
|
+
<span class='buv-u-visually-hidden'>${Kh("text.brandname")}</span>
|
|
309
309
|
`}
|
|
310
|
-
</a>`,
|
|
311
|
-
${
|
|
310
|
+
</a>`,Wb=Dg(({forceInPlace:e=!1,interactive:t=!1,theme:i}={})=>{const r=["buv-c-footer",e?"buv-c-footer--forced":"",i===Mg.DARK?"buv-c-footer--dark":""].join(" ");return de`
|
|
311
|
+
${Hb}
|
|
312
312
|
<footer class$='${r}'>
|
|
313
313
|
${t?de`<section>
|
|
314
314
|
<buv-file-upload></buv-file-upload>
|
|
315
315
|
<buv-verify-other-certificate></buv-verify-other-certificate>
|
|
316
316
|
</section>`:""}
|
|
317
|
-
${
|
|
318
|
-
</footer>`},{mapStateToProps:e=>({theme:
|
|
319
|
-
${
|
|
317
|
+
${Jb()}
|
|
318
|
+
</footer>`},{mapStateToProps:e=>({theme:Gg(e)}),ownProps:{forceInPlace:Boolean,interactive:Boolean}});window.customElements.define("buv-footer",Wb);var Yb=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`
|
|
319
|
+
${Yb}
|
|
320
320
|
<div class$='${e}' onclick='${this.handleClick}'>
|
|
321
321
|
<div class='buv-c-modal__content buv-o-overlay' onclick='${e=>{e.stopPropagation()}}'>
|
|
322
|
-
${
|
|
322
|
+
${Ib({className:"buv-c-modal__close-button",onClick:this.handleClick})}
|
|
323
323
|
<slot></slot>
|
|
324
324
|
</div>
|
|
325
325
|
</div>
|
|
326
|
-
`}});var
|
|
327
|
-
${
|
|
326
|
+
`}});var Gb=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%;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.7143}.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:hsla(0,0%,100%,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;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>`,Zb=de`<style>.buv-c-error-message{background:#fae5e7;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 Xb(e,t="",i=!1){if(null==e)return null;const r=["buv-c-error-message","buv-qa-error-message",i?"buv-c-error-message--solid":""].join(" ");return de`
|
|
327
|
+
${Zb}
|
|
328
328
|
<div class$='${r}'>
|
|
329
329
|
<p>
|
|
330
|
-
<span class='buv-c-error-message-title'>${
|
|
331
|
-
${function(e){return function(e){return e.includes(".")&&!e.includes(" ")}(e)?
|
|
330
|
+
<span class='buv-c-error-message-title'>${Kh("errors.errorLabel")}</span>
|
|
331
|
+
${function(e){return function(e){return e.includes(".")&&!e.includes(" ")}(e)?Kh(e):e}(e)}
|
|
332
332
|
</p>
|
|
333
333
|
${t?de`<p class='buv-c-error-message-additional-info'>
|
|
334
|
-
<span class='buv-c-error-message-additional-info-title'>${
|
|
334
|
+
<span class='buv-c-error-message-additional-info-title'>${Kh("errors.additionalErrorInfoLabel")}</span>
|
|
335
335
|
<br>
|
|
336
336
|
<br>
|
|
337
337
|
${t}
|
|
338
338
|
</p>`:""}
|
|
339
339
|
</div>
|
|
340
|
-
`}function
|
|
340
|
+
`}function Qb({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`${Gb}<dt class$='${a}'>${e}</dt>`:de`${Gb}<dd class='buv-c-verification-step buv-c-verification-substep buv-o-text-12'>
|
|
341
341
|
${e}
|
|
342
|
-
${
|
|
343
|
-
</dd>`,de`${s}`}var
|
|
342
|
+
${Xb(i)}
|
|
343
|
+
</dd>`,de`${s}`}var em=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-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;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.7143}.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:hsla(0,0%,100%,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;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.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;text-align:left}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:#e9f7f1;border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:#fae5e7;border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:#fef6e8;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-final-verification-step--standalone.is-overlay{min-width:500px;width:100%}.buv-c-verification-substep.is-overlay{min-width:500px;width:500px}.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-c-final-verification-step--overlay{position:absolute;top:0;left:0;height:30px;width:35px;padding:4px;transition:width .3s ease-in-out,height .3s ease-in-out,padding .3s ease-in-out;overflow:hidden}.buv-c-final-verification-step--overlay:hover{padding:10px;width:100%;height:auto}.buv-u-excluded-from-flow{position:absolute}.buv-u-full-width{width:100%}</style>`;function tm(e){return e.verificationStatus}function im(e,t){var i;const r=null===(i=vg(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===Vf.SUCCESS)?Vf.SUCCESS:r.subSteps.some(e=>e.status===Vf.FAILURE)?Vf.FAILURE:"":""}function rm(e){return e.showVerificationModal}const nm=Dg(function({chain:e=[""],transactionLink:t=[""],isTestChain:i=!1,isVisible:r=!1,finalStep:n=null,hideLink:o=!1,status:a="",standalone:s=!1,isOverlay:c=!1}={}){if(!n)return;const l=[s?"buv-c-final-verification-step--standalone-wrapper":"",`is-${a}`,i?"is-test":"",c?"buv-c-final-verification-step--overlay":""].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":"",c?"is-overlay":"",`is-${a}`,a&&!s?"buv-c-badge buv-c-badge--large":""].join(" "),d=["buv-c-verification-substep",s?"":"buv-u-excluded-from-flow","buv-u-full-width","buv-o-text-12","is-final",r?"is-visible":"",c?"is-overlay":""].join(" "),f=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]}'>
|
|
344
344
|
<span class='buv-o-link__text--underline buv-qa-transaction-link'>${n.linkText}</span>
|
|
345
345
|
</a>`:"";return de`
|
|
346
|
-
${
|
|
346
|
+
${em}
|
|
347
347
|
<div class$='${l}'>
|
|
348
348
|
<dt class$='${u}'>${f}</dt>
|
|
349
349
|
<dd class$='${d}'>
|
|
350
|
-
${h}
|
|
351
350
|
${p}
|
|
351
|
+
${h}
|
|
352
352
|
</dd>
|
|
353
353
|
<slot></slot>
|
|
354
354
|
</div>
|
|
355
|
-
`},{mapStateToProps:e=>({finalStep:
|
|
355
|
+
`},{mapStateToProps:e=>({finalStep:_g(e),chain:bg(e),transactionLink:hg(e),isTestChain:mg(e),status:tm(e)}),ownProps:{isVisible:Boolean,hideLink:Boolean,standalone:Boolean,isOverlay:Boolean,status:String,finalStep:Object}});window.customElements.define("buv-final-verification-step",nm);var om=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;transition:-webkit-transform .3s ease-in;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;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`
|
|
356
356
|
${this.renderSuiteTitle(i,e)}
|
|
357
|
-
<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} ${
|
|
358
|
-
${
|
|
359
|
-
<a title='${
|
|
360
|
-
<span class='buv-o-link__text--underline'>${this.isOpen?
|
|
357
|
+
<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} ${Kh("text","item",!0,s)}`,l=this.isOpen?this.totalHeight:1,u=["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`
|
|
358
|
+
${om}
|
|
359
|
+
<a title='${Kh("text.substepsListHint")}' onclick='${this.toggleOpen}' class$='${u}'>
|
|
360
|
+
<span class='buv-o-link__text--underline'>${this.isOpen?Kh("text.substepsListClose"):c}</span>
|
|
361
361
|
</a>
|
|
362
362
|
<div class$='${d}' style$='max-height: ${l}px'>
|
|
363
|
-
${a.map(e=>de`${
|
|
363
|
+
${a.map(e=>de`${Qb(e)}`)}
|
|
364
364
|
${this.renderSuites(o,i)}
|
|
365
365
|
</div>
|
|
366
|
-
`}});var
|
|
367
|
-
<span class='buv-u-visually-hidden'>${
|
|
366
|
+
`}});var am=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{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`
|
|
367
|
+
<span class='buv-u-visually-hidden'>${Kh("text.verificationStepProgress")}</span>
|
|
368
368
|
<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>
|
|
369
369
|
`}_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!==Vf.DEFAULT).map((e,r)=>de`
|
|
370
|
-
${
|
|
370
|
+
${Qb(Object.assign(Object.assign({},e),{isParent:!0,isFirst:0===r,isTestChain:i}))}
|
|
371
371
|
${e.status===Vf.STARTING?de`${this.verificationInProgressTemplate()}`:de`<buv-substeps-list subSteps='${e.subSteps}' suites='${e.suites}' hasError?='${t}'></buv-substeps-list>`}
|
|
372
372
|
`),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===Vf.SUCCESS)||e.some(e=>e.status===Vf.FAILURE);return a&&(o="100%"),de`
|
|
373
|
-
${
|
|
373
|
+
${am}
|
|
374
374
|
<section class='buv-c-verification-process'>
|
|
375
375
|
<div class='buv-c-verification-progress-bar' >
|
|
376
376
|
<div class$='${n}' style$='max-height: ${o}'></div>
|
|
@@ -380,13 +380,13 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
380
380
|
<buv-final-verification-step isVisible='${a&&!t}'></buv-final-verification-step>
|
|
381
381
|
</dl>
|
|
382
382
|
</section>
|
|
383
|
-
`}});const
|
|
383
|
+
`}});const sm=Dg(function({steps:e,hasError:t,isTestChain:i}){return de`<buv-verification-process-raw
|
|
384
384
|
steps='${e}'
|
|
385
385
|
hasError?='${t}'
|
|
386
386
|
isTestChain?='${i}'
|
|
387
387
|
style='max-width: 100%;'
|
|
388
|
-
></buv-verification-process-raw>`},{mapStateToProps:e=>({steps:JSON.parse(JSON.stringify(
|
|
389
|
-
${
|
|
388
|
+
></buv-verification-process-raw>`},{mapStateToProps:e=>({steps:JSON.parse(JSON.stringify(vg(e))),isTestChain:mg(e),hasError:xg(e)})});window.customElements.define("buv-verification-process",sm);const cm=Dg(function({isOpen:e,onClose:t}){return de`
|
|
389
|
+
${Rb}
|
|
390
390
|
<buv-modal isOpen?='${e}' onClose='${t}' class$="qa-isopen-${e}">
|
|
391
391
|
<div class='buv-c-verification-modal__content'>
|
|
392
392
|
<buv-card-certificate class='buv-c-verification-modal__certificate' hideRecordLink hideVerifyButton></buv-card-certificate>
|
|
@@ -395,8 +395,8 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
395
395
|
</div>
|
|
396
396
|
<buv-footer forceInPlace></buv-footer>
|
|
397
397
|
</buv-modal>
|
|
398
|
-
`},{mapDispatchToProps:{onClose:
|
|
399
|
-
${
|
|
398
|
+
`},{mapDispatchToProps:{onClose:rb.bind(null,!1)},mapStateToProps:e=>({isOpen:rm(e)})});window.customElements.define("buv-verification-modal",cm);var lm=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?Kh("errors.invalidFormatDragAndDrop"):"";return de`
|
|
399
|
+
${lm}
|
|
400
400
|
<div ondragenter='${this.handleDragEnter}'>
|
|
401
401
|
<div class$='${e}'
|
|
402
402
|
ondragover='${this.handleDragOver}'
|
|
@@ -405,34 +405,34 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
405
405
|
></div>
|
|
406
406
|
<span>${t}</span>
|
|
407
407
|
<slot></slot>
|
|
408
|
-
</div>`}});const
|
|
408
|
+
</div>`}});const um=Dg(function(e){return de`
|
|
409
409
|
<buv-drag-and-drop-raw
|
|
410
410
|
onDrop='${e.onDrop}'
|
|
411
411
|
>
|
|
412
412
|
<slot></slot>
|
|
413
|
-
</buv-drag-and-drop-raw>`},{mapDispatchToProps:{onDrop:
|
|
414
|
-
${
|
|
413
|
+
</buv-drag-and-drop-raw>`},{mapDispatchToProps:{onDrop:Nb}});window.customElements.define("buv-drag-and-drop",um);var dm=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>`,fm=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__description{font-size:12px;margin:5px 0 0;font-weight:400}.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 pm=Dg(function(e){const{hasCertificateDefinition:t,recipientName:i,certificateTitle:r,certificateDescription:n,issuedOn:o,issueDate:a,issuerName:s,recordLink:c,hideVerifyButton:l,disableDownloadPdf:u}=e;let{hideRecordLink:d}=e;if(!t)return null;c||d||(d=!0);const f=["buv-c-card__title",d?"buv-c-card__title--no-padding":""].join(" ");return de`
|
|
414
|
+
${fm}
|
|
415
415
|
<section class='buv-c-card'>
|
|
416
416
|
<div class='buv-c-card__img-wrapper'>
|
|
417
|
-
${function(e){return
|
|
417
|
+
${function(e){return Op(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)}
|
|
418
418
|
</div>
|
|
419
419
|
<div class='buv-c-card__title-wrapper'>
|
|
420
420
|
<h1 class$=${f}>${r}</h1>
|
|
421
421
|
${n?de`<h3 class="buv-c-card__description">${n}</h3>`:""}
|
|
422
422
|
<h2 class$='${f} buv-c-card__recipient'>${i}</h2>
|
|
423
|
-
<span class='buv-o-text-12'>${
|
|
423
|
+
<span class='buv-o-text-12'>${Kh("text.issued")} <time datetime$='${o}'>${a}</time> ${Kh("text.by")} ${s}</span>
|
|
424
424
|
${u?"":de`<div class='buv-c-card__download-button'>
|
|
425
425
|
<buv-download-pdf-link></buv-download-pdf-link>
|
|
426
426
|
</div>`}
|
|
427
427
|
</div>
|
|
428
428
|
${d?"":de`<a class='buv-o-text-12 buv-o-link buv-c-card__record-link qa-card-record-link' href='${c}' target='_blank'>
|
|
429
|
-
<span class='buv-o-link__text--underline'>${
|
|
429
|
+
<span class='buv-o-link__text--underline'>${Kh("text.viewRecord")}</span>
|
|
430
430
|
</a>`}
|
|
431
431
|
</section>
|
|
432
432
|
${l?"":de`<buv-final-verification-step class='buv-c-fullscreen-certificate__verification-status' isVisible hideLink standalone>
|
|
433
|
-
<buv-verify-button type='link'>${
|
|
433
|
+
<buv-verify-button type='link'>${Kh("text.verifyAgain")}</buv-verify-button>
|
|
434
434
|
</buv-final-verification-step>`}
|
|
435
|
-
`},{mapStateToProps:e=>({hasCertificateDefinition:!!
|
|
435
|
+
`},{mapStateToProps:e=>({hasCertificateDefinition:!!Zh(e),recipientName:tg(e),certificateTitle:ig(e),certificateDescription:Ig(e),issueDate:eg(e),issuedOn:Qh(e),issuerName:rg(e),issuerLogo:ng(e),recordLink:dg(e),disableDownloadPdf:qg(e)}),ownProps:{hideRecordLink:Boolean,hideVerifyButton:Boolean}});window.customElements.define("buv-card-certificate",pm);
|
|
436
436
|
/**
|
|
437
437
|
* @license
|
|
438
438
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -446,24 +446,24 @@ const Yd="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function G
|
|
|
446
446
|
* subject to an additional IP rights grant found at
|
|
447
447
|
* http://polymer.github.io/PATENTS.txt
|
|
448
448
|
*/
|
|
449
|
-
const
|
|
450
|
-
${
|
|
449
|
+
const hm=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 gm=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 (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>`,bm=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 mm={en:function(e){const t=Kh("numbers","ordinal"),i=e%100;return t[(i-20)%10]||t[i]||t[0]},fr:function(e){const t=Kh("numbers","ordinal");return 1===e?t[e]:t[0]},es:()=>Kh("numbers","ordinal"),it:()=>Kh("numbers","ordinal"),mt:e=>Kh("numbers","ordinal")[e-1]};function ym(e){return"mt"===Uh.locale?mm[Uh.locale](e):e+mm[Uh.locale](e)}var vm=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-badge{position:relative}.buv-c-badge::before{content:"";position:absolute;left:-32px;top:0;width:12px;height:12px;background-color:#fff;border-radius:50%;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.7143}.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:hsla(0,0%,100%,.8)}.buv-c-verification-step::after{content:"";position:absolute;z-index:3;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.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;text-align:left}.buv-c-final-verification-step--standalone-wrapper.is-success{background-color:#e9f7f1;border-color:#2ab27b}.buv-c-final-verification-step--standalone-wrapper.is-failure{background-color:#fae5e7;border-color:#d0021b}.buv-c-final-verification-step--standalone-wrapper.is-test{background-color:#fef6e8;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-final-verification-step--standalone.is-overlay{min-width:500px;width:100%}.buv-c-verification-substep.is-overlay{min-width:500px;width:500px}.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-c-final-verification-step--overlay{position:absolute;top:0;left:0;height:30px;width:35px;padding:4px;transition:width .3s ease-in-out,height .3s ease-in-out,padding .3s ease-in-out;overflow:hidden}.buv-c-final-verification-step--overlay:hover{padding:10px;width:100%;height:auto}.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 wm=Dg(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===Vf.FAILURE&&(i="signatureStatusFailure"),Kh("text",i)}(e,t);return de`
|
|
450
|
+
${vm}
|
|
451
451
|
<a class$='${i}' title$='${r}'>
|
|
452
452
|
<span class='buv-u-visually-hidden'>${r}</span>
|
|
453
453
|
<slot></slot>
|
|
454
454
|
</a>
|
|
455
|
-
`},{mapStateToProps:(e,t)=>({isTestChain:
|
|
456
|
-
${u[e]}${
|
|
457
|
-
</buv-suite-verification-status>`}),n[e]&&f.push({title:`${t}${
|
|
455
|
+
`},{mapStateToProps:(e,t)=>({isTestChain:yg(e,parseInt(t.index,10)),status:im(e,t.suiteType)}),ownProps:{suiteType:String,index:String}});function xm(e){return"grid"===e}function _m(e){return"column"===e}function km(e){return e?` (${e})`:""}window.customElements.define("buv-suite-verification-status",wm);const Sm=Dg(function({recipientName:e,issuedOn:t,issueDate:i,issuerName:r,issuerProfileDomain:n=[],issuerProfileUrl:o=[],issuerPublicKey:a=[],transactionId:s=[],display:c,hideRecipientName:l,signatureSuiteType:u=[],chain:d=[]}){const f=[];l||f.push({title:Kh("text.recipient"),value:e}),f.push({title:Kh("text.issueDate"),value:de`<time datetime$='${t}'>${i}</time>`},{title:Kh("text.issuerName"),value:null!=r?r:Kh("errors.noIssuerName")});for(let e=0;e<a.length;e++){let t="";a.length>1&&(t=`${ym(e+1)} `),u[e]&&f.push({title:`${t}${Kh("text.signatureSuiteType")}`,value:de`<buv-suite-verification-status suiteType$='${u[e]}' index$='${e}'>
|
|
456
|
+
${u[e]}${km(d[e])}
|
|
457
|
+
</buv-suite-verification-status>`}),n[e]&&f.push({title:`${t}${Kh("text.issuerProfileDomain")}`,value:de`<a href$='${o[e]}' target="_blank">${n[e]}</a>`}),a[e]&&f.push({title:`${t}${Kh("text.issuerPublicKey")}`,value:a[e]}),s[e]&&f.push({title:`${t}${Kh("text.transactionId")}`,value:s[e]})}const p=f.map(e=>function({title:e,value:t,display:i,renderInline:r=!1}){const n=["buv-c-certificate-details__group",_m(i)?"":"buv-c-certificate-details__group--row",xm(i)?"buv-c-certificate-details__group--row-grid":""].join(" "),o=["buv-c-certificate-details__title",_m(i)?"":"buv-o-text-11"].join(" "),a=["buv-c-certificate-details__value",r?"buv-c-certificate-details--inline":""].join(" ");return de`<div class$='${n}'>
|
|
458
458
|
<dt class$='${o}'>${e}</dt>
|
|
459
459
|
<dd class$='${a}'>${t}</dd>
|
|
460
|
-
</div>`}(Object.assign(Object.assign({},e),{display:c}))),
|
|
461
|
-
${
|
|
462
|
-
<dl class$='${
|
|
463
|
-
${
|
|
460
|
+
</div>`}(Object.assign(Object.assign({},e),{display:c}))),h=["buv-c-certificate-details","buv-o-text-13",_m(c)?"buv-c-certificate-details--column":"",xm(c)?"buv-c-certificate-details--grid":""].join(" ");return de`
|
|
461
|
+
${bm}
|
|
462
|
+
<dl class$='${h}'>
|
|
463
|
+
${p}
|
|
464
464
|
</dl>
|
|
465
|
-
`},{mapStateToProps:e=>({recipientName:
|
|
466
|
-
${
|
|
465
|
+
`},{mapStateToProps:e=>({recipientName:tg(e),issueDate:eg(e),issuedOn:Qh(e),issuerName:rg(e),transactionId:gg(e),issuerPublicKey:kg(e),issuerProfileDomain:Pg(e),issuerProfileUrl:Sg(e),signatureSuiteType:Cg(e),chain:bg(e)}),ownProps:{display:String,hideRecipientName:Boolean}});window.customElements.define("buv-certificate-details",Sm);var Pm=de`<style>.buv-c-verifiable-presentation{margin:0;padding:0;list-style-type:none;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.slider{width:525px;text-align:center;overflow:hidden}.buv-c-verifiable-presentation__credential{scroll-snap-align:start;flex-shrink:0;width:100%;height:300px;margin-right:50px;transform-origin:center center;transform:scale(1);transition:transform .5s;display:flex;justify-content:center;padding-top:0}.buv-c-verifiable-presentation-navigation{display:inline-flex;text-decoration:none;align-items:center;justify-content:center;margin:0 0 .5rem;cursor:pointer}.buv-c-verifiable-presentation-navigation__link.is-active,.buv-c-verifiable-presentation-navigation__link:active,.buv-c-verifiable-presentation-navigation__link:focus{border-bottom:1px dashed}</style>`;window.customElements.define("buv-verifiable-presentation-raw",class extends be{static get properties(){return{verifiableCredentials:String}}constructor(){super(),this.scrollCredentialIntoView=this.scrollCredentialIntoView.bind(this),this.activateLink=this.activateLink.bind(this)}scrollCredentialIntoView(e){const t=this.shadowRoot.getElementById(e);this.activateLink(e),t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}activateLink(e){this.vcNavigationElements.forEach(e=>{e.classList.remove("is-active")});this.shadowRoot.querySelector(`[data-target="${e}"]`).classList.add("is-active")}_firstRendered(){this.vcNavigationElements=this.shadowRoot.querySelectorAll(".js-verifiable-presentation-navigation"),this.scrollItems=this.shadowRoot.querySelectorAll(".js-scroll-snap-item"),this.scrollItems.forEach(e=>{"onscrollsnapchange"in e?e.addEventListener("scrollsnapchange",e=>{const t=e.snapTargetInline.getAttribute("id");this.activateLink(t)}):e.addEventListener("scroll",()=>{const t=Array.from(e.children).find(e=>{const t=e.getBoundingClientRect();return t.left>=0&&t.right<=window.innerWidth});if(t){const e=t.getAttribute("id");this.activateLink(e)}})})}_render({verifiableCredentials:e}){const t=JSON.parse(e);return de`
|
|
466
|
+
${Pm}
|
|
467
467
|
<ul>
|
|
468
468
|
${t.map((e,t)=>{const i=["js-verifiable-presentation-navigation","buv-c-verifiable-presentation-navigation__link",0===t?"is-active":""].join(" ");return de`
|
|
469
469
|
<li class="buv-c-verifiable-presentation-navigation">
|
|
@@ -480,10 +480,10 @@ const Em=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
|
|
|
480
480
|
<ul class="buv-c-verifiable-presentation js-scroll-snap-item">
|
|
481
481
|
${t.map(e=>{var t,i,r,n;return de`
|
|
482
482
|
<li id$="${e.id}" class="buv-c-verifiable-presentation__credential">
|
|
483
|
-
${
|
|
483
|
+
${hm(ug(e))}
|
|
484
484
|
<buv-final-verification-step
|
|
485
|
-
finalStep="${"string"==typeof(null===(t=
|
|
486
|
-
status$="${null===(n=
|
|
485
|
+
finalStep="${"string"==typeof(null===(t=sg(e))||void 0===t?void 0:t.message)?{label:null===(i=sg(e))||void 0===i?void 0:i.message}:null===(r=sg(e))||void 0===r?void 0:r.message}"
|
|
486
|
+
status$="${null===(n=sg(e))||void 0===n?void 0:n.status}"
|
|
487
487
|
isVisible
|
|
488
488
|
standalone
|
|
489
489
|
isOverlay
|
|
@@ -493,52 +493,52 @@ const Em=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
|
|
|
493
493
|
`})}
|
|
494
494
|
</ul>
|
|
495
495
|
</div>
|
|
496
|
-
`}});const
|
|
496
|
+
`}});const Cm=Dg(function(e){return de`
|
|
497
497
|
<buv-verifiable-presentation-raw verifiableCredentials="${e.verifiableCredentials}"></buv-verifiable-presentation-raw>
|
|
498
|
-
`},{mapStateToProps:e=>({verifiableCredentials:JSON.stringify(vg(e))})});window.customElements.define("buv-verifiable-presentation",zm);var Bm=Object.prototype.hasOwnProperty;function $m(e){return"boolean"==typeof e}function Um(e,t){for(var i=e.length-1;i>=0;i--)!0===t(e[i])&&e.splice(i,1)}function Fm(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var Hm=/\s+/,Km=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},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(Hm):[],n=e.split(Hm);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(Hm):[],n=e.split(Hm);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(){var e=this.getAttrs(),t=[];for(var i in e)Bm.call(e,i)&&t.push(i+'="'+e[i]+'"');return t.join(" ")},e}();function qm(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}function Jm(e,t,i){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}var Wm=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 Km({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.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.length)return e;var i=t.length,r=t.location;return"smart"===r?function(e,t,i){var r,n;if(null==i?(i="…",n=3,r=8):(n=i.length,r=i.length),e.length<=t)return e;var o=t-n,a=function(e){var t={},i=e,r=i.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],i=i.slice(r[0].length)),(r=i.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=r[1],i=i.slice(r[0].length)),(r=i.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=r[1],i=i.slice(r[0].length)),(r=i.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=r[1],i=i.slice(r[0].length)),(r=i.match(/^#(.*?)$/i))&&(t.fragment=r[1]),t}(e);if(a.query){var s=a.query.match(/^(.*?)(?=(\?|#))(.*?)$/i);s&&(a.query=a.query.substr(0,s[1].length),e=qm(a))}if(e.length<=t)return e;if(a.host&&(a.host=a.host.replace(/^www\./,""),e=qm(a)),e.length<=t)return e;var c="";if(a.host&&(c+=a.host),c.length>=o)return a.host.length===t?(a.host.substr(0,t-n)+i).substr(0,o+r):Jm(c,o,i).substr(0,o+r);var l="";if(a.path&&(l+="/"+a.path),a.query&&(l+="?"+a.query),l){if((c+l).length>=o)return(c+l).length==t?(c+l).substr(0,t):(c+Jm(l,o-c.length,i)).substr(0,o+r);c+=l}if(a.fragment){var u="#"+a.fragment;if((c+u).length>=o)return(c+u).length==t?(c+u).substr(0,t):(c+Jm(u,o-c.length,i)).substr(0,o+r);c+=u}if(a.scheme&&a.host){var d=a.scheme+"://";if((c+d).length<o)return(d+c).substr(0,t)}if(c.length<=t)return c;var f="";return o>0&&(f=c.substr(-1*Math.floor(o/2))),(c.substr(0,Math.ceil(o/2))+i+f).substr(0,o+r)}(e,i):"middle"===r?function(e,t,i){if(e.length<=t)return e;var r,n;null==i?(i="…",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="…",r=3):r=i.length,e=e.substring(0,t-r)+i),e}(e,t,i)}(e,i)},e}(),Ym=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}();function Gm(e){return e>=65&&e<=90||e>=97&&e<=122}function Zm(e){return e>=48&&e<=57}function Xm(e){return 34==e||39==e}function Qm(e){return e<8232?e<160?e>=9&&e<=13||32==e:e<5760?160==e:5760==e||e>=8192&&e<=8202:e<8287?e>=8232&&e<=8233||8239==e:e<12288?8287==e:12288==e||65279==e}function ey(e){return e<4800?e<2949?e<2451?e<1425?e<768?e<192?e<169?e<65?e>=48&&e<=57:e>=65&&e<=90||e>=97&&e<=122:e<181?e>=169&&e<=170||174==e:181==e||186==e:e<710?e<216?e>=192&&e<=214:e>=216&&e<=246||e>=248&&e<=705:e<748?e>=710&&e<=721||e>=736&&e<=740:748==e||750==e:e<910?e<895?e<886?e>=768&&e<=884:e>=886&&e<=887||e>=890&&e<=893:e<904?895==e||902==e:e>=904&&e<=906||908==e:e<1155?e<931?e>=910&&e<=929:e>=931&&e<=1013||e>=1015&&e<=1153:e<1369?e>=1155&&e<=1327||e>=1329&&e<=1366:1369==e||e>=1377&&e<=1415:e<1808?e<1552?e<1476?e<1471?e>=1425&&e<=1469:1471==e||e>=1473&&e<=1474:e<1488?e>=1476&&e<=1477||1479==e:e>=1488&&e<=1514||e>=1520&&e<=1522:e<1749?e<1568?e>=1552&&e<=1562:e>=1568&&e<=1641||e>=1646&&e<=1747:e<1770?e>=1749&&e<=1756||e>=1759&&e<=1768:e>=1770&&e<=1788||1791==e:e<2230?e<2042?e<1869?e>=1808&&e<=1866:e>=1869&&e<=1969||e>=1984&&e<=2037:e<2112?2042==e||e>=2048&&e<=2093:e>=2112&&e<=2139||e>=2208&&e<=2228:e<2406?e<2260?e>=2230&&e<=2237:e>=2260&&e<=2273||e>=2275&&e<=2403:e<2437?e>=2406&&e<=2415||e>=2417&&e<=2435:e>=2437&&e<=2444||e>=2447&&e<=2448:e<2693?e<2579?e<2519?e<2486?e<2474?e>=2451&&e<=2472:e>=2474&&e<=2480||2482==e:e<2503?e>=2486&&e<=2489||e>=2492&&e<=2500:e>=2503&&e<=2504||e>=2507&&e<=2510:e<2534?e<2524?2519==e:e>=2524&&e<=2525||e>=2527&&e<=2531:e<2565?e>=2534&&e<=2545||e>=2561&&e<=2563:e>=2565&&e<=2570||e>=2575&&e<=2576:e<2631?e<2613?e<2602?e>=2579&&e<=2600:e>=2602&&e<=2608||e>=2610&&e<=2611:e<2620?e>=2613&&e<=2614||e>=2616&&e<=2617:2620==e||e>=2622&&e<=2626:e<2649?e<2635?e>=2631&&e<=2632:e>=2635&&e<=2637||2641==e:e<2662?e>=2649&&e<=2652||2654==e:e>=2662&&e<=2677||e>=2689&&e<=2691:e<2821?e<2759?e<2730?e<2703?e>=2693&&e<=2701:e>=2703&&e<=2705||e>=2707&&e<=2728:e<2741?e>=2730&&e<=2736||e>=2738&&e<=2739:e>=2741&&e<=2745||e>=2748&&e<=2757:e<2784?e<2763?e>=2759&&e<=2761:e>=2763&&e<=2765||2768==e:e<2809?e>=2784&&e<=2787||e>=2790&&e<=2799:2809==e||e>=2817&&e<=2819:e<2887?e<2858?e<2831?e>=2821&&e<=2828:e>=2831&&e<=2832||e>=2835&&e<=2856:e<2869?e>=2858&&e<=2864||e>=2866&&e<=2867:e>=2869&&e<=2873||e>=2876&&e<=2884:e<2911?e<2902?e>=2887&&e<=2888||e>=2891&&e<=2893:e>=2902&&e<=2903||e>=2908&&e<=2909:e<2929?e>=2911&&e<=2915||e>=2918&&e<=2927:2929==e||e>=2946&&e<=2947:e<3517?e<3205?e<3046?e<2984?e<2969?e<2958?e>=2949&&e<=2954:e>=2958&&e<=2960||e>=2962&&e<=2965:e<2974?e>=2969&&e<=2970||2972==e:e>=2974&&e<=2975||e>=2979&&e<=2980:e<3014?e<2990?e>=2984&&e<=2986:e>=2990&&e<=3001||e>=3006&&e<=3010:e<3024?e>=3014&&e<=3016||e>=3018&&e<=3021:3024==e||3031==e:e<3142?e<3086?e<3072?e>=3046&&e<=3055:e>=3072&&e<=3075||e>=3077&&e<=3084:e<3114?e>=3086&&e<=3088||e>=3090&&e<=3112:e>=3114&&e<=3129||e>=3133&&e<=3140:e<3160?e<3146?e>=3142&&e<=3144:e>=3146&&e<=3149||e>=3157&&e<=3158:e<3174?e>=3160&&e<=3162||e>=3168&&e<=3171:e>=3174&&e<=3183||e>=3200&&e<=3203:e<3333?e<3274?e<3242?e<3214?e>=3205&&e<=3212:e>=3214&&e<=3216||e>=3218&&e<=3240:e<3260?e>=3242&&e<=3251||e>=3253&&e<=3257:e>=3260&&e<=3268||e>=3270&&e<=3272:e<3296?e<3285?e>=3274&&e<=3277:e>=3285&&e<=3286||3294==e:e<3313?e>=3296&&e<=3299||e>=3302&&e<=3311:e>=3313&&e<=3314||e>=3329&&e<=3331:e<3423?e<3389?e<3342?e>=3333&&e<=3340:e>=3342&&e<=3344||e>=3346&&e<=3386:e<3402?e>=3389&&e<=3396||e>=3398&&e<=3400:e>=3402&&e<=3406||e>=3412&&e<=3415:e<3458?e<3430?e>=3423&&e<=3427:e>=3430&&e<=3439||e>=3450&&e<=3455:e<3482?e>=3458&&e<=3459||e>=3461&&e<=3478:e>=3482&&e<=3505||e>=3507&&e<=3515:e<3804?e<3722?e<3570?e<3535?e<3520?3517==e:e>=3520&&e<=3526||3530==e:e<3544?e>=3535&&e<=3540||3542==e:e>=3544&&e<=3551||e>=3558&&e<=3567:e<3664?e<3585?e>=3570&&e<=3571:e>=3585&&e<=3642||e>=3648&&e<=3662:e<3716?e>=3664&&e<=3673||e>=3713&&e<=3714:3716==e||e>=3719&&e<=3720:e<3754?e<3737?e<3725?3722==e:3725==e||e>=3732&&e<=3735:e<3749?e>=3737&&e<=3743||e>=3745&&e<=3747:3749==e||3751==e:e<3776?e<3757?e>=3754&&e<=3755:e>=3757&&e<=3769||e>=3771&&e<=3773:e<3784?e>=3776&&e<=3780||3782==e:e>=3784&&e<=3789||e>=3792&&e<=3801:e<4176?e<3902?e<3872?e<3840?e>=3804&&e<=3807:3840==e||e>=3864&&e<=3865:e<3895?e>=3872&&e<=3881||3893==e:3895==e||3897==e:e<3974?e<3913?e>=3902&&e<=3911:e>=3913&&e<=3948||e>=3953&&e<=3972:e<4038?e>=3974&&e<=3991||e>=3993&&e<=4028:4038==e||e>=4096&&e<=4169:e<4688?e<4301?e<4256?e>=4176&&e<=4253:e>=4256&&e<=4293||4295==e:e<4348?4301==e||e>=4304&&e<=4346:e>=4348&&e<=4680||e>=4682&&e<=4685:e<4746?e<4698?e>=4688&&e<=4694||4696==e:e>=4698&&e<=4701||e>=4704&&e<=4744:e<4786?e>=4746&&e<=4749||e>=4752&&e<=4784:e>=4786&&e<=4789||e>=4792&&e<=4798:e<11035?e<7416?e<6176?e<5873?e<4992?e<4824?e<4802?4800==e:e>=4802&&e<=4805||e>=4808&&e<=4822:e<4888?e>=4824&&e<=4880||e>=4882&&e<=4885:e>=4888&&e<=4954||e>=4957&&e<=4959:e<5121?e<5024?e>=4992&&e<=5007:e>=5024&&e<=5109||e>=5112&&e<=5117:e<5761?e>=5121&&e<=5740||e>=5743&&e<=5759:e>=5761&&e<=5786||e>=5792&&e<=5866:e<6002?e<5920?e<5888?e>=5873&&e<=5880:e>=5888&&e<=5900||e>=5902&&e<=5908:e<5984?e>=5920&&e<=5940||e>=5952&&e<=5971:e>=5984&&e<=5996||e>=5998&&e<=6e3:e<6108?e<6016?e>=6002&&e<=6003:e>=6016&&e<=6099||6103==e:e<6155?e>=6108&&e<=6109||e>=6112&&e<=6121:e>=6155&&e<=6157||e>=6160&&e<=6169:e<6783?e<6512?e<6400?e<6272?e>=6176&&e<=6263:e>=6272&&e<=6314||e>=6320&&e<=6389:e<6448?e>=6400&&e<=6430||e>=6432&&e<=6443:e>=6448&&e<=6459||e>=6470&&e<=6509:e<6608?e<6528?e>=6512&&e<=6516:e>=6528&&e<=6571||e>=6576&&e<=6601:e<6688?e>=6608&&e<=6617||e>=6656&&e<=6683:e>=6688&&e<=6750||e>=6752&&e<=6780:e<7040?e<6832?e<6800?e>=6783&&e<=6793:e>=6800&&e<=6809||6823==e:e<6992?e>=6832&&e<=6846||e>=6912&&e<=6987:e>=6992&&e<=7001||e>=7019&&e<=7027:e<7245?e<7168?e>=7040&&e<=7155:e>=7168&&e<=7223||e>=7232&&e<=7241:e<7376?e>=7245&&e<=7293||e>=7296&&e<=7304:e>=7376&&e<=7378||e>=7380&&e<=7414:e<8450?e<8130?e<8025?e<7960?e<7424?e>=7416&&e<=7417:e>=7424&&e<=7669||e>=7675&&e<=7957:e<8008?e>=7960&&e<=7965||e>=7968&&e<=8005:e>=8008&&e<=8013||e>=8016&&e<=8023:e<8031?e<8027?8025==e:8027==e||8029==e:e<8118?e>=8031&&e<=8061||e>=8064&&e<=8116:e>=8118&&e<=8124||8126==e:e<8205?e<8150?e<8134?e>=8130&&e<=8132:e>=8134&&e<=8140||e>=8144&&e<=8147:e<8178?e>=8150&&e<=8155||e>=8160&&e<=8172:e>=8178&&e<=8180||e>=8182&&e<=8188:e<8305?e<8252?8205==e:8252==e||8265==e:e<8336?8305==e||8319==e:e>=8336&&e<=8348||e>=8400&&e<=8432:e<8579?e<8486?e<8469?e<8455?8450==e:8455==e||e>=8458&&e<=8467:e<8482?8469==e||e>=8473&&e<=8477:8482==e||8484==e:e<8495?e<8488?8486==e:8488==e||e>=8490&&e<=8493:e<8517?e>=8495&&e<=8505||e>=8508&&e<=8511:e>=8517&&e<=8521||8526==e:e<9410?e<9e3?e<8592?e>=8579&&e<=8580:e>=8592&&e<=8703||e>=8986&&e<=8987:e<9193?9e3==e||9167==e:e>=9193&&e<=9203||e>=9208&&e<=9210:e<9723?e<9654?9410==e||e>=9642&&e<=9643:9654==e||9664==e:e<10548?e>=9723&&e<=9726||e>=9728&&e<=10175:e>=10548&&e<=10549||e>=11013&&e<=11015:e<43259?e<12445?e<11688?e<11520?e<11264?e<11088?e>=11035&&e<=11036:11088==e||11093==e:e<11360?e>=11264&&e<=11310||e>=11312&&e<=11358:e>=11360&&e<=11492||e>=11499&&e<=11507:e<11568?e<11559?e>=11520&&e<=11557:11559==e||11565==e:e<11647?e>=11568&&e<=11623||11631==e:e>=11647&&e<=11670||e>=11680&&e<=11686:e<11744?e<11712?e<11696?e>=11688&&e<=11694:e>=11696&&e<=11702||e>=11704&&e<=11710:e<11728?e>=11712&&e<=11718||e>=11720&&e<=11726:e>=11728&&e<=11734||e>=11736&&e<=11742:e<12330?e<11823?e>=11744&&e<=11775:11823==e||e>=12293&&e<=12294:e<12353?e>=12330&&e<=12341||e>=12347&&e<=12349:e>=12353&&e<=12438||e>=12441&&e<=12442:e<42512?e<12951?e<12549?e<12449?e>=12445&&e<=12447:e>=12449&&e<=12538||e>=12540&&e<=12543:e<12704?e>=12549&&e<=12589||e>=12593&&e<=12686:e>=12704&&e<=12730||e>=12784&&e<=12799:e<19968?e<12953?12951==e:12953==e||e>=13312&&e<=19893:e<42192?e>=19968&&e<=40917||e>=40960&&e<=42124:e>=42192&&e<=42237||e>=42240&&e<=42508:e<42891?e<42623?e<42560?e>=42512&&e<=42539:e>=42560&&e<=42610||e>=42612&&e<=42621:e<42775?e>=42623&&e<=42725||e>=42736&&e<=42737:e>=42775&&e<=42783||e>=42786&&e<=42888:e<43072?e<42928?e>=42891&&e<=42926:e>=42928&&e<=42935||e>=42999&&e<=43047:e<43216?e>=43072&&e<=43123||e>=43136&&e<=43205:e>=43216&&e<=43225||e>=43232&&e<=43255:e<55243?e<43744?e<43488?e<43312?e<43261?43259==e:43261==e||e>=43264&&e<=43309:e<43392?e>=43312&&e<=43347||e>=43360&&e<=43388:e>=43392&&e<=43456||e>=43471&&e<=43481:e<43600?e<43520?e>=43488&&e<=43518:e>=43520&&e<=43574||e>=43584&&e<=43597:e<43642?e>=43600&&e<=43609||e>=43616&&e<=43638:e>=43642&&e<=43714||e>=43739&&e<=43741:e<43824?e<43785?e<43762?e>=43744&&e<=43759:e>=43762&&e<=43766||e>=43777&&e<=43782:e<43808?e>=43785&&e<=43790||e>=43793&&e<=43798:e>=43808&&e<=43814||e>=43816&&e<=43822:e<44012?e<43868?e>=43824&&e<=43866:e>=43868&&e<=43877||e>=43888&&e<=44010:e<44032?e>=44012&&e<=44013||e>=44016&&e<=44025:e>=44032&&e<=55203||e>=55216&&e<=55238:e<64848?e<64298?e<64112?e<55296?e>=55243&&e<=55291:e>=55296&&e<=57343||e>=63744&&e<=64109:e<64275?e>=64112&&e<=64217||e>=64256&&e<=64262:e>=64275&&e<=64279||e>=64285&&e<=64296:e<64320?e<64312?e>=64298&&e<=64310:e>=64312&&e<=64316||64318==e:e<64326?e>=64320&&e<=64321||e>=64323&&e<=64324:e>=64326&&e<=64433||e>=64467&&e<=64829:e<65296?e<65024?e<64914?e>=64848&&e<=64911:e>=64914&&e<=64967||e>=65008&&e<=65019:e<65136?e>=65024&&e<=65039||e>=65056&&e<=65071:e>=65136&&e<=65140||e>=65142&&e<=65276:e<65474?e<65345?e>=65296&&e<=65305||e>=65313&&e<=65338:e>=65345&&e<=65370||e>=65382&&e<=65470:e<65490?e>=65474&&e<=65479||e>=65482&&e<=65487:e>=65490&&e<=65495||e>=65498&&e<=65500}function ty(e){return e<58?e<44?33==e:44==e||46==e:e<63?e>=58&&e<=59:63==e||94==e}function iy(e){return e<91?40==e:91==e||123==e}function ry(e){return e<93?41==e:93==e||125==e}var ny=/^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|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--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|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|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|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|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|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|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|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|banamex|bauhaus|bestbuy|booking|brother|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|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|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|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|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|yamaxun|youtube|zuerich|католик|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|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|kindle|kosher|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|nagoya|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|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|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|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|loans|locus|lotte|lotto|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|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|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|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|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|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|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|scb|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|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)$/,oy=/https?:\/\//i,ay=new RegExp("^"+oy.source,"i"),sy=/^(javascript|vbscript):/i,cy=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,ly=/^(?:\/\/)?([^/#?:]+)/,uy=Gm;function dy(e){return Gm(e)||Zm(e)||43===e||45===e||46===e}var fy=ey;function hy(e){return 95===e||fy(e)}function py(e){return ey(e)||((t=e)<91?t<47?t>=35&&t<=43||45==t:t<61?47==t:61==t||64==t:t<95?91==t||93==t:t<123?95==t:t>=123&&t<=126||10003==t)||ty(e);var t}function gy(e){return 47===e||63===e||35===e}function by(e){return ny.test(e.toLowerCase())}var my=/^(?:(?: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]?)$/,yy=/[:/?#]/;var vy=/^(https?:\/\/)?(?:www\.)?/i,wy=/^\/\//,xy=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 Dh(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(/&/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=e.replace(wy,"")),this.stripPrefix.scheme&&(e=e.replace(ay,"")),this.stripPrefix.www&&(e=function(e){return e.includes("www.")?e.replace(vy,"$1"):e}(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|26|27|3C|3E)/gi,function(e){return"%22"===e?""":"%26"===e?"&":"%27"===e?"'":"%3C"===e||"%3c"===e?"<":">"});if(t.includes("%"))try{return decodeURIComponent(t)}catch(e){}return t}(e)),e},t}(Ym);var _y=/^mailto:/i,ky=ey;function Sy(e){return ky(e)||((t=e)<47?t<42?33==t||t>=35&&t<=39:t>=42&&t<=43||45==t:t<63?47==t||61==t:t<94?63==t:t>=94&&t<=96||t>=123&&t<=126);var t}var Py=function(e){function t(t){var i=e.call(this,t)||this;return i.type="email",i.email="",i.email=t.email,i}return Dh(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}(Ym);function Cy(e){return 95===e||ey(e)}var Ey=["twitter","facebook","instagram","tiktok","youtube"],Iy=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 Dh(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;case"youtube":return"https://youtube.com/hashtag/"+t;default:Fm(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}(Ym),Ty={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/,youtube:/^@[-.·\w]{3,30}$/};function Ly(e){return 45===e||46===e||95===e||Gm(e)||Zm(e)}var Ay=["twitter","instagram","soundcloud","tiktok","youtube"],My=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 Dh(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;case"youtube":return"https://youtube.com/@"+this.mention;default:Fm(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}(Ym),jy=/[-. ()]/,Dy=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 Ry(e){return 45===e||46===e||32===e}function Oy(e){return 44===e||59===e}var Vy=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 Dh(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}(Ym),Ny=function(){function e(e,t){this.charIdx=0,this.matches=[],this._stateMachines=[],this.schemeUrlMachinesCount=0,this.text=e,this.tagBuilder=t.tagBuilder,this.stripPrefix=t.stripPrefix,this.stripTrailingSlash=t.stripTrailingSlash,this.decodePercentEncoding=t.decodePercentEncoding,this.hashtagServiceName=t.hashtagServiceName,this.mentionServiceName=t.mentionServiceName}return Object.defineProperty(e.prototype,"stateMachines",{get:function(){return this._stateMachines},enumerable:!1,configurable:!0}),e.prototype.addMachine=function(e){this._stateMachines.push(e),Dv(e)&&this.schemeUrlMachinesCount++},e.prototype.removeMachine=function(e){this._stateMachines=this._stateMachines.filter(function(t){return t!==e}),Dv(e)&&this.schemeUrlMachinesCount--},e.prototype.hasSchemeUrlMachine=function(){return this.schemeUrlMachinesCount>0},e}();function zy(e,t,i){var r=e.charIdx;if(35===i)e.addMachine({type:2,startIdx:r,state:28,acceptStateReached:!1});else if(64===i)e.addMachine(function(e,t){return{type:3,startIdx:e,state:t,acceptStateReached:!1}}(r,30));else if(47===i)e.addMachine(Mv(r,11));else if(43===i)e.addMachine(jv(r,37));else if(40===i)e.addMachine(jv(r,32));else{if(Zm(i)&&(e.addMachine(jv(r,38)),e.addMachine(function(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:2,octetsEncountered:1}}(r,13))),ky(i)){var n="m"===t.toLowerCase()?15:22;e.addMachine(function(e,t){return{type:1,startIdx:e,state:t,acceptStateReached:!1}}(r,n))}uy(i)&&e.addMachine(Av(r,0)),ey(i)&&e.addMachine(Mv(r,5))}}function By(e,t,i){58===i?t.state=2:45===i?t.state=1:dy(i)||e.removeMachine(t)}function $y(e,t,i){var r=e.charIdx;45===i||(47===i?(e.removeMachine(t),e.addMachine(Mv(r,11))):dy(i)?t.state=0:e.removeMachine(t))}function Uy(e,t,i){var r=e.charIdx;47===i?t.state=3:46===i?e.removeMachine(t):fy(i)?(t.state=5,uy(i)&&e.addMachine(Av(r,0))):e.removeMachine(t)}function Fy(e,t,i){47===i?t.state=4:py(i)?(t.state=10,t.acceptStateReached=!0):Iv(e,t)}function Hy(e,t,i,r){47===r?(t.state=10,t.acceptStateReached=!0):fy(r)?(t.state=5,t.acceptStateReached=!0):e.removeMachine(t)}function Ky(e,t,i){47===i?t.state=12:e.removeMachine(t)}function qy(e,t,i){fy(i)?t.state=5:e.removeMachine(t)}function Jy(e,t,i){46===i?t.state=7:45===i?t.state=6:58===i?t.state=8:gy(i)?t.state=10:hy(i)||Iv(e,t)}function Wy(e,t,i,r){45===r||(46===r?Iv(e,t):fy(r)?t.state=5:Iv(e,t))}function Yy(e,t,i,r){46===r?Iv(e,t):fy(r)?(t.state=5,t.acceptStateReached=!0):Iv(e,t)}function Gy(e,t,i){46===i?t.state=14:58===i?t.state=8:Zm(i)||(gy(i)?t.state=10:ey(i)?e.removeMachine(t):Iv(e,t))}function Zy(e,t,i){Zm(i)?(t.octetsEncountered++,4===t.octetsEncountered&&(t.acceptStateReached=!0),t.state=13):Iv(e,t)}function Xy(e,t,i){Zm(i)?t.state=9:Iv(e,t)}function Qy(e,t,i){Zm(i)||(gy(i)?t.state=10:Iv(e,t))}function ev(e,t,i){py(i)||Iv(e,t)}function tv(e,t,i,r){"a"===i.toLowerCase()?t.state=16:cv(e,t,r)}function iv(e,t,i,r){"i"===i.toLowerCase()?t.state=17:cv(e,t,r)}function rv(e,t,i,r){"l"===i.toLowerCase()?t.state=18:cv(e,t,r)}function nv(e,t,i,r){"t"===i.toLowerCase()?t.state=19:cv(e,t,r)}function ov(e,t,i,r){"o"===i.toLowerCase()?t.state=20:cv(e,t,r)}function av(e,t,i){58===i?t.state=21:cv(e,t,i)}function sv(e,t,i){Sy(i)?t.state=22:e.removeMachine(t)}function cv(e,t,i){46===i?t.state=23:64===i?t.state=24:Sy(i)?t.state=22:e.removeMachine(t)}function lv(e,t,i){46===i||64===i?e.removeMachine(t):Sy(i)?t.state=22:e.removeMachine(t)}function uv(e,t,i){fy(i)?t.state=25:e.removeMachine(t)}function dv(e,t,i){46===i?t.state=27:45===i?t.state=26:hy(i)||Iv(e,t)}function fv(e,t,i){45===i||46===i?Iv(e,t):hy(i)?t.state=25:Iv(e,t)}function hv(e,t,i){46===i||45===i?Iv(e,t):fy(i)?(t.state=25,t.acceptStateReached=!0):Iv(e,t)}function pv(e,t,i){Cy(i)?(t.state=29,t.acceptStateReached=!0):e.removeMachine(t)}function gv(e,t,i){Cy(i)||Iv(e,t)}function bv(e,t,i){Ly(i)?(t.state=31,t.acceptStateReached=!0):e.removeMachine(t)}function mv(e,t,i){Ly(i)||(ey(i)?e.removeMachine(t):Iv(e,t))}function yv(e,t,i,r){Zm(r)?t.state=38:(e.removeMachine(t),zy(e,i,r))}function vv(e,t,i,r){Zm(r)?t.state=33:e.removeMachine(t),zy(e,i,r)}function wv(e,t,i){Zm(i)?t.state=34:e.removeMachine(t)}function xv(e,t,i){Zm(i)?t.state=35:e.removeMachine(t)}function _v(e,t,i){41===i?t.state=36:e.removeMachine(t)}function kv(e,t,i,r){Zm(r)?t.state=38:Ry(r)?t.state=39:e.removeMachine(t)}function Sv(e,t,i,r){var n=e.charIdx;t.acceptStateReached=!0,Oy(r)?t.state=40:35===r?t.state=41:Zm(r)||(40===r?t.state=32:Ry(r)?t.state=39:(Iv(e,t),uy(r)&&e.addMachine(Av(n,0))))}function Pv(e,t,i,r){Zm(r)?t.state=38:40===r?t.state=32:(Iv(e,t),zy(e,i,r))}function Cv(e,t,i){Oy(i)||(35===i?t.state=41:Zm(i)?t.state=38:Iv(e,t))}function Ev(e,t,i){Oy(i)?t.state=40:Zm(i)?e.removeMachine(t):Iv(e,t)}function Iv(e,t){var i=e.matches,r=e.text,n=e.charIdx,o=e.tagBuilder,a=e.stripPrefix,s=e.stripTrailingSlash,c=e.decodePercentEncoding,l=e.hashtagServiceName,u=e.mentionServiceName;if(e.removeMachine(t),t.acceptStateReached){var d,f,h,p=t.startIdx,g=r.slice(t.startIdx,n);switch(g=function(e){for(var t={"(":0,"{":0,"[":0},i=0;i<e.length;i++){var r=e.charAt(i);iy(o=e.charCodeAt(i))?t[r]++:ry(o)&&t[Lv[r]]--}var n=e.length-1;for(;n>=0;){var o;r=e.charAt(n);if(ry(o=e.charCodeAt(n))){var a=Lv[r];if(!(t[a]<0))break;t[a]++,n--}else{if(!ty(o))break;n--}}return e.slice(0,n+1)}(g),t.type){case 0:if(64===r.charCodeAt(t.startIdx-1))return;switch(t.matchType){case 0:var b=oy.exec(g);if(b&&(p+=b.index,g=g.slice(b.index)),!function(e){if(sy.test(e))return!1;var t=e.match(cy);if(!t)return!1;var i=!!t[1],r=t[2];return!!i||!(-1===r.indexOf(".")||!/[A-Za-z]/.test(r))}(g))return;break;case 1:if(!function(e){var t=e.match(ly);if(!t)return!1;var i=t[0].split(".");return!(i.length<2||!by(i[i.length-1]))}(g))return;break;case 2:if(h=g.split(yy,1)[0],!my.test(h))return;break;default:Fm(t)}i.push(new xy({tagBuilder:o,matchedText:g,offset:p,urlMatchType:Tv(t.matchType),url:g,protocolRelativeMatch:"//"===g.slice(0,2),stripPrefix:a,stripTrailingSlash:s,decodePercentEncoding:c}));break;case 1:by(g.split(".").pop())&&i.push(new Py({tagBuilder:o,matchedText:g,offset:p,email:g.replace(_y,"")}));break;case 2:g.length<=140&&i.push(new Iy({tagBuilder:o,matchedText:g,offset:p,serviceName:l,hashtag:g.slice(1)}));break;case 3:f=g,Ty[u].test(f)&&i.push(new My({tagBuilder:o,matchedText:g,offset:p,serviceName:u,mention:g.slice(1)}));break;case 4:if(g=g.replace(/ +$/g,""),("+"===(d=g).charAt(0)||jy.test(d))&&Dy.test(d)){var m=g.replace(/[^0-9,;#]/g,"");i.push(new Vy({tagBuilder:o,matchedText:g,offset:p,number:m,plusSign:"+"===g.charAt(0)}))}break;default:Fm(t)}}}function Tv(e){switch(e){case 0:return"scheme";case 1:return"tld";case 2:return"ipV4";default:Fm(e)}}var Lv={")":"(","}":"{","]":"["};function Av(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:0}}function Mv(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:1}}function jv(e,t){return{type:4,startIdx:e,state:t,acceptStateReached:!1}}function Dv(e){return 0===e.type&&0===e.matchType}var Rv=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},Ov=new Rv,Vv=function(e,t){this.charIdx=0,this.state=0,this.currentDataIdx=0,this.currentTag=Ov,this.html=e,this.callbacks=t};function Nv(e,t){"<"===t&&aw(e)}function zv(e,t,i){"!"===t?e.state=13:"/"===t?(e.state=2,e.currentTag=new Rv(Rh(Rh({},e.currentTag),{isClosing:!0}))):"<"===t?aw(e):Gm(i)?(e.state=3,e.currentTag=new Rv(Rh(Rh({},e.currentTag),{isOpening:!0}))):(e.state=0,e.currentTag=Ov)}function Bv(e,t,i){Qm(i)?(e.currentTag=new Rv(Rh(Rh({},e.currentTag),{name:cw(e)})),e.state=4):"<"===t?aw(e):"/"===t?(e.currentTag=new Rv(Rh(Rh({},e.currentTag),{name:cw(e)})),e.state=12):">"===t?(e.currentTag=new Rv(Rh(Rh({},e.currentTag),{name:cw(e)})),sw(e)):Gm(i)||Zm(i)||":"===t||ow(e)}function $v(e,t,i){">"===t?ow(e):Gm(i)?e.state=3:ow(e)}function Uv(e,t,i){var r;Qm(i)||("/"===t?e.state=12:">"===t?sw(e):"<"===t?aw(e):"="===t||Xm(i)||((r=i)>=0&&r<=31||127==r)?ow(e):e.state=5)}function Fv(e,t,i){Qm(i)?e.state=6:"/"===t?e.state=12:"="===t?e.state=7:">"===t?sw(e):"<"===t?aw(e):Xm(i)&&ow(e)}function Hv(e,t,i){Qm(i)||("/"===t?e.state=12:"="===t?e.state=7:">"===t?sw(e):"<"===t?aw(e):Xm(i)?ow(e):e.state=5)}function Kv(e,t,i){Qm(i)||('"'===t?e.state=8:"'"===t?e.state=9:/[>=`]/.test(t)?ow(e):"<"===t?aw(e):e.state=10)}function qv(e,t){'"'===t&&(e.state=11)}function Jv(e,t){"'"===t&&(e.state=11)}function Wv(e,t,i){Qm(i)?e.state=4:">"===t?sw(e):"<"===t&&aw(e)}function Yv(e,t,i){Qm(i)?e.state=4:"/"===t?e.state=12:">"===t?sw(e):"<"===t?aw(e):(e.state=4,function(e){e.charIdx--}(e))}function Gv(e,t){">"===t?(e.currentTag=new Rv(Rh(Rh({},e.currentTag),{isClosing:!0})),sw(e)):ow(e)}function Zv(e){var t=e.html,i=e.charIdx;"--"===t.slice(i,i+2)?(e.charIdx++,e.currentTag=new Rv(Rh(Rh({},e.currentTag),{type:"comment"})),e.state=14):"DOCTYPE"===t.slice(i,i+7).toUpperCase()?(e.charIdx+=6,e.currentTag=new Rv(Rh(Rh({},e.currentTag),{type:"doctype"})),e.state=20):ow(e)}function Xv(e,t){"-"===t?e.state=15:">"===t?ow(e):e.state=16}function Qv(e,t){"-"===t?e.state=18:">"===t?ow(e):e.state=16}function ew(e,t){"-"===t&&(e.state=17)}function tw(e,t){e.state="-"===t?18:16}function iw(e,t){">"===t?sw(e):"!"===t?e.state=19:"-"===t||(e.state=16)}function rw(e,t){"-"===t?e.state=17:">"===t?sw(e):e.state=16}function nw(e,t){">"===t?sw(e):"<"===t&&aw(e)}function ow(e){e.state=0,e.currentTag=Ov}function aw(e){e.state=1,e.currentTag=new Rv({idx:e.charIdx})}function sw(e){var t=e.html.slice(e.currentDataIdx,e.currentTag.idx);t&&e.callbacks.onText(t,e.currentDataIdx);var i=e.currentTag;"comment"===i.type?e.callbacks.onComment(i.idx):"doctype"===i.type?e.callbacks.onDoctype(i.idx):(i.isOpening&&e.callbacks.onOpenTag(i.name,i.idx),i.isClosing&&e.callbacks.onCloseTag(i.name,i.idx)),ow(e),e.currentDataIdx=e.charIdx+1}function cw(e){var t=e.currentTag.idx+(e.currentTag.isClosing?2:1);return e.html.slice(t,e.charIdx).toLowerCase()}var lw=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 $m(e)?{schemeMatches:e,tldMatches:e,ipV4Matches:e}:{schemeMatches:!$m(e.schemeMatches)||e.schemeMatches,tldMatches:!$m(e.tldMatches)||e.tldMatches,ipV4Matches:!$m(e.ipV4Matches)||e.ipV4Matches}}(t.urls),this.email=$m(t.email)?t.email:this.email,this.phone=$m(t.phone)?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow=$m(t.newWindow)?t.newWindow:this.newWindow,this.stripPrefix=function(e){null==e&&(e=!0);return $m(e)?{scheme:e,www:e}:{scheme:!$m(e.scheme)||e.scheme,www:!$m(e.www)||e.www}}(t.stripPrefix),this.stripTrailingSlash=$m(t.stripTrailingSlash)?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=$m(t.decodePercentEncoding)?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var i=this.mention;if(!1!==i&&-1===Ay.indexOf(i))throw new Error("invalid `mention` cfg '".concat(i,"' - see docs"));var r,n=this.hashtag;if(!1!==n&&-1===Ey.indexOf(n))throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate="number"==typeof(r=t.truncate)?{length:r,location:"end"}:Rh({length:Number.POSITIVE_INFINITY,location:"end"},r),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 function(e,t){for(var i=new Vv(e,t),r=e.length;i.charIdx<r;){var n=e.charAt(i.charIdx),o=e.charCodeAt(i.charIdx);switch(i.state){case 0:Nv(i,n);break;case 1:zv(i,n,o);break;case 2:$v(i,n,o);break;case 3:Bv(i,n,o);break;case 4:Uv(i,n,o);break;case 5:Fv(i,n,o);break;case 6:Hv(i,n,o);break;case 7:Kv(i,n,o);break;case 8:qv(i,n);break;case 9:Jv(i,n);break;case 10:Wv(i,n,o);break;case 11:Yv(i,n,o);break;case 12:Gv(i,n);break;case 13:Zv(i);break;case 14:Xv(i,n);break;case 15:Qv(i,n);break;case 16:ew(i,n);break;case 17:tw(i,n);break;case 18:iw(i,n);break;case 19:rw(i,n);break;case 20:nw(i,n);break;default:Fm(i.state)}i.charIdx++}i.currentDataIdx<i.charIdx&&function(e){var t=e.html.slice(e.currentDataIdx,e.charIdx);e.callbacks.onText(t,e.currentDataIdx),e.currentDataIdx=e.charIdx+1}(i)}(e,{onOpenTag:function(e){i.indexOf(e)>=0&&r++},onText:function(e,i){if(0===r){var o=e.split(/( | |<|<|>|>|"|"|')/gi),a=i;o.forEach(function(e,i){if(i%2==0){var r=t.parseText(e,a);n.push.apply(n,function(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}(r),!1))}a+=e.length})}},onCloseTag:function(e){i.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(){},onDoctype:function(){}}),n=this.compactMatches(n),n=this.removeUnwantedMatches(n)},e.prototype.compactMatches=function(e){e.sort(uw);for(var t=0;t<e.length-1;){var i=e[t],r=i.getOffset(),n=i.getMatchedText().length;if(t+1<e.length&&e[t+1].getOffset()===r){var o=e[t+1].getMatchedText().length>n?t:t+1;e.splice(o,1)}else t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||Um(e,function(e){return"hashtag"===e.getType()}),this.email||Um(e,function(e){return"email"===e.getType()}),this.phone||Um(e,function(e){return"phone"===e.getType()}),this.mention||Um(e,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||Um(e,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.tldMatches||Um(e,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),this.urls.ipV4Matches||Um(e,function(e){return"url"===e.getType()&&"ipV4"===e.getUrlMatchType()}),e},e.prototype.parseText=function(e,t){t=t||0;for(var i=function(e,t){for(var i=new Ny(e,t);i.charIdx<i.text.length;i.charIdx++){var r=e.charAt(i.charIdx),n=e.charCodeAt(i.charIdx);if(0===i.stateMachines.length)zy(i,r,n);else{for(var o=i.stateMachines.length-1;o>=0;o--){var a=i.stateMachines[o];switch(a.state){case 11:Ky(i,a,n);break;case 12:qy(i,a,n);break;case 0:By(i,a,n);break;case 1:$y(i,a,n);break;case 2:Uy(i,a,n);break;case 3:Fy(i,a,n);break;case 4:Hy(i,a,0,n);break;case 5:Jy(i,a,n);break;case 6:Wy(i,a,0,n);break;case 7:Yy(i,a,0,n);break;case 13:Gy(i,a,n);break;case 14:Zy(i,a,n);break;case 8:Xy(i,a,n);break;case 9:Qy(i,a,n);break;case 10:ev(i,a,n);break;case 15:tv(i,a,r,n);break;case 16:iv(i,a,r,n);break;case 17:rv(i,a,r,n);break;case 18:nv(i,a,r,n);break;case 19:ov(i,a,r,n);break;case 20:av(i,a,n);break;case 21:sv(i,a,n);break;case 22:cv(i,a,n);break;case 23:lv(i,a,n);break;case 24:uv(i,a,n);break;case 25:dv(i,a,n);break;case 26:fv(i,a,n);break;case 27:hv(i,a,n);break;case 28:pv(i,a,n);break;case 29:gv(i,a,n);break;case 30:bv(i,a,n);break;case 31:mv(i,a,n);break;case 32:vv(i,a,r,n);break;case 33:wv(i,a,n);break;case 34:xv(i,a,n);break;case 35:_v(i,a,n);break;case 36:kv(i,a,0,n);break;case 37:yv(i,a,r,n);break;case 38:Sv(i,a,0,n);break;case 39:Pv(i,a,r,n);break;case 40:Cv(i,a,n);break;case 41:Ev(i,a,n);break;default:Fm(a.state)}}if(!i.hasSchemeUrlMachine()&&i.charIdx>0&&uy(n)){var s=i.text.charCodeAt(i.charIdx-1);uy(s)||i.addMachine(Av(i.charIdx,0))}}}for(var c=i.stateMachines.length-1;c>=0;c--)i.stateMachines.forEach(function(e){return Iv(i,e)});return i.matches}(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,"<").replace(/>/g,">"));for(var t=this.parse(e),i=new Array(2*t.length+1),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 Km?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new Wm({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="4.1.5",e}();function uw(e,t){return e.getOffset()-t.getOffset()}function dw(e){return lw.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,isVerifiablePresentation:Boolean}}_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,isVerifiablePresentation:r}){return t?de`
|
|
499
|
-
${
|
|
500
|
-
${function(e,t,i){const r=["buv-c-full-certificate","qa-fullscreen-certificate"];$
|
|
498
|
+
`},{mapStateToProps:e=>({verifiableCredentials:JSON.stringify(ag(e))})});window.customElements.define("buv-verifiable-presentation",Cm);var Em=Object.prototype.hasOwnProperty;function Im(e){return"boolean"==typeof e}function Am(e,t){for(var i=e.length-1;i>=0;i--)!0===t(e[i])&&e.splice(i,1)}function Tm(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var Lm=/\s+/,Mm=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},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(Lm):[],n=e.split(Lm);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(Lm):[],n=e.split(Lm);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(){var e=this.getAttrs(),t=[];for(var i in e)Em.call(e,i)&&t.push(i+'="'+e[i]+'"');return t.join(" ")},e}();function jm(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}function Dm(e,t,i){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}var Rm=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 Mm({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.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.length)return e;var i=t.length,r=t.location;return"smart"===r?function(e,t,i){var r,n;if(null==i?(i="…",n=3,r=8):(n=i.length,r=i.length),e.length<=t)return e;var o=t-n,a=function(e){var t={},i=e,r=i.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],i=i.slice(r[0].length)),(r=i.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=r[1],i=i.slice(r[0].length)),(r=i.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=r[1],i=i.slice(r[0].length)),(r=i.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=r[1],i=i.slice(r[0].length)),(r=i.match(/^#(.*?)$/i))&&(t.fragment=r[1]),t}(e);if(a.query){var s=a.query.match(/^(.*?)(?=(\?|#))(.*?)$/i);s&&(a.query=a.query.substr(0,s[1].length),e=jm(a))}if(e.length<=t)return e;if(a.host&&(a.host=a.host.replace(/^www\./,""),e=jm(a)),e.length<=t)return e;var c="";if(a.host&&(c+=a.host),c.length>=o)return a.host.length===t?(a.host.substr(0,t-n)+i).substr(0,o+r):Dm(c,o,i).substr(0,o+r);var l="";if(a.path&&(l+="/"+a.path),a.query&&(l+="?"+a.query),l){if((c+l).length>=o)return(c+l).length==t?(c+l).substr(0,t):(c+Dm(l,o-c.length,i)).substr(0,o+r);c+=l}if(a.fragment){var u="#"+a.fragment;if((c+u).length>=o)return(c+u).length==t?(c+u).substr(0,t):(c+Dm(u,o-c.length,i)).substr(0,o+r);c+=u}if(a.scheme&&a.host){var d=a.scheme+"://";if((c+d).length<o)return(d+c).substr(0,t)}if(c.length<=t)return c;var f="";return o>0&&(f=c.substr(-1*Math.floor(o/2))),(c.substr(0,Math.ceil(o/2))+i+f).substr(0,o+r)}(e,i):"middle"===r?function(e,t,i){if(e.length<=t)return e;var r,n;null==i?(i="…",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="…",r=3):r=i.length,e=e.substring(0,t-r)+i),e}(e,t,i)}(e,i)},e}(),Om=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}();function Vm(e){return e>=65&&e<=90||e>=97&&e<=122}function zm(e){return e>=48&&e<=57}function Nm(e){return 34==e||39==e}function Bm(e){return e<8232?e<160?e>=9&&e<=13||32==e:e<5760?160==e:5760==e||e>=8192&&e<=8202:e<8287?e>=8232&&e<=8233||8239==e:e<12288?8287==e:12288==e||65279==e}function $m(e){return e<4800?e<2949?e<2451?e<1425?e<768?e<192?e<169?e<65?e>=48&&e<=57:e>=65&&e<=90||e>=97&&e<=122:e<181?e>=169&&e<=170||174==e:181==e||186==e:e<710?e<216?e>=192&&e<=214:e>=216&&e<=246||e>=248&&e<=705:e<748?e>=710&&e<=721||e>=736&&e<=740:748==e||750==e:e<910?e<895?e<886?e>=768&&e<=884:e>=886&&e<=887||e>=890&&e<=893:e<904?895==e||902==e:e>=904&&e<=906||908==e:e<1155?e<931?e>=910&&e<=929:e>=931&&e<=1013||e>=1015&&e<=1153:e<1369?e>=1155&&e<=1327||e>=1329&&e<=1366:1369==e||e>=1377&&e<=1415:e<1808?e<1552?e<1476?e<1471?e>=1425&&e<=1469:1471==e||e>=1473&&e<=1474:e<1488?e>=1476&&e<=1477||1479==e:e>=1488&&e<=1514||e>=1520&&e<=1522:e<1749?e<1568?e>=1552&&e<=1562:e>=1568&&e<=1641||e>=1646&&e<=1747:e<1770?e>=1749&&e<=1756||e>=1759&&e<=1768:e>=1770&&e<=1788||1791==e:e<2230?e<2042?e<1869?e>=1808&&e<=1866:e>=1869&&e<=1969||e>=1984&&e<=2037:e<2112?2042==e||e>=2048&&e<=2093:e>=2112&&e<=2139||e>=2208&&e<=2228:e<2406?e<2260?e>=2230&&e<=2237:e>=2260&&e<=2273||e>=2275&&e<=2403:e<2437?e>=2406&&e<=2415||e>=2417&&e<=2435:e>=2437&&e<=2444||e>=2447&&e<=2448:e<2693?e<2579?e<2519?e<2486?e<2474?e>=2451&&e<=2472:e>=2474&&e<=2480||2482==e:e<2503?e>=2486&&e<=2489||e>=2492&&e<=2500:e>=2503&&e<=2504||e>=2507&&e<=2510:e<2534?e<2524?2519==e:e>=2524&&e<=2525||e>=2527&&e<=2531:e<2565?e>=2534&&e<=2545||e>=2561&&e<=2563:e>=2565&&e<=2570||e>=2575&&e<=2576:e<2631?e<2613?e<2602?e>=2579&&e<=2600:e>=2602&&e<=2608||e>=2610&&e<=2611:e<2620?e>=2613&&e<=2614||e>=2616&&e<=2617:2620==e||e>=2622&&e<=2626:e<2649?e<2635?e>=2631&&e<=2632:e>=2635&&e<=2637||2641==e:e<2662?e>=2649&&e<=2652||2654==e:e>=2662&&e<=2677||e>=2689&&e<=2691:e<2821?e<2759?e<2730?e<2703?e>=2693&&e<=2701:e>=2703&&e<=2705||e>=2707&&e<=2728:e<2741?e>=2730&&e<=2736||e>=2738&&e<=2739:e>=2741&&e<=2745||e>=2748&&e<=2757:e<2784?e<2763?e>=2759&&e<=2761:e>=2763&&e<=2765||2768==e:e<2809?e>=2784&&e<=2787||e>=2790&&e<=2799:2809==e||e>=2817&&e<=2819:e<2887?e<2858?e<2831?e>=2821&&e<=2828:e>=2831&&e<=2832||e>=2835&&e<=2856:e<2869?e>=2858&&e<=2864||e>=2866&&e<=2867:e>=2869&&e<=2873||e>=2876&&e<=2884:e<2911?e<2902?e>=2887&&e<=2888||e>=2891&&e<=2893:e>=2902&&e<=2903||e>=2908&&e<=2909:e<2929?e>=2911&&e<=2915||e>=2918&&e<=2927:2929==e||e>=2946&&e<=2947:e<3517?e<3205?e<3046?e<2984?e<2969?e<2958?e>=2949&&e<=2954:e>=2958&&e<=2960||e>=2962&&e<=2965:e<2974?e>=2969&&e<=2970||2972==e:e>=2974&&e<=2975||e>=2979&&e<=2980:e<3014?e<2990?e>=2984&&e<=2986:e>=2990&&e<=3001||e>=3006&&e<=3010:e<3024?e>=3014&&e<=3016||e>=3018&&e<=3021:3024==e||3031==e:e<3142?e<3086?e<3072?e>=3046&&e<=3055:e>=3072&&e<=3075||e>=3077&&e<=3084:e<3114?e>=3086&&e<=3088||e>=3090&&e<=3112:e>=3114&&e<=3129||e>=3133&&e<=3140:e<3160?e<3146?e>=3142&&e<=3144:e>=3146&&e<=3149||e>=3157&&e<=3158:e<3174?e>=3160&&e<=3162||e>=3168&&e<=3171:e>=3174&&e<=3183||e>=3200&&e<=3203:e<3333?e<3274?e<3242?e<3214?e>=3205&&e<=3212:e>=3214&&e<=3216||e>=3218&&e<=3240:e<3260?e>=3242&&e<=3251||e>=3253&&e<=3257:e>=3260&&e<=3268||e>=3270&&e<=3272:e<3296?e<3285?e>=3274&&e<=3277:e>=3285&&e<=3286||3294==e:e<3313?e>=3296&&e<=3299||e>=3302&&e<=3311:e>=3313&&e<=3314||e>=3329&&e<=3331:e<3423?e<3389?e<3342?e>=3333&&e<=3340:e>=3342&&e<=3344||e>=3346&&e<=3386:e<3402?e>=3389&&e<=3396||e>=3398&&e<=3400:e>=3402&&e<=3406||e>=3412&&e<=3415:e<3458?e<3430?e>=3423&&e<=3427:e>=3430&&e<=3439||e>=3450&&e<=3455:e<3482?e>=3458&&e<=3459||e>=3461&&e<=3478:e>=3482&&e<=3505||e>=3507&&e<=3515:e<3804?e<3722?e<3570?e<3535?e<3520?3517==e:e>=3520&&e<=3526||3530==e:e<3544?e>=3535&&e<=3540||3542==e:e>=3544&&e<=3551||e>=3558&&e<=3567:e<3664?e<3585?e>=3570&&e<=3571:e>=3585&&e<=3642||e>=3648&&e<=3662:e<3716?e>=3664&&e<=3673||e>=3713&&e<=3714:3716==e||e>=3719&&e<=3720:e<3754?e<3737?e<3725?3722==e:3725==e||e>=3732&&e<=3735:e<3749?e>=3737&&e<=3743||e>=3745&&e<=3747:3749==e||3751==e:e<3776?e<3757?e>=3754&&e<=3755:e>=3757&&e<=3769||e>=3771&&e<=3773:e<3784?e>=3776&&e<=3780||3782==e:e>=3784&&e<=3789||e>=3792&&e<=3801:e<4176?e<3902?e<3872?e<3840?e>=3804&&e<=3807:3840==e||e>=3864&&e<=3865:e<3895?e>=3872&&e<=3881||3893==e:3895==e||3897==e:e<3974?e<3913?e>=3902&&e<=3911:e>=3913&&e<=3948||e>=3953&&e<=3972:e<4038?e>=3974&&e<=3991||e>=3993&&e<=4028:4038==e||e>=4096&&e<=4169:e<4688?e<4301?e<4256?e>=4176&&e<=4253:e>=4256&&e<=4293||4295==e:e<4348?4301==e||e>=4304&&e<=4346:e>=4348&&e<=4680||e>=4682&&e<=4685:e<4746?e<4698?e>=4688&&e<=4694||4696==e:e>=4698&&e<=4701||e>=4704&&e<=4744:e<4786?e>=4746&&e<=4749||e>=4752&&e<=4784:e>=4786&&e<=4789||e>=4792&&e<=4798:e<11035?e<7416?e<6176?e<5873?e<4992?e<4824?e<4802?4800==e:e>=4802&&e<=4805||e>=4808&&e<=4822:e<4888?e>=4824&&e<=4880||e>=4882&&e<=4885:e>=4888&&e<=4954||e>=4957&&e<=4959:e<5121?e<5024?e>=4992&&e<=5007:e>=5024&&e<=5109||e>=5112&&e<=5117:e<5761?e>=5121&&e<=5740||e>=5743&&e<=5759:e>=5761&&e<=5786||e>=5792&&e<=5866:e<6002?e<5920?e<5888?e>=5873&&e<=5880:e>=5888&&e<=5900||e>=5902&&e<=5908:e<5984?e>=5920&&e<=5940||e>=5952&&e<=5971:e>=5984&&e<=5996||e>=5998&&e<=6e3:e<6108?e<6016?e>=6002&&e<=6003:e>=6016&&e<=6099||6103==e:e<6155?e>=6108&&e<=6109||e>=6112&&e<=6121:e>=6155&&e<=6157||e>=6160&&e<=6169:e<6783?e<6512?e<6400?e<6272?e>=6176&&e<=6263:e>=6272&&e<=6314||e>=6320&&e<=6389:e<6448?e>=6400&&e<=6430||e>=6432&&e<=6443:e>=6448&&e<=6459||e>=6470&&e<=6509:e<6608?e<6528?e>=6512&&e<=6516:e>=6528&&e<=6571||e>=6576&&e<=6601:e<6688?e>=6608&&e<=6617||e>=6656&&e<=6683:e>=6688&&e<=6750||e>=6752&&e<=6780:e<7040?e<6832?e<6800?e>=6783&&e<=6793:e>=6800&&e<=6809||6823==e:e<6992?e>=6832&&e<=6846||e>=6912&&e<=6987:e>=6992&&e<=7001||e>=7019&&e<=7027:e<7245?e<7168?e>=7040&&e<=7155:e>=7168&&e<=7223||e>=7232&&e<=7241:e<7376?e>=7245&&e<=7293||e>=7296&&e<=7304:e>=7376&&e<=7378||e>=7380&&e<=7414:e<8450?e<8130?e<8025?e<7960?e<7424?e>=7416&&e<=7417:e>=7424&&e<=7669||e>=7675&&e<=7957:e<8008?e>=7960&&e<=7965||e>=7968&&e<=8005:e>=8008&&e<=8013||e>=8016&&e<=8023:e<8031?e<8027?8025==e:8027==e||8029==e:e<8118?e>=8031&&e<=8061||e>=8064&&e<=8116:e>=8118&&e<=8124||8126==e:e<8205?e<8150?e<8134?e>=8130&&e<=8132:e>=8134&&e<=8140||e>=8144&&e<=8147:e<8178?e>=8150&&e<=8155||e>=8160&&e<=8172:e>=8178&&e<=8180||e>=8182&&e<=8188:e<8305?e<8252?8205==e:8252==e||8265==e:e<8336?8305==e||8319==e:e>=8336&&e<=8348||e>=8400&&e<=8432:e<8579?e<8486?e<8469?e<8455?8450==e:8455==e||e>=8458&&e<=8467:e<8482?8469==e||e>=8473&&e<=8477:8482==e||8484==e:e<8495?e<8488?8486==e:8488==e||e>=8490&&e<=8493:e<8517?e>=8495&&e<=8505||e>=8508&&e<=8511:e>=8517&&e<=8521||8526==e:e<9410?e<9e3?e<8592?e>=8579&&e<=8580:e>=8592&&e<=8703||e>=8986&&e<=8987:e<9193?9e3==e||9167==e:e>=9193&&e<=9203||e>=9208&&e<=9210:e<9723?e<9654?9410==e||e>=9642&&e<=9643:9654==e||9664==e:e<10548?e>=9723&&e<=9726||e>=9728&&e<=10175:e>=10548&&e<=10549||e>=11013&&e<=11015:e<43259?e<12445?e<11688?e<11520?e<11264?e<11088?e>=11035&&e<=11036:11088==e||11093==e:e<11360?e>=11264&&e<=11310||e>=11312&&e<=11358:e>=11360&&e<=11492||e>=11499&&e<=11507:e<11568?e<11559?e>=11520&&e<=11557:11559==e||11565==e:e<11647?e>=11568&&e<=11623||11631==e:e>=11647&&e<=11670||e>=11680&&e<=11686:e<11744?e<11712?e<11696?e>=11688&&e<=11694:e>=11696&&e<=11702||e>=11704&&e<=11710:e<11728?e>=11712&&e<=11718||e>=11720&&e<=11726:e>=11728&&e<=11734||e>=11736&&e<=11742:e<12330?e<11823?e>=11744&&e<=11775:11823==e||e>=12293&&e<=12294:e<12353?e>=12330&&e<=12341||e>=12347&&e<=12349:e>=12353&&e<=12438||e>=12441&&e<=12442:e<42512?e<12951?e<12549?e<12449?e>=12445&&e<=12447:e>=12449&&e<=12538||e>=12540&&e<=12543:e<12704?e>=12549&&e<=12589||e>=12593&&e<=12686:e>=12704&&e<=12730||e>=12784&&e<=12799:e<19968?e<12953?12951==e:12953==e||e>=13312&&e<=19893:e<42192?e>=19968&&e<=40917||e>=40960&&e<=42124:e>=42192&&e<=42237||e>=42240&&e<=42508:e<42891?e<42623?e<42560?e>=42512&&e<=42539:e>=42560&&e<=42610||e>=42612&&e<=42621:e<42775?e>=42623&&e<=42725||e>=42736&&e<=42737:e>=42775&&e<=42783||e>=42786&&e<=42888:e<43072?e<42928?e>=42891&&e<=42926:e>=42928&&e<=42935||e>=42999&&e<=43047:e<43216?e>=43072&&e<=43123||e>=43136&&e<=43205:e>=43216&&e<=43225||e>=43232&&e<=43255:e<55243?e<43744?e<43488?e<43312?e<43261?43259==e:43261==e||e>=43264&&e<=43309:e<43392?e>=43312&&e<=43347||e>=43360&&e<=43388:e>=43392&&e<=43456||e>=43471&&e<=43481:e<43600?e<43520?e>=43488&&e<=43518:e>=43520&&e<=43574||e>=43584&&e<=43597:e<43642?e>=43600&&e<=43609||e>=43616&&e<=43638:e>=43642&&e<=43714||e>=43739&&e<=43741:e<43824?e<43785?e<43762?e>=43744&&e<=43759:e>=43762&&e<=43766||e>=43777&&e<=43782:e<43808?e>=43785&&e<=43790||e>=43793&&e<=43798:e>=43808&&e<=43814||e>=43816&&e<=43822:e<44012?e<43868?e>=43824&&e<=43866:e>=43868&&e<=43877||e>=43888&&e<=44010:e<44032?e>=44012&&e<=44013||e>=44016&&e<=44025:e>=44032&&e<=55203||e>=55216&&e<=55238:e<64848?e<64298?e<64112?e<55296?e>=55243&&e<=55291:e>=55296&&e<=57343||e>=63744&&e<=64109:e<64275?e>=64112&&e<=64217||e>=64256&&e<=64262:e>=64275&&e<=64279||e>=64285&&e<=64296:e<64320?e<64312?e>=64298&&e<=64310:e>=64312&&e<=64316||64318==e:e<64326?e>=64320&&e<=64321||e>=64323&&e<=64324:e>=64326&&e<=64433||e>=64467&&e<=64829:e<65296?e<65024?e<64914?e>=64848&&e<=64911:e>=64914&&e<=64967||e>=65008&&e<=65019:e<65136?e>=65024&&e<=65039||e>=65056&&e<=65071:e>=65136&&e<=65140||e>=65142&&e<=65276:e<65474?e<65345?e>=65296&&e<=65305||e>=65313&&e<=65338:e>=65345&&e<=65370||e>=65382&&e<=65470:e<65490?e>=65474&&e<=65479||e>=65482&&e<=65487:e>=65490&&e<=65495||e>=65498&&e<=65500}function Um(e){return e<58?e<44?33==e:44==e||46==e:e<63?e>=58&&e<=59:63==e||94==e}function Fm(e){return e<91?40==e:91==e||123==e}function Hm(e){return e<93?41==e:93==e||125==e}var Km=/^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|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--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|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|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|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|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|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|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|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|banamex|bauhaus|bestbuy|booking|brother|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|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|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|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|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|yamaxun|youtube|zuerich|католик|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|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|kindle|kosher|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|nagoya|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|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|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|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|loans|locus|lotte|lotto|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|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|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|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|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|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|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|scb|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|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)$/,qm=/https?:\/\//i,Jm=new RegExp("^"+qm.source,"i"),Wm=/^(javascript|vbscript):/i,Ym=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,Gm=/^(?:\/\/)?([^/#?:]+)/,Zm=Vm;function Xm(e){return Vm(e)||zm(e)||43===e||45===e||46===e}var Qm=$m;function ey(e){return 95===e||Qm(e)}function ty(e){return $m(e)||((t=e)<91?t<47?t>=35&&t<=43||45==t:t<61?47==t:61==t||64==t:t<95?91==t||93==t:t<123?95==t:t>=123&&t<=126||10003==t)||Um(e);var t}function iy(e){return 47===e||63===e||35===e}function ry(e){return Km.test(e.toLowerCase())}var ny=/^(?:(?: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]?)$/,oy=/[:/?#]/;var ay=/^(https?:\/\/)?(?:www\.)?/i,sy=/^\/\//,cy=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 Dp(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(/&/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=e.replace(sy,"")),this.stripPrefix.scheme&&(e=e.replace(Jm,"")),this.stripPrefix.www&&(e=function(e){return e.includes("www.")?e.replace(ay,"$1"):e}(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|26|27|3C|3E)/gi,function(e){return"%22"===e?""":"%26"===e?"&":"%27"===e?"'":"%3C"===e||"%3c"===e?"<":">"});if(t.includes("%"))try{return decodeURIComponent(t)}catch(e){}return t}(e)),e},t}(Om);var ly=/^mailto:/i,uy=$m;function dy(e){return uy(e)||((t=e)<47?t<42?33==t||t>=35&&t<=39:t>=42&&t<=43||45==t:t<63?47==t||61==t:t<94?63==t:t>=94&&t<=96||t>=123&&t<=126);var t}var fy=function(e){function t(t){var i=e.call(this,t)||this;return i.type="email",i.email="",i.email=t.email,i}return Dp(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}(Om);function py(e){return 95===e||$m(e)}var hy=["twitter","facebook","instagram","tiktok","youtube"],gy=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 Dp(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;case"youtube":return"https://youtube.com/hashtag/"+t;default:Tm(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}(Om),by={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/,youtube:/^@[-.·\w]{3,30}$/};function my(e){return 45===e||46===e||95===e||Vm(e)||zm(e)}var yy=["twitter","instagram","soundcloud","tiktok","youtube"],vy=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 Dp(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;case"youtube":return"https://youtube.com/@"+this.mention;default:Tm(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}(Om),wy=/[-. ()]/,xy=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 _y(e){return 45===e||46===e||32===e}function ky(e){return 44===e||59===e}var Sy=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 Dp(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}(Om),Py=function(){function e(e,t){this.charIdx=0,this.matches=[],this._stateMachines=[],this.schemeUrlMachinesCount=0,this.text=e,this.tagBuilder=t.tagBuilder,this.stripPrefix=t.stripPrefix,this.stripTrailingSlash=t.stripTrailingSlash,this.decodePercentEncoding=t.decodePercentEncoding,this.hashtagServiceName=t.hashtagServiceName,this.mentionServiceName=t.mentionServiceName}return Object.defineProperty(e.prototype,"stateMachines",{get:function(){return this._stateMachines},enumerable:!1,configurable:!0}),e.prototype.addMachine=function(e){this._stateMachines.push(e),xv(e)&&this.schemeUrlMachinesCount++},e.prototype.removeMachine=function(e){this._stateMachines=this._stateMachines.filter(function(t){return t!==e}),xv(e)&&this.schemeUrlMachinesCount--},e.prototype.hasSchemeUrlMachine=function(){return this.schemeUrlMachinesCount>0},e}();function Cy(e,t,i){var r=e.charIdx;if(35===i)e.addMachine({type:2,startIdx:r,state:28,acceptStateReached:!1});else if(64===i)e.addMachine(function(e,t){return{type:3,startIdx:e,state:t,acceptStateReached:!1}}(r,30));else if(47===i)e.addMachine(vv(r,11));else if(43===i)e.addMachine(wv(r,37));else if(40===i)e.addMachine(wv(r,32));else{if(zm(i)&&(e.addMachine(wv(r,38)),e.addMachine(function(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:2,octetsEncountered:1}}(r,13))),uy(i)){var n="m"===t.toLowerCase()?15:22;e.addMachine(function(e,t){return{type:1,startIdx:e,state:t,acceptStateReached:!1}}(r,n))}Zm(i)&&e.addMachine(yv(r,0)),$m(i)&&e.addMachine(vv(r,5))}}function Ey(e,t,i){58===i?t.state=2:45===i?t.state=1:Xm(i)||e.removeMachine(t)}function Iy(e,t,i){var r=e.charIdx;45===i||(47===i?(e.removeMachine(t),e.addMachine(vv(r,11))):Xm(i)?t.state=0:e.removeMachine(t))}function Ay(e,t,i){var r=e.charIdx;47===i?t.state=3:46===i?e.removeMachine(t):Qm(i)?(t.state=5,Zm(i)&&e.addMachine(yv(r,0))):e.removeMachine(t)}function Ty(e,t,i){47===i?t.state=4:ty(i)?(t.state=10,t.acceptStateReached=!0):gv(e,t)}function Ly(e,t,i,r){47===r?(t.state=10,t.acceptStateReached=!0):Qm(r)?(t.state=5,t.acceptStateReached=!0):e.removeMachine(t)}function My(e,t,i){47===i?t.state=12:e.removeMachine(t)}function jy(e,t,i){Qm(i)?t.state=5:e.removeMachine(t)}function Dy(e,t,i){46===i?t.state=7:45===i?t.state=6:58===i?t.state=8:iy(i)?t.state=10:ey(i)||gv(e,t)}function Ry(e,t,i,r){45===r||(46===r?gv(e,t):Qm(r)?t.state=5:gv(e,t))}function Oy(e,t,i,r){46===r?gv(e,t):Qm(r)?(t.state=5,t.acceptStateReached=!0):gv(e,t)}function Vy(e,t,i){46===i?t.state=14:58===i?t.state=8:zm(i)||(iy(i)?t.state=10:$m(i)?e.removeMachine(t):gv(e,t))}function zy(e,t,i){zm(i)?(t.octetsEncountered++,4===t.octetsEncountered&&(t.acceptStateReached=!0),t.state=13):gv(e,t)}function Ny(e,t,i){zm(i)?t.state=9:gv(e,t)}function By(e,t,i){zm(i)||(iy(i)?t.state=10:gv(e,t))}function $y(e,t,i){ty(i)||gv(e,t)}function Uy(e,t,i,r){"a"===i.toLowerCase()?t.state=16:Yy(e,t,r)}function Fy(e,t,i,r){"i"===i.toLowerCase()?t.state=17:Yy(e,t,r)}function Hy(e,t,i,r){"l"===i.toLowerCase()?t.state=18:Yy(e,t,r)}function Ky(e,t,i,r){"t"===i.toLowerCase()?t.state=19:Yy(e,t,r)}function qy(e,t,i,r){"o"===i.toLowerCase()?t.state=20:Yy(e,t,r)}function Jy(e,t,i){58===i?t.state=21:Yy(e,t,i)}function Wy(e,t,i){dy(i)?t.state=22:e.removeMachine(t)}function Yy(e,t,i){46===i?t.state=23:64===i?t.state=24:dy(i)?t.state=22:e.removeMachine(t)}function Gy(e,t,i){46===i||64===i?e.removeMachine(t):dy(i)?t.state=22:e.removeMachine(t)}function Zy(e,t,i){Qm(i)?t.state=25:e.removeMachine(t)}function Xy(e,t,i){46===i?t.state=27:45===i?t.state=26:ey(i)||gv(e,t)}function Qy(e,t,i){45===i||46===i?gv(e,t):ey(i)?t.state=25:gv(e,t)}function ev(e,t,i){46===i||45===i?gv(e,t):Qm(i)?(t.state=25,t.acceptStateReached=!0):gv(e,t)}function tv(e,t,i){py(i)?(t.state=29,t.acceptStateReached=!0):e.removeMachine(t)}function iv(e,t,i){py(i)||gv(e,t)}function rv(e,t,i){my(i)?(t.state=31,t.acceptStateReached=!0):e.removeMachine(t)}function nv(e,t,i){my(i)||($m(i)?e.removeMachine(t):gv(e,t))}function ov(e,t,i,r){zm(r)?t.state=38:(e.removeMachine(t),Cy(e,i,r))}function av(e,t,i,r){zm(r)?t.state=33:e.removeMachine(t),Cy(e,i,r)}function sv(e,t,i){zm(i)?t.state=34:e.removeMachine(t)}function cv(e,t,i){zm(i)?t.state=35:e.removeMachine(t)}function lv(e,t,i){41===i?t.state=36:e.removeMachine(t)}function uv(e,t,i,r){zm(r)?t.state=38:_y(r)?t.state=39:e.removeMachine(t)}function dv(e,t,i,r){var n=e.charIdx;t.acceptStateReached=!0,ky(r)?t.state=40:35===r?t.state=41:zm(r)||(40===r?t.state=32:_y(r)?t.state=39:(gv(e,t),Zm(r)&&e.addMachine(yv(n,0))))}function fv(e,t,i,r){zm(r)?t.state=38:40===r?t.state=32:(gv(e,t),Cy(e,i,r))}function pv(e,t,i){ky(i)||(35===i?t.state=41:zm(i)?t.state=38:gv(e,t))}function hv(e,t,i){ky(i)?t.state=40:zm(i)?e.removeMachine(t):gv(e,t)}function gv(e,t){var i=e.matches,r=e.text,n=e.charIdx,o=e.tagBuilder,a=e.stripPrefix,s=e.stripTrailingSlash,c=e.decodePercentEncoding,l=e.hashtagServiceName,u=e.mentionServiceName;if(e.removeMachine(t),t.acceptStateReached){var d,f,p,h=t.startIdx,g=r.slice(t.startIdx,n);switch(g=function(e){for(var t={"(":0,"{":0,"[":0},i=0;i<e.length;i++){var r=e.charAt(i);Fm(o=e.charCodeAt(i))?t[r]++:Hm(o)&&t[mv[r]]--}var n=e.length-1;for(;n>=0;){var o;r=e.charAt(n);if(Hm(o=e.charCodeAt(n))){var a=mv[r];if(!(t[a]<0))break;t[a]++,n--}else{if(!Um(o))break;n--}}return e.slice(0,n+1)}(g),t.type){case 0:if(64===r.charCodeAt(t.startIdx-1))return;switch(t.matchType){case 0:var b=qm.exec(g);if(b&&(h+=b.index,g=g.slice(b.index)),!function(e){if(Wm.test(e))return!1;var t=e.match(Ym);if(!t)return!1;var i=!!t[1],r=t[2];return!!i||!(-1===r.indexOf(".")||!/[A-Za-z]/.test(r))}(g))return;break;case 1:if(!function(e){var t=e.match(Gm);if(!t)return!1;var i=t[0].split(".");return!(i.length<2||!ry(i[i.length-1]))}(g))return;break;case 2:if(p=g.split(oy,1)[0],!ny.test(p))return;break;default:Tm(t)}i.push(new cy({tagBuilder:o,matchedText:g,offset:h,urlMatchType:bv(t.matchType),url:g,protocolRelativeMatch:"//"===g.slice(0,2),stripPrefix:a,stripTrailingSlash:s,decodePercentEncoding:c}));break;case 1:ry(g.split(".").pop())&&i.push(new fy({tagBuilder:o,matchedText:g,offset:h,email:g.replace(ly,"")}));break;case 2:g.length<=140&&i.push(new gy({tagBuilder:o,matchedText:g,offset:h,serviceName:l,hashtag:g.slice(1)}));break;case 3:f=g,by[u].test(f)&&i.push(new vy({tagBuilder:o,matchedText:g,offset:h,serviceName:u,mention:g.slice(1)}));break;case 4:if(g=g.replace(/ +$/g,""),("+"===(d=g).charAt(0)||wy.test(d))&&xy.test(d)){var m=g.replace(/[^0-9,;#]/g,"");i.push(new Sy({tagBuilder:o,matchedText:g,offset:h,number:m,plusSign:"+"===g.charAt(0)}))}break;default:Tm(t)}}}function bv(e){switch(e){case 0:return"scheme";case 1:return"tld";case 2:return"ipV4";default:Tm(e)}}var mv={")":"(","}":"{","]":"["};function yv(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:0}}function vv(e,t){return{type:0,startIdx:e,state:t,acceptStateReached:!1,matchType:1}}function wv(e,t){return{type:4,startIdx:e,state:t,acceptStateReached:!1}}function xv(e){return 0===e.type&&0===e.matchType}var _v=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},kv=new _v,Sv=function(e,t){this.charIdx=0,this.state=0,this.currentDataIdx=0,this.currentTag=kv,this.html=e,this.callbacks=t};function Pv(e,t){"<"===t&&Jv(e)}function Cv(e,t,i){"!"===t?e.state=13:"/"===t?(e.state=2,e.currentTag=new _v(Rp(Rp({},e.currentTag),{isClosing:!0}))):"<"===t?Jv(e):Vm(i)?(e.state=3,e.currentTag=new _v(Rp(Rp({},e.currentTag),{isOpening:!0}))):(e.state=0,e.currentTag=kv)}function Ev(e,t,i){Bm(i)?(e.currentTag=new _v(Rp(Rp({},e.currentTag),{name:Yv(e)})),e.state=4):"<"===t?Jv(e):"/"===t?(e.currentTag=new _v(Rp(Rp({},e.currentTag),{name:Yv(e)})),e.state=12):">"===t?(e.currentTag=new _v(Rp(Rp({},e.currentTag),{name:Yv(e)})),Wv(e)):Vm(i)||zm(i)||":"===t||qv(e)}function Iv(e,t,i){">"===t?qv(e):Vm(i)?e.state=3:qv(e)}function Av(e,t,i){var r;Bm(i)||("/"===t?e.state=12:">"===t?Wv(e):"<"===t?Jv(e):"="===t||Nm(i)||((r=i)>=0&&r<=31||127==r)?qv(e):e.state=5)}function Tv(e,t,i){Bm(i)?e.state=6:"/"===t?e.state=12:"="===t?e.state=7:">"===t?Wv(e):"<"===t?Jv(e):Nm(i)&&qv(e)}function Lv(e,t,i){Bm(i)||("/"===t?e.state=12:"="===t?e.state=7:">"===t?Wv(e):"<"===t?Jv(e):Nm(i)?qv(e):e.state=5)}function Mv(e,t,i){Bm(i)||('"'===t?e.state=8:"'"===t?e.state=9:/[>=`]/.test(t)?qv(e):"<"===t?Jv(e):e.state=10)}function jv(e,t){'"'===t&&(e.state=11)}function Dv(e,t){"'"===t&&(e.state=11)}function Rv(e,t,i){Bm(i)?e.state=4:">"===t?Wv(e):"<"===t&&Jv(e)}function Ov(e,t,i){Bm(i)?e.state=4:"/"===t?e.state=12:">"===t?Wv(e):"<"===t?Jv(e):(e.state=4,function(e){e.charIdx--}(e))}function Vv(e,t){">"===t?(e.currentTag=new _v(Rp(Rp({},e.currentTag),{isClosing:!0})),Wv(e)):qv(e)}function zv(e){var t=e.html,i=e.charIdx;"--"===t.slice(i,i+2)?(e.charIdx++,e.currentTag=new _v(Rp(Rp({},e.currentTag),{type:"comment"})),e.state=14):"DOCTYPE"===t.slice(i,i+7).toUpperCase()?(e.charIdx+=6,e.currentTag=new _v(Rp(Rp({},e.currentTag),{type:"doctype"})),e.state=20):qv(e)}function Nv(e,t){"-"===t?e.state=15:">"===t?qv(e):e.state=16}function Bv(e,t){"-"===t?e.state=18:">"===t?qv(e):e.state=16}function $v(e,t){"-"===t&&(e.state=17)}function Uv(e,t){e.state="-"===t?18:16}function Fv(e,t){">"===t?Wv(e):"!"===t?e.state=19:"-"===t||(e.state=16)}function Hv(e,t){"-"===t?e.state=17:">"===t?Wv(e):e.state=16}function Kv(e,t){">"===t?Wv(e):"<"===t&&Jv(e)}function qv(e){e.state=0,e.currentTag=kv}function Jv(e){e.state=1,e.currentTag=new _v({idx:e.charIdx})}function Wv(e){var t=e.html.slice(e.currentDataIdx,e.currentTag.idx);t&&e.callbacks.onText(t,e.currentDataIdx);var i=e.currentTag;"comment"===i.type?e.callbacks.onComment(i.idx):"doctype"===i.type?e.callbacks.onDoctype(i.idx):(i.isOpening&&e.callbacks.onOpenTag(i.name,i.idx),i.isClosing&&e.callbacks.onCloseTag(i.name,i.idx)),qv(e),e.currentDataIdx=e.charIdx+1}function Yv(e){var t=e.currentTag.idx+(e.currentTag.isClosing?2:1);return e.html.slice(t,e.charIdx).toLowerCase()}var Gv=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 Im(e)?{schemeMatches:e,tldMatches:e,ipV4Matches:e}:{schemeMatches:!Im(e.schemeMatches)||e.schemeMatches,tldMatches:!Im(e.tldMatches)||e.tldMatches,ipV4Matches:!Im(e.ipV4Matches)||e.ipV4Matches}}(t.urls),this.email=Im(t.email)?t.email:this.email,this.phone=Im(t.phone)?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow=Im(t.newWindow)?t.newWindow:this.newWindow,this.stripPrefix=function(e){null==e&&(e=!0);return Im(e)?{scheme:e,www:e}:{scheme:!Im(e.scheme)||e.scheme,www:!Im(e.www)||e.www}}(t.stripPrefix),this.stripTrailingSlash=Im(t.stripTrailingSlash)?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=Im(t.decodePercentEncoding)?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var i=this.mention;if(!1!==i&&-1===yy.indexOf(i))throw new Error("invalid `mention` cfg '".concat(i,"' - see docs"));var r,n=this.hashtag;if(!1!==n&&-1===hy.indexOf(n))throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate="number"==typeof(r=t.truncate)?{length:r,location:"end"}:Rp({length:Number.POSITIVE_INFINITY,location:"end"},r),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 function(e,t){for(var i=new Sv(e,t),r=e.length;i.charIdx<r;){var n=e.charAt(i.charIdx),o=e.charCodeAt(i.charIdx);switch(i.state){case 0:Pv(i,n);break;case 1:Cv(i,n,o);break;case 2:Iv(i,n,o);break;case 3:Ev(i,n,o);break;case 4:Av(i,n,o);break;case 5:Tv(i,n,o);break;case 6:Lv(i,n,o);break;case 7:Mv(i,n,o);break;case 8:jv(i,n);break;case 9:Dv(i,n);break;case 10:Rv(i,n,o);break;case 11:Ov(i,n,o);break;case 12:Vv(i,n);break;case 13:zv(i);break;case 14:Nv(i,n);break;case 15:Bv(i,n);break;case 16:$v(i,n);break;case 17:Uv(i,n);break;case 18:Fv(i,n);break;case 19:Hv(i,n);break;case 20:Kv(i,n);break;default:Tm(i.state)}i.charIdx++}i.currentDataIdx<i.charIdx&&function(e){var t=e.html.slice(e.currentDataIdx,e.charIdx);e.callbacks.onText(t,e.currentDataIdx),e.currentDataIdx=e.charIdx+1}(i)}(e,{onOpenTag:function(e){i.indexOf(e)>=0&&r++},onText:function(e,i){if(0===r){var o=e.split(/( | |<|<|>|>|"|"|')/gi),a=i;o.forEach(function(e,i){if(i%2==0){var r=t.parseText(e,a);n.push.apply(n,function(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,n,o=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a}(r),!1))}a+=e.length})}},onCloseTag:function(e){i.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(){},onDoctype:function(){}}),n=this.compactMatches(n),n=this.removeUnwantedMatches(n)},e.prototype.compactMatches=function(e){e.sort(Zv);for(var t=0;t<e.length-1;){var i=e[t],r=i.getOffset(),n=i.getMatchedText().length;if(t+1<e.length&&e[t+1].getOffset()===r){var o=e[t+1].getMatchedText().length>n?t:t+1;e.splice(o,1)}else t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||Am(e,function(e){return"hashtag"===e.getType()}),this.email||Am(e,function(e){return"email"===e.getType()}),this.phone||Am(e,function(e){return"phone"===e.getType()}),this.mention||Am(e,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||Am(e,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.tldMatches||Am(e,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),this.urls.ipV4Matches||Am(e,function(e){return"url"===e.getType()&&"ipV4"===e.getUrlMatchType()}),e},e.prototype.parseText=function(e,t){t=t||0;for(var i=function(e,t){for(var i=new Py(e,t);i.charIdx<i.text.length;i.charIdx++){var r=e.charAt(i.charIdx),n=e.charCodeAt(i.charIdx);if(0===i.stateMachines.length)Cy(i,r,n);else{for(var o=i.stateMachines.length-1;o>=0;o--){var a=i.stateMachines[o];switch(a.state){case 11:My(i,a,n);break;case 12:jy(i,a,n);break;case 0:Ey(i,a,n);break;case 1:Iy(i,a,n);break;case 2:Ay(i,a,n);break;case 3:Ty(i,a,n);break;case 4:Ly(i,a,0,n);break;case 5:Dy(i,a,n);break;case 6:Ry(i,a,0,n);break;case 7:Oy(i,a,0,n);break;case 13:Vy(i,a,n);break;case 14:zy(i,a,n);break;case 8:Ny(i,a,n);break;case 9:By(i,a,n);break;case 10:$y(i,a,n);break;case 15:Uy(i,a,r,n);break;case 16:Fy(i,a,r,n);break;case 17:Hy(i,a,r,n);break;case 18:Ky(i,a,r,n);break;case 19:qy(i,a,r,n);break;case 20:Jy(i,a,n);break;case 21:Wy(i,a,n);break;case 22:Yy(i,a,n);break;case 23:Gy(i,a,n);break;case 24:Zy(i,a,n);break;case 25:Xy(i,a,n);break;case 26:Qy(i,a,n);break;case 27:ev(i,a,n);break;case 28:tv(i,a,n);break;case 29:iv(i,a,n);break;case 30:rv(i,a,n);break;case 31:nv(i,a,n);break;case 32:av(i,a,r,n);break;case 33:sv(i,a,n);break;case 34:cv(i,a,n);break;case 35:lv(i,a,n);break;case 36:uv(i,a,0,n);break;case 37:ov(i,a,r,n);break;case 38:dv(i,a,0,n);break;case 39:fv(i,a,r,n);break;case 40:pv(i,a,n);break;case 41:hv(i,a,n);break;default:Tm(a.state)}}if(!i.hasSchemeUrlMachine()&&i.charIdx>0&&Zm(n)){var s=i.text.charCodeAt(i.charIdx-1);Zm(s)||i.addMachine(yv(i.charIdx,0))}}}for(var c=i.stateMachines.length-1;c>=0;c--)i.stateMachines.forEach(function(e){return gv(i,e)});return i.matches}(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,"<").replace(/>/g,">"));for(var t=this.parse(e),i=new Array(2*t.length+1),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 Mm?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new Rm({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="4.1.5",e}();function Zv(e,t){return e.getOffset()-t.getOffset()}function Xv(e){return Gv.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,isVerifiablePresentation:Boolean}}_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,isVerifiablePresentation:r}){return t?de`
|
|
499
|
+
${gm}
|
|
500
|
+
${function(e,t,i){const r=["buv-c-full-certificate","qa-fullscreen-certificate"];$p.certificates.displayHtmlHasNoWidthConstraint(e)&&r.push("buv-c-certificate--fixed-width");const n=t?Xv(e):e;return i?de`<buv-verifiable-presentation></buv-verifiable-presentation>`:de`<section class$=${r.join(" ")}>${hm(n)}</section>`}(i,e,r)}
|
|
501
501
|
<div class='buv-c-full-certificate__details'>
|
|
502
502
|
<buv-final-verification-step class='buv-c-fullscreen-certificate__verification-status' isVisible hideLink standalone>
|
|
503
|
-
<buv-verify-button type='link'>${
|
|
503
|
+
<buv-verify-button type='link'>${Kh("text.verifyAgain")}</buv-verify-button>
|
|
504
504
|
</buv-final-verification-step>
|
|
505
505
|
<buv-certificate-details display="grid" class='buv-c-full-certificate__details-list'></buv-certificate-details>
|
|
506
506
|
</div>
|
|
507
|
-
`:de``}});const
|
|
507
|
+
`:de``}});const Qv=Dg(function(e){return de`
|
|
508
508
|
<buv-full-certificate-raw
|
|
509
509
|
clickableUrls = '${e.clickableUrls}'
|
|
510
510
|
hasCertificateDefinition = '${e.hasCertificateDefinition}'
|
|
511
511
|
displayHTML = '${e.displayHTML}'
|
|
512
512
|
isVerifiablePresentation = '${e.isVerifiablePresentation}'
|
|
513
|
-
></buv-full-certificate-raw>`},{mapStateToProps:e=>({hasCertificateDefinition:!!
|
|
514
|
-
${
|
|
513
|
+
></buv-full-certificate-raw>`},{mapStateToProps:e=>({hasCertificateDefinition:!!Zh(e),displayHTML:lg(e),clickableUrls:Qg(e),isVerifiablePresentation:og(e)})});window.customElements.define("buv-full-certificate",Qv);var ew=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:180px}}.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;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 10px 0}.buv-c-fullscreen-certificate__description{margin:0;font-size:12px}.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:100px;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,certificateTitle:String,certificateDescription:String,displayHTML:String,onClose:Function,disableDownloadPdf:Boolean,isVerifiablePresentation: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,certificateTitle:r,certificateDescription:n,displayHTML:o,onClose:a,disableDownloadPdf:s,isVerifiablePresentation:c}){if(!t)return de``;const l=["buv-c-fullscreen-certificate__certificate","qa-fullscreen-certificate"];return o&&$p.certificates.displayHtmlHasNoWidthConstraint(o)&&l.push("buv-c-certificate--fixed-width"),de`
|
|
514
|
+
${ew}
|
|
515
515
|
<section class='buv-c-fullscreen-certificate'>
|
|
516
516
|
<header class='buv-c-fullscreen-certificate-header'>
|
|
517
517
|
<div class='buv-c-fullscreen-certificate-header__content'>
|
|
518
518
|
<h1 class='buv-c-fullscreen-certificate__title'>${r?r+" - ":""}${i}</h1>
|
|
519
519
|
${n?de`<h3 class="buv-c-fullscreen-certificate__description">${n}</h3>`:""}
|
|
520
|
-
${
|
|
520
|
+
${Ib({onClick:a,className:"buv-c-fullscreen-certificate__close"})}
|
|
521
521
|
</div>
|
|
522
522
|
</header>
|
|
523
523
|
<section class='buv-c-fullscreen-certificate__content'>
|
|
524
524
|
<div class='buv-c-fullscreen-certificate__details'>
|
|
525
525
|
<buv-final-verification-step class='buv-c-fullscreen-certificate__verification-status' isVisible hideLink standalone>
|
|
526
|
-
<buv-verify-button type='link'>${
|
|
526
|
+
<buv-verify-button type='link'>${Kh("text.verifyAgain")}</buv-verify-button>
|
|
527
527
|
</buv-final-verification-step>
|
|
528
528
|
<buv-certificate-details display='column' hideRecipientName></buv-certificate-details>
|
|
529
529
|
<buv-metadata class='buv-c-fullscreen-certificate__details-item buv-c-fullscreen-certificate__separator' display='plaintext'></buv-metadata>
|
|
530
530
|
${s?"":de`<buv-download-pdf-link class='buv-c-fullscreen-certificate__details-item' display='plaintext'></buv-download-pdf-link>`}
|
|
531
531
|
<buv-download-link class='buv-c-fullscreen-certificate__details-item' display='plaintext'></buv-download-link>
|
|
532
532
|
<buv-social-share class='buv-c-fullscreen-certificate__details-item' display='plaintext'></buv-social-share>
|
|
533
|
-
${
|
|
533
|
+
${Jb({className:"buv-c-fullscreen-certificate__separator",showMotto:!0})}
|
|
534
534
|
<buv-verify-other-certificate class='buv-c-fullscreen-certificate__verify-other'></buv-verify-other-certificate>
|
|
535
535
|
</div>
|
|
536
536
|
<div class$=${l.join(" ")}>
|
|
537
|
-
${function(e,t,i){const r=t?
|
|
537
|
+
${function(e,t,i){const r=t?Xv(e):e;return i?de`<buv-verifiable-presentation></buv-verifiable-presentation>`:de`${hm(r)}`}(o,e,c)}
|
|
538
538
|
</div>
|
|
539
539
|
</section>
|
|
540
540
|
</section>
|
|
541
|
-
`}});const
|
|
541
|
+
`}});const tw=Dg(function(e){return de`
|
|
542
542
|
<buv-fullscreen-certificate-raw
|
|
543
543
|
clickableUrls = '${e.clickableUrls}'
|
|
544
544
|
hasCertificateDefinition = '${e.hasCertificateDefinition}'
|
|
@@ -549,13 +549,13 @@ const Em=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
|
|
|
549
549
|
onClose = '${e.onClose}'
|
|
550
550
|
disableDownloadPdf = '${e.disableDownloadPdf}'
|
|
551
551
|
isVerifiablePresentation = '${e.isVerifiablePresentation}'
|
|
552
|
-
></buv-fullscreen-certificate-raw>`},{mapDispatchToProps:{onClose
|
|
553
|
-
${
|
|
552
|
+
></buv-fullscreen-certificate-raw>`},{mapDispatchToProps:{onClose:$b},mapStateToProps:e=>({recipientName:tg(e),certificateTitle:ig(e),certificateDescription:Ig(e),hasCertificateDefinition:!!Zh(e),displayHTML:lg(e),clickableUrls:Qg(e),disableDownloadPdf:qg(e),isVerifiablePresentation:og(e)})});window.customElements.define("buv-fullscreen-certificate",tw);class iw extends be{constructor(){super(),this.onLoad=()=>{},this.hasRenderedOnce=!1}static get properties(){return Object.assign({onLoad:Function,errorMessage:String,additionalErrorInfo:String,hasCertificate:Boolean},lb)}_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 Lg.FULL:return de`<buv-full-certificate></buv-full-certificate>`;case Lg.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`
|
|
553
|
+
${dm}
|
|
554
554
|
<section class='buv-c-verifier-main'>
|
|
555
555
|
<buv-drag-and-drop>
|
|
556
556
|
<div class='buv-c-verifier-layout'>
|
|
557
557
|
<section class$='${t}'>
|
|
558
|
-
${
|
|
558
|
+
${Xb(e.errorMessage,e.additionalErrorInfo,!0)}
|
|
559
559
|
<buv-certificate-input></buv-certificate-input>
|
|
560
560
|
<buv-action-menu></buv-action-menu>
|
|
561
561
|
${this.renderCertificate(e)}
|
|
@@ -565,7 +565,7 @@ const Em=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
|
|
|
565
565
|
</div>
|
|
566
566
|
</buv-drag-and-drop>
|
|
567
567
|
</section>
|
|
568
|
-
`}}function
|
|
568
|
+
`}}function rw(e){return e.errorMessage}function nw(e){return e.additionalErrorInfo}window.customElements.define("buv-raw",iw);const ow={onLoad:function(e={}){return function(t){const i=function(e){return Object.keys(lb).reduce((t,i)=>(e[i]&&(t[i]=e[i]),t),{})}(e),{src:r,locale:n}=i;t({type:Ae,payload:{options:i}}),$p.certificates.isPathToCertificateValidURI(r)?t(ob(r)):function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(r)&&t(nb(JSON.parse(r))),db(n)}}},aw=Dg(function(e={}){return de`<buv-raw
|
|
569
569
|
src='${e.src}'
|
|
570
570
|
onLoad='${e.onLoad}'
|
|
571
571
|
errorMessage='${e.errorMessage}'
|
|
@@ -583,4 +583,4 @@ const Em=e=>{return(t=t=>{const i=document.createElement("template");i.innerHTML
|
|
|
583
583
|
locale='${e.locale}'
|
|
584
584
|
explorerAPIs='${e.explorerAPIs}'
|
|
585
585
|
didResolverUrl='${e["did-resolver-url"]}'
|
|
586
|
-
></buv-raw>`},{mapDispatchToProps:
|
|
586
|
+
></buv-raw>`},{mapDispatchToProps:ow,mapStateToProps:e=>({errorMessage:rw(e),additionalErrorInfo:nw(e),hasCertificate:!!Zh(e)}),ownProps:Object.assign(Object.assign({},iw.properties),cb)});window.customElements.define("blockcerts-verifier",aw);export{nt as A,Xi as B,_i as C,Ip as D,of as E,Vf as F,Jf as G,bp as H,mp as I,yc as J,qb as K,ym as L,xp as M,Lp as N,Tn as P,Ze as S,Ci as V,Op as _,Sp as a,ip as b,Ti as c,up as d,Qe as e,Zd as f,wi as g,ji as h,Pp as i,$a as j,Dd as k,jt as l,Dc as m,Mi as n,wf as o,li as p,Qf as q,Wf as r,tf as s,ef as t,Gd as u,Ef as v,If as w,Af as x,Di as y,Uf as z};
|