From 1ffc8b4175f8e2445c6c247c1fafab0f1e6a3dc7 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Mon, 12 Dec 2022 16:28:21 +0100 Subject: [PATCH] Release 0.18.1 --- CHANGELOG.md | 4 +- dist/doip.js | 169 +++++--- dist/doip.min.js | 6 +- package.json | 2 +- yarn.lock | 1059 +++++++++++++++++----------------------------- 5 files changed, 496 insertions(+), 744 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc06cdf..b3f3d77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [0.18.1] - 2022-12-12 ### Changed -- Improved XMPP vCard data parsing +- Improved XMPP proof requests ### Fixed - Added missing user-agent headers ### Removed diff --git a/dist/doip.js b/dist/doip.js index 8c6f988..38a8f37 100644 --- a/dist/doip.js +++ b/dist/doip.js @@ -18682,13 +18682,13 @@ exports.constants = { },{"browserify-cipher":68,"browserify-sign":76,"browserify-sign/algos":73,"create-ecdh":101,"create-hash":102,"create-hmac":104,"diffie-hellman":114,"pbkdf2":181,"public-encrypt":188,"randombytes":195,"randomfill":196}],107:[function(require,module,exports){ 'use strict'; var token = '%[a-f0-9]{2}'; -var singleMatcher = new RegExp(token, 'gi'); +var singleMatcher = new RegExp('(' + token + ')|([^%]+?)', 'gi'); var multiMatcher = new RegExp('(' + token + ')+', 'gi'); function decodeComponents(components, split) { try { // Try to decode the entire string first - return decodeURIComponent(components.join('')); + return [decodeURIComponent(components.join(''))]; } catch (err) { // Do nothing } @@ -18710,12 +18710,12 @@ function decode(input) { try { return decodeURIComponent(input); } catch (err) { - var tokens = input.match(singleMatcher); + var tokens = input.match(singleMatcher) || []; for (var i = 1; i < tokens.length; i++) { input = decodeComponents(tokens, i).join(''); - tokens = input.match(singleMatcher); + tokens = input.match(singleMatcher) || []; } return input; @@ -38808,7 +38808,7 @@ module.exports.default = exports.default; },{"./util/assertString":323}],329:[function(require,module,exports){ module.exports={ "name": "doipjs", - "version": "0.18.0", + "version": "0.18.1", "description": "Decentralized Online Identity Proofs library in Node.js", "main": "./src/index.js", "dependencies": { @@ -38824,7 +38824,6 @@ module.exports={ "express-validator": "^6.10.0", "hash-wasm": "^4.9.0", "irc-upd": "^0.11.0", - "jsdom": "^20.0.0", "merge-options": "^3.0.3", "openpgp": "^5.5.0", "query-string": "^6.14.1", @@ -38849,7 +38848,7 @@ module.exports={ }, "scripts": { "release": "yarn run test && yarn run release:bundle && yarn run release:minify", - "release:bundle": "./node_modules/.bin/browserify ./src/index.js --standalone doip -x openpgp -x jsdom -x @xmpp/client -x @xmpp/debug -x irc-upd -o ./dist/doip.js", + "release:bundle": "./node_modules/.bin/browserify ./src/index.js --standalone doip -x openpgp -x @xmpp/client -x @xmpp/debug -x irc-upd -o ./dist/doip.js", "release:minify": "./node_modules/.bin/minify ./dist/doip.js > ./dist/doip.min.js", "license:check": "./node_modules/.bin/license-check-and-add check", "license:add": "./node_modules/.bin/license-check-and-add add", @@ -40791,18 +40790,19 @@ const processURI = (uri) => { request: { fetcher: E.Fetcher.XMPP, access: E.ProofAccess.SERVER, - format: E.ProofFormat.TEXT, + format: E.ProofFormat.JSON, data: { - id: `${match[1]}@${match[2]}`, - field: 'note' + id: `${match[1]}@${match[2]}` } } }, - claim: [{ - format: E.ClaimFormat.URI, - relation: E.ClaimRelation.CONTAINS, - path: [] - }] + claim: [ + { + format: E.ClaimFormat.URI, + relation: E.ClaimRelation.CONTAINS, + path: [] + } + ] } } @@ -41116,7 +41116,8 @@ module.exports.fn = async (data, opts) => { const headers = { host, date: now.toUTCString(), - accept: 'application/activity+json' + accept: 'application/activity+json', + 'User-Agent': `doipjs/${require('../../package.json').version}` } if (isConfigured && jsEnv.isNode) { @@ -41151,7 +41152,7 @@ module.exports.fn = async (data, opts) => { }) } -},{"axios":17,"browser-or-node":49,"crypto":106,"validator":228}],354:[function(require,module,exports){ +},{"../../package.json":329,"axios":17,"browser-or-node":49,"crypto":106,"validator":228}],354:[function(require,module,exports){ /* Copyright 2021 Yarmo Mackenbach @@ -41506,7 +41507,10 @@ module.exports.fn = async (data, opts) => { const url = `https://${opts.claims.matrix.instance}/_matrix/client/r0/rooms/${data.roomId}/event/${data.eventId}?access_token=${opts.claims.matrix.accessToken}` axios.get(url, { - headers: { Accept: 'application/json' } + headers: { + Accept: 'application/json', + 'User-Agent': `doipjs/${require('../../package.json').version}` + } }) .then(res => { return res.data @@ -41525,7 +41529,7 @@ module.exports.fn = async (data, opts) => { }) } -},{"axios":17,"validator":228}],359:[function(require,module,exports){ +},{"../../package.json":329,"axios":17,"validator":228}],359:[function(require,module,exports){ /* Copyright 2022 Maximilian Siling @@ -41699,6 +41703,7 @@ module.exports.fn = async (data, opts) => { { headers: { Accept: 'application/json', + 'User-Agent': `doipjs/${require('../../package.json').version}`, Authorization: `Bearer ${opts.claims.twitter.bearerToken}` } } @@ -41720,7 +41725,7 @@ module.exports.fn = async (data, opts) => { }) } -},{"axios":17,"validator":228}],361:[function(require,module,exports){ +},{"../../package.json":329,"axios":17,"validator":228}],361:[function(require,module,exports){ (function (process){(function (){ /* Copyright 2021 Yarmo Mackenbach @@ -41750,7 +41755,6 @@ const jsEnv = require('browser-or-node') module.exports.timeout = 5000 if (jsEnv.isNode) { - const jsdom = require('jsdom') const { client, xml } = require('@xmpp/client') const debug = require('@xmpp/debug') const validator = require('validator') @@ -41770,10 +41774,10 @@ if (jsEnv.isNode) { } const { iqCaller } = xmpp xmpp.start() - xmpp.on('online', (address) => { + xmpp.on('online', _ => { resolve({ xmpp: xmpp, iqCaller: iqCaller }) }) - xmpp.on('error', (error) => { + xmpp.on('error', error => { reject(error) }) }) @@ -41785,7 +41789,6 @@ if (jsEnv.isNode) { * @async * @param {object} data - Data used in the request * @param {string} data.id - The identifier of the targeted account - * @param {string} data.field - The vCard field to return (should be "note") * @param {object} opts - Options used to enable the request * @param {string} opts.claims.xmpp.service - The server hostname on which the library can log in * @param {string} opts.claims.xmpp.username - The username used to log in @@ -41811,14 +41814,6 @@ if (jsEnv.isNode) { iqCaller = xmppStartRes.iqCaller } - const response = await iqCaller.request( - xml('iq', { type: 'get', to: data.id }, xml('vCard', 'vcard-temp')), - 30 * 1000 - ) - - const vcardRow = response.getChild('vCard', 'vcard-temp').toString() - const dom = new jsdom.JSDOM(vcardRow) - let timeoutHandle const timeoutPromise = new Promise((resolve, reject) => { timeoutHandle = setTimeout( @@ -41828,35 +41823,93 @@ if (jsEnv.isNode) { }) const fetchPromise = new Promise((resolve, reject) => { - try { - let vcard + (async () => { + let completed = false + const proofs = [] - switch (data.field.toLowerCase()) { - case 'desc': - case 'note': - vcard = dom.window.document.querySelector('note text') - if (!vcard) { - vcard = dom.window.document.querySelector('note') - } - if (!vcard) { - vcard = dom.window.document.querySelector('DESC') - } - if (vcard) { - vcard = vcard.textContent - } else { - throw new Error('No DESC or NOTE field found in vCard') - } - break + // Try the ariadne-id pubsub request + if (!completed) { + try { + const response = await iqCaller.request( + xml('iq', { type: 'get', to: data.id }, xml('pubsub', 'http://jabber.org/protocol/pubsub', xml('items', { node: 'http://ariadne.id/protocol/proof' }))), + 30 * 1000 + ) - default: - vcard = dom.window.document.querySelector(data).textContent - break + // Traverse the XML response + response.getChild('pubsub').getChildren('items').forEach(items => { + if (items.attrs.node === 'http://ariadne.id/protocol/proof') { + items.getChildren('item').forEach(item => { + proofs.push(item.getChildText('value')) + }) + } + }) + + resolve(proofs) + completed = true + } catch (_) {} } + + // Try the vcard4 pubsub request [backward compatibility] + if (!completed) { + try { + const response = await iqCaller.request( + xml('iq', { type: 'get', to: data.id }, xml('pubsub', 'http://jabber.org/protocol/pubsub', xml('items', { node: 'urn:xmpp:vcard4', max_items: '1' }))), + 30 * 1000 + ) + + // Traverse the XML response + response.getChild('pubsub').getChildren('items').forEach(items => { + if (items.attrs.node === 'urn:xmpp:vcard4') { + items.getChildren('item').forEach(item => { + if (item.attrs.id === 'current') { + const itemVcard = item.getChild('vcard', 'urn:ietf:params:xml:ns:vcard-4.0') + // Find the vCard URLs + itemVcard.getChildren('url').forEach(url => { + proofs.push(url.getChildText('uri')) + }) + // Find the vCard notes + itemVcard.getChildren('note').forEach(note => { + proofs.push(note.getChildText('text')) + }) + } + }) + } + }) + + resolve(proofs) + completed = true + } catch (_) {} + } + + // Try the vcard-temp IQ request [backward compatibility] + if (!completed) { + try { + const response = await iqCaller.request( + xml('iq', { type: 'get', to: data.id }, xml('vCard', 'vcard-temp')), + 30 * 1000 + ) + + // Find the vCard URLs + response.getChild('vCard', 'vcard-temp').getChildren('URL').forEach(url => { + proofs.push(url.children[0]) + }) + // Find the vCard notes + response.getChild('vCard', 'vcard-temp').getChildren('NOTE').forEach(note => { + proofs.push(note.children[0]) + }) + response.getChild('vCard', 'vcard-temp').getChildren('DESC').forEach(note => { + proofs.push(note.children[0]) + }) + + resolve(proofs) + completed = true + } catch (error) { + reject(error) + } + } + xmpp.stop() - resolve(vcard) - } catch (error) { - reject(error) - } + })() }) return Promise.race([fetchPromise, timeoutPromise]).then((result) => { @@ -41869,7 +41922,7 @@ if (jsEnv.isNode) { } }).call(this)}).call(this,require('_process')) -},{"@xmpp/client":"@xmpp/client","@xmpp/debug":"@xmpp/debug","_process":187,"browser-or-node":49,"jsdom":"jsdom","validator":228}],362:[function(require,module,exports){ +},{"@xmpp/client":"@xmpp/client","@xmpp/debug":"@xmpp/debug","_process":187,"browser-or-node":49,"validator":228}],362:[function(require,module,exports){ /* Copyright 2021 Yarmo Mackenbach diff --git a/dist/doip.min.js b/dist/doip.min.js index ce1fd8b..1385b4d 100644 --- a/dist/doip.min.js +++ b/dist/doip.min.js @@ -1,11 +1,11 @@ -!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).doip=e()}}((function(){return function e(t,i,A){function r(o,a){if(!i[o]){if(!t[o]){var s="function"==typeof require&&require;if(!a&&s)return s(o,!0);if(n)return n(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var I=i[o]={exports:{}};t[o][0].call(I.exports,(function(e){return r(t[o][1][e]||e)}),I,I.exports,e,t,i,A)}return i[o].exports}for(var n="function"==typeof require&&require,o=0;o0||n>o]}return a}(new Uint8Array(await this._subtle.digest("SHA-1",r))),o=encodeURIComponent(i),a=`https://openpgpkey.${A}/.well-known/openpgpkey/${A}/hu/${n}?l=${o}`,s=`https://${A}/.well-known/openpgpkey/hu/${n}?l=${o}`;let c;try{if(c=await t(a),200!==c.status)throw new Error("Advanced WKD lookup failed: "+c.statusText)}catch(e){if(c=await t(s),200!==c.status)throw new Error("Direct WKD lookup failed: "+c.statusText)}return new Uint8Array(await c.arrayBuffer())}}},{"@peculiar/webcrypto":50,crypto:50,"node-fetch":50}],3:[function(e,t,i){"use strict";const A=i;A.bignum=e("bn.js"),A.define=e("./asn1/api").define,A.base=e("./asn1/base"),A.constants=e("./asn1/constants"),A.decoders=e("./asn1/decoders"),A.encoders=e("./asn1/encoders")},{"./asn1/api":4,"./asn1/base":6,"./asn1/constants":10,"./asn1/decoders":12,"./asn1/encoders":15,"bn.js":47}],4:[function(e,t,i){"use strict";const A=e("./encoders"),r=e("./decoders"),n=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}i.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){const t=this.name;function i(e){this._initNamed(e,t)}return n(i,e),i.prototype._initNamed=function(t,i){e.call(this,t,i)},new i(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r[e])),this.decoders[e]},o.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(A[e])),this.encoders[e]},o.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}},{"./decoders":12,"./encoders":15,inherits:169}],5:[function(e,t,i){"use strict";const A=e("inherits"),r=e("../base/reporter").Reporter,n=e("safer-buffer").Buffer;function o(e,t){r.call(this,t),n.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return a.isEncoderBuffer(e)||(e=new a(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=n.byteLength(e);else{if(!n.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}A(o,r),i.DecoderBuffer=o,o.isDecoderBuffer=function(e){if(e instanceof o)return!0;return"object"==typeof e&&n.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},o.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},o.prototype.restore=function(e){const t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,r.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const i=new o(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},i.EncoderBuffer=a,a.isEncoderBuffer=function(e){if(e instanceof a)return!0;return"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},a.prototype.join=function(e,t){return e||(e=n.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(e,t),t+=i.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):n.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":8,inherits:169,"safer-buffer":199}],6:[function(e,t,i){"use strict";const A=i;A.Reporter=e("./reporter").Reporter,A.DecoderBuffer=e("./buffer").DecoderBuffer,A.EncoderBuffer=e("./buffer").EncoderBuffer,A.Node=e("./node")},{"./buffer":5,"./node":7,"./reporter":8}],7:[function(e,t,i){"use strict";const A=e("../base/reporter").Reporter,r=e("../base/buffer").EncoderBuffer,n=e("../base/buffer").DecoderBuffer,o=e("minimalistic-assert"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function c(e,t,i){const A={};this._baseState=A,A.name=i,A.enc=e,A.parent=t||null,A.children=null,A.tag=null,A.args=null,A.reverseArgs=null,A.choice=null,A.optional=!1,A.any=!1,A.obj=!1,A.use=null,A.useDecoder=null,A.key=null,A.default=null,A.explicit=null,A.implicit=null,A.contains=null,A.parent||(A.children=[],this._wrap())}t.exports=c;const I=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};I.forEach((function(i){t[i]=e[i]}));const i=new this.constructor(t.parent);return i._baseState=t,i},c.prototype._wrap=function(){const e=this._baseState;s.forEach((function(t){this[t]=function(){const i=new this.constructor(this);return e.children.push(i),i[t].apply(i,arguments)}}),this)},c.prototype._init=function(e){const t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,i=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==i.length&&(o(null===t.children),t.children=i,i.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(i){i==(0|i)&&(i|=0);const A=e[i];t[A]=i})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),a.forEach((function(e){c.prototype[e]=function(){const t=this._baseState,i=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(i),this}})),c.prototype.use=function(e){o(e);const t=this._baseState;return o(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return o(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){const t=this._baseState;return o(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));let A,r=i.default,o=!0,a=null;if(null!==i.key&&(a=e.enterKey(i.key)),i.optional){let A=null;if(null!==i.explicit?A=i.explicit:null!==i.implicit?A=i.implicit:null!==i.tag&&(A=i.tag),null!==A||i.any){if(o=this._peekTag(e,A,i.any),e.isError(o))return o}else{const A=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(A)}}if(i.obj&&o&&(A=e.enterObject()),o){if(null!==i.explicit){const t=this._decodeTag(e,i.explicit);if(e.isError(t))return t;e=t}const A=e.offset;if(null===i.use&&null===i.choice){let t;i.any&&(t=e.save());const A=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(A))return A;i.any?r=e.raw(t):e=A}if(t&&t.track&&null!==i.tag&&t.track(e.path(),A,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(r=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(r))return r;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(e,t)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){const A=new n(r);r=this._getUse(i.contains,e._reporterState.obj)._decode(A,t)}}return i.obj&&o&&(r=e.leaveObject(A)),null===i.key||null===r&&!0!==o?null!==a&&e.exitKey(a):e.leaveKey(a,i.key,r),r},c.prototype._decodeGeneric=function(e,t,i){const A=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,A.args[0],i):/str$/.test(e)?this._decodeStr(t,e,i):"objid"===e&&A.args?this._decodeObjid(t,A.args[0],A.args[1],i):"objid"===e?this._decodeObjid(t,null,null,i):"gentime"===e||"utctime"===e?this._decodeTime(t,e,i):"null_"===e?this._decodeNull(t,i):"bool"===e?this._decodeBool(t,i):"objDesc"===e?this._decodeStr(t,e,i):"int"===e||"enum"===e?this._decodeInt(t,A.args&&A.args[0],i):null!==A.use?this._getUse(A.use,t._reporterState.obj)._decode(t,i):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const i=this._baseState;return i.useDecoder=this._use(e,t),o(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},c.prototype._decodeChoice=function(e,t){const i=this._baseState;let A=null,r=!1;return Object.keys(i.choice).some((function(n){const o=e.save(),a=i.choice[n];try{const i=a._decode(e,t);if(e.isError(i))return!1;A={type:n,value:i},r=!0}catch(t){return e.restore(o),!1}return!0}),this),r?A:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new r(e,this.reporter)},c.prototype._encode=function(e,t,i){const A=this._baseState;if(null!==A.default&&A.default===e)return;const r=this._encodeValue(e,t,i);return void 0===r||this._skipDefault(r,t,i)?void 0:r},c.prototype._encodeValue=function(e,t,i){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new A);let n=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}let o=null,a=!1;if(r.any)n=this._createEncoderBuffer(e);else if(r.choice)n=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,i)._encode(e,t),a=!0;else if(r.children)o=r.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,t,e);if(null===i._baseState.key)return t.error("Child should have a key");const A=t.enterKey(i._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const r=i._encode(e[i._baseState.key],t,e);return t.leaveKey(A),r}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const i=this.clone();i._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(i){const A=this._baseState;return this._getUse(A.args[0],e)._encode(i,t)}),i))}else null!==r.use?n=this._getUse(r.use,i)._encode(e,t):(o=this._encodePrimitive(r.tag,e),a=!0);if(!r.any&&null===r.choice){const e=null!==r.implicit?r.implicit:r.tag,i=null===r.implicit?"universal":"context";null===e?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(n=this._encodeComposite(e,a,i,o))}return null!==r.explicit&&(n=this._encodeComposite(r.explicit,!1,"context",n)),n},c.prototype._encodeChoice=function(e,t){const i=this._baseState,A=i.choice[e.type];return A||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),A._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const i=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&i.args)return this._encodeObjid(t,i.reverseArgs[0],i.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,i.args&&i.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":5,"../base/reporter":8,"minimalistic-assert":174}],8:[function(e,t,i){"use strict";const A=e("inherits");function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function n(e,t){this.path=e,this.rethrow(t)}i.Reporter=r,r.prototype.isError=function(e){return e instanceof n},r.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,i){const A=this._reporterState;this.exitKey(e),null!==A.obj&&(A.obj[t]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){const t=this._reporterState,i=t.obj;return t.obj=e,i},r.prototype.error=function(e){let t;const i=this._reporterState,A=e instanceof n;if(t=A?e:new n(i.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!i.options.partial)throw t;return A||i.errors.push(t),t},r.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},A(n,Error),n.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:169}],9:[function(e,t,i){"use strict";function A(e){const t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);const A=e[i];t[A]=i})),t}i.tagClass={0:"universal",1:"application",2:"context",3:"private"},i.tagClassByName=A(i.tagClass),i.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},i.tagByName=A(i.tag)},{}],10:[function(e,t,i){"use strict";const A=i;A._reverse=function(e){const t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);const A=e[i];t[A]=i})),t},A.der=e("./der")},{"./der":9}],11:[function(e,t,i){"use strict";const A=e("inherits"),r=e("bn.js"),n=e("../base/buffer").DecoderBuffer,o=e("../base/node"),a=e("../constants/der");function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.call(this,"der",e)}function I(e,t){let i=e.readUInt8(t);if(e.isError(i))return i;const A=a.tagClass[i>>6],r=0==(32&i);if(31==(31&i)){let A=i;for(i=0;128==(128&A);){if(A=e.readUInt8(t),e.isError(A))return A;i<<=7,i|=127&A}}else i&=31;return{cls:A,primitive:r,tag:i,tagStr:a.tag[i]}}function f(e,t,i){let A=e.readUInt8(i);if(e.isError(A))return A;if(!t&&128===A)return null;if(0==(128&A))return A;const r=127&A;if(r>4)return e.error("length octect is too long");A=0;for(let t=0;t=31)return A.error("Multi-octet tag encoding unsupported");t||(r|=32);return r|=o.tagClassByName[i||"universal"]<<6,r}(e,t,i,this.reporter);if(A.length<128){const e=r.alloc(2);return e[0]=n,e[1]=A.length,this._createEncoderBuffer([e,A])}let a=1;for(let e=A.length;e>=256;e>>=8)a++;const s=r.alloc(2+a);s[0]=n,s[1]=128|a;for(let e=1+a,t=A.length;t>0;e--,t>>=8)s[e]=255&t;return this._createEncoderBuffer([s,A])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=r.alloc(2*e.length);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let A=0;for(let t=0;t=128;i>>=7)A++}const n=r.alloc(A);let o=n.length-1;for(let t=e.length-1;t>=0;t--){let i=e[t];for(n[o--]=127&i;(i>>=7)>0;)n[o--]=128|127&i}return this._createEncoderBuffer(n)},s.prototype._encodeTime=function(e,t){let i;const A=new Date(e);return"gentime"===t?i=[c(A.getUTCFullYear()),c(A.getUTCMonth()+1),c(A.getUTCDate()),c(A.getUTCHours()),c(A.getUTCMinutes()),c(A.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[c(A.getUTCFullYear()%100),c(A.getUTCMonth()+1),c(A.getUTCDate()),c(A.getUTCHours()),c(A.getUTCMinutes()),c(A.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!r.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=r.from(t)}if(r.isBuffer(e)){let t=e.length;0===e.length&&t++;const i=r.alloc(t);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let i=1;for(let t=e;t>=256;t>>=8)i++;const A=new Array(i);for(let t=A.length-1;t>=0;t--)A[t]=255&e,e>>=8;return 128&A[0]&&A.unshift(0),this._createEncoderBuffer(r.from(A))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,i){const A=this._baseState;let r;if(null===A.default)return!1;const n=e.join();if(void 0===A.defaultBuffer&&(A.defaultBuffer=this._encodeValue(A.default,t,i).join()),n.length!==A.defaultBuffer.length)return!1;for(r=0;r=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};A.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),A.forEach(["post","put","patch"],(function(e){c.headers[e]=A.merge(o)})),t.exports=c}).call(this)}).call(this,e("_process"))},{"./adapters/http":18,"./adapters/xhr":18,"./core/enhanceError":28,"./helpers/normalizeHeaderName":41,"./utils":45,_process:187}],33:[function(e,t,i){t.exports={version:"0.25.0"}},{}],34:[function(e,t,i){"use strict";t.exports=function(e,t){return function(){for(var i=new Array(arguments.length),A=0;A=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([i]):o[t]?o[t]+", "+i:i}})),o):o}},{"./../utils":45}],43:[function(e,t,i){"use strict";t.exports=function(e){return function(t){return e.apply(null,t)}}},{}],44:[function(e,t,i){"use strict";var A=e("../env/data").version,r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));var n={};r.transitional=function(e,t,i){function r(e,t){return"[Axios v"+A+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,A,o){if(!1===e)throw new Error(r(A," has been removed"+(t?" in "+t:"")));return t&&!n[A]&&(n[A]=!0,console.warn(r(A," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,A,o)}},t.exports={assertOptions:function(e,t,i){if("object"!=typeof e)throw new TypeError("options must be an object");for(var A=Object.keys(e),r=A.length;r-- >0;){var n=A[r],o=t[n];if(o){var a=e[n],s=void 0===a||o(a,n,e);if(!0!==s)throw new TypeError("option "+n+" must be "+s)}else if(!0!==i)throw Error("Unknown option "+n)}},validators:r}},{"../env/data":33}],45:[function(e,t,i){"use strict";var A=e("./helpers/bind"),r=Object.prototype.toString;function n(e){return Array.isArray(e)}function o(e){return void 0===e}function a(e){return"[object ArrayBuffer]"===r.call(e)}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function I(e){return"[object Function]"===r.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),n(e))for(var i=0,A=e.length;i0?o-4:o;for(i=0;i>16&255,s[I++]=t>>8&255,s[I++]=255&t;2===a&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,s[I++]=255&t);1===a&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,s[I++]=t>>8&255,s[I++]=255&t);return s},i.fromByteArray=function(e){for(var t,i=e.length,r=i%3,n=[],o=16383,a=0,s=i-r;as?s:a+o));1===r?(t=e[i-1],n.push(A[t>>2]+A[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],n.push(A[t>>10]+A[t>>4&63]+A[t<<2&63]+"="));return n.join("")};for(var A=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function I(e,t,i){for(var r,n,o=[],a=t;a>18&63]+A[n>>12&63]+A[n>>6&63]+A[63&n]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},{}],47:[function(e,t,i){!function(t,i){"use strict";function A(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function n(e,t,i){if(n.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var o;"object"==typeof t?t.exports=n:i.BN=n,n.BN=n,n.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function a(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var A=a(e,i);return i-1>=t&&(A|=a(e,i-1)<<4),A}function c(e,t,i,A){for(var r=0,n=Math.min(e.length,i),o=t;o=49?a-49+10:a>=17?a-17+10:a}return r}n.isBN=function(e){return e instanceof n||null!==e&&"object"==typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),A(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[n]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);else if("le"===i)for(r=0,n=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);return this.strip()},n.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var A=0;A=t;A-=2)r=s(e,t,A)<=18?(n-=18,o+=1,this.words[o]|=r>>>26):n+=8;else for(A=(e.length-t)%2==0?t+1:t;A=18?(n-=18,o+=1,this.words[o]|=r>>>26):n+=8;this.strip()},n.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var A=0,r=1;r<=67108863;r*=t)A++;A--,r=r/t|0;for(var n=e.length-i,o=n%A,a=Math.min(n,n-o)+i,s=0,I=i;I1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?""};var I=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function g(e,t,i){i.negative=t.negative^e.negative;var A=e.length+t.length|0;i.length=A,A=A-1|0;var r=0|e.words[0],n=0|t.words[0],o=r*n,a=67108863&o,s=o/67108864|0;i.words[0]=a;for(var c=1;c>>26,f=67108863&s,h=Math.min(c,t.length-1),g=Math.max(0,c-e.length+1);g<=h;g++){var u=c-g|0;I+=(o=(r=0|e.words[u])*(n=0|t.words[g])+f)/67108864|0,f=67108863&o}i.words[c]=0|f,s=0|I}return 0!==s?i.words[c]=0|s:i.length--,i.strip()}n.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,n=0,o=0;o>>24-r&16777215)||o!==this.length-1?I[6-s.length]+s+i:s+i,(r+=2)>=26&&(r-=26,o--)}for(0!==n&&(i=n.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var c=f[e],g=h[e];i="";var u=this.clone();for(u.negative=0;!u.isZero();){var d=u.modn(g).toString(e);i=(u=u.idivn(g)).isZero()?d+i:I[c-d.length]+d+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}A(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&A(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return A(void 0!==o),this.toArrayLike(o,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,i){var r=this.byteLength(),n=i||Math.max(1,r);A(r<=n,"byte array longer than desired length"),A(n>0,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,c=new e(n),I=this.clone();if(s){for(a=0;!I.isZero();a++)o=I.andln(255),I.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var A=0;Ae.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){A("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){A("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<e.length?(i=this,A=e):(i=e,A=this);for(var r=0,n=0;n>>26;for(;0!==r&&n>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ne.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,A,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,A=e):(i=e,A=this);for(var n=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==n&&o>26,this.words[o]=67108863&t;if(0===n&&o>>13,g=0|o[1],u=8191&g,d=g>>>13,l=0|o[2],B=8191&l,p=l>>>13,C=0|o[3],Q=8191&C,E=C>>>13,y=0|o[4],b=8191&y,m=y>>>13,w=0|o[5],v=8191&w,D=w>>>13,S=0|o[6],F=8191&S,k=S>>>13,M=0|o[7],N=8191&M,U=M>>>13,G=0|o[8],H=8191&G,_=G>>>13,R=0|o[9],K=8191&R,q=R>>>13,x=0|a[0],J=8191&x,Y=x>>>13,O=0|a[1],L=8191&O,P=O>>>13,z=0|a[2],Z=8191&z,T=z>>>13,X=0|a[3],V=8191&X,j=X>>>13,W=0|a[4],$=8191&W,ee=W>>>13,te=0|a[5],ie=8191&te,Ae=te>>>13,re=0|a[6],ne=8191&re,oe=re>>>13,ae=0|a[7],se=8191&ae,ce=ae>>>13,Ie=0|a[8],fe=8191&Ie,he=Ie>>>13,ge=0|a[9],ue=8191&ge,de=ge>>>13;i.negative=e.negative^t.negative,i.length=19;var le=(c+(A=Math.imul(f,J))|0)+((8191&(r=(r=Math.imul(f,Y))+Math.imul(h,J)|0))<<13)|0;c=((n=Math.imul(h,Y))+(r>>>13)|0)+(le>>>26)|0,le&=67108863,A=Math.imul(u,J),r=(r=Math.imul(u,Y))+Math.imul(d,J)|0,n=Math.imul(d,Y);var Be=(c+(A=A+Math.imul(f,L)|0)|0)+((8191&(r=(r=r+Math.imul(f,P)|0)+Math.imul(h,L)|0))<<13)|0;c=((n=n+Math.imul(h,P)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,A=Math.imul(B,J),r=(r=Math.imul(B,Y))+Math.imul(p,J)|0,n=Math.imul(p,Y),A=A+Math.imul(u,L)|0,r=(r=r+Math.imul(u,P)|0)+Math.imul(d,L)|0,n=n+Math.imul(d,P)|0;var pe=(c+(A=A+Math.imul(f,Z)|0)|0)+((8191&(r=(r=r+Math.imul(f,T)|0)+Math.imul(h,Z)|0))<<13)|0;c=((n=n+Math.imul(h,T)|0)+(r>>>13)|0)+(pe>>>26)|0,pe&=67108863,A=Math.imul(Q,J),r=(r=Math.imul(Q,Y))+Math.imul(E,J)|0,n=Math.imul(E,Y),A=A+Math.imul(B,L)|0,r=(r=r+Math.imul(B,P)|0)+Math.imul(p,L)|0,n=n+Math.imul(p,P)|0,A=A+Math.imul(u,Z)|0,r=(r=r+Math.imul(u,T)|0)+Math.imul(d,Z)|0,n=n+Math.imul(d,T)|0;var Ce=(c+(A=A+Math.imul(f,V)|0)|0)+((8191&(r=(r=r+Math.imul(f,j)|0)+Math.imul(h,V)|0))<<13)|0;c=((n=n+Math.imul(h,j)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,A=Math.imul(b,J),r=(r=Math.imul(b,Y))+Math.imul(m,J)|0,n=Math.imul(m,Y),A=A+Math.imul(Q,L)|0,r=(r=r+Math.imul(Q,P)|0)+Math.imul(E,L)|0,n=n+Math.imul(E,P)|0,A=A+Math.imul(B,Z)|0,r=(r=r+Math.imul(B,T)|0)+Math.imul(p,Z)|0,n=n+Math.imul(p,T)|0,A=A+Math.imul(u,V)|0,r=(r=r+Math.imul(u,j)|0)+Math.imul(d,V)|0,n=n+Math.imul(d,j)|0;var Qe=(c+(A=A+Math.imul(f,$)|0)|0)+((8191&(r=(r=r+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((n=n+Math.imul(h,ee)|0)+(r>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,A=Math.imul(v,J),r=(r=Math.imul(v,Y))+Math.imul(D,J)|0,n=Math.imul(D,Y),A=A+Math.imul(b,L)|0,r=(r=r+Math.imul(b,P)|0)+Math.imul(m,L)|0,n=n+Math.imul(m,P)|0,A=A+Math.imul(Q,Z)|0,r=(r=r+Math.imul(Q,T)|0)+Math.imul(E,Z)|0,n=n+Math.imul(E,T)|0,A=A+Math.imul(B,V)|0,r=(r=r+Math.imul(B,j)|0)+Math.imul(p,V)|0,n=n+Math.imul(p,j)|0,A=A+Math.imul(u,$)|0,r=(r=r+Math.imul(u,ee)|0)+Math.imul(d,$)|0,n=n+Math.imul(d,ee)|0;var Ee=(c+(A=A+Math.imul(f,ie)|0)|0)+((8191&(r=(r=r+Math.imul(f,Ae)|0)+Math.imul(h,ie)|0))<<13)|0;c=((n=n+Math.imul(h,Ae)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,A=Math.imul(F,J),r=(r=Math.imul(F,Y))+Math.imul(k,J)|0,n=Math.imul(k,Y),A=A+Math.imul(v,L)|0,r=(r=r+Math.imul(v,P)|0)+Math.imul(D,L)|0,n=n+Math.imul(D,P)|0,A=A+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,T)|0)+Math.imul(m,Z)|0,n=n+Math.imul(m,T)|0,A=A+Math.imul(Q,V)|0,r=(r=r+Math.imul(Q,j)|0)+Math.imul(E,V)|0,n=n+Math.imul(E,j)|0,A=A+Math.imul(B,$)|0,r=(r=r+Math.imul(B,ee)|0)+Math.imul(p,$)|0,n=n+Math.imul(p,ee)|0,A=A+Math.imul(u,ie)|0,r=(r=r+Math.imul(u,Ae)|0)+Math.imul(d,ie)|0,n=n+Math.imul(d,Ae)|0;var ye=(c+(A=A+Math.imul(f,ne)|0)|0)+((8191&(r=(r=r+Math.imul(f,oe)|0)+Math.imul(h,ne)|0))<<13)|0;c=((n=n+Math.imul(h,oe)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,A=Math.imul(N,J),r=(r=Math.imul(N,Y))+Math.imul(U,J)|0,n=Math.imul(U,Y),A=A+Math.imul(F,L)|0,r=(r=r+Math.imul(F,P)|0)+Math.imul(k,L)|0,n=n+Math.imul(k,P)|0,A=A+Math.imul(v,Z)|0,r=(r=r+Math.imul(v,T)|0)+Math.imul(D,Z)|0,n=n+Math.imul(D,T)|0,A=A+Math.imul(b,V)|0,r=(r=r+Math.imul(b,j)|0)+Math.imul(m,V)|0,n=n+Math.imul(m,j)|0,A=A+Math.imul(Q,$)|0,r=(r=r+Math.imul(Q,ee)|0)+Math.imul(E,$)|0,n=n+Math.imul(E,ee)|0,A=A+Math.imul(B,ie)|0,r=(r=r+Math.imul(B,Ae)|0)+Math.imul(p,ie)|0,n=n+Math.imul(p,Ae)|0,A=A+Math.imul(u,ne)|0,r=(r=r+Math.imul(u,oe)|0)+Math.imul(d,ne)|0,n=n+Math.imul(d,oe)|0;var be=(c+(A=A+Math.imul(f,se)|0)|0)+((8191&(r=(r=r+Math.imul(f,ce)|0)+Math.imul(h,se)|0))<<13)|0;c=((n=n+Math.imul(h,ce)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,A=Math.imul(H,J),r=(r=Math.imul(H,Y))+Math.imul(_,J)|0,n=Math.imul(_,Y),A=A+Math.imul(N,L)|0,r=(r=r+Math.imul(N,P)|0)+Math.imul(U,L)|0,n=n+Math.imul(U,P)|0,A=A+Math.imul(F,Z)|0,r=(r=r+Math.imul(F,T)|0)+Math.imul(k,Z)|0,n=n+Math.imul(k,T)|0,A=A+Math.imul(v,V)|0,r=(r=r+Math.imul(v,j)|0)+Math.imul(D,V)|0,n=n+Math.imul(D,j)|0,A=A+Math.imul(b,$)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(m,$)|0,n=n+Math.imul(m,ee)|0,A=A+Math.imul(Q,ie)|0,r=(r=r+Math.imul(Q,Ae)|0)+Math.imul(E,ie)|0,n=n+Math.imul(E,Ae)|0,A=A+Math.imul(B,ne)|0,r=(r=r+Math.imul(B,oe)|0)+Math.imul(p,ne)|0,n=n+Math.imul(p,oe)|0,A=A+Math.imul(u,se)|0,r=(r=r+Math.imul(u,ce)|0)+Math.imul(d,se)|0,n=n+Math.imul(d,ce)|0;var me=(c+(A=A+Math.imul(f,fe)|0)|0)+((8191&(r=(r=r+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((n=n+Math.imul(h,he)|0)+(r>>>13)|0)+(me>>>26)|0,me&=67108863,A=Math.imul(K,J),r=(r=Math.imul(K,Y))+Math.imul(q,J)|0,n=Math.imul(q,Y),A=A+Math.imul(H,L)|0,r=(r=r+Math.imul(H,P)|0)+Math.imul(_,L)|0,n=n+Math.imul(_,P)|0,A=A+Math.imul(N,Z)|0,r=(r=r+Math.imul(N,T)|0)+Math.imul(U,Z)|0,n=n+Math.imul(U,T)|0,A=A+Math.imul(F,V)|0,r=(r=r+Math.imul(F,j)|0)+Math.imul(k,V)|0,n=n+Math.imul(k,j)|0,A=A+Math.imul(v,$)|0,r=(r=r+Math.imul(v,ee)|0)+Math.imul(D,$)|0,n=n+Math.imul(D,ee)|0,A=A+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,Ae)|0)+Math.imul(m,ie)|0,n=n+Math.imul(m,Ae)|0,A=A+Math.imul(Q,ne)|0,r=(r=r+Math.imul(Q,oe)|0)+Math.imul(E,ne)|0,n=n+Math.imul(E,oe)|0,A=A+Math.imul(B,se)|0,r=(r=r+Math.imul(B,ce)|0)+Math.imul(p,se)|0,n=n+Math.imul(p,ce)|0,A=A+Math.imul(u,fe)|0,r=(r=r+Math.imul(u,he)|0)+Math.imul(d,fe)|0,n=n+Math.imul(d,he)|0;var we=(c+(A=A+Math.imul(f,ue)|0)|0)+((8191&(r=(r=r+Math.imul(f,de)|0)+Math.imul(h,ue)|0))<<13)|0;c=((n=n+Math.imul(h,de)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,A=Math.imul(K,L),r=(r=Math.imul(K,P))+Math.imul(q,L)|0,n=Math.imul(q,P),A=A+Math.imul(H,Z)|0,r=(r=r+Math.imul(H,T)|0)+Math.imul(_,Z)|0,n=n+Math.imul(_,T)|0,A=A+Math.imul(N,V)|0,r=(r=r+Math.imul(N,j)|0)+Math.imul(U,V)|0,n=n+Math.imul(U,j)|0,A=A+Math.imul(F,$)|0,r=(r=r+Math.imul(F,ee)|0)+Math.imul(k,$)|0,n=n+Math.imul(k,ee)|0,A=A+Math.imul(v,ie)|0,r=(r=r+Math.imul(v,Ae)|0)+Math.imul(D,ie)|0,n=n+Math.imul(D,Ae)|0,A=A+Math.imul(b,ne)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(m,ne)|0,n=n+Math.imul(m,oe)|0,A=A+Math.imul(Q,se)|0,r=(r=r+Math.imul(Q,ce)|0)+Math.imul(E,se)|0,n=n+Math.imul(E,ce)|0,A=A+Math.imul(B,fe)|0,r=(r=r+Math.imul(B,he)|0)+Math.imul(p,fe)|0,n=n+Math.imul(p,he)|0;var ve=(c+(A=A+Math.imul(u,ue)|0)|0)+((8191&(r=(r=r+Math.imul(u,de)|0)+Math.imul(d,ue)|0))<<13)|0;c=((n=n+Math.imul(d,de)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,A=Math.imul(K,Z),r=(r=Math.imul(K,T))+Math.imul(q,Z)|0,n=Math.imul(q,T),A=A+Math.imul(H,V)|0,r=(r=r+Math.imul(H,j)|0)+Math.imul(_,V)|0,n=n+Math.imul(_,j)|0,A=A+Math.imul(N,$)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(U,$)|0,n=n+Math.imul(U,ee)|0,A=A+Math.imul(F,ie)|0,r=(r=r+Math.imul(F,Ae)|0)+Math.imul(k,ie)|0,n=n+Math.imul(k,Ae)|0,A=A+Math.imul(v,ne)|0,r=(r=r+Math.imul(v,oe)|0)+Math.imul(D,ne)|0,n=n+Math.imul(D,oe)|0,A=A+Math.imul(b,se)|0,r=(r=r+Math.imul(b,ce)|0)+Math.imul(m,se)|0,n=n+Math.imul(m,ce)|0,A=A+Math.imul(Q,fe)|0,r=(r=r+Math.imul(Q,he)|0)+Math.imul(E,fe)|0,n=n+Math.imul(E,he)|0;var De=(c+(A=A+Math.imul(B,ue)|0)|0)+((8191&(r=(r=r+Math.imul(B,de)|0)+Math.imul(p,ue)|0))<<13)|0;c=((n=n+Math.imul(p,de)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863,A=Math.imul(K,V),r=(r=Math.imul(K,j))+Math.imul(q,V)|0,n=Math.imul(q,j),A=A+Math.imul(H,$)|0,r=(r=r+Math.imul(H,ee)|0)+Math.imul(_,$)|0,n=n+Math.imul(_,ee)|0,A=A+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,Ae)|0)+Math.imul(U,ie)|0,n=n+Math.imul(U,Ae)|0,A=A+Math.imul(F,ne)|0,r=(r=r+Math.imul(F,oe)|0)+Math.imul(k,ne)|0,n=n+Math.imul(k,oe)|0,A=A+Math.imul(v,se)|0,r=(r=r+Math.imul(v,ce)|0)+Math.imul(D,se)|0,n=n+Math.imul(D,ce)|0,A=A+Math.imul(b,fe)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(m,fe)|0,n=n+Math.imul(m,he)|0;var Se=(c+(A=A+Math.imul(Q,ue)|0)|0)+((8191&(r=(r=r+Math.imul(Q,de)|0)+Math.imul(E,ue)|0))<<13)|0;c=((n=n+Math.imul(E,de)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,A=Math.imul(K,$),r=(r=Math.imul(K,ee))+Math.imul(q,$)|0,n=Math.imul(q,ee),A=A+Math.imul(H,ie)|0,r=(r=r+Math.imul(H,Ae)|0)+Math.imul(_,ie)|0,n=n+Math.imul(_,Ae)|0,A=A+Math.imul(N,ne)|0,r=(r=r+Math.imul(N,oe)|0)+Math.imul(U,ne)|0,n=n+Math.imul(U,oe)|0,A=A+Math.imul(F,se)|0,r=(r=r+Math.imul(F,ce)|0)+Math.imul(k,se)|0,n=n+Math.imul(k,ce)|0,A=A+Math.imul(v,fe)|0,r=(r=r+Math.imul(v,he)|0)+Math.imul(D,fe)|0,n=n+Math.imul(D,he)|0;var Fe=(c+(A=A+Math.imul(b,ue)|0)|0)+((8191&(r=(r=r+Math.imul(b,de)|0)+Math.imul(m,ue)|0))<<13)|0;c=((n=n+Math.imul(m,de)|0)+(r>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,A=Math.imul(K,ie),r=(r=Math.imul(K,Ae))+Math.imul(q,ie)|0,n=Math.imul(q,Ae),A=A+Math.imul(H,ne)|0,r=(r=r+Math.imul(H,oe)|0)+Math.imul(_,ne)|0,n=n+Math.imul(_,oe)|0,A=A+Math.imul(N,se)|0,r=(r=r+Math.imul(N,ce)|0)+Math.imul(U,se)|0,n=n+Math.imul(U,ce)|0,A=A+Math.imul(F,fe)|0,r=(r=r+Math.imul(F,he)|0)+Math.imul(k,fe)|0,n=n+Math.imul(k,he)|0;var ke=(c+(A=A+Math.imul(v,ue)|0)|0)+((8191&(r=(r=r+Math.imul(v,de)|0)+Math.imul(D,ue)|0))<<13)|0;c=((n=n+Math.imul(D,de)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,A=Math.imul(K,ne),r=(r=Math.imul(K,oe))+Math.imul(q,ne)|0,n=Math.imul(q,oe),A=A+Math.imul(H,se)|0,r=(r=r+Math.imul(H,ce)|0)+Math.imul(_,se)|0,n=n+Math.imul(_,ce)|0,A=A+Math.imul(N,fe)|0,r=(r=r+Math.imul(N,he)|0)+Math.imul(U,fe)|0,n=n+Math.imul(U,he)|0;var Me=(c+(A=A+Math.imul(F,ue)|0)|0)+((8191&(r=(r=r+Math.imul(F,de)|0)+Math.imul(k,ue)|0))<<13)|0;c=((n=n+Math.imul(k,de)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,A=Math.imul(K,se),r=(r=Math.imul(K,ce))+Math.imul(q,se)|0,n=Math.imul(q,ce),A=A+Math.imul(H,fe)|0,r=(r=r+Math.imul(H,he)|0)+Math.imul(_,fe)|0,n=n+Math.imul(_,he)|0;var Ne=(c+(A=A+Math.imul(N,ue)|0)|0)+((8191&(r=(r=r+Math.imul(N,de)|0)+Math.imul(U,ue)|0))<<13)|0;c=((n=n+Math.imul(U,de)|0)+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,A=Math.imul(K,fe),r=(r=Math.imul(K,he))+Math.imul(q,fe)|0,n=Math.imul(q,he);var Ue=(c+(A=A+Math.imul(H,ue)|0)|0)+((8191&(r=(r=r+Math.imul(H,de)|0)+Math.imul(_,ue)|0))<<13)|0;c=((n=n+Math.imul(_,de)|0)+(r>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var Ge=(c+(A=Math.imul(K,ue))|0)+((8191&(r=(r=Math.imul(K,de))+Math.imul(q,ue)|0))<<13)|0;return c=((n=Math.imul(q,de))+(r>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,s[0]=le,s[1]=Be,s[2]=pe,s[3]=Ce,s[4]=Qe,s[5]=Ee,s[6]=ye,s[7]=be,s[8]=me,s[9]=we,s[10]=ve,s[11]=De,s[12]=Se,s[13]=Fe,s[14]=ke,s[15]=Me,s[16]=Ne,s[17]=Ue,s[18]=Ge,0!==c&&(s[19]=c,i.length++),i};function d(e,t,i){return(new l).mulp(e,t,i)}function l(e,t){this.x=e,this.y=t}Math.imul||(u=g),n.prototype.mulTo=function(e,t){var i,A=this.length+e.length;return i=10===this.length&&10===e.length?u(this,e,t):A<63?g(this,e,t):A<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var A=0,r=0,n=0;n>>26)|0)>>>26,o&=67108863}i.words[n]=a,A=o,o=r}return 0!==A?i.words[n]=A:i.length--,i.strip()}(this,e,t):d(this,e,t),i},l.prototype.makeRBT=function(e){for(var t=new Array(e),i=n.prototype._countBits(e)-1,A=0;A>=1;return A},l.prototype.permute=function(e,t,i,A,r,n){for(var o=0;o>>=1)r++;return 1<>>=13,i[2*o+1]=8191&n,n>>>=13;for(o=2*t;o>=26,t+=r/67108864|0,t+=n>>>26,this.words[i]=67108863&n}return 0!==t&&(this.words[i]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i>>r}return t}(e);if(0===t.length)return new n(1);for(var i=this,A=0;A=0);var t,i=e%26,r=(e-i)/26,n=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var n=e%26,o=Math.min((e-n)/26,this.length),a=67108863^67108863>>>n<o)for(this.length-=o,c=0;c=0&&(0!==I||c>=r);c--){var f=0|this.words[c];this.words[c]=I<<26-n|f>>>n,I=f&a}return s&&0!==I&&(s.words[s.length++]=I),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,i){return A(0===this.negative),this.iushrn(e,t,i)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){A("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<=0);var t=e%26,i=(e-t)/26;if(A(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},n.prototype.isubn=function(e){if(A("number"==typeof e),A(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[r+i]=67108863&n}for(;r>26,this.words[r+i]=67108863&n;if(0===a)return this.strip();for(A(-1===a),a=0,r=0;r>26,this.words[r]=67108863&n;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var i=(this.length,e.length),A=this.clone(),r=e,o=0|r.words[r.length-1];0!==(i=26-this._countBits(o))&&(r=r.ushln(i),A.iushln(i),o=0|r.words[r.length-1]);var a,s=A.length-r.length;if("mod"!==t){(a=new n(null)).length=s+1,a.words=new Array(a.length);for(var c=0;c=0;f--){var h=67108864*(0|A.words[r.length+f])+(0|A.words[r.length+f-1]);for(h=Math.min(h/o|0,67108863),A._ishlnsubmul(r,h,f);0!==A.negative;)h--,A.negative=0,A._ishlnsubmul(r,1,f),A.isZero()||(A.negative^=1);a&&(a.words[f]=h)}return a&&a.strip(),A.strip(),"div"!==t&&0!==i&&A.iushrn(i),{div:a||null,mod:A}},n.prototype.divmod=function(e,t,i){return A(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:r,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,o,a},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,A=e.ushrn(1),r=e.andln(1),n=i.cmp(A);return n<0||1===r&&0===n?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){A(e<=67108863);for(var t=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},n.prototype.idivn=function(e){A(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){A(0===e.negative),A(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new n(1),o=new n(0),a=new n(0),s=new n(1),c=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++c;for(var I=i.clone(),f=t.clone();!t.isZero();){for(var h=0,g=1;0==(t.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(I),o.isub(f)),r.iushrn(1),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(I),s.isub(f)),a.iushrn(1),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),o.isub(s)):(i.isub(t),a.isub(r),s.isub(o))}return{a:a,b:s,gcd:i.iushln(c)}},n.prototype._invmp=function(e){A(0===e.negative),A(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,o=new n(1),a=new n(0),s=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,I=1;0==(t.words[0]&I)&&c<26;++c,I<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var f=0,h=1;0==(i.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(i.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(i)>=0?(t.isub(i),o.isub(a)):(i.isub(t),a.isub(o))}return(r=0===t.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(e),r},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var A=0;t.isEven()&&i.isEven();A++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var n=t;t=i,i=n}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(A)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){A("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<>>26,a&=67108863,this.words[o]=a}return 0!==n&&(this.words[o]=n,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),A(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;i--){var A=0|this.words[i],r=0|e.words[i];if(A!==r){Ar&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new b(e)},n.prototype.toRed=function(e){return A(!this.red,"Already a number in reduction context"),A(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return A(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return A(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return A(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return A(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return A(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return A(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return A(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return A(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return A(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return A(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return A(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return A(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return A(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return A(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return A(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var B={k256:null,p224:null,p192:null,p25519:null};function p(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Q(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function b(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else A(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function m(e){b.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}p.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},p.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var A=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},p.prototype.split=function(e,t){e.iushrn(this.n,0,t)},p.prototype.imulK=function(e){return e.imul(this.k)},r(C,p),C.prototype.split=function(e,t){for(var i=4194303,A=Math.min(e.length,9),r=0;r>>22,n=o}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=r,t=A}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(B[e])return B[e];var t;if("k256"===e)t=new C;else if("p224"===e)t=new Q;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new y}return B[e]=t,t},b.prototype._verify1=function(e){A(0===e.negative,"red works only with positives"),A(e.red,"red works only with red numbers")},b.prototype._verify2=function(e,t){A(0==(e.negative|t.negative),"red works only with positives"),A(e.red&&e.red===t.red,"red works only with red numbers")},b.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},b.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},b.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},b.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},b.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},b.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},b.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},b.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},b.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},b.prototype.isqr=function(e){return this.imul(e,e.clone())},b.prototype.sqr=function(e){return this.mul(e,e)},b.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(A(t%2==1),3===t){var i=this.m.add(new n(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);A(!r.isZero());var a=new n(1).toRed(this),s=a.redNeg(),c=this.m.subn(1).iushrn(1),I=this.m.bitLength();for(I=new n(2*I*I).toRed(this);0!==this.pow(I,c).cmp(s);)I.redIAdd(s);for(var f=this.pow(I,r),h=this.pow(e,r.addn(1).iushrn(1)),g=this.pow(e,r),u=o;0!==g.cmp(a);){for(var d=g,l=0;0!==d.cmp(a);l++)d=d.redSqr();A(l=0;A--){for(var c=t.words[A],I=s-1;I>=0;I--){var f=c>>I&1;r!==i[0]&&(r=this.sqr(r)),0!==f||0!==o?(o<<=1,o|=f,(4===++a||0===A&&0===I)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}s=26}return r},b.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},b.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new m(e)},r(m,b),m.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},m.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},m.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),A=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(A).iushrn(this.shift),n=r;return r.cmp(this.m)>=0?n=r.isub(this.m):r.cmpn(0)<0&&(n=r.iadd(this.m)),n._forceRed(this)},m.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var i=e.mul(t),A=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(A).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},m.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:50}],48:[function(e,t,i){var A;function r(e){this.rand=e}if(t.exports=function(e){return A||(A=new r(null)),A.generate(e)},t.exports.Rand=r,r.prototype.generate=function(e){return this._rand(e)},r.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i>>24]^I[u>>>16&255]^f[d>>>8&255]^h[255&l]^t[B++],o=c[u>>>24]^I[d>>>16&255]^f[l>>>8&255]^h[255&g]^t[B++],a=c[d>>>24]^I[l>>>16&255]^f[g>>>8&255]^h[255&u]^t[B++],s=c[l>>>24]^I[g>>>16&255]^f[u>>>8&255]^h[255&d]^t[B++],g=n,u=o,d=a,l=s;return n=(A[g>>>24]<<24|A[u>>>16&255]<<16|A[d>>>8&255]<<8|A[255&l])^t[B++],o=(A[u>>>24]<<24|A[d>>>16&255]<<16|A[l>>>8&255]<<8|A[255&g])^t[B++],a=(A[d>>>24]<<24|A[l>>>16&255]<<16|A[g>>>8&255]<<8|A[255&u])^t[B++],s=(A[l>>>24]<<24|A[g>>>16&255]<<16|A[u>>>8&255]<<8|A[255&d])^t[B++],[n>>>=0,o>>>=0,a>>>=0,s>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],A=[],r=[[],[],[],[]],n=[[],[],[],[]],o=0,a=0,s=0;s<256;++s){var c=a^a<<1^a<<2^a<<3^a<<4;c=c>>>8^255&c^99,i[o]=c,A[c]=o;var I=e[o],f=e[I],h=e[f],g=257*e[c]^16843008*c;r[0][o]=g<<24|g>>>8,r[1][o]=g<<16|g>>>16,r[2][o]=g<<8|g>>>24,r[3][o]=g,g=16843009*h^65537*f^257*I^16843008*o,n[0][c]=g<<24|g>>>8,n[1][c]=g<<16|g>>>16,n[2][c]=g<<8|g>>>24,n[3][c]=g,0===o?o=a=1:(o=I^e[e[e[h^I]]],a^=e[e[a]])}return{SBOX:i,INV_SBOX:A,SUB_MIX:r,INV_SUB_MIX:n}}();function c(e){this._key=r(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,A=4*(i+1),r=[],n=0;n>>24,o=s.SBOX[o>>>24]<<24|s.SBOX[o>>>16&255]<<16|s.SBOX[o>>>8&255]<<8|s.SBOX[255&o],o^=a[n/t|0]<<24):t>6&&n%t==4&&(o=s.SBOX[o>>>24]<<24|s.SBOX[o>>>16&255]<<16|s.SBOX[o>>>8&255]<<8|s.SBOX[255&o]),r[n]=r[n-t]^o}for(var c=[],I=0;I>>24]]^s.INV_SUB_MIX[1][s.SBOX[h>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[h>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&h]]}this._nRounds=i,this._keySchedule=r,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return o(e=r(e),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=A.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},c.prototype.decryptBlock=function(e){var t=(e=r(e))[1];e[1]=e[3],e[3]=t;var i=o(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),n=A.allocUnsafe(16);return n.writeUInt32BE(i[0],0),n.writeUInt32BE(i[3],4),n.writeUInt32BE(i[2],8),n.writeUInt32BE(i[1],12),n},c.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},t.exports.AES=c},{"safe-buffer":198}],52:[function(e,t,i){var A=e("./aes"),r=e("safe-buffer").Buffer,n=e("cipher-base"),o=e("inherits"),a=e("./ghash"),s=e("buffer-xor"),c=e("./incr32");function I(e,t,i,o){n.call(this);var s=r.alloc(4,0);this._cipher=new A.AES(t);var I=this._cipher.encryptBlock(s);this._ghash=new a(I),i=function(e,t,i){if(12===t.length)return e._finID=r.concat([t,r.from([0,0,0,1])]),r.concat([t,r.from([0,0,0,2])]);var A=new a(i),n=t.length,o=n%16;A.update(t),o&&(o=16-o,A.update(r.alloc(o,0))),A.update(r.alloc(8,0));var s=8*n,I=r.alloc(8);I.writeUIntBE(s,0,8),A.update(I),e._finID=A.state;var f=r.from(e._finID);return c(f),f}(this,i,I),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(I,n),I.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=r.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},I.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=s(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var i=0;e.length!==t.length&&i++;for(var A=Math.min(e.length,t.length),r=0;r16)throw new Error("unable to decrypt data");var i=-1;for(;++i16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},i.createDecipher=function(e,t){var i=n[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var A=c(t,!1,i.key,i.iv);return h(e,A.key,A.iv)},i.createDecipheriv=h},{"./aes":51,"./authCipher":52,"./modes":64,"./streamCipher":67,"cipher-base":100,evp_bytestokey:135,inherits:169,"safe-buffer":198}],55:[function(e,t,i){var A=e("./modes"),r=e("./authCipher"),n=e("safe-buffer").Buffer,o=e("./streamCipher"),a=e("cipher-base"),s=e("./aes"),c=e("evp_bytestokey");function I(e,t,i){a.call(this),this._cache=new h,this._cipher=new s.AES(t),this._prev=n.from(i),this._mode=e,this._autopadding=!0}e("inherits")(I,a),I.prototype._update=function(e){var t,i;this._cache.add(e);for(var A=[];t=this._cache.get();)i=this._mode.encrypt(this,t),A.push(i);return n.concat(A)};var f=n.alloc(16,16);function h(){this.cache=n.allocUnsafe(0)}function g(e,t,i){var a=A[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=n.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof i&&(i=n.from(i)),"GCM"!==a.mode&&i.length!==a.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===a.type?new o(a.module,t,i):"auth"===a.type?new r(a.module,t,i):new I(a.module,t,i)}I.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},I.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=n.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=n.allocUnsafe(e),i=-1;++i>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=A.alloc(16,0),this.cache=A.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t0;t--)A[t]=A[t]>>>1|(1&A[t-1])<<31;A[0]=A[0]>>>1,i&&(A[0]=A[0]^225<<24)}this.state=n(r)},o.prototype.update=function(e){var t;for(this.cache=A.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(A.concat([this.cache,r],16)),this.ghash(n([0,e,0,t])),this.state},t.exports=o},{"safe-buffer":198}],57:[function(e,t,i){t.exports=function(e){for(var t,i=e.length;i--;){if(255!==(t=e.readUInt8(i))){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}},{}],58:[function(e,t,i){var A=e("buffer-xor");i.encrypt=function(e,t){var i=A(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},i.decrypt=function(e,t){var i=e._prev;e._prev=t;var r=e._cipher.decryptBlock(t);return A(r,i)}},{"buffer-xor":98}],59:[function(e,t,i){var A=e("safe-buffer").Buffer,r=e("buffer-xor");function n(e,t,i){var n=t.length,o=r(t,e._cache);return e._cache=e._cache.slice(n),e._prev=A.concat([e._prev,i?t:o]),o}i.encrypt=function(e,t,i){for(var r,o=A.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=A.allocUnsafe(0)),!(e._cache.length<=t.length)){o=A.concat([o,n(e,t,i)]);break}r=e._cache.length,o=A.concat([o,n(e,t.slice(0,r),i)]),t=t.slice(r)}return o}},{"buffer-xor":98,"safe-buffer":198}],60:[function(e,t,i){var A=e("safe-buffer").Buffer;function r(e,t,i){for(var A,r,o=-1,a=0;++o<8;)A=t&1<<7-o?128:0,a+=(128&(r=e._cipher.encryptBlock(e._prev)[0]^A))>>o%8,e._prev=n(e._prev,i?A:r);return a}function n(e,t){var i=e.length,r=-1,n=A.allocUnsafe(e.length);for(e=A.concat([e,A.from([t])]);++r>7;return n}i.encrypt=function(e,t,i){for(var n=t.length,o=A.allocUnsafe(n),a=-1;++a=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,t){var r=function(e){var t=n(e);return{blinder:t.toRed(A.mont(e.modulus)).redPow(new A(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),o=t.modulus.byteLength(),a=new A(e).mul(r.blinder).umod(t.modulus),s=a.toRed(A.mont(t.prime1)),c=a.toRed(A.mont(t.prime2)),I=t.coefficient,f=t.prime1,h=t.prime2,g=s.redPow(t.exponent1).fromRed(),u=c.redPow(t.exponent2).fromRed(),d=g.isub(u).imul(I).umod(f).imul(h);return u.iadd(d).imul(r.unblinder).umod(t.modulus).toArrayLike(i,"be",o)}o.getr=n,t.exports=o}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":72,buffer:99,randombytes:195}],72:[function(e,t,i){!function(t,i){"use strict";function A(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function n(e,t,i){if(n.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var o;"object"==typeof t?t.exports=n:i.BN=n,n.BN=n,n.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function a(e,t){var i=e.charCodeAt(t);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void A(!1,"Invalid character in "+e)}function s(e,t,i){var A=a(e,i);return i-1>=t&&(A|=a(e,i-1)<<4),A}function c(e,t,i,r){for(var n=0,o=0,a=Math.min(e.length,i),s=t;s=49?c-49+10:c>=17?c-17+10:c,A(c>=0&&o0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),A(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[n]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);else if("le"===i)for(r=0,n=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);return this._strip()},n.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var A=0;A=t;A-=2)r=s(e,t,A)<=18?(n-=18,o+=1,this.words[o]|=r>>>26):n+=8;else for(A=(e.length-t)%2==0?t+1:t;A=18?(n-=18,o+=1,this.words[o]|=r>>>26):n+=8;this._strip()},n.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var A=0,r=1;r<=67108863;r*=t)A++;A--,r=r/t|0;for(var n=e.length-i,o=n%A,a=Math.min(n,n-o)+i,s=0,I=i;I1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(e){n.prototype.inspect=f}else n.prototype.inspect=f;function f(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,n=0,o=0;o>>24-r&16777215,(r+=2)>=26&&(r-=26,o--),i=0!==n||o!==this.length-1?h[6-s.length]+s+i:s+i}for(0!==n&&(i=n.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var c=g[e],I=u[e];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var d=f.modrn(I).toString(e);i=(f=f.idivn(I)).isZero()?d+i:h[c-d.length]+d+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}A(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&A(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16,2)},o&&(n.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function d(e,t,i){i.negative=t.negative^e.negative;var A=e.length+t.length|0;i.length=A,A=A-1|0;var r=0|e.words[0],n=0|t.words[0],o=r*n,a=67108863&o,s=o/67108864|0;i.words[0]=a;for(var c=1;c>>26,f=67108863&s,h=Math.min(c,t.length-1),g=Math.max(0,c-e.length+1);g<=h;g++){var u=c-g|0;I+=(o=(r=0|e.words[u])*(n=0|t.words[g])+f)/67108864|0,f=67108863&o}i.words[c]=0|f,s=0|I}return 0!==s?i.words[c]=0|s:i.length--,i._strip()}n.prototype.toArrayLike=function(e,t,i){this._strip();var r=this.byteLength(),n=i||Math.max(1,r);A(r<=n,"byte array longer than desired length"),A(n>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,n);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,r),o},n.prototype._toArrayLikeLE=function(e,t){for(var i=0,A=0,r=0,n=0;r>8&255),i>16&255),6===n?(i>24&255),A=0,n=0):(A=o>>>24,n+=2)}if(i=0&&(e[i--]=o>>8&255),i>=0&&(e[i--]=o>>16&255),6===n?(i>=0&&(e[i--]=o>>24&255),A=0,n=0):(A=o>>>24,n+=2)}if(i>=0)for(e[i--]=A;i>=0;)e[i--]=0},Math.clz32?n.prototype._countBits=function(e){return 32-Math.clz32(e)}:n.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var A=0;Ae.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){A("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this._strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){A("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<e.length?(i=this,A=e):(i=e,A=this);for(var r=0,n=0;n>>26;for(;0!==r&&n>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ne.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,A,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,A=e):(i=e,A=this);for(var n=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==n&&o>26,this.words[o]=67108863&t;if(0===n&&o>>13,g=0|o[1],u=8191&g,d=g>>>13,l=0|o[2],B=8191&l,p=l>>>13,C=0|o[3],Q=8191&C,E=C>>>13,y=0|o[4],b=8191&y,m=y>>>13,w=0|o[5],v=8191&w,D=w>>>13,S=0|o[6],F=8191&S,k=S>>>13,M=0|o[7],N=8191&M,U=M>>>13,G=0|o[8],H=8191&G,_=G>>>13,R=0|o[9],K=8191&R,q=R>>>13,x=0|a[0],J=8191&x,Y=x>>>13,O=0|a[1],L=8191&O,P=O>>>13,z=0|a[2],Z=8191&z,T=z>>>13,X=0|a[3],V=8191&X,j=X>>>13,W=0|a[4],$=8191&W,ee=W>>>13,te=0|a[5],ie=8191&te,Ae=te>>>13,re=0|a[6],ne=8191&re,oe=re>>>13,ae=0|a[7],se=8191&ae,ce=ae>>>13,Ie=0|a[8],fe=8191&Ie,he=Ie>>>13,ge=0|a[9],ue=8191&ge,de=ge>>>13;i.negative=e.negative^t.negative,i.length=19;var le=(c+(A=Math.imul(f,J))|0)+((8191&(r=(r=Math.imul(f,Y))+Math.imul(h,J)|0))<<13)|0;c=((n=Math.imul(h,Y))+(r>>>13)|0)+(le>>>26)|0,le&=67108863,A=Math.imul(u,J),r=(r=Math.imul(u,Y))+Math.imul(d,J)|0,n=Math.imul(d,Y);var Be=(c+(A=A+Math.imul(f,L)|0)|0)+((8191&(r=(r=r+Math.imul(f,P)|0)+Math.imul(h,L)|0))<<13)|0;c=((n=n+Math.imul(h,P)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,A=Math.imul(B,J),r=(r=Math.imul(B,Y))+Math.imul(p,J)|0,n=Math.imul(p,Y),A=A+Math.imul(u,L)|0,r=(r=r+Math.imul(u,P)|0)+Math.imul(d,L)|0,n=n+Math.imul(d,P)|0;var pe=(c+(A=A+Math.imul(f,Z)|0)|0)+((8191&(r=(r=r+Math.imul(f,T)|0)+Math.imul(h,Z)|0))<<13)|0;c=((n=n+Math.imul(h,T)|0)+(r>>>13)|0)+(pe>>>26)|0,pe&=67108863,A=Math.imul(Q,J),r=(r=Math.imul(Q,Y))+Math.imul(E,J)|0,n=Math.imul(E,Y),A=A+Math.imul(B,L)|0,r=(r=r+Math.imul(B,P)|0)+Math.imul(p,L)|0,n=n+Math.imul(p,P)|0,A=A+Math.imul(u,Z)|0,r=(r=r+Math.imul(u,T)|0)+Math.imul(d,Z)|0,n=n+Math.imul(d,T)|0;var Ce=(c+(A=A+Math.imul(f,V)|0)|0)+((8191&(r=(r=r+Math.imul(f,j)|0)+Math.imul(h,V)|0))<<13)|0;c=((n=n+Math.imul(h,j)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,A=Math.imul(b,J),r=(r=Math.imul(b,Y))+Math.imul(m,J)|0,n=Math.imul(m,Y),A=A+Math.imul(Q,L)|0,r=(r=r+Math.imul(Q,P)|0)+Math.imul(E,L)|0,n=n+Math.imul(E,P)|0,A=A+Math.imul(B,Z)|0,r=(r=r+Math.imul(B,T)|0)+Math.imul(p,Z)|0,n=n+Math.imul(p,T)|0,A=A+Math.imul(u,V)|0,r=(r=r+Math.imul(u,j)|0)+Math.imul(d,V)|0,n=n+Math.imul(d,j)|0;var Qe=(c+(A=A+Math.imul(f,$)|0)|0)+((8191&(r=(r=r+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((n=n+Math.imul(h,ee)|0)+(r>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,A=Math.imul(v,J),r=(r=Math.imul(v,Y))+Math.imul(D,J)|0,n=Math.imul(D,Y),A=A+Math.imul(b,L)|0,r=(r=r+Math.imul(b,P)|0)+Math.imul(m,L)|0,n=n+Math.imul(m,P)|0,A=A+Math.imul(Q,Z)|0,r=(r=r+Math.imul(Q,T)|0)+Math.imul(E,Z)|0,n=n+Math.imul(E,T)|0,A=A+Math.imul(B,V)|0,r=(r=r+Math.imul(B,j)|0)+Math.imul(p,V)|0,n=n+Math.imul(p,j)|0,A=A+Math.imul(u,$)|0,r=(r=r+Math.imul(u,ee)|0)+Math.imul(d,$)|0,n=n+Math.imul(d,ee)|0;var Ee=(c+(A=A+Math.imul(f,ie)|0)|0)+((8191&(r=(r=r+Math.imul(f,Ae)|0)+Math.imul(h,ie)|0))<<13)|0;c=((n=n+Math.imul(h,Ae)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,A=Math.imul(F,J),r=(r=Math.imul(F,Y))+Math.imul(k,J)|0,n=Math.imul(k,Y),A=A+Math.imul(v,L)|0,r=(r=r+Math.imul(v,P)|0)+Math.imul(D,L)|0,n=n+Math.imul(D,P)|0,A=A+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,T)|0)+Math.imul(m,Z)|0,n=n+Math.imul(m,T)|0,A=A+Math.imul(Q,V)|0,r=(r=r+Math.imul(Q,j)|0)+Math.imul(E,V)|0,n=n+Math.imul(E,j)|0,A=A+Math.imul(B,$)|0,r=(r=r+Math.imul(B,ee)|0)+Math.imul(p,$)|0,n=n+Math.imul(p,ee)|0,A=A+Math.imul(u,ie)|0,r=(r=r+Math.imul(u,Ae)|0)+Math.imul(d,ie)|0,n=n+Math.imul(d,Ae)|0;var ye=(c+(A=A+Math.imul(f,ne)|0)|0)+((8191&(r=(r=r+Math.imul(f,oe)|0)+Math.imul(h,ne)|0))<<13)|0;c=((n=n+Math.imul(h,oe)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,A=Math.imul(N,J),r=(r=Math.imul(N,Y))+Math.imul(U,J)|0,n=Math.imul(U,Y),A=A+Math.imul(F,L)|0,r=(r=r+Math.imul(F,P)|0)+Math.imul(k,L)|0,n=n+Math.imul(k,P)|0,A=A+Math.imul(v,Z)|0,r=(r=r+Math.imul(v,T)|0)+Math.imul(D,Z)|0,n=n+Math.imul(D,T)|0,A=A+Math.imul(b,V)|0,r=(r=r+Math.imul(b,j)|0)+Math.imul(m,V)|0,n=n+Math.imul(m,j)|0,A=A+Math.imul(Q,$)|0,r=(r=r+Math.imul(Q,ee)|0)+Math.imul(E,$)|0,n=n+Math.imul(E,ee)|0,A=A+Math.imul(B,ie)|0,r=(r=r+Math.imul(B,Ae)|0)+Math.imul(p,ie)|0,n=n+Math.imul(p,Ae)|0,A=A+Math.imul(u,ne)|0,r=(r=r+Math.imul(u,oe)|0)+Math.imul(d,ne)|0,n=n+Math.imul(d,oe)|0;var be=(c+(A=A+Math.imul(f,se)|0)|0)+((8191&(r=(r=r+Math.imul(f,ce)|0)+Math.imul(h,se)|0))<<13)|0;c=((n=n+Math.imul(h,ce)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,A=Math.imul(H,J),r=(r=Math.imul(H,Y))+Math.imul(_,J)|0,n=Math.imul(_,Y),A=A+Math.imul(N,L)|0,r=(r=r+Math.imul(N,P)|0)+Math.imul(U,L)|0,n=n+Math.imul(U,P)|0,A=A+Math.imul(F,Z)|0,r=(r=r+Math.imul(F,T)|0)+Math.imul(k,Z)|0,n=n+Math.imul(k,T)|0,A=A+Math.imul(v,V)|0,r=(r=r+Math.imul(v,j)|0)+Math.imul(D,V)|0,n=n+Math.imul(D,j)|0,A=A+Math.imul(b,$)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(m,$)|0,n=n+Math.imul(m,ee)|0,A=A+Math.imul(Q,ie)|0,r=(r=r+Math.imul(Q,Ae)|0)+Math.imul(E,ie)|0,n=n+Math.imul(E,Ae)|0,A=A+Math.imul(B,ne)|0,r=(r=r+Math.imul(B,oe)|0)+Math.imul(p,ne)|0,n=n+Math.imul(p,oe)|0,A=A+Math.imul(u,se)|0,r=(r=r+Math.imul(u,ce)|0)+Math.imul(d,se)|0,n=n+Math.imul(d,ce)|0;var me=(c+(A=A+Math.imul(f,fe)|0)|0)+((8191&(r=(r=r+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((n=n+Math.imul(h,he)|0)+(r>>>13)|0)+(me>>>26)|0,me&=67108863,A=Math.imul(K,J),r=(r=Math.imul(K,Y))+Math.imul(q,J)|0,n=Math.imul(q,Y),A=A+Math.imul(H,L)|0,r=(r=r+Math.imul(H,P)|0)+Math.imul(_,L)|0,n=n+Math.imul(_,P)|0,A=A+Math.imul(N,Z)|0,r=(r=r+Math.imul(N,T)|0)+Math.imul(U,Z)|0,n=n+Math.imul(U,T)|0,A=A+Math.imul(F,V)|0,r=(r=r+Math.imul(F,j)|0)+Math.imul(k,V)|0,n=n+Math.imul(k,j)|0,A=A+Math.imul(v,$)|0,r=(r=r+Math.imul(v,ee)|0)+Math.imul(D,$)|0,n=n+Math.imul(D,ee)|0,A=A+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,Ae)|0)+Math.imul(m,ie)|0,n=n+Math.imul(m,Ae)|0,A=A+Math.imul(Q,ne)|0,r=(r=r+Math.imul(Q,oe)|0)+Math.imul(E,ne)|0,n=n+Math.imul(E,oe)|0,A=A+Math.imul(B,se)|0,r=(r=r+Math.imul(B,ce)|0)+Math.imul(p,se)|0,n=n+Math.imul(p,ce)|0,A=A+Math.imul(u,fe)|0,r=(r=r+Math.imul(u,he)|0)+Math.imul(d,fe)|0,n=n+Math.imul(d,he)|0;var we=(c+(A=A+Math.imul(f,ue)|0)|0)+((8191&(r=(r=r+Math.imul(f,de)|0)+Math.imul(h,ue)|0))<<13)|0;c=((n=n+Math.imul(h,de)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,A=Math.imul(K,L),r=(r=Math.imul(K,P))+Math.imul(q,L)|0,n=Math.imul(q,P),A=A+Math.imul(H,Z)|0,r=(r=r+Math.imul(H,T)|0)+Math.imul(_,Z)|0,n=n+Math.imul(_,T)|0,A=A+Math.imul(N,V)|0,r=(r=r+Math.imul(N,j)|0)+Math.imul(U,V)|0,n=n+Math.imul(U,j)|0,A=A+Math.imul(F,$)|0,r=(r=r+Math.imul(F,ee)|0)+Math.imul(k,$)|0,n=n+Math.imul(k,ee)|0,A=A+Math.imul(v,ie)|0,r=(r=r+Math.imul(v,Ae)|0)+Math.imul(D,ie)|0,n=n+Math.imul(D,Ae)|0,A=A+Math.imul(b,ne)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(m,ne)|0,n=n+Math.imul(m,oe)|0,A=A+Math.imul(Q,se)|0,r=(r=r+Math.imul(Q,ce)|0)+Math.imul(E,se)|0,n=n+Math.imul(E,ce)|0,A=A+Math.imul(B,fe)|0,r=(r=r+Math.imul(B,he)|0)+Math.imul(p,fe)|0,n=n+Math.imul(p,he)|0;var ve=(c+(A=A+Math.imul(u,ue)|0)|0)+((8191&(r=(r=r+Math.imul(u,de)|0)+Math.imul(d,ue)|0))<<13)|0;c=((n=n+Math.imul(d,de)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,A=Math.imul(K,Z),r=(r=Math.imul(K,T))+Math.imul(q,Z)|0,n=Math.imul(q,T),A=A+Math.imul(H,V)|0,r=(r=r+Math.imul(H,j)|0)+Math.imul(_,V)|0,n=n+Math.imul(_,j)|0,A=A+Math.imul(N,$)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(U,$)|0,n=n+Math.imul(U,ee)|0,A=A+Math.imul(F,ie)|0,r=(r=r+Math.imul(F,Ae)|0)+Math.imul(k,ie)|0,n=n+Math.imul(k,Ae)|0,A=A+Math.imul(v,ne)|0,r=(r=r+Math.imul(v,oe)|0)+Math.imul(D,ne)|0,n=n+Math.imul(D,oe)|0,A=A+Math.imul(b,se)|0,r=(r=r+Math.imul(b,ce)|0)+Math.imul(m,se)|0,n=n+Math.imul(m,ce)|0,A=A+Math.imul(Q,fe)|0,r=(r=r+Math.imul(Q,he)|0)+Math.imul(E,fe)|0,n=n+Math.imul(E,he)|0;var De=(c+(A=A+Math.imul(B,ue)|0)|0)+((8191&(r=(r=r+Math.imul(B,de)|0)+Math.imul(p,ue)|0))<<13)|0;c=((n=n+Math.imul(p,de)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863,A=Math.imul(K,V),r=(r=Math.imul(K,j))+Math.imul(q,V)|0,n=Math.imul(q,j),A=A+Math.imul(H,$)|0,r=(r=r+Math.imul(H,ee)|0)+Math.imul(_,$)|0,n=n+Math.imul(_,ee)|0,A=A+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,Ae)|0)+Math.imul(U,ie)|0,n=n+Math.imul(U,Ae)|0,A=A+Math.imul(F,ne)|0,r=(r=r+Math.imul(F,oe)|0)+Math.imul(k,ne)|0,n=n+Math.imul(k,oe)|0,A=A+Math.imul(v,se)|0,r=(r=r+Math.imul(v,ce)|0)+Math.imul(D,se)|0,n=n+Math.imul(D,ce)|0,A=A+Math.imul(b,fe)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(m,fe)|0,n=n+Math.imul(m,he)|0;var Se=(c+(A=A+Math.imul(Q,ue)|0)|0)+((8191&(r=(r=r+Math.imul(Q,de)|0)+Math.imul(E,ue)|0))<<13)|0;c=((n=n+Math.imul(E,de)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,A=Math.imul(K,$),r=(r=Math.imul(K,ee))+Math.imul(q,$)|0,n=Math.imul(q,ee),A=A+Math.imul(H,ie)|0,r=(r=r+Math.imul(H,Ae)|0)+Math.imul(_,ie)|0,n=n+Math.imul(_,Ae)|0,A=A+Math.imul(N,ne)|0,r=(r=r+Math.imul(N,oe)|0)+Math.imul(U,ne)|0,n=n+Math.imul(U,oe)|0,A=A+Math.imul(F,se)|0,r=(r=r+Math.imul(F,ce)|0)+Math.imul(k,se)|0,n=n+Math.imul(k,ce)|0,A=A+Math.imul(v,fe)|0,r=(r=r+Math.imul(v,he)|0)+Math.imul(D,fe)|0,n=n+Math.imul(D,he)|0;var Fe=(c+(A=A+Math.imul(b,ue)|0)|0)+((8191&(r=(r=r+Math.imul(b,de)|0)+Math.imul(m,ue)|0))<<13)|0;c=((n=n+Math.imul(m,de)|0)+(r>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,A=Math.imul(K,ie),r=(r=Math.imul(K,Ae))+Math.imul(q,ie)|0,n=Math.imul(q,Ae),A=A+Math.imul(H,ne)|0,r=(r=r+Math.imul(H,oe)|0)+Math.imul(_,ne)|0,n=n+Math.imul(_,oe)|0,A=A+Math.imul(N,se)|0,r=(r=r+Math.imul(N,ce)|0)+Math.imul(U,se)|0,n=n+Math.imul(U,ce)|0,A=A+Math.imul(F,fe)|0,r=(r=r+Math.imul(F,he)|0)+Math.imul(k,fe)|0,n=n+Math.imul(k,he)|0;var ke=(c+(A=A+Math.imul(v,ue)|0)|0)+((8191&(r=(r=r+Math.imul(v,de)|0)+Math.imul(D,ue)|0))<<13)|0;c=((n=n+Math.imul(D,de)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,A=Math.imul(K,ne),r=(r=Math.imul(K,oe))+Math.imul(q,ne)|0,n=Math.imul(q,oe),A=A+Math.imul(H,se)|0,r=(r=r+Math.imul(H,ce)|0)+Math.imul(_,se)|0,n=n+Math.imul(_,ce)|0,A=A+Math.imul(N,fe)|0,r=(r=r+Math.imul(N,he)|0)+Math.imul(U,fe)|0,n=n+Math.imul(U,he)|0;var Me=(c+(A=A+Math.imul(F,ue)|0)|0)+((8191&(r=(r=r+Math.imul(F,de)|0)+Math.imul(k,ue)|0))<<13)|0;c=((n=n+Math.imul(k,de)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,A=Math.imul(K,se),r=(r=Math.imul(K,ce))+Math.imul(q,se)|0,n=Math.imul(q,ce),A=A+Math.imul(H,fe)|0,r=(r=r+Math.imul(H,he)|0)+Math.imul(_,fe)|0,n=n+Math.imul(_,he)|0;var Ne=(c+(A=A+Math.imul(N,ue)|0)|0)+((8191&(r=(r=r+Math.imul(N,de)|0)+Math.imul(U,ue)|0))<<13)|0;c=((n=n+Math.imul(U,de)|0)+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,A=Math.imul(K,fe),r=(r=Math.imul(K,he))+Math.imul(q,fe)|0,n=Math.imul(q,he);var Ue=(c+(A=A+Math.imul(H,ue)|0)|0)+((8191&(r=(r=r+Math.imul(H,de)|0)+Math.imul(_,ue)|0))<<13)|0;c=((n=n+Math.imul(_,de)|0)+(r>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var Ge=(c+(A=Math.imul(K,ue))|0)+((8191&(r=(r=Math.imul(K,de))+Math.imul(q,ue)|0))<<13)|0;return c=((n=Math.imul(q,de))+(r>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,s[0]=le,s[1]=Be,s[2]=pe,s[3]=Ce,s[4]=Qe,s[5]=Ee,s[6]=ye,s[7]=be,s[8]=me,s[9]=we,s[10]=ve,s[11]=De,s[12]=Se,s[13]=Fe,s[14]=ke,s[15]=Me,s[16]=Ne,s[17]=Ue,s[18]=Ge,0!==c&&(s[19]=c,i.length++),i};function B(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var A=0,r=0,n=0;n>>26)|0)>>>26,o&=67108863}i.words[n]=a,A=o,o=r}return 0!==A?i.words[n]=A:i.length--,i._strip()}function p(e,t,i){return B(e,t,i)}function C(e,t){this.x=e,this.y=t}Math.imul||(l=d),n.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):i<63?d(this,e,t):i<1024?B(this,e,t):p(this,e,t)},C.prototype.makeRBT=function(e){for(var t=new Array(e),i=n.prototype._countBits(e)-1,A=0;A>=1;return A},C.prototype.permute=function(e,t,i,A,r,n){for(var o=0;o>>=1)r++;return 1<>>=13,i[2*o+1]=8191&n,n>>>=13;for(o=2*t;o>=26,i+=n/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),t?this.ineg():this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i>>r&1}return t}(e);if(0===t.length)return new n(1);for(var i=this,A=0;A=0);var t,i=e%26,r=(e-i)/26,n=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var n=e%26,o=Math.min((e-n)/26,this.length),a=67108863^67108863>>>n<o)for(this.length-=o,c=0;c=0&&(0!==I||c>=r);c--){var f=0|this.words[c];this.words[c]=I<<26-n|f>>>n,I=f&a}return s&&0!==I&&(s.words[s.length++]=I),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(e,t,i){return A(0===this.negative),this.iushrn(e,t,i)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){A("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<=0);var t=e%26,i=(e-t)/26;if(A(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},n.prototype.isubn=function(e){if(A("number"==typeof e),A(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[r+i]=67108863&n}for(;r>26,this.words[r+i]=67108863&n;if(0===a)return this._strip();for(A(-1===a),a=0,r=0;r>26,this.words[r]=67108863&n;return this.negative=1,this._strip()},n.prototype._wordDiv=function(e,t){var i=(this.length,e.length),A=this.clone(),r=e,o=0|r.words[r.length-1];0!==(i=26-this._countBits(o))&&(r=r.ushln(i),A.iushln(i),o=0|r.words[r.length-1]);var a,s=A.length-r.length;if("mod"!==t){(a=new n(null)).length=s+1,a.words=new Array(a.length);for(var c=0;c=0;f--){var h=67108864*(0|A.words[r.length+f])+(0|A.words[r.length+f-1]);for(h=Math.min(h/o|0,67108863),A._ishlnsubmul(r,h,f);0!==A.negative;)h--,A.negative=0,A._ishlnsubmul(r,1,f),A.isZero()||(A.negative^=1);a&&(a.words[f]=h)}return a&&a._strip(),A._strip(),"div"!==t&&0!==i&&A.iushrn(i),{div:a||null,mod:A}},n.prototype.divmod=function(e,t,i){return A(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:r,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modrn(e.words[0]))}:this._wordDiv(e,t);var r,o,a},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,A=e.ushrn(1),r=e.andln(1),n=i.cmp(A);return n<0||1===r&&0===n?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modrn=function(e){var t=e<0;t&&(e=-e),A(e<=67108863);for(var i=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(i*r+(0|this.words[n]))%e;return t?-r:r},n.prototype.modn=function(e){return this.modrn(e)},n.prototype.idivn=function(e){var t=e<0;t&&(e=-e),A(e<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*i;this.words[r]=n/e|0,i=n%e}return this._strip(),t?this.ineg():this},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){A(0===e.negative),A(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new n(1),o=new n(0),a=new n(0),s=new n(1),c=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++c;for(var I=i.clone(),f=t.clone();!t.isZero();){for(var h=0,g=1;0==(t.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(I),o.isub(f)),r.iushrn(1),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(I),s.isub(f)),a.iushrn(1),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),o.isub(s)):(i.isub(t),a.isub(r),s.isub(o))}return{a:a,b:s,gcd:i.iushln(c)}},n.prototype._invmp=function(e){A(0===e.negative),A(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,o=new n(1),a=new n(0),s=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,I=1;0==(t.words[0]&I)&&c<26;++c,I<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var f=0,h=1;0==(i.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(i.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(i)>=0?(t.isub(i),o.isub(a)):(i.isub(t),a.isub(o))}return(r=0===t.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(e),r},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var A=0;t.isEven()&&i.isEven();A++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var n=t;t=i,i=n}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(A)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){A("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<>>26,a&=67108863,this.words[o]=a}return 0!==n&&(this.words[o]=n,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),A(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;i--){var A=0|this.words[i],r=0|e.words[i];if(A!==r){Ar&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new v(e)},n.prototype.toRed=function(e){return A(!this.red,"Already a number in reduction context"),A(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return A(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return A(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return A(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return A(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return A(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return A(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return A(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return A(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return A(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return A(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return A(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return A(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return A(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return A(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return A(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var Q={k256:null,p224:null,p192:null,p25519:null};function E(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function m(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else A(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function D(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}E.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},E.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var A=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},E.prototype.split=function(e,t){e.iushrn(this.n,0,t)},E.prototype.imulK=function(e){return e.imul(this.k)},r(y,E),y.prototype.split=function(e,t){for(var i=4194303,A=Math.min(e.length,9),r=0;r>>22,n=o}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=r,t=A}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(Q[e])return Q[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new m;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return Q[e]=t,t},v.prototype._verify1=function(e){A(0===e.negative,"red works only with positives"),A(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){A(0==(e.negative|t.negative),"red works only with positives"),A(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(I(e,e.umod(this.m)._forceRed(this)),e)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},v.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(A(t%2==1),3===t){var i=this.m.add(new n(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);A(!r.isZero());var a=new n(1).toRed(this),s=a.redNeg(),c=this.m.subn(1).iushrn(1),I=this.m.bitLength();for(I=new n(2*I*I).toRed(this);0!==this.pow(I,c).cmp(s);)I.redIAdd(s);for(var f=this.pow(I,r),h=this.pow(e,r.addn(1).iushrn(1)),g=this.pow(e,r),u=o;0!==g.cmp(a);){for(var d=g,l=0;0!==d.cmp(a);l++)d=d.redSqr();A(l=0;A--){for(var c=t.words[A],I=s-1;I>=0;I--){var f=c>>I&1;r!==i[0]&&(r=this.sqr(r)),0!==f||0!==o?(o<<=1,o|=f,(4===++a||0===A&&0===I)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}s=26}return r},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new D(e)},r(D,v),D.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},D.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},D.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),A=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(A).iushrn(this.shift),n=r;return r.cmp(this.m)>=0?n=r.isub(this.m):r.cmpn(0)<0&&(n=r.iadd(this.m)),n._forceRed(this)},D.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var i=e.mul(t),A=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(A).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},D.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:50}],73:[function(e,t,i){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":74}],74:[function(e,t,i){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],75:[function(e,t,i){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],76:[function(e,t,i){var A=e("safe-buffer").Buffer,r=e("create-hash"),n=e("readable-stream"),o=e("inherits"),a=e("./sign"),s=e("./verify"),c=e("./algorithms.json");function I(e){n.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){n.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new I(e)}function g(e){return new f(e)}Object.keys(c).forEach((function(e){c[e].id=A.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),o(I,n.Writable),I.prototype._write=function(e,t,i){this._hash.update(e),i()},I.prototype.update=function(e,t){return"string"==typeof e&&(e=A.from(e,t)),this._hash.update(e),this},I.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),A=a(i,e,this._hashType,this._signType,this._tag);return t?A.toString(t):A},o(f,n.Writable),f.prototype._write=function(e,t,i){this._hash.update(e),i()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=A.from(e,t)),this._hash.update(e),this},f.prototype.verify=function(e,t,i){"string"==typeof t&&(t=A.from(t,i)),this.end();var r=this._hash.digest();return s(t,r,e,this._signType,this._tag)},t.exports={Sign:h,Verify:g,createSign:h,createVerify:g}},{"./algorithms.json":74,"./sign":77,"./verify":78,"create-hash":102,inherits:169,"readable-stream":94,"safe-buffer":198}],77:[function(e,t,i){var A=e("safe-buffer").Buffer,r=e("create-hmac"),n=e("browserify-rsa"),o=e("elliptic").ec,a=e("bn.js"),s=e("parse-asn1"),c=e("./curves.json");function I(e,t,i,n){if((e=A.from(e.toArray())).length0&&i.ishrn(A),i}function h(e,t,i){var n,o;do{for(n=A.alloc(0);8*n.length=t)throw new Error("invalid sig")}t.exports=function(e,t,i,c,I){var f=o(i);if("ec"===f.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,i){var A=a[i.data.algorithm.curve.join(".")];if(!A)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var r=new n(A),o=i.data.subjectPrivateKey.data;return r.verify(t,e,o)}(e,t,f)}if("dsa"===f.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,i){var A=i.data.p,n=i.data.q,a=i.data.g,c=i.data.pub_key,I=o.signature.decode(e,"der"),f=I.s,h=I.r;s(f,n),s(h,n);var g=r.mont(A),u=f.invm(n);return 0===a.toRed(g).redPow(new r(t).mul(u).mod(n)).fromRed().mul(c.toRed(g).redPow(h.mul(u).mod(n)).fromRed()).mod(A).mod(n).cmp(h)}(e,t,f)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=A.concat([I,t]);for(var h=f.modulus.byteLength(),g=[1],u=0;t.length+g.length+22?"one of ".concat(t," ").concat(e.slice(0,i-1).join(", "),", or ")+e[i-1]:2===i?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,i){var A,r,o,a;if("string"==typeof t&&(r="not ",t.substr(!o||o<0?0:+o,r.length)===r)?(A="must not be",t=t.replace(/^not /,"")):A="must be",function(e,t,i){return(void 0===i||i>e.length)&&(i=e.length),e.substring(i-t.length,i)===t}(e," argument"))a="The ".concat(e," ").concat(A," ").concat(n(t,"type"));else{var s=function(e,t,i){return"number"!=typeof i&&(i=0),!(i+t.length>e.length)&&-1!==e.indexOf(t,i)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(A," ").concat(n(t,"type"))}return a+=". Received type ".concat(typeof i)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=A},{}],81:[function(e,t,i){(function(i){(function(){"use strict";var A=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};t.exports=c;var r=e("./_stream_readable"),n=e("./_stream_writable");e("inherits")(c,r);for(var o=A(n.prototype),a=0;a0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),A)o.endEmitted?y(e,new E):D(e,o,t,!0);else if(o.ended)y(e,new C);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!i?(t=o.decoder.write(t),o.objectMode||0!==t.length?D(e,o,t,!1):N(e,o)):D(e,o,t,!1)}else A||(o.reading=!1,N(e,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 k(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(M,e))}function M(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function N(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function H(e){c("readable nexttick read 0"),e.read(0)}function _(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function K(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.first():t.buffer.concat(t.length),t.buffer.clear()):i=t.buffer.consume(e,t.decoder),i);var i}function q(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(x,t,e))}function x(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var i=t._writableState;(!i||i.autoDestroy&&i.finished)&&t.destroy()}}function J(e,t){for(var i=0,A=e.length;i=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?q(this):k(this),null;if(0===(e=F(e,t))&&t.ended)return 0===t.length&&q(this),null;var A,r=t.needReadable;return c("need readable",r),(0===t.length||t.length-e0?K(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&q(this)),null!==A&&this.emit("data",A),A},w.prototype._read=function(e){y(this,new Q("_read()"))},w.prototype.pipe=function(e,t){var A=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,c("pipe count=%d opts=%j",r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?s:l;function a(t,i){c("onunpipe"),t===A&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,c("cleanup"),e.removeListener("close",u),e.removeListener("finish",d),e.removeListener("drain",I),e.removeListener("error",g),e.removeListener("unpipe",a),A.removeListener("end",s),A.removeListener("end",l),A.removeListener("data",h),f=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||I())}function s(){c("onend"),e.end()}r.endEmitted?i.nextTick(o):A.once("end",o),e.on("unpipe",a);var I=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&n(e,"data")&&(t.flowing=!0,R(e))}}(A);e.on("drain",I);var f=!1;function h(t){c("ondata");var i=e.write(t);c("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==J(r.pipes,e))&&!f&&(c("false write response, pause",r.awaitDrain),r.awaitDrain++),A.pause())}function g(t){c("onerror",t),l(),e.removeListener("error",g),0===n(e,"error")&&y(e,t)}function u(){e.removeListener("finish",d),l()}function d(){c("onfinish"),e.removeListener("close",u),l()}function l(){c("unpipe"),A.unpipe(e)}return A.on("data",h),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",g),e.once("close",u),e.once("finish",d),e.emit("pipe",A),r.flowing||(c("pipe resume"),A.resume()),e},w.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 A=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,c("on readable",r.length,r.reading),r.length?k(this):r.reading||i.nextTick(H,this))),A},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(e,t){var A=o.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(G,this),A},w.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(G,this),t},w.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(_,e,t))}(this,e)),e.paused=!1,this},w.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(e){var t=this,i=this._readableState,A=!1;for(var r in e.on("end",(function(){if(c("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){(c("wrapped data"),i.decoder&&(r=i.decoder.write(r)),i.objectMode&&null==r)||(i.objectMode||r&&r.length)&&(t.push(r)||(A=!0,e.pause()))})),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var n=0;n-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,i){i(new d("_write()"))},w.prototype._writev=null,w.prototype.end=function(e,t,A){var r=this._writableState;return"function"==typeof e?(A=e,e=null,t=null):"function"==typeof t&&(A=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,A){t.ending=!0,M(e,t),A&&(t.finished?i.nextTick(A):e.once("finish",A));t.ended=!0,e.writable=!1}(this,r,A),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=f.destroy,w.prototype._undestroy=f.undestroy,w.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":80,"./_stream_duplex":81,"./internal/streams/destroy":88,"./internal/streams/state":92,"./internal/streams/stream":93,_process:187,buffer:99,inherits:169,"util-deprecate":226}],86:[function(e,t,i){(function(i){(function(){"use strict";var A;function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var n=e("./end-of-stream"),o=Symbol("lastResolve"),a=Symbol("lastReject"),s=Symbol("error"),c=Symbol("ended"),I=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function g(e,t){return{value:e,done:t}}function u(e){var t=e[o];if(null!==t){var i=e[h].read();null!==i&&(e[I]=null,e[o]=null,e[a]=null,t(g(i,!1)))}}function d(e){i.nextTick(u,e)}var l=Object.getPrototypeOf((function(){})),B=Object.setPrototypeOf((r(A={get stream(){return this[h]},next:function(){var e=this,t=this[s];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(g(void 0,!0));if(this[h].destroyed)return new Promise((function(t,A){i.nextTick((function(){e[s]?A(e[s]):t(g(void 0,!0))}))}));var A,r=this[I];if(r)A=new Promise(function(e,t){return function(i,A){e.then((function(){t[c]?i(g(void 0,!0)):t[f](i,A)}),A)}}(r,this));else{var n=this[h].read();if(null!==n)return Promise.resolve(g(n,!1));A=new Promise(this[f])}return this[I]=A,A}},Symbol.asyncIterator,(function(){return this})),r(A,"return",(function(){var e=this;return new Promise((function(t,i){e[h].destroy(null,(function(e){e?i(e):t(g(void 0,!0))}))}))})),A),l);t.exports=function(e){var t,i=Object.create(B,(r(t={},h,{value:e,writable:!0}),r(t,o,{value:null,writable:!0}),r(t,a,{value:null,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var A=i[h].read();A?(i[I]=null,i[o]=null,i[a]=null,e(g(A,!1))):(i[o]=e,i[a]=t)},writable:!0}),t));return i[I]=null,n(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=i[a];return null!==t&&(i[I]=null,i[o]=null,i[a]=null,t(e)),void(i[s]=e)}var A=i[o];null!==A&&(i[I]=null,i[o]=null,i[a]=null,A(g(void 0,!0))),i[c]=!0})),e.on("readable",d.bind(null,i)),i}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":89,_process:187}],87:[function(e,t,i){"use strict";function A(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);t&&(A=A.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,A)}return i}function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function n(e,t){for(var i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,i,A,r=o.allocUnsafe(e>>>0),n=this.head,a=0;n;)t=n.data,i=r,A=a,o.prototype.copy.call(t,i,A),a+=n.data.length,n=n.next;return r}},{key:"consume",value:function(e,t){var i;return er.length?r.length:e;if(n===r.length?A+=r:A+=r.slice(0,e),0==(e-=n)){n===r.length?(++i,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(n));break}++i}return this.length-=i,A}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),i=this.head,A=1;for(i.data.copy(t),e-=i.data.length;i=i.next;){var r=i.data,n=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,n),0==(e-=n)){n===r.length?(++A,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=r.slice(n));break}++A}return this.length-=A,t}},{key:s,value:function(e,t){return a(this,function(e){for(var t=1;t0,(function(e){A||(A=e),e&&o.forEach(c),n||(o.forEach(c),r(A))}))}));return t.reduce(I)}},{"../../../errors":80,"./end-of-stream":89}],92:[function(e,t,i){"use strict";var A=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,i,r){var n=function(e,t,i){return null!=e.highWaterMark?e.highWaterMark:t?e[i]:null}(t,r,i);if(null!=n){if(!isFinite(n)||Math.floor(n)!==n||n<0)throw new A(r?i:"highWaterMark",n);return Math.floor(n)}return e.objectMode?16:16384}}},{"../../../errors":80}],93:[function(e,t,i){t.exports=e("events").EventEmitter},{events:134}],94:[function(e,t,i){(i=t.exports=e("./lib/_stream_readable.js")).Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js"),i.finished=e("./lib/internal/streams/end-of-stream.js"),i.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":81,"./lib/_stream_passthrough.js":82,"./lib/_stream_readable.js":83,"./lib/_stream_transform.js":84,"./lib/_stream_writable.js":85,"./lib/internal/streams/end-of-stream.js":89,"./lib/internal/streams/pipeline.js":91}],95:[function(e,t,i){"use strict";var A=e("safe-buffer").Buffer,r=A.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(A.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=I,this.end=f,t=3;break;default:return this.write=h,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=A.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,i=function(e,t,i){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var A=i.charCodeAt(i.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function I(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function g(e){return e&&e.length?this.write(e):""}i.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i=0)return r>0&&(e.lastNeed=r-1),r;if(--A=0)return r>0&&(e.lastNeed=r-2),r;if(--A=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var A=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,A),e.toString("utf8",t,A)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":198}],96:[function(e,t,i){arguments[4][50][0].apply(i,arguments)},{dup:50}],97:[function(e,t,i){arguments[4][95][0].apply(i,arguments)},{dup:95,"safe-buffer":198}],98:[function(e,t,i){(function(e){(function(){t.exports=function(t,i){for(var A=Math.min(t.length,i.length),r=new e(A),n=0;n0||n>o]}return a}(new Uint8Array(await this._subtle.digest("SHA-1",r))),o=encodeURIComponent(i),a=`https://openpgpkey.${A}/.well-known/openpgpkey/${A}/hu/${n}?l=${o}`,s=`https://${A}/.well-known/openpgpkey/hu/${n}?l=${o}`;let c;try{if(c=await t(a),200!==c.status)throw new Error("Advanced WKD lookup failed: "+c.statusText)}catch(e){if(c=await t(s),200!==c.status)throw new Error("Direct WKD lookup failed: "+c.statusText)}return new Uint8Array(await c.arrayBuffer())}}},{"@peculiar/webcrypto":50,crypto:50,"node-fetch":50}],3:[function(e,t,i){"use strict";const A=i;A.bignum=e("bn.js"),A.define=e("./asn1/api").define,A.base=e("./asn1/base"),A.constants=e("./asn1/constants"),A.decoders=e("./asn1/decoders"),A.encoders=e("./asn1/encoders")},{"./asn1/api":4,"./asn1/base":6,"./asn1/constants":10,"./asn1/decoders":12,"./asn1/encoders":15,"bn.js":47}],4:[function(e,t,i){"use strict";const A=e("./encoders"),r=e("./decoders"),n=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}i.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){const t=this.name;function i(e){this._initNamed(e,t)}return n(i,e),i.prototype._initNamed=function(t,i){e.call(this,t,i)},new i(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r[e])),this.decoders[e]},o.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(A[e])),this.encoders[e]},o.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}},{"./decoders":12,"./encoders":15,inherits:169}],5:[function(e,t,i){"use strict";const A=e("inherits"),r=e("../base/reporter").Reporter,n=e("safer-buffer").Buffer;function o(e,t){r.call(this,t),n.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return a.isEncoderBuffer(e)||(e=new a(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=n.byteLength(e);else{if(!n.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}A(o,r),i.DecoderBuffer=o,o.isDecoderBuffer=function(e){if(e instanceof o)return!0;return"object"==typeof e&&n.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},o.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},o.prototype.restore=function(e){const t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,r.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const i=new o(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},i.EncoderBuffer=a,a.isEncoderBuffer=function(e){if(e instanceof a)return!0;return"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},a.prototype.join=function(e,t){return e||(e=n.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(e,t),t+=i.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):n.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":8,inherits:169,"safer-buffer":199}],6:[function(e,t,i){"use strict";const A=i;A.Reporter=e("./reporter").Reporter,A.DecoderBuffer=e("./buffer").DecoderBuffer,A.EncoderBuffer=e("./buffer").EncoderBuffer,A.Node=e("./node")},{"./buffer":5,"./node":7,"./reporter":8}],7:[function(e,t,i){"use strict";const A=e("../base/reporter").Reporter,r=e("../base/buffer").EncoderBuffer,n=e("../base/buffer").DecoderBuffer,o=e("minimalistic-assert"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function c(e,t,i){const A={};this._baseState=A,A.name=i,A.enc=e,A.parent=t||null,A.children=null,A.tag=null,A.args=null,A.reverseArgs=null,A.choice=null,A.optional=!1,A.any=!1,A.obj=!1,A.use=null,A.useDecoder=null,A.key=null,A.default=null,A.explicit=null,A.implicit=null,A.contains=null,A.parent||(A.children=[],this._wrap())}t.exports=c;const I=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};I.forEach((function(i){t[i]=e[i]}));const i=new this.constructor(t.parent);return i._baseState=t,i},c.prototype._wrap=function(){const e=this._baseState;s.forEach((function(t){this[t]=function(){const i=new this.constructor(this);return e.children.push(i),i[t].apply(i,arguments)}}),this)},c.prototype._init=function(e){const t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,i=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==i.length&&(o(null===t.children),t.children=i,i.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(i){i==(0|i)&&(i|=0);const A=e[i];t[A]=i})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),a.forEach((function(e){c.prototype[e]=function(){const t=this._baseState,i=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(i),this}})),c.prototype.use=function(e){o(e);const t=this._baseState;return o(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return o(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){const t=this._baseState;return o(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));let A,r=i.default,o=!0,a=null;if(null!==i.key&&(a=e.enterKey(i.key)),i.optional){let A=null;if(null!==i.explicit?A=i.explicit:null!==i.implicit?A=i.implicit:null!==i.tag&&(A=i.tag),null!==A||i.any){if(o=this._peekTag(e,A,i.any),e.isError(o))return o}else{const A=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(A)}}if(i.obj&&o&&(A=e.enterObject()),o){if(null!==i.explicit){const t=this._decodeTag(e,i.explicit);if(e.isError(t))return t;e=t}const A=e.offset;if(null===i.use&&null===i.choice){let t;i.any&&(t=e.save());const A=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(A))return A;i.any?r=e.raw(t):e=A}if(t&&t.track&&null!==i.tag&&t.track(e.path(),A,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(r=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(r))return r;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(e,t)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){const A=new n(r);r=this._getUse(i.contains,e._reporterState.obj)._decode(A,t)}}return i.obj&&o&&(r=e.leaveObject(A)),null===i.key||null===r&&!0!==o?null!==a&&e.exitKey(a):e.leaveKey(a,i.key,r),r},c.prototype._decodeGeneric=function(e,t,i){const A=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,A.args[0],i):/str$/.test(e)?this._decodeStr(t,e,i):"objid"===e&&A.args?this._decodeObjid(t,A.args[0],A.args[1],i):"objid"===e?this._decodeObjid(t,null,null,i):"gentime"===e||"utctime"===e?this._decodeTime(t,e,i):"null_"===e?this._decodeNull(t,i):"bool"===e?this._decodeBool(t,i):"objDesc"===e?this._decodeStr(t,e,i):"int"===e||"enum"===e?this._decodeInt(t,A.args&&A.args[0],i):null!==A.use?this._getUse(A.use,t._reporterState.obj)._decode(t,i):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const i=this._baseState;return i.useDecoder=this._use(e,t),o(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},c.prototype._decodeChoice=function(e,t){const i=this._baseState;let A=null,r=!1;return Object.keys(i.choice).some((function(n){const o=e.save(),a=i.choice[n];try{const i=a._decode(e,t);if(e.isError(i))return!1;A={type:n,value:i},r=!0}catch(t){return e.restore(o),!1}return!0}),this),r?A:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new r(e,this.reporter)},c.prototype._encode=function(e,t,i){const A=this._baseState;if(null!==A.default&&A.default===e)return;const r=this._encodeValue(e,t,i);return void 0===r||this._skipDefault(r,t,i)?void 0:r},c.prototype._encodeValue=function(e,t,i){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new A);let n=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}let o=null,a=!1;if(r.any)n=this._createEncoderBuffer(e);else if(r.choice)n=this._encodeChoice(e,t);else if(r.contains)o=this._getUse(r.contains,i)._encode(e,t),a=!0;else if(r.children)o=r.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,t,e);if(null===i._baseState.key)return t.error("Child should have a key");const A=t.enterKey(i._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const r=i._encode(e[i._baseState.key],t,e);return t.leaveKey(A),r}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const i=this.clone();i._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(i){const A=this._baseState;return this._getUse(A.args[0],e)._encode(i,t)}),i))}else null!==r.use?n=this._getUse(r.use,i)._encode(e,t):(o=this._encodePrimitive(r.tag,e),a=!0);if(!r.any&&null===r.choice){const e=null!==r.implicit?r.implicit:r.tag,i=null===r.implicit?"universal":"context";null===e?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(n=this._encodeComposite(e,a,i,o))}return null!==r.explicit&&(n=this._encodeComposite(r.explicit,!1,"context",n)),n},c.prototype._encodeChoice=function(e,t){const i=this._baseState,A=i.choice[e.type];return A||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),A._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const i=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&i.args)return this._encodeObjid(t,i.reverseArgs[0],i.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,i.args&&i.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":5,"../base/reporter":8,"minimalistic-assert":174}],8:[function(e,t,i){"use strict";const A=e("inherits");function r(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function n(e,t){this.path=e,this.rethrow(t)}i.Reporter=r,r.prototype.isError=function(e){return e instanceof n},r.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},r.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},r.prototype.enterKey=function(e){return this._reporterState.path.push(e)},r.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},r.prototype.leaveKey=function(e,t,i){const A=this._reporterState;this.exitKey(e),null!==A.obj&&(A.obj[t]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},r.prototype.leaveObject=function(e){const t=this._reporterState,i=t.obj;return t.obj=e,i},r.prototype.error=function(e){let t;const i=this._reporterState,A=e instanceof n;if(t=A?e:new n(i.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!i.options.partial)throw t;return A||i.errors.push(t),t},r.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},A(n,Error),n.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:169}],9:[function(e,t,i){"use strict";function A(e){const t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);const A=e[i];t[A]=i})),t}i.tagClass={0:"universal",1:"application",2:"context",3:"private"},i.tagClassByName=A(i.tagClass),i.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},i.tagByName=A(i.tag)},{}],10:[function(e,t,i){"use strict";const A=i;A._reverse=function(e){const t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);const A=e[i];t[A]=i})),t},A.der=e("./der")},{"./der":9}],11:[function(e,t,i){"use strict";const A=e("inherits"),r=e("bn.js"),n=e("../base/buffer").DecoderBuffer,o=e("../base/node"),a=e("../constants/der");function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.call(this,"der",e)}function I(e,t){let i=e.readUInt8(t);if(e.isError(i))return i;const A=a.tagClass[i>>6],r=0==(32&i);if(31==(31&i)){let A=i;for(i=0;128==(128&A);){if(A=e.readUInt8(t),e.isError(A))return A;i<<=7,i|=127&A}}else i&=31;return{cls:A,primitive:r,tag:i,tagStr:a.tag[i]}}function f(e,t,i){let A=e.readUInt8(i);if(e.isError(A))return A;if(!t&&128===A)return null;if(0==(128&A))return A;const r=127&A;if(r>4)return e.error("length octect is too long");A=0;for(let t=0;t=31)return A.error("Multi-octet tag encoding unsupported");t||(r|=32);return r|=o.tagClassByName[i||"universal"]<<6,r}(e,t,i,this.reporter);if(A.length<128){const e=r.alloc(2);return e[0]=n,e[1]=A.length,this._createEncoderBuffer([e,A])}let a=1;for(let e=A.length;e>=256;e>>=8)a++;const s=r.alloc(2+a);s[0]=n,s[1]=128|a;for(let e=1+a,t=A.length;t>0;e--,t>>=8)s[e]=255&t;return this._createEncoderBuffer([s,A])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=r.alloc(2*e.length);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let A=0;for(let t=0;t=128;i>>=7)A++}const n=r.alloc(A);let o=n.length-1;for(let t=e.length-1;t>=0;t--){let i=e[t];for(n[o--]=127&i;(i>>=7)>0;)n[o--]=128|127&i}return this._createEncoderBuffer(n)},s.prototype._encodeTime=function(e,t){let i;const A=new Date(e);return"gentime"===t?i=[c(A.getUTCFullYear()),c(A.getUTCMonth()+1),c(A.getUTCDate()),c(A.getUTCHours()),c(A.getUTCMinutes()),c(A.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[c(A.getUTCFullYear()%100),c(A.getUTCMonth()+1),c(A.getUTCDate()),c(A.getUTCHours()),c(A.getUTCMinutes()),c(A.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!r.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=r.from(t)}if(r.isBuffer(e)){let t=e.length;0===e.length&&t++;const i=r.alloc(t);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let i=1;for(let t=e;t>=256;t>>=8)i++;const A=new Array(i);for(let t=A.length-1;t>=0;t--)A[t]=255&e,e>>=8;return 128&A[0]&&A.unshift(0),this._createEncoderBuffer(r.from(A))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,i){const A=this._baseState;let r;if(null===A.default)return!1;const n=e.join();if(void 0===A.defaultBuffer&&(A.defaultBuffer=this._encodeValue(A.default,t,i).join()),n.length!==A.defaultBuffer.length)return!1;for(r=0;r=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};A.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),A.forEach(["post","put","patch"],(function(e){c.headers[e]=A.merge(o)})),t.exports=c}).call(this)}).call(this,e("_process"))},{"./adapters/http":18,"./adapters/xhr":18,"./core/enhanceError":28,"./helpers/normalizeHeaderName":41,"./utils":45,_process:187}],33:[function(e,t,i){t.exports={version:"0.25.0"}},{}],34:[function(e,t,i){"use strict";t.exports=function(e,t){return function(){for(var i=new Array(arguments.length),A=0;A=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([i]):o[t]?o[t]+", "+i:i}})),o):o}},{"./../utils":45}],43:[function(e,t,i){"use strict";t.exports=function(e){return function(t){return e.apply(null,t)}}},{}],44:[function(e,t,i){"use strict";var A=e("../env/data").version,r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));var n={};r.transitional=function(e,t,i){function r(e,t){return"[Axios v"+A+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,A,o){if(!1===e)throw new Error(r(A," has been removed"+(t?" in "+t:"")));return t&&!n[A]&&(n[A]=!0,console.warn(r(A," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,A,o)}},t.exports={assertOptions:function(e,t,i){if("object"!=typeof e)throw new TypeError("options must be an object");for(var A=Object.keys(e),r=A.length;r-- >0;){var n=A[r],o=t[n];if(o){var a=e[n],s=void 0===a||o(a,n,e);if(!0!==s)throw new TypeError("option "+n+" must be "+s)}else if(!0!==i)throw Error("Unknown option "+n)}},validators:r}},{"../env/data":33}],45:[function(e,t,i){"use strict";var A=e("./helpers/bind"),r=Object.prototype.toString;function n(e){return Array.isArray(e)}function o(e){return void 0===e}function a(e){return"[object ArrayBuffer]"===r.call(e)}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function I(e){return"[object Function]"===r.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),n(e))for(var i=0,A=e.length;i0?o-4:o;for(i=0;i>16&255,s[I++]=t>>8&255,s[I++]=255&t;2===a&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,s[I++]=255&t);1===a&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,s[I++]=t>>8&255,s[I++]=255&t);return s},i.fromByteArray=function(e){for(var t,i=e.length,r=i%3,n=[],o=16383,a=0,s=i-r;as?s:a+o));1===r?(t=e[i-1],n.push(A[t>>2]+A[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],n.push(A[t>>10]+A[t>>4&63]+A[t<<2&63]+"="));return n.join("")};for(var A=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function I(e,t,i){for(var r,n,o=[],a=t;a>18&63]+A[n>>12&63]+A[n>>6&63]+A[63&n]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},{}],47:[function(e,t,i){!function(t,i){"use strict";function A(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function n(e,t,i){if(n.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var o;"object"==typeof t?t.exports=n:i.BN=n,n.BN=n,n.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function a(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function s(e,t,i){var A=a(e,i);return i-1>=t&&(A|=a(e,i-1)<<4),A}function c(e,t,i,A){for(var r=0,n=Math.min(e.length,i),o=t;o=49?a-49+10:a>=17?a-17+10:a}return r}n.isBN=function(e){return e instanceof n||null!==e&&"object"==typeof e&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,t){return e.cmp(t)>0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),A(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[n]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);else if("le"===i)for(r=0,n=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);return this.strip()},n.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var A=0;A=t;A-=2)r=s(e,t,A)<=18?(n-=18,o+=1,this.words[o]|=r>>>26):n+=8;else for(A=(e.length-t)%2==0?t+1:t;A=18?(n-=18,o+=1,this.words[o]|=r>>>26):n+=8;this.strip()},n.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var A=0,r=1;r<=67108863;r*=t)A++;A--,r=r/t|0;for(var n=e.length-i,o=n%A,a=Math.min(n,n-o)+i,s=0,I=i;I1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?""};var I=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function g(e,t,i){i.negative=t.negative^e.negative;var A=e.length+t.length|0;i.length=A,A=A-1|0;var r=0|e.words[0],n=0|t.words[0],o=r*n,a=67108863&o,s=o/67108864|0;i.words[0]=a;for(var c=1;c>>26,f=67108863&s,h=Math.min(c,t.length-1),g=Math.max(0,c-e.length+1);g<=h;g++){var u=c-g|0;I+=(o=(r=0|e.words[u])*(n=0|t.words[g])+f)/67108864|0,f=67108863&o}i.words[c]=0|f,s=0|I}return 0!==s?i.words[c]=0|s:i.length--,i.strip()}n.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,n=0,o=0;o>>24-r&16777215)||o!==this.length-1?I[6-s.length]+s+i:s+i,(r+=2)>=26&&(r-=26,o--)}for(0!==n&&(i=n.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var c=f[e],g=h[e];i="";var u=this.clone();for(u.negative=0;!u.isZero();){var d=u.modn(g).toString(e);i=(u=u.idivn(g)).isZero()?d+i:I[c-d.length]+d+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}A(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&A(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,t){return A(void 0!==o),this.toArrayLike(o,e,t)},n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},n.prototype.toArrayLike=function(e,t,i){var r=this.byteLength(),n=i||Math.max(1,r);A(r<=n,"byte array longer than desired length"),A(n>0,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,c=new e(n),I=this.clone();if(s){for(a=0;!I.isZero();a++)o=I.andln(255),I.iushrn(8),c[a]=o;for(;a=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var A=0;Ae.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){A("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){A("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<e.length?(i=this,A=e):(i=e,A=this);for(var r=0,n=0;n>>26;for(;0!==r&&n>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ne.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,A,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,A=e):(i=e,A=this);for(var n=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==n&&o>26,this.words[o]=67108863&t;if(0===n&&o>>13,g=0|o[1],u=8191&g,d=g>>>13,l=0|o[2],B=8191&l,p=l>>>13,C=0|o[3],Q=8191&C,E=C>>>13,y=0|o[4],b=8191&y,m=y>>>13,w=0|o[5],v=8191&w,D=w>>>13,S=0|o[6],F=8191&S,k=S>>>13,M=0|o[7],N=8191&M,U=M>>>13,G=0|o[8],H=8191&G,_=G>>>13,R=0|o[9],K=8191&R,q=R>>>13,x=0|a[0],J=8191&x,Y=x>>>13,O=0|a[1],L=8191&O,P=O>>>13,z=0|a[2],Z=8191&z,T=z>>>13,X=0|a[3],V=8191&X,j=X>>>13,W=0|a[4],$=8191&W,ee=W>>>13,te=0|a[5],ie=8191&te,Ae=te>>>13,re=0|a[6],ne=8191&re,oe=re>>>13,ae=0|a[7],se=8191&ae,ce=ae>>>13,Ie=0|a[8],fe=8191&Ie,he=Ie>>>13,ge=0|a[9],ue=8191&ge,de=ge>>>13;i.negative=e.negative^t.negative,i.length=19;var le=(c+(A=Math.imul(f,J))|0)+((8191&(r=(r=Math.imul(f,Y))+Math.imul(h,J)|0))<<13)|0;c=((n=Math.imul(h,Y))+(r>>>13)|0)+(le>>>26)|0,le&=67108863,A=Math.imul(u,J),r=(r=Math.imul(u,Y))+Math.imul(d,J)|0,n=Math.imul(d,Y);var Be=(c+(A=A+Math.imul(f,L)|0)|0)+((8191&(r=(r=r+Math.imul(f,P)|0)+Math.imul(h,L)|0))<<13)|0;c=((n=n+Math.imul(h,P)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,A=Math.imul(B,J),r=(r=Math.imul(B,Y))+Math.imul(p,J)|0,n=Math.imul(p,Y),A=A+Math.imul(u,L)|0,r=(r=r+Math.imul(u,P)|0)+Math.imul(d,L)|0,n=n+Math.imul(d,P)|0;var pe=(c+(A=A+Math.imul(f,Z)|0)|0)+((8191&(r=(r=r+Math.imul(f,T)|0)+Math.imul(h,Z)|0))<<13)|0;c=((n=n+Math.imul(h,T)|0)+(r>>>13)|0)+(pe>>>26)|0,pe&=67108863,A=Math.imul(Q,J),r=(r=Math.imul(Q,Y))+Math.imul(E,J)|0,n=Math.imul(E,Y),A=A+Math.imul(B,L)|0,r=(r=r+Math.imul(B,P)|0)+Math.imul(p,L)|0,n=n+Math.imul(p,P)|0,A=A+Math.imul(u,Z)|0,r=(r=r+Math.imul(u,T)|0)+Math.imul(d,Z)|0,n=n+Math.imul(d,T)|0;var Ce=(c+(A=A+Math.imul(f,V)|0)|0)+((8191&(r=(r=r+Math.imul(f,j)|0)+Math.imul(h,V)|0))<<13)|0;c=((n=n+Math.imul(h,j)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,A=Math.imul(b,J),r=(r=Math.imul(b,Y))+Math.imul(m,J)|0,n=Math.imul(m,Y),A=A+Math.imul(Q,L)|0,r=(r=r+Math.imul(Q,P)|0)+Math.imul(E,L)|0,n=n+Math.imul(E,P)|0,A=A+Math.imul(B,Z)|0,r=(r=r+Math.imul(B,T)|0)+Math.imul(p,Z)|0,n=n+Math.imul(p,T)|0,A=A+Math.imul(u,V)|0,r=(r=r+Math.imul(u,j)|0)+Math.imul(d,V)|0,n=n+Math.imul(d,j)|0;var Qe=(c+(A=A+Math.imul(f,$)|0)|0)+((8191&(r=(r=r+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((n=n+Math.imul(h,ee)|0)+(r>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,A=Math.imul(v,J),r=(r=Math.imul(v,Y))+Math.imul(D,J)|0,n=Math.imul(D,Y),A=A+Math.imul(b,L)|0,r=(r=r+Math.imul(b,P)|0)+Math.imul(m,L)|0,n=n+Math.imul(m,P)|0,A=A+Math.imul(Q,Z)|0,r=(r=r+Math.imul(Q,T)|0)+Math.imul(E,Z)|0,n=n+Math.imul(E,T)|0,A=A+Math.imul(B,V)|0,r=(r=r+Math.imul(B,j)|0)+Math.imul(p,V)|0,n=n+Math.imul(p,j)|0,A=A+Math.imul(u,$)|0,r=(r=r+Math.imul(u,ee)|0)+Math.imul(d,$)|0,n=n+Math.imul(d,ee)|0;var Ee=(c+(A=A+Math.imul(f,ie)|0)|0)+((8191&(r=(r=r+Math.imul(f,Ae)|0)+Math.imul(h,ie)|0))<<13)|0;c=((n=n+Math.imul(h,Ae)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,A=Math.imul(F,J),r=(r=Math.imul(F,Y))+Math.imul(k,J)|0,n=Math.imul(k,Y),A=A+Math.imul(v,L)|0,r=(r=r+Math.imul(v,P)|0)+Math.imul(D,L)|0,n=n+Math.imul(D,P)|0,A=A+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,T)|0)+Math.imul(m,Z)|0,n=n+Math.imul(m,T)|0,A=A+Math.imul(Q,V)|0,r=(r=r+Math.imul(Q,j)|0)+Math.imul(E,V)|0,n=n+Math.imul(E,j)|0,A=A+Math.imul(B,$)|0,r=(r=r+Math.imul(B,ee)|0)+Math.imul(p,$)|0,n=n+Math.imul(p,ee)|0,A=A+Math.imul(u,ie)|0,r=(r=r+Math.imul(u,Ae)|0)+Math.imul(d,ie)|0,n=n+Math.imul(d,Ae)|0;var ye=(c+(A=A+Math.imul(f,ne)|0)|0)+((8191&(r=(r=r+Math.imul(f,oe)|0)+Math.imul(h,ne)|0))<<13)|0;c=((n=n+Math.imul(h,oe)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,A=Math.imul(N,J),r=(r=Math.imul(N,Y))+Math.imul(U,J)|0,n=Math.imul(U,Y),A=A+Math.imul(F,L)|0,r=(r=r+Math.imul(F,P)|0)+Math.imul(k,L)|0,n=n+Math.imul(k,P)|0,A=A+Math.imul(v,Z)|0,r=(r=r+Math.imul(v,T)|0)+Math.imul(D,Z)|0,n=n+Math.imul(D,T)|0,A=A+Math.imul(b,V)|0,r=(r=r+Math.imul(b,j)|0)+Math.imul(m,V)|0,n=n+Math.imul(m,j)|0,A=A+Math.imul(Q,$)|0,r=(r=r+Math.imul(Q,ee)|0)+Math.imul(E,$)|0,n=n+Math.imul(E,ee)|0,A=A+Math.imul(B,ie)|0,r=(r=r+Math.imul(B,Ae)|0)+Math.imul(p,ie)|0,n=n+Math.imul(p,Ae)|0,A=A+Math.imul(u,ne)|0,r=(r=r+Math.imul(u,oe)|0)+Math.imul(d,ne)|0,n=n+Math.imul(d,oe)|0;var be=(c+(A=A+Math.imul(f,se)|0)|0)+((8191&(r=(r=r+Math.imul(f,ce)|0)+Math.imul(h,se)|0))<<13)|0;c=((n=n+Math.imul(h,ce)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,A=Math.imul(H,J),r=(r=Math.imul(H,Y))+Math.imul(_,J)|0,n=Math.imul(_,Y),A=A+Math.imul(N,L)|0,r=(r=r+Math.imul(N,P)|0)+Math.imul(U,L)|0,n=n+Math.imul(U,P)|0,A=A+Math.imul(F,Z)|0,r=(r=r+Math.imul(F,T)|0)+Math.imul(k,Z)|0,n=n+Math.imul(k,T)|0,A=A+Math.imul(v,V)|0,r=(r=r+Math.imul(v,j)|0)+Math.imul(D,V)|0,n=n+Math.imul(D,j)|0,A=A+Math.imul(b,$)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(m,$)|0,n=n+Math.imul(m,ee)|0,A=A+Math.imul(Q,ie)|0,r=(r=r+Math.imul(Q,Ae)|0)+Math.imul(E,ie)|0,n=n+Math.imul(E,Ae)|0,A=A+Math.imul(B,ne)|0,r=(r=r+Math.imul(B,oe)|0)+Math.imul(p,ne)|0,n=n+Math.imul(p,oe)|0,A=A+Math.imul(u,se)|0,r=(r=r+Math.imul(u,ce)|0)+Math.imul(d,se)|0,n=n+Math.imul(d,ce)|0;var me=(c+(A=A+Math.imul(f,fe)|0)|0)+((8191&(r=(r=r+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((n=n+Math.imul(h,he)|0)+(r>>>13)|0)+(me>>>26)|0,me&=67108863,A=Math.imul(K,J),r=(r=Math.imul(K,Y))+Math.imul(q,J)|0,n=Math.imul(q,Y),A=A+Math.imul(H,L)|0,r=(r=r+Math.imul(H,P)|0)+Math.imul(_,L)|0,n=n+Math.imul(_,P)|0,A=A+Math.imul(N,Z)|0,r=(r=r+Math.imul(N,T)|0)+Math.imul(U,Z)|0,n=n+Math.imul(U,T)|0,A=A+Math.imul(F,V)|0,r=(r=r+Math.imul(F,j)|0)+Math.imul(k,V)|0,n=n+Math.imul(k,j)|0,A=A+Math.imul(v,$)|0,r=(r=r+Math.imul(v,ee)|0)+Math.imul(D,$)|0,n=n+Math.imul(D,ee)|0,A=A+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,Ae)|0)+Math.imul(m,ie)|0,n=n+Math.imul(m,Ae)|0,A=A+Math.imul(Q,ne)|0,r=(r=r+Math.imul(Q,oe)|0)+Math.imul(E,ne)|0,n=n+Math.imul(E,oe)|0,A=A+Math.imul(B,se)|0,r=(r=r+Math.imul(B,ce)|0)+Math.imul(p,se)|0,n=n+Math.imul(p,ce)|0,A=A+Math.imul(u,fe)|0,r=(r=r+Math.imul(u,he)|0)+Math.imul(d,fe)|0,n=n+Math.imul(d,he)|0;var we=(c+(A=A+Math.imul(f,ue)|0)|0)+((8191&(r=(r=r+Math.imul(f,de)|0)+Math.imul(h,ue)|0))<<13)|0;c=((n=n+Math.imul(h,de)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,A=Math.imul(K,L),r=(r=Math.imul(K,P))+Math.imul(q,L)|0,n=Math.imul(q,P),A=A+Math.imul(H,Z)|0,r=(r=r+Math.imul(H,T)|0)+Math.imul(_,Z)|0,n=n+Math.imul(_,T)|0,A=A+Math.imul(N,V)|0,r=(r=r+Math.imul(N,j)|0)+Math.imul(U,V)|0,n=n+Math.imul(U,j)|0,A=A+Math.imul(F,$)|0,r=(r=r+Math.imul(F,ee)|0)+Math.imul(k,$)|0,n=n+Math.imul(k,ee)|0,A=A+Math.imul(v,ie)|0,r=(r=r+Math.imul(v,Ae)|0)+Math.imul(D,ie)|0,n=n+Math.imul(D,Ae)|0,A=A+Math.imul(b,ne)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(m,ne)|0,n=n+Math.imul(m,oe)|0,A=A+Math.imul(Q,se)|0,r=(r=r+Math.imul(Q,ce)|0)+Math.imul(E,se)|0,n=n+Math.imul(E,ce)|0,A=A+Math.imul(B,fe)|0,r=(r=r+Math.imul(B,he)|0)+Math.imul(p,fe)|0,n=n+Math.imul(p,he)|0;var ve=(c+(A=A+Math.imul(u,ue)|0)|0)+((8191&(r=(r=r+Math.imul(u,de)|0)+Math.imul(d,ue)|0))<<13)|0;c=((n=n+Math.imul(d,de)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,A=Math.imul(K,Z),r=(r=Math.imul(K,T))+Math.imul(q,Z)|0,n=Math.imul(q,T),A=A+Math.imul(H,V)|0,r=(r=r+Math.imul(H,j)|0)+Math.imul(_,V)|0,n=n+Math.imul(_,j)|0,A=A+Math.imul(N,$)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(U,$)|0,n=n+Math.imul(U,ee)|0,A=A+Math.imul(F,ie)|0,r=(r=r+Math.imul(F,Ae)|0)+Math.imul(k,ie)|0,n=n+Math.imul(k,Ae)|0,A=A+Math.imul(v,ne)|0,r=(r=r+Math.imul(v,oe)|0)+Math.imul(D,ne)|0,n=n+Math.imul(D,oe)|0,A=A+Math.imul(b,se)|0,r=(r=r+Math.imul(b,ce)|0)+Math.imul(m,se)|0,n=n+Math.imul(m,ce)|0,A=A+Math.imul(Q,fe)|0,r=(r=r+Math.imul(Q,he)|0)+Math.imul(E,fe)|0,n=n+Math.imul(E,he)|0;var De=(c+(A=A+Math.imul(B,ue)|0)|0)+((8191&(r=(r=r+Math.imul(B,de)|0)+Math.imul(p,ue)|0))<<13)|0;c=((n=n+Math.imul(p,de)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863,A=Math.imul(K,V),r=(r=Math.imul(K,j))+Math.imul(q,V)|0,n=Math.imul(q,j),A=A+Math.imul(H,$)|0,r=(r=r+Math.imul(H,ee)|0)+Math.imul(_,$)|0,n=n+Math.imul(_,ee)|0,A=A+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,Ae)|0)+Math.imul(U,ie)|0,n=n+Math.imul(U,Ae)|0,A=A+Math.imul(F,ne)|0,r=(r=r+Math.imul(F,oe)|0)+Math.imul(k,ne)|0,n=n+Math.imul(k,oe)|0,A=A+Math.imul(v,se)|0,r=(r=r+Math.imul(v,ce)|0)+Math.imul(D,se)|0,n=n+Math.imul(D,ce)|0,A=A+Math.imul(b,fe)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(m,fe)|0,n=n+Math.imul(m,he)|0;var Se=(c+(A=A+Math.imul(Q,ue)|0)|0)+((8191&(r=(r=r+Math.imul(Q,de)|0)+Math.imul(E,ue)|0))<<13)|0;c=((n=n+Math.imul(E,de)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,A=Math.imul(K,$),r=(r=Math.imul(K,ee))+Math.imul(q,$)|0,n=Math.imul(q,ee),A=A+Math.imul(H,ie)|0,r=(r=r+Math.imul(H,Ae)|0)+Math.imul(_,ie)|0,n=n+Math.imul(_,Ae)|0,A=A+Math.imul(N,ne)|0,r=(r=r+Math.imul(N,oe)|0)+Math.imul(U,ne)|0,n=n+Math.imul(U,oe)|0,A=A+Math.imul(F,se)|0,r=(r=r+Math.imul(F,ce)|0)+Math.imul(k,se)|0,n=n+Math.imul(k,ce)|0,A=A+Math.imul(v,fe)|0,r=(r=r+Math.imul(v,he)|0)+Math.imul(D,fe)|0,n=n+Math.imul(D,he)|0;var Fe=(c+(A=A+Math.imul(b,ue)|0)|0)+((8191&(r=(r=r+Math.imul(b,de)|0)+Math.imul(m,ue)|0))<<13)|0;c=((n=n+Math.imul(m,de)|0)+(r>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,A=Math.imul(K,ie),r=(r=Math.imul(K,Ae))+Math.imul(q,ie)|0,n=Math.imul(q,Ae),A=A+Math.imul(H,ne)|0,r=(r=r+Math.imul(H,oe)|0)+Math.imul(_,ne)|0,n=n+Math.imul(_,oe)|0,A=A+Math.imul(N,se)|0,r=(r=r+Math.imul(N,ce)|0)+Math.imul(U,se)|0,n=n+Math.imul(U,ce)|0,A=A+Math.imul(F,fe)|0,r=(r=r+Math.imul(F,he)|0)+Math.imul(k,fe)|0,n=n+Math.imul(k,he)|0;var ke=(c+(A=A+Math.imul(v,ue)|0)|0)+((8191&(r=(r=r+Math.imul(v,de)|0)+Math.imul(D,ue)|0))<<13)|0;c=((n=n+Math.imul(D,de)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,A=Math.imul(K,ne),r=(r=Math.imul(K,oe))+Math.imul(q,ne)|0,n=Math.imul(q,oe),A=A+Math.imul(H,se)|0,r=(r=r+Math.imul(H,ce)|0)+Math.imul(_,se)|0,n=n+Math.imul(_,ce)|0,A=A+Math.imul(N,fe)|0,r=(r=r+Math.imul(N,he)|0)+Math.imul(U,fe)|0,n=n+Math.imul(U,he)|0;var Me=(c+(A=A+Math.imul(F,ue)|0)|0)+((8191&(r=(r=r+Math.imul(F,de)|0)+Math.imul(k,ue)|0))<<13)|0;c=((n=n+Math.imul(k,de)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,A=Math.imul(K,se),r=(r=Math.imul(K,ce))+Math.imul(q,se)|0,n=Math.imul(q,ce),A=A+Math.imul(H,fe)|0,r=(r=r+Math.imul(H,he)|0)+Math.imul(_,fe)|0,n=n+Math.imul(_,he)|0;var Ne=(c+(A=A+Math.imul(N,ue)|0)|0)+((8191&(r=(r=r+Math.imul(N,de)|0)+Math.imul(U,ue)|0))<<13)|0;c=((n=n+Math.imul(U,de)|0)+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,A=Math.imul(K,fe),r=(r=Math.imul(K,he))+Math.imul(q,fe)|0,n=Math.imul(q,he);var Ue=(c+(A=A+Math.imul(H,ue)|0)|0)+((8191&(r=(r=r+Math.imul(H,de)|0)+Math.imul(_,ue)|0))<<13)|0;c=((n=n+Math.imul(_,de)|0)+(r>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var Ge=(c+(A=Math.imul(K,ue))|0)+((8191&(r=(r=Math.imul(K,de))+Math.imul(q,ue)|0))<<13)|0;return c=((n=Math.imul(q,de))+(r>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,s[0]=le,s[1]=Be,s[2]=pe,s[3]=Ce,s[4]=Qe,s[5]=Ee,s[6]=ye,s[7]=be,s[8]=me,s[9]=we,s[10]=ve,s[11]=De,s[12]=Se,s[13]=Fe,s[14]=ke,s[15]=Me,s[16]=Ne,s[17]=Ue,s[18]=Ge,0!==c&&(s[19]=c,i.length++),i};function d(e,t,i){return(new l).mulp(e,t,i)}function l(e,t){this.x=e,this.y=t}Math.imul||(u=g),n.prototype.mulTo=function(e,t){var i,A=this.length+e.length;return i=10===this.length&&10===e.length?u(this,e,t):A<63?g(this,e,t):A<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var A=0,r=0,n=0;n>>26)|0)>>>26,o&=67108863}i.words[n]=a,A=o,o=r}return 0!==A?i.words[n]=A:i.length--,i.strip()}(this,e,t):d(this,e,t),i},l.prototype.makeRBT=function(e){for(var t=new Array(e),i=n.prototype._countBits(e)-1,A=0;A>=1;return A},l.prototype.permute=function(e,t,i,A,r,n){for(var o=0;o>>=1)r++;return 1<>>=13,i[2*o+1]=8191&n,n>>>=13;for(o=2*t;o>=26,t+=r/67108864|0,t+=n>>>26,this.words[i]=67108863&n}return 0!==t&&(this.words[i]=t,this.length++),this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i>>r}return t}(e);if(0===t.length)return new n(1);for(var i=this,A=0;A=0);var t,i=e%26,r=(e-i)/26,n=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var n=e%26,o=Math.min((e-n)/26,this.length),a=67108863^67108863>>>n<o)for(this.length-=o,c=0;c=0&&(0!==I||c>=r);c--){var f=0|this.words[c];this.words[c]=I<<26-n|f>>>n,I=f&a}return s&&0!==I&&(s.words[s.length++]=I),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,t,i){return A(0===this.negative),this.iushrn(e,t,i)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){A("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<=0);var t=e%26,i=(e-t)/26;if(A(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},n.prototype.isubn=function(e){if(A("number"==typeof e),A(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[r+i]=67108863&n}for(;r>26,this.words[r+i]=67108863&n;if(0===a)return this.strip();for(A(-1===a),a=0,r=0;r>26,this.words[r]=67108863&n;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,t){var i=(this.length,e.length),A=this.clone(),r=e,o=0|r.words[r.length-1];0!==(i=26-this._countBits(o))&&(r=r.ushln(i),A.iushln(i),o=0|r.words[r.length-1]);var a,s=A.length-r.length;if("mod"!==t){(a=new n(null)).length=s+1,a.words=new Array(a.length);for(var c=0;c=0;f--){var h=67108864*(0|A.words[r.length+f])+(0|A.words[r.length+f-1]);for(h=Math.min(h/o|0,67108863),A._ishlnsubmul(r,h,f);0!==A.negative;)h--,A.negative=0,A._ishlnsubmul(r,1,f),A.isZero()||(A.negative^=1);a&&(a.words[f]=h)}return a&&a.strip(),A.strip(),"div"!==t&&0!==i&&A.iushrn(i),{div:a||null,mod:A}},n.prototype.divmod=function(e,t,i){return A(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:r,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,t);var r,o,a},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,A=e.ushrn(1),r=e.andln(1),n=i.cmp(A);return n<0||1===r&&0===n?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modn=function(e){A(e<=67108863);for(var t=(1<<26)%e,i=0,r=this.length-1;r>=0;r--)i=(t*i+(0|this.words[r]))%e;return i},n.prototype.idivn=function(e){A(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var r=(0|this.words[i])+67108864*t;this.words[i]=r/e|0,t=r%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){A(0===e.negative),A(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new n(1),o=new n(0),a=new n(0),s=new n(1),c=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++c;for(var I=i.clone(),f=t.clone();!t.isZero();){for(var h=0,g=1;0==(t.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(I),o.isub(f)),r.iushrn(1),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(I),s.isub(f)),a.iushrn(1),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),o.isub(s)):(i.isub(t),a.isub(r),s.isub(o))}return{a:a,b:s,gcd:i.iushln(c)}},n.prototype._invmp=function(e){A(0===e.negative),A(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,o=new n(1),a=new n(0),s=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,I=1;0==(t.words[0]&I)&&c<26;++c,I<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var f=0,h=1;0==(i.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(i.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(i)>=0?(t.isub(i),o.isub(a)):(i.isub(t),a.isub(o))}return(r=0===t.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(e),r},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var A=0;t.isEven()&&i.isEven();A++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var n=t;t=i,i=n}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(A)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){A("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<>>26,a&=67108863,this.words[o]=a}return 0!==n&&(this.words[o]=n,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),A(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;i--){var A=0|this.words[i],r=0|e.words[i];if(A!==r){Ar&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new b(e)},n.prototype.toRed=function(e){return A(!this.red,"Already a number in reduction context"),A(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return A(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return A(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return A(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return A(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return A(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return A(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return A(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return A(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return A(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return A(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return A(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return A(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return A(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return A(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return A(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var B={k256:null,p224:null,p192:null,p25519:null};function p(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){p.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Q(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function b(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else A(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function m(e){b.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}p.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},p.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var A=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},p.prototype.split=function(e,t){e.iushrn(this.n,0,t)},p.prototype.imulK=function(e){return e.imul(this.k)},r(C,p),C.prototype.split=function(e,t){for(var i=4194303,A=Math.min(e.length,9),r=0;r>>22,n=o}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=r,t=A}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(B[e])return B[e];var t;if("k256"===e)t=new C;else if("p224"===e)t=new Q;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new y}return B[e]=t,t},b.prototype._verify1=function(e){A(0===e.negative,"red works only with positives"),A(e.red,"red works only with red numbers")},b.prototype._verify2=function(e,t){A(0==(e.negative|t.negative),"red works only with positives"),A(e.red&&e.red===t.red,"red works only with red numbers")},b.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},b.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},b.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},b.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},b.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},b.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},b.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},b.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},b.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},b.prototype.isqr=function(e){return this.imul(e,e.clone())},b.prototype.sqr=function(e){return this.mul(e,e)},b.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(A(t%2==1),3===t){var i=this.m.add(new n(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);A(!r.isZero());var a=new n(1).toRed(this),s=a.redNeg(),c=this.m.subn(1).iushrn(1),I=this.m.bitLength();for(I=new n(2*I*I).toRed(this);0!==this.pow(I,c).cmp(s);)I.redIAdd(s);for(var f=this.pow(I,r),h=this.pow(e,r.addn(1).iushrn(1)),g=this.pow(e,r),u=o;0!==g.cmp(a);){for(var d=g,l=0;0!==d.cmp(a);l++)d=d.redSqr();A(l=0;A--){for(var c=t.words[A],I=s-1;I>=0;I--){var f=c>>I&1;r!==i[0]&&(r=this.sqr(r)),0!==f||0!==o?(o<<=1,o|=f,(4===++a||0===A&&0===I)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}s=26}return r},b.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},b.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new m(e)},r(m,b),m.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},m.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},m.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),A=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(A).iushrn(this.shift),n=r;return r.cmp(this.m)>=0?n=r.isub(this.m):r.cmpn(0)<0&&(n=r.iadd(this.m)),n._forceRed(this)},m.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var i=e.mul(t),A=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(A).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},m.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:50}],48:[function(e,t,i){var A;function r(e){this.rand=e}if(t.exports=function(e){return A||(A=new r(null)),A.generate(e)},t.exports.Rand=r,r.prototype.generate=function(e){return this._rand(e)},r.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i>>24]^I[u>>>16&255]^f[d>>>8&255]^h[255&l]^t[B++],o=c[u>>>24]^I[d>>>16&255]^f[l>>>8&255]^h[255&g]^t[B++],a=c[d>>>24]^I[l>>>16&255]^f[g>>>8&255]^h[255&u]^t[B++],s=c[l>>>24]^I[g>>>16&255]^f[u>>>8&255]^h[255&d]^t[B++],g=n,u=o,d=a,l=s;return n=(A[g>>>24]<<24|A[u>>>16&255]<<16|A[d>>>8&255]<<8|A[255&l])^t[B++],o=(A[u>>>24]<<24|A[d>>>16&255]<<16|A[l>>>8&255]<<8|A[255&g])^t[B++],a=(A[d>>>24]<<24|A[l>>>16&255]<<16|A[g>>>8&255]<<8|A[255&u])^t[B++],s=(A[l>>>24]<<24|A[g>>>16&255]<<16|A[u>>>8&255]<<8|A[255&d])^t[B++],[n>>>=0,o>>>=0,a>>>=0,s>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],A=[],r=[[],[],[],[]],n=[[],[],[],[]],o=0,a=0,s=0;s<256;++s){var c=a^a<<1^a<<2^a<<3^a<<4;c=c>>>8^255&c^99,i[o]=c,A[c]=o;var I=e[o],f=e[I],h=e[f],g=257*e[c]^16843008*c;r[0][o]=g<<24|g>>>8,r[1][o]=g<<16|g>>>16,r[2][o]=g<<8|g>>>24,r[3][o]=g,g=16843009*h^65537*f^257*I^16843008*o,n[0][c]=g<<24|g>>>8,n[1][c]=g<<16|g>>>16,n[2][c]=g<<8|g>>>24,n[3][c]=g,0===o?o=a=1:(o=I^e[e[e[h^I]]],a^=e[e[a]])}return{SBOX:i,INV_SBOX:A,SUB_MIX:r,INV_SUB_MIX:n}}();function c(e){this._key=r(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,A=4*(i+1),r=[],n=0;n>>24,o=s.SBOX[o>>>24]<<24|s.SBOX[o>>>16&255]<<16|s.SBOX[o>>>8&255]<<8|s.SBOX[255&o],o^=a[n/t|0]<<24):t>6&&n%t==4&&(o=s.SBOX[o>>>24]<<24|s.SBOX[o>>>16&255]<<16|s.SBOX[o>>>8&255]<<8|s.SBOX[255&o]),r[n]=r[n-t]^o}for(var c=[],I=0;I>>24]]^s.INV_SUB_MIX[1][s.SBOX[h>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[h>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[255&h]]}this._nRounds=i,this._keySchedule=r,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return o(e=r(e),this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=A.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},c.prototype.decryptBlock=function(e){var t=(e=r(e))[1];e[1]=e[3],e[3]=t;var i=o(e,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),n=A.allocUnsafe(16);return n.writeUInt32BE(i[0],0),n.writeUInt32BE(i[3],4),n.writeUInt32BE(i[2],8),n.writeUInt32BE(i[1],12),n},c.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},t.exports.AES=c},{"safe-buffer":198}],52:[function(e,t,i){var A=e("./aes"),r=e("safe-buffer").Buffer,n=e("cipher-base"),o=e("inherits"),a=e("./ghash"),s=e("buffer-xor"),c=e("./incr32");function I(e,t,i,o){n.call(this);var s=r.alloc(4,0);this._cipher=new A.AES(t);var I=this._cipher.encryptBlock(s);this._ghash=new a(I),i=function(e,t,i){if(12===t.length)return e._finID=r.concat([t,r.from([0,0,0,1])]),r.concat([t,r.from([0,0,0,2])]);var A=new a(i),n=t.length,o=n%16;A.update(t),o&&(o=16-o,A.update(r.alloc(o,0))),A.update(r.alloc(8,0));var s=8*n,I=r.alloc(8);I.writeUIntBE(s,0,8),A.update(I),e._finID=A.state;var f=r.from(e._finID);return c(f),f}(this,i,I),this._prev=r.from(i),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(I,n),I.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=r.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},I.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=s(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var i=0;e.length!==t.length&&i++;for(var A=Math.min(e.length,t.length),r=0;r16)throw new Error("unable to decrypt data");var i=-1;for(;++i16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},i.createDecipher=function(e,t){var i=n[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var A=c(t,!1,i.key,i.iv);return h(e,A.key,A.iv)},i.createDecipheriv=h},{"./aes":51,"./authCipher":52,"./modes":64,"./streamCipher":67,"cipher-base":100,evp_bytestokey:135,inherits:169,"safe-buffer":198}],55:[function(e,t,i){var A=e("./modes"),r=e("./authCipher"),n=e("safe-buffer").Buffer,o=e("./streamCipher"),a=e("cipher-base"),s=e("./aes"),c=e("evp_bytestokey");function I(e,t,i){a.call(this),this._cache=new h,this._cipher=new s.AES(t),this._prev=n.from(i),this._mode=e,this._autopadding=!0}e("inherits")(I,a),I.prototype._update=function(e){var t,i;this._cache.add(e);for(var A=[];t=this._cache.get();)i=this._mode.encrypt(this,t),A.push(i);return n.concat(A)};var f=n.alloc(16,16);function h(){this.cache=n.allocUnsafe(0)}function g(e,t,i){var a=A[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=n.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof i&&(i=n.from(i)),"GCM"!==a.mode&&i.length!==a.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===a.type?new o(a.module,t,i):"auth"===a.type?new r(a.module,t,i):new I(a.module,t,i)}I.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},I.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=n.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=n.allocUnsafe(e),i=-1;++i>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=A.alloc(16,0),this.cache=A.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t0;t--)A[t]=A[t]>>>1|(1&A[t-1])<<31;A[0]=A[0]>>>1,i&&(A[0]=A[0]^225<<24)}this.state=n(r)},o.prototype.update=function(e){var t;for(this.cache=A.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(A.concat([this.cache,r],16)),this.ghash(n([0,e,0,t])),this.state},t.exports=o},{"safe-buffer":198}],57:[function(e,t,i){t.exports=function(e){for(var t,i=e.length;i--;){if(255!==(t=e.readUInt8(i))){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}},{}],58:[function(e,t,i){var A=e("buffer-xor");i.encrypt=function(e,t){var i=A(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},i.decrypt=function(e,t){var i=e._prev;e._prev=t;var r=e._cipher.decryptBlock(t);return A(r,i)}},{"buffer-xor":98}],59:[function(e,t,i){var A=e("safe-buffer").Buffer,r=e("buffer-xor");function n(e,t,i){var n=t.length,o=r(t,e._cache);return e._cache=e._cache.slice(n),e._prev=A.concat([e._prev,i?t:o]),o}i.encrypt=function(e,t,i){for(var r,o=A.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=A.allocUnsafe(0)),!(e._cache.length<=t.length)){o=A.concat([o,n(e,t,i)]);break}r=e._cache.length,o=A.concat([o,n(e,t.slice(0,r),i)]),t=t.slice(r)}return o}},{"buffer-xor":98,"safe-buffer":198}],60:[function(e,t,i){var A=e("safe-buffer").Buffer;function r(e,t,i){for(var A,r,o=-1,a=0;++o<8;)A=t&1<<7-o?128:0,a+=(128&(r=e._cipher.encryptBlock(e._prev)[0]^A))>>o%8,e._prev=n(e._prev,i?A:r);return a}function n(e,t){var i=e.length,r=-1,n=A.allocUnsafe(e.length);for(e=A.concat([e,A.from([t])]);++r>7;return n}i.encrypt=function(e,t,i){for(var n=t.length,o=A.allocUnsafe(n),a=-1;++a=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,t){var r=function(e){var t=n(e);return{blinder:t.toRed(A.mont(e.modulus)).redPow(new A(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),o=t.modulus.byteLength(),a=new A(e).mul(r.blinder).umod(t.modulus),s=a.toRed(A.mont(t.prime1)),c=a.toRed(A.mont(t.prime2)),I=t.coefficient,f=t.prime1,h=t.prime2,g=s.redPow(t.exponent1).fromRed(),u=c.redPow(t.exponent2).fromRed(),d=g.isub(u).imul(I).umod(f).imul(h);return u.iadd(d).imul(r.unblinder).umod(t.modulus).toArrayLike(i,"be",o)}o.getr=n,t.exports=o}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":72,buffer:99,randombytes:195}],72:[function(e,t,i){!function(t,i){"use strict";function A(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function n(e,t,i){if(n.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var o;"object"==typeof t?t.exports=n:i.BN=n,n.BN=n,n.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function a(e,t){var i=e.charCodeAt(t);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void A(!1,"Invalid character in "+e)}function s(e,t,i){var A=a(e,i);return i-1>=t&&(A|=a(e,i-1)<<4),A}function c(e,t,i,r){for(var n=0,o=0,a=Math.min(e.length,i),s=t;s=49?c-49+10:c>=17?c-17+10:c,A(c>=0&&o0?e:t},n.min=function(e,t){return e.cmp(t)<0?e:t},n.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),A(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)o=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[n]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);else if("le"===i)for(r=0,n=0;r>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);return this._strip()},n.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var A=0;A=t;A-=2)r=s(e,t,A)<=18?(n-=18,o+=1,this.words[o]|=r>>>26):n+=8;else for(A=(e.length-t)%2==0?t+1:t;A=18?(n-=18,o+=1,this.words[o]|=r>>>26):n+=8;this._strip()},n.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var A=0,r=1;r<=67108863;r*=t)A++;A--,r=r/t|0;for(var n=e.length-i,o=n%A,a=Math.min(n,n-o)+i,s=0,I=i;I1&&0===this.words[this.length-1];)this.length--;return this._normSign()},n.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(e){n.prototype.inspect=f}else n.prototype.inspect=f;function f(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var r=0,n=0,o=0;o>>24-r&16777215,(r+=2)>=26&&(r-=26,o--),i=0!==n||o!==this.length-1?h[6-s.length]+s+i:s+i}for(0!==n&&(i=n.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var c=g[e],I=u[e];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var d=f.modrn(I).toString(e);i=(f=f.idivn(I)).isZero()?d+i:h[c-d.length]+d+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}A(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&A(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},n.prototype.toJSON=function(){return this.toString(16,2)},o&&(n.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),n.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function d(e,t,i){i.negative=t.negative^e.negative;var A=e.length+t.length|0;i.length=A,A=A-1|0;var r=0|e.words[0],n=0|t.words[0],o=r*n,a=67108863&o,s=o/67108864|0;i.words[0]=a;for(var c=1;c>>26,f=67108863&s,h=Math.min(c,t.length-1),g=Math.max(0,c-e.length+1);g<=h;g++){var u=c-g|0;I+=(o=(r=0|e.words[u])*(n=0|t.words[g])+f)/67108864|0,f=67108863&o}i.words[c]=0|f,s=0|I}return 0!==s?i.words[c]=0|s:i.length--,i._strip()}n.prototype.toArrayLike=function(e,t,i){this._strip();var r=this.byteLength(),n=i||Math.max(1,r);A(r<=n,"byte array longer than desired length"),A(n>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,n);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,r),o},n.prototype._toArrayLikeLE=function(e,t){for(var i=0,A=0,r=0,n=0;r>8&255),i>16&255),6===n?(i>24&255),A=0,n=0):(A=o>>>24,n+=2)}if(i=0&&(e[i--]=o>>8&255),i>=0&&(e[i--]=o>>16&255),6===n?(i>=0&&(e[i--]=o>>24&255),A=0,n=0):(A=o>>>24,n+=2)}if(i>=0)for(e[i--]=A;i>=0;)e[i--]=0},Math.clz32?n.prototype._countBits=function(e){return 32-Math.clz32(e)}:n.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},n.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},n.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var A=0;Ae.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){A("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-i),this._strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,t){A("number"==typeof e&&e>=0);var i=e/26|0,r=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<e.length?(i=this,A=e):(i=e,A=this);for(var r=0,n=0;n>>26;for(;0!==r&&n>>26;if(this.length=i.length,0!==r)this.words[this.length]=r,this.length++;else if(i!==this)for(;ne.length?this.clone().iadd(e):e.clone().iadd(this)},n.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,A,r=this.cmp(e);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(i=this,A=e):(i=e,A=this);for(var n=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==n&&o>26,this.words[o]=67108863&t;if(0===n&&o>>13,g=0|o[1],u=8191&g,d=g>>>13,l=0|o[2],B=8191&l,p=l>>>13,C=0|o[3],Q=8191&C,E=C>>>13,y=0|o[4],b=8191&y,m=y>>>13,w=0|o[5],v=8191&w,D=w>>>13,S=0|o[6],F=8191&S,k=S>>>13,M=0|o[7],N=8191&M,U=M>>>13,G=0|o[8],H=8191&G,_=G>>>13,R=0|o[9],K=8191&R,q=R>>>13,x=0|a[0],J=8191&x,Y=x>>>13,O=0|a[1],L=8191&O,P=O>>>13,z=0|a[2],Z=8191&z,T=z>>>13,X=0|a[3],V=8191&X,j=X>>>13,W=0|a[4],$=8191&W,ee=W>>>13,te=0|a[5],ie=8191&te,Ae=te>>>13,re=0|a[6],ne=8191&re,oe=re>>>13,ae=0|a[7],se=8191&ae,ce=ae>>>13,Ie=0|a[8],fe=8191&Ie,he=Ie>>>13,ge=0|a[9],ue=8191&ge,de=ge>>>13;i.negative=e.negative^t.negative,i.length=19;var le=(c+(A=Math.imul(f,J))|0)+((8191&(r=(r=Math.imul(f,Y))+Math.imul(h,J)|0))<<13)|0;c=((n=Math.imul(h,Y))+(r>>>13)|0)+(le>>>26)|0,le&=67108863,A=Math.imul(u,J),r=(r=Math.imul(u,Y))+Math.imul(d,J)|0,n=Math.imul(d,Y);var Be=(c+(A=A+Math.imul(f,L)|0)|0)+((8191&(r=(r=r+Math.imul(f,P)|0)+Math.imul(h,L)|0))<<13)|0;c=((n=n+Math.imul(h,P)|0)+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,A=Math.imul(B,J),r=(r=Math.imul(B,Y))+Math.imul(p,J)|0,n=Math.imul(p,Y),A=A+Math.imul(u,L)|0,r=(r=r+Math.imul(u,P)|0)+Math.imul(d,L)|0,n=n+Math.imul(d,P)|0;var pe=(c+(A=A+Math.imul(f,Z)|0)|0)+((8191&(r=(r=r+Math.imul(f,T)|0)+Math.imul(h,Z)|0))<<13)|0;c=((n=n+Math.imul(h,T)|0)+(r>>>13)|0)+(pe>>>26)|0,pe&=67108863,A=Math.imul(Q,J),r=(r=Math.imul(Q,Y))+Math.imul(E,J)|0,n=Math.imul(E,Y),A=A+Math.imul(B,L)|0,r=(r=r+Math.imul(B,P)|0)+Math.imul(p,L)|0,n=n+Math.imul(p,P)|0,A=A+Math.imul(u,Z)|0,r=(r=r+Math.imul(u,T)|0)+Math.imul(d,Z)|0,n=n+Math.imul(d,T)|0;var Ce=(c+(A=A+Math.imul(f,V)|0)|0)+((8191&(r=(r=r+Math.imul(f,j)|0)+Math.imul(h,V)|0))<<13)|0;c=((n=n+Math.imul(h,j)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,A=Math.imul(b,J),r=(r=Math.imul(b,Y))+Math.imul(m,J)|0,n=Math.imul(m,Y),A=A+Math.imul(Q,L)|0,r=(r=r+Math.imul(Q,P)|0)+Math.imul(E,L)|0,n=n+Math.imul(E,P)|0,A=A+Math.imul(B,Z)|0,r=(r=r+Math.imul(B,T)|0)+Math.imul(p,Z)|0,n=n+Math.imul(p,T)|0,A=A+Math.imul(u,V)|0,r=(r=r+Math.imul(u,j)|0)+Math.imul(d,V)|0,n=n+Math.imul(d,j)|0;var Qe=(c+(A=A+Math.imul(f,$)|0)|0)+((8191&(r=(r=r+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((n=n+Math.imul(h,ee)|0)+(r>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,A=Math.imul(v,J),r=(r=Math.imul(v,Y))+Math.imul(D,J)|0,n=Math.imul(D,Y),A=A+Math.imul(b,L)|0,r=(r=r+Math.imul(b,P)|0)+Math.imul(m,L)|0,n=n+Math.imul(m,P)|0,A=A+Math.imul(Q,Z)|0,r=(r=r+Math.imul(Q,T)|0)+Math.imul(E,Z)|0,n=n+Math.imul(E,T)|0,A=A+Math.imul(B,V)|0,r=(r=r+Math.imul(B,j)|0)+Math.imul(p,V)|0,n=n+Math.imul(p,j)|0,A=A+Math.imul(u,$)|0,r=(r=r+Math.imul(u,ee)|0)+Math.imul(d,$)|0,n=n+Math.imul(d,ee)|0;var Ee=(c+(A=A+Math.imul(f,ie)|0)|0)+((8191&(r=(r=r+Math.imul(f,Ae)|0)+Math.imul(h,ie)|0))<<13)|0;c=((n=n+Math.imul(h,Ae)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,A=Math.imul(F,J),r=(r=Math.imul(F,Y))+Math.imul(k,J)|0,n=Math.imul(k,Y),A=A+Math.imul(v,L)|0,r=(r=r+Math.imul(v,P)|0)+Math.imul(D,L)|0,n=n+Math.imul(D,P)|0,A=A+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,T)|0)+Math.imul(m,Z)|0,n=n+Math.imul(m,T)|0,A=A+Math.imul(Q,V)|0,r=(r=r+Math.imul(Q,j)|0)+Math.imul(E,V)|0,n=n+Math.imul(E,j)|0,A=A+Math.imul(B,$)|0,r=(r=r+Math.imul(B,ee)|0)+Math.imul(p,$)|0,n=n+Math.imul(p,ee)|0,A=A+Math.imul(u,ie)|0,r=(r=r+Math.imul(u,Ae)|0)+Math.imul(d,ie)|0,n=n+Math.imul(d,Ae)|0;var ye=(c+(A=A+Math.imul(f,ne)|0)|0)+((8191&(r=(r=r+Math.imul(f,oe)|0)+Math.imul(h,ne)|0))<<13)|0;c=((n=n+Math.imul(h,oe)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,A=Math.imul(N,J),r=(r=Math.imul(N,Y))+Math.imul(U,J)|0,n=Math.imul(U,Y),A=A+Math.imul(F,L)|0,r=(r=r+Math.imul(F,P)|0)+Math.imul(k,L)|0,n=n+Math.imul(k,P)|0,A=A+Math.imul(v,Z)|0,r=(r=r+Math.imul(v,T)|0)+Math.imul(D,Z)|0,n=n+Math.imul(D,T)|0,A=A+Math.imul(b,V)|0,r=(r=r+Math.imul(b,j)|0)+Math.imul(m,V)|0,n=n+Math.imul(m,j)|0,A=A+Math.imul(Q,$)|0,r=(r=r+Math.imul(Q,ee)|0)+Math.imul(E,$)|0,n=n+Math.imul(E,ee)|0,A=A+Math.imul(B,ie)|0,r=(r=r+Math.imul(B,Ae)|0)+Math.imul(p,ie)|0,n=n+Math.imul(p,Ae)|0,A=A+Math.imul(u,ne)|0,r=(r=r+Math.imul(u,oe)|0)+Math.imul(d,ne)|0,n=n+Math.imul(d,oe)|0;var be=(c+(A=A+Math.imul(f,se)|0)|0)+((8191&(r=(r=r+Math.imul(f,ce)|0)+Math.imul(h,se)|0))<<13)|0;c=((n=n+Math.imul(h,ce)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,A=Math.imul(H,J),r=(r=Math.imul(H,Y))+Math.imul(_,J)|0,n=Math.imul(_,Y),A=A+Math.imul(N,L)|0,r=(r=r+Math.imul(N,P)|0)+Math.imul(U,L)|0,n=n+Math.imul(U,P)|0,A=A+Math.imul(F,Z)|0,r=(r=r+Math.imul(F,T)|0)+Math.imul(k,Z)|0,n=n+Math.imul(k,T)|0,A=A+Math.imul(v,V)|0,r=(r=r+Math.imul(v,j)|0)+Math.imul(D,V)|0,n=n+Math.imul(D,j)|0,A=A+Math.imul(b,$)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(m,$)|0,n=n+Math.imul(m,ee)|0,A=A+Math.imul(Q,ie)|0,r=(r=r+Math.imul(Q,Ae)|0)+Math.imul(E,ie)|0,n=n+Math.imul(E,Ae)|0,A=A+Math.imul(B,ne)|0,r=(r=r+Math.imul(B,oe)|0)+Math.imul(p,ne)|0,n=n+Math.imul(p,oe)|0,A=A+Math.imul(u,se)|0,r=(r=r+Math.imul(u,ce)|0)+Math.imul(d,se)|0,n=n+Math.imul(d,ce)|0;var me=(c+(A=A+Math.imul(f,fe)|0)|0)+((8191&(r=(r=r+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((n=n+Math.imul(h,he)|0)+(r>>>13)|0)+(me>>>26)|0,me&=67108863,A=Math.imul(K,J),r=(r=Math.imul(K,Y))+Math.imul(q,J)|0,n=Math.imul(q,Y),A=A+Math.imul(H,L)|0,r=(r=r+Math.imul(H,P)|0)+Math.imul(_,L)|0,n=n+Math.imul(_,P)|0,A=A+Math.imul(N,Z)|0,r=(r=r+Math.imul(N,T)|0)+Math.imul(U,Z)|0,n=n+Math.imul(U,T)|0,A=A+Math.imul(F,V)|0,r=(r=r+Math.imul(F,j)|0)+Math.imul(k,V)|0,n=n+Math.imul(k,j)|0,A=A+Math.imul(v,$)|0,r=(r=r+Math.imul(v,ee)|0)+Math.imul(D,$)|0,n=n+Math.imul(D,ee)|0,A=A+Math.imul(b,ie)|0,r=(r=r+Math.imul(b,Ae)|0)+Math.imul(m,ie)|0,n=n+Math.imul(m,Ae)|0,A=A+Math.imul(Q,ne)|0,r=(r=r+Math.imul(Q,oe)|0)+Math.imul(E,ne)|0,n=n+Math.imul(E,oe)|0,A=A+Math.imul(B,se)|0,r=(r=r+Math.imul(B,ce)|0)+Math.imul(p,se)|0,n=n+Math.imul(p,ce)|0,A=A+Math.imul(u,fe)|0,r=(r=r+Math.imul(u,he)|0)+Math.imul(d,fe)|0,n=n+Math.imul(d,he)|0;var we=(c+(A=A+Math.imul(f,ue)|0)|0)+((8191&(r=(r=r+Math.imul(f,de)|0)+Math.imul(h,ue)|0))<<13)|0;c=((n=n+Math.imul(h,de)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,A=Math.imul(K,L),r=(r=Math.imul(K,P))+Math.imul(q,L)|0,n=Math.imul(q,P),A=A+Math.imul(H,Z)|0,r=(r=r+Math.imul(H,T)|0)+Math.imul(_,Z)|0,n=n+Math.imul(_,T)|0,A=A+Math.imul(N,V)|0,r=(r=r+Math.imul(N,j)|0)+Math.imul(U,V)|0,n=n+Math.imul(U,j)|0,A=A+Math.imul(F,$)|0,r=(r=r+Math.imul(F,ee)|0)+Math.imul(k,$)|0,n=n+Math.imul(k,ee)|0,A=A+Math.imul(v,ie)|0,r=(r=r+Math.imul(v,Ae)|0)+Math.imul(D,ie)|0,n=n+Math.imul(D,Ae)|0,A=A+Math.imul(b,ne)|0,r=(r=r+Math.imul(b,oe)|0)+Math.imul(m,ne)|0,n=n+Math.imul(m,oe)|0,A=A+Math.imul(Q,se)|0,r=(r=r+Math.imul(Q,ce)|0)+Math.imul(E,se)|0,n=n+Math.imul(E,ce)|0,A=A+Math.imul(B,fe)|0,r=(r=r+Math.imul(B,he)|0)+Math.imul(p,fe)|0,n=n+Math.imul(p,he)|0;var ve=(c+(A=A+Math.imul(u,ue)|0)|0)+((8191&(r=(r=r+Math.imul(u,de)|0)+Math.imul(d,ue)|0))<<13)|0;c=((n=n+Math.imul(d,de)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,A=Math.imul(K,Z),r=(r=Math.imul(K,T))+Math.imul(q,Z)|0,n=Math.imul(q,T),A=A+Math.imul(H,V)|0,r=(r=r+Math.imul(H,j)|0)+Math.imul(_,V)|0,n=n+Math.imul(_,j)|0,A=A+Math.imul(N,$)|0,r=(r=r+Math.imul(N,ee)|0)+Math.imul(U,$)|0,n=n+Math.imul(U,ee)|0,A=A+Math.imul(F,ie)|0,r=(r=r+Math.imul(F,Ae)|0)+Math.imul(k,ie)|0,n=n+Math.imul(k,Ae)|0,A=A+Math.imul(v,ne)|0,r=(r=r+Math.imul(v,oe)|0)+Math.imul(D,ne)|0,n=n+Math.imul(D,oe)|0,A=A+Math.imul(b,se)|0,r=(r=r+Math.imul(b,ce)|0)+Math.imul(m,se)|0,n=n+Math.imul(m,ce)|0,A=A+Math.imul(Q,fe)|0,r=(r=r+Math.imul(Q,he)|0)+Math.imul(E,fe)|0,n=n+Math.imul(E,he)|0;var De=(c+(A=A+Math.imul(B,ue)|0)|0)+((8191&(r=(r=r+Math.imul(B,de)|0)+Math.imul(p,ue)|0))<<13)|0;c=((n=n+Math.imul(p,de)|0)+(r>>>13)|0)+(De>>>26)|0,De&=67108863,A=Math.imul(K,V),r=(r=Math.imul(K,j))+Math.imul(q,V)|0,n=Math.imul(q,j),A=A+Math.imul(H,$)|0,r=(r=r+Math.imul(H,ee)|0)+Math.imul(_,$)|0,n=n+Math.imul(_,ee)|0,A=A+Math.imul(N,ie)|0,r=(r=r+Math.imul(N,Ae)|0)+Math.imul(U,ie)|0,n=n+Math.imul(U,Ae)|0,A=A+Math.imul(F,ne)|0,r=(r=r+Math.imul(F,oe)|0)+Math.imul(k,ne)|0,n=n+Math.imul(k,oe)|0,A=A+Math.imul(v,se)|0,r=(r=r+Math.imul(v,ce)|0)+Math.imul(D,se)|0,n=n+Math.imul(D,ce)|0,A=A+Math.imul(b,fe)|0,r=(r=r+Math.imul(b,he)|0)+Math.imul(m,fe)|0,n=n+Math.imul(m,he)|0;var Se=(c+(A=A+Math.imul(Q,ue)|0)|0)+((8191&(r=(r=r+Math.imul(Q,de)|0)+Math.imul(E,ue)|0))<<13)|0;c=((n=n+Math.imul(E,de)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,A=Math.imul(K,$),r=(r=Math.imul(K,ee))+Math.imul(q,$)|0,n=Math.imul(q,ee),A=A+Math.imul(H,ie)|0,r=(r=r+Math.imul(H,Ae)|0)+Math.imul(_,ie)|0,n=n+Math.imul(_,Ae)|0,A=A+Math.imul(N,ne)|0,r=(r=r+Math.imul(N,oe)|0)+Math.imul(U,ne)|0,n=n+Math.imul(U,oe)|0,A=A+Math.imul(F,se)|0,r=(r=r+Math.imul(F,ce)|0)+Math.imul(k,se)|0,n=n+Math.imul(k,ce)|0,A=A+Math.imul(v,fe)|0,r=(r=r+Math.imul(v,he)|0)+Math.imul(D,fe)|0,n=n+Math.imul(D,he)|0;var Fe=(c+(A=A+Math.imul(b,ue)|0)|0)+((8191&(r=(r=r+Math.imul(b,de)|0)+Math.imul(m,ue)|0))<<13)|0;c=((n=n+Math.imul(m,de)|0)+(r>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,A=Math.imul(K,ie),r=(r=Math.imul(K,Ae))+Math.imul(q,ie)|0,n=Math.imul(q,Ae),A=A+Math.imul(H,ne)|0,r=(r=r+Math.imul(H,oe)|0)+Math.imul(_,ne)|0,n=n+Math.imul(_,oe)|0,A=A+Math.imul(N,se)|0,r=(r=r+Math.imul(N,ce)|0)+Math.imul(U,se)|0,n=n+Math.imul(U,ce)|0,A=A+Math.imul(F,fe)|0,r=(r=r+Math.imul(F,he)|0)+Math.imul(k,fe)|0,n=n+Math.imul(k,he)|0;var ke=(c+(A=A+Math.imul(v,ue)|0)|0)+((8191&(r=(r=r+Math.imul(v,de)|0)+Math.imul(D,ue)|0))<<13)|0;c=((n=n+Math.imul(D,de)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,A=Math.imul(K,ne),r=(r=Math.imul(K,oe))+Math.imul(q,ne)|0,n=Math.imul(q,oe),A=A+Math.imul(H,se)|0,r=(r=r+Math.imul(H,ce)|0)+Math.imul(_,se)|0,n=n+Math.imul(_,ce)|0,A=A+Math.imul(N,fe)|0,r=(r=r+Math.imul(N,he)|0)+Math.imul(U,fe)|0,n=n+Math.imul(U,he)|0;var Me=(c+(A=A+Math.imul(F,ue)|0)|0)+((8191&(r=(r=r+Math.imul(F,de)|0)+Math.imul(k,ue)|0))<<13)|0;c=((n=n+Math.imul(k,de)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,A=Math.imul(K,se),r=(r=Math.imul(K,ce))+Math.imul(q,se)|0,n=Math.imul(q,ce),A=A+Math.imul(H,fe)|0,r=(r=r+Math.imul(H,he)|0)+Math.imul(_,fe)|0,n=n+Math.imul(_,he)|0;var Ne=(c+(A=A+Math.imul(N,ue)|0)|0)+((8191&(r=(r=r+Math.imul(N,de)|0)+Math.imul(U,ue)|0))<<13)|0;c=((n=n+Math.imul(U,de)|0)+(r>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,A=Math.imul(K,fe),r=(r=Math.imul(K,he))+Math.imul(q,fe)|0,n=Math.imul(q,he);var Ue=(c+(A=A+Math.imul(H,ue)|0)|0)+((8191&(r=(r=r+Math.imul(H,de)|0)+Math.imul(_,ue)|0))<<13)|0;c=((n=n+Math.imul(_,de)|0)+(r>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var Ge=(c+(A=Math.imul(K,ue))|0)+((8191&(r=(r=Math.imul(K,de))+Math.imul(q,ue)|0))<<13)|0;return c=((n=Math.imul(q,de))+(r>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,s[0]=le,s[1]=Be,s[2]=pe,s[3]=Ce,s[4]=Qe,s[5]=Ee,s[6]=ye,s[7]=be,s[8]=me,s[9]=we,s[10]=ve,s[11]=De,s[12]=Se,s[13]=Fe,s[14]=ke,s[15]=Me,s[16]=Ne,s[17]=Ue,s[18]=Ge,0!==c&&(s[19]=c,i.length++),i};function B(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var A=0,r=0,n=0;n>>26)|0)>>>26,o&=67108863}i.words[n]=a,A=o,o=r}return 0!==A?i.words[n]=A:i.length--,i._strip()}function p(e,t,i){return B(e,t,i)}function C(e,t){this.x=e,this.y=t}Math.imul||(l=d),n.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?l(this,e,t):i<63?d(this,e,t):i<1024?B(this,e,t):p(this,e,t)},C.prototype.makeRBT=function(e){for(var t=new Array(e),i=n.prototype._countBits(e)-1,A=0;A>=1;return A},C.prototype.permute=function(e,t,i,A,r,n){for(var o=0;o>>=1)r++;return 1<>>=13,i[2*o+1]=8191&n,n>>>=13;for(o=2*t;o>=26,i+=n/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),t?this.ineg():this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i>>r&1}return t}(e);if(0===t.length)return new n(1);for(var i=this,A=0;A=0);var t,i=e%26,r=(e-i)/26,n=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t=0),r=t?(t-t%26)/26:0;var n=e%26,o=Math.min((e-n)/26,this.length),a=67108863^67108863>>>n<o)for(this.length-=o,c=0;c=0&&(0!==I||c>=r);c--){var f=0|this.words[c];this.words[c]=I<<26-n|f>>>n,I=f&a}return s&&0!==I&&(s.words[s.length++]=I),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(e,t,i){return A(0===this.negative),this.iushrn(e,t,i)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){A("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,r=1<=0);var t=e%26,i=(e-t)/26;if(A(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var r=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},n.prototype.isubn=function(e){if(A("number"==typeof e),A(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(s/67108864|0),this.words[r+i]=67108863&n}for(;r>26,this.words[r+i]=67108863&n;if(0===a)return this._strip();for(A(-1===a),a=0,r=0;r>26,this.words[r]=67108863&n;return this.negative=1,this._strip()},n.prototype._wordDiv=function(e,t){var i=(this.length,e.length),A=this.clone(),r=e,o=0|r.words[r.length-1];0!==(i=26-this._countBits(o))&&(r=r.ushln(i),A.iushln(i),o=0|r.words[r.length-1]);var a,s=A.length-r.length;if("mod"!==t){(a=new n(null)).length=s+1,a.words=new Array(a.length);for(var c=0;c=0;f--){var h=67108864*(0|A.words[r.length+f])+(0|A.words[r.length+f-1]);for(h=Math.min(h/o|0,67108863),A._ishlnsubmul(r,h,f);0!==A.negative;)h--,A.negative=0,A._ishlnsubmul(r,1,f),A.isZero()||(A.negative^=1);a&&(a.words[f]=h)}return a&&a._strip(),A._strip(),"div"!==t&&0!==i&&A.iushrn(i),{div:a||null,mod:A}},n.prototype.divmod=function(e,t,i){return A(!e.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(r=a.div.neg()),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.iadd(e)),{div:r,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),i&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new n(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modrn(e.words[0]))}:this._wordDiv(e,t);var r,o,a},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,A=e.ushrn(1),r=e.andln(1),n=i.cmp(A);return n<0||1===r&&0===n?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},n.prototype.modrn=function(e){var t=e<0;t&&(e=-e),A(e<=67108863);for(var i=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(i*r+(0|this.words[n]))%e;return t?-r:r},n.prototype.modn=function(e){return this.modrn(e)},n.prototype.idivn=function(e){var t=e<0;t&&(e=-e),A(e<=67108863);for(var i=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*i;this.words[r]=n/e|0,i=n%e}return this._strip(),t?this.ineg():this},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){A(0===e.negative),A(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new n(1),o=new n(0),a=new n(0),s=new n(1),c=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++c;for(var I=i.clone(),f=t.clone();!t.isZero();){for(var h=0,g=1;0==(t.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(I),o.isub(f)),r.iushrn(1),o.iushrn(1);for(var u=0,d=1;0==(i.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(i.iushrn(u);u-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(I),s.isub(f)),a.iushrn(1),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(a),o.isub(s)):(i.isub(t),a.isub(r),s.isub(o))}return{a:a,b:s,gcd:i.iushln(c)}},n.prototype._invmp=function(e){A(0===e.negative),A(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r,o=new n(1),a=new n(0),s=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,I=1;0==(t.words[0]&I)&&c<26;++c,I<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var f=0,h=1;0==(i.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(i.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(i)>=0?(t.isub(i),o.isub(a)):(i.isub(t),a.isub(o))}return(r=0===t.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(e),r},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var A=0;t.isEven()&&i.isEven();A++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var r=t.cmp(i);if(r<0){var n=t;t=i,i=n}else if(0===r||0===i.cmpn(1))break;t.isub(i)}return i.iushln(A)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return 0==(1&this.words[0])},n.prototype.isOdd=function(){return 1==(1&this.words[0])},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){A("number"==typeof e);var t=e%26,i=(e-t)/26,r=1<>>26,a&=67108863,this.words[o]=a}return 0!==n&&(this.words[o]=n,this.length++),this},n.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},n.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),A(e<=67108863,"Number is too big");var r=0|this.words[0];t=r===e?0:re.length)return 1;if(this.length=0;i--){var A=0|this.words[i],r=0|e.words[i];if(A!==r){Ar&&(t=1);break}}return t},n.prototype.gtn=function(e){return 1===this.cmpn(e)},n.prototype.gt=function(e){return 1===this.cmp(e)},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return-1===this.cmpn(e)},n.prototype.lt=function(e){return-1===this.cmp(e)},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return 0===this.cmpn(e)},n.prototype.eq=function(e){return 0===this.cmp(e)},n.red=function(e){return new v(e)},n.prototype.toRed=function(e){return A(!this.red,"Already a number in reduction context"),A(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return A(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return A(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return A(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return A(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return A(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return A(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return A(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return A(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return A(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return A(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return A(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return A(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return A(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return A(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return A(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var Q={k256:null,p224:null,p192:null,p25519:null};function E(e,t){this.name=e,this.p=new n(t,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function m(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(e){if("string"==typeof e){var t=n._prime(e);this.m=t.p,this.prime=t}else A(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function D(e){v.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}E.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},E.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var A=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},E.prototype.split=function(e,t){e.iushrn(this.n,0,t)},E.prototype.imulK=function(e){return e.imul(this.k)},r(y,E),y.prototype.split=function(e,t){for(var i=4194303,A=Math.min(e.length,9),r=0;r>>22,n=o}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=r,t=A}return 0!==t&&(e.words[e.length++]=t),e},n._prime=function(e){if(Q[e])return Q[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new b;else if("p192"===e)t=new m;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return Q[e]=t,t},v.prototype._verify1=function(e){A(0===e.negative,"red works only with positives"),A(e.red,"red works only with red numbers")},v.prototype._verify2=function(e,t){A(0==(e.negative|t.negative),"red works only with positives"),A(e.red&&e.red===t.red,"red works only with red numbers")},v.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(I(e,e.umod(this.m)._forceRed(this)),e)},v.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},v.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},v.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},v.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},v.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},v.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},v.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},v.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},v.prototype.isqr=function(e){return this.imul(e,e.clone())},v.prototype.sqr=function(e){return this.mul(e,e)},v.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(A(t%2==1),3===t){var i=this.m.add(new n(1)).iushrn(2);return this.pow(e,i)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);A(!r.isZero());var a=new n(1).toRed(this),s=a.redNeg(),c=this.m.subn(1).iushrn(1),I=this.m.bitLength();for(I=new n(2*I*I).toRed(this);0!==this.pow(I,c).cmp(s);)I.redIAdd(s);for(var f=this.pow(I,r),h=this.pow(e,r.addn(1).iushrn(1)),g=this.pow(e,r),u=o;0!==g.cmp(a);){for(var d=g,l=0;0!==d.cmp(a);l++)d=d.redSqr();A(l=0;A--){for(var c=t.words[A],I=s-1;I>=0;I--){var f=c>>I&1;r!==i[0]&&(r=this.sqr(r)),0!==f||0!==o?(o<<=1,o|=f,(4===++a||0===A&&0===I)&&(r=this.mul(r,i[o]),a=0,o=0)):a=0}s=26}return r},v.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},v.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},n.mont=function(e){return new D(e)},r(D,v),D.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},D.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},D.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),A=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(A).iushrn(this.shift),n=r;return r.cmp(this.m)>=0?n=r.isub(this.m):r.cmpn(0)<0&&(n=r.iadd(this.m)),n._forceRed(this)},D.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new n(0)._forceRed(this);var i=e.mul(t),A=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=i.isub(A).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},D.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:50}],73:[function(e,t,i){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":74}],74:[function(e,t,i){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],75:[function(e,t,i){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],76:[function(e,t,i){var A=e("safe-buffer").Buffer,r=e("create-hash"),n=e("readable-stream"),o=e("inherits"),a=e("./sign"),s=e("./verify"),c=e("./algorithms.json");function I(e){n.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){n.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new I(e)}function g(e){return new f(e)}Object.keys(c).forEach((function(e){c[e].id=A.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),o(I,n.Writable),I.prototype._write=function(e,t,i){this._hash.update(e),i()},I.prototype.update=function(e,t){return"string"==typeof e&&(e=A.from(e,t)),this._hash.update(e),this},I.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),A=a(i,e,this._hashType,this._signType,this._tag);return t?A.toString(t):A},o(f,n.Writable),f.prototype._write=function(e,t,i){this._hash.update(e),i()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=A.from(e,t)),this._hash.update(e),this},f.prototype.verify=function(e,t,i){"string"==typeof t&&(t=A.from(t,i)),this.end();var r=this._hash.digest();return s(t,r,e,this._signType,this._tag)},t.exports={Sign:h,Verify:g,createSign:h,createVerify:g}},{"./algorithms.json":74,"./sign":77,"./verify":78,"create-hash":102,inherits:169,"readable-stream":94,"safe-buffer":198}],77:[function(e,t,i){var A=e("safe-buffer").Buffer,r=e("create-hmac"),n=e("browserify-rsa"),o=e("elliptic").ec,a=e("bn.js"),s=e("parse-asn1"),c=e("./curves.json");function I(e,t,i,n){if((e=A.from(e.toArray())).length0&&i.ishrn(A),i}function h(e,t,i){var n,o;do{for(n=A.alloc(0);8*n.length=t)throw new Error("invalid sig")}t.exports=function(e,t,i,c,I){var f=o(i);if("ec"===f.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,i){var A=a[i.data.algorithm.curve.join(".")];if(!A)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var r=new n(A),o=i.data.subjectPrivateKey.data;return r.verify(t,e,o)}(e,t,f)}if("dsa"===f.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,i){var A=i.data.p,n=i.data.q,a=i.data.g,c=i.data.pub_key,I=o.signature.decode(e,"der"),f=I.s,h=I.r;s(f,n),s(h,n);var g=r.mont(A),u=f.invm(n),d=a.toRed(g).redPow(new r(t).mul(u).mod(n)).fromRed().mul(c.toRed(g).redPow(h.mul(u).mod(n)).fromRed()).mod(A).mod(n);return 0===d.cmp(h)}(e,t,f)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=A.concat([I,t]);for(var h=f.modulus.byteLength(),g=[1],u=0;t.length+g.length+22?"one of ".concat(t," ").concat(e.slice(0,i-1).join(", "),", or ")+e[i-1]:2===i?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,i){var A,r,o,a;if("string"==typeof t&&(r="not ",t.substr(!o||o<0?0:+o,r.length)===r)?(A="must not be",t=t.replace(/^not /,"")):A="must be",function(e,t,i){return(void 0===i||i>e.length)&&(i=e.length),e.substring(i-t.length,i)===t}(e," argument"))a="The ".concat(e," ").concat(A," ").concat(n(t,"type"));else{var s=function(e,t,i){return"number"!=typeof i&&(i=0),!(i+t.length>e.length)&&-1!==e.indexOf(t,i)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(A," ").concat(n(t,"type"))}return a+=". Received type ".concat(typeof i)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=A},{}],81:[function(e,t,i){(function(i){(function(){"use strict";var A=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};t.exports=c;var r=e("./_stream_readable"),n=e("./_stream_writable");e("inherits")(c,r);for(var o=A(n.prototype),a=0;a0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),A)o.endEmitted?y(e,new E):D(e,o,t,!0);else if(o.ended)y(e,new C);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!i?(t=o.decoder.write(t),o.objectMode||0!==t.length?D(e,o,t,!1):N(e,o)):D(e,o,t,!1)}else A||(o.reading=!1,N(e,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(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 k(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(M,e))}function M(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function N(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function H(e){c("readable nexttick read 0"),e.read(0)}function _(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function K(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.first():t.buffer.concat(t.length),t.buffer.clear()):i=t.buffer.consume(e,t.decoder),i);var i}function q(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(x,t,e))}function x(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var i=t._writableState;(!i||i.autoDestroy&&i.finished)&&t.destroy()}}function J(e,t){for(var i=0,A=e.length;i=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?q(this):k(this),null;if(0===(e=F(e,t))&&t.ended)return 0===t.length&&q(this),null;var A,r=t.needReadable;return c("need readable",r),(0===t.length||t.length-e0?K(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&q(this)),null!==A&&this.emit("data",A),A},w.prototype._read=function(e){y(this,new Q("_read()"))},w.prototype.pipe=function(e,t){var A=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,c("pipe count=%d opts=%j",r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?s:l;function a(t,i){c("onunpipe"),t===A&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,c("cleanup"),e.removeListener("close",u),e.removeListener("finish",d),e.removeListener("drain",I),e.removeListener("error",g),e.removeListener("unpipe",a),A.removeListener("end",s),A.removeListener("end",l),A.removeListener("data",h),f=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||I())}function s(){c("onend"),e.end()}r.endEmitted?i.nextTick(o):A.once("end",o),e.on("unpipe",a);var I=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&n(e,"data")&&(t.flowing=!0,R(e))}}(A);e.on("drain",I);var f=!1;function h(t){c("ondata");var i=e.write(t);c("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==J(r.pipes,e))&&!f&&(c("false write response, pause",r.awaitDrain),r.awaitDrain++),A.pause())}function g(t){c("onerror",t),l(),e.removeListener("error",g),0===n(e,"error")&&y(e,t)}function u(){e.removeListener("finish",d),l()}function d(){c("onfinish"),e.removeListener("close",u),l()}function l(){c("unpipe"),A.unpipe(e)}return A.on("data",h),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",g),e.once("close",u),e.once("finish",d),e.emit("pipe",A),r.flowing||(c("pipe resume"),A.resume()),e},w.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 A=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var n=0;n0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,c("on readable",r.length,r.reading),r.length?k(this):r.reading||i.nextTick(H,this))),A},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(e,t){var A=o.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(G,this),A},w.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(G,this),t},w.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(_,e,t))}(this,e)),e.paused=!1,this},w.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(e){var t=this,i=this._readableState,A=!1;for(var r in e.on("end",(function(){if(c("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){(c("wrapped data"),i.decoder&&(r=i.decoder.write(r)),i.objectMode&&null==r)||(i.objectMode||r&&r.length)&&(t.push(r)||(A=!0,e.pause()))})),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var n=0;n-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,i){i(new d("_write()"))},w.prototype._writev=null,w.prototype.end=function(e,t,A){var r=this._writableState;return"function"==typeof e?(A=e,e=null,t=null):"function"==typeof t&&(A=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,A){t.ending=!0,M(e,t),A&&(t.finished?i.nextTick(A):e.once("finish",A));t.ended=!0,e.writable=!1}(this,r,A),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=f.destroy,w.prototype._undestroy=f.undestroy,w.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":80,"./_stream_duplex":81,"./internal/streams/destroy":88,"./internal/streams/state":92,"./internal/streams/stream":93,_process:187,buffer:99,inherits:169,"util-deprecate":226}],86:[function(e,t,i){(function(i){(function(){"use strict";var A;function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var n=e("./end-of-stream"),o=Symbol("lastResolve"),a=Symbol("lastReject"),s=Symbol("error"),c=Symbol("ended"),I=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function g(e,t){return{value:e,done:t}}function u(e){var t=e[o];if(null!==t){var i=e[h].read();null!==i&&(e[I]=null,e[o]=null,e[a]=null,t(g(i,!1)))}}function d(e){i.nextTick(u,e)}var l=Object.getPrototypeOf((function(){})),B=Object.setPrototypeOf((r(A={get stream(){return this[h]},next:function(){var e=this,t=this[s];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(g(void 0,!0));if(this[h].destroyed)return new Promise((function(t,A){i.nextTick((function(){e[s]?A(e[s]):t(g(void 0,!0))}))}));var A,r=this[I];if(r)A=new Promise(function(e,t){return function(i,A){e.then((function(){t[c]?i(g(void 0,!0)):t[f](i,A)}),A)}}(r,this));else{var n=this[h].read();if(null!==n)return Promise.resolve(g(n,!1));A=new Promise(this[f])}return this[I]=A,A}},Symbol.asyncIterator,(function(){return this})),r(A,"return",(function(){var e=this;return new Promise((function(t,i){e[h].destroy(null,(function(e){e?i(e):t(g(void 0,!0))}))}))})),A),l);t.exports=function(e){var t,i=Object.create(B,(r(t={},h,{value:e,writable:!0}),r(t,o,{value:null,writable:!0}),r(t,a,{value:null,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var A=i[h].read();A?(i[I]=null,i[o]=null,i[a]=null,e(g(A,!1))):(i[o]=e,i[a]=t)},writable:!0}),t));return i[I]=null,n(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=i[a];return null!==t&&(i[I]=null,i[o]=null,i[a]=null,t(e)),void(i[s]=e)}var A=i[o];null!==A&&(i[I]=null,i[o]=null,i[a]=null,A(g(void 0,!0))),i[c]=!0})),e.on("readable",d.bind(null,i)),i}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":89,_process:187}],87:[function(e,t,i){"use strict";function A(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(e);t&&(A=A.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,A)}return i}function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function n(e,t){for(var i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,i,A,r=o.allocUnsafe(e>>>0),n=this.head,a=0;n;)t=n.data,i=r,A=a,o.prototype.copy.call(t,i,A),a+=n.data.length,n=n.next;return r}},{key:"consume",value:function(e,t){var i;return er.length?r.length:e;if(n===r.length?A+=r:A+=r.slice(0,e),0==(e-=n)){n===r.length?(++i,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(n));break}++i}return this.length-=i,A}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),i=this.head,A=1;for(i.data.copy(t),e-=i.data.length;i=i.next;){var r=i.data,n=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,n),0==(e-=n)){n===r.length?(++A,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=r.slice(n));break}++A}return this.length-=A,t}},{key:s,value:function(e,t){return a(this,function(e){for(var t=1;t0,(function(e){A||(A=e),e&&o.forEach(c),n||(o.forEach(c),r(A))}))}));return t.reduce(I)}},{"../../../errors":80,"./end-of-stream":89}],92:[function(e,t,i){"use strict";var A=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,i,r){var n=function(e,t,i){return null!=e.highWaterMark?e.highWaterMark:t?e[i]:null}(t,r,i);if(null!=n){if(!isFinite(n)||Math.floor(n)!==n||n<0)throw new A(r?i:"highWaterMark",n);return Math.floor(n)}return e.objectMode?16:16384}}},{"../../../errors":80}],93:[function(e,t,i){t.exports=e("events").EventEmitter},{events:134}],94:[function(e,t,i){(i=t.exports=e("./lib/_stream_readable.js")).Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js"),i.finished=e("./lib/internal/streams/end-of-stream.js"),i.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":81,"./lib/_stream_passthrough.js":82,"./lib/_stream_readable.js":83,"./lib/_stream_transform.js":84,"./lib/_stream_writable.js":85,"./lib/internal/streams/end-of-stream.js":89,"./lib/internal/streams/pipeline.js":91}],95:[function(e,t,i){"use strict";var A=e("safe-buffer").Buffer,r=A.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(A.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=I,this.end=f,t=3;break;default:return this.write=h,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=A.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,i=function(e,t,i){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var A=i.charCodeAt(i.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function I(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function g(e){return e&&e.length?this.write(e):""}i.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i=0)return r>0&&(e.lastNeed=r-1),r;if(--A=0)return r>0&&(e.lastNeed=r-2),r;if(--A=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var A=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,A),e.toString("utf8",t,A)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":198}],96:[function(e,t,i){arguments[4][50][0].apply(i,arguments)},{dup:50}],97:[function(e,t,i){arguments[4][95][0].apply(i,arguments)},{dup:95,"safe-buffer":198}],98:[function(e,t,i){(function(e){(function(){t.exports=function(t,i){for(var A=Math.min(t.length,i.length),r=new e(A),n=0;n * @license MIT */ -"use strict";var t=e("base64-js"),A=e("ieee754");i.Buffer=o,i.SlowBuffer=function(e){+e!=e&&(e=0);return o.alloc(+e)},i.INSPECT_MAX_BYTES=50;var r=2147483647;function n(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=o.prototype,t}function o(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,i)}function a(e,t,i){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var i=0|h(e,t),A=n(i),r=A.write(e,t);r!==i&&(A=A.slice(0,r));return A}(e,t);if(ArrayBuffer.isView(e))return I(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(x(e,ArrayBuffer)||e&&x(e.buffer,ArrayBuffer))return function(e,t,i){if(t<0||e.byteLength=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function h(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||x(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,A=arguments.length>2&&!0===arguments[2];if(!A&&0===i)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return K(e).length;default:if(r)return A?-1:R(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,i){var A=!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 S(this,t,i);case"utf8":case"utf-8":return m(this,t,i);case"ascii":return v(this,t,i);case"latin1":case"binary":return D(this,t,i);case"base64":return b(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,i);default:if(A)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),A=!0}}function u(e,t,i){var A=e[t];e[t]=e[i],e[i]=A}function d(e,t,i,A,r){if(0===e.length)return-1;if("string"==typeof i?(A=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),J(i=+i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=o.from(t,A)),o.isBuffer(t))return 0===t.length?-1:l(e,t,i,A,r);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):l(e,[t],i,A,r);throw new TypeError("val must be string, number or Buffer")}function l(e,t,i,A,r){var n,o=1,a=e.length,s=t.length;if(void 0!==A&&("ucs2"===(A=String(A).toLowerCase())||"ucs-2"===A||"utf16le"===A||"utf-16le"===A)){if(e.length<2||t.length<2)return-1;o=2,a/=2,s/=2,i/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var I=-1;for(n=i;na&&(i=a-s),n=i;n>=0;n--){for(var f=!0,h=0;hr&&(A=r):A=r;var n=t.length;A>n/2&&(A=n/2);for(var o=0;o>8,r=i%256,n.push(r),n.push(A);return n}(t,e.length-i),e,i,A)}function b(e,i,A){return 0===i&&A===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(i,A))}function m(e,t,i){i=Math.min(e.length,i);for(var A=[],r=t;r239?4:c>223?3:c>191?2:1;if(r+f<=i)switch(f){case 1:c<128&&(I=c);break;case 2:128==(192&(n=e[r+1]))&&(s=(31&c)<<6|63&n)>127&&(I=s);break;case 3:n=e[r+1],o=e[r+2],128==(192&n)&&128==(192&o)&&(s=(15&c)<<12|(63&n)<<6|63&o)>2047&&(s<55296||s>57343)&&(I=s);break;case 4:n=e[r+1],o=e[r+2],a=e[r+3],128==(192&n)&&128==(192&o)&&128==(192&a)&&(s=(15&c)<<18|(63&n)<<12|(63&o)<<6|63&a)>65535&&s<1114112&&(I=s)}null===I?(I=65533,f=1):I>65535&&(I-=65536,A.push(I>>>10&1023|55296),I=56320|1023&I),A.push(I),r+=f}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var i="",A=0;for(;At&&(e+=" ... "),""},o.prototype.compare=function(e,t,i,A,r){if(x(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===A&&(A=0),void 0===r&&(r=this.length),t<0||i>e.length||A<0||r>this.length)throw new RangeError("out of range index");if(A>=r&&t>=i)return 0;if(A>=r)return-1;if(t>=i)return 1;if(this===e)return 0;for(var n=(r>>>=0)-(A>>>=0),a=(i>>>=0)-(t>>>=0),s=Math.min(n,a),c=this.slice(A,r),I=e.slice(t,i),f=0;f>>=0,isFinite(i)?(i>>>=0,void 0===A&&(A="utf8")):(A=i,i=void 0)}var r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");for(var n=!1;;)switch(A){case"hex":return B(this,e,t,i);case"utf8":case"utf-8":return p(this,e,t,i);case"ascii":return C(this,e,t,i);case"latin1":case"binary":return Q(this,e,t,i);case"base64":return E(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,e,t,i);default:if(n)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),n=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function v(e,t,i){var A="";i=Math.min(e.length,i);for(var r=t;rA)&&(i=A);for(var r="",n=t;ni)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,i,A,r,n){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function N(e,t,i,A,r,n){if(i+A>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function U(e,t,i,r,n){return t=+t,i>>>=0,n||N(e,0,i,4),A.write(e,t,i,r,23,4),i+4}function G(e,t,i,r,n){return t=+t,i>>>=0,n||N(e,0,i,8),A.write(e,t,i,r,52,8),i+8}o.prototype.slice=function(e,t){var i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t>>=0,t>>>=0,i||k(e,t,this.length);for(var A=this[e],r=1,n=0;++n>>=0,t>>>=0,i||k(e,t,this.length);for(var A=this[e+--t],r=1;t>0&&(r*=256);)A+=this[e+--t]*r;return A},o.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||k(e,t,this.length);for(var A=this[e],r=1,n=0;++n=(r*=128)&&(A-=Math.pow(2,8*t)),A},o.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||k(e,t,this.length);for(var A=t,r=1,n=this[e+--A];A>0&&(r*=256);)n+=this[e+--A]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),A.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),A.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),A.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),A.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,i,A){(e=+e,t>>>=0,i>>>=0,A)||M(this,e,t,i,Math.pow(2,8*i)-1,0);var r=1,n=0;for(this[t]=255&e;++n>>=0,i>>>=0,A)||M(this,e,t,i,Math.pow(2,8*i)-1,0);var r=i-1,n=1;for(this[t+r]=255&e;--r>=0&&(n*=256);)this[t+r]=e/n&255;return t+i},o.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,i,A){if(e=+e,t>>>=0,!A){var r=Math.pow(2,8*i-1);M(this,e,t,i,r-1,-r)}var n=0,o=1,a=0;for(this[t]=255&e;++n>0)-a&255;return t+i},o.prototype.writeIntBE=function(e,t,i,A){if(e=+e,t>>>=0,!A){var r=Math.pow(2,8*i-1);M(this,e,t,i,r-1,-r)}var n=i-1,o=1,a=0;for(this[t+n]=255&e;--n>=0&&(o*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/o>>0)-a&255;return t+i},o.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,i){return U(this,e,t,!0,i)},o.prototype.writeFloatBE=function(e,t,i){return U(this,e,t,!1,i)},o.prototype.writeDoubleLE=function(e,t,i){return G(this,e,t,!0,i)},o.prototype.writeDoubleBE=function(e,t,i){return G(this,e,t,!1,i)},o.prototype.copy=function(e,t,i,A){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),A||0===A||(A=this.length),t>=e.length&&(t=e.length),t||(t=0),A>0&&A=this.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),e.length-t=0;--n)e[n+t]=this[n+i];else Uint8Array.prototype.set.call(e,this.subarray(i,A),t);return r},o.prototype.fill=function(e,t,i,A){if("string"==typeof e){if("string"==typeof t?(A=t,t=0,i=this.length):"string"==typeof i&&(A=i,i=this.length),void 0!==A&&"string"!=typeof A)throw new TypeError("encoding must be a string");if("string"==typeof A&&!o.isEncoding(A))throw new TypeError("Unknown encoding: "+A);if(1===e.length){var r=e.charCodeAt(0);("utf8"===A&&r<128||"latin1"===A)&&(e=r)}}else"number"==typeof e&&(e&=255);if(t<0||this.length>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(n=t;n55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(o+1===A){(t-=3)>-1&&n.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&n.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&n.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;n.push(i)}else if(i<2048){if((t-=2)<0)break;n.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;n.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;n.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return n}function K(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,i,A){for(var r=0;r=t.length||r>=e.length);++r)t[r+i]=e[r];return r}function x(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":46,buffer:99,ieee754:168}],100:[function(e,t,i){var A=e("safe-buffer").Buffer,r=e("stream").Transform,n=e("string_decoder").StringDecoder;function o(e){r.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}e("inherits")(o,r),o.prototype.update=function(e,t,i){"string"==typeof e&&(e=A.from(e,t));var r=this._update(e);return this.hashMode?this:(i&&(r=this._toString(r,i)),r)},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 A;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){A=e}finally{i(A)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||A.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,i){if(this._decoder||(this._decoder=new n(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var A=this._decoder.write(e);return i&&(A+=this._decoder.end()),A},t.exports=o},{inherits:169,"safe-buffer":198,stream:209,string_decoder:97}],101:[function(e,t,i){(function(i){(function(){var A=e("elliptic"),r=e("bn.js");t.exports=function(e){return new o(e)};var n={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=n[e],this.curveType||(this.curveType={name:e}),this.curve=new A.ec(this.curveType.name),this.keys=void 0}function a(e,t,A){Array.isArray(e)||(e=e.toArray());var r=new i(e);if(A&&r.lengthi)?t=("rmd160"===e?new s:c(e)).update(t).digest():t.lengtha?t=e(t):t.length0;A--)t+=this._buffer(e,t),i+=this._flushBuffer(r,i);return t+=this._buffer(e,t),r},r.prototype.final=function(e){var t,i;return e&&(t=this.update(e)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(i):i},r.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];i=n.r28shl(i,a),r=n.r28shl(r,a),n.pc2(i,r,e.keys,o)}},s.prototype._update=function(e,t,i,A){var r=this._desState,o=n.readUInt32BE(e,t),a=n.readUInt32BE(e,t+4);n.ip(o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],"encrypt"===this.type?this._encrypt(r,o,a,r.tmp,0):this._decrypt(r,o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],n.writeUInt32BE(i,o,A),n.writeUInt32BE(i,a,A+4)},s.prototype._pad=function(e,t){for(var i=e.length-t,A=t;A>>0,o=h}n.rip(a,o,A,r)},s.prototype._decrypt=function(e,t,i,A,r){for(var o=i,a=t,s=e.keys.length-2;s>=0;s-=2){var c=e.keys[s],I=e.keys[s+1];n.expand(o,e.tmp,0),c^=e.tmp[0],I^=e.tmp[1];var f=n.substitute(c,I),h=o;o=(a^n.permute(f))>>>0,a=h}n.rip(o,a,A,r)}},{"./cipher":110,"./utils":113,inherits:169,"minimalistic-assert":174}],112:[function(e,t,i){"use strict";var A=e("minimalistic-assert"),r=e("inherits"),n=e("./cipher"),o=e("./des");function a(e,t){A.equal(t.length,24,"Invalid key length");var i=t.slice(0,8),r=t.slice(8,16),n=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:r}),o.create({type:"encrypt",key:n})]:[o.create({type:"decrypt",key:n}),o.create({type:"encrypt",key:r}),o.create({type:"decrypt",key:i})]}function s(e){n.call(this,e);var t=new a(this.type,this.options.key);this._edeState=t}r(s,n),t.exports=s,s.create=function(e){return new s(e)},s.prototype._update=function(e,t,i,A){var r=this._edeState;r.ciphers[0]._update(e,t,i,A),r.ciphers[1]._update(i,A,i,A),r.ciphers[2]._update(i,A,i,A)},s.prototype._pad=o.prototype._pad,s.prototype._unpad=o.prototype._unpad},{"./cipher":110,"./des":111,inherits:169,"minimalistic-assert":174}],113:[function(e,t,i){"use strict";i.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},i.writeUInt32BE=function(e,t,i){e[0+i]=t>>>24,e[1+i]=t>>>16&255,e[2+i]=t>>>8&255,e[3+i]=255&t},i.ip=function(e,t,i,A){for(var r=0,n=0,o=6;o>=0;o-=2){for(var a=0;a<=24;a+=8)r<<=1,r|=t>>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=e>>>a+o&1}for(o=6;o>=0;o-=2){for(a=1;a<=25;a+=8)n<<=1,n|=t>>>a+o&1;for(a=1;a<=25;a+=8)n<<=1,n|=e>>>a+o&1}i[A+0]=r>>>0,i[A+1]=n>>>0},i.rip=function(e,t,i,A){for(var r=0,n=0,o=0;o<4;o++)for(var a=24;a>=0;a-=8)r<<=1,r|=t>>>a+o&1,r<<=1,r|=e>>>a+o&1;for(o=4;o<8;o++)for(a=24;a>=0;a-=8)n<<=1,n|=t>>>a+o&1,n<<=1,n|=e>>>a+o&1;i[A+0]=r>>>0,i[A+1]=n>>>0},i.pc1=function(e,t,i,A){for(var r=0,n=0,o=7;o>=5;o--){for(var a=0;a<=24;a+=8)r<<=1,r|=t>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=e>>a+o&1}for(a=0;a<=24;a+=8)r<<=1,r|=t>>a+o&1;for(o=1;o<=3;o++){for(a=0;a<=24;a+=8)n<<=1,n|=t>>a+o&1;for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+o&1}for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+o&1;i[A+0]=r>>>0,i[A+1]=n>>>0},i.r28shl=function(e,t){return e<>>28-t};var A=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];i.pc2=function(e,t,i,r){for(var n=0,o=0,a=A.length>>>1,s=0;s>>A[s]&1;for(s=a;s>>A[s]&1;i[r+0]=n>>>0,i[r+1]=o>>>0},i.expand=function(e,t,i){var A=0,r=0;A=(1&e)<<5|e>>>27;for(var n=23;n>=15;n-=4)A<<=6,A|=e>>>n&63;for(n=11;n>=3;n-=4)r|=e>>>n&63,r<<=6;r|=(31&e)<<1|e>>>31,t[i+0]=A>>>0,t[i+1]=r>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];i.substitute=function(e,t){for(var i=0,A=0;A<4;A++){i<<=4,i|=r[64*A+(e>>>18-6*A&63)]}for(A=0;A<4;A++){i<<=4,i|=r[256+64*A+(t>>>18-6*A&63)]}return i>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];i.permute=function(e){for(var t=0,i=0;i>>n[i]&1;return t>>>0},i.padSplit=function(e,t,i){for(var A=e.toString(2);A.lengthe;)i.ishrn(1);if(i.isEven()&&i.iadd(a),i.testn(1)||i.iadd(s),t.cmp(s)){if(!t.cmp(c))for(;i.mod(I).cmp(f);)i.iadd(g)}else for(;i.mod(n).cmp(h);)i.iadd(g);if(l(u=i.shrn(1))&&l(i)&&B(u)&&B(i)&&o.test(u)&&o.test(i))return i}}},{"bn.js":47,"miller-rabin":173,randombytes:195}],117:[function(e,t,i){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],118:[function(e,t,i){"use strict";var A=i;A.version=e("../package.json").version,A.utils=e("./elliptic/utils"),A.rand=e("brorand"),A.curve=e("./elliptic/curve"),A.curves=e("./elliptic/curves"),A.ec=e("./elliptic/ec"),A.eddsa=e("./elliptic/eddsa")},{"../package.json":133,"./elliptic/curve":121,"./elliptic/curves":124,"./elliptic/ec":125,"./elliptic/eddsa":128,"./elliptic/utils":132,brorand:48}],119:[function(e,t,i){"use strict";var A=e("bn.js"),r=e("../utils"),n=r.getNAF,o=r.getJSF,a=r.assert;function s(e,t){this.type=e,this.p=new A(t.p,16),this.red=t.prime?A.red(t.prime):A.mont(this.p),this.zero=new A(0).toRed(this.red),this.one=new A(1).toRed(this.red),this.two=new A(2).toRed(this.red),this.n=t.n&&new A(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(e,t){a(e.precomputed);var i=e._getDoubles(),A=n(t,1,this._bitLength),r=(1<=o;I--)s=(s<<1)+A[I];c.push(s)}for(var f=this.jpoint(null,null,null),h=this.jpoint(null,null,null),g=r;g>0;g--){for(o=0;o=0;c--){for(var I=0;c>=0&&0===o[c];c--)I++;if(c>=0&&I++,s=s.dblp(I),c<0)break;var f=o[c];a(0!==f),s="affine"===e.type?f>0?s.mixedAdd(r[f-1>>1]):s.mixedAdd(r[-f-1>>1].neg()):f>0?s.add(r[f-1>>1]):s.add(r[-f-1>>1].neg())}return"affine"===e.type?s.toP():s},s.prototype._wnafMulAdd=function(e,t,i,A,r){var a,s,c,I=this._wnafT1,f=this._wnafT2,h=this._wnafT3,g=0;for(a=0;a=1;a-=2){var d=a-1,l=a;if(1===I[d]&&1===I[l]){var B=[t[d],null,null,t[l]];0===t[d].y.cmp(t[l].y)?(B[1]=t[d].add(t[l]),B[2]=t[d].toJ().mixedAdd(t[l].neg())):0===t[d].y.cmp(t[l].y.redNeg())?(B[1]=t[d].toJ().mixedAdd(t[l]),B[2]=t[d].add(t[l].neg())):(B[1]=t[d].toJ().mixedAdd(t[l]),B[2]=t[d].toJ().mixedAdd(t[l].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],C=o(i[d],i[l]);for(g=Math.max(C[0].length,g),h[d]=new Array(g),h[l]=new Array(g),s=0;s=0;a--){for(var m=0;a>=0;){var w=!0;for(s=0;s=0&&m++,y=y.dblp(m),a<0)break;for(s=0;s0?c=f[s][v-1>>1]:v<0&&(c=f[s][-v-1>>1].neg()),y="affine"===c.type?y.mixedAdd(c):y.add(c))}}for(a=0;a=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],A=this,r=0;r":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var A=this.curve._mulA(e),r=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),n=A.redAdd(t),o=n.redSub(i),a=A.redSub(t),s=r.redMul(o),c=n.redMul(a),I=r.redMul(a),f=o.redMul(n);return this.curve.point(s,c,f,I)},c.prototype._projDbl=function(){var e,t,i,A,r,n,o=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),s=this.y.redSqr();if(this.curve.twisted){var c=(A=this.curve._mulA(a)).redAdd(s);this.zOne?(e=o.redSub(a).redSub(s).redMul(c.redSub(this.curve.two)),t=c.redMul(A.redSub(s)),i=c.redSqr().redSub(c).redSub(c)):(r=this.z.redSqr(),n=c.redSub(r).redISub(r),e=o.redSub(a).redISub(s).redMul(n),t=c.redMul(A.redSub(s)),i=c.redMul(n))}else A=a.redAdd(s),r=this.curve._mulC(this.z).redSqr(),n=A.redSub(r).redSub(r),e=this.curve._mulC(o.redISub(A)).redMul(n),t=this.curve._mulC(A).redMul(a.redISub(s)),i=A.redMul(n);return this.curve.point(e,t,i)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),i=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),A=this.t.redMul(this.curve.dd).redMul(e.t),r=this.z.redMul(e.z.redAdd(e.z)),n=i.redSub(t),o=r.redSub(A),a=r.redAdd(A),s=i.redAdd(t),c=n.redMul(o),I=a.redMul(s),f=n.redMul(s),h=o.redMul(a);return this.curve.point(c,I,h,f)},c.prototype._projAdd=function(e){var t,i,A=this.z.redMul(e.z),r=A.redSqr(),n=this.x.redMul(e.x),o=this.y.redMul(e.y),a=this.curve.d.redMul(n).redMul(o),s=r.redSub(a),c=r.redAdd(a),I=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(n).redISub(o),f=A.redMul(s).redMul(I);return this.curve.twisted?(t=A.redMul(c).redMul(o.redSub(this.curve._mulA(n))),i=s.redMul(c)):(t=A.redMul(c).redMul(o.redSub(n)),i=this.curve._mulC(s).redMul(c)),this.curve.point(f,t,i)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!1)},c.prototype.jmulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var i=e.clone(),A=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(A),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":132,"./base":119,"bn.js":47,inherits:169}],121:[function(e,t,i){"use strict";var A=i;A.base=e("./base"),A.short=e("./short"),A.mont=e("./mont"),A.edwards=e("./edwards")},{"./base":119,"./edwards":120,"./mont":122,"./short":123}],122:[function(e,t,i){"use strict";var A=e("bn.js"),r=e("inherits"),n=e("./base"),o=e("../utils");function a(e){n.call(this,"mont",e),this.a=new A(e.a,16).toRed(this.red),this.b=new A(e.b,16).toRed(this.red),this.i4=new A(4).toRed(this.red).redInvm(),this.two=new A(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(e,t,i){n.BasePoint.call(this,e,"projective"),null===t&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new A(t,16),this.z=new A(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(a,n),t.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,i=t.redSqr(),A=i.redMul(t).redAdd(i.redMul(this.a)).redAdd(t);return 0===A.redSqrt().redSqr().cmp(A)},r(s,n.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},a.prototype.point=function(e,t){return new s(this,e,t)},a.prototype.pointFromJSON=function(e){return s.fromJSON(this,e)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(e,t){return new s(e,t[0],t[1]||e.one)},s.prototype.inspect=function(){return this.isInfinity()?"":""},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),i=e.redSub(t),A=e.redMul(t),r=i.redMul(t.redAdd(this.curve.a24.redMul(i)));return this.curve.point(A,r)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(e,t){var i=this.x.redAdd(this.z),A=this.x.redSub(this.z),r=e.x.redAdd(e.z),n=e.x.redSub(e.z).redMul(i),o=r.redMul(A),a=t.z.redMul(n.redAdd(o).redSqr()),s=t.x.redMul(n.redISub(o).redSqr());return this.curve.point(a,s)},s.prototype.mul=function(e){for(var t=e.clone(),i=this,A=this.curve.point(null,null),r=[];0!==t.cmpn(0);t.iushrn(1))r.push(t.andln(1));for(var n=r.length-1;n>=0;n--)0===r[n]?(i=i.diffAdd(A,this),A=A.dbl()):(A=i.diffAdd(A,this),i=i.dbl());return A},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":132,"./base":119,"bn.js":47,inherits:169}],123:[function(e,t,i){"use strict";var A=e("../utils"),r=e("bn.js"),n=e("inherits"),o=e("./base"),a=A.assert;function s(e){o.call(this,"short",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,i,A){o.BasePoint.call(this,e,"affine"),null===t&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(t,16),this.y=new r(i,16),A&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function I(e,t,i,A){o.BasePoint.call(this,e,"jacobian"),null===t&&null===i&&null===A?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(t,16),this.y=new r(i,16),this.z=new r(A,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}n(s,o),t.exports=s,s.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,i;if(e.beta)t=new r(e.beta,16).toRed(this.red);else{var A=this._getEndoRoots(this.p);t=(t=A[0].cmp(A[1])<0?A[0]:A[1]).toRed(this.red)}if(e.lambda)i=new r(e.lambda,16);else{var n=this._getEndoRoots(this.n);0===this.g.mul(n[0]).x.cmp(this.g.x.redMul(t))?i=n[0]:(i=n[1],a(0===this.g.mul(i).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:i,basis:e.basis?e.basis.map((function(e){return{a:new r(e.a,16),b:new r(e.b,16)}})):this._getEndoBasis(i)}}},s.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:r.mont(e),i=new r(2).toRed(t).redInvm(),A=i.redNeg(),n=new r(3).toRed(t).redNeg().redSqrt().redMul(i);return[A.redAdd(n).fromRed(),A.redSub(n).fromRed()]},s.prototype._getEndoBasis=function(e){for(var t,i,A,n,o,a,s,c,I,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,g=this.n.clone(),u=new r(1),d=new r(0),l=new r(0),B=new r(1),p=0;0!==h.cmpn(0);){var C=g.div(h);c=g.sub(C.mul(h)),I=l.sub(C.mul(u));var Q=B.sub(C.mul(d));if(!A&&c.cmp(f)<0)t=s.neg(),i=u,A=c.neg(),n=I;else if(A&&2==++p)break;s=c,g=h,h=c,l=u,u=I,B=d,d=Q}o=c.neg(),a=I;var E=A.sqr().add(n.sqr());return o.sqr().add(a.sqr()).cmp(E)>=0&&(o=t,a=i),A.negative&&(A=A.neg(),n=n.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:A,b:n},{a:o,b:a}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,i=t[0],A=t[1],r=A.b.mul(e).divRound(this.n),n=i.b.neg().mul(e).divRound(this.n),o=r.mul(i.a),a=n.mul(A.a),s=r.mul(i.b),c=n.mul(A.b);return{k1:e.sub(o).sub(a),k2:s.add(c).neg()}},s.prototype.pointFromX=function(e,t){(e=new r(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),A=i.redSqrt();if(0!==A.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var n=A.fromRed().isOdd();return(t&&!n||!t&&n)&&(A=A.redNeg()),this.point(e,A)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,i=e.y,A=this.a.redMul(t),r=t.redSqr().redMul(t).redIAdd(A).redIAdd(this.b);return 0===i.redSqr().redISub(r).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,i){for(var A=this._endoWnafT1,r=this._endoWnafT2,n=0;n":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var i=t.redSqr().redISub(this.x).redISub(e.x),A=t.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,A)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,i=this.x.redSqr(),A=e.redInvm(),r=i.redAdd(i).redIAdd(i).redIAdd(t).redMul(A),n=r.redSqr().redISub(this.x.redAdd(this.x)),o=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,o)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new r(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,i){var A=[this,t],r=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(A,r):this.curve._wnafMulAdd(1,A,r,2)},c.prototype.jmulAdd=function(e,t,i){var A=[this,t],r=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(A,r,!0):this.curve._wnafMulAdd(1,A,r,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,A=function(e){return e.neg()};t.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(A)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(A)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},n(I,o.BasePoint),s.prototype.jpoint=function(e,t,i){return new I(this,e,t,i)},I.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),i=this.x.redMul(t),A=this.y.redMul(t).redMul(e);return this.curve.point(i,A)},I.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},I.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),i=this.z.redSqr(),A=this.x.redMul(t),r=e.x.redMul(i),n=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(i.redMul(this.z)),a=A.redSub(r),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),I=c.redMul(a),f=A.redMul(c),h=s.redSqr().redIAdd(I).redISub(f).redISub(f),g=s.redMul(f.redISub(h)).redISub(n.redMul(I)),u=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,g,u)},I.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),i=this.x,A=e.x.redMul(t),r=this.y,n=e.y.redMul(t).redMul(this.z),o=i.redSub(A),a=r.redSub(n);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=o.redSqr(),c=s.redMul(o),I=i.redMul(s),f=a.redSqr().redIAdd(c).redISub(I).redISub(I),h=a.redMul(I.redISub(f)).redISub(r.redMul(c)),g=this.z.redMul(o);return this.curve.jpoint(f,h,g)},I.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var i=this;for(t=0;t=0)return!1;if(i.redIAdd(r),0===this.x.cmp(i))return!0}},I.prototype.inspect=function(){return this.isInfinity()?"":""},I.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":132,"./base":119,"bn.js":47,inherits:169}],124:[function(e,t,i){"use strict";var A,r=i,n=e("hash.js"),o=e("./curve"),a=e("./utils").assert;function s(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var i=new s(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=s,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:n.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:n.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{A=e("./precomputed/secp256k1")}catch(e){A=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",A]})},{"./curve":121,"./precomputed/secp256k1":131,"./utils":132,"hash.js":155}],125:[function(e,t,i){"use strict";var A=e("bn.js"),r=e("hmac-drbg"),n=e("../utils"),o=e("../curves"),a=e("brorand"),s=n.assert,c=e("./key"),I=e("./signature");function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(s(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=f,f.prototype.keyPair=function(e){return new c(this,e)},f.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new r({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),n=this.n.sub(new A(2));;){var o=new A(t.generate(i));if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}},f.prototype._truncateToN=function(e,t){var i=8*e.byteLength()-this.n.bitLength();return i>0&&(e=e.ushrn(i)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,i,n){"object"==typeof i&&(n=i,i=null),n||(n={}),t=this.keyFromPrivate(t,i),e=this._truncateToN(new A(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),s=e.toArray("be",o),c=new r({hash:this.hash,entropy:a,nonce:s,pers:n.pers,persEnc:n.persEnc||"utf8"}),f=this.n.sub(new A(1)),h=0;;h++){var g=n.k?n.k(h):new A(c.generate(this.n.byteLength()));if(!((g=this._truncateToN(g,!0)).cmpn(1)<=0||g.cmp(f)>=0)){var u=this.g.mul(g);if(!u.isInfinity()){var d=u.getX(),l=d.umod(this.n);if(0!==l.cmpn(0)){var B=g.invm(this.n).mul(l.mul(t.getPrivate()).iadd(e));if(0!==(B=B.umod(this.n)).cmpn(0)){var p=(u.getY().isOdd()?1:0)|(0!==d.cmp(l)?2:0);return n.canonical&&B.cmp(this.nh)>0&&(B=this.n.sub(B),p^=1),new I({r:l,s:B,recoveryParam:p})}}}}}},f.prototype.verify=function(e,t,i,r){e=this._truncateToN(new A(e,16)),i=this.keyFromPublic(i,r);var n=(t=new I(t,"hex")).r,o=t.s;if(n.cmpn(1)<0||n.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),c=s.mul(e).umod(this.n),f=s.mul(n).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(c,i.getPublic(),f)).isInfinity()&&a.eqXToP(n):!(a=this.g.mulAdd(c,i.getPublic(),f)).isInfinity()&&0===a.getX().umod(this.n).cmp(n)},f.prototype.recoverPubKey=function(e,t,i,r){s((3&i)===i,"The recovery param is more than two bits"),t=new I(t,r);var n=this.n,o=new A(e),a=t.r,c=t.s,f=1&i,h=i>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");a=h?this.curve.pointFromX(a.add(this.curve.n),f):this.curve.pointFromX(a,f);var g=t.r.invm(n),u=n.sub(o).mul(g).umod(n),d=c.mul(g).umod(n);return this.g.mulAdd(u,a,d)},f.prototype.getKeyRecoveryParam=function(e,t,i,A){if(null!==(t=new I(t,A)).recoveryParam)return t.recoveryParam;for(var r=0;r<4;r++){var n;try{n=this.recoverPubKey(e,t,r)}catch(e){continue}if(n.eq(i))return r}throw new Error("Unable to find valid recovery factor")}},{"../curves":124,"../utils":132,"./key":126,"./signature":127,"bn.js":47,brorand:48,"hmac-drbg":167}],126:[function(e,t,i){"use strict";var A=e("bn.js"),r=e("../utils").assert;function n(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=n,n.fromPublic=function(e,t,i){return t instanceof n?t:new n(e,{pub:t,pubEnc:i})},n.fromPrivate=function(e,t,i){return t instanceof n?t:new n(e,{priv:t,privEnc:i})},n.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},n.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},n.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},n.prototype._importPrivate=function(e,t){this.priv=new A(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},n.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?r(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||r(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},n.prototype.derive=function(e){return e.validate()||r(e.validate(),"public point not validated"),e.mul(this.priv).getX()},n.prototype.sign=function(e,t,i){return this.ec.sign(e,this,t,i)},n.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},n.prototype.inspect=function(){return""}},{"../utils":132,"bn.js":47}],127:[function(e,t,i){"use strict";var A=e("bn.js"),r=e("../utils"),n=r.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(n(e.r&&e.s,"Signature without r or s"),this.r=new A(e.r,16),this.s=new A(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function s(e,t){var i=e[t.place++];if(!(128&i))return i;var A=15&i;if(0===A||A>4)return!1;for(var r=0,n=0,o=t.place;n>>=0;return!(r<=127)&&(t.place=o,r)}function c(e){for(var t=0,i=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|i);--i;)e.push(t>>>(i<<3)&255);e.push(t)}}t.exports=o,o.prototype._importDER=function(e,t){e=r.toArray(e,t);var i=new a;if(48!==e[i.place++])return!1;var n=s(e,i);if(!1===n)return!1;if(n+i.place!==e.length)return!1;if(2!==e[i.place++])return!1;var o=s(e,i);if(!1===o)return!1;var c=e.slice(i.place,o+i.place);if(i.place+=o,2!==e[i.place++])return!1;var I=s(e,i);if(!1===I)return!1;if(e.length!==I+i.place)return!1;var f=e.slice(i.place,I+i.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new A(c),this.s=new A(f),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),i=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&i[0]&&(i=[0].concat(i)),t=c(t),i=c(i);!(i[0]||128&i[1]);)i=i.slice(1);var A=[2];I(A,t.length),(A=A.concat(t)).push(2),I(A,i.length);var n=A.concat(i),o=[48];return I(o,n.length),o=o.concat(n),r.encode(o,e)}},{"../utils":132,"bn.js":47}],128:[function(e,t,i){"use strict";var A=e("hash.js"),r=e("../curves"),n=e("../utils"),o=n.assert,a=n.parseBytes,s=e("./key"),c=e("./signature");function I(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof I))return new I(e);e=r[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=A.sha512}t.exports=I,I.prototype.sign=function(e,t){e=a(e);var i=this.keyFromSecret(t),A=this.hashInt(i.messagePrefix(),e),r=this.g.mul(A),n=this.encodePoint(r),o=this.hashInt(n,i.pubBytes(),e).mul(i.priv()),s=A.add(o).umod(this.curve.n);return this.makeSignature({R:r,S:s,Rencoded:n})},I.prototype.verify=function(e,t,i){e=a(e),t=this.makeSignature(t);var A=this.keyFromPublic(i),r=this.hashInt(t.Rencoded(),A.pubBytes(),e),n=this.g.mul(t.S());return t.R().add(A.pub().mul(r)).eq(n)},I.prototype.hashInt=function(){for(var e=this.hash(),t=0;t(r>>1)-1?(r>>1)-s:s,n.isubn(a)):a=0,A[o]=a,n.iushrn(1)}return A},A.getJSF=function(e,t){var i=[[],[]];e=e.clone(),t=t.clone();for(var A,r=0,n=0;e.cmpn(-r)>0||t.cmpn(-n)>0;){var o,a,s=e.andln(3)+r&3,c=t.andln(3)+n&3;3===s&&(s=-1),3===c&&(c=-1),o=0==(1&s)?0:3!==(A=e.andln(7)+r&7)&&5!==A||2!==c?s:-s,i[0].push(o),a=0==(1&c)?0:3!==(A=t.andln(7)+n&7)&&5!==A||2!==s?c:-c,i[1].push(a),2*r===o+1&&(r=1-r),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return i},A.cachedProperty=function(e,t,i){var A="_"+t;e.prototype[t]=function(){return void 0!==this[A]?this[A]:this[A]=i.call(this)}},A.parseBytes=function(e){return"string"==typeof e?A.toArray(e,"hex"):e},A.intFromLE=function(e){return new r(e,"hex","le")}},{"bn.js":47,"minimalistic-assert":174,"minimalistic-crypto-utils":175}],133:[function(e,t,i){t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],134:[function(e,t,i){"use strict";var A,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};A=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(e,t){return new Promise((function(i,A){function r(i){e.removeListener(t,n),A(i)}function n(){"function"==typeof e.removeListener&&e.removeListener("error",r),i([].slice.call(arguments))}B(e,t,n,{once:!0}),"error"!==t&&function(e,t,i){"function"==typeof e.on&&B(e,"error",t,i)}(e,r,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function I(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function f(e,t,i,A){var r,n,o,a;if(c(i),void 0===(n=e._events)?(n=e._events=Object.create(null),e._eventsCount=0):(void 0!==n.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),n=e._events),o=n[t]),void 0===o)o=n[t]=i,++e._eventsCount;else if("function"==typeof o?o=n[t]=A?[i,o]:[o,i]:A?o.unshift(i):o.push(i),(r=I(e))>0&&o.length>r&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,a=s,console&&console.warn&&console.warn(a)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g(e,t,i){var A={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},r=h.bind(A);return r.listener=i,A.wrapFn=r,r}function u(e,t,i){var A=e._events;if(void 0===A)return[];var r=A[t];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(e){for(var t=new Array(e.length),i=0;i0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=r[e];if(void 0===s)return!1;if("function"==typeof s)n(s,this,t);else{var c=s.length,I=l(s,c);for(i=0;i=0;n--)if(i[n]===t||i[n].listener===t){o=i[n].listener,r=n;break}if(r<0)return this;0===r?i.shift():function(e,t){for(;t+1=0;A--)this.removeListener(e,t[A]);return this},a.prototype.listeners=function(e){return u(this,e,!0)},a.prototype.rawListeners=function(e){return u(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},a.prototype.listenerCount=d,a.prototype.eventNames=function(){return this._eventsCount>0?A(this._events):[]}},{}],135:[function(e,t,i){var A=e("safe-buffer").Buffer,r=e("md5.js");t.exports=function(e,t,i,n){if(A.isBuffer(e)||(e=A.from(e,"binary")),t&&(A.isBuffer(t)||(t=A.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=i/8,a=A.alloc(o),s=A.alloc(n||0),c=A.alloc(0);o>0||n>0;){var I=new r;I.update(c),I.update(e),t&&I.update(t),c=I.digest();var f=0;if(o>0){var h=a.length-o;f=Math.min(o,c.length),c.copy(a,h,0,f),o-=f}if(f0){var g=s.length-n,u=Math.min(n,c.length-f);c.copy(s,g,f,f+u),n-=u}}return c.fill(0),{key:a,iv:s}}},{"md5.js":171,"safe-buffer":198}],136:[function(e,t,i){"use strict";t.exports=function(e,t){for(var i={},A=Object.keys(e),r=Array.isArray(t),n=0;n=this._blockSize;){for(var n=this._blockOffset;n0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.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},n.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=n},{inherits:169,"readable-stream":152,"safe-buffer":198}],138:[function(e,t,i){arguments[4][80][0].apply(i,arguments)},{dup:80}],139:[function(e,t,i){arguments[4][81][0].apply(i,arguments)},{"./_stream_readable":141,"./_stream_writable":143,_process:187,dup:81,inherits:169}],140:[function(e,t,i){arguments[4][82][0].apply(i,arguments)},{"./_stream_transform":142,dup:82,inherits:169}],141:[function(e,t,i){arguments[4][83][0].apply(i,arguments)},{"../errors":138,"./_stream_duplex":139,"./internal/streams/async_iterator":144,"./internal/streams/buffer_list":145,"./internal/streams/destroy":146,"./internal/streams/from":148,"./internal/streams/state":150,"./internal/streams/stream":151,_process:187,buffer:99,dup:83,events:134,inherits:169,"string_decoder/":153,util:50}],142:[function(e,t,i){arguments[4][84][0].apply(i,arguments)},{"../errors":138,"./_stream_duplex":139,dup:84,inherits:169}],143:[function(e,t,i){arguments[4][85][0].apply(i,arguments)},{"../errors":138,"./_stream_duplex":139,"./internal/streams/destroy":146,"./internal/streams/state":150,"./internal/streams/stream":151,_process:187,buffer:99,dup:85,inherits:169,"util-deprecate":226}],144:[function(e,t,i){arguments[4][86][0].apply(i,arguments)},{"./end-of-stream":147,_process:187,dup:86}],145:[function(e,t,i){arguments[4][87][0].apply(i,arguments)},{buffer:99,dup:87,util:50}],146:[function(e,t,i){arguments[4][88][0].apply(i,arguments)},{_process:187,dup:88}],147:[function(e,t,i){arguments[4][89][0].apply(i,arguments)},{"../../../errors":138,dup:89}],148:[function(e,t,i){arguments[4][90][0].apply(i,arguments)},{dup:90}],149:[function(e,t,i){arguments[4][91][0].apply(i,arguments)},{"../../../errors":138,"./end-of-stream":147,dup:91}],150:[function(e,t,i){arguments[4][92][0].apply(i,arguments)},{"../../../errors":138,dup:92}],151:[function(e,t,i){arguments[4][93][0].apply(i,arguments)},{dup:93,events:134}],152:[function(e,t,i){arguments[4][94][0].apply(i,arguments)},{"./lib/_stream_duplex.js":139,"./lib/_stream_passthrough.js":140,"./lib/_stream_readable.js":141,"./lib/_stream_transform.js":142,"./lib/_stream_writable.js":143,"./lib/internal/streams/end-of-stream.js":147,"./lib/internal/streams/pipeline.js":149,dup:94}],153:[function(e,t,i){arguments[4][95][0].apply(i,arguments)},{dup:95,"safe-buffer":198}],154:[function(e,t,i){(function(e){(function(){ +"use strict";var t=e("base64-js"),A=e("ieee754");i.Buffer=o,i.SlowBuffer=function(e){+e!=e&&(e=0);return o.alloc(+e)},i.INSPECT_MAX_BYTES=50;var r=2147483647;function n(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=o.prototype,t}function o(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,i)}function a(e,t,i){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var i=0|h(e,t),A=n(i),r=A.write(e,t);r!==i&&(A=A.slice(0,r));return A}(e,t);if(ArrayBuffer.isView(e))return I(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(x(e,ArrayBuffer)||e&&x(e.buffer,ArrayBuffer))return function(e,t,i){if(t<0||e.byteLength=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function h(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||x(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,A=arguments.length>2&&!0===arguments[2];if(!A&&0===i)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return K(e).length;default:if(r)return A?-1:R(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,i){var A=!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 S(this,t,i);case"utf8":case"utf-8":return m(this,t,i);case"ascii":return v(this,t,i);case"latin1":case"binary":return D(this,t,i);case"base64":return b(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,i);default:if(A)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),A=!0}}function u(e,t,i){var A=e[t];e[t]=e[i],e[i]=A}function d(e,t,i,A,r){if(0===e.length)return-1;if("string"==typeof i?(A=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),J(i=+i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=o.from(t,A)),o.isBuffer(t))return 0===t.length?-1:l(e,t,i,A,r);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):l(e,[t],i,A,r);throw new TypeError("val must be string, number or Buffer")}function l(e,t,i,A,r){var n,o=1,a=e.length,s=t.length;if(void 0!==A&&("ucs2"===(A=String(A).toLowerCase())||"ucs-2"===A||"utf16le"===A||"utf-16le"===A)){if(e.length<2||t.length<2)return-1;o=2,a/=2,s/=2,i/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var I=-1;for(n=i;na&&(i=a-s),n=i;n>=0;n--){for(var f=!0,h=0;hr&&(A=r):A=r;var n=t.length;A>n/2&&(A=n/2);for(var o=0;o>8,r=i%256,n.push(r),n.push(A);return n}(t,e.length-i),e,i,A)}function b(e,i,A){return 0===i&&A===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(i,A))}function m(e,t,i){i=Math.min(e.length,i);for(var A=[],r=t;r239?4:c>223?3:c>191?2:1;if(r+f<=i)switch(f){case 1:c<128&&(I=c);break;case 2:128==(192&(n=e[r+1]))&&(s=(31&c)<<6|63&n)>127&&(I=s);break;case 3:n=e[r+1],o=e[r+2],128==(192&n)&&128==(192&o)&&(s=(15&c)<<12|(63&n)<<6|63&o)>2047&&(s<55296||s>57343)&&(I=s);break;case 4:n=e[r+1],o=e[r+2],a=e[r+3],128==(192&n)&&128==(192&o)&&128==(192&a)&&(s=(15&c)<<18|(63&n)<<12|(63&o)<<6|63&a)>65535&&s<1114112&&(I=s)}null===I?(I=65533,f=1):I>65535&&(I-=65536,A.push(I>>>10&1023|55296),I=56320|1023&I),A.push(I),r+=f}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var i="",A=0;for(;At&&(e+=" ... "),""},o.prototype.compare=function(e,t,i,A,r){if(x(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===A&&(A=0),void 0===r&&(r=this.length),t<0||i>e.length||A<0||r>this.length)throw new RangeError("out of range index");if(A>=r&&t>=i)return 0;if(A>=r)return-1;if(t>=i)return 1;if(this===e)return 0;for(var n=(r>>>=0)-(A>>>=0),a=(i>>>=0)-(t>>>=0),s=Math.min(n,a),c=this.slice(A,r),I=e.slice(t,i),f=0;f>>=0,isFinite(i)?(i>>>=0,void 0===A&&(A="utf8")):(A=i,i=void 0)}var r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");for(var n=!1;;)switch(A){case"hex":return B(this,e,t,i);case"utf8":case"utf-8":return p(this,e,t,i);case"ascii":return C(this,e,t,i);case"latin1":case"binary":return Q(this,e,t,i);case"base64":return E(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,e,t,i);default:if(n)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),n=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function v(e,t,i){var A="";i=Math.min(e.length,i);for(var r=t;rA)&&(i=A);for(var r="",n=t;ni)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,i,A,r,n){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function N(e,t,i,A,r,n){if(i+A>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function U(e,t,i,r,n){return t=+t,i>>>=0,n||N(e,0,i,4),A.write(e,t,i,r,23,4),i+4}function G(e,t,i,r,n){return t=+t,i>>>=0,n||N(e,0,i,8),A.write(e,t,i,r,52,8),i+8}o.prototype.slice=function(e,t){var i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t>>=0,t>>>=0,i||k(e,t,this.length);for(var A=this[e],r=1,n=0;++n>>=0,t>>>=0,i||k(e,t,this.length);for(var A=this[e+--t],r=1;t>0&&(r*=256);)A+=this[e+--t]*r;return A},o.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||k(e,t,this.length);for(var A=this[e],r=1,n=0;++n=(r*=128)&&(A-=Math.pow(2,8*t)),A},o.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||k(e,t,this.length);for(var A=t,r=1,n=this[e+--A];A>0&&(r*=256);)n+=this[e+--A]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),A.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),A.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),A.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),A.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,i,A){(e=+e,t>>>=0,i>>>=0,A)||M(this,e,t,i,Math.pow(2,8*i)-1,0);var r=1,n=0;for(this[t]=255&e;++n>>=0,i>>>=0,A)||M(this,e,t,i,Math.pow(2,8*i)-1,0);var r=i-1,n=1;for(this[t+r]=255&e;--r>=0&&(n*=256);)this[t+r]=e/n&255;return t+i},o.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,i,A){if(e=+e,t>>>=0,!A){var r=Math.pow(2,8*i-1);M(this,e,t,i,r-1,-r)}var n=0,o=1,a=0;for(this[t]=255&e;++n>0)-a&255;return t+i},o.prototype.writeIntBE=function(e,t,i,A){if(e=+e,t>>>=0,!A){var r=Math.pow(2,8*i-1);M(this,e,t,i,r-1,-r)}var n=i-1,o=1,a=0;for(this[t+n]=255&e;--n>=0&&(o*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/o>>0)-a&255;return t+i},o.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,i){return U(this,e,t,!0,i)},o.prototype.writeFloatBE=function(e,t,i){return U(this,e,t,!1,i)},o.prototype.writeDoubleLE=function(e,t,i){return G(this,e,t,!0,i)},o.prototype.writeDoubleBE=function(e,t,i){return G(this,e,t,!1,i)},o.prototype.copy=function(e,t,i,A){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),A||0===A||(A=this.length),t>=e.length&&(t=e.length),t||(t=0),A>0&&A=this.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),e.length-t=0;--n)e[n+t]=this[n+i];else Uint8Array.prototype.set.call(e,this.subarray(i,A),t);return r},o.prototype.fill=function(e,t,i,A){if("string"==typeof e){if("string"==typeof t?(A=t,t=0,i=this.length):"string"==typeof i&&(A=i,i=this.length),void 0!==A&&"string"!=typeof A)throw new TypeError("encoding must be a string");if("string"==typeof A&&!o.isEncoding(A))throw new TypeError("Unknown encoding: "+A);if(1===e.length){var r=e.charCodeAt(0);("utf8"===A&&r<128||"latin1"===A)&&(e=r)}}else"number"==typeof e&&(e&=255);if(t<0||this.length>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(n=t;n55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(o+1===A){(t-=3)>-1&&n.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&n.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&n.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;n.push(i)}else if(i<2048){if((t-=2)<0)break;n.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;n.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;n.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return n}function K(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,i,A){for(var r=0;r=t.length||r>=e.length);++r)t[r+i]=e[r];return r}function x(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":46,buffer:99,ieee754:168}],100:[function(e,t,i){var A=e("safe-buffer").Buffer,r=e("stream").Transform,n=e("string_decoder").StringDecoder;function o(e){r.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}e("inherits")(o,r),o.prototype.update=function(e,t,i){"string"==typeof e&&(e=A.from(e,t));var r=this._update(e);return this.hashMode?this:(i&&(r=this._toString(r,i)),r)},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 A;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){A=e}finally{i(A)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||A.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,i){if(this._decoder||(this._decoder=new n(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var A=this._decoder.write(e);return i&&(A+=this._decoder.end()),A},t.exports=o},{inherits:169,"safe-buffer":198,stream:209,string_decoder:97}],101:[function(e,t,i){(function(i){(function(){var A=e("elliptic"),r=e("bn.js");t.exports=function(e){return new o(e)};var n={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=n[e],this.curveType||(this.curveType={name:e}),this.curve=new A.ec(this.curveType.name),this.keys=void 0}function a(e,t,A){Array.isArray(e)||(e=e.toArray());var r=new i(e);if(A&&r.lengthi)?t=("rmd160"===e?new s:c(e)).update(t).digest():t.lengtha?t=e(t):t.length0;A--)t+=this._buffer(e,t),i+=this._flushBuffer(r,i);return t+=this._buffer(e,t),r},r.prototype.final=function(e){var t,i;return e&&(t=this.update(e)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(i):i},r.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];i=n.r28shl(i,a),r=n.r28shl(r,a),n.pc2(i,r,e.keys,o)}},s.prototype._update=function(e,t,i,A){var r=this._desState,o=n.readUInt32BE(e,t),a=n.readUInt32BE(e,t+4);n.ip(o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],"encrypt"===this.type?this._encrypt(r,o,a,r.tmp,0):this._decrypt(r,o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],n.writeUInt32BE(i,o,A),n.writeUInt32BE(i,a,A+4)},s.prototype._pad=function(e,t){for(var i=e.length-t,A=t;A>>0,o=h}n.rip(a,o,A,r)},s.prototype._decrypt=function(e,t,i,A,r){for(var o=i,a=t,s=e.keys.length-2;s>=0;s-=2){var c=e.keys[s],I=e.keys[s+1];n.expand(o,e.tmp,0),c^=e.tmp[0],I^=e.tmp[1];var f=n.substitute(c,I),h=o;o=(a^n.permute(f))>>>0,a=h}n.rip(o,a,A,r)}},{"./cipher":110,"./utils":113,inherits:169,"minimalistic-assert":174}],112:[function(e,t,i){"use strict";var A=e("minimalistic-assert"),r=e("inherits"),n=e("./cipher"),o=e("./des");function a(e,t){A.equal(t.length,24,"Invalid key length");var i=t.slice(0,8),r=t.slice(8,16),n=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:r}),o.create({type:"encrypt",key:n})]:[o.create({type:"decrypt",key:n}),o.create({type:"encrypt",key:r}),o.create({type:"decrypt",key:i})]}function s(e){n.call(this,e);var t=new a(this.type,this.options.key);this._edeState=t}r(s,n),t.exports=s,s.create=function(e){return new s(e)},s.prototype._update=function(e,t,i,A){var r=this._edeState;r.ciphers[0]._update(e,t,i,A),r.ciphers[1]._update(i,A,i,A),r.ciphers[2]._update(i,A,i,A)},s.prototype._pad=o.prototype._pad,s.prototype._unpad=o.prototype._unpad},{"./cipher":110,"./des":111,inherits:169,"minimalistic-assert":174}],113:[function(e,t,i){"use strict";i.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},i.writeUInt32BE=function(e,t,i){e[0+i]=t>>>24,e[1+i]=t>>>16&255,e[2+i]=t>>>8&255,e[3+i]=255&t},i.ip=function(e,t,i,A){for(var r=0,n=0,o=6;o>=0;o-=2){for(var a=0;a<=24;a+=8)r<<=1,r|=t>>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=e>>>a+o&1}for(o=6;o>=0;o-=2){for(a=1;a<=25;a+=8)n<<=1,n|=t>>>a+o&1;for(a=1;a<=25;a+=8)n<<=1,n|=e>>>a+o&1}i[A+0]=r>>>0,i[A+1]=n>>>0},i.rip=function(e,t,i,A){for(var r=0,n=0,o=0;o<4;o++)for(var a=24;a>=0;a-=8)r<<=1,r|=t>>>a+o&1,r<<=1,r|=e>>>a+o&1;for(o=4;o<8;o++)for(a=24;a>=0;a-=8)n<<=1,n|=t>>>a+o&1,n<<=1,n|=e>>>a+o&1;i[A+0]=r>>>0,i[A+1]=n>>>0},i.pc1=function(e,t,i,A){for(var r=0,n=0,o=7;o>=5;o--){for(var a=0;a<=24;a+=8)r<<=1,r|=t>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=e>>a+o&1}for(a=0;a<=24;a+=8)r<<=1,r|=t>>a+o&1;for(o=1;o<=3;o++){for(a=0;a<=24;a+=8)n<<=1,n|=t>>a+o&1;for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+o&1}for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+o&1;i[A+0]=r>>>0,i[A+1]=n>>>0},i.r28shl=function(e,t){return e<>>28-t};var A=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];i.pc2=function(e,t,i,r){for(var n=0,o=0,a=A.length>>>1,s=0;s>>A[s]&1;for(s=a;s>>A[s]&1;i[r+0]=n>>>0,i[r+1]=o>>>0},i.expand=function(e,t,i){var A=0,r=0;A=(1&e)<<5|e>>>27;for(var n=23;n>=15;n-=4)A<<=6,A|=e>>>n&63;for(n=11;n>=3;n-=4)r|=e>>>n&63,r<<=6;r|=(31&e)<<1|e>>>31,t[i+0]=A>>>0,t[i+1]=r>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];i.substitute=function(e,t){for(var i=0,A=0;A<4;A++){i<<=4,i|=r[64*A+(e>>>18-6*A&63)]}for(A=0;A<4;A++){i<<=4,i|=r[256+64*A+(t>>>18-6*A&63)]}return i>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];i.permute=function(e){for(var t=0,i=0;i>>n[i]&1;return t>>>0},i.padSplit=function(e,t,i){for(var A=e.toString(2);A.lengthe;)i.ishrn(1);if(i.isEven()&&i.iadd(a),i.testn(1)||i.iadd(s),t.cmp(s)){if(!t.cmp(c))for(;i.mod(I).cmp(f);)i.iadd(g)}else for(;i.mod(n).cmp(h);)i.iadd(g);if(l(u=i.shrn(1))&&l(i)&&B(u)&&B(i)&&o.test(u)&&o.test(i))return i}}},{"bn.js":47,"miller-rabin":173,randombytes:195}],117:[function(e,t,i){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],118:[function(e,t,i){"use strict";var A=i;A.version=e("../package.json").version,A.utils=e("./elliptic/utils"),A.rand=e("brorand"),A.curve=e("./elliptic/curve"),A.curves=e("./elliptic/curves"),A.ec=e("./elliptic/ec"),A.eddsa=e("./elliptic/eddsa")},{"../package.json":133,"./elliptic/curve":121,"./elliptic/curves":124,"./elliptic/ec":125,"./elliptic/eddsa":128,"./elliptic/utils":132,brorand:48}],119:[function(e,t,i){"use strict";var A=e("bn.js"),r=e("../utils"),n=r.getNAF,o=r.getJSF,a=r.assert;function s(e,t){this.type=e,this.p=new A(t.p,16),this.red=t.prime?A.red(t.prime):A.mont(this.p),this.zero=new A(0).toRed(this.red),this.one=new A(1).toRed(this.red),this.two=new A(2).toRed(this.red),this.n=t.n&&new A(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(e,t){a(e.precomputed);var i=e._getDoubles(),A=n(t,1,this._bitLength),r=(1<=o;I--)s=(s<<1)+A[I];c.push(s)}for(var f=this.jpoint(null,null,null),h=this.jpoint(null,null,null),g=r;g>0;g--){for(o=0;o=0;c--){for(var I=0;c>=0&&0===o[c];c--)I++;if(c>=0&&I++,s=s.dblp(I),c<0)break;var f=o[c];a(0!==f),s="affine"===e.type?f>0?s.mixedAdd(r[f-1>>1]):s.mixedAdd(r[-f-1>>1].neg()):f>0?s.add(r[f-1>>1]):s.add(r[-f-1>>1].neg())}return"affine"===e.type?s.toP():s},s.prototype._wnafMulAdd=function(e,t,i,A,r){var a,s,c,I=this._wnafT1,f=this._wnafT2,h=this._wnafT3,g=0;for(a=0;a=1;a-=2){var d=a-1,l=a;if(1===I[d]&&1===I[l]){var B=[t[d],null,null,t[l]];0===t[d].y.cmp(t[l].y)?(B[1]=t[d].add(t[l]),B[2]=t[d].toJ().mixedAdd(t[l].neg())):0===t[d].y.cmp(t[l].y.redNeg())?(B[1]=t[d].toJ().mixedAdd(t[l]),B[2]=t[d].add(t[l].neg())):(B[1]=t[d].toJ().mixedAdd(t[l]),B[2]=t[d].toJ().mixedAdd(t[l].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],C=o(i[d],i[l]);for(g=Math.max(C[0].length,g),h[d]=new Array(g),h[l]=new Array(g),s=0;s=0;a--){for(var m=0;a>=0;){var w=!0;for(s=0;s=0&&m++,y=y.dblp(m),a<0)break;for(s=0;s0?c=f[s][v-1>>1]:v<0&&(c=f[s][-v-1>>1].neg()),y="affine"===c.type?y.mixedAdd(c):y.add(c))}}for(a=0;a=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],A=this,r=0;r":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var A=this.curve._mulA(e),r=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),n=A.redAdd(t),o=n.redSub(i),a=A.redSub(t),s=r.redMul(o),c=n.redMul(a),I=r.redMul(a),f=o.redMul(n);return this.curve.point(s,c,f,I)},c.prototype._projDbl=function(){var e,t,i,A,r,n,o=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),s=this.y.redSqr();if(this.curve.twisted){var c=(A=this.curve._mulA(a)).redAdd(s);this.zOne?(e=o.redSub(a).redSub(s).redMul(c.redSub(this.curve.two)),t=c.redMul(A.redSub(s)),i=c.redSqr().redSub(c).redSub(c)):(r=this.z.redSqr(),n=c.redSub(r).redISub(r),e=o.redSub(a).redISub(s).redMul(n),t=c.redMul(A.redSub(s)),i=c.redMul(n))}else A=a.redAdd(s),r=this.curve._mulC(this.z).redSqr(),n=A.redSub(r).redSub(r),e=this.curve._mulC(o.redISub(A)).redMul(n),t=this.curve._mulC(A).redMul(a.redISub(s)),i=A.redMul(n);return this.curve.point(e,t,i)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),i=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),A=this.t.redMul(this.curve.dd).redMul(e.t),r=this.z.redMul(e.z.redAdd(e.z)),n=i.redSub(t),o=r.redSub(A),a=r.redAdd(A),s=i.redAdd(t),c=n.redMul(o),I=a.redMul(s),f=n.redMul(s),h=o.redMul(a);return this.curve.point(c,I,h,f)},c.prototype._projAdd=function(e){var t,i,A=this.z.redMul(e.z),r=A.redSqr(),n=this.x.redMul(e.x),o=this.y.redMul(e.y),a=this.curve.d.redMul(n).redMul(o),s=r.redSub(a),c=r.redAdd(a),I=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(n).redISub(o),f=A.redMul(s).redMul(I);return this.curve.twisted?(t=A.redMul(c).redMul(o.redSub(this.curve._mulA(n))),i=s.redMul(c)):(t=A.redMul(c).redMul(o.redSub(n)),i=this.curve._mulC(s).redMul(c)),this.curve.point(f,t,i)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!1)},c.prototype.jmulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var i=e.clone(),A=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(A),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":132,"./base":119,"bn.js":47,inherits:169}],121:[function(e,t,i){"use strict";var A=i;A.base=e("./base"),A.short=e("./short"),A.mont=e("./mont"),A.edwards=e("./edwards")},{"./base":119,"./edwards":120,"./mont":122,"./short":123}],122:[function(e,t,i){"use strict";var A=e("bn.js"),r=e("inherits"),n=e("./base"),o=e("../utils");function a(e){n.call(this,"mont",e),this.a=new A(e.a,16).toRed(this.red),this.b=new A(e.b,16).toRed(this.red),this.i4=new A(4).toRed(this.red).redInvm(),this.two=new A(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(e,t,i){n.BasePoint.call(this,e,"projective"),null===t&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new A(t,16),this.z=new A(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(a,n),t.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,i=t.redSqr(),A=i.redMul(t).redAdd(i.redMul(this.a)).redAdd(t);return 0===A.redSqrt().redSqr().cmp(A)},r(s,n.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},a.prototype.point=function(e,t){return new s(this,e,t)},a.prototype.pointFromJSON=function(e){return s.fromJSON(this,e)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(e,t){return new s(e,t[0],t[1]||e.one)},s.prototype.inspect=function(){return this.isInfinity()?"":""},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),i=e.redSub(t),A=e.redMul(t),r=i.redMul(t.redAdd(this.curve.a24.redMul(i)));return this.curve.point(A,r)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(e,t){var i=this.x.redAdd(this.z),A=this.x.redSub(this.z),r=e.x.redAdd(e.z),n=e.x.redSub(e.z).redMul(i),o=r.redMul(A),a=t.z.redMul(n.redAdd(o).redSqr()),s=t.x.redMul(n.redISub(o).redSqr());return this.curve.point(a,s)},s.prototype.mul=function(e){for(var t=e.clone(),i=this,A=this.curve.point(null,null),r=[];0!==t.cmpn(0);t.iushrn(1))r.push(t.andln(1));for(var n=r.length-1;n>=0;n--)0===r[n]?(i=i.diffAdd(A,this),A=A.dbl()):(A=i.diffAdd(A,this),i=i.dbl());return A},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":132,"./base":119,"bn.js":47,inherits:169}],123:[function(e,t,i){"use strict";var A=e("../utils"),r=e("bn.js"),n=e("inherits"),o=e("./base"),a=A.assert;function s(e){o.call(this,"short",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,i,A){o.BasePoint.call(this,e,"affine"),null===t&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(t,16),this.y=new r(i,16),A&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function I(e,t,i,A){o.BasePoint.call(this,e,"jacobian"),null===t&&null===i&&null===A?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(t,16),this.y=new r(i,16),this.z=new r(A,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}n(s,o),t.exports=s,s.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,i;if(e.beta)t=new r(e.beta,16).toRed(this.red);else{var A=this._getEndoRoots(this.p);t=(t=A[0].cmp(A[1])<0?A[0]:A[1]).toRed(this.red)}if(e.lambda)i=new r(e.lambda,16);else{var n=this._getEndoRoots(this.n);0===this.g.mul(n[0]).x.cmp(this.g.x.redMul(t))?i=n[0]:(i=n[1],a(0===this.g.mul(i).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:i,basis:e.basis?e.basis.map((function(e){return{a:new r(e.a,16),b:new r(e.b,16)}})):this._getEndoBasis(i)}}},s.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:r.mont(e),i=new r(2).toRed(t).redInvm(),A=i.redNeg(),n=new r(3).toRed(t).redNeg().redSqrt().redMul(i);return[A.redAdd(n).fromRed(),A.redSub(n).fromRed()]},s.prototype._getEndoBasis=function(e){for(var t,i,A,n,o,a,s,c,I,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,g=this.n.clone(),u=new r(1),d=new r(0),l=new r(0),B=new r(1),p=0;0!==h.cmpn(0);){var C=g.div(h);c=g.sub(C.mul(h)),I=l.sub(C.mul(u));var Q=B.sub(C.mul(d));if(!A&&c.cmp(f)<0)t=s.neg(),i=u,A=c.neg(),n=I;else if(A&&2==++p)break;s=c,g=h,h=c,l=u,u=I,B=d,d=Q}o=c.neg(),a=I;var E=A.sqr().add(n.sqr());return o.sqr().add(a.sqr()).cmp(E)>=0&&(o=t,a=i),A.negative&&(A=A.neg(),n=n.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:A,b:n},{a:o,b:a}]},s.prototype._endoSplit=function(e){var t=this.endo.basis,i=t[0],A=t[1],r=A.b.mul(e).divRound(this.n),n=i.b.neg().mul(e).divRound(this.n),o=r.mul(i.a),a=n.mul(A.a),s=r.mul(i.b),c=n.mul(A.b);return{k1:e.sub(o).sub(a),k2:s.add(c).neg()}},s.prototype.pointFromX=function(e,t){(e=new r(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),A=i.redSqrt();if(0!==A.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var n=A.fromRed().isOdd();return(t&&!n||!t&&n)&&(A=A.redNeg()),this.point(e,A)},s.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,i=e.y,A=this.a.redMul(t),r=t.redSqr().redMul(t).redIAdd(A).redIAdd(this.b);return 0===i.redSqr().redISub(r).cmpn(0)},s.prototype._endoWnafMulAdd=function(e,t,i){for(var A=this._endoWnafT1,r=this._endoWnafT2,n=0;n":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var i=t.redSqr().redISub(this.x).redISub(e.x),A=t.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,A)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,i=this.x.redSqr(),A=e.redInvm(),r=i.redAdd(i).redIAdd(i).redIAdd(t).redMul(A),n=r.redSqr().redISub(this.x.redAdd(this.x)),o=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,o)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new r(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,i){var A=[this,t],r=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(A,r):this.curve._wnafMulAdd(1,A,r,2)},c.prototype.jmulAdd=function(e,t,i){var A=[this,t],r=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(A,r,!0):this.curve._wnafMulAdd(1,A,r,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,A=function(e){return e.neg()};t.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(A)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(A)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},n(I,o.BasePoint),s.prototype.jpoint=function(e,t,i){return new I(this,e,t,i)},I.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),i=this.x.redMul(t),A=this.y.redMul(t).redMul(e);return this.curve.point(i,A)},I.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},I.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),i=this.z.redSqr(),A=this.x.redMul(t),r=e.x.redMul(i),n=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(i.redMul(this.z)),a=A.redSub(r),s=n.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),I=c.redMul(a),f=A.redMul(c),h=s.redSqr().redIAdd(I).redISub(f).redISub(f),g=s.redMul(f.redISub(h)).redISub(n.redMul(I)),u=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,g,u)},I.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),i=this.x,A=e.x.redMul(t),r=this.y,n=e.y.redMul(t).redMul(this.z),o=i.redSub(A),a=r.redSub(n);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=o.redSqr(),c=s.redMul(o),I=i.redMul(s),f=a.redSqr().redIAdd(c).redISub(I).redISub(I),h=a.redMul(I.redISub(f)).redISub(r.redMul(c)),g=this.z.redMul(o);return this.curve.jpoint(f,h,g)},I.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var i=this;for(t=0;t=0)return!1;if(i.redIAdd(r),0===this.x.cmp(i))return!0}},I.prototype.inspect=function(){return this.isInfinity()?"":""},I.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":132,"./base":119,"bn.js":47,inherits:169}],124:[function(e,t,i){"use strict";var A,r=i,n=e("hash.js"),o=e("./curve"),a=e("./utils").assert;function s(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var i=new s(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=s,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:n.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:n.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{A=e("./precomputed/secp256k1")}catch(e){A=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",A]})},{"./curve":121,"./precomputed/secp256k1":131,"./utils":132,"hash.js":155}],125:[function(e,t,i){"use strict";var A=e("bn.js"),r=e("hmac-drbg"),n=e("../utils"),o=e("../curves"),a=e("brorand"),s=n.assert,c=e("./key"),I=e("./signature");function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(s(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=f,f.prototype.keyPair=function(e){return new c(this,e)},f.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new r({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),n=this.n.sub(new A(2));;){var o=new A(t.generate(i));if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}},f.prototype._truncateToN=function(e,t){var i=8*e.byteLength()-this.n.bitLength();return i>0&&(e=e.ushrn(i)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,i,n){"object"==typeof i&&(n=i,i=null),n||(n={}),t=this.keyFromPrivate(t,i),e=this._truncateToN(new A(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),s=e.toArray("be",o),c=new r({hash:this.hash,entropy:a,nonce:s,pers:n.pers,persEnc:n.persEnc||"utf8"}),f=this.n.sub(new A(1)),h=0;;h++){var g=n.k?n.k(h):new A(c.generate(this.n.byteLength()));if(!((g=this._truncateToN(g,!0)).cmpn(1)<=0||g.cmp(f)>=0)){var u=this.g.mul(g);if(!u.isInfinity()){var d=u.getX(),l=d.umod(this.n);if(0!==l.cmpn(0)){var B=g.invm(this.n).mul(l.mul(t.getPrivate()).iadd(e));if(0!==(B=B.umod(this.n)).cmpn(0)){var p=(u.getY().isOdd()?1:0)|(0!==d.cmp(l)?2:0);return n.canonical&&B.cmp(this.nh)>0&&(B=this.n.sub(B),p^=1),new I({r:l,s:B,recoveryParam:p})}}}}}},f.prototype.verify=function(e,t,i,r){e=this._truncateToN(new A(e,16)),i=this.keyFromPublic(i,r);var n=(t=new I(t,"hex")).r,o=t.s;if(n.cmpn(1)<0||n.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),c=s.mul(e).umod(this.n),f=s.mul(n).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(c,i.getPublic(),f)).isInfinity()&&a.eqXToP(n):!(a=this.g.mulAdd(c,i.getPublic(),f)).isInfinity()&&0===a.getX().umod(this.n).cmp(n)},f.prototype.recoverPubKey=function(e,t,i,r){s((3&i)===i,"The recovery param is more than two bits"),t=new I(t,r);var n=this.n,o=new A(e),a=t.r,c=t.s,f=1&i,h=i>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");a=h?this.curve.pointFromX(a.add(this.curve.n),f):this.curve.pointFromX(a,f);var g=t.r.invm(n),u=n.sub(o).mul(g).umod(n),d=c.mul(g).umod(n);return this.g.mulAdd(u,a,d)},f.prototype.getKeyRecoveryParam=function(e,t,i,A){if(null!==(t=new I(t,A)).recoveryParam)return t.recoveryParam;for(var r=0;r<4;r++){var n;try{n=this.recoverPubKey(e,t,r)}catch(e){continue}if(n.eq(i))return r}throw new Error("Unable to find valid recovery factor")}},{"../curves":124,"../utils":132,"./key":126,"./signature":127,"bn.js":47,brorand:48,"hmac-drbg":167}],126:[function(e,t,i){"use strict";var A=e("bn.js"),r=e("../utils").assert;function n(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=n,n.fromPublic=function(e,t,i){return t instanceof n?t:new n(e,{pub:t,pubEnc:i})},n.fromPrivate=function(e,t,i){return t instanceof n?t:new n(e,{priv:t,privEnc:i})},n.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},n.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},n.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},n.prototype._importPrivate=function(e,t){this.priv=new A(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},n.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?r(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||r(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},n.prototype.derive=function(e){return e.validate()||r(e.validate(),"public point not validated"),e.mul(this.priv).getX()},n.prototype.sign=function(e,t,i){return this.ec.sign(e,this,t,i)},n.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},n.prototype.inspect=function(){return""}},{"../utils":132,"bn.js":47}],127:[function(e,t,i){"use strict";var A=e("bn.js"),r=e("../utils"),n=r.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(n(e.r&&e.s,"Signature without r or s"),this.r=new A(e.r,16),this.s=new A(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function s(e,t){var i=e[t.place++];if(!(128&i))return i;var A=15&i;if(0===A||A>4)return!1;for(var r=0,n=0,o=t.place;n>>=0;return!(r<=127)&&(t.place=o,r)}function c(e){for(var t=0,i=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|i);--i;)e.push(t>>>(i<<3)&255);e.push(t)}}t.exports=o,o.prototype._importDER=function(e,t){e=r.toArray(e,t);var i=new a;if(48!==e[i.place++])return!1;var n=s(e,i);if(!1===n)return!1;if(n+i.place!==e.length)return!1;if(2!==e[i.place++])return!1;var o=s(e,i);if(!1===o)return!1;var c=e.slice(i.place,o+i.place);if(i.place+=o,2!==e[i.place++])return!1;var I=s(e,i);if(!1===I)return!1;if(e.length!==I+i.place)return!1;var f=e.slice(i.place,I+i.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new A(c),this.s=new A(f),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),i=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&i[0]&&(i=[0].concat(i)),t=c(t),i=c(i);!(i[0]||128&i[1]);)i=i.slice(1);var A=[2];I(A,t.length),(A=A.concat(t)).push(2),I(A,i.length);var n=A.concat(i),o=[48];return I(o,n.length),o=o.concat(n),r.encode(o,e)}},{"../utils":132,"bn.js":47}],128:[function(e,t,i){"use strict";var A=e("hash.js"),r=e("../curves"),n=e("../utils"),o=n.assert,a=n.parseBytes,s=e("./key"),c=e("./signature");function I(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof I))return new I(e);e=r[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=A.sha512}t.exports=I,I.prototype.sign=function(e,t){e=a(e);var i=this.keyFromSecret(t),A=this.hashInt(i.messagePrefix(),e),r=this.g.mul(A),n=this.encodePoint(r),o=this.hashInt(n,i.pubBytes(),e).mul(i.priv()),s=A.add(o).umod(this.curve.n);return this.makeSignature({R:r,S:s,Rencoded:n})},I.prototype.verify=function(e,t,i){e=a(e),t=this.makeSignature(t);var A=this.keyFromPublic(i),r=this.hashInt(t.Rencoded(),A.pubBytes(),e),n=this.g.mul(t.S());return t.R().add(A.pub().mul(r)).eq(n)},I.prototype.hashInt=function(){for(var e=this.hash(),t=0;t(r>>1)-1?(r>>1)-s:s,n.isubn(a)):a=0,A[o]=a,n.iushrn(1)}return A},A.getJSF=function(e,t){var i=[[],[]];e=e.clone(),t=t.clone();for(var A,r=0,n=0;e.cmpn(-r)>0||t.cmpn(-n)>0;){var o,a,s=e.andln(3)+r&3,c=t.andln(3)+n&3;3===s&&(s=-1),3===c&&(c=-1),o=0==(1&s)?0:3!==(A=e.andln(7)+r&7)&&5!==A||2!==c?s:-s,i[0].push(o),a=0==(1&c)?0:3!==(A=t.andln(7)+n&7)&&5!==A||2!==s?c:-c,i[1].push(a),2*r===o+1&&(r=1-r),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return i},A.cachedProperty=function(e,t,i){var A="_"+t;e.prototype[t]=function(){return void 0!==this[A]?this[A]:this[A]=i.call(this)}},A.parseBytes=function(e){return"string"==typeof e?A.toArray(e,"hex"):e},A.intFromLE=function(e){return new r(e,"hex","le")}},{"bn.js":47,"minimalistic-assert":174,"minimalistic-crypto-utils":175}],133:[function(e,t,i){t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],134:[function(e,t,i){"use strict";var A,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};A=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(e,t){return new Promise((function(i,A){function r(i){e.removeListener(t,n),A(i)}function n(){"function"==typeof e.removeListener&&e.removeListener("error",r),i([].slice.call(arguments))}B(e,t,n,{once:!0}),"error"!==t&&function(e,t,i){"function"==typeof e.on&&B(e,"error",t,i)}(e,r,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function I(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function f(e,t,i,A){var r,n,o,a;if(c(i),void 0===(n=e._events)?(n=e._events=Object.create(null),e._eventsCount=0):(void 0!==n.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),n=e._events),o=n[t]),void 0===o)o=n[t]=i,++e._eventsCount;else if("function"==typeof o?o=n[t]=A?[i,o]:[o,i]:A?o.unshift(i):o.push(i),(r=I(e))>0&&o.length>r&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,a=s,console&&console.warn&&console.warn(a)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g(e,t,i){var A={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},r=h.bind(A);return r.listener=i,A.wrapFn=r,r}function u(e,t,i){var A=e._events;if(void 0===A)return[];var r=A[t];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(e){for(var t=new Array(e.length),i=0;i0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=r[e];if(void 0===s)return!1;if("function"==typeof s)n(s,this,t);else{var c=s.length,I=l(s,c);for(i=0;i=0;n--)if(i[n]===t||i[n].listener===t){o=i[n].listener,r=n;break}if(r<0)return this;0===r?i.shift():function(e,t){for(;t+1=0;A--)this.removeListener(e,t[A]);return this},a.prototype.listeners=function(e){return u(this,e,!0)},a.prototype.rawListeners=function(e){return u(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},a.prototype.listenerCount=d,a.prototype.eventNames=function(){return this._eventsCount>0?A(this._events):[]}},{}],135:[function(e,t,i){var A=e("safe-buffer").Buffer,r=e("md5.js");t.exports=function(e,t,i,n){if(A.isBuffer(e)||(e=A.from(e,"binary")),t&&(A.isBuffer(t)||(t=A.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=i/8,a=A.alloc(o),s=A.alloc(n||0),c=A.alloc(0);o>0||n>0;){var I=new r;I.update(c),I.update(e),t&&I.update(t),c=I.digest();var f=0;if(o>0){var h=a.length-o;f=Math.min(o,c.length),c.copy(a,h,0,f),o-=f}if(f0){var g=s.length-n,u=Math.min(n,c.length-f);c.copy(s,g,f,f+u),n-=u}}return c.fill(0),{key:a,iv:s}}},{"md5.js":171,"safe-buffer":198}],136:[function(e,t,i){"use strict";t.exports=function(e,t){for(var i={},A=Object.keys(e),r=Array.isArray(t),n=0;n=this._blockSize;){for(var n=this._blockOffset;n0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.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},n.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=n},{inherits:169,"readable-stream":152,"safe-buffer":198}],138:[function(e,t,i){arguments[4][80][0].apply(i,arguments)},{dup:80}],139:[function(e,t,i){arguments[4][81][0].apply(i,arguments)},{"./_stream_readable":141,"./_stream_writable":143,_process:187,dup:81,inherits:169}],140:[function(e,t,i){arguments[4][82][0].apply(i,arguments)},{"./_stream_transform":142,dup:82,inherits:169}],141:[function(e,t,i){arguments[4][83][0].apply(i,arguments)},{"../errors":138,"./_stream_duplex":139,"./internal/streams/async_iterator":144,"./internal/streams/buffer_list":145,"./internal/streams/destroy":146,"./internal/streams/from":148,"./internal/streams/state":150,"./internal/streams/stream":151,_process:187,buffer:99,dup:83,events:134,inherits:169,"string_decoder/":153,util:50}],142:[function(e,t,i){arguments[4][84][0].apply(i,arguments)},{"../errors":138,"./_stream_duplex":139,dup:84,inherits:169}],143:[function(e,t,i){arguments[4][85][0].apply(i,arguments)},{"../errors":138,"./_stream_duplex":139,"./internal/streams/destroy":146,"./internal/streams/state":150,"./internal/streams/stream":151,_process:187,buffer:99,dup:85,inherits:169,"util-deprecate":226}],144:[function(e,t,i){arguments[4][86][0].apply(i,arguments)},{"./end-of-stream":147,_process:187,dup:86}],145:[function(e,t,i){arguments[4][87][0].apply(i,arguments)},{buffer:99,dup:87,util:50}],146:[function(e,t,i){arguments[4][88][0].apply(i,arguments)},{_process:187,dup:88}],147:[function(e,t,i){arguments[4][89][0].apply(i,arguments)},{"../../../errors":138,dup:89}],148:[function(e,t,i){arguments[4][90][0].apply(i,arguments)},{dup:90}],149:[function(e,t,i){arguments[4][91][0].apply(i,arguments)},{"../../../errors":138,"./end-of-stream":147,dup:91}],150:[function(e,t,i){arguments[4][92][0].apply(i,arguments)},{"../../../errors":138,dup:92}],151:[function(e,t,i){arguments[4][93][0].apply(i,arguments)},{dup:93,events:134}],152:[function(e,t,i){arguments[4][94][0].apply(i,arguments)},{"./lib/_stream_duplex.js":139,"./lib/_stream_passthrough.js":140,"./lib/_stream_readable.js":141,"./lib/_stream_transform.js":142,"./lib/_stream_writable.js":143,"./lib/internal/streams/end-of-stream.js":147,"./lib/internal/streams/pipeline.js":149,dup:94}],153:[function(e,t,i){arguments[4][95][0].apply(i,arguments)},{dup:95,"safe-buffer":198}],154:[function(e,t,i){(function(e){(function(){ /*! * hash-wasm (https://www.npmjs.com/package/hash-wasm) * (c) Dani Biro @@ -29,4 +29,4 @@ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ i.read=function(e,t,i,A,r){var n,o,a=8*r-A-1,s=(1<>1,I=-7,f=i?r-1:0,h=i?-1:1,g=e[t+f];for(f+=h,n=g&(1<<-I)-1,g>>=-I,I+=a;I>0;n=256*n+e[t+f],f+=h,I-=8);for(o=n&(1<<-I)-1,n>>=-I,I+=A;I>0;o=256*o+e[t+f],f+=h,I-=8);if(0===n)n=1-c;else{if(n===s)return o?NaN:1/0*(g?-1:1);o+=Math.pow(2,A),n-=c}return(g?-1:1)*o*Math.pow(2,n-A)},i.write=function(e,t,i,A,r,n){var o,a,s,c=8*n-r-1,I=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,g=A?0:n-1,u=A?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=I):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+f>=1?h/s:h*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=I?(a=0,o=I):o+f>=1?(a=(t*s-1)*Math.pow(2,r),o+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,r),o=0));r>=8;e[i+g]=255&a,g+=u,a/=256,r-=8);for(o=o<0;e[i+g]=255&o,g+=u,o/=256,c-=8);e[i+g-u]|=128*d}},{}],169:[function(e,t,i){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}},{}],170:[function(e,t,i){"use strict";t.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},{}],171:[function(e,t,i){"use strict";var A=e("inherits"),r=e("hash-base"),n=e("safe-buffer").Buffer,o=new Array(16);function a(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<>>32-t}function c(e,t,i,A,r,n,o){return s(e+(t&i|~t&A)+r+n|0,o)+t|0}function I(e,t,i,A,r,n,o){return s(e+(t&A|i&~A)+r+n|0,o)+t|0}function f(e,t,i,A,r,n,o){return s(e+(t^i^A)+r+n|0,o)+t|0}function h(e,t,i,A,r,n,o){return s(e+(i^(t|~A))+r+n|0,o)+t|0}A(a,r),a.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var i=this._a,A=this._b,r=this._c,n=this._d;i=c(i,A,r,n,e[0],3614090360,7),n=c(n,i,A,r,e[1],3905402710,12),r=c(r,n,i,A,e[2],606105819,17),A=c(A,r,n,i,e[3],3250441966,22),i=c(i,A,r,n,e[4],4118548399,7),n=c(n,i,A,r,e[5],1200080426,12),r=c(r,n,i,A,e[6],2821735955,17),A=c(A,r,n,i,e[7],4249261313,22),i=c(i,A,r,n,e[8],1770035416,7),n=c(n,i,A,r,e[9],2336552879,12),r=c(r,n,i,A,e[10],4294925233,17),A=c(A,r,n,i,e[11],2304563134,22),i=c(i,A,r,n,e[12],1804603682,7),n=c(n,i,A,r,e[13],4254626195,12),r=c(r,n,i,A,e[14],2792965006,17),i=I(i,A=c(A,r,n,i,e[15],1236535329,22),r,n,e[1],4129170786,5),n=I(n,i,A,r,e[6],3225465664,9),r=I(r,n,i,A,e[11],643717713,14),A=I(A,r,n,i,e[0],3921069994,20),i=I(i,A,r,n,e[5],3593408605,5),n=I(n,i,A,r,e[10],38016083,9),r=I(r,n,i,A,e[15],3634488961,14),A=I(A,r,n,i,e[4],3889429448,20),i=I(i,A,r,n,e[9],568446438,5),n=I(n,i,A,r,e[14],3275163606,9),r=I(r,n,i,A,e[3],4107603335,14),A=I(A,r,n,i,e[8],1163531501,20),i=I(i,A,r,n,e[13],2850285829,5),n=I(n,i,A,r,e[2],4243563512,9),r=I(r,n,i,A,e[7],1735328473,14),i=f(i,A=I(A,r,n,i,e[12],2368359562,20),r,n,e[5],4294588738,4),n=f(n,i,A,r,e[8],2272392833,11),r=f(r,n,i,A,e[11],1839030562,16),A=f(A,r,n,i,e[14],4259657740,23),i=f(i,A,r,n,e[1],2763975236,4),n=f(n,i,A,r,e[4],1272893353,11),r=f(r,n,i,A,e[7],4139469664,16),A=f(A,r,n,i,e[10],3200236656,23),i=f(i,A,r,n,e[13],681279174,4),n=f(n,i,A,r,e[0],3936430074,11),r=f(r,n,i,A,e[3],3572445317,16),A=f(A,r,n,i,e[6],76029189,23),i=f(i,A,r,n,e[9],3654602809,4),n=f(n,i,A,r,e[12],3873151461,11),r=f(r,n,i,A,e[15],530742520,16),i=h(i,A=f(A,r,n,i,e[2],3299628645,23),r,n,e[0],4096336452,6),n=h(n,i,A,r,e[7],1126891415,10),r=h(r,n,i,A,e[14],2878612391,15),A=h(A,r,n,i,e[5],4237533241,21),i=h(i,A,r,n,e[12],1700485571,6),n=h(n,i,A,r,e[3],2399980690,10),r=h(r,n,i,A,e[10],4293915773,15),A=h(A,r,n,i,e[1],2240044497,21),i=h(i,A,r,n,e[8],1873313359,6),n=h(n,i,A,r,e[15],4264355552,10),r=h(r,n,i,A,e[6],2734768916,15),A=h(A,r,n,i,e[13],1309151649,21),i=h(i,A,r,n,e[4],4149444226,6),n=h(n,i,A,r,e[11],3174756917,10),r=h(r,n,i,A,e[2],718787259,15),A=h(A,r,n,i,e[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+A|0,this._c=this._c+r|0,this._d=this._d+n|0},a.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=n.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=a},{"hash-base":137,inherits:169,"safe-buffer":198}],172:[function(e,t,i){"use strict";const A=e("is-plain-obj"),{hasOwnProperty:r}=Object.prototype,{propertyIsEnumerable:n}=Object,o=(e,t,i)=>Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0}),a=this,s={concatArrays:!1,ignoreUndefined:!1},c=e=>{const t=[];for(const i in e)r.call(e,i)&&t.push(i);if(Object.getOwnPropertySymbols){const i=Object.getOwnPropertySymbols(e);for(const A of i)n.call(e,A)&&t.push(A)}return t};function I(e){return Array.isArray(e)?function(e){const t=e.slice(0,0);return c(e).forEach((i=>{o(t,i,I(e[i]))})),t}(e):A(e)?function(e){const t=null===Object.getPrototypeOf(e)?Object.create(null):{};return c(e).forEach((i=>{o(t,i,I(e[i]))})),t}(e):e}const f=(e,t,i,A)=>(i.forEach((i=>{void 0===t[i]&&A.ignoreUndefined||(i in e&&e[i]!==Object.getPrototypeOf(e)?o(e,i,h(e[i],t[i],A)):o(e,i,I(t[i])))})),e);function h(e,t,i){return i.concatArrays&&Array.isArray(e)&&Array.isArray(t)?((e,t,i)=>{let A=e.slice(0,0),n=0;return[e,t].forEach((t=>{const a=[];for(let i=0;i!a.includes(e))),i)})),A})(e,t,i):A(t)&&A(e)?f(e,t,c(t),i):I(t)}t.exports=function(...e){const t=h(I(s),this!==a&&this||{},s);let i={_:{}};for(const r of e)if(void 0!==r){if(!A(r))throw new TypeError("`"+r+"` is not an Option Object");i=h(i,{_:r},t)}return i._}},{"is-plain-obj":170}],173:[function(e,t,i){var A=e("bn.js"),r=e("brorand");function n(e){this.rand=e||new r.Rand}t.exports=n,n.create=function(e){return new n(e)},n.prototype._randbelow=function(e){var t=e.bitLength(),i=Math.ceil(t/8);do{var r=new A(this.rand.generate(i))}while(r.cmp(e)>=0);return r},n.prototype._randrange=function(e,t){var i=t.sub(e);return e.add(this._randbelow(i))},n.prototype.test=function(e,t,i){var r=e.bitLength(),n=A.mont(e),o=new A(1).toRed(n);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var c=e.shrn(s),I=a.toRed(n);t>0;t--){var f=this._randrange(new A(2),a);i&&i(f);var h=f.toRed(n).redPow(c);if(0!==h.cmp(o)&&0!==h.cmp(I)){for(var g=1;g0;t--){var I=this._randrange(new A(2),o),f=e.gcd(I);if(0!==f.cmpn(1))return f;var h=I.toRed(r).redPow(s);if(0!==h.cmp(n)&&0!==h.cmp(c)){for(var g=1;g>8,o=255&r;n?i.push(n,o):i.push(o)}return i},A.zero2=r,A.toHex=n,A.encode=function(e,t){return"hex"===t?n(e):e}},{}],176:[function(e,t,i){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],177:[function(e,t,i){"use strict";var A=e("asn1.js");i.certificate=e("./certificate");var r=A.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));i.RSAPrivateKey=r;var n=A.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));i.RSAPublicKey=n;var o=A.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));i.PublicKey=o;var a=A.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),s=A.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));i.PrivateKey=s;var c=A.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));i.EncryptedPrivateKey=c;var I=A.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));i.DSAPrivateKey=I,i.DSAparam=A.define("DSAparam",(function(){this.int()}));var f=A.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));i.ECPrivateKey=f;var h=A.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));i.signature=A.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":178,"asn1.js":3}],178:[function(e,t,i){"use strict";var A=e("asn1.js"),r=A.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),n=A.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=A.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),a=A.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),s=A.define("RelativeDistinguishedName",(function(){this.setof(n)})),c=A.define("RDNSequence",(function(){this.seqof(s)})),I=A.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),f=A.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),h=A.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),g=A.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(I),this.key("validity").use(f),this.key("subject").use(I),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),u=A.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(g),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));t.exports=u},{"asn1.js":3}],179:[function(e,t,i){var A=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=e("evp_bytestokey"),a=e("browserify-aes"),s=e("safe-buffer").Buffer;t.exports=function(e,t){var i,c=e.toString(),I=c.match(A);if(I){var f="aes"+I[1],h=s.from(I[2],"hex"),g=s.from(I[3].replace(/[\r\n]/g,""),"base64"),u=o(t,h.slice(0,8),parseInt(I[1],10)).key,d=[],l=a.createDecipheriv(f,u,h);d.push(l.update(g)),d.push(l.final()),i=s.concat(d)}else{var B=c.match(n);i=s.from(B[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(r)[1],data:i}}},{"browserify-aes":53,evp_bytestokey:135,"safe-buffer":198}],180:[function(e,t,i){var A=e("./asn1"),r=e("./aesid.json"),n=e("./fixProc"),o=e("browserify-aes"),a=e("pbkdf2"),s=e("safe-buffer").Buffer;function c(e){var t;"object"!=typeof e||s.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=s.from(e));var i,c,I=n(e,t),f=I.tag,h=I.data;switch(f){case"CERTIFICATE":c=A.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=A.PublicKey.decode(h,"der")),i=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return A.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=A.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":h=function(e,t){var i=e.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=r[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,I=e.subjectPrivateKey,f=parseInt(n.split("-")[1],10)/8,h=a.pbkdf2Sync(t,i,A,f,"sha1"),g=o.createDecipheriv(n,h,c),u=[];return u.push(g.update(I)),u.push(g.final()),s.concat(u)}(h=A.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(i=(c=A.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return A.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:A.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=A.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return A.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return A.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:A.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=A.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+f)}}t.exports=c,c.signature=A.signature},{"./aesid.json":176,"./asn1":177,"./fixProc":179,"browserify-aes":53,pbkdf2:181,"safe-buffer":198}],181:[function(e,t,i){i.pbkdf2=e("./lib/async"),i.pbkdf2Sync=e("./lib/sync")},{"./lib/async":182,"./lib/sync":185}],182:[function(e,t,i){(function(i){(function(){var A,r,n=e("safe-buffer").Buffer,o=e("./precondition"),a=e("./default-encoding"),s=e("./sync"),c=e("./to-buffer"),I=i.crypto&&i.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function g(){return r||(r=i.process&&i.process.nextTick?i.process.nextTick:i.queueMicrotask?i.queueMicrotask:i.setImmediate?i.setImmediate:i.setTimeout)}function u(e,t,i,A,r){return I.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return I.deriveBits({name:"PBKDF2",salt:t,iterations:i,hash:{name:r}},e,A<<3)})).then((function(e){return n.from(e)}))}t.exports=function(e,t,r,d,l,B){"function"==typeof l&&(B=l,l=void 0);var p=f[(l=l||"sha1").toLowerCase()];if(p&&"function"==typeof i.Promise){if(o(r,d),e=c(e,a,"Password"),t=c(t,a,"Salt"),"function"!=typeof B)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){g()((function(){t(null,e)}))}),(function(e){g()((function(){t(e)}))}))}(function(e){if(i.process&&!i.process.browser)return Promise.resolve(!1);if(!I||!I.importKey||!I.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=u(A=A||n.alloc(8),A,10,128,e).then((function(){return!0})).catch((function(){return!1}));return h[e]=t,t}(p).then((function(i){return i?u(e,t,r,d,p):s(e,t,r,d,l)})),B)}else g()((function(){var i;try{i=s(e,t,r,d,l)}catch(e){return B(e)}B(null,i)}))}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":183,"./precondition":184,"./sync":185,"./to-buffer":186,"safe-buffer":198}],183:[function(e,t,i){(function(e,i){(function(){var A;if(i.process&&i.process.browser)A="utf-8";else if(i.process&&i.process.version){A=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else A="utf-8";t.exports=A}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:187}],184:[function(e,t,i){var A=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>A||t!=t)throw new TypeError("Bad key length")}},{}],185:[function(e,t,i){var A=e("create-hash/md5"),r=e("ripemd160"),n=e("sha.js"),o=e("safe-buffer").Buffer,a=e("./precondition"),s=e("./default-encoding"),c=e("./to-buffer"),I=o.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,i){var a=function(e){function t(t){return n(e).update(t).digest()}function i(e){return(new r).update(e).digest()}return"rmd160"===e||"ripemd160"===e?i:"md5"===e?A:t}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.length1)for(var i=1;iu||new o(t).cmp(g.modulus)>=0)throw new Error("decryption error");h=i?c(new o(t),g):a(t,g);var d=I.alloc(u-h.length);if(h=I.concat([d,h],u),4===f)return function(e,t){var i=e.modulus.byteLength(),A=s("sha1").update(I.alloc(0)).digest(),o=A.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,o+1),c=t.slice(o+1),f=n(a,r(c,o)),h=n(c,r(f,i-o-1));if(function(e,t){e=I.from(e),t=I.from(t);var i=0,A=e.length;e.length!==t.length&&(i++,A=Math.min(e.length,t.length));var r=-1;for(;++r=t.length){n++;break}var o=t.slice(2,r-1);("0002"!==A.toString("hex")&&!i||"0001"!==A.toString("hex")&&i)&&n++;o.length<8&&n++;if(n)throw new Error("decryption error");return t.slice(r)}(0,h,i);if(3===f)return h;throw new Error("unknown padding")}},{"./mgf":189,"./withPublic":192,"./xor":193,"bn.js":47,"browserify-rsa":71,"create-hash":102,"parse-asn1":180,"safe-buffer":198}],191:[function(e,t,i){var A=e("parse-asn1"),r=e("randombytes"),n=e("create-hash"),o=e("./mgf"),a=e("./xor"),s=e("bn.js"),c=e("./withPublic"),I=e("browserify-rsa"),f=e("safe-buffer").Buffer;t.exports=function(e,t,i){var h;h=e.padding?e.padding:i?1:4;var g,u=A(e);if(4===h)g=function(e,t){var i=e.modulus.byteLength(),A=t.length,c=n("sha1").update(f.alloc(0)).digest(),I=c.length,h=2*I;if(A>i-h-2)throw new Error("message too long");var g=f.alloc(i-A-h-2),u=i-I-1,d=r(I),l=a(f.concat([c,g,f.alloc(1,1),t],u),o(d,u)),B=a(d,o(l,I));return new s(f.concat([f.alloc(1),B,l],i))}(u,t);else if(1===h)g=function(e,t,i){var A,n=t.length,o=e.modulus.byteLength();if(n>o-11)throw new Error("message too long");A=i?f.alloc(o-n-3,255):function(e){var t,i=f.allocUnsafe(e),A=0,n=r(2*e),o=0;for(;A=0)throw new Error("data too long for modulus")}return i?I(g,u):c(g,u)}},{"./mgf":189,"./withPublic":192,"./xor":193,"bn.js":47,"browserify-rsa":71,"create-hash":102,"parse-asn1":180,randombytes:195,"safe-buffer":198}],192:[function(e,t,i){var A=e("bn.js"),r=e("safe-buffer").Buffer;t.exports=function(e,t){return r.from(e.toRed(A.mont(t.modulus)).redPow(new A(t.publicExponent)).fromRed().toArray())}},{"bn.js":47,"safe-buffer":198}],193:[function(e,t,i){t.exports=function(e,t){for(var i=e.length,A=-1;++ANumber(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function g(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function u(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const i=function(e){let t;switch(e.arrayFormat){case"index":return(e,i,A)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===A[e]&&(A[e]={}),A[e][t[1]]=i):A[e]=i};case"bracket":return(e,i,A)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==A[e]?A[e]=[].concat(A[e],i):A[e]=[i]:A[e]=i};case"comma":case"separator":return(t,i,A)=>{const r="string"==typeof i&&i.includes(e.arrayFormatSeparator),n="string"==typeof i&&!r&&c(i,e).includes(e.arrayFormatSeparator);i=n?c(i,e):i;const o=r||n?i.split(e.arrayFormatSeparator).map((t=>c(t,e))):null===i?i:c(i,e);A[t]=o};default:return(e,t,i)=>{void 0!==i[e]?i[e]=[].concat(i[e],t):i[e]=t}}}(t),A=Object.create(null);if("string"!=typeof e)return A;if(!(e=e.trim().replace(/^[?#&]/,"")))return A;for(const r of e.split("&")){if(""===r)continue;let[e,o]=n(t.decode?r.replace(/\+/g," "):r,"=");o=void 0===o?null:["comma","separator"].includes(t.arrayFormat)?o:c(o,t),i(c(e,t),o,A)}for(const e of Object.keys(A)){const i=A[e];if("object"==typeof i&&null!==i)for(const e of Object.keys(i))i[e]=g(i[e],t);else A[e]=g(i,t)}return!1===t.sort?A:(!0===t.sort?Object.keys(A).sort():Object.keys(A).sort(t.sort)).reduce(((e,t)=>{const i=A[t];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?e[t]=I(i):e[t]=i,e}),Object.create(null))}i.extract=h,i.parse=u,i.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const i=i=>t.skipNull&&null==e[i]||t.skipEmptyString&&""===e[i],A=function(e){switch(e.arrayFormat){case"index":return t=>(i,A)=>{const r=i.length;return void 0===A||e.skipNull&&null===A||e.skipEmptyString&&""===A?i:null===A?[...i,[s(t,e),"[",r,"]"].join("")]:[...i,[s(t,e),"[",s(r,e),"]=",s(A,e)].join("")]};case"bracket":return t=>(i,A)=>void 0===A||e.skipNull&&null===A||e.skipEmptyString&&""===A?i:null===A?[...i,[s(t,e),"[]"].join("")]:[...i,[s(t,e),"[]=",s(A,e)].join("")];case"comma":case"separator":return t=>(i,A)=>null==A||0===A.length?i:0===i.length?[[s(t,e),"=",s(A,e)].join("")]:[[i,s(A,e)].join(e.arrayFormatSeparator)];default:return t=>(i,A)=>void 0===A||e.skipNull&&null===A||e.skipEmptyString&&""===A?i:null===A?[...i,s(t,e)]:[...i,[s(t,e),"=",s(A,e)].join("")]}}(t),r={};for(const t of Object.keys(e))i(t)||(r[t]=e[t]);const n=Object.keys(r);return!1!==t.sort&&n.sort(t.sort),n.map((i=>{const r=e[i];return void 0===r?"":null===r?s(i,t):Array.isArray(r)?r.reduce(A(i),[]).join("&"):s(i,t)+"="+s(r,t)})).filter((e=>e.length>0)).join("&")},i.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[i,A]=n(e,"#");return Object.assign({url:i.split("?")[0]||"",query:u(h(e),t)},t&&t.parseFragmentIdentifier&&A?{fragmentIdentifier:c(A,t)}:{})},i.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0},t);const A=f(e.url).split("?")[0]||"",r=i.extract(e.url),n=i.parse(r,{sort:!1}),o=Object.assign(n,e.query);let a=i.stringify(o,t);a&&(a=`?${a}`);let c=function(e){let t="";const i=e.indexOf("#");return-1!==i&&(t=e.slice(i)),t}(e.url);return e.fragmentIdentifier&&(c=`#${s(e.fragmentIdentifier,t)}`),`${A}${a}${c}`},i.pick=(e,t,A)=>{A=Object.assign({parseFragmentIdentifier:!0},A);const{url:r,query:n,fragmentIdentifier:a}=i.parseUrl(e,A);return i.stringifyUrl({url:r,query:o(n,t),fragmentIdentifier:a},A)},i.exclude=(e,t,A)=>{const r=Array.isArray(t)?e=>!t.includes(e):(e,i)=>!t(e,i);return i.pick(e,r,A)}},{"decode-uri-component":107,"filter-obj":136,"split-on-first":208,"strict-uri-encode":225}],195:[function(e,t,i){(function(i,A){(function(){"use strict";var r=65536,n=4294967295;var o=e("safe-buffer").Buffer,a=A.crypto||A.msCrypto;a&&a.getRandomValues?t.exports=function(e,t){if(e>n)throw new RangeError("requested too many random bytes");var A=o.allocUnsafe(e);if(e>0)if(e>r)for(var s=0;sI||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function h(e,t,i){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>I||e<0)throw new TypeError("size must be a uint32");if(e+t>i||e>s)throw new RangeError("buffer too small")}function g(e,i,A,r){if(t.browser){var n=e.buffer,a=new Uint8Array(n,i,A);return c.getRandomValues(a),r?void t.nextTick((function(){r(null,e)})):e}if(!r)return o(A).copy(e,i),e;o(A,(function(t,A){if(t)return r(t);A.copy(e,i),r(null,e)}))}c&&c.getRandomValues||!t.browser?(i.randomFill=function(e,t,i,r){if(!(a.isBuffer(e)||e instanceof A.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)r=t,t=0,i=e.length;else if("function"==typeof i)r=i,i=e.length-t;else if("function"!=typeof r)throw new TypeError('"cb" argument must be a function');return f(t,e.length),h(i,t,e.length),g(e,t,i,r)},i.randomFillSync=function(e,t,i){void 0===t&&(t=0);if(!(a.isBuffer(e)||e instanceof A.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(t,e.length),void 0===i&&(i=e.length-t);return h(i,t,e.length),g(e,t,i)}):(i.randomFill=r,i.randomFillSync=r)}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:187,randombytes:195,"safe-buffer":198}],197:[function(e,t,i){"use strict";var A=e("buffer").Buffer,r=e("inherits"),n=e("hash-base"),o=new Array(16),a=[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],s=[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],c=[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],I=[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],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function g(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function u(e,t){return e<>>32-t}function d(e,t,i,A,r,n,o,a){return u(e+(t^i^A)+n+o|0,a)+r|0}function l(e,t,i,A,r,n,o,a){return u(e+(t&i|~t&A)+n+o|0,a)+r|0}function B(e,t,i,A,r,n,o,a){return u(e+((t|~i)^A)+n+o|0,a)+r|0}function p(e,t,i,A,r,n,o,a){return u(e+(t&A|i&~A)+n+o|0,a)+r|0}function C(e,t,i,A,r,n,o,a){return u(e+(t^(i|~A))+n+o|0,a)+r|0}r(g,n),g.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var i=0|this._a,A=0|this._b,r=0|this._c,n=0|this._d,g=0|this._e,Q=0|this._a,E=0|this._b,y=0|this._c,b=0|this._d,m=0|this._e,w=0;w<80;w+=1){var v,D;w<16?(v=d(i,A,r,n,g,e[a[w]],f[0],c[w]),D=C(Q,E,y,b,m,e[s[w]],h[0],I[w])):w<32?(v=l(i,A,r,n,g,e[a[w]],f[1],c[w]),D=p(Q,E,y,b,m,e[s[w]],h[1],I[w])):w<48?(v=B(i,A,r,n,g,e[a[w]],f[2],c[w]),D=B(Q,E,y,b,m,e[s[w]],h[2],I[w])):w<64?(v=p(i,A,r,n,g,e[a[w]],f[3],c[w]),D=l(Q,E,y,b,m,e[s[w]],h[3],I[w])):(v=C(i,A,r,n,g,e[a[w]],f[4],c[w]),D=d(Q,E,y,b,m,e[s[w]],h[4],I[w])),i=g,g=n,n=u(r,10),r=A,A=v,Q=m,m=b,b=u(y,10),y=E,E=D}var S=this._b+r+b|0;this._b=this._c+n+m|0,this._c=this._d+g+Q|0,this._d=this._e+i+E|0,this._e=this._a+A+y|0,this._a=S},g.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=A.alloc?A.alloc(20):new A(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=g},{buffer:99,"hash-base":137,inherits:169}],198:[function(e,t,i){ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ -var A=e("buffer"),r=A.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?t.exports=A:(n(A,i),i.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 A=r(e);return void 0!==t?"string"==typeof i?A.fill(t,i):A.fill(t):A.fill(0),A},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 A.SlowBuffer(e)}},{buffer:99}],199:[function(e,t,i){(function(i){(function(){"use strict";var A,r=e("buffer"),n=r.Buffer,o={};for(A in r)r.hasOwnProperty(A)&&"SlowBuffer"!==A&&"Buffer"!==A&&(o[A]=r[A]);var a=o.Buffer={};for(A in n)n.hasOwnProperty(A)&&"allocUnsafe"!==A&&"allocUnsafeSlow"!==A&&(a[A]=n[A]);if(o.Buffer.prototype=n.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(e,t,i){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return n(e,t,i)}),a.alloc||(a.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var A=n(e);return t&&0!==t.length?"string"==typeof i?A.fill(t,i):A.fill(t):A.fill(0),A}),!o.kStringMaxLength)try{o.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o}).call(this)}).call(this,e("_process"))},{_process:187,buffer:99}],200:[function(e,t,i){var A=e("safe-buffer").Buffer;function r(e,t){this._block=A.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}r.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=A.from(e,t));for(var i=this._block,r=this._blockSize,n=e.length,o=this._len,a=0;a=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 A=(4294967295&i)>>>0,r=(i-A)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(A,this._blockSize-4)}this._update(this._block);var n=this._hash();return e?n.toString(e):n},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},{"safe-buffer":198}],201:[function(e,t,i){(i=t.exports=function(e){e=e.toLowerCase();var t=i[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),i.sha1=e("./sha1"),i.sha224=e("./sha224"),i.sha256=e("./sha256"),i.sha384=e("./sha384"),i.sha512=e("./sha512")},{"./sha":202,"./sha1":203,"./sha224":204,"./sha256":205,"./sha384":206,"./sha512":207}],202:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e){return e<<30|e>>>2}function I(e,t,i,A){return 0===e?t&i|~t&A:2===e?t&i|t&A|i&A:t^i^A}A(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,f=0;f<16;++f)i[f]=e.readInt32BE(4*f);for(;f<80;++f)i[f]=i[f-3]^i[f-8]^i[f-14]^i[f-16];for(var h=0;h<80;++h){var g=~~(h/20),u=0|((t=A)<<5|t>>>27)+I(g,r,n,a)+s+i[h]+o[g];s=a,a=n,n=c(r),r=A,A=u}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=n.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},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],203:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e){return e<<5|e>>>27}function I(e){return e<<30|e>>>2}function f(e,t,i,A){return 0===e?t&i|~t&A:2===e?t&i|t&A|i&A:t^i^A}A(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,h=0;h<16;++h)i[h]=e.readInt32BE(4*h);for(;h<80;++h)i[h]=(t=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|t>>>31;for(var g=0;g<80;++g){var u=~~(g/20),d=c(A)+f(u,r,n,a)+s+i[g]+o[u]|0;s=a,a=n,n=I(r),r=A,A=d}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=n.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},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],204:[function(e,t,i){var A=e("inherits"),r=e("./sha256"),n=e("./hash"),o=e("safe-buffer").Buffer,a=new Array(64);function s(){this.init(),this._w=a,n.call(this,64,56)}A(s,r),s.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},s.prototype._hash=function(){var e=o.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},t.exports=s},{"./hash":200,"./sha256":205,inherits:169,"safe-buffer":198}],205:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[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],a=new Array(64);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e,t,i){return i^e&(t^i)}function I(e,t,i){return e&t|i&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function g(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}A(s,r),s.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},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,u=0|this._f,d=0|this._g,l=0|this._h,B=0;B<16;++B)i[B]=e.readInt32BE(4*B);for(;B<64;++B)i[B]=0|(((t=i[B-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+i[B-7]+g(i[B-15])+i[B-16];for(var p=0;p<64;++p){var C=l+h(s)+c(s,u,d)+o[p]+i[p]|0,Q=f(A)+I(A,r,n)|0;l=d,d=u,u=s,s=a+C|0,a=n,n=r,r=A,A=C+Q|0}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=d+this._g|0,this._h=l+this._h|0},s.prototype._hash=function(){var e=n.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},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],206:[function(e,t,i){var A=e("inherits"),r=e("./sha512"),n=e("./hash"),o=e("safe-buffer").Buffer,a=new Array(160);function s(){this.init(),this._w=a,n.call(this,128,112)}A(s,r),s.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},s.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,i,A){e.writeInt32BE(t,A),e.writeInt32BE(i,A+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},t.exports=s},{"./hash":200,"./sha512":207,inherits:169,"safe-buffer":198}],207:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[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],a=new Array(160);function s(){this.init(),this._w=a,r.call(this,128,112)}function c(e,t,i){return i^e&(t^i)}function I(e,t,i){return e&t|i&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function g(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function d(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function B(e,t){return e>>>0>>0?1:0}A(s,r),s.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},s.prototype._update=function(e){for(var t=this._w,i=0|this._ah,A=0|this._bh,r=0|this._ch,n=0|this._dh,a=0|this._eh,s=0|this._fh,p=0|this._gh,C=0|this._hh,Q=0|this._al,E=0|this._bl,y=0|this._cl,b=0|this._dl,m=0|this._el,w=0|this._fl,v=0|this._gl,D=0|this._hl,S=0;S<32;S+=2)t[S]=e.readInt32BE(4*S),t[S+1]=e.readInt32BE(4*S+4);for(;S<160;S+=2){var F=t[S-30],k=t[S-30+1],M=g(F,k),N=u(k,F),U=d(F=t[S-4],k=t[S-4+1]),G=l(k,F),H=t[S-14],_=t[S-14+1],R=t[S-32],K=t[S-32+1],q=N+_|0,x=M+H+B(q,N)|0;x=(x=x+U+B(q=q+G|0,G)|0)+R+B(q=q+K|0,K)|0,t[S]=x,t[S+1]=q}for(var J=0;J<160;J+=2){x=t[J],q=t[J+1];var Y=I(i,A,r),O=I(Q,E,y),L=f(i,Q),P=f(Q,i),z=h(a,m),Z=h(m,a),T=o[J],X=o[J+1],V=c(a,s,p),j=c(m,w,v),W=D+Z|0,$=C+z+B(W,D)|0;$=($=($=$+V+B(W=W+j|0,j)|0)+T+B(W=W+X|0,X)|0)+x+B(W=W+q|0,q)|0;var ee=P+O|0,te=L+Y+B(ee,P)|0;C=p,D=v,p=s,v=w,s=a,w=m,a=n+$+B(m=b+W|0,b)|0,n=r,b=y,r=A,y=E,A=i,E=Q,i=$+te+B(Q=W+ee|0,W)|0}this._al=this._al+Q|0,this._bl=this._bl+E|0,this._cl=this._cl+y|0,this._dl=this._dl+b|0,this._el=this._el+m|0,this._fl=this._fl+w|0,this._gl=this._gl+v|0,this._hl=this._hl+D|0,this._ah=this._ah+i+B(this._al,Q)|0,this._bh=this._bh+A+B(this._bl,E)|0,this._ch=this._ch+r+B(this._cl,y)|0,this._dh=this._dh+n+B(this._dl,b)|0,this._eh=this._eh+a+B(this._el,m)|0,this._fh=this._fh+s+B(this._fl,w)|0,this._gh=this._gh+p+B(this._gl,v)|0,this._hh=this._hh+C+B(this._hl,D)|0},s.prototype._hash=function(){var e=n.allocUnsafe(64);function t(t,i,A){e.writeInt32BE(t,A),e.writeInt32BE(i,A+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},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],208:[function(e,t,i){"use strict";t.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const i=e.indexOf(t);return-1===i?[e]:[e.slice(0,i),e.slice(i+t.length)]}},{}],209:[function(e,t,i){t.exports=r;var A=e("events").EventEmitter;function r(){A.call(this)}e("inherits")(r,A),r.Readable=e("readable-stream/lib/_stream_readable.js"),r.Writable=e("readable-stream/lib/_stream_writable.js"),r.Duplex=e("readable-stream/lib/_stream_duplex.js"),r.Transform=e("readable-stream/lib/_stream_transform.js"),r.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),r.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),r.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),r.Stream=r,r.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(I(),0===A.listenerCount(this,"error"))throw e}function I(){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",I),i.removeListener("close",I),e.removeListener("close",I)}return i.on("error",c),e.on("error",c),i.on("end",I),i.on("close",I),e.on("close",I),e.emit("pipe",i),e}},{events:134,inherits:169,"readable-stream/lib/_stream_duplex.js":211,"readable-stream/lib/_stream_passthrough.js":212,"readable-stream/lib/_stream_readable.js":213,"readable-stream/lib/_stream_transform.js":214,"readable-stream/lib/_stream_writable.js":215,"readable-stream/lib/internal/streams/end-of-stream.js":219,"readable-stream/lib/internal/streams/pipeline.js":221}],210:[function(e,t,i){arguments[4][80][0].apply(i,arguments)},{dup:80}],211:[function(e,t,i){arguments[4][81][0].apply(i,arguments)},{"./_stream_readable":213,"./_stream_writable":215,_process:187,dup:81,inherits:169}],212:[function(e,t,i){arguments[4][82][0].apply(i,arguments)},{"./_stream_transform":214,dup:82,inherits:169}],213:[function(e,t,i){arguments[4][83][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,"./internal/streams/async_iterator":216,"./internal/streams/buffer_list":217,"./internal/streams/destroy":218,"./internal/streams/from":220,"./internal/streams/state":222,"./internal/streams/stream":223,_process:187,buffer:99,dup:83,events:134,inherits:169,"string_decoder/":224,util:50}],214:[function(e,t,i){arguments[4][84][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,dup:84,inherits:169}],215:[function(e,t,i){arguments[4][85][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,"./internal/streams/destroy":218,"./internal/streams/state":222,"./internal/streams/stream":223,_process:187,buffer:99,dup:85,inherits:169,"util-deprecate":226}],216:[function(e,t,i){arguments[4][86][0].apply(i,arguments)},{"./end-of-stream":219,_process:187,dup:86}],217:[function(e,t,i){arguments[4][87][0].apply(i,arguments)},{buffer:99,dup:87,util:50}],218:[function(e,t,i){arguments[4][88][0].apply(i,arguments)},{_process:187,dup:88}],219:[function(e,t,i){arguments[4][89][0].apply(i,arguments)},{"../../../errors":210,dup:89}],220:[function(e,t,i){arguments[4][90][0].apply(i,arguments)},{dup:90}],221:[function(e,t,i){arguments[4][91][0].apply(i,arguments)},{"../../../errors":210,"./end-of-stream":219,dup:91}],222:[function(e,t,i){arguments[4][92][0].apply(i,arguments)},{"../../../errors":210,dup:92}],223:[function(e,t,i){arguments[4][93][0].apply(i,arguments)},{dup:93,events:134}],224:[function(e,t,i){arguments[4][95][0].apply(i,arguments)},{dup:95,"safe-buffer":198}],225:[function(e,t,i){"use strict";t.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},{}],226:[function(e,t,i){(function(e){(function(){function i(t){try{if(!e.localStorage)return!1}catch(e){return!1}var i=e.localStorage[t];return null!=i&&"true"===String(i).toLowerCase()}t.exports=function(e,t){if(i("noDeprecation"))return e;var A=!1;return function(){if(!A){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),A=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],227:[function(e,t,i){!function(e){"use strict";e.exports.is_uri=i,e.exports.is_http_uri=A,e.exports.is_https_uri=r,e.exports.is_web_uri=n,e.exports.isUri=i,e.exports.isHttpUri=A,e.exports.isHttpsUri=r,e.exports.isWebUri=n;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function i(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var i,A,r,n,o,a="",s="";if(a=(i=t(e))[1],A=i[2],r=i[3],n=i[4],o=i[5],a&&a.length&&r.length>=0){if(A&&A.length){if(0!==r.length&&!/^\//.test(r))return}else if(/^\/\//.test(r))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(a.toLowerCase()))return s+=a+":",A&&A.length&&(s+="//"+A),s+=r,n&&n.length&&(s+="?"+n),o&&o.length&&(s+="#"+o),s}}}function A(e,A){if(i(e)){var r,n,o,a,s="",c="",I="",f="";if(s=(r=t(e))[1],c=r[2],n=r[3],o=r[4],a=r[5],s){if(A){if("https"!=s.toLowerCase())return}else if("http"!=s.toLowerCase())return;if(c)return/:(\d+)$/.test(c)&&(I=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),f+=s+":",f+="//"+c,I&&(f+=I),f+=n,o&&o.length&&(f+="?"+o),a&&a.length&&(f+="#"+a),f}}}function r(e){return A(e,!0)}function n(e){return A(e)||r(e)}}(t)},{}],228:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=Pe(e("./lib/toDate")),n=Pe(e("./lib/toFloat")),o=Pe(e("./lib/toInt")),a=Pe(e("./lib/toBoolean")),s=Pe(e("./lib/equals")),c=Pe(e("./lib/contains")),I=Pe(e("./lib/matches")),f=Pe(e("./lib/isEmail")),h=Pe(e("./lib/isURL")),g=Pe(e("./lib/isMACAddress")),u=Pe(e("./lib/isIP")),d=Pe(e("./lib/isIPRange")),l=Pe(e("./lib/isFQDN")),B=Pe(e("./lib/isDate")),p=Pe(e("./lib/isBoolean")),C=Pe(e("./lib/isLocale")),Q=Le(e("./lib/isAlpha")),E=Le(e("./lib/isAlphanumeric")),y=Pe(e("./lib/isNumeric")),b=Pe(e("./lib/isPassportNumber")),m=Pe(e("./lib/isPort")),w=Pe(e("./lib/isLowercase")),v=Pe(e("./lib/isUppercase")),D=Pe(e("./lib/isIMEI")),S=Pe(e("./lib/isAscii")),F=Pe(e("./lib/isFullWidth")),k=Pe(e("./lib/isHalfWidth")),M=Pe(e("./lib/isVariableWidth")),N=Pe(e("./lib/isMultibyte")),U=Pe(e("./lib/isSemVer")),G=Pe(e("./lib/isSurrogatePair")),H=Pe(e("./lib/isInt")),_=Le(e("./lib/isFloat")),R=Pe(e("./lib/isDecimal")),K=Pe(e("./lib/isHexadecimal")),q=Pe(e("./lib/isOctal")),x=Pe(e("./lib/isDivisibleBy")),J=Pe(e("./lib/isHexColor")),Y=Pe(e("./lib/isRgbColor")),O=Pe(e("./lib/isHSL")),L=Pe(e("./lib/isISRC")),P=Le(e("./lib/isIBAN")),z=Pe(e("./lib/isBIC")),Z=Pe(e("./lib/isMD5")),T=Pe(e("./lib/isHash")),X=Pe(e("./lib/isJWT")),V=Pe(e("./lib/isJSON")),j=Pe(e("./lib/isEmpty")),W=Pe(e("./lib/isLength")),$=Pe(e("./lib/isByteLength")),ee=Pe(e("./lib/isUUID")),te=Pe(e("./lib/isMongoId")),ie=Pe(e("./lib/isAfter")),Ae=Pe(e("./lib/isBefore")),re=Pe(e("./lib/isIn")),ne=Pe(e("./lib/isCreditCard")),oe=Pe(e("./lib/isIdentityCard")),ae=Pe(e("./lib/isEAN")),se=Pe(e("./lib/isISIN")),ce=Pe(e("./lib/isISBN")),Ie=Pe(e("./lib/isISSN")),fe=Pe(e("./lib/isTaxID")),he=Le(e("./lib/isMobilePhone")),ge=Pe(e("./lib/isEthereumAddress")),ue=Pe(e("./lib/isCurrency")),de=Pe(e("./lib/isBtcAddress")),le=Pe(e("./lib/isISO8601")),Be=Pe(e("./lib/isRFC3339")),pe=Pe(e("./lib/isISO31661Alpha2")),Ce=Pe(e("./lib/isISO31661Alpha3")),Qe=Pe(e("./lib/isISO4217")),Ee=Pe(e("./lib/isBase32")),ye=Pe(e("./lib/isBase58")),be=Pe(e("./lib/isBase64")),me=Pe(e("./lib/isDataURI")),we=Pe(e("./lib/isMagnetURI")),ve=Pe(e("./lib/isMimeType")),De=Pe(e("./lib/isLatLong")),Se=Le(e("./lib/isPostalCode")),Fe=Pe(e("./lib/ltrim")),ke=Pe(e("./lib/rtrim")),Me=Pe(e("./lib/trim")),Ne=Pe(e("./lib/escape")),Ue=Pe(e("./lib/unescape")),Ge=Pe(e("./lib/stripLow")),He=Pe(e("./lib/whitelist")),_e=Pe(e("./lib/blacklist")),Re=Pe(e("./lib/isWhitelisted")),Ke=Pe(e("./lib/normalizeEmail")),qe=Pe(e("./lib/isSlug")),xe=Pe(e("./lib/isLicensePlate")),Je=Pe(e("./lib/isStrongPassword")),Ye=Pe(e("./lib/isVAT"));function Oe(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Oe=function(){return e},e}function Le(e){if(e&&e.__esModule)return e;if(null===e||"object"!==A(e)&&"function"!=typeof e)return{default:e};var t=Oe();if(t&&t.has(e))return t.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,t&&t.set(e,i),i}function Pe(e){return e&&e.__esModule?e:{default:e}}var ze={version:"13.7.0",toDate:r.default,toFloat:n.default,toInt:o.default,toBoolean:a.default,equals:s.default,contains:c.default,matches:I.default,isEmail:f.default,isURL:h.default,isMACAddress:g.default,isIP:u.default,isIPRange:d.default,isFQDN:l.default,isBoolean:p.default,isIBAN:P.default,isBIC:z.default,isAlpha:Q.default,isAlphaLocales:Q.locales,isAlphanumeric:E.default,isAlphanumericLocales:E.locales,isNumeric:y.default,isPassportNumber:b.default,isPort:m.default,isLowercase:w.default,isUppercase:v.default,isAscii:S.default,isFullWidth:F.default,isHalfWidth:k.default,isVariableWidth:M.default,isMultibyte:N.default,isSemVer:U.default,isSurrogatePair:G.default,isInt:H.default,isIMEI:D.default,isFloat:_.default,isFloatLocales:_.locales,isDecimal:R.default,isHexadecimal:K.default,isOctal:q.default,isDivisibleBy:x.default,isHexColor:J.default,isRgbColor:Y.default,isHSL:O.default,isISRC:L.default,isMD5:Z.default,isHash:T.default,isJWT:X.default,isJSON:V.default,isEmpty:j.default,isLength:W.default,isLocale:C.default,isByteLength:$.default,isUUID:ee.default,isMongoId:te.default,isAfter:ie.default,isBefore:Ae.default,isIn:re.default,isCreditCard:ne.default,isIdentityCard:oe.default,isEAN:ae.default,isISIN:se.default,isISBN:ce.default,isISSN:Ie.default,isMobilePhone:he.default,isMobilePhoneLocales:he.locales,isPostalCode:Se.default,isPostalCodeLocales:Se.locales,isEthereumAddress:ge.default,isCurrency:ue.default,isBtcAddress:de.default,isISO8601:le.default,isRFC3339:Be.default,isISO31661Alpha2:pe.default,isISO31661Alpha3:Ce.default,isISO4217:Qe.default,isBase32:Ee.default,isBase58:ye.default,isBase64:be.default,isDataURI:me.default,isMagnetURI:we.default,isMimeType:ve.default,isLatLong:De.default,ltrim:Fe.default,rtrim:ke.default,trim:Me.default,escape:Ne.default,unescape:Ue.default,stripLow:Ge.default,whitelist:He.default,blacklist:_e.default,isWhitelisted:Re.default,normalizeEmail:Ke.default,toString:toString,isSlug:qe.default,isStrongPassword:Je.default,isTaxID:fe.default,isDate:B.default,isLicensePlate:xe.default,isVAT:Ye.default,ibanLocales:P.locales};i.default=ze,t.exports=i.default,t.exports.default=i.default},{"./lib/blacklist":230,"./lib/contains":231,"./lib/equals":232,"./lib/escape":233,"./lib/isAfter":234,"./lib/isAlpha":235,"./lib/isAlphanumeric":236,"./lib/isAscii":237,"./lib/isBIC":238,"./lib/isBase32":239,"./lib/isBase58":240,"./lib/isBase64":241,"./lib/isBefore":242,"./lib/isBoolean":243,"./lib/isBtcAddress":244,"./lib/isByteLength":245,"./lib/isCreditCard":246,"./lib/isCurrency":247,"./lib/isDataURI":248,"./lib/isDate":249,"./lib/isDecimal":250,"./lib/isDivisibleBy":251,"./lib/isEAN":252,"./lib/isEmail":253,"./lib/isEmpty":254,"./lib/isEthereumAddress":255,"./lib/isFQDN":256,"./lib/isFloat":257,"./lib/isFullWidth":258,"./lib/isHSL":259,"./lib/isHalfWidth":260,"./lib/isHash":261,"./lib/isHexColor":262,"./lib/isHexadecimal":263,"./lib/isIBAN":264,"./lib/isIMEI":265,"./lib/isIP":266,"./lib/isIPRange":267,"./lib/isISBN":268,"./lib/isISIN":269,"./lib/isISO31661Alpha2":270,"./lib/isISO31661Alpha3":271,"./lib/isISO4217":272,"./lib/isISO8601":273,"./lib/isISRC":274,"./lib/isISSN":275,"./lib/isIdentityCard":276,"./lib/isIn":277,"./lib/isInt":278,"./lib/isJSON":279,"./lib/isJWT":280,"./lib/isLatLong":281,"./lib/isLength":282,"./lib/isLicensePlate":283,"./lib/isLocale":284,"./lib/isLowercase":285,"./lib/isMACAddress":286,"./lib/isMD5":287,"./lib/isMagnetURI":288,"./lib/isMimeType":289,"./lib/isMobilePhone":290,"./lib/isMongoId":291,"./lib/isMultibyte":292,"./lib/isNumeric":293,"./lib/isOctal":294,"./lib/isPassportNumber":295,"./lib/isPort":296,"./lib/isPostalCode":297,"./lib/isRFC3339":298,"./lib/isRgbColor":299,"./lib/isSemVer":300,"./lib/isSlug":301,"./lib/isStrongPassword":302,"./lib/isSurrogatePair":303,"./lib/isTaxID":304,"./lib/isURL":305,"./lib/isUUID":306,"./lib/isUppercase":307,"./lib/isVAT":308,"./lib/isVariableWidth":309,"./lib/isWhitelisted":310,"./lib/ltrim":311,"./lib/matches":312,"./lib/normalizeEmail":313,"./lib/rtrim":314,"./lib/stripLow":315,"./lib/toBoolean":316,"./lib/toDate":317,"./lib/toFloat":318,"./lib/toInt":319,"./lib/trim":320,"./lib/unescape":321,"./lib/whitelist":328}],229:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.commaDecimal=i.dotDecimal=i.farsiLocales=i.arabicLocales=i.englishLocales=i.decimal=i.alphanumeric=i.alpha=void 0;var A={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i};i.alpha=A;var r={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i};i.alphanumeric=r;var n={"en-US":".",ar:"٫"};i.decimal=n;var o=["AU","GB","HK","IN","NZ","ZA","ZM"];i.englishLocales=o;for(var a,s=0;si.minOccurrences;return e.split((0,r.default)(t)).length>i.minOccurrences};var A=o(e("./util/assertString")),r=o(e("./util/toString")),n=o(e("./util/merge"));function o(e){return e&&e.__esModule?e:{default:e}}var a={ignoreCase:!1,minOccurrences:1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325,"./util/toString":327}],232:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),e===t};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],233:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],234:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,A.default)(e);var i=(0,r.default)(t),n=(0,r.default)(e);return!!(n&&i&&n>i)};var A=n(e("./util/assertString")),r=n(e("./toDate"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./toDate":317,"./util/assertString":323}],235:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.default)(e);var A=e,o=i.ignore;if(o)if(o instanceof RegExp)A=A.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");A=A.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in n.alpha)return n.alpha[t].test(A);throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.alpha);i.locales=o},{"./alpha":229,"./util/assertString":323}],236:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.default)(e);var A=e,o=i.ignore;if(o)if(o instanceof RegExp)A=A.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");A=A.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in n.alphanumeric)return n.alphanumeric[t].test(A);throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.alphanumeric);i.locales=o},{"./alpha":229,"./util/assertString":323}],237:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[\x00-\x7F]+$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],238:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),!n.CountryCodes.has(e.slice(4,6).toUpperCase()))return!1;return o.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./isISO31661Alpha2");var o=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;t.exports=i.default,t.exports.default=i.default},{"./isISO31661Alpha2":270,"./util/assertString":323}],239:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),e.length%8==0&&n.test(e))return!0;return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z2-7]+=*$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],240:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),n.test(e))return!0;return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-HJ-NP-Za-km-z1-9]*$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],241:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e),t=(0,r.default)(t,s);var i=e.length;if(t.urlSafe)return a.test(e);if(i%4!=0||o.test(e))return!1;var n=e.indexOf("=");return-1===n||n===i-1||n===i-2&&"="===e[i-1]};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/[^A-Z0-9+\/=]/i,a=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],242:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,A.default)(e);var i=(0,r.default)(t),n=(0,r.default)(e);return!!(n&&i&&n1&&void 0!==arguments[1]?arguments[1]:n;if((0,r.default)(e),t.loose)return a.includes(e.toLowerCase());return o.includes(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={loose:!1},o=["true","false","1","0"],a=[].concat(o,["yes","no"]);t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],244:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),e.startsWith("bc1"))return n.test(e);return o.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(bc1)[a-z0-9]{25,39}$/,o=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],245:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i,A;(0,r.default)(e),"object"===n(t)?(i=t.min||0,A=t.max):(i=arguments[1],A=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=i&&(void 0===A||o<=A)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],246:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.replace(/[- ]+/g,"");if(!n.test(t))return!1;for(var i,A,o,a=0,s=t.length-1;s>=0;s--)i=t.substring(s,s+1),A=parseInt(i,10),a+=o&&(A*=2)>=10?A%10+1:A,o=!o;return!(a%10!=0||!t)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],247:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,i){0!==i&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var i="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),A="-?",r="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),n="(".concat(["0","[1-9]\\d*",r].join("|"),")?"),o="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),a=n+(e.allow_decimal||e.require_decimal?o:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?a+=A:e.negative_sign_before_digits&&(a=A+a));e.allow_negative_sign_placeholder?a="( (?!\\-))?".concat(a):e.allow_space_after_symbol?a=" ?".concat(a):e.allow_space_after_digits&&(a+="( (?!$))?");e.symbol_after_digits?a+=i:a=i+a;e.allow_negatives&&(e.parens_for_negatives?a="(\\(".concat(a,"\\)|").concat(a,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(a=A+a));return new RegExp("^(?!-? )(?=.*\\d)".concat(a,"$"))}(t=(0,A.default)(t,o)).test(e)};var A=n(e("./util/merge")),r=n(e("./util/assertString"));function n(e){return e&&e.__esModule?e:{default:e}}var o={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],248:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.split(",");if(t.length<2)return!1;var i=t.shift().trim().split(";"),A=i.shift();if("data:"!==A.substr(0,5))return!1;var s=A.substr(5);if(""!==s&&!n.test(s))return!1;for(var c=0;c=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}(s);try{for(I.s();!(i=I.n()).done;){var f=(u=i.value,d=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],A=!0,r=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(A=(o=a.next()).done)&&(i.push(o.value),!t||i.length!==t);A=!0);}catch(e){r=!0,n=e}finally{try{A||null==a.return||a.return()}finally{if(r)throw n}}return i}(u,d)||n(u,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=f[0],g=f[1];if(h.length!==g.length)return!1;c[g.charAt(0)]=h}}catch(e){I.e(e)}finally{I.f()}return new Date("".concat(c.m,"/").concat(c.d,"/").concat(c.y)).getDate()===+c.d}var u,d;var l;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var A,r=(A=e("./util/merge"))&&A.__esModule?A:{default:A};function n(e,t){if(e){if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i$)/g,""),s.endsWith(" ")&&(s=s.substr(0,s.length-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(s))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var l=e.split("@"),B=l.pop(),p=B.toLowerCase();if(t.host_blacklist.includes(p))return!1;var C=l.join("@");if(t.domain_specific_validation&&("gmail.com"===p||"googlemail.com"===p)){var Q=(C=C.toLowerCase()).split("+")[0];if(!(0,n.default)(Q.replace(/\./g,""),{min:6,max:30}))return!1;for(var E=Q.split("."),y=0;y63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],257:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e),t=t||{};var i=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?n.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||"-"===e||"+"===e)return!1;var A=parseFloat(e.replace(",","."));return i.test(e)&&(!t.hasOwnProperty("min")||A>=t.min)&&(!t.hasOwnProperty("max")||A<=t.max)&&(!t.hasOwnProperty("lt")||At.gt)},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.decimal);i.locales=o},{"./alpha":229,"./util/assertString":323}],258:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)},i.fullWidth=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;i.fullWidth=n},{"./util/assertString":323}],259:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return n.test(t);return o.test(t)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,o=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],260:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)},i.halfWidth=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;i.halfWidth=n},{"./util/assertString":323}],261:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),new RegExp("^[a-fA-F0-9]{".concat(n[t],"}$")).test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],262:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],263:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(0x|0h)?[0-9A-F]+$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],264:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),i=t.slice(0,2).toUpperCase();return i in n&&n[i].test(t)}(e)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var o=Object.keys(n);i.locales=o},{"./util/assertString":323}],265:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=n;(t=t||{}).allow_hyphens&&(i=o);if(!i.test(e))return!1;e=e.replace(/-/g,"");for(var A=0,a=2,s=0;s<14;s++){var c=e.substring(14-s-1,14-s),I=parseInt(c,10)*a;A+=I>=10?I%10+1:I,1===a?a+=1:a-=1}if((10-A%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[0-9]{15}$/,o=/^\d{2}-\d{6}-\d{6}-\d{1}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],266:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),!(i=String(i)))return e(t,4)||e(t,6);if("4"===i){if(!a.test(t))return!1;var A=t.split(".").sort((function(e,t){return e-t}));return A[3]<=255}if("6"===i)return!!c.test(t);return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(n,"[.]){3}").concat(n),a=new RegExp("^".concat(o,"$")),s="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(o,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(o,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(o,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(o,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(o,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(o,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(o,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],267:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,A.default)(e);var i=e.split("/");if(2!==i.length)return!1;if(!o.test(i[1]))return!1;if(i[1].length>1&&i[1].startsWith("0"))return!1;var n=(0,r.default)(i[0],t);if(!n)return!1;var s=null;switch(String(t)){case"4":s=32;break;case"6":s=a;break;default:s=(0,r.default)(i[0],"6")?a:32}return i[1]<=s&&i[1]>=0};var A=n(e("./util/assertString")),r=n(e("./isIP"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^\d{1,3}$/,a=128;t.exports=i.default,t.exports.default=i.default},{"./isIP":266,"./util/assertString":323}],268:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),!(i=String(i)))return e(t,10)||e(t,13);var A,s=t.replace(/[\s-]+/g,""),c=0;if("10"===i){if(!n.test(s))return!1;for(A=0;A<9;A++)c+=(A+1)*s.charAt(A);if("X"===s.charAt(9)?c+=100:c+=10*s.charAt(9),c%11==0)return!!s}else if("13"===i){if(!o.test(s))return!1;for(A=0;A<12;A++)c+=a[A%2]*s.charAt(A);if(s.charAt(12)-(10-c%10)%10==0)return!!s}return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[0-9]{9}X|[0-9]{10})$/,o=/^(?:[0-9]{13})$/,a=[1,3];t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],269:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),!n.test(e))return!1;for(var t=!0,i=0,A=e.length-2;A>=0;A--)if(e[A]>="A"&&e[A]<="Z")for(var o=e[A].charCodeAt(0)-55,a=o%10,s=Math.trunc(o/10),c=0,I=[a,s];c=5?1+2*(f-5):2*f:f,t=!t}else{var h=e[A].charCodeAt(0)-"0".charCodeAt(0);i+=t?h>=5?1+2*(h-5):2*h:h,t=!t}var g=10*Math.trunc((i+9)/10)-i;return+e[e.length-1]===g};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],270:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())},i.CountryCodes=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["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","BL","BM","BN","BO","BQ","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","EH","ER","ES","ET","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","MF","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","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var o=n;i.CountryCodes=o},{"./util/assertString":323}],271:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],272:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())},i.CurrencyCodes=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var o=n;i.CurrencyCodes=o},{"./util/assertString":323}],273:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=t.strictSeparator?o.test(e):n.test(e);return i&&t.strict?a(e):i};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var i=Number(t[1]),A=Number(t[2]);return i%4==0&&i%100!=0||i%400==0?A<=366:A<=365}var r=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),n=r[1],o=r[2],a=r[3],s=o?"0".concat(o).slice(-2):o,c=a?"0".concat(a).slice(-2):a,I=new Date("".concat(n,"-").concat(s||"01","-").concat(c||"01"));return!o||!a||I.getUTCFullYear()===n&&I.getUTCMonth()+1===o&&I.getUTCDate()===a};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],274:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],275:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=n;if(i=t.require_hyphen?i.replace("?",""):i,!(i=t.case_sensitive?new RegExp(i):new RegExp(i,"i")).test(e))return!1;for(var A=e.replace("-","").toUpperCase(),o=0,a=0;a=2&&t===11-i},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var i=t.split("").map(Number),A=(11-(3*i[0]+7*i[1]+6*i[2]+1*i[3]+8*i[4]+9*i[5]+4*i[6]+5*i[7]+2*i[8])%11)%11,r=(11-(5*i[0]+4*i[1]+3*i[2]+2*i[3]+7*i[4]+6*i[5]+5*i[6]+4*i[7]+3*i[8]+2*A)%11)%11;return A===i[9]&&r===i[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,i=0;i<12;i++)t+=parseInt(e[i],10)*(13-i);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var i,A=t,r=0,n=0;n9?i-9:i;return r%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,i=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],A=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],r=["1","0","X","9","8","7","6","5","4","3","2"],n=function(e){return i.includes(e)},o=function(e){var t=parseInt(e.substring(0,4),10),i=parseInt(e.substring(4,6),10),A=parseInt(e.substring(6),10),r=new Date(t,i-1,A);return!(r>new Date)&&(r.getFullYear()===t&&r.getMonth()===i-1&&r.getDate()===A)},a=function(e){return function(e){for(var t=e.substring(0,17),i=0,n=0;n<17;n++)i+=parseInt(t.charAt(n),10)*parseInt(A[n],10);return r[i%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var i=e.substring(0,2);if(!(t=n(i)))return!1;var A="19".concat(e.substring(6,12));return!!(t=o(A))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var i=e.substring(0,2);if(!(t=n(i)))return!1;var A=e.substring(6,14);return!!(t=o(A))&&a(e)}(t))},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},i=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(i)&&Array.from(i).reduce((function(e,i,A){if(0===A){var r=t[i];return r%10*9+Math.floor(r/10)}return 9===A?(10-e%10-Number(i))%10==0:e+Number(i)*(9-A)}),0)}};t.exports=i.default,t.exports.default=i.default},{"./isInt":278,"./util/assertString":323}],277:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i;if((0,A.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var n=[];for(i in t)({}).hasOwnProperty.call(t,i)&&(n[i]=(0,r.default)(t[i]));return n.indexOf(e)>=0}if("object"===o(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var A=n(e("./util/assertString")),r=n(e("./util/toString"));function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/toString":327}],278:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?n:o,A=!t.hasOwnProperty("min")||e>=t.min,a=!t.hasOwnProperty("max")||e<=t.max,s=!t.hasOwnProperty("lt")||et.gt;return i.test(e)&&A&&a&&s&&c};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,o=/^[-+]?[0-9]+$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],279:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e);try{t=(0,r.default)(t,a);var i=[];t.allow_primitives&&(i=[null,!1,!0]);var n=JSON.parse(e);return i.includes(n)||!!n&&"object"===o(n)}catch(e){}return!1};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a={allow_primitives:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],280:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,A.default)(e);var t=e.split("."),i=t.length;if(i>3||i<2)return!1;return t.reduce((function(e,t){return e&&(0,r.default)(t,{urlSafe:!0})}),!0)};var A=n(e("./util/assertString")),r=n(e("./isBase64"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./isBase64":241,"./util/assertString":323}],281:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,A.default)(e),t=(0,r.default)(t,I),!e.includes(","))return!1;var i=e.split(",");if(i[0].startsWith("(")&&!i[1].endsWith(")")||i[1].endsWith(")")&&!i[0].startsWith("("))return!1;if(t.checkDMS)return s.test(i[0])&&c.test(i[1]);return o.test(i[0])&&a.test(i[1])};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,a=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,s=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,c=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,I={checkDMS:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],282:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i,A;(0,r.default)(e),"object"===n(t)?(i=t.min||0,A=t.max):(i=arguments[1]||0,A=arguments[2]);var o=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],a=e.length-o.length;return a>=i&&(void 0===A||a<=A)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],283:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t in n)return n[t](e);if("any"===t){for(var i in n){if((0,n[i])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={"cs-CZ":function(e){return/^(([ABCDEFHKIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((AW|UL|AK|GA|AÖ|LF|AZ|AM|AS|ZE|AN|AB|A|KG|KH|BA|EW|BZ|HY|KM|BT|HP|B|BC|BI|BO|FN|TT|ÜB|BN|AH|BS|FR|HB|ZZ|BB|BK|BÖ|OC|OK|CW|CE|C|CO|LH|CB|KW|LC|LN|DA|DI|DE|DH|SY|NÖ|DO|DD|DU|DN|D|EI|EA|EE|FI|EM|EL|EN|PF|ED|EF|ER|AU|ZP|E|ES|NT|EU|FL|FO|FT|FF|F|FS|FD|FÜ|GE|G|GI|GF|GS|ZR|GG|GP|GR|NY|ZI|GÖ|GZ|GT|HA|HH|HM|HU|WL|HZ|WR|RN|HK|HD|HN|HS|GK|HE|HF|RZ|HI|HG|HO|HX|IK|IL|IN|J|JL|KL|KA|KS|KF|KE|KI|KT|KO|KN|KR|KC|KU|K|LD|LL|LA|L|OP|LM|LI|LB|LU|LÖ|HL|LG|MD|GN|MZ|MA|ML|MR|MY|AT|DM|MC|NZ|RM|RG|MM|ME|MB|MI|FG|DL|HC|MW|RL|MK|MG|MÜ|WS|MH|M|MS|NU|NB|ND|NM|NK|NW|NR|NI|NF|DZ|EB|OZ|TG|TO|N|OA|GM|OB|CA|EH|FW|OF|OL|OE|OG|BH|LR|OS|AA|GD|OH|KY|NP|WK|PB|PA|PE|PI|PS|P|PM|PR|RA|RV|RE|R|H|SB|WN|RS|RD|RT|BM|NE|GV|RP|SU|GL|RO|GÜ|RH|EG|RW|PN|SK|MQ|RU|SZ|RI|SL|SM|SC|HR|FZ|VS|SW|SN|CR|SE|SI|SO|LP|SG|NH|SP|IZ|ST|BF|TE|HV|OD|SR|S|AC|DW|ZW|TF|TS|TR|TÜ|UM|PZ|TP|UE|UN|UH|MN|KK|VB|V|AE|PL|RC|VG|GW|PW|VR|VK|KB|WA|WT|BE|WM|WE|AP|MO|WW|FB|WZ|WI|WB|JE|WF|WO|W|WÜ|BL|Z|GC)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(AIC|FDB|ABG|SLN|SAW|KLZ|BUL|ESB|NAB|SUL|WST|ABI|AZE|BTF|KÖT|DKB|FEU|ROT|ALZ|SMÜ|WER|AUR|NOR|DÜW|BRK|HAB|TÖL|WOR|BAD|BAR|BER|BIW|EBS|KEM|MÜB|PEG|BGL|BGD|REI|WIL|BKS|BIR|WAT|BOR|BOH|BOT|BRB|BLK|HHM|NEB|NMB|WSF|LEO|HDL|WMS|WZL|BÜS|CHA|KÖZ|ROD|WÜM|CLP|NEC|COC|ZEL|COE|CUX|DAH|LDS|DEG|DEL|RSL|DLG|DGF|LAN|HEI|MED|DON|KIB|ROK|JÜL|MON|SLE|EBE|EIC|HIG|WBS|BIT|PRÜ|LIB|EMD|WIT|ERH|HÖS|ERZ|ANA|ASZ|MAB|MEK|STL|SZB|FDS|HCH|HOR|WOL|FRG|GRA|WOS|FRI|FFB|GAP|GER|BRL|CLZ|GTH|NOH|HGW|GRZ|LÖB|NOL|WSW|DUD|HMÜ|OHA|KRU|HAL|HAM|HBS|QLB|HVL|NAU|HAS|EBN|GEO|HOH|HDH|ERK|HER|WAN|HEF|ROF|HBN|ALF|HSK|USI|NAI|REH|SAN|KÜN|ÖHR|HOL|WAR|ARN|BRG|GNT|HOG|WOH|KEH|MAI|PAR|RID|ROL|KLE|GEL|KUS|KYF|ART|SDH|LDK|DIL|MAL|VIB|LER|BNA|GHA|GRM|MTL|WUR|LEV|LIF|STE|WEL|LIP|VAI|LUP|HGN|LBZ|LWL|PCH|STB|DAN|MKK|SLÜ|MSP|TBB|MGH|MTK|BIN|MSH|EIL|HET|SGH|BID|MYK|MSE|MST|MÜR|WRN|MEI|GRH|RIE|MZG|MIL|OBB|BED|FLÖ|MOL|FRW|SEE|SRB|AIB|MOS|BCH|ILL|SOB|NMS|NEA|SEF|UFF|NEW|VOH|NDH|TDO|NWM|GDB|GVM|WIS|NOM|EIN|GAN|LAU|HEB|OHV|OSL|SFB|ERB|LOS|BSK|KEL|BSB|MEL|WTL|OAL|FÜS|MOD|OHZ|OPR|BÜR|PAF|PLÖ|CAS|GLA|REG|VIT|ECK|SIM|GOA|EMS|DIZ|GOH|RÜD|SWA|NES|KÖN|MET|LRO|BÜZ|DBR|ROS|TET|HRO|ROW|BRV|HIP|PAN|GRI|SHK|EIS|SRO|SOK|LBS|SCZ|MER|QFT|SLF|SLS|HOM|SLK|ASL|BBG|SBK|SFT|SHG|MGN|MEG|ZIG|SAD|NEN|OVI|SHA|BLB|SIG|SON|SPN|FOR|GUB|SPB|IGB|WND|STD|STA|SDL|OBG|HST|BOG|SHL|PIR|FTL|SEB|SÖM|SÜW|TIR|SAB|TUT|ANG|SDT|LÜN|LSZ|MHL|VEC|VER|VIE|OVL|ANK|OVP|SBG|UEM|UER|WLG|GMN|NVP|RDG|RÜG|DAU|FKB|WAF|WAK|SLZ|WEN|SOG|APD|WUG|GUN|ESW|WIZ|WES|DIN|BRA|BÜD|WHV|HWI|GHC|WTM|WOB|WUN|MAK|SEL|OCH|HOT|WDA)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)}};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],284:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],285:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e===e.toLowerCase()};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],286:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t&&(t.no_colons||t.no_separators))return o.test(e);return n.test(e)||a.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,o=/^([0-9a-fA-F]){12}$/,a=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],287:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[a-f0-9]{32}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],288:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e.trim())};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^magnet:\?xt(?:\.1)?=urn:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?($|&)/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],289:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)||o.test(e)||a.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i,o=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,a=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],290:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){if((0,r.default)(e),i&&i.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(n.hasOwnProperty(t)&&n[t].test(e))return!0;return!1}));if(t in n)return n[t].test(e);if(!t||"any"===t){for(var A in n){if(n.hasOwnProperty(A))if(n[A].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)[569]\d{7}$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)[1|3])([0|5][0-45-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|91|9[3-9])\d{7}$/,"el-GR":/^(\+?30|0)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}))/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(5|79)\d{7}$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"ms-MY":/^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[2-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-RO":/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/};n["en-CA"]=n["en-US"],n["fr-CA"]=n["en-CA"],n["fr-BE"]=n["nl-BE"],n["zh-HK"]=n["en-HK"],n["zh-MO"]=n["en-MO"],n["ga-IE"]=n["en-IE"],n["fr-CH"]=n["de-CH"],n["it-CH"]=n["fr-CH"];var o=Object.keys(n);i.locales=o},{"./util/assertString":323}],291:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,A.default)(e),(0,r.default)(e)&&24===e.length};var A=n(e("./util/assertString")),r=n(e("./isHexadecimal"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./isHexadecimal":263,"./util/assertString":323}],292:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[^\x00-\x7F]/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],293:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t&&t.no_symbols)return o.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?n.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=/^[0-9]+$/;t.exports=i.default,t.exports.default=i.default},{"./alpha":229,"./util/assertString":323}],294:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(0o)?[0-7]+$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],295:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in n&&n[t].test(i)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],296:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e,{min:0,max:65535})};var A,r=(A=e("./isInt"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./isInt":278}],297:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t in s)return s[t].test(e);if("any"===t){for(var i in s){if(s.hasOwnProperty(i))if(s[i].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^\d{4}$/,o=/^\d{5}$/,a=/^\d{6}$/,s={AD:/^AD\d{3}$/,AT:n,AU:n,AZ:/^AZ\d{4}$/,BE:n,BG:n,BR:/^\d{5}-\d{3}$/,BY:/2[1-4]{1}\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:n,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:o,DK:n,DO:o,DZ:o,EE:o,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:o,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:n,ID:o,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/\b(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}\b/,IS:/^\d{3}$/,IT:o,JP:/^\d{3}\-\d{4}$/,KE:o,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:n,LV:/^LV\-\d{4}$/,LK:o,MX:o,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:o,NL:/^\d{4}\s?[a-z]{2}$/i,NO:n,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:n,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:a,RU:a,SA:o,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:a,SI:n,SK:/^\d{3}\s?\d{2}$/,TH:o,TN:n,TW:/^\d{3}(\d{2})?$/,UA:o,US:/^\d{5}(-\d{4})?$/,ZA:n,ZM:o},c=Object.keys(s);i.locales=c},{"./util/assertString":323}],298:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),h.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/([01][0-9]|2[0-3])/,o=/[0-5][0-9]/,a=new RegExp("[-+]".concat(n.source,":").concat(o.source)),s=new RegExp("([zZ]|".concat(a.source,")")),c=new RegExp("".concat(n.source,":").concat(o.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),I=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),f=new RegExp("".concat(c.source).concat(s.source)),h=new RegExp("^".concat(I.source,"[ tT]").concat(f.source,"$"));t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],299:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,r.default)(e),!t)return n.test(e)||o.test(e);return n.test(e)||o.test(e)||a.test(e)||s.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,o=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,a=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)/,s=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],300:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,A.default)(e),n.test(e)};var A=r(e("./util/assertString"));function r(e){return e&&e.__esModule?e:{default:e}}var n=(0,r(e("./util/multilineRegex")).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/multilineRegex":326}],301:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],302:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,r.default)(e);var i=f(e);if((t=(0,A.default)(t||{},I)).returnScore)return h(i,t);return i.length>=t.minLength&&i.lowercaseCount>=t.minLowercase&&i.uppercaseCount>=t.minUppercase&&i.numberCount>=t.minNumbers&&i.symbolCount>=t.minSymbols};var A=n(e("./util/merge")),r=n(e("./util/assertString"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^[A-Z]$/,a=/^[a-z]$/,s=/^[0-9]$/,c=/^[-#!$@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,I={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function f(e){var t,i,A=(t=e,i={},Array.from(t).forEach((function(e){i[e]?i[e]+=1:i[e]=1})),i),r={length:e.length,uniqueChars:Object.keys(A).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(A).forEach((function(e){o.test(e)?r.uppercaseCount+=A[e]:a.test(e)?r.lowercaseCount+=A[e]:s.test(e)?r.numberCount+=A[e]:c.test(e)&&(r.symbolCount+=A[e])})),r}function h(e,t){var i=0;return i+=e.uniqueChars*t.pointsPerUnique,i+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(i+=t.pointsForContainingLower),e.uppercaseCount>0&&(i+=t.pointsForContainingUpper),e.numberCount>0&&(i+=t.pointsForContainingNumber),e.symbolCount>0&&(i+=t.pointsForContainingSymbol),i}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],303:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],304:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,r.default)(e);var i=e.slice(0);if(t in g)return t in l&&(i=i.replace(l[t],"")),!!g[t].test(i)&&(!(t in u)||u[t](i));throw new Error("Invalid locale '".concat(t,"'"))};var r=s(e("./util/assertString")),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==A(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}i.default=e,t&&t.set(e,i);return i}(e("./util/algorithms")),o=s(e("./isDate"));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return I(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i0){if(t&&!i&&!/[AEIOU]/.test(e[A]))return!1;if(i&&!/X/.test(e[A]))return!1}return!0}var g={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};g["lb-LU"]=g["fr-LU"],g["lt-LT"]=g["et-EE"],g["nl-BE"]=g["fr-BE"];var u={"bg-BG":function(e){var t=e.slice(0,2),i=parseInt(e.slice(2,4),10);i>40?(i-=40,t="20".concat(t)):i>20?(i-=20,t="18".concat(t)):t="19".concat(t),i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),n=[2,4,8,5,10,9,7,3,6],a=0,s=0;s50&&(i-=50),i>20){if(parseInt(t,10)<2004)return!1;i-=20}i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var r=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===r))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return n.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=[],A=0;A1}))).length&&3!==i.length)return!1;if(3===i[0].length){for(var o=i[0].split("").map((function(e){return parseInt(e,10)})),a=0,s=0;s58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var i="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=4,a=0;a<9;a++)r+=A[a]*n,1===(n-=1)&&(n=7);return 1!==(r%=11)&&(0===r?0===A[9]:A[9]===11-r)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),i=0,A=1;A4&&(i+=2));return String.fromCharCode(i%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=0,A=0;A<8;A++)i+=t[A]*Math.pow(2,8-A);return i%11%10===t[8]},"en-IE":function(e){var t=n.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in f)f.hasOwnProperty(t)&&e.push.apply(e,c(f[t]));return e}().indexOf(e.substr(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var i=0;switch(t[0]){case"Y":i=1;break;case"Z":i=2}t.splice(0,1,i)}else for(;t.length<9;)t.unshift(0);t=t.join("");var A=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][A]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=1,a=0;a<10;a++)r+=A[a]*n,10===(n+=1)&&(n=1);if(r%11==10){r=0,n=3;for(var s=0;s<10;s++)r+=A[s]*n,10===(n+=1)&&(n=1);if(r%11==10)return 0===A[10]}return r%11===A[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;var A=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return A<10?A===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][A-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,o.default)(t,"YY/MM/DD"))return!1}var i=97-parseInt(e.slice(0,9),10)%97,A=parseInt(e.slice(9,11),10);return i===A||(i=97-parseInt("2".concat(e.slice(0,9)),10)%97)===A},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,o.default)(t,"YYYY/MM/DD")&&(!!n.luhnCheck(e.slice(0,12))&&n.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return n.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=8,A=1;A<9;A++)i+=t[A]*(A+1);return i%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!h(t.slice(0,3)))return!1;if(!h(t.slice(3,6)))return!1;for(var i={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},A=0,r=[6,7,9,10,12,13,14];A40&&(s-=40),s<10&&(s="0".concat(s));var c="".concat(t[6]).concat(t[7],"/").concat(a,"/").concat(s);if(!(0,o.default)(c,"YY/MM/DD"))return!1;for(var I=0,f=1;f4&&(l+=2)}I+=l}return String.fromCharCode(65+I%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var i=e.slice(4,6);switch(e[6]){case"0":i="18".concat(i);break;case"1":i="19".concat(i);break;default:i="20".concat(i)}var A="".concat(i,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,o.default)(A,"YYYY/MM/DD"))return!1}for(var r=1101,n=[1,6,3,7,9,10,5,8,4,2],a=0;a32e3)return!1;if(i===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return n.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],i=0,A=0;A80?(r="18".concat(r),n-=80):n>60?(r="22".concat(r),n-=60):n>40?(r="21".concat(r),n-=40):n>20?(r="20".concat(r),n-=20):r="19".concat(r),n<10&&(n="0".concat(n));var a="".concat(r,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,o.default)(a,"YYYY/MM/DD"))return!1;for(var s=0,c=1,I=0;I10?c=1:5===c&&(c+=2);return(s=10-s%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,i;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var A=1;A<=9;A++)t+=parseInt(e.substring(A-1,A),10)*(11-A);if(10===(i=10*t%11)&&(i=0),i!==parseInt(e.substring(9,10),10))return!1;t=0;for(var r=1;r<=10;r++)t+=parseInt(e.substring(r-1,r),10)*(12-r);return 10===(i=10*t%11)&&(i=0),i===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var n=e.length-2,o=e.substring(0,n),a=e.substring(n),s=0,c=n-7,I=n;I>=1;I--)s+=o.charAt(n-I)*c,(c-=1)<2&&(c=9);var f=s%11<2?0:11-s%11;if(f!==parseInt(a.charAt(0),10))return!1;n+=1,o=e.substring(0,n),s=0,c=n-7;for(var h=n;h>=1;h--)s+=o.charAt(n-h)*c,(c-=1)<2&&(c=9);return(f=s%11<2?0:11-s%11)===parseInt(a.charAt(1),10)},"pt-PT":function(e){var t=11-n.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===i.length){if(!(0,o.default)(i,"YY/MM/DD"))return!1}else if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=[2,7,9,1,4,6,3,5,8,2,7,9],n=0,a=0;a53)return!1;t=t<10?"190".concat(t):"19".concat(t);var i=parseInt(e.slice(2,4),10);i>50&&(i-=50),i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-n.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var i="",A=t.slice(2,4),r=parseInt(t.slice(4,6),10);if(e.length>11)i=e.slice(0,4);else if(i=e.slice(0,2),11===e.length&&r<60){var a=(new Date).getFullYear().toString(),s=parseInt(a.slice(0,2),10);if(a=parseInt(a,10),"-"===e[6])i=parseInt("".concat(s).concat(i),10)>a?"".concat(s-1).concat(i):"".concat(s).concat(i);else if(i="".concat(s-1).concat(i),a-parseInt(i,10)<100)return!1}r>60&&(r-=60),r<10&&(r="0".concat(r));var c="".concat(i,"/").concat(A,"/").concat(r);if(8===c.length){if(!(0,o.default)(c,"YY/MM/DD"))return!1}else if(!(0,o.default)(c,"YYYY/MM/DD"))return!1;return n.luhnCheck(e.replace(/\W/,""))}};u["lb-LU"]=u["fr-LU"],u["lt-LT"]=u["et-EE"],u["nl-BE"]=u["fr-BE"];var d=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,l={"de-AT":d,"de-DE":/[\/\\]/g,"fr-BE":d};l["nl-BE"]=l["fr-BE"],t.exports=i.default,t.exports.default=i.default},{"./isDate":249,"./util/algorithms":322,"./util/assertString":323}],305:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,A.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,o.default)(t,c)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var i,a,h,g,u,d,l,B;if(l=e.split("#"),e=l.shift(),l=e.split("?"),e=l.shift(),(l=e.split("://")).length>1){if(i=l.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(i))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;l[0]=e.substr(2)}}if(""===(e=l.join("://")))return!1;if(l=e.split("/"),""===(e=l.shift())&&!t.require_host)return!0;if((l=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===l[0])return!1;if((a=l.shift()).indexOf(":")>=0&&a.split(":").length>2)return!1;var p=a.split(":"),C=(b=2,function(e){if(Array.isArray(e))return e}(y=p)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],A=!0,r=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(A=(o=a.next()).done)&&(i.push(o.value),!t||i.length!==t);A=!0);}catch(e){r=!0,n=e}finally{try{A||null==a.return||a.return()}finally{if(r)throw n}}return i}}(y,b)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(e,t):void 0}}(y,b)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),Q=C[0],E=C[1];if(""===Q&&""===E)return!1}var y,b;g=l.join("@"),d=null,B=null;var m=g.match(I);m?(h="",B=m[1],d=m[2]||null):(l=g.split(":"),h=l.shift(),l.length&&(d=l.join(":")));if(null!==d&&d.length>0){if(u=parseInt(d,10),!/^[0-9]+$/.test(d)||u<=0||u>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return f(h,t.host_whitelist);if(!((0,n.default)(h)||(0,r.default)(h,t)||B&&(0,n.default)(B,6)))return!1;if(h=h||B,t.host_blacklist&&f(h,t.host_blacklist))return!1;return!0};var A=a(e("./util/assertString")),r=a(e("./isFQDN")),n=a(e("./isIP")),o=a(e("./util/merge"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i=0;i--)if(-1===t.indexOf(e[i]))return!1;return!0};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],311:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(i,"")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],312:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){(0,r.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,i));return t.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],313:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){t=(0,r.default)(t,n);var i=e.split("@"),A=i.pop(),f=[i.join("@"),A];if(f[1]=f[1].toLowerCase(),"gmail.com"===f[1]||"googlemail.com"===f[1]){if(t.gmail_remove_subaddress&&(f[0]=f[0].split("+")[0]),t.gmail_remove_dots&&(f[0]=f[0].replace(/\.+/g,I)),!f[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]=t.gmail_convert_googlemaildotcom?"gmail.com":f[1]}else if(o.indexOf(f[1])>=0){if(t.icloud_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(f[0]=f[0].toLowerCase())}else if(a.indexOf(f[1])>=0){if(t.outlookdotcom_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(f[0]=f[0].toLowerCase())}else if(s.indexOf(f[1])>=0){if(t.yahoo_remove_subaddress){var h=f[0].split("-");f[0]=h.length>1?h.slice(0,-1).join("-"):h[0]}if(!f[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(f[0]=f[0].toLowerCase())}else c.indexOf(f[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]="yandex.ru"):t.all_lowercase&&(f[0]=f[0].toLowerCase());return f.join("@")};var A,r=(A=e("./util/merge"))&&A.__esModule?A:{default:A};var n={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},o=["icloud.com","me.com"],a=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],s=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],c=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function I(e){return e.length>1?e:""}t.exports=i.default,t.exports.default=i.default},{"./util/merge":325}],314:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t){var i=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(i,"")}var A=e.length-1;for(;/\s/.test(e.charAt(A));)A-=1;return e.slice(0,A+1)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],315:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e);var i=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(e,i)};var A=n(e("./util/assertString")),r=n(e("./blacklist"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./blacklist":230,"./util/assertString":323}],316:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],317:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],318:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e)?parseFloat(e):NaN};var A,r=(A=e("./isFloat"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./isFloat":257}],319:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),parseInt(e,t||10)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],320:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,A.default)((0,r.default)(e,t),t)};var A=n(e("./rtrim")),r=n(e("./ltrim"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./ltrim":311,"./rtrim":314}],321:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],322:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.iso7064Check=function(e){for(var t=10,i=0;i=0;A--){if(i){var r=2*parseInt(e[A],10);t+=r>9?r.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):r}else t+=parseInt(e[A],10);i=!i}return t%10==0},i.reverseMultiplyAndSum=function(e,t){for(var i=0,A=0;A0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var i in t)void 0===e[i]&&(e[i]=t[i]);return e},t.exports=i.default,t.exports.default=i.default},{}],326:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i=e.join("");return new RegExp(i,t)},t.exports=i.default,t.exports.default=i.default},{}],327:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){"object"===A(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},t.exports=i.default,t.exports.default=i.default},{}],328:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],329:[function(e,t,i){t.exports={name:"doipjs",version:"0.18.0",description:"Decentralized Online Identity Proofs library in Node.js",main:"./src/index.js",dependencies:{"@openpgp/hkp-client":"^0.0.2","@openpgp/wkd-client":"^0.0.3","@xmpp/client":"^0.13.1","@xmpp/debug":"^0.13.0",axios:"^0.25.0","browser-or-node":"^1.3.0",cors:"^2.8.5",dotenv:"^8.2.0",express:"^4.17.1","express-validator":"^6.10.0","hash-wasm":"^4.9.0","irc-upd":"^0.11.0",jsdom:"^20.0.0","merge-options":"^3.0.3",openpgp:"^5.5.0","query-string":"^6.14.1","valid-url":"^1.0.9",validator:"^13.5.2"},devDependencies:{browserify:"^17.0.0","browserify-shim":"^3.8.14",chai:"^4.2.0","chai-as-promised":"^7.1.1","chai-match-pattern":"^1.2.0","clean-jsdoc-theme":"^3.2.4",husky:"^7.0.0",jsdoc:"^3.6.6","license-check-and-add":"^4.0.3","lint-staged":"^11.0.0",minify:"^9.1",mocha:"^9.2.0",nodemon:"^2.0.19",standard:"^16.0.3"},scripts:{release:"yarn run test && yarn run release:bundle && yarn run release:minify","release:bundle":"./node_modules/.bin/browserify ./src/index.js --standalone doip -x openpgp -x jsdom -x @xmpp/client -x @xmpp/debug -x irc-upd -o ./dist/doip.js","release:minify":"./node_modules/.bin/minify ./dist/doip.js > ./dist/doip.min.js","license:check":"./node_modules/.bin/license-check-and-add check","license:add":"./node_modules/.bin/license-check-and-add add","license:remove":"./node_modules/.bin/license-check-and-add remove","docs:lib":"./node_modules/.bin/jsdoc -c jsdoc-lib.json -r -d ./docs -P package.json","standard:check":"./node_modules/.bin/standard ./src","standard:fix":"./node_modules/.bin/standard --fix ./src",mocha:"./node_modules/.bin/mocha",test:"yarn run standard:check && yarn run license:check && yarn run mocha",prepare:"husky install"},repository:{type:"git",url:"https://codeberg.org/keyoxide/doipjs"},homepage:"https://js.doip.rocks",keywords:["pgp","gpg","openpgp","encryption","decentralized","identity"],author:"Yarmo Mackenbach (https://yarmo.eu)",license:"Apache-2.0",browserify:{transform:["browserify-shim"]},"browserify-shim":{openpgp:"global:openpgp"}}},{}],330:[function(e,t,i){const A=e("validator"),r=e("valid-url"),n=e("merge-options"),o=e("./proofs"),a=e("./verifications"),s=e("./claimDefinitions"),c=e("./defaults"),I=e("./enums");t.exports=class{constructor(e,t){if("object"==typeof e&&"claimVersion"in e){const t=e;if(1!==t.claimVersion)throw new Error("Invalid claim version");return this._uri=t.uri,this._fingerprint=t.fingerprint,this._status=t.status,this._matches=t.matches,void(this._verification=t.verification)}if(e&&!r.isUri(e))throw new Error("Invalid URI");if(t)try{A.isAlphanumeric(t)}catch(e){throw new Error("Invalid fingerprint")}this._uri=e||"",this._fingerprint=t||"",this._status=I.ClaimStatus.INIT,this._matches=[],this._verification={}}get uri(){return this._uri}get fingerprint(){return this._fingerprint}get status(){return this._status}get matches(){if(this._status===I.ClaimStatus.INIT)throw new Error("This claim has not yet been matched");return this._matches}get verification(){if(this._status!==I.ClaimStatus.VERIFIED)throw new Error("This claim has not yet been verified");return this._verification}set uri(e){if(this._status!==I.ClaimStatus.INIT)throw new Error("Cannot change the URI, this claim has already been matched");if(e.length>0&&!r.isUri(e))throw new Error("The URI was invalid");e=e.replace(/^\s+|\s+$/g,""),this._uri=e}set fingerprint(e){if(this._status===I.ClaimStatus.VERIFIED)throw new Error("Cannot change the fingerprint, this claim has already been verified");this._fingerprint=e}set status(e){throw new Error("Cannot change a claim's status")}set matches(e){throw new Error("Cannot change a claim's matches")}set verification(e){throw new Error("Cannot change a claim's verification result")}match(){if(this._status!==I.ClaimStatus.INIT)throw new Error("This claim was already matched");if(0===this._uri.length||!r.isUri(this._uri))throw new Error("This claim has no URI");this._matches=[],s.list.every(((e,t)=>{const i=s.data[e];if(!i.reURI.test(this._uri))return!0;const A=i.processURI(this._uri);return!A||(A.match.isAmbiguous?(this._matches.push(A),!0):(this._matches=[A],!1))})),this._status=I.ClaimStatus.MATCHED}async verify(e){if(this._status===I.ClaimStatus.INIT)throw new Error("This claim has not yet been matched");if(this._status===I.ClaimStatus.VERIFIED)throw new Error("This claim has already been verified");if(0===this._fingerprint.length)throw new Error("This claim has no fingerprint");e=n(c.opts,e||{}),0===this._matches.length&&(this._verification={result:!1,completed:!0,proof:{},errors:["No matches for claim"]});for(let t=0;t1||this._matches[0].match.isAmbiguous}toJSON(){return{claimVersion:1,uri:this._uri,fingerprint:this._fingerprint,status:this._status,matches:this._matches,verification:this._verification}}}},{"./claimDefinitions":339,"./defaults":351,"./enums":352,"./proofs":364,"./verifications":367,"merge-options":172,"valid-url":227,validator:228}],331:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/?/,n={postprocess:(e,t)=>(e.profile.display=`${t.result.preferredUsername}@${new URL(t.result.url).hostname}`,{claimData:e,proofData:t})};i.reURI=r,i.processURI=e=>({serviceprovider:{type:"web",name:"activitypub"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:e,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.ACTIVITYPUB,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:e}}},claim:[{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["summary"]},{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["attachment","value"]},{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["content"]}]}),i.functions=n,i.tests=[{uri:"https://domain.org",shouldMatch:!0},{uri:"https://domain.org/@/alice/",shouldMatch:!0},{uri:"https://domain.org/@alice",shouldMatch:!0},{uri:"https://domain.org/@alice/123456",shouldMatch:!0},{uri:"https://domain.org/u/alice/",shouldMatch:!0},{uri:"https://domain.org/users/alice/",shouldMatch:!0},{uri:"https://domain.org/users/alice/123456",shouldMatch:!0},{uri:"http://domain.org/alice",shouldMatch:!1}]},{"../enums":352}],332:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/dev\.to\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"devto"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://dev.to/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://dev.to/api/articles/${t[1]}/${t[2]}`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["body_markdown"]}]}},i.tests=[{uri:"https://dev.to/alice/post",shouldMatch:!0},{uri:"https://dev.to/alice/post/",shouldMatch:!0},{uri:"https://domain.org/alice/post",shouldMatch:!1}]},{"../enums":352}],333:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/u\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"discourse"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/u/${t[2]}.json`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["user","bio_raw"]}]}},i.tests=[{uri:"https://domain.org/u/alice",shouldMatch:!0},{uri:"https://domain.org/u/alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":352}],334:[function(e,t,i){const A=e("../enums"),r=/^dns:([a-zA-Z0-9.\-_]*)(?:\?(.*))?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"dns"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://${t[1]}`,qr:null},proof:{uri:null,request:{fetcher:A.Fetcher.DNS,access:A.ProofAccess.SERVER,format:A.ProofFormat.JSON,data:{domain:t[1]}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["records","txt"]}]}},i.tests=[{uri:"dns:domain.org",shouldMatch:!0},{uri:"dns:domain.org?type=TXT",shouldMatch:!0},{uri:"https://domain.org",shouldMatch:!1}]},{"../enums":352}],335:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/(.*)\/gitea_proof\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"gitea"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:`https://${t[1]}/${t[2]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/api/v1/repos/${t[2]}/gitea_proof`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["description"]}]}},i.tests=[{uri:"https://domain.org/alice/gitea_proof",shouldMatch:!0},{uri:"https://domain.org/alice/gitea_proof/",shouldMatch:!0},{uri:"https://domain.org/alice/other_proof",shouldMatch:!1}]},{"../enums":352}],336:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/gist\.github\.com\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"github"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://github.com/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://api.github.com/gists/${t[2]}`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["files","openpgp.md","content"]}]}},i.tests=[{uri:"https://gist.github.com/Alice/123456789",shouldMatch:!0},{uri:"https://gist.github.com/Alice/123456789/",shouldMatch:!0},{uri:"https://domain.org/Alice/123456789",shouldMatch:!1}]},{"../enums":352}],337:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/(.*)\/gitlab_proof\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"gitlab"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:`https://${t[1]}/${t[2]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/api/v4/projects/${t[2]}%2Fgitlab_proof`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["description"]}]}},i.tests=[{uri:"https://gitlab.domain.org/alice/gitlab_proof",shouldMatch:!0},{uri:"https://gitlab.domain.org/alice/gitlab_proof/",shouldMatch:!0},{uri:"https://domain.org/alice/other_proof",shouldMatch:!1}]},{"../enums":352}],338:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/news\.ycombinator\.com\/user\?id=(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"hackernews"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://hacker-news.firebaseio.com/v0/user/${t[1]}.json`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://hacker-news.firebaseio.com/v0/user/${t[1]}.json`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["about"]}]}},i.tests=[{uri:"https://news.ycombinator.com/user?id=Alice",shouldMatch:!0},{uri:"https://news.ycombinator.com/user?id=Alice/",shouldMatch:!0},{uri:"https://domain.org/user?id=Alice",shouldMatch:!1}]},{"../enums":352}],339:[function(e,t,i){const A={dns:e("./dns"),irc:e("./irc"),xmpp:e("./xmpp"),matrix:e("./matrix"),telegram:e("./telegram"),twitter:e("./twitter"),reddit:e("./reddit"),liberapay:e("./liberapay"),lichess:e("./lichess"),hackernews:e("./hackernews"),lobsters:e("./lobsters"),devto:e("./devto"),gitea:e("./gitea"),gitlab:e("./gitlab"),github:e("./github"),activitypub:e("./activitypub"),discourse:e("./discourse"),owncast:e("./owncast"),stackexchange:e("./stackexchange")};i.list=Object.keys(A),i.data=A},{"./activitypub":331,"./devto":332,"./discourse":333,"./dns":334,"./gitea":335,"./github":336,"./gitlab":337,"./hackernews":338,"./irc":340,"./liberapay":341,"./lichess":342,"./lobsters":343,"./matrix":344,"./owncast":345,"./reddit":346,"./stackexchange":347,"./telegram":348,"./twitter":349,"./xmpp":350}],340:[function(e,t,i){const A=e("../enums"),r=/^irc:\/\/(.*)\/([a-zA-Z0-9\-[\]\\`_^{|}]*)/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"irc"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`irc://${t[1]}/${t[2]}`,uri:e,qr:null},proof:{uri:null,request:{fetcher:A.Fetcher.IRC,access:A.ProofAccess.SERVER,format:A.ProofFormat.JSON,data:{domain:t[1],nick:t[2]}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}]}},i.tests=[{uri:"irc://chat.ircserver.org/Alice1",shouldMatch:!0},{uri:"irc://chat.ircserver.org/alice?param=123",shouldMatch:!0},{uri:"irc://chat.ircserver.org/alice_bob",shouldMatch:!0},{uri:"https://chat.ircserver.org/alice",shouldMatch:!1}]},{"../enums":352}],341:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/liberapay\.com\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"liberapay"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://liberapay.com/${t[1]}/public.json`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["statements","content"]}]}},i.tests=[{uri:"https://liberapay.com/alice",shouldMatch:!0},{uri:"https://liberapay.com/alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":352}],342:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/lichess\.org\/@\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"lichess"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://lichess.org/api/user/${t[1]}`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://lichess.org/api/user/${t[1]}`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["profile","links"]}]}},i.tests=[{uri:"https://lichess.org/@/Alice",shouldMatch:!0},{uri:"https://lichess.org/@/Alice/",shouldMatch:!0},{uri:"https://domain.org/@/Alice",shouldMatch:!1}]},{"../enums":352}],343:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/lobste\.rs\/u\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"lobsters"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://lobste.rs/u/${t[1]}.json`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://lobste.rs/u/${t[1]}.json`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["about"]}]}},i.tests=[{uri:"https://lobste.rs/u/Alice",shouldMatch:!0},{uri:"https://lobste.rs/u/Alice/",shouldMatch:!0},{uri:"https://domain.org/u/Alice",shouldMatch:!1}]},{"../enums":352}],344:[function(e,t,i){const A=e("../enums"),r=e("query-string"),n=/^matrix:u\/(?:@)?([^@:]*:[^?]*)(\?.*)?/;i.reURI=n,i.processURI=e=>{const t=e.match(n);if(!t[2])return null;const i=r.parse(t[2]);if(!("org.keyoxide.e"in i)||!("org.keyoxide.r"in i))return null;const o=`https://matrix.to/#/@${t[1]}`,a=`https://matrix.to/#/${i["org.keyoxide.r"]}/${i["org.keyoxide.e"]}`;return{serviceprovider:{type:"communication",name:"matrix"},match:{regularExpression:n,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:o,qr:null},proof:{uri:a,request:{fetcher:A.Fetcher.MATRIX,access:A.ProofAccess.GRANTED,format:A.ProofFormat.JSON,data:{eventId:i["org.keyoxide.e"],roomId:i["org.keyoxide.r"]}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["content","body"]}]}},i.tests=[{uri:"matrix:u/alice:matrix.domain.org?org.keyoxide.r=!123:domain.org&org.keyoxide.e=$123",shouldMatch:!0},{uri:"matrix:u/alice:matrix.domain.org",shouldMatch:!0},{uri:"xmpp:alice@domain.org",shouldMatch:!1},{uri:"https://domain.org/@alice",shouldMatch:!1}]},{"../enums":352,"query-string":194}],345:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"owncast"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:t[1],uri:e,qr:null},proof:{uri:`${e}/api/config`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`${e}/api/config`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["socialHandles","url"]}]}},i.tests=[{uri:"https://live.domain.org",shouldMatch:!0},{uri:"https://live.domain.org/",shouldMatch:!0},{uri:"https://domain.org/live",shouldMatch:!0},{uri:"https://domain.org/live/",shouldMatch:!0}]},{"../enums":352}],346:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(?:www\.)?reddit\.com\/user\/(.*)\/comments\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"reddit"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://www.reddit.com/user/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://www.reddit.com/user/${t[1]}/comments/${t[2]}.json`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["data","children","data","selftext"]}]}},i.tests=[{uri:"https://www.reddit.com/user/Alice/comments/123456/post",shouldMatch:!0},{uri:"https://www.reddit.com/user/Alice/comments/123456/post/",shouldMatch:!0},{uri:"https://reddit.com/user/Alice/comments/123456/post",shouldMatch:!0},{uri:"https://reddit.com/user/Alice/comments/123456/post/",shouldMatch:!0},{uri:"https://domain.org/user/Alice/comments/123456/post",shouldMatch:!1}]},{"../enums":352}],347:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*(?:askubuntu|mathoverflow|serverfault|stackapps|stackoverflow|superuser)|.+\.stackexchange)\.com\/users\/(\d+)/,n=/\.stackexchange$/;i.reURI=r,i.processURI=e=>{const[,t,i]=e.match(r),o=t.replace(n,"");return{serviceprovider:{type:"web",name:"stackexchange"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`${i}@${o}`,uri:e,qr:null},proof:{uri:`https://${t}.com/users/${i}?tab=profile`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://api.stackexchange.com/2.3/users/${i}?site=${o}&filter=!AH)b5JqVyImf`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["items","about_me"]}]}},i.tests=[{uri:"https://stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234/alice",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234?tab=topactivity",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234/alice?tab=profile",shouldMatch:!0},{uri:"https://meta.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://pt.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://pt.meta.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://serverfault.com/users/1234",shouldMatch:!0},{uri:"https://meta.stackexchange.com/users/1234",shouldMatch:!0},{uri:"https://gaming.meta.stackexchange.com/users/1234",shouldMatch:!0},{uri:"https://stackexchange.com/users/1234",shouldMatch:!1},{uri:"https://domain.com/users/1234",shouldMatch:!1},{uri:"https://meta.domain.com/users/1234",shouldMatch:!1}]},{"../enums":352}],348:[function(e,t,i){const A=e("../enums"),r=/https:\/\/t.me\/([A-Za-z0-9_]{5,32})\?proof=([A-Za-z0-9_]{5,32})/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"telegram"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:`https://t.me/${t[1]}`,qr:`https://t.me/${t[1]}`},proof:{uri:`https://t.me/${t[2]}`,request:{fetcher:A.Fetcher.TELEGRAM,access:A.ProofAccess.GRANTED,format:A.ProofFormat.JSON,data:{user:t[1],chat:t[2]}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["text"]}]}},i.tests=[{uri:"https://t.me/alice?proof=foobar",shouldMatch:!0},{uri:"https://t.me/complex_user_1234?proof=complex_chat_1234",shouldMatch:!0},{uri:"https://t.me/foobar",shouldMatch:!1},{uri:"https://t.me/foobar?proof=",shouldMatch:!1},{uri:"https://t.me/?proof=foobar",shouldMatch:!1}]},{"../enums":352}],349:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/twitter\.com\/(.*)\/status\/([0-9]*)(?:\?.*)?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"twitter"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:`https://twitter.com/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.TWITTER,access:A.ProofAccess.GRANTED,format:A.ProofFormat.TEXT,data:{tweetId:t[2]}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}]}},i.tests=[{uri:"https://twitter.com/alice/status/1234567890123456789",shouldMatch:!0},{uri:"https://twitter.com/alice/status/1234567890123456789/",shouldMatch:!0},{uri:"https://domain.org/alice/status/1234567890123456789",shouldMatch:!1}]},{"../enums":352}],350:[function(e,t,i){const A=e("../enums"),r=/^xmpp:([a-zA-Z0-9.\-_]*)@([a-zA-Z0-9.\-_]*)(?:\?(.*))?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"xmpp"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`${t[1]}@${t[2]}`,uri:e,qr:e},proof:{uri:null,request:{fetcher:A.Fetcher.XMPP,access:A.ProofAccess.SERVER,format:A.ProofFormat.TEXT,data:{id:`${t[1]}@${t[2]}`,field:"note"}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}]}},i.tests=[{uri:"xmpp:alice@domain.org",shouldMatch:!0},{uri:"xmpp:alice@domain.org?omemo-sid-123456789=A1B2C3D4E5F6G7H8I9",shouldMatch:!0},{uri:"https://domain.org",shouldMatch:!1}]},{"../enums":352}],351:[function(e,t,i){const A={proxy:{hostname:null,policy:e("./enums").ProxyPolicy.NEVER},claims:{activitypub:{url:null,privateKey:null},irc:{nick:null},matrix:{instance:null,accessToken:null},telegram:{token:null},twitter:{bearerToken:null},xmpp:{service:null,username:null,password:null}}};i.opts=A},{"./enums":352}],352:[function(e,t,i){const A={ADAPTIVE:"adaptive",ALWAYS:"always",NEVER:"never"};Object.freeze(A);const r={ACTIVITYPUB:"activitypub",DNS:"dns",HTTP:"http",IRC:"irc",MATRIX:"matrix",TELEGRAM:"telegram",TWITTER:"twitter",XMPP:"xmpp"};Object.freeze(r);const n={GENERIC:"generic",NOCORS:"nocors",GRANTED:"granted",SERVER:"server"};Object.freeze(n);const o={JSON:"json",TEXT:"text"};Object.freeze(o);const a={URI:"uri",FINGERPRINT:"fingerprint"};Object.freeze(a);const s={CONTAINS:"contains",EQUALS:"equals",ONEOF:"oneof"};Object.freeze(s);const c={INIT:"init",MATCHED:"matched",VERIFIED:"verified"};Object.freeze(c),i.ProxyPolicy=A,i.Fetcher=r,i.ProofAccess=n,i.ProofFormat=o,i.ClaimFormat=a,i.ClaimRelation=s,i.ClaimStatus=c},{}],353:[function(e,t,i){const A=e("axios"),r=e("validator"),n=e("browser-or-node");t.exports.timeout=5e3,t.exports.fn=async(i,o)=>{let a,s;n.isNode&&(a=e("crypto"));const c=new Promise(((e,A)=>{s=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),I=new Promise(((e,t)=>{(async()=>{let s=!1;try{r.isURL(o.claims.activitypub.url),s=!0}catch(e){}const c=new Date,{host:I,pathname:f,search:h}=new URL(i.url),g={host:I,date:c.toUTCString(),accept:"application/activity+json"};if(s&&n.isNode){const e=`(request-target): get ${f}${h}\nhost: ${I}\ndate: ${c.toUTCString()}`,t=a.createSign("SHA256");t.write(e),t.end();const i=t.sign(o.claims.activitypub.privateKey.replace(/\\n/g,"\n"),"base64");g.signature=`keyId="${o.claims.activitypub.url}#main-key",headers="(request-target) host date",signature="${i}",algorithm="rsa-sha256"`}A.get(i.url,{headers:g}).then((e=>e.data)).then((t=>{e(t)})).catch((e=>{t(e)}))})()}));return Promise.race([I,c]).then((e=>(clearTimeout(s),e)))}},{axios:17,"browser-or-node":49,crypto:106,validator:228}],354:[function(e,t,i){const A=e("browser-or-node");if(t.exports.timeout=5e3,A.isNode){const i=e("dns");t.exports.fn=async(e,A)=>{let r;const n=new Promise(((i,A)=>{r=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),o=new Promise(((t,A)=>{i.resolveTxt(e.domain,((i,r)=>{i?A(i):t({domain:e.domain,records:{txt:r}})}))}));return Promise.race([o,n]).then((e=>(clearTimeout(r),e)))}}else t.exports.fn=null},{"browser-or-node":49,dns:96}],355:[function(e,t,i){const A=e("axios"),r=e("../enums");t.exports.timeout=5e3,t.exports.fn=async(i,n)=>{let o;const a=new Promise(((e,A)=>{o=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),s=new Promise(((t,n)=>{if(i.url)switch(i.format){case r.ProofFormat.JSON:A.get(i.url,{headers:{Accept:"application/json","User-Agent":`doipjs/${e("../../package.json").version}`},validateStatus:function(e){return e>=200&&e<400}}).then((e=>{t(e.data)})).catch((e=>{n(e)}));break;case r.ProofFormat.TEXT:A.get(i.url,{validateStatus:function(e){return e>=200&&e<400},responseType:"text"}).then((e=>{t(e.data)})).catch((e=>{n(e)}));break;default:n(new Error("No specified data format"))}else n(new Error("No valid URI provided"))}));return Promise.race([s,a]).then((e=>(clearTimeout(o),e)))}},{"../../package.json":329,"../enums":352,axios:17}],356:[function(e,t,i){i.activitypub=e("./activitypub"),i.dns=e("./dns"),i.http=e("./http"),i.irc=e("./irc"),i.matrix=e("./matrix"),i.telegram=e("./telegram"),i.twitter=e("./twitter"),i.xmpp=e("./xmpp")},{"./activitypub":353,"./dns":354,"./http":355,"./irc":357,"./matrix":358,"./telegram":359,"./twitter":360,"./xmpp":361}],357:[function(e,t,i){const A=e("browser-or-node");if(t.exports.timeout=2e4,A.isNode){const i=e("irc-upd"),A=e("validator");t.exports.fn=async(e,r)=>{let n;const o=new Promise(((i,A)=>{n=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),a=new Promise(((t,n)=>{try{A.isAscii(r.claims.irc.nick)}catch(e){throw new Error(`IRC fetcher was not set up properly (${e.message})`)}try{const A=new i.Client(e.domain,r.claims.irc.nick,{port:6697,secure:!0,channels:[],showErrors:!1,debug:!1}),n=/[a-zA-Z0-9\-_]+\s+:\s(openpgp4fpr:.*)/,o=/End\sof\s.*\staxonomy./,a=[];A.addListener("registered",(t=>{A.send(`PRIVMSG NickServ TAXONOMY ${e.nick}`)})),A.addListener("notice",((e,i,r,s)=>{if(n.test(r)){const e=r.match(n);a.push(e[1])}o.test(r)&&(A.disconnect(),t(a))}))}catch(e){n(e)}}));return Promise.race([a,o]).then((e=>(clearTimeout(n),e)))}}else t.exports.fn=null},{"browser-or-node":49,"irc-upd":"irc-upd",validator:228}],358:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(e,i)=>{let n;const o=new Promise(((i,A)=>{n=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),a=new Promise(((t,n)=>{try{r.isFQDN(i.claims.matrix.instance),r.isAscii(i.claims.matrix.accessToken)}catch(e){throw new Error(`Matrix fetcher was not set up properly (${e.message})`)}const o=`https://${i.claims.matrix.instance}/_matrix/client/r0/rooms/${e.roomId}/event/${e.eventId}?access_token=${i.claims.matrix.accessToken}`;A.get(o,{headers:{Accept:"application/json"}}).then((e=>e.data)).then((e=>{t(e)})).catch((e=>{n(e)}))}));return Promise.race([a,o]).then((e=>(clearTimeout(n),e)))}},{axios:17,validator:228}],359:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(i,n)=>{let o;const a=new Promise(((e,A)=>{o=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),s=t=>new Promise(((o,a)=>{try{r.isAscii(n.claims.telegram.token)}catch(e){throw new Error(`Telegram fetcher was not set up properly (${e.message})`)}if(!i.chat||!i.user)return void a(new Error("Both chat name and user name must be provided"));const s=`https://api.telegram.org/bot${n.claims.telegram.token}/${t}?chat_id=@${i.chat}`;A.get(s,{headers:{Accept:"application/json","User-Agent":`doipjs/${e("../../package.json").version}`},validateStatus:e=>200===e}).then((e=>o(e.data))).catch((e=>a(e)))})),c=s("getChatAdministrators").then((e=>{if(!e.ok)throw new Error("Request to get chat administrators failed");return s("getChat").then((t=>{if(!t.ok)throw new Error("Request to get chat info failed");let A;for(const t of e.result)"creator"===t.status&&(A=t.user.username);if(!t.result.description)throw new Error("There is no chat description");if(A!==i.user)throw new Error("User doesn't match");return{user:A,text:t.result.description}}))}));return Promise.race([c,a]).then((e=>(clearTimeout(o),e)))}},{"../../package.json":329,axios:17,validator:228}],360:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(e,i)=>{let n;const o=new Promise(((i,A)=>{n=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),a=new Promise(((t,n)=>{try{r.isAscii(i.claims.twitter.bearerToken)}catch(e){throw new Error(`Twitter fetcher was not set up properly (${e.message})`)}A.get(`https://api.twitter.com/1.1/statuses/show.json?id=${e.tweetId}&tweet_mode=extended`,{headers:{Accept:"application/json",Authorization:`Bearer ${i.claims.twitter.bearerToken}`}}).then((e=>e.data)).then((e=>{t(e.full_text)})).catch((e=>{n(e)}))}));return Promise.race([a,o]).then((e=>(clearTimeout(n),e)))}},{axios:17,validator:228}],361:[function(e,t,i){(function(i){(function(){const A=e("browser-or-node");if(t.exports.timeout=5e3,A.isNode){const A=e("jsdom"),{client:r,xml:n}=e("@xmpp/client"),o=e("@xmpp/debug"),a=e("validator");let s=null,c=null;const I=async(e,t,A)=>new Promise(((n,a)=>{const s=r({service:e,username:t,password:A});"production"!==i.env.NODE_ENV&&o(s,!0);const{iqCaller:c}=s;s.start(),s.on("online",(e=>{n({xmpp:s,iqCaller:c})})),s.on("error",(e=>{a(e)}))}));t.exports.fn=async(e,i)=>{try{a.isFQDN(i.claims.xmpp.service),a.isAscii(i.claims.xmpp.username),a.isAscii(i.claims.xmpp.password)}catch(e){throw new Error(`XMPP fetcher was not set up properly (${e.message})`)}if(!s||"online"!==s.status){const e=await I(i.claims.xmpp.service,i.claims.xmpp.username,i.claims.xmpp.password);s=e.xmpp,c=e.iqCaller}const r=(await c.request(n("iq",{type:"get",to:e.id},n("vCard","vcard-temp")),3e4)).getChild("vCard","vcard-temp").toString(),o=new A.JSDOM(r);let f;const h=new Promise(((i,A)=>{f=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),g=new Promise(((t,i)=>{try{let i;switch(e.field.toLowerCase()){case"desc":case"note":if(i=o.window.document.querySelector("note text"),i||(i=o.window.document.querySelector("note")),i||(i=o.window.document.querySelector("DESC")),!i)throw new Error("No DESC or NOTE field found in vCard");i=i.textContent;break;default:i=o.window.document.querySelector(e).textContent}s.stop(),t(i)}catch(e){i(e)}}));return Promise.race([g,h]).then((e=>(clearTimeout(f),e)))}}else t.exports.fn=null}).call(this)}).call(this,e("_process"))},{"@xmpp/client":"@xmpp/client","@xmpp/debug":"@xmpp/debug",_process:187,"browser-or-node":49,jsdom:"jsdom",validator:228}],362:[function(e,t,i){const A=e("./claim"),r=e("./claimDefinitions"),n=e("./proofs"),o=e("./keys"),a=e("./signatures"),s=e("./enums"),c=e("./defaults"),I=e("./utils"),f=e("./verifications"),h=e("./fetcher");i.Claim=A,i.claimDefinitions=r,i.proofs=n,i.keys=o,i.signatures=a,i.enums=s,i.defaults=c,i.utils=I,i.verifications=f,i.fetcher=h},{"./claim":330,"./claimDefinitions":339,"./defaults":351,"./enums":352,"./fetcher":356,"./keys":363,"./proofs":364,"./signatures":365,"./utils":366,"./verifications":367}],363:[function(e,t,i){(function(t){(function(){const A=e("axios"),r=e("valid-url"),n="undefined"!=typeof window?window.openpgp:void 0!==t?t.openpgp:null,o=e("@openpgp/hkp-client"),a=e("@openpgp/wkd-client"),s=e("./claim"),c=async(e,t)=>{const i=new o(t?`https://${t}`:"https://keys.openpgp.org"),A={query:e},r=await i.lookup(A).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}));if(!r)throw new Error("Key does not exist or could not be fetched");return await n.readKey({armoredKey:r}).catch((e=>{throw new Error(`Key could not be read (${e})`)}))},I=async e=>{const t=new a,i={email:e},A=await t.lookup(i).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}));if(!A)throw new Error("Key does not exist or could not be fetched");return await n.readKey({binaryKey:A}).catch((e=>{throw new Error(`Key could not be read (${e})`)}))},f=async(e,t)=>{const i=`https://keybase.io/${e}/pgp_keys.asc?fingerprint=${t}`;let r;try{r=await A.get(i,{responseType:"text"}).then((e=>{if(200===e.status)return e})).then((e=>e.data))}catch(e){throw new Error(`Error fetching Keybase key: ${e.message}`)}return await n.readKey({armoredKey:r}).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}))},h=async e=>await n.readKey({armoredKey:e}).catch((e=>{throw new Error(`Key could not be read (${e})`)}));i.fetchHKP=c,i.fetchWKD=I,i.fetchKeybase=f,i.fetchPlaintext=h,i.fetchURI=async e=>{if(!r.isUri(e))throw new Error("Invalid URI");const t=e.match(/([a-zA-Z0-9]*):([a-zA-Z0-9@._=+-]*)(?::([a-zA-Z0-9@._=+-]*))?/);if(!t[1])throw new Error("Invalid URI");switch(t[1]){case"hkp":return await c(t[3]?t[3]:t[2],t[3]?t[2]:null);case"wkd":return await I(t[2]);case"kb":return await f(t[2],t.length>=4?t[3]:null);default:throw new Error("Invalid URI protocol")}},i.fetch=async e=>{const t=e.match(/([a-zA-Z0-9@._=+-]*)(?::([a-zA-Z0-9@._=+-]*))?/);let i=null;if(!i)try{i=await h(e)}catch(e){}if(!i&&e.includes("@"))try{i=await I(t[1])}catch(e){}if(i||(i=await c(t[2]?t[2]:t[1],t[2]?t[1]:null)),!i)throw new Error("Key does not exist or could not be fetched");return i},i.process=async e=>{if(!(e&&e instanceof n.PublicKey))throw new Error("Invalid public key");const t=e.getFingerprint(),i=await e.getPrimaryUser(),A=e.users,r=[];return A.forEach(((e,A)=>{if(r[A]={userData:{id:e.userID?e.userID.userID:null,name:e.userID?e.userID.name:null,email:e.userID?e.userID.email:null,comment:e.userID?e.userID.comment:null,isPrimary:i.index===A,isRevoked:!1},claims:[]},"selfCertifications"in e&&e.selfCertifications.length>0){const i=e.selfCertifications[0],n=i.rawNotations;r[A].claims=n.filter((({name:e,humanReadable:t})=>t&&("proof@ariadne.id"===e||"proof@metacode.biz"===e))).map((({value:e})=>new s((new TextDecoder).decode(e),t))),r[A].userData.isRevoked=i.revoked}})),{fingerprint:t,users:r,primaryUserIndex:i.index,key:{data:e,fetchMethod:null,uri:null}}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./claim":330,"@openpgp/hkp-client":1,"@openpgp/wkd-client":2,axios:17,"valid-url":227}],364:[function(e,t,i){const A=e("browser-or-node"),r=e("./fetcher"),n=e("./utils"),o=e("./enums"),a=(e,t)=>{switch(t.proxy.policy){case o.ProxyPolicy.ALWAYS:return I(e,t);case o.ProxyPolicy.NEVER:switch(e.proof.request.access){case o.ProofAccess.GENERIC:case o.ProofAccess.GRANTED:return c(e,t);case o.ProofAccess.NOCORS:case o.ProofAccess.SERVER:throw new Error("Impossible to fetch proof (bad combination of service access and proxy policy)");default:throw new Error("Invalid proof access value")}case o.ProxyPolicy.ADAPTIVE:switch(e.proof.request.access){case o.ProofAccess.GENERIC:return f(e,t);case o.ProofAccess.NOCORS:return I(e,t);case o.ProofAccess.GRANTED:return f(e,t);case o.ProofAccess.SERVER:return I(e,t);default:throw new Error("Invalid proof access value")}default:throw new Error("Invalid proxy policy")}},s=(e,t)=>{switch(t.proxy.policy){case o.ProxyPolicy.ALWAYS:return I(e,t);case o.ProxyPolicy.NEVER:return c(e,t);case o.ProxyPolicy.ADAPTIVE:return f(e,t);default:throw new Error("Invalid proxy policy")}},c=(e,t)=>new Promise(((i,A)=>{r[e.proof.request.fetcher].fn(e.proof.request.data,t).then((t=>i({fetcher:e.proof.request.fetcher,data:e,viaProxy:!1,result:t}))).catch((e=>A(e)))})),I=(e,t)=>new Promise(((i,A)=>{let o;try{o=n.generateProxyURL(e.proof.request.fetcher,e.proof.request.data,t)}catch(e){A(e)}const a={url:o,format:e.proof.request.format,fetcherTimeout:r[e.proof.request.fetcher].timeout};r.http.fn(a,t).then((t=>i({fetcher:"http",data:e,viaProxy:!0,result:t}))).catch((e=>A(e)))})),f=(e,t)=>new Promise(((i,A)=>{c(e,t).then((e=>i(e))).catch((r=>{I(e,t).then((e=>i(e))).catch((e=>A(e)))}))}));i.fetch=(e,t)=>{if(e.proof.request.fetcher===o.Fetcher.HTTP)e.proof.request.data.format=e.proof.request.format;return A.isNode?s(e,t):a(e,t)}},{"./enums":352,"./fetcher":356,"./utils":366,"browser-or-node":49}],365:[function(e,t,i){(function(t){(function(){const A="undefined"!=typeof window?window.openpgp:void 0!==t?t.openpgp:null,r=e("./claim"),n=e("./keys");i.process=async e=>{let t;const i={fingerprint:null,users:[{userData:{},claims:[]}],primaryUserIndex:null,key:{data:null,fetchMethod:null,uri:null}};try{t=await A.readCleartextMessage({cleartextMessage:e})}catch(e){throw new Error(`Signature could not be read (${e.message})`)}const o=t.signature.packets[0].issuerKeyID.toHex(),a=t.signature.packets[0].signersUserID,s=t.signature.packets[0].preferredKeyServer||"https://keys.openpgp.org/",c=t.getText(),I=[];if(c.split("\n").forEach(((e,t)=>{const A=e.match(/^([a-zA-Z0-9]*)=(.*)$/i);if(A)switch(A[1].toLowerCase()){case"key":I.push(A[2]);break;case"proof":i.users[0].claims.push(new r(A[2]))}})),I.length>0)try{i.key.uri=I[0],i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod=i.key.uri.split(":")[0]}catch(e){}if(!i.key.data&&a)try{i.key.uri=`wkd:${a}`,i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod="wkd"}catch(e){}if(!i.key.data)try{const e=s.match(/^(.*:\/\/)?([^/]*)(?:\/)?$/i);i.key.uri=`hkp:${e[2]}:${o||a}`,i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod="hkp"}catch(e){throw new Error("Public key not found")}const f=await A.verify({message:t,verificationKeys:i.key.data}),{verified:h}=f.signatures[0];try{await h}catch(e){throw new Error(`Signature could not be verified (${e.message})`)}i.fingerprint=i.key.data.keyPacket.getFingerprint(),i.users[0].claims.forEach((e=>{e.fingerprint=i.fingerprint}));const g=await i.key.data.getPrimaryUser();let u;return a&&i.key.data.users.forEach((e=>{e.userID.email===a&&(u=e)})),u||(u=g.user),i.users[0].userData={id:u.userID?u.userID.userID:null,name:u.userID?u.userID.name:null,email:u.userID?u.userID.email:null,comment:u.userID?u.userID.comment:null,isPrimary:g.user.userID.userID===u.userID.userID},i.primaryUserIndex=i.users[0].userData.isPrimary?0:null,i}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./claim":330,"./keys":363}],366:[function(e,t,i){const A=e("validator"),r=e("./enums");i.generateProxyURL=(e,t,i)=>{try{A.isFQDN(i.proxy.hostname)}catch(e){throw new Error("Invalid proxy hostname")}const r=[];return Object.keys(t).forEach((e=>{r.push(`${e}=${encodeURIComponent(t[e])}`)})),`https://${i.proxy.hostname}/api/2/get/${e}?${r.join("&")}`},i.generateClaim=(e,t)=>{switch(t){case r.ClaimFormat.URI:return`openpgp4fpr:${e}`;case r.ClaimFormat.FINGERPRINT:return e;default:throw new Error("No valid claim format")}},i.getUriFromString=e=>{const t=e.match(/((([A-Za-z0-9]+:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?)/gi),i=[];return t?(t.forEach((e=>{let t=!0;for(;t;){const i=e.charAt(e.length-1);-1!=="?!.".indexOf(i)?e=e.substring(0,e.length-1):t=!1}i.push(e)})),i):[]}},{"./enums":352,validator:228}],367:[function(e,t,i){const A=e("./utils"),r=e("./enums"),{bcryptVerify:n,argon2Verify:o}=e("hash-wasm"),a=async(e,t,i)=>{const a=A.generateClaim(t,i),s=A.generateClaim(t,r.ClaimFormat.URI);let c=!1;if(c=-1!==e.replace(/\r?\n|\r/g,"").toLowerCase().indexOf(a.toLowerCase()),!c){const t=/\$(argon2(?:id|d|i)|2a|2b|2y)(?:\$[a-zA-Z0-9=+\-,./]+)+/g;let i;for(;!c&&null!=(i=t.exec(e));){let e;const t=new Promise(((t,i)=>{e=setTimeout((()=>{t(!1)}),1e3)}));switch(i[1]){case"2a":case"2b":case"2y":try{if(parseInt(i[0].split("$")[2])>12)continue;const A=n({password:s,hash:i[0]}).then((e=>e)).catch((e=>!1));c=await Promise.race([A,t]).then((t=>(clearTimeout(e),t)))}catch(e){c=!1}break;case"argon2":case"argon2i":case"argon2d":case"argon2id":try{const A=o({password:s,hash:i[0]}).then((e=>e)).catch((e=>!1));c=await Promise.race([A,t]).then((t=>(clearTimeout(e),t)))}catch(e){c=!1}break;default:continue}}}if(!c){const t=A.getUriFromString(e);for(let e=0;e!1));r&&(200===r.status&&r.headers.get("ariadne-identity-proof")&&(c=-1!==r.headers.get("ariadne-identity-proof").toLowerCase().indexOf(s.toLowerCase())))}}return c},s=async(e,t,i,A,n)=>{if(!e)return!1;if(Array.isArray(e)){let r=!1;for(let o=0;o{const A={result:!1,completed:!1,errors:[]};switch(t.proof.request.format){case r.ProofFormat.JSON:for(let r=0;r=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var A=n(e);return t&&0!==t.length?"string"==typeof i?A.fill(t,i):A.fill(t):A.fill(0),A}),!o.kStringMaxLength)try{o.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o}).call(this)}).call(this,e("_process"))},{_process:187,buffer:99}],200:[function(e,t,i){var A=e("safe-buffer").Buffer;function r(e,t){this._block=A.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}r.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=A.from(e,t));for(var i=this._block,r=this._blockSize,n=e.length,o=this._len,a=0;a=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 A=(4294967295&i)>>>0,r=(i-A)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(A,this._blockSize-4)}this._update(this._block);var n=this._hash();return e?n.toString(e):n},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},{"safe-buffer":198}],201:[function(e,t,i){(i=t.exports=function(e){e=e.toLowerCase();var t=i[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),i.sha1=e("./sha1"),i.sha224=e("./sha224"),i.sha256=e("./sha256"),i.sha384=e("./sha384"),i.sha512=e("./sha512")},{"./sha":202,"./sha1":203,"./sha224":204,"./sha256":205,"./sha384":206,"./sha512":207}],202:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e){return e<<30|e>>>2}function I(e,t,i,A){return 0===e?t&i|~t&A:2===e?t&i|t&A|i&A:t^i^A}A(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,f=0;f<16;++f)i[f]=e.readInt32BE(4*f);for(;f<80;++f)i[f]=i[f-3]^i[f-8]^i[f-14]^i[f-16];for(var h=0;h<80;++h){var g=~~(h/20),u=0|((t=A)<<5|t>>>27)+I(g,r,n,a)+s+i[h]+o[g];s=a,a=n,n=c(r),r=A,A=u}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=n.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},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],203:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e){return e<<5|e>>>27}function I(e){return e<<30|e>>>2}function f(e,t,i,A){return 0===e?t&i|~t&A:2===e?t&i|t&A|i&A:t^i^A}A(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,h=0;h<16;++h)i[h]=e.readInt32BE(4*h);for(;h<80;++h)i[h]=(t=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|t>>>31;for(var g=0;g<80;++g){var u=~~(g/20),d=c(A)+f(u,r,n,a)+s+i[g]+o[u]|0;s=a,a=n,n=I(r),r=A,A=d}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=n.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},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],204:[function(e,t,i){var A=e("inherits"),r=e("./sha256"),n=e("./hash"),o=e("safe-buffer").Buffer,a=new Array(64);function s(){this.init(),this._w=a,n.call(this,64,56)}A(s,r),s.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},s.prototype._hash=function(){var e=o.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},t.exports=s},{"./hash":200,"./sha256":205,inherits:169,"safe-buffer":198}],205:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[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],a=new Array(64);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e,t,i){return i^e&(t^i)}function I(e,t,i){return e&t|i&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function g(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}A(s,r),s.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},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,u=0|this._f,d=0|this._g,l=0|this._h,B=0;B<16;++B)i[B]=e.readInt32BE(4*B);for(;B<64;++B)i[B]=0|(((t=i[B-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+i[B-7]+g(i[B-15])+i[B-16];for(var p=0;p<64;++p){var C=l+h(s)+c(s,u,d)+o[p]+i[p]|0,Q=f(A)+I(A,r,n)|0;l=d,d=u,u=s,s=a+C|0,a=n,n=r,r=A,A=C+Q|0}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=d+this._g|0,this._h=l+this._h|0},s.prototype._hash=function(){var e=n.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},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],206:[function(e,t,i){var A=e("inherits"),r=e("./sha512"),n=e("./hash"),o=e("safe-buffer").Buffer,a=new Array(160);function s(){this.init(),this._w=a,n.call(this,128,112)}A(s,r),s.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},s.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,i,A){e.writeInt32BE(t,A),e.writeInt32BE(i,A+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},t.exports=s},{"./hash":200,"./sha512":207,inherits:169,"safe-buffer":198}],207:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[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],a=new Array(160);function s(){this.init(),this._w=a,r.call(this,128,112)}function c(e,t,i){return i^e&(t^i)}function I(e,t,i){return e&t|i&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function g(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function d(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function B(e,t){return e>>>0>>0?1:0}A(s,r),s.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},s.prototype._update=function(e){for(var t=this._w,i=0|this._ah,A=0|this._bh,r=0|this._ch,n=0|this._dh,a=0|this._eh,s=0|this._fh,p=0|this._gh,C=0|this._hh,Q=0|this._al,E=0|this._bl,y=0|this._cl,b=0|this._dl,m=0|this._el,w=0|this._fl,v=0|this._gl,D=0|this._hl,S=0;S<32;S+=2)t[S]=e.readInt32BE(4*S),t[S+1]=e.readInt32BE(4*S+4);for(;S<160;S+=2){var F=t[S-30],k=t[S-30+1],M=g(F,k),N=u(k,F),U=d(F=t[S-4],k=t[S-4+1]),G=l(k,F),H=t[S-14],_=t[S-14+1],R=t[S-32],K=t[S-32+1],q=N+_|0,x=M+H+B(q,N)|0;x=(x=x+U+B(q=q+G|0,G)|0)+R+B(q=q+K|0,K)|0,t[S]=x,t[S+1]=q}for(var J=0;J<160;J+=2){x=t[J],q=t[J+1];var Y=I(i,A,r),O=I(Q,E,y),L=f(i,Q),P=f(Q,i),z=h(a,m),Z=h(m,a),T=o[J],X=o[J+1],V=c(a,s,p),j=c(m,w,v),W=D+Z|0,$=C+z+B(W,D)|0;$=($=($=$+V+B(W=W+j|0,j)|0)+T+B(W=W+X|0,X)|0)+x+B(W=W+q|0,q)|0;var ee=P+O|0,te=L+Y+B(ee,P)|0;C=p,D=v,p=s,v=w,s=a,w=m,a=n+$+B(m=b+W|0,b)|0,n=r,b=y,r=A,y=E,A=i,E=Q,i=$+te+B(Q=W+ee|0,W)|0}this._al=this._al+Q|0,this._bl=this._bl+E|0,this._cl=this._cl+y|0,this._dl=this._dl+b|0,this._el=this._el+m|0,this._fl=this._fl+w|0,this._gl=this._gl+v|0,this._hl=this._hl+D|0,this._ah=this._ah+i+B(this._al,Q)|0,this._bh=this._bh+A+B(this._bl,E)|0,this._ch=this._ch+r+B(this._cl,y)|0,this._dh=this._dh+n+B(this._dl,b)|0,this._eh=this._eh+a+B(this._el,m)|0,this._fh=this._fh+s+B(this._fl,w)|0,this._gh=this._gh+p+B(this._gl,v)|0,this._hh=this._hh+C+B(this._hl,D)|0},s.prototype._hash=function(){var e=n.allocUnsafe(64);function t(t,i,A){e.writeInt32BE(t,A),e.writeInt32BE(i,A+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},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],208:[function(e,t,i){"use strict";t.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const i=e.indexOf(t);return-1===i?[e]:[e.slice(0,i),e.slice(i+t.length)]}},{}],209:[function(e,t,i){t.exports=r;var A=e("events").EventEmitter;function r(){A.call(this)}e("inherits")(r,A),r.Readable=e("readable-stream/lib/_stream_readable.js"),r.Writable=e("readable-stream/lib/_stream_writable.js"),r.Duplex=e("readable-stream/lib/_stream_duplex.js"),r.Transform=e("readable-stream/lib/_stream_transform.js"),r.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),r.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),r.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),r.Stream=r,r.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(I(),0===A.listenerCount(this,"error"))throw e}function I(){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",I),i.removeListener("close",I),e.removeListener("close",I)}return i.on("error",c),e.on("error",c),i.on("end",I),i.on("close",I),e.on("close",I),e.emit("pipe",i),e}},{events:134,inherits:169,"readable-stream/lib/_stream_duplex.js":211,"readable-stream/lib/_stream_passthrough.js":212,"readable-stream/lib/_stream_readable.js":213,"readable-stream/lib/_stream_transform.js":214,"readable-stream/lib/_stream_writable.js":215,"readable-stream/lib/internal/streams/end-of-stream.js":219,"readable-stream/lib/internal/streams/pipeline.js":221}],210:[function(e,t,i){arguments[4][80][0].apply(i,arguments)},{dup:80}],211:[function(e,t,i){arguments[4][81][0].apply(i,arguments)},{"./_stream_readable":213,"./_stream_writable":215,_process:187,dup:81,inherits:169}],212:[function(e,t,i){arguments[4][82][0].apply(i,arguments)},{"./_stream_transform":214,dup:82,inherits:169}],213:[function(e,t,i){arguments[4][83][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,"./internal/streams/async_iterator":216,"./internal/streams/buffer_list":217,"./internal/streams/destroy":218,"./internal/streams/from":220,"./internal/streams/state":222,"./internal/streams/stream":223,_process:187,buffer:99,dup:83,events:134,inherits:169,"string_decoder/":224,util:50}],214:[function(e,t,i){arguments[4][84][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,dup:84,inherits:169}],215:[function(e,t,i){arguments[4][85][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,"./internal/streams/destroy":218,"./internal/streams/state":222,"./internal/streams/stream":223,_process:187,buffer:99,dup:85,inherits:169,"util-deprecate":226}],216:[function(e,t,i){arguments[4][86][0].apply(i,arguments)},{"./end-of-stream":219,_process:187,dup:86}],217:[function(e,t,i){arguments[4][87][0].apply(i,arguments)},{buffer:99,dup:87,util:50}],218:[function(e,t,i){arguments[4][88][0].apply(i,arguments)},{_process:187,dup:88}],219:[function(e,t,i){arguments[4][89][0].apply(i,arguments)},{"../../../errors":210,dup:89}],220:[function(e,t,i){arguments[4][90][0].apply(i,arguments)},{dup:90}],221:[function(e,t,i){arguments[4][91][0].apply(i,arguments)},{"../../../errors":210,"./end-of-stream":219,dup:91}],222:[function(e,t,i){arguments[4][92][0].apply(i,arguments)},{"../../../errors":210,dup:92}],223:[function(e,t,i){arguments[4][93][0].apply(i,arguments)},{dup:93,events:134}],224:[function(e,t,i){arguments[4][95][0].apply(i,arguments)},{dup:95,"safe-buffer":198}],225:[function(e,t,i){"use strict";t.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},{}],226:[function(e,t,i){(function(e){(function(){function i(t){try{if(!e.localStorage)return!1}catch(e){return!1}var i=e.localStorage[t];return null!=i&&"true"===String(i).toLowerCase()}t.exports=function(e,t){if(i("noDeprecation"))return e;var A=!1;return function(){if(!A){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),A=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],227:[function(e,t,i){!function(e){"use strict";e.exports.is_uri=i,e.exports.is_http_uri=A,e.exports.is_https_uri=r,e.exports.is_web_uri=n,e.exports.isUri=i,e.exports.isHttpUri=A,e.exports.isHttpsUri=r,e.exports.isWebUri=n;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function i(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var i,A,r,n,o,a="",s="";if(a=(i=t(e))[1],A=i[2],r=i[3],n=i[4],o=i[5],a&&a.length&&r.length>=0){if(A&&A.length){if(0!==r.length&&!/^\//.test(r))return}else if(/^\/\//.test(r))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(a.toLowerCase()))return s+=a+":",A&&A.length&&(s+="//"+A),s+=r,n&&n.length&&(s+="?"+n),o&&o.length&&(s+="#"+o),s}}}function A(e,A){if(i(e)){var r,n,o,a,s="",c="",I="",f="";if(s=(r=t(e))[1],c=r[2],n=r[3],o=r[4],a=r[5],s){if(A){if("https"!=s.toLowerCase())return}else if("http"!=s.toLowerCase())return;if(c)return/:(\d+)$/.test(c)&&(I=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),f+=s+":",f+="//"+c,I&&(f+=I),f+=n,o&&o.length&&(f+="?"+o),a&&a.length&&(f+="#"+a),f}}}function r(e){return A(e,!0)}function n(e){return A(e)||r(e)}}(t)},{}],228:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=Pe(e("./lib/toDate")),n=Pe(e("./lib/toFloat")),o=Pe(e("./lib/toInt")),a=Pe(e("./lib/toBoolean")),s=Pe(e("./lib/equals")),c=Pe(e("./lib/contains")),I=Pe(e("./lib/matches")),f=Pe(e("./lib/isEmail")),h=Pe(e("./lib/isURL")),g=Pe(e("./lib/isMACAddress")),u=Pe(e("./lib/isIP")),d=Pe(e("./lib/isIPRange")),l=Pe(e("./lib/isFQDN")),B=Pe(e("./lib/isDate")),p=Pe(e("./lib/isBoolean")),C=Pe(e("./lib/isLocale")),Q=Le(e("./lib/isAlpha")),E=Le(e("./lib/isAlphanumeric")),y=Pe(e("./lib/isNumeric")),b=Pe(e("./lib/isPassportNumber")),m=Pe(e("./lib/isPort")),w=Pe(e("./lib/isLowercase")),v=Pe(e("./lib/isUppercase")),D=Pe(e("./lib/isIMEI")),S=Pe(e("./lib/isAscii")),F=Pe(e("./lib/isFullWidth")),k=Pe(e("./lib/isHalfWidth")),M=Pe(e("./lib/isVariableWidth")),N=Pe(e("./lib/isMultibyte")),U=Pe(e("./lib/isSemVer")),G=Pe(e("./lib/isSurrogatePair")),H=Pe(e("./lib/isInt")),_=Le(e("./lib/isFloat")),R=Pe(e("./lib/isDecimal")),K=Pe(e("./lib/isHexadecimal")),q=Pe(e("./lib/isOctal")),x=Pe(e("./lib/isDivisibleBy")),J=Pe(e("./lib/isHexColor")),Y=Pe(e("./lib/isRgbColor")),O=Pe(e("./lib/isHSL")),L=Pe(e("./lib/isISRC")),P=Le(e("./lib/isIBAN")),z=Pe(e("./lib/isBIC")),Z=Pe(e("./lib/isMD5")),T=Pe(e("./lib/isHash")),X=Pe(e("./lib/isJWT")),V=Pe(e("./lib/isJSON")),j=Pe(e("./lib/isEmpty")),W=Pe(e("./lib/isLength")),$=Pe(e("./lib/isByteLength")),ee=Pe(e("./lib/isUUID")),te=Pe(e("./lib/isMongoId")),ie=Pe(e("./lib/isAfter")),Ae=Pe(e("./lib/isBefore")),re=Pe(e("./lib/isIn")),ne=Pe(e("./lib/isCreditCard")),oe=Pe(e("./lib/isIdentityCard")),ae=Pe(e("./lib/isEAN")),se=Pe(e("./lib/isISIN")),ce=Pe(e("./lib/isISBN")),Ie=Pe(e("./lib/isISSN")),fe=Pe(e("./lib/isTaxID")),he=Le(e("./lib/isMobilePhone")),ge=Pe(e("./lib/isEthereumAddress")),ue=Pe(e("./lib/isCurrency")),de=Pe(e("./lib/isBtcAddress")),le=Pe(e("./lib/isISO8601")),Be=Pe(e("./lib/isRFC3339")),pe=Pe(e("./lib/isISO31661Alpha2")),Ce=Pe(e("./lib/isISO31661Alpha3")),Qe=Pe(e("./lib/isISO4217")),Ee=Pe(e("./lib/isBase32")),ye=Pe(e("./lib/isBase58")),be=Pe(e("./lib/isBase64")),me=Pe(e("./lib/isDataURI")),we=Pe(e("./lib/isMagnetURI")),ve=Pe(e("./lib/isMimeType")),De=Pe(e("./lib/isLatLong")),Se=Le(e("./lib/isPostalCode")),Fe=Pe(e("./lib/ltrim")),ke=Pe(e("./lib/rtrim")),Me=Pe(e("./lib/trim")),Ne=Pe(e("./lib/escape")),Ue=Pe(e("./lib/unescape")),Ge=Pe(e("./lib/stripLow")),He=Pe(e("./lib/whitelist")),_e=Pe(e("./lib/blacklist")),Re=Pe(e("./lib/isWhitelisted")),Ke=Pe(e("./lib/normalizeEmail")),qe=Pe(e("./lib/isSlug")),xe=Pe(e("./lib/isLicensePlate")),Je=Pe(e("./lib/isStrongPassword")),Ye=Pe(e("./lib/isVAT"));function Oe(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Oe=function(){return e},e}function Le(e){if(e&&e.__esModule)return e;if(null===e||"object"!==A(e)&&"function"!=typeof e)return{default:e};var t=Oe();if(t&&t.has(e))return t.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,t&&t.set(e,i),i}function Pe(e){return e&&e.__esModule?e:{default:e}}var ze={version:"13.7.0",toDate:r.default,toFloat:n.default,toInt:o.default,toBoolean:a.default,equals:s.default,contains:c.default,matches:I.default,isEmail:f.default,isURL:h.default,isMACAddress:g.default,isIP:u.default,isIPRange:d.default,isFQDN:l.default,isBoolean:p.default,isIBAN:P.default,isBIC:z.default,isAlpha:Q.default,isAlphaLocales:Q.locales,isAlphanumeric:E.default,isAlphanumericLocales:E.locales,isNumeric:y.default,isPassportNumber:b.default,isPort:m.default,isLowercase:w.default,isUppercase:v.default,isAscii:S.default,isFullWidth:F.default,isHalfWidth:k.default,isVariableWidth:M.default,isMultibyte:N.default,isSemVer:U.default,isSurrogatePair:G.default,isInt:H.default,isIMEI:D.default,isFloat:_.default,isFloatLocales:_.locales,isDecimal:R.default,isHexadecimal:K.default,isOctal:q.default,isDivisibleBy:x.default,isHexColor:J.default,isRgbColor:Y.default,isHSL:O.default,isISRC:L.default,isMD5:Z.default,isHash:T.default,isJWT:X.default,isJSON:V.default,isEmpty:j.default,isLength:W.default,isLocale:C.default,isByteLength:$.default,isUUID:ee.default,isMongoId:te.default,isAfter:ie.default,isBefore:Ae.default,isIn:re.default,isCreditCard:ne.default,isIdentityCard:oe.default,isEAN:ae.default,isISIN:se.default,isISBN:ce.default,isISSN:Ie.default,isMobilePhone:he.default,isMobilePhoneLocales:he.locales,isPostalCode:Se.default,isPostalCodeLocales:Se.locales,isEthereumAddress:ge.default,isCurrency:ue.default,isBtcAddress:de.default,isISO8601:le.default,isRFC3339:Be.default,isISO31661Alpha2:pe.default,isISO31661Alpha3:Ce.default,isISO4217:Qe.default,isBase32:Ee.default,isBase58:ye.default,isBase64:be.default,isDataURI:me.default,isMagnetURI:we.default,isMimeType:ve.default,isLatLong:De.default,ltrim:Fe.default,rtrim:ke.default,trim:Me.default,escape:Ne.default,unescape:Ue.default,stripLow:Ge.default,whitelist:He.default,blacklist:_e.default,isWhitelisted:Re.default,normalizeEmail:Ke.default,toString:toString,isSlug:qe.default,isStrongPassword:Je.default,isTaxID:fe.default,isDate:B.default,isLicensePlate:xe.default,isVAT:Ye.default,ibanLocales:P.locales};i.default=ze,t.exports=i.default,t.exports.default=i.default},{"./lib/blacklist":230,"./lib/contains":231,"./lib/equals":232,"./lib/escape":233,"./lib/isAfter":234,"./lib/isAlpha":235,"./lib/isAlphanumeric":236,"./lib/isAscii":237,"./lib/isBIC":238,"./lib/isBase32":239,"./lib/isBase58":240,"./lib/isBase64":241,"./lib/isBefore":242,"./lib/isBoolean":243,"./lib/isBtcAddress":244,"./lib/isByteLength":245,"./lib/isCreditCard":246,"./lib/isCurrency":247,"./lib/isDataURI":248,"./lib/isDate":249,"./lib/isDecimal":250,"./lib/isDivisibleBy":251,"./lib/isEAN":252,"./lib/isEmail":253,"./lib/isEmpty":254,"./lib/isEthereumAddress":255,"./lib/isFQDN":256,"./lib/isFloat":257,"./lib/isFullWidth":258,"./lib/isHSL":259,"./lib/isHalfWidth":260,"./lib/isHash":261,"./lib/isHexColor":262,"./lib/isHexadecimal":263,"./lib/isIBAN":264,"./lib/isIMEI":265,"./lib/isIP":266,"./lib/isIPRange":267,"./lib/isISBN":268,"./lib/isISIN":269,"./lib/isISO31661Alpha2":270,"./lib/isISO31661Alpha3":271,"./lib/isISO4217":272,"./lib/isISO8601":273,"./lib/isISRC":274,"./lib/isISSN":275,"./lib/isIdentityCard":276,"./lib/isIn":277,"./lib/isInt":278,"./lib/isJSON":279,"./lib/isJWT":280,"./lib/isLatLong":281,"./lib/isLength":282,"./lib/isLicensePlate":283,"./lib/isLocale":284,"./lib/isLowercase":285,"./lib/isMACAddress":286,"./lib/isMD5":287,"./lib/isMagnetURI":288,"./lib/isMimeType":289,"./lib/isMobilePhone":290,"./lib/isMongoId":291,"./lib/isMultibyte":292,"./lib/isNumeric":293,"./lib/isOctal":294,"./lib/isPassportNumber":295,"./lib/isPort":296,"./lib/isPostalCode":297,"./lib/isRFC3339":298,"./lib/isRgbColor":299,"./lib/isSemVer":300,"./lib/isSlug":301,"./lib/isStrongPassword":302,"./lib/isSurrogatePair":303,"./lib/isTaxID":304,"./lib/isURL":305,"./lib/isUUID":306,"./lib/isUppercase":307,"./lib/isVAT":308,"./lib/isVariableWidth":309,"./lib/isWhitelisted":310,"./lib/ltrim":311,"./lib/matches":312,"./lib/normalizeEmail":313,"./lib/rtrim":314,"./lib/stripLow":315,"./lib/toBoolean":316,"./lib/toDate":317,"./lib/toFloat":318,"./lib/toInt":319,"./lib/trim":320,"./lib/unescape":321,"./lib/whitelist":328}],229:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.commaDecimal=i.dotDecimal=i.farsiLocales=i.arabicLocales=i.englishLocales=i.decimal=i.alphanumeric=i.alpha=void 0;var A={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i};i.alpha=A;var r={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i};i.alphanumeric=r;var n={"en-US":".",ar:"٫"};i.decimal=n;var o=["AU","GB","HK","IN","NZ","ZA","ZM"];i.englishLocales=o;for(var a,s=0;si.minOccurrences;return e.split((0,r.default)(t)).length>i.minOccurrences};var A=o(e("./util/assertString")),r=o(e("./util/toString")),n=o(e("./util/merge"));function o(e){return e&&e.__esModule?e:{default:e}}var a={ignoreCase:!1,minOccurrences:1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325,"./util/toString":327}],232:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),e===t};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],233:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],234:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,A.default)(e);var i=(0,r.default)(t),n=(0,r.default)(e);return!!(n&&i&&n>i)};var A=n(e("./util/assertString")),r=n(e("./toDate"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./toDate":317,"./util/assertString":323}],235:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.default)(e);var A=e,o=i.ignore;if(o)if(o instanceof RegExp)A=A.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");A=A.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in n.alpha)return n.alpha[t].test(A);throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.alpha);i.locales=o},{"./alpha":229,"./util/assertString":323}],236:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.default)(e);var A=e,o=i.ignore;if(o)if(o instanceof RegExp)A=A.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");A=A.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in n.alphanumeric)return n.alphanumeric[t].test(A);throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.alphanumeric);i.locales=o},{"./alpha":229,"./util/assertString":323}],237:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[\x00-\x7F]+$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],238:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),!n.CountryCodes.has(e.slice(4,6).toUpperCase()))return!1;return o.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./isISO31661Alpha2");var o=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;t.exports=i.default,t.exports.default=i.default},{"./isISO31661Alpha2":270,"./util/assertString":323}],239:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),e.length%8==0&&n.test(e))return!0;return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z2-7]+=*$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],240:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),n.test(e))return!0;return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-HJ-NP-Za-km-z1-9]*$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],241:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e),t=(0,r.default)(t,s);var i=e.length;if(t.urlSafe)return a.test(e);if(i%4!=0||o.test(e))return!1;var n=e.indexOf("=");return-1===n||n===i-1||n===i-2&&"="===e[i-1]};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/[^A-Z0-9+\/=]/i,a=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],242:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,A.default)(e);var i=(0,r.default)(t),n=(0,r.default)(e);return!!(n&&i&&n1&&void 0!==arguments[1]?arguments[1]:n;if((0,r.default)(e),t.loose)return a.includes(e.toLowerCase());return o.includes(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={loose:!1},o=["true","false","1","0"],a=[].concat(o,["yes","no"]);t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],244:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),e.startsWith("bc1"))return n.test(e);return o.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(bc1)[a-z0-9]{25,39}$/,o=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],245:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i,A;(0,r.default)(e),"object"===n(t)?(i=t.min||0,A=t.max):(i=arguments[1],A=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=i&&(void 0===A||o<=A)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],246:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.replace(/[- ]+/g,"");if(!n.test(t))return!1;for(var i,A,o,a=0,s=t.length-1;s>=0;s--)i=t.substring(s,s+1),A=parseInt(i,10),a+=o&&(A*=2)>=10?A%10+1:A,o=!o;return!(a%10!=0||!t)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],247:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,i){0!==i&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var i="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),A="-?",r="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),n="(".concat(["0","[1-9]\\d*",r].join("|"),")?"),o="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),a=n+(e.allow_decimal||e.require_decimal?o:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?a+=A:e.negative_sign_before_digits&&(a=A+a));e.allow_negative_sign_placeholder?a="( (?!\\-))?".concat(a):e.allow_space_after_symbol?a=" ?".concat(a):e.allow_space_after_digits&&(a+="( (?!$))?");e.symbol_after_digits?a+=i:a=i+a;e.allow_negatives&&(e.parens_for_negatives?a="(\\(".concat(a,"\\)|").concat(a,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(a=A+a));return new RegExp("^(?!-? )(?=.*\\d)".concat(a,"$"))}(t=(0,A.default)(t,o)).test(e)};var A=n(e("./util/merge")),r=n(e("./util/assertString"));function n(e){return e&&e.__esModule?e:{default:e}}var o={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],248:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.split(",");if(t.length<2)return!1;var i=t.shift().trim().split(";"),A=i.shift();if("data:"!==A.substr(0,5))return!1;var s=A.substr(5);if(""!==s&&!n.test(s))return!1;for(var c=0;c=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}(s);try{for(I.s();!(i=I.n()).done;){var f=(u=i.value,d=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],A=!0,r=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(A=(o=a.next()).done)&&(i.push(o.value),!t||i.length!==t);A=!0);}catch(e){r=!0,n=e}finally{try{A||null==a.return||a.return()}finally{if(r)throw n}}return i}(u,d)||n(u,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=f[0],g=f[1];if(h.length!==g.length)return!1;c[g.charAt(0)]=h}}catch(e){I.e(e)}finally{I.f()}return new Date("".concat(c.m,"/").concat(c.d,"/").concat(c.y)).getDate()===+c.d}var u,d;var l;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var A,r=(A=e("./util/merge"))&&A.__esModule?A:{default:A};function n(e,t){if(e){if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i$)/g,""),s.endsWith(" ")&&(s=s.substr(0,s.length-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(s))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var l=e.split("@"),B=l.pop(),p=B.toLowerCase();if(t.host_blacklist.includes(p))return!1;var C=l.join("@");if(t.domain_specific_validation&&("gmail.com"===p||"googlemail.com"===p)){var Q=(C=C.toLowerCase()).split("+")[0];if(!(0,n.default)(Q.replace(/\./g,""),{min:6,max:30}))return!1;for(var E=Q.split("."),y=0;y63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],257:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e),t=t||{};var i=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?n.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||"-"===e||"+"===e)return!1;var A=parseFloat(e.replace(",","."));return i.test(e)&&(!t.hasOwnProperty("min")||A>=t.min)&&(!t.hasOwnProperty("max")||A<=t.max)&&(!t.hasOwnProperty("lt")||At.gt)},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.decimal);i.locales=o},{"./alpha":229,"./util/assertString":323}],258:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)},i.fullWidth=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;i.fullWidth=n},{"./util/assertString":323}],259:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return n.test(t);return o.test(t)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,o=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],260:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)},i.halfWidth=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;i.halfWidth=n},{"./util/assertString":323}],261:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),new RegExp("^[a-fA-F0-9]{".concat(n[t],"}$")).test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],262:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],263:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(0x|0h)?[0-9A-F]+$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],264:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),i=t.slice(0,2).toUpperCase();return i in n&&n[i].test(t)}(e)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var o=Object.keys(n);i.locales=o},{"./util/assertString":323}],265:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=n;(t=t||{}).allow_hyphens&&(i=o);if(!i.test(e))return!1;e=e.replace(/-/g,"");for(var A=0,a=2,s=0;s<14;s++){var c=e.substring(14-s-1,14-s),I=parseInt(c,10)*a;A+=I>=10?I%10+1:I,1===a?a+=1:a-=1}if((10-A%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[0-9]{15}$/,o=/^\d{2}-\d{6}-\d{6}-\d{1}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],266:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),!(i=String(i)))return e(t,4)||e(t,6);if("4"===i){if(!a.test(t))return!1;var A=t.split(".").sort((function(e,t){return e-t}));return A[3]<=255}if("6"===i)return!!c.test(t);return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(n,"[.]){3}").concat(n),a=new RegExp("^".concat(o,"$")),s="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(o,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(o,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(o,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(o,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(o,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(o,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(o,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],267:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,A.default)(e);var i=e.split("/");if(2!==i.length)return!1;if(!o.test(i[1]))return!1;if(i[1].length>1&&i[1].startsWith("0"))return!1;var n=(0,r.default)(i[0],t);if(!n)return!1;var s=null;switch(String(t)){case"4":s=32;break;case"6":s=a;break;default:s=(0,r.default)(i[0],"6")?a:32}return i[1]<=s&&i[1]>=0};var A=n(e("./util/assertString")),r=n(e("./isIP"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^\d{1,3}$/,a=128;t.exports=i.default,t.exports.default=i.default},{"./isIP":266,"./util/assertString":323}],268:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),!(i=String(i)))return e(t,10)||e(t,13);var A,s=t.replace(/[\s-]+/g,""),c=0;if("10"===i){if(!n.test(s))return!1;for(A=0;A<9;A++)c+=(A+1)*s.charAt(A);if("X"===s.charAt(9)?c+=100:c+=10*s.charAt(9),c%11==0)return!!s}else if("13"===i){if(!o.test(s))return!1;for(A=0;A<12;A++)c+=a[A%2]*s.charAt(A);if(s.charAt(12)-(10-c%10)%10==0)return!!s}return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[0-9]{9}X|[0-9]{10})$/,o=/^(?:[0-9]{13})$/,a=[1,3];t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],269:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),!n.test(e))return!1;for(var t=!0,i=0,A=e.length-2;A>=0;A--)if(e[A]>="A"&&e[A]<="Z")for(var o=e[A].charCodeAt(0)-55,a=0,s=[o%10,Math.trunc(o/10)];a=5?1+2*(c-5):2*c:c,t=!t}else{var I=e[A].charCodeAt(0)-"0".charCodeAt(0);i+=t?I>=5?1+2*(I-5):2*I:I,t=!t}var f=10*Math.trunc((i+9)/10)-i;return+e[e.length-1]===f};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],270:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())},i.CountryCodes=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["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","BL","BM","BN","BO","BQ","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","EH","ER","ES","ET","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","MF","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","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var o=n;i.CountryCodes=o},{"./util/assertString":323}],271:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],272:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())},i.CurrencyCodes=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var o=n;i.CurrencyCodes=o},{"./util/assertString":323}],273:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=t.strictSeparator?o.test(e):n.test(e);return i&&t.strict?a(e):i};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var i=Number(t[1]),A=Number(t[2]);return i%4==0&&i%100!=0||i%400==0?A<=366:A<=365}var r=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),n=r[1],o=r[2],a=r[3],s=o?"0".concat(o).slice(-2):o,c=a?"0".concat(a).slice(-2):a,I=new Date("".concat(n,"-").concat(s||"01","-").concat(c||"01"));return!o||!a||I.getUTCFullYear()===n&&I.getUTCMonth()+1===o&&I.getUTCDate()===a};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],274:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],275:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=n;if(i=t.require_hyphen?i.replace("?",""):i,!(i=t.case_sensitive?new RegExp(i):new RegExp(i,"i")).test(e))return!1;for(var A=e.replace("-","").toUpperCase(),o=0,a=0;a=2&&t===11-i},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var i=t.split("").map(Number),A=(11-(3*i[0]+7*i[1]+6*i[2]+1*i[3]+8*i[4]+9*i[5]+4*i[6]+5*i[7]+2*i[8])%11)%11,r=(11-(5*i[0]+4*i[1]+3*i[2]+2*i[3]+7*i[4]+6*i[5]+5*i[6]+4*i[7]+3*i[8]+2*A)%11)%11;return A===i[9]&&r===i[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,i=0;i<12;i++)t+=parseInt(e[i],10)*(13-i);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var i,A=t,r=0,n=0;n9?i-9:i;return r%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,i=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],A=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],r=["1","0","X","9","8","7","6","5","4","3","2"],n=function(e){return i.includes(e)},o=function(e){var t=parseInt(e.substring(0,4),10),i=parseInt(e.substring(4,6),10),A=parseInt(e.substring(6),10),r=new Date(t,i-1,A);return!(r>new Date)&&(r.getFullYear()===t&&r.getMonth()===i-1&&r.getDate()===A)},a=function(e){return function(e){for(var t=e.substring(0,17),i=0,n=0;n<17;n++)i+=parseInt(t.charAt(n),10)*parseInt(A[n],10);return r[i%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var i=e.substring(0,2);if(!(t=n(i)))return!1;var A="19".concat(e.substring(6,12));return!!(t=o(A))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var i=e.substring(0,2);if(!(t=n(i)))return!1;var A=e.substring(6,14);return!!(t=o(A))&&a(e)}(t))},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},i=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(i)&&Array.from(i).reduce((function(e,i,A){if(0===A){var r=t[i];return r%10*9+Math.floor(r/10)}return 9===A?(10-e%10-Number(i))%10==0:e+Number(i)*(9-A)}),0)}};t.exports=i.default,t.exports.default=i.default},{"./isInt":278,"./util/assertString":323}],277:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i;if((0,A.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var n=[];for(i in t)({}).hasOwnProperty.call(t,i)&&(n[i]=(0,r.default)(t[i]));return n.indexOf(e)>=0}if("object"===o(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var A=n(e("./util/assertString")),r=n(e("./util/toString"));function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/toString":327}],278:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?n:o,A=!t.hasOwnProperty("min")||e>=t.min,a=!t.hasOwnProperty("max")||e<=t.max,s=!t.hasOwnProperty("lt")||et.gt;return i.test(e)&&A&&a&&s&&c};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,o=/^[-+]?[0-9]+$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],279:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e);try{t=(0,r.default)(t,a);var i=[];t.allow_primitives&&(i=[null,!1,!0]);var n=JSON.parse(e);return i.includes(n)||!!n&&"object"===o(n)}catch(e){}return!1};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a={allow_primitives:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],280:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,A.default)(e);var t=e.split("."),i=t.length;if(i>3||i<2)return!1;return t.reduce((function(e,t){return e&&(0,r.default)(t,{urlSafe:!0})}),!0)};var A=n(e("./util/assertString")),r=n(e("./isBase64"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./isBase64":241,"./util/assertString":323}],281:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,A.default)(e),t=(0,r.default)(t,I),!e.includes(","))return!1;var i=e.split(",");if(i[0].startsWith("(")&&!i[1].endsWith(")")||i[1].endsWith(")")&&!i[0].startsWith("("))return!1;if(t.checkDMS)return s.test(i[0])&&c.test(i[1]);return o.test(i[0])&&a.test(i[1])};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,a=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,s=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,c=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,I={checkDMS:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],282:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i,A;(0,r.default)(e),"object"===n(t)?(i=t.min||0,A=t.max):(i=arguments[1]||0,A=arguments[2]);var o=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],a=e.length-o.length;return a>=i&&(void 0===A||a<=A)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],283:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t in n)return n[t](e);if("any"===t){for(var i in n){if((0,n[i])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={"cs-CZ":function(e){return/^(([ABCDEFHKIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((AW|UL|AK|GA|AÖ|LF|AZ|AM|AS|ZE|AN|AB|A|KG|KH|BA|EW|BZ|HY|KM|BT|HP|B|BC|BI|BO|FN|TT|ÜB|BN|AH|BS|FR|HB|ZZ|BB|BK|BÖ|OC|OK|CW|CE|C|CO|LH|CB|KW|LC|LN|DA|DI|DE|DH|SY|NÖ|DO|DD|DU|DN|D|EI|EA|EE|FI|EM|EL|EN|PF|ED|EF|ER|AU|ZP|E|ES|NT|EU|FL|FO|FT|FF|F|FS|FD|FÜ|GE|G|GI|GF|GS|ZR|GG|GP|GR|NY|ZI|GÖ|GZ|GT|HA|HH|HM|HU|WL|HZ|WR|RN|HK|HD|HN|HS|GK|HE|HF|RZ|HI|HG|HO|HX|IK|IL|IN|J|JL|KL|KA|KS|KF|KE|KI|KT|KO|KN|KR|KC|KU|K|LD|LL|LA|L|OP|LM|LI|LB|LU|LÖ|HL|LG|MD|GN|MZ|MA|ML|MR|MY|AT|DM|MC|NZ|RM|RG|MM|ME|MB|MI|FG|DL|HC|MW|RL|MK|MG|MÜ|WS|MH|M|MS|NU|NB|ND|NM|NK|NW|NR|NI|NF|DZ|EB|OZ|TG|TO|N|OA|GM|OB|CA|EH|FW|OF|OL|OE|OG|BH|LR|OS|AA|GD|OH|KY|NP|WK|PB|PA|PE|PI|PS|P|PM|PR|RA|RV|RE|R|H|SB|WN|RS|RD|RT|BM|NE|GV|RP|SU|GL|RO|GÜ|RH|EG|RW|PN|SK|MQ|RU|SZ|RI|SL|SM|SC|HR|FZ|VS|SW|SN|CR|SE|SI|SO|LP|SG|NH|SP|IZ|ST|BF|TE|HV|OD|SR|S|AC|DW|ZW|TF|TS|TR|TÜ|UM|PZ|TP|UE|UN|UH|MN|KK|VB|V|AE|PL|RC|VG|GW|PW|VR|VK|KB|WA|WT|BE|WM|WE|AP|MO|WW|FB|WZ|WI|WB|JE|WF|WO|W|WÜ|BL|Z|GC)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(AIC|FDB|ABG|SLN|SAW|KLZ|BUL|ESB|NAB|SUL|WST|ABI|AZE|BTF|KÖT|DKB|FEU|ROT|ALZ|SMÜ|WER|AUR|NOR|DÜW|BRK|HAB|TÖL|WOR|BAD|BAR|BER|BIW|EBS|KEM|MÜB|PEG|BGL|BGD|REI|WIL|BKS|BIR|WAT|BOR|BOH|BOT|BRB|BLK|HHM|NEB|NMB|WSF|LEO|HDL|WMS|WZL|BÜS|CHA|KÖZ|ROD|WÜM|CLP|NEC|COC|ZEL|COE|CUX|DAH|LDS|DEG|DEL|RSL|DLG|DGF|LAN|HEI|MED|DON|KIB|ROK|JÜL|MON|SLE|EBE|EIC|HIG|WBS|BIT|PRÜ|LIB|EMD|WIT|ERH|HÖS|ERZ|ANA|ASZ|MAB|MEK|STL|SZB|FDS|HCH|HOR|WOL|FRG|GRA|WOS|FRI|FFB|GAP|GER|BRL|CLZ|GTH|NOH|HGW|GRZ|LÖB|NOL|WSW|DUD|HMÜ|OHA|KRU|HAL|HAM|HBS|QLB|HVL|NAU|HAS|EBN|GEO|HOH|HDH|ERK|HER|WAN|HEF|ROF|HBN|ALF|HSK|USI|NAI|REH|SAN|KÜN|ÖHR|HOL|WAR|ARN|BRG|GNT|HOG|WOH|KEH|MAI|PAR|RID|ROL|KLE|GEL|KUS|KYF|ART|SDH|LDK|DIL|MAL|VIB|LER|BNA|GHA|GRM|MTL|WUR|LEV|LIF|STE|WEL|LIP|VAI|LUP|HGN|LBZ|LWL|PCH|STB|DAN|MKK|SLÜ|MSP|TBB|MGH|MTK|BIN|MSH|EIL|HET|SGH|BID|MYK|MSE|MST|MÜR|WRN|MEI|GRH|RIE|MZG|MIL|OBB|BED|FLÖ|MOL|FRW|SEE|SRB|AIB|MOS|BCH|ILL|SOB|NMS|NEA|SEF|UFF|NEW|VOH|NDH|TDO|NWM|GDB|GVM|WIS|NOM|EIN|GAN|LAU|HEB|OHV|OSL|SFB|ERB|LOS|BSK|KEL|BSB|MEL|WTL|OAL|FÜS|MOD|OHZ|OPR|BÜR|PAF|PLÖ|CAS|GLA|REG|VIT|ECK|SIM|GOA|EMS|DIZ|GOH|RÜD|SWA|NES|KÖN|MET|LRO|BÜZ|DBR|ROS|TET|HRO|ROW|BRV|HIP|PAN|GRI|SHK|EIS|SRO|SOK|LBS|SCZ|MER|QFT|SLF|SLS|HOM|SLK|ASL|BBG|SBK|SFT|SHG|MGN|MEG|ZIG|SAD|NEN|OVI|SHA|BLB|SIG|SON|SPN|FOR|GUB|SPB|IGB|WND|STD|STA|SDL|OBG|HST|BOG|SHL|PIR|FTL|SEB|SÖM|SÜW|TIR|SAB|TUT|ANG|SDT|LÜN|LSZ|MHL|VEC|VER|VIE|OVL|ANK|OVP|SBG|UEM|UER|WLG|GMN|NVP|RDG|RÜG|DAU|FKB|WAF|WAK|SLZ|WEN|SOG|APD|WUG|GUN|ESW|WIZ|WES|DIN|BRA|BÜD|WHV|HWI|GHC|WTM|WOB|WUN|MAK|SEL|OCH|HOT|WDA)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)}};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],284:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],285:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e===e.toLowerCase()};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],286:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t&&(t.no_colons||t.no_separators))return o.test(e);return n.test(e)||a.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,o=/^([0-9a-fA-F]){12}$/,a=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],287:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[a-f0-9]{32}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],288:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e.trim())};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^magnet:\?xt(?:\.1)?=urn:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?($|&)/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],289:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)||o.test(e)||a.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i,o=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,a=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],290:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){if((0,r.default)(e),i&&i.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(n.hasOwnProperty(t)&&n[t].test(e))return!0;return!1}));if(t in n)return n[t].test(e);if(!t||"any"===t){for(var A in n){if(n.hasOwnProperty(A))if(n[A].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)[569]\d{7}$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)[1|3])([0|5][0-45-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|91|9[3-9])\d{7}$/,"el-GR":/^(\+?30|0)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}))/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(5|79)\d{7}$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"ms-MY":/^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[2-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-RO":/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/};n["en-CA"]=n["en-US"],n["fr-CA"]=n["en-CA"],n["fr-BE"]=n["nl-BE"],n["zh-HK"]=n["en-HK"],n["zh-MO"]=n["en-MO"],n["ga-IE"]=n["en-IE"],n["fr-CH"]=n["de-CH"],n["it-CH"]=n["fr-CH"];var o=Object.keys(n);i.locales=o},{"./util/assertString":323}],291:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,A.default)(e),(0,r.default)(e)&&24===e.length};var A=n(e("./util/assertString")),r=n(e("./isHexadecimal"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./isHexadecimal":263,"./util/assertString":323}],292:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[^\x00-\x7F]/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],293:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t&&t.no_symbols)return o.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?n.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=/^[0-9]+$/;t.exports=i.default,t.exports.default=i.default},{"./alpha":229,"./util/assertString":323}],294:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(0o)?[0-7]+$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],295:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in n&&n[t].test(i)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],296:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e,{min:0,max:65535})};var A,r=(A=e("./isInt"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./isInt":278}],297:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t in s)return s[t].test(e);if("any"===t){for(var i in s){if(s.hasOwnProperty(i))if(s[i].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^\d{4}$/,o=/^\d{5}$/,a=/^\d{6}$/,s={AD:/^AD\d{3}$/,AT:n,AU:n,AZ:/^AZ\d{4}$/,BE:n,BG:n,BR:/^\d{5}-\d{3}$/,BY:/2[1-4]{1}\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:n,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:o,DK:n,DO:o,DZ:o,EE:o,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:o,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:n,ID:o,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/\b(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}\b/,IS:/^\d{3}$/,IT:o,JP:/^\d{3}\-\d{4}$/,KE:o,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:n,LV:/^LV\-\d{4}$/,LK:o,MX:o,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:o,NL:/^\d{4}\s?[a-z]{2}$/i,NO:n,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:n,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:a,RU:a,SA:o,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:a,SI:n,SK:/^\d{3}\s?\d{2}$/,TH:o,TN:n,TW:/^\d{3}(\d{2})?$/,UA:o,US:/^\d{5}(-\d{4})?$/,ZA:n,ZM:o},c=Object.keys(s);i.locales=c},{"./util/assertString":323}],298:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),h.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/([01][0-9]|2[0-3])/,o=/[0-5][0-9]/,a=new RegExp("[-+]".concat(n.source,":").concat(o.source)),s=new RegExp("([zZ]|".concat(a.source,")")),c=new RegExp("".concat(n.source,":").concat(o.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),I=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),f=new RegExp("".concat(c.source).concat(s.source)),h=new RegExp("^".concat(I.source,"[ tT]").concat(f.source,"$"));t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],299:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,r.default)(e),!t)return n.test(e)||o.test(e);return n.test(e)||o.test(e)||a.test(e)||s.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,o=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,a=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)/,s=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],300:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,A.default)(e),n.test(e)};var A=r(e("./util/assertString"));function r(e){return e&&e.__esModule?e:{default:e}}var n=(0,r(e("./util/multilineRegex")).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/multilineRegex":326}],301:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],302:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,r.default)(e);var i=f(e);if((t=(0,A.default)(t||{},I)).returnScore)return h(i,t);return i.length>=t.minLength&&i.lowercaseCount>=t.minLowercase&&i.uppercaseCount>=t.minUppercase&&i.numberCount>=t.minNumbers&&i.symbolCount>=t.minSymbols};var A=n(e("./util/merge")),r=n(e("./util/assertString"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^[A-Z]$/,a=/^[a-z]$/,s=/^[0-9]$/,c=/^[-#!$@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,I={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function f(e){var t,i,A=(t=e,i={},Array.from(t).forEach((function(e){i[e]?i[e]+=1:i[e]=1})),i),r={length:e.length,uniqueChars:Object.keys(A).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(A).forEach((function(e){o.test(e)?r.uppercaseCount+=A[e]:a.test(e)?r.lowercaseCount+=A[e]:s.test(e)?r.numberCount+=A[e]:c.test(e)&&(r.symbolCount+=A[e])})),r}function h(e,t){var i=0;return i+=e.uniqueChars*t.pointsPerUnique,i+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(i+=t.pointsForContainingLower),e.uppercaseCount>0&&(i+=t.pointsForContainingUpper),e.numberCount>0&&(i+=t.pointsForContainingNumber),e.symbolCount>0&&(i+=t.pointsForContainingSymbol),i}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],303:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],304:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,r.default)(e);var i=e.slice(0);if(t in g)return t in l&&(i=i.replace(l[t],"")),!!g[t].test(i)&&(!(t in u)||u[t](i));throw new Error("Invalid locale '".concat(t,"'"))};var r=s(e("./util/assertString")),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==A(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}i.default=e,t&&t.set(e,i);return i}(e("./util/algorithms")),o=s(e("./isDate"));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return I(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i0){if(t&&!i&&!/[AEIOU]/.test(e[A]))return!1;if(i&&!/X/.test(e[A]))return!1}return!0}var g={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};g["lb-LU"]=g["fr-LU"],g["lt-LT"]=g["et-EE"],g["nl-BE"]=g["fr-BE"];var u={"bg-BG":function(e){var t=e.slice(0,2),i=parseInt(e.slice(2,4),10);i>40?(i-=40,t="20".concat(t)):i>20?(i-=20,t="18".concat(t)):t="19".concat(t),i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),n=[2,4,8,5,10,9,7,3,6],a=0,s=0;s50&&(i-=50),i>20){if(parseInt(t,10)<2004)return!1;i-=20}i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var r=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===r))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return n.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=[],A=0;A1}))).length&&3!==i.length)return!1;if(3===i[0].length){for(var o=i[0].split("").map((function(e){return parseInt(e,10)})),a=0,s=0;s58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var i="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=4,a=0;a<9;a++)r+=A[a]*n,1===(n-=1)&&(n=7);return 1!==(r%=11)&&(0===r?0===A[9]:A[9]===11-r)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),i=0,A=1;A4&&(i+=2));return String.fromCharCode(i%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=0,A=0;A<8;A++)i+=t[A]*Math.pow(2,8-A);return i%11%10===t[8]},"en-IE":function(e){var t=n.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in f)f.hasOwnProperty(t)&&e.push.apply(e,c(f[t]));return e}().indexOf(e.substr(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var i=0;switch(t[0]){case"Y":i=1;break;case"Z":i=2}t.splice(0,1,i)}else for(;t.length<9;)t.unshift(0);t=t.join("");var A=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][A]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=1,a=0;a<10;a++)r+=A[a]*n,10===(n+=1)&&(n=1);if(r%11==10){r=0,n=3;for(var s=0;s<10;s++)r+=A[s]*n,10===(n+=1)&&(n=1);if(r%11==10)return 0===A[10]}return r%11===A[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;var A=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return A<10?A===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][A-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,o.default)(t,"YY/MM/DD"))return!1}var i=97-parseInt(e.slice(0,9),10)%97,A=parseInt(e.slice(9,11),10);return i===A||(i=97-parseInt("2".concat(e.slice(0,9)),10)%97)===A},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,o.default)(t,"YYYY/MM/DD")&&(!!n.luhnCheck(e.slice(0,12))&&n.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return n.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=8,A=1;A<9;A++)i+=t[A]*(A+1);return i%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!h(t.slice(0,3)))return!1;if(!h(t.slice(3,6)))return!1;for(var i={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},A=0,r=[6,7,9,10,12,13,14];A40&&(s-=40),s<10&&(s="0".concat(s));var c="".concat(t[6]).concat(t[7],"/").concat(a,"/").concat(s);if(!(0,o.default)(c,"YY/MM/DD"))return!1;for(var I=0,f=1;f4&&(l+=2)}I+=l}return String.fromCharCode(65+I%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var i=e.slice(4,6);switch(e[6]){case"0":i="18".concat(i);break;case"1":i="19".concat(i);break;default:i="20".concat(i)}var A="".concat(i,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,o.default)(A,"YYYY/MM/DD"))return!1}for(var r=1101,n=[1,6,3,7,9,10,5,8,4,2],a=0;a32e3)return!1;if(i===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return n.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],i=0,A=0;A80?(r="18".concat(r),n-=80):n>60?(r="22".concat(r),n-=60):n>40?(r="21".concat(r),n-=40):n>20?(r="20".concat(r),n-=20):r="19".concat(r),n<10&&(n="0".concat(n));var a="".concat(r,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,o.default)(a,"YYYY/MM/DD"))return!1;for(var s=0,c=1,I=0;I10?c=1:5===c&&(c+=2);return(s=10-s%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,i;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var A=1;A<=9;A++)t+=parseInt(e.substring(A-1,A),10)*(11-A);if(10===(i=10*t%11)&&(i=0),i!==parseInt(e.substring(9,10),10))return!1;t=0;for(var r=1;r<=10;r++)t+=parseInt(e.substring(r-1,r),10)*(12-r);return 10===(i=10*t%11)&&(i=0),i===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var n=e.length-2,o=e.substring(0,n),a=e.substring(n),s=0,c=n-7,I=n;I>=1;I--)s+=o.charAt(n-I)*c,(c-=1)<2&&(c=9);var f=s%11<2?0:11-s%11;if(f!==parseInt(a.charAt(0),10))return!1;n+=1,o=e.substring(0,n),s=0,c=n-7;for(var h=n;h>=1;h--)s+=o.charAt(n-h)*c,(c-=1)<2&&(c=9);return(f=s%11<2?0:11-s%11)===parseInt(a.charAt(1),10)},"pt-PT":function(e){var t=11-n.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===i.length){if(!(0,o.default)(i,"YY/MM/DD"))return!1}else if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=[2,7,9,1,4,6,3,5,8,2,7,9],n=0,a=0;a53)return!1;t=t<10?"190".concat(t):"19".concat(t);var i=parseInt(e.slice(2,4),10);i>50&&(i-=50),i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-n.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var i="",A=t.slice(2,4),r=parseInt(t.slice(4,6),10);if(e.length>11)i=e.slice(0,4);else if(i=e.slice(0,2),11===e.length&&r<60){var a=(new Date).getFullYear().toString(),s=parseInt(a.slice(0,2),10);if(a=parseInt(a,10),"-"===e[6])i=parseInt("".concat(s).concat(i),10)>a?"".concat(s-1).concat(i):"".concat(s).concat(i);else if(i="".concat(s-1).concat(i),a-parseInt(i,10)<100)return!1}r>60&&(r-=60),r<10&&(r="0".concat(r));var c="".concat(i,"/").concat(A,"/").concat(r);if(8===c.length){if(!(0,o.default)(c,"YY/MM/DD"))return!1}else if(!(0,o.default)(c,"YYYY/MM/DD"))return!1;return n.luhnCheck(e.replace(/\W/,""))}};u["lb-LU"]=u["fr-LU"],u["lt-LT"]=u["et-EE"],u["nl-BE"]=u["fr-BE"];var d=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,l={"de-AT":d,"de-DE":/[\/\\]/g,"fr-BE":d};l["nl-BE"]=l["fr-BE"],t.exports=i.default,t.exports.default=i.default},{"./isDate":249,"./util/algorithms":322,"./util/assertString":323}],305:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,A.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,o.default)(t,c)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var i,a,h,g,u,d,l,B;if(l=e.split("#"),e=l.shift(),l=e.split("?"),e=l.shift(),(l=e.split("://")).length>1){if(i=l.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(i))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;l[0]=e.substr(2)}}if(""===(e=l.join("://")))return!1;if(l=e.split("/"),""===(e=l.shift())&&!t.require_host)return!0;if((l=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===l[0])return!1;if((a=l.shift()).indexOf(":")>=0&&a.split(":").length>2)return!1;var p=a.split(":"),C=(b=2,function(e){if(Array.isArray(e))return e}(y=p)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],A=!0,r=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(A=(o=a.next()).done)&&(i.push(o.value),!t||i.length!==t);A=!0);}catch(e){r=!0,n=e}finally{try{A||null==a.return||a.return()}finally{if(r)throw n}}return i}}(y,b)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(e,t):void 0}}(y,b)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),Q=C[0],E=C[1];if(""===Q&&""===E)return!1}var y,b;g=l.join("@"),d=null,B=null;var m=g.match(I);m?(h="",B=m[1],d=m[2]||null):(h=(l=g.split(":")).shift(),l.length&&(d=l.join(":")));if(null!==d&&d.length>0){if(u=parseInt(d,10),!/^[0-9]+$/.test(d)||u<=0||u>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return f(h,t.host_whitelist);if(!((0,n.default)(h)||(0,r.default)(h,t)||B&&(0,n.default)(B,6)))return!1;if(h=h||B,t.host_blacklist&&f(h,t.host_blacklist))return!1;return!0};var A=a(e("./util/assertString")),r=a(e("./isFQDN")),n=a(e("./isIP")),o=a(e("./util/merge"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i=0;i--)if(-1===t.indexOf(e[i]))return!1;return!0};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],311:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(i,"")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],312:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){(0,r.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,i));return t.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],313:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){t=(0,r.default)(t,n);var i=e.split("@"),A=i.pop(),f=[i.join("@"),A];if(f[1]=f[1].toLowerCase(),"gmail.com"===f[1]||"googlemail.com"===f[1]){if(t.gmail_remove_subaddress&&(f[0]=f[0].split("+")[0]),t.gmail_remove_dots&&(f[0]=f[0].replace(/\.+/g,I)),!f[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]=t.gmail_convert_googlemaildotcom?"gmail.com":f[1]}else if(o.indexOf(f[1])>=0){if(t.icloud_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(f[0]=f[0].toLowerCase())}else if(a.indexOf(f[1])>=0){if(t.outlookdotcom_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(f[0]=f[0].toLowerCase())}else if(s.indexOf(f[1])>=0){if(t.yahoo_remove_subaddress){var h=f[0].split("-");f[0]=h.length>1?h.slice(0,-1).join("-"):h[0]}if(!f[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(f[0]=f[0].toLowerCase())}else c.indexOf(f[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]="yandex.ru"):t.all_lowercase&&(f[0]=f[0].toLowerCase());return f.join("@")};var A,r=(A=e("./util/merge"))&&A.__esModule?A:{default:A};var n={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},o=["icloud.com","me.com"],a=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],s=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],c=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function I(e){return e.length>1?e:""}t.exports=i.default,t.exports.default=i.default},{"./util/merge":325}],314:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t){var i=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(i,"")}var A=e.length-1;for(;/\s/.test(e.charAt(A));)A-=1;return e.slice(0,A+1)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],315:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e);var i=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(e,i)};var A=n(e("./util/assertString")),r=n(e("./blacklist"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./blacklist":230,"./util/assertString":323}],316:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],317:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],318:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e)?parseFloat(e):NaN};var A,r=(A=e("./isFloat"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./isFloat":257}],319:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),parseInt(e,t||10)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],320:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,A.default)((0,r.default)(e,t),t)};var A=n(e("./rtrim")),r=n(e("./ltrim"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./ltrim":311,"./rtrim":314}],321:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],322:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.iso7064Check=function(e){for(var t=10,i=0;i=0;A--){if(i){var r=2*parseInt(e[A],10);t+=r>9?r.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):r}else t+=parseInt(e[A],10);i=!i}return t%10==0},i.reverseMultiplyAndSum=function(e,t){for(var i=0,A=0;A0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var i in t)void 0===e[i]&&(e[i]=t[i]);return e},t.exports=i.default,t.exports.default=i.default},{}],326:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i=e.join("");return new RegExp(i,t)},t.exports=i.default,t.exports.default=i.default},{}],327:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){"object"===A(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},t.exports=i.default,t.exports.default=i.default},{}],328:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],329:[function(e,t,i){t.exports={name:"doipjs",version:"0.18.1",description:"Decentralized Online Identity Proofs library in Node.js",main:"./src/index.js",dependencies:{"@openpgp/hkp-client":"^0.0.2","@openpgp/wkd-client":"^0.0.3","@xmpp/client":"^0.13.1","@xmpp/debug":"^0.13.0",axios:"^0.25.0","browser-or-node":"^1.3.0",cors:"^2.8.5",dotenv:"^8.2.0",express:"^4.17.1","express-validator":"^6.10.0","hash-wasm":"^4.9.0","irc-upd":"^0.11.0","merge-options":"^3.0.3",openpgp:"^5.5.0","query-string":"^6.14.1","valid-url":"^1.0.9",validator:"^13.5.2"},devDependencies:{browserify:"^17.0.0","browserify-shim":"^3.8.14",chai:"^4.2.0","chai-as-promised":"^7.1.1","chai-match-pattern":"^1.2.0","clean-jsdoc-theme":"^3.2.4",husky:"^7.0.0",jsdoc:"^3.6.6","license-check-and-add":"^4.0.3","lint-staged":"^11.0.0",minify:"^9.1",mocha:"^9.2.0",nodemon:"^2.0.19",standard:"^16.0.3"},scripts:{release:"yarn run test && yarn run release:bundle && yarn run release:minify","release:bundle":"./node_modules/.bin/browserify ./src/index.js --standalone doip -x openpgp -x @xmpp/client -x @xmpp/debug -x irc-upd -o ./dist/doip.js","release:minify":"./node_modules/.bin/minify ./dist/doip.js > ./dist/doip.min.js","license:check":"./node_modules/.bin/license-check-and-add check","license:add":"./node_modules/.bin/license-check-and-add add","license:remove":"./node_modules/.bin/license-check-and-add remove","docs:lib":"./node_modules/.bin/jsdoc -c jsdoc-lib.json -r -d ./docs -P package.json","standard:check":"./node_modules/.bin/standard ./src","standard:fix":"./node_modules/.bin/standard --fix ./src",mocha:"./node_modules/.bin/mocha",test:"yarn run standard:check && yarn run license:check && yarn run mocha",prepare:"husky install"},repository:{type:"git",url:"https://codeberg.org/keyoxide/doipjs"},homepage:"https://js.doip.rocks",keywords:["pgp","gpg","openpgp","encryption","decentralized","identity"],author:"Yarmo Mackenbach (https://yarmo.eu)",license:"Apache-2.0",browserify:{transform:["browserify-shim"]},"browserify-shim":{openpgp:"global:openpgp"}}},{}],330:[function(e,t,i){const A=e("validator"),r=e("valid-url"),n=e("merge-options"),o=e("./proofs"),a=e("./verifications"),s=e("./claimDefinitions"),c=e("./defaults"),I=e("./enums");t.exports=class{constructor(e,t){if("object"==typeof e&&"claimVersion"in e){const t=e;if(1!==t.claimVersion)throw new Error("Invalid claim version");return this._uri=t.uri,this._fingerprint=t.fingerprint,this._status=t.status,this._matches=t.matches,void(this._verification=t.verification)}if(e&&!r.isUri(e))throw new Error("Invalid URI");if(t)try{A.isAlphanumeric(t)}catch(e){throw new Error("Invalid fingerprint")}this._uri=e||"",this._fingerprint=t||"",this._status=I.ClaimStatus.INIT,this._matches=[],this._verification={}}get uri(){return this._uri}get fingerprint(){return this._fingerprint}get status(){return this._status}get matches(){if(this._status===I.ClaimStatus.INIT)throw new Error("This claim has not yet been matched");return this._matches}get verification(){if(this._status!==I.ClaimStatus.VERIFIED)throw new Error("This claim has not yet been verified");return this._verification}set uri(e){if(this._status!==I.ClaimStatus.INIT)throw new Error("Cannot change the URI, this claim has already been matched");if(e.length>0&&!r.isUri(e))throw new Error("The URI was invalid");e=e.replace(/^\s+|\s+$/g,""),this._uri=e}set fingerprint(e){if(this._status===I.ClaimStatus.VERIFIED)throw new Error("Cannot change the fingerprint, this claim has already been verified");this._fingerprint=e}set status(e){throw new Error("Cannot change a claim's status")}set matches(e){throw new Error("Cannot change a claim's matches")}set verification(e){throw new Error("Cannot change a claim's verification result")}match(){if(this._status!==I.ClaimStatus.INIT)throw new Error("This claim was already matched");if(0===this._uri.length||!r.isUri(this._uri))throw new Error("This claim has no URI");this._matches=[],s.list.every(((e,t)=>{const i=s.data[e];if(!i.reURI.test(this._uri))return!0;const A=i.processURI(this._uri);return!A||(A.match.isAmbiguous?(this._matches.push(A),!0):(this._matches=[A],!1))})),this._status=I.ClaimStatus.MATCHED}async verify(e){if(this._status===I.ClaimStatus.INIT)throw new Error("This claim has not yet been matched");if(this._status===I.ClaimStatus.VERIFIED)throw new Error("This claim has already been verified");if(0===this._fingerprint.length)throw new Error("This claim has no fingerprint");e=n(c.opts,e||{}),0===this._matches.length&&(this._verification={result:!1,completed:!0,proof:{},errors:["No matches for claim"]});for(let t=0;t1||this._matches[0].match.isAmbiguous}toJSON(){return{claimVersion:1,uri:this._uri,fingerprint:this._fingerprint,status:this._status,matches:this._matches,verification:this._verification}}}},{"./claimDefinitions":339,"./defaults":351,"./enums":352,"./proofs":364,"./verifications":367,"merge-options":172,"valid-url":227,validator:228}],331:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/?/,n={postprocess:(e,t)=>(e.profile.display=`${t.result.preferredUsername}@${new URL(t.result.url).hostname}`,{claimData:e,proofData:t})};i.reURI=r,i.processURI=e=>({serviceprovider:{type:"web",name:"activitypub"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:e,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.ACTIVITYPUB,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:e}}},claim:[{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["summary"]},{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["attachment","value"]},{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["content"]}]}),i.functions=n,i.tests=[{uri:"https://domain.org",shouldMatch:!0},{uri:"https://domain.org/@/alice/",shouldMatch:!0},{uri:"https://domain.org/@alice",shouldMatch:!0},{uri:"https://domain.org/@alice/123456",shouldMatch:!0},{uri:"https://domain.org/u/alice/",shouldMatch:!0},{uri:"https://domain.org/users/alice/",shouldMatch:!0},{uri:"https://domain.org/users/alice/123456",shouldMatch:!0},{uri:"http://domain.org/alice",shouldMatch:!1}]},{"../enums":352}],332:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/dev\.to\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"devto"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://dev.to/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://dev.to/api/articles/${t[1]}/${t[2]}`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["body_markdown"]}]}},i.tests=[{uri:"https://dev.to/alice/post",shouldMatch:!0},{uri:"https://dev.to/alice/post/",shouldMatch:!0},{uri:"https://domain.org/alice/post",shouldMatch:!1}]},{"../enums":352}],333:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/u\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"discourse"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/u/${t[2]}.json`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["user","bio_raw"]}]}},i.tests=[{uri:"https://domain.org/u/alice",shouldMatch:!0},{uri:"https://domain.org/u/alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":352}],334:[function(e,t,i){const A=e("../enums"),r=/^dns:([a-zA-Z0-9.\-_]*)(?:\?(.*))?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"dns"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://${t[1]}`,qr:null},proof:{uri:null,request:{fetcher:A.Fetcher.DNS,access:A.ProofAccess.SERVER,format:A.ProofFormat.JSON,data:{domain:t[1]}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["records","txt"]}]}},i.tests=[{uri:"dns:domain.org",shouldMatch:!0},{uri:"dns:domain.org?type=TXT",shouldMatch:!0},{uri:"https://domain.org",shouldMatch:!1}]},{"../enums":352}],335:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/(.*)\/gitea_proof\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"gitea"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:`https://${t[1]}/${t[2]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/api/v1/repos/${t[2]}/gitea_proof`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["description"]}]}},i.tests=[{uri:"https://domain.org/alice/gitea_proof",shouldMatch:!0},{uri:"https://domain.org/alice/gitea_proof/",shouldMatch:!0},{uri:"https://domain.org/alice/other_proof",shouldMatch:!1}]},{"../enums":352}],336:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/gist\.github\.com\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"github"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://github.com/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://api.github.com/gists/${t[2]}`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["files","openpgp.md","content"]}]}},i.tests=[{uri:"https://gist.github.com/Alice/123456789",shouldMatch:!0},{uri:"https://gist.github.com/Alice/123456789/",shouldMatch:!0},{uri:"https://domain.org/Alice/123456789",shouldMatch:!1}]},{"../enums":352}],337:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/(.*)\/gitlab_proof\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"gitlab"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:`https://${t[1]}/${t[2]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/api/v4/projects/${t[2]}%2Fgitlab_proof`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["description"]}]}},i.tests=[{uri:"https://gitlab.domain.org/alice/gitlab_proof",shouldMatch:!0},{uri:"https://gitlab.domain.org/alice/gitlab_proof/",shouldMatch:!0},{uri:"https://domain.org/alice/other_proof",shouldMatch:!1}]},{"../enums":352}],338:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/news\.ycombinator\.com\/user\?id=(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"hackernews"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://hacker-news.firebaseio.com/v0/user/${t[1]}.json`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://hacker-news.firebaseio.com/v0/user/${t[1]}.json`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["about"]}]}},i.tests=[{uri:"https://news.ycombinator.com/user?id=Alice",shouldMatch:!0},{uri:"https://news.ycombinator.com/user?id=Alice/",shouldMatch:!0},{uri:"https://domain.org/user?id=Alice",shouldMatch:!1}]},{"../enums":352}],339:[function(e,t,i){const A={dns:e("./dns"),irc:e("./irc"),xmpp:e("./xmpp"),matrix:e("./matrix"),telegram:e("./telegram"),twitter:e("./twitter"),reddit:e("./reddit"),liberapay:e("./liberapay"),lichess:e("./lichess"),hackernews:e("./hackernews"),lobsters:e("./lobsters"),devto:e("./devto"),gitea:e("./gitea"),gitlab:e("./gitlab"),github:e("./github"),activitypub:e("./activitypub"),discourse:e("./discourse"),owncast:e("./owncast"),stackexchange:e("./stackexchange")};i.list=Object.keys(A),i.data=A},{"./activitypub":331,"./devto":332,"./discourse":333,"./dns":334,"./gitea":335,"./github":336,"./gitlab":337,"./hackernews":338,"./irc":340,"./liberapay":341,"./lichess":342,"./lobsters":343,"./matrix":344,"./owncast":345,"./reddit":346,"./stackexchange":347,"./telegram":348,"./twitter":349,"./xmpp":350}],340:[function(e,t,i){const A=e("../enums"),r=/^irc:\/\/(.*)\/([a-zA-Z0-9\-[\]\\`_^{|}]*)/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"irc"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`irc://${t[1]}/${t[2]}`,uri:e,qr:null},proof:{uri:null,request:{fetcher:A.Fetcher.IRC,access:A.ProofAccess.SERVER,format:A.ProofFormat.JSON,data:{domain:t[1],nick:t[2]}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}]}},i.tests=[{uri:"irc://chat.ircserver.org/Alice1",shouldMatch:!0},{uri:"irc://chat.ircserver.org/alice?param=123",shouldMatch:!0},{uri:"irc://chat.ircserver.org/alice_bob",shouldMatch:!0},{uri:"https://chat.ircserver.org/alice",shouldMatch:!1}]},{"../enums":352}],341:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/liberapay\.com\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"liberapay"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://liberapay.com/${t[1]}/public.json`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["statements","content"]}]}},i.tests=[{uri:"https://liberapay.com/alice",shouldMatch:!0},{uri:"https://liberapay.com/alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":352}],342:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/lichess\.org\/@\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"lichess"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://lichess.org/api/user/${t[1]}`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://lichess.org/api/user/${t[1]}`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["profile","links"]}]}},i.tests=[{uri:"https://lichess.org/@/Alice",shouldMatch:!0},{uri:"https://lichess.org/@/Alice/",shouldMatch:!0},{uri:"https://domain.org/@/Alice",shouldMatch:!1}]},{"../enums":352}],343:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/lobste\.rs\/u\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"lobsters"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://lobste.rs/u/${t[1]}.json`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://lobste.rs/u/${t[1]}.json`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["about"]}]}},i.tests=[{uri:"https://lobste.rs/u/Alice",shouldMatch:!0},{uri:"https://lobste.rs/u/Alice/",shouldMatch:!0},{uri:"https://domain.org/u/Alice",shouldMatch:!1}]},{"../enums":352}],344:[function(e,t,i){const A=e("../enums"),r=e("query-string"),n=/^matrix:u\/(?:@)?([^@:]*:[^?]*)(\?.*)?/;i.reURI=n,i.processURI=e=>{const t=e.match(n);if(!t[2])return null;const i=r.parse(t[2]);if(!("org.keyoxide.e"in i)||!("org.keyoxide.r"in i))return null;const o=`https://matrix.to/#/@${t[1]}`,a=`https://matrix.to/#/${i["org.keyoxide.r"]}/${i["org.keyoxide.e"]}`;return{serviceprovider:{type:"communication",name:"matrix"},match:{regularExpression:n,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:o,qr:null},proof:{uri:a,request:{fetcher:A.Fetcher.MATRIX,access:A.ProofAccess.GRANTED,format:A.ProofFormat.JSON,data:{eventId:i["org.keyoxide.e"],roomId:i["org.keyoxide.r"]}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["content","body"]}]}},i.tests=[{uri:"matrix:u/alice:matrix.domain.org?org.keyoxide.r=!123:domain.org&org.keyoxide.e=$123",shouldMatch:!0},{uri:"matrix:u/alice:matrix.domain.org",shouldMatch:!0},{uri:"xmpp:alice@domain.org",shouldMatch:!1},{uri:"https://domain.org/@alice",shouldMatch:!1}]},{"../enums":352,"query-string":194}],345:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"owncast"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:t[1],uri:e,qr:null},proof:{uri:`${e}/api/config`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`${e}/api/config`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["socialHandles","url"]}]}},i.tests=[{uri:"https://live.domain.org",shouldMatch:!0},{uri:"https://live.domain.org/",shouldMatch:!0},{uri:"https://domain.org/live",shouldMatch:!0},{uri:"https://domain.org/live/",shouldMatch:!0}]},{"../enums":352}],346:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(?:www\.)?reddit\.com\/user\/(.*)\/comments\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"reddit"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://www.reddit.com/user/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://www.reddit.com/user/${t[1]}/comments/${t[2]}.json`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["data","children","data","selftext"]}]}},i.tests=[{uri:"https://www.reddit.com/user/Alice/comments/123456/post",shouldMatch:!0},{uri:"https://www.reddit.com/user/Alice/comments/123456/post/",shouldMatch:!0},{uri:"https://reddit.com/user/Alice/comments/123456/post",shouldMatch:!0},{uri:"https://reddit.com/user/Alice/comments/123456/post/",shouldMatch:!0},{uri:"https://domain.org/user/Alice/comments/123456/post",shouldMatch:!1}]},{"../enums":352}],347:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*(?:askubuntu|mathoverflow|serverfault|stackapps|stackoverflow|superuser)|.+\.stackexchange)\.com\/users\/(\d+)/,n=/\.stackexchange$/;i.reURI=r,i.processURI=e=>{const[,t,i]=e.match(r),o=t.replace(n,"");return{serviceprovider:{type:"web",name:"stackexchange"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`${i}@${o}`,uri:e,qr:null},proof:{uri:`https://${t}.com/users/${i}?tab=profile`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://api.stackexchange.com/2.3/users/${i}?site=${o}&filter=!AH)b5JqVyImf`,format:A.ProofFormat.JSON}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["items","about_me"]}]}},i.tests=[{uri:"https://stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234/alice",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234?tab=topactivity",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234/alice?tab=profile",shouldMatch:!0},{uri:"https://meta.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://pt.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://pt.meta.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://serverfault.com/users/1234",shouldMatch:!0},{uri:"https://meta.stackexchange.com/users/1234",shouldMatch:!0},{uri:"https://gaming.meta.stackexchange.com/users/1234",shouldMatch:!0},{uri:"https://stackexchange.com/users/1234",shouldMatch:!1},{uri:"https://domain.com/users/1234",shouldMatch:!1},{uri:"https://meta.domain.com/users/1234",shouldMatch:!1}]},{"../enums":352}],348:[function(e,t,i){const A=e("../enums"),r=/https:\/\/t.me\/([A-Za-z0-9_]{5,32})\?proof=([A-Za-z0-9_]{5,32})/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"telegram"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:`https://t.me/${t[1]}`,qr:`https://t.me/${t[1]}`},proof:{uri:`https://t.me/${t[2]}`,request:{fetcher:A.Fetcher.TELEGRAM,access:A.ProofAccess.GRANTED,format:A.ProofFormat.JSON,data:{user:t[1],chat:t[2]}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["text"]}]}},i.tests=[{uri:"https://t.me/alice?proof=foobar",shouldMatch:!0},{uri:"https://t.me/complex_user_1234?proof=complex_chat_1234",shouldMatch:!0},{uri:"https://t.me/foobar",shouldMatch:!1},{uri:"https://t.me/foobar?proof=",shouldMatch:!1},{uri:"https://t.me/?proof=foobar",shouldMatch:!1}]},{"../enums":352}],349:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/twitter\.com\/(.*)\/status\/([0-9]*)(?:\?.*)?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"twitter"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:`https://twitter.com/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.TWITTER,access:A.ProofAccess.GRANTED,format:A.ProofFormat.TEXT,data:{tweetId:t[2]}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}]}},i.tests=[{uri:"https://twitter.com/alice/status/1234567890123456789",shouldMatch:!0},{uri:"https://twitter.com/alice/status/1234567890123456789/",shouldMatch:!0},{uri:"https://domain.org/alice/status/1234567890123456789",shouldMatch:!1}]},{"../enums":352}],350:[function(e,t,i){const A=e("../enums"),r=/^xmpp:([a-zA-Z0-9.\-_]*)@([a-zA-Z0-9.\-_]*)(?:\?(.*))?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"xmpp"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`${t[1]}@${t[2]}`,uri:e,qr:e},proof:{uri:null,request:{fetcher:A.Fetcher.XMPP,access:A.ProofAccess.SERVER,format:A.ProofFormat.JSON,data:{id:`${t[1]}@${t[2]}`}}},claim:[{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}]}},i.tests=[{uri:"xmpp:alice@domain.org",shouldMatch:!0},{uri:"xmpp:alice@domain.org?omemo-sid-123456789=A1B2C3D4E5F6G7H8I9",shouldMatch:!0},{uri:"https://domain.org",shouldMatch:!1}]},{"../enums":352}],351:[function(e,t,i){const A={proxy:{hostname:null,policy:e("./enums").ProxyPolicy.NEVER},claims:{activitypub:{url:null,privateKey:null},irc:{nick:null},matrix:{instance:null,accessToken:null},telegram:{token:null},twitter:{bearerToken:null},xmpp:{service:null,username:null,password:null}}};i.opts=A},{"./enums":352}],352:[function(e,t,i){const A={ADAPTIVE:"adaptive",ALWAYS:"always",NEVER:"never"};Object.freeze(A);const r={ACTIVITYPUB:"activitypub",DNS:"dns",HTTP:"http",IRC:"irc",MATRIX:"matrix",TELEGRAM:"telegram",TWITTER:"twitter",XMPP:"xmpp"};Object.freeze(r);const n={GENERIC:"generic",NOCORS:"nocors",GRANTED:"granted",SERVER:"server"};Object.freeze(n);const o={JSON:"json",TEXT:"text"};Object.freeze(o);const a={URI:"uri",FINGERPRINT:"fingerprint"};Object.freeze(a);const s={CONTAINS:"contains",EQUALS:"equals",ONEOF:"oneof"};Object.freeze(s);const c={INIT:"init",MATCHED:"matched",VERIFIED:"verified"};Object.freeze(c),i.ProxyPolicy=A,i.Fetcher=r,i.ProofAccess=n,i.ProofFormat=o,i.ClaimFormat=a,i.ClaimRelation=s,i.ClaimStatus=c},{}],353:[function(e,t,i){const A=e("axios"),r=e("validator"),n=e("browser-or-node");t.exports.timeout=5e3,t.exports.fn=async(i,o)=>{let a,s;n.isNode&&(a=e("crypto"));const c=new Promise(((e,A)=>{s=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),I=new Promise(((t,s)=>{(async()=>{let c=!1;try{r.isURL(o.claims.activitypub.url),c=!0}catch(e){}const I=new Date,{host:f,pathname:h,search:g}=new URL(i.url),u={host:f,date:I.toUTCString(),accept:"application/activity+json","User-Agent":`doipjs/${e("../../package.json").version}`};if(c&&n.isNode){const e=`(request-target): get ${h}${g}\nhost: ${f}\ndate: ${I.toUTCString()}`,t=a.createSign("SHA256");t.write(e),t.end();const i=t.sign(o.claims.activitypub.privateKey.replace(/\\n/g,"\n"),"base64");u.signature=`keyId="${o.claims.activitypub.url}#main-key",headers="(request-target) host date",signature="${i}",algorithm="rsa-sha256"`}A.get(i.url,{headers:u}).then((e=>e.data)).then((e=>{t(e)})).catch((e=>{s(e)}))})()}));return Promise.race([I,c]).then((e=>(clearTimeout(s),e)))}},{"../../package.json":329,axios:17,"browser-or-node":49,crypto:106,validator:228}],354:[function(e,t,i){const A=e("browser-or-node");if(t.exports.timeout=5e3,A.isNode){const i=e("dns");t.exports.fn=async(e,A)=>{let r;const n=new Promise(((i,A)=>{r=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),o=new Promise(((t,A)=>{i.resolveTxt(e.domain,((i,r)=>{i?A(i):t({domain:e.domain,records:{txt:r}})}))}));return Promise.race([o,n]).then((e=>(clearTimeout(r),e)))}}else t.exports.fn=null},{"browser-or-node":49,dns:96}],355:[function(e,t,i){const A=e("axios"),r=e("../enums");t.exports.timeout=5e3,t.exports.fn=async(i,n)=>{let o;const a=new Promise(((e,A)=>{o=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),s=new Promise(((t,n)=>{if(i.url)switch(i.format){case r.ProofFormat.JSON:A.get(i.url,{headers:{Accept:"application/json","User-Agent":`doipjs/${e("../../package.json").version}`},validateStatus:function(e){return e>=200&&e<400}}).then((e=>{t(e.data)})).catch((e=>{n(e)}));break;case r.ProofFormat.TEXT:A.get(i.url,{validateStatus:function(e){return e>=200&&e<400},responseType:"text"}).then((e=>{t(e.data)})).catch((e=>{n(e)}));break;default:n(new Error("No specified data format"))}else n(new Error("No valid URI provided"))}));return Promise.race([s,a]).then((e=>(clearTimeout(o),e)))}},{"../../package.json":329,"../enums":352,axios:17}],356:[function(e,t,i){i.activitypub=e("./activitypub"),i.dns=e("./dns"),i.http=e("./http"),i.irc=e("./irc"),i.matrix=e("./matrix"),i.telegram=e("./telegram"),i.twitter=e("./twitter"),i.xmpp=e("./xmpp")},{"./activitypub":353,"./dns":354,"./http":355,"./irc":357,"./matrix":358,"./telegram":359,"./twitter":360,"./xmpp":361}],357:[function(e,t,i){const A=e("browser-or-node");if(t.exports.timeout=2e4,A.isNode){const i=e("irc-upd"),A=e("validator");t.exports.fn=async(e,r)=>{let n;const o=new Promise(((i,A)=>{n=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),a=new Promise(((t,n)=>{try{A.isAscii(r.claims.irc.nick)}catch(e){throw new Error(`IRC fetcher was not set up properly (${e.message})`)}try{const A=new i.Client(e.domain,r.claims.irc.nick,{port:6697,secure:!0,channels:[],showErrors:!1,debug:!1}),n=/[a-zA-Z0-9\-_]+\s+:\s(openpgp4fpr:.*)/,o=/End\sof\s.*\staxonomy./,a=[];A.addListener("registered",(t=>{A.send(`PRIVMSG NickServ TAXONOMY ${e.nick}`)})),A.addListener("notice",((e,i,r,s)=>{if(n.test(r)){const e=r.match(n);a.push(e[1])}o.test(r)&&(A.disconnect(),t(a))}))}catch(e){n(e)}}));return Promise.race([a,o]).then((e=>(clearTimeout(n),e)))}}else t.exports.fn=null},{"browser-or-node":49,"irc-upd":"irc-upd",validator:228}],358:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(i,n)=>{let o;const a=new Promise(((e,A)=>{o=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),s=new Promise(((t,o)=>{try{r.isFQDN(n.claims.matrix.instance),r.isAscii(n.claims.matrix.accessToken)}catch(e){throw new Error(`Matrix fetcher was not set up properly (${e.message})`)}const a=`https://${n.claims.matrix.instance}/_matrix/client/r0/rooms/${i.roomId}/event/${i.eventId}?access_token=${n.claims.matrix.accessToken}`;A.get(a,{headers:{Accept:"application/json","User-Agent":`doipjs/${e("../../package.json").version}`}}).then((e=>e.data)).then((e=>{t(e)})).catch((e=>{o(e)}))}));return Promise.race([s,a]).then((e=>(clearTimeout(o),e)))}},{"../../package.json":329,axios:17,validator:228}],359:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(i,n)=>{let o;const a=new Promise(((e,A)=>{o=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),s=t=>new Promise(((o,a)=>{try{r.isAscii(n.claims.telegram.token)}catch(e){throw new Error(`Telegram fetcher was not set up properly (${e.message})`)}if(!i.chat||!i.user)return void a(new Error("Both chat name and user name must be provided"));const s=`https://api.telegram.org/bot${n.claims.telegram.token}/${t}?chat_id=@${i.chat}`;A.get(s,{headers:{Accept:"application/json","User-Agent":`doipjs/${e("../../package.json").version}`},validateStatus:e=>200===e}).then((e=>o(e.data))).catch((e=>a(e)))})),c=s("getChatAdministrators").then((e=>{if(!e.ok)throw new Error("Request to get chat administrators failed");return s("getChat").then((t=>{if(!t.ok)throw new Error("Request to get chat info failed");let A;for(const t of e.result)"creator"===t.status&&(A=t.user.username);if(!t.result.description)throw new Error("There is no chat description");if(A!==i.user)throw new Error("User doesn't match");return{user:A,text:t.result.description}}))}));return Promise.race([c,a]).then((e=>(clearTimeout(o),e)))}},{"../../package.json":329,axios:17,validator:228}],360:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(i,n)=>{let o;const a=new Promise(((e,A)=>{o=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),s=new Promise(((t,o)=>{try{r.isAscii(n.claims.twitter.bearerToken)}catch(e){throw new Error(`Twitter fetcher was not set up properly (${e.message})`)}A.get(`https://api.twitter.com/1.1/statuses/show.json?id=${i.tweetId}&tweet_mode=extended`,{headers:{Accept:"application/json","User-Agent":`doipjs/${e("../../package.json").version}`,Authorization:`Bearer ${n.claims.twitter.bearerToken}`}}).then((e=>e.data)).then((e=>{t(e.full_text)})).catch((e=>{o(e)}))}));return Promise.race([s,a]).then((e=>(clearTimeout(o),e)))}},{"../../package.json":329,axios:17,validator:228}],361:[function(e,t,i){(function(i){(function(){const A=e("browser-or-node");if(t.exports.timeout=5e3,A.isNode){const{client:A,xml:r}=e("@xmpp/client"),n=e("@xmpp/debug"),o=e("validator");let a=null,s=null;const c=async(e,t,r)=>new Promise(((o,a)=>{const s=A({service:e,username:t,password:r});"production"!==i.env.NODE_ENV&&n(s,!0);const{iqCaller:c}=s;s.start(),s.on("online",(e=>{o({xmpp:s,iqCaller:c})})),s.on("error",(e=>{a(e)}))}));t.exports.fn=async(e,i)=>{try{o.isFQDN(i.claims.xmpp.service),o.isAscii(i.claims.xmpp.username),o.isAscii(i.claims.xmpp.password)}catch(e){throw new Error(`XMPP fetcher was not set up properly (${e.message})`)}if(!a||"online"!==a.status){const e=await c(i.claims.xmpp.service,i.claims.xmpp.username,i.claims.xmpp.password);a=e.xmpp,s=e.iqCaller}let A;const n=new Promise(((i,r)=>{A=setTimeout((()=>r(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),I=new Promise(((t,i)=>{(async()=>{let A=!1;const n=[];if(!A)try{(await s.request(r("iq",{type:"get",to:e.id},r("pubsub","http://jabber.org/protocol/pubsub",r("items",{node:"http://ariadne.id/protocol/proof"}))),3e4)).getChild("pubsub").getChildren("items").forEach((e=>{"http://ariadne.id/protocol/proof"===e.attrs.node&&e.getChildren("item").forEach((e=>{n.push(e.getChildText("value"))}))})),t(n),A=!0}catch(e){}if(!A)try{(await s.request(r("iq",{type:"get",to:e.id},r("pubsub","http://jabber.org/protocol/pubsub",r("items",{node:"urn:xmpp:vcard4",max_items:"1"}))),3e4)).getChild("pubsub").getChildren("items").forEach((e=>{"urn:xmpp:vcard4"===e.attrs.node&&e.getChildren("item").forEach((e=>{if("current"===e.attrs.id){const t=e.getChild("vcard","urn:ietf:params:xml:ns:vcard-4.0");t.getChildren("url").forEach((e=>{n.push(e.getChildText("uri"))})),t.getChildren("note").forEach((e=>{n.push(e.getChildText("text"))}))}}))})),t(n),A=!0}catch(e){}if(!A)try{const i=await s.request(r("iq",{type:"get",to:e.id},r("vCard","vcard-temp")),3e4);i.getChild("vCard","vcard-temp").getChildren("URL").forEach((e=>{n.push(e.children[0])})),i.getChild("vCard","vcard-temp").getChildren("NOTE").forEach((e=>{n.push(e.children[0])})),i.getChild("vCard","vcard-temp").getChildren("DESC").forEach((e=>{n.push(e.children[0])})),t(n),A=!0}catch(e){i(e)}a.stop()})()}));return Promise.race([I,n]).then((e=>(clearTimeout(A),e)))}}else t.exports.fn=null}).call(this)}).call(this,e("_process"))},{"@xmpp/client":"@xmpp/client","@xmpp/debug":"@xmpp/debug",_process:187,"browser-or-node":49,validator:228}],362:[function(e,t,i){const A=e("./claim"),r=e("./claimDefinitions"),n=e("./proofs"),o=e("./keys"),a=e("./signatures"),s=e("./enums"),c=e("./defaults"),I=e("./utils"),f=e("./verifications"),h=e("./fetcher");i.Claim=A,i.claimDefinitions=r,i.proofs=n,i.keys=o,i.signatures=a,i.enums=s,i.defaults=c,i.utils=I,i.verifications=f,i.fetcher=h},{"./claim":330,"./claimDefinitions":339,"./defaults":351,"./enums":352,"./fetcher":356,"./keys":363,"./proofs":364,"./signatures":365,"./utils":366,"./verifications":367}],363:[function(e,t,i){(function(t){(function(){const A=e("axios"),r=e("valid-url"),n="undefined"!=typeof window?window.openpgp:void 0!==t?t.openpgp:null,o=e("@openpgp/hkp-client"),a=e("@openpgp/wkd-client"),s=e("./claim"),c=async(e,t)=>{const i=new o(t?`https://${t}`:"https://keys.openpgp.org"),A={query:e},r=await i.lookup(A).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}));if(!r)throw new Error("Key does not exist or could not be fetched");return await n.readKey({armoredKey:r}).catch((e=>{throw new Error(`Key could not be read (${e})`)}))},I=async e=>{const t=new a,i={email:e},A=await t.lookup(i).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}));if(!A)throw new Error("Key does not exist or could not be fetched");return await n.readKey({binaryKey:A}).catch((e=>{throw new Error(`Key could not be read (${e})`)}))},f=async(e,t)=>{const i=`https://keybase.io/${e}/pgp_keys.asc?fingerprint=${t}`;let r;try{r=await A.get(i,{responseType:"text"}).then((e=>{if(200===e.status)return e})).then((e=>e.data))}catch(e){throw new Error(`Error fetching Keybase key: ${e.message}`)}return await n.readKey({armoredKey:r}).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}))},h=async e=>await n.readKey({armoredKey:e}).catch((e=>{throw new Error(`Key could not be read (${e})`)}));i.fetchHKP=c,i.fetchWKD=I,i.fetchKeybase=f,i.fetchPlaintext=h,i.fetchURI=async e=>{if(!r.isUri(e))throw new Error("Invalid URI");const t=e.match(/([a-zA-Z0-9]*):([a-zA-Z0-9@._=+-]*)(?::([a-zA-Z0-9@._=+-]*))?/);if(!t[1])throw new Error("Invalid URI");switch(t[1]){case"hkp":return await c(t[3]?t[3]:t[2],t[3]?t[2]:null);case"wkd":return await I(t[2]);case"kb":return await f(t[2],t.length>=4?t[3]:null);default:throw new Error("Invalid URI protocol")}},i.fetch=async e=>{const t=e.match(/([a-zA-Z0-9@._=+-]*)(?::([a-zA-Z0-9@._=+-]*))?/);let i=null;if(!i)try{i=await h(e)}catch(e){}if(!i&&e.includes("@"))try{i=await I(t[1])}catch(e){}if(i||(i=await c(t[2]?t[2]:t[1],t[2]?t[1]:null)),!i)throw new Error("Key does not exist or could not be fetched");return i},i.process=async e=>{if(!(e&&e instanceof n.PublicKey))throw new Error("Invalid public key");const t=e.getFingerprint(),i=await e.getPrimaryUser(),A=e.users,r=[];return A.forEach(((e,A)=>{if(r[A]={userData:{id:e.userID?e.userID.userID:null,name:e.userID?e.userID.name:null,email:e.userID?e.userID.email:null,comment:e.userID?e.userID.comment:null,isPrimary:i.index===A,isRevoked:!1},claims:[]},"selfCertifications"in e&&e.selfCertifications.length>0){const i=e.selfCertifications[0],n=i.rawNotations;r[A].claims=n.filter((({name:e,humanReadable:t})=>t&&("proof@ariadne.id"===e||"proof@metacode.biz"===e))).map((({value:e})=>new s((new TextDecoder).decode(e),t))),r[A].userData.isRevoked=i.revoked}})),{fingerprint:t,users:r,primaryUserIndex:i.index,key:{data:e,fetchMethod:null,uri:null}}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./claim":330,"@openpgp/hkp-client":1,"@openpgp/wkd-client":2,axios:17,"valid-url":227}],364:[function(e,t,i){const A=e("browser-or-node"),r=e("./fetcher"),n=e("./utils"),o=e("./enums"),a=(e,t)=>{switch(t.proxy.policy){case o.ProxyPolicy.ALWAYS:return I(e,t);case o.ProxyPolicy.NEVER:switch(e.proof.request.access){case o.ProofAccess.GENERIC:case o.ProofAccess.GRANTED:return c(e,t);case o.ProofAccess.NOCORS:case o.ProofAccess.SERVER:throw new Error("Impossible to fetch proof (bad combination of service access and proxy policy)");default:throw new Error("Invalid proof access value")}case o.ProxyPolicy.ADAPTIVE:switch(e.proof.request.access){case o.ProofAccess.GENERIC:return f(e,t);case o.ProofAccess.NOCORS:return I(e,t);case o.ProofAccess.GRANTED:return f(e,t);case o.ProofAccess.SERVER:return I(e,t);default:throw new Error("Invalid proof access value")}default:throw new Error("Invalid proxy policy")}},s=(e,t)=>{switch(t.proxy.policy){case o.ProxyPolicy.ALWAYS:return I(e,t);case o.ProxyPolicy.NEVER:return c(e,t);case o.ProxyPolicy.ADAPTIVE:return f(e,t);default:throw new Error("Invalid proxy policy")}},c=(e,t)=>new Promise(((i,A)=>{r[e.proof.request.fetcher].fn(e.proof.request.data,t).then((t=>i({fetcher:e.proof.request.fetcher,data:e,viaProxy:!1,result:t}))).catch((e=>A(e)))})),I=(e,t)=>new Promise(((i,A)=>{let o;try{o=n.generateProxyURL(e.proof.request.fetcher,e.proof.request.data,t)}catch(e){A(e)}const a={url:o,format:e.proof.request.format,fetcherTimeout:r[e.proof.request.fetcher].timeout};r.http.fn(a,t).then((t=>i({fetcher:"http",data:e,viaProxy:!0,result:t}))).catch((e=>A(e)))})),f=(e,t)=>new Promise(((i,A)=>{c(e,t).then((e=>i(e))).catch((r=>{I(e,t).then((e=>i(e))).catch((e=>A(e)))}))}));i.fetch=(e,t)=>{if(e.proof.request.fetcher===o.Fetcher.HTTP)e.proof.request.data.format=e.proof.request.format;return A.isNode?s(e,t):a(e,t)}},{"./enums":352,"./fetcher":356,"./utils":366,"browser-or-node":49}],365:[function(e,t,i){(function(t){(function(){const A="undefined"!=typeof window?window.openpgp:void 0!==t?t.openpgp:null,r=e("./claim"),n=e("./keys");i.process=async e=>{let t;const i={fingerprint:null,users:[{userData:{},claims:[]}],primaryUserIndex:null,key:{data:null,fetchMethod:null,uri:null}};try{t=await A.readCleartextMessage({cleartextMessage:e})}catch(e){throw new Error(`Signature could not be read (${e.message})`)}const o=t.signature.packets[0].issuerKeyID.toHex(),a=t.signature.packets[0].signersUserID,s=t.signature.packets[0].preferredKeyServer||"https://keys.openpgp.org/",c=t.getText(),I=[];if(c.split("\n").forEach(((e,t)=>{const A=e.match(/^([a-zA-Z0-9]*)=(.*)$/i);if(A)switch(A[1].toLowerCase()){case"key":I.push(A[2]);break;case"proof":i.users[0].claims.push(new r(A[2]))}})),I.length>0)try{i.key.uri=I[0],i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod=i.key.uri.split(":")[0]}catch(e){}if(!i.key.data&&a)try{i.key.uri=`wkd:${a}`,i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod="wkd"}catch(e){}if(!i.key.data)try{const e=s.match(/^(.*:\/\/)?([^/]*)(?:\/)?$/i);i.key.uri=`hkp:${e[2]}:${o||a}`,i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod="hkp"}catch(e){throw new Error("Public key not found")}const f=await A.verify({message:t,verificationKeys:i.key.data}),{verified:h}=f.signatures[0];try{await h}catch(e){throw new Error(`Signature could not be verified (${e.message})`)}i.fingerprint=i.key.data.keyPacket.getFingerprint(),i.users[0].claims.forEach((e=>{e.fingerprint=i.fingerprint}));const g=await i.key.data.getPrimaryUser();let u;return a&&i.key.data.users.forEach((e=>{e.userID.email===a&&(u=e)})),u||(u=g.user),i.users[0].userData={id:u.userID?u.userID.userID:null,name:u.userID?u.userID.name:null,email:u.userID?u.userID.email:null,comment:u.userID?u.userID.comment:null,isPrimary:g.user.userID.userID===u.userID.userID},i.primaryUserIndex=i.users[0].userData.isPrimary?0:null,i}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./claim":330,"./keys":363}],366:[function(e,t,i){const A=e("validator"),r=e("./enums");i.generateProxyURL=(e,t,i)=>{try{A.isFQDN(i.proxy.hostname)}catch(e){throw new Error("Invalid proxy hostname")}const r=[];return Object.keys(t).forEach((e=>{r.push(`${e}=${encodeURIComponent(t[e])}`)})),`https://${i.proxy.hostname}/api/2/get/${e}?${r.join("&")}`},i.generateClaim=(e,t)=>{switch(t){case r.ClaimFormat.URI:return`openpgp4fpr:${e}`;case r.ClaimFormat.FINGERPRINT:return e;default:throw new Error("No valid claim format")}},i.getUriFromString=e=>{const t=e.match(/((([A-Za-z0-9]+:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?)/gi),i=[];return t?(t.forEach((e=>{let t=!0;for(;t;){const i=e.charAt(e.length-1);-1!=="?!.".indexOf(i)?e=e.substring(0,e.length-1):t=!1}i.push(e)})),i):[]}},{"./enums":352,validator:228}],367:[function(e,t,i){const A=e("./utils"),r=e("./enums"),{bcryptVerify:n,argon2Verify:o}=e("hash-wasm"),a=async(e,t,i)=>{const a=A.generateClaim(t,i),s=A.generateClaim(t,r.ClaimFormat.URI);let c=!1;if(c=-1!==e.replace(/\r?\n|\r/g,"").toLowerCase().indexOf(a.toLowerCase()),!c){const t=/\$(argon2(?:id|d|i)|2a|2b|2y)(?:\$[a-zA-Z0-9=+\-,./]+)+/g;let i;for(;!c&&null!=(i=t.exec(e));){let e;const t=new Promise(((t,i)=>{e=setTimeout((()=>{t(!1)}),1e3)}));switch(i[1]){case"2a":case"2b":case"2y":try{if(parseInt(i[0].split("$")[2])>12)continue;const A=n({password:s,hash:i[0]}).then((e=>e)).catch((e=>!1));c=await Promise.race([A,t]).then((t=>(clearTimeout(e),t)))}catch(e){c=!1}break;case"argon2":case"argon2i":case"argon2d":case"argon2id":try{const A=o({password:s,hash:i[0]}).then((e=>e)).catch((e=>!1));c=await Promise.race([A,t]).then((t=>(clearTimeout(e),t)))}catch(e){c=!1}break;default:continue}}}if(!c){const t=A.getUriFromString(e);for(let e=0;e!1));r&&(200===r.status&&r.headers.get("ariadne-identity-proof")&&(c=-1!==r.headers.get("ariadne-identity-proof").toLowerCase().indexOf(s.toLowerCase())))}}return c},s=async(e,t,i,A,n)=>{if(!e)return!1;if(Array.isArray(e)){let r=!1;for(let o=0;o{const A={result:!1,completed:!1,errors:[]};switch(t.proof.request.format){case r.ProofFormat.JSON:for(let r=0;r=2.2.7 <3" -abab@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" - integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== - abbrev@1: version "1.1.1" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" @@ -706,14 +696,6 @@ accessory@~1.1.0: balanced-match "~0.2.0" dot-parts "~1.0.0" -acorn-globals@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" - integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== - dependencies: - acorn "^7.1.1" - acorn-walk "^7.1.1" - acorn-jsx@^5.3.1: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" @@ -728,7 +710,7 @@ acorn-node@^1.2.0, acorn-node@^1.3.0, acorn-node@^1.5.2, acorn-node@^1.8.2: acorn-walk "^7.0.0" xtend "^4.0.2" -acorn-walk@^7.0.0, acorn-walk@^7.1.1: +acorn-walk@^7.0.0: version "7.2.0" resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== @@ -738,22 +720,15 @@ acorn@^5.2.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz#3e8d8a9947d0599a1796d10225d7432f4a4acf5e" integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== -acorn@^7.0.0, acorn@^7.1.1, acorn@^7.4.0: +acorn@^7.0.0, acorn@^7.4.0: version "7.4.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -acorn@^8.5.0, acorn@^8.7.1: - version "8.8.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.0.tgz#88c0187620435c7f6015803f5539dae05a9dbea8" - integrity sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w== - -agent-base@6: - version "6.0.2" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" +acorn@^8.5.0: + version "8.8.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73" + integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== aggregate-error@^3.0.0: version "3.1.0" @@ -774,9 +749,9 @@ ajv@^6.10.0, ajv@^6.12.4: uri-js "^4.2.2" ajv@^8.0.1: - version "8.11.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.0.tgz#977e91dd96ca669f54a11e23e378e33b884a565f" - integrity sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg== + version "8.11.2" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.2.tgz#aecb20b50607acf2569b6382167b65a96008bb78" + integrity sha512-E4bfmKAhGiSTvMfL1Myyycaub+cUEU2/IvpylXkUu7CHBkBj1f/ikdzbD7YQ6FKUbixDxeYvB/xY4fvyroDlQg== dependencies: fast-deep-equal "^3.1.1" json-schema-traverse "^1.0.0" @@ -830,9 +805,9 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0: color-convert "^2.0.1" anymatch@~3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" - integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== + version "3.1.3" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" + integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== dependencies: normalize-path "^3.0.0" picomatch "^2.0.4" @@ -860,14 +835,14 @@ array-flatten@1.1.1: integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== array-includes@^3.1.3, array-includes@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.5.tgz#2c320010db8d31031fd2a5f6b3bbd4b1aad31bdb" - integrity sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ== + version "3.1.6" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.6.tgz#9e9e720e194f198266ba9e18c29e6a9b0e4b225f" + integrity sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw== dependencies: call-bind "^1.0.2" define-properties "^1.1.4" - es-abstract "^1.19.5" - get-intrinsic "^1.1.1" + es-abstract "^1.20.4" + get-intrinsic "^1.1.3" is-string "^1.0.7" array-union@^2.1.0: @@ -876,33 +851,33 @@ array-union@^2.1.0: integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== array.prototype.flat@^1.2.4: - version "1.3.0" - resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.0.tgz#0b0c1567bf57b38b56b4c97b8aa72ab45e4adc7b" - integrity sha512-12IUEkHsAhA4DY5s0FPgNXIdc8VRSqD9Zp78a5au9abH/SOBrsp082JOWFNTjkMozh8mqcdiKuaLGhPeYztxSw== + version "1.3.1" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz#ffc6576a7ca3efc2f46a143b9d1dda9b4b3cf5e2" + integrity sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" es-shim-unscopables "^1.0.0" array.prototype.flatmap@^1.2.4: - version "1.3.0" - resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.0.tgz#a7e8ed4225f4788a70cd910abcf0791e76a5534f" - integrity sha512-PZC9/8TKAIxcWKdyeb77EzULHPrIX/tIZebLJUQOMR1OwYosT8yggdfWScfTBCDj5utONvOuPQQumYsU2ULbkg== + version "1.3.1" + resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz#1aae7903c2100433cb8261cd4ed310aab5c4a183" + integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" es-shim-unscopables "^1.0.0" -array.prototype.reduce@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/array.prototype.reduce/-/array.prototype.reduce-1.0.4.tgz#8167e80089f78bff70a99e20bd4201d4663b0a6f" - integrity sha512-WnM+AjG/DvLRLo4DDl+r+SvCzYtD2Jd9oeBYMcEaI7t3fFrHY9M53/wdLcTvmZNQ70IU6Htj0emFkZ5TS+lrdw== +array.prototype.reduce@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/array.prototype.reduce/-/array.prototype.reduce-1.0.5.tgz#6b20b0daa9d9734dd6bc7ea66b5bbce395471eac" + integrity sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" es-array-method-boxes-properly "^1.0.0" is-string "^1.0.7" @@ -943,11 +918,6 @@ astral-regex@^2.0.0: resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== - at-least-node@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" @@ -1022,10 +992,10 @@ bn.js@^5.0.0, bn.js@^5.1.1: resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70" integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== -body-parser@1.20.0: - version "1.20.0" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.0.tgz#3de69bd89011c11573d7bfee6a64f11b6bd27cc5" - integrity sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg== +body-parser@1.20.1: + version "1.20.1" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668" + integrity sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw== dependencies: bytes "3.1.2" content-type "~1.0.4" @@ -1035,7 +1005,7 @@ body-parser@1.20.0: http-errors "2.0.0" iconv-lite "0.4.24" on-finished "2.4.1" - qs "6.10.3" + qs "6.11.0" raw-body "2.5.1" type-is "~1.6.18" unpipe "1.0.0" @@ -1077,11 +1047,6 @@ browser-pack@^6.0.1: through2 "^2.0.0" umd "^3.0.0" -browser-process-hrtime@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" - integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== - browser-resolve@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-2.0.0.tgz#99b7304cb392f8d73dba741bb2d7da28c6d7842b" @@ -1134,9 +1099,9 @@ browserify-rsa@^4.0.0, browserify-rsa@^4.0.1: randombytes "^2.0.1" browserify-shim@^3.8.14: - version "3.8.15" - resolved "https://registry.yarnpkg.com/browserify-shim/-/browserify-shim-3.8.15.tgz#e10e09ebda87bf7e385314638cf3ef2d817e34fc" - integrity sha512-wACWQv56oVuxIID3JHFg2SCk40grlWUVX1QKKH14czQXE84WCOmbydcGKYt/IQZTGbBBzH+4uWr3wNNQRnak3Q== + version "3.8.16" + resolved "https://registry.yarnpkg.com/browserify-shim/-/browserify-shim-3.8.16.tgz#f65a77d0e249ae9001f9fa31bbae4360be18e467" + integrity sha512-+Ap0xOKUC5Hz8sdUROxCJHgzA5IeU7pgUquCdlbBxyxkexzU4kpU6u1TsIvnFJcdx1bxO902J08AEjbMqDbA3g== dependencies: exposify "~0.5.0" mothership "~0.3.0" @@ -1220,15 +1185,15 @@ browserify@^17.0.0: vm-browserify "^1.0.0" xtend "^4.0.0" -browserslist@^4.20.2: - version "4.21.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.3.tgz#5df277694eb3c48bc5c4b05af3e8b7e09c5a6d1a" - integrity sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ== +browserslist@^4.21.3: + version "4.21.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.4.tgz#e7496bbc67b9e39dd0f98565feccdcb0d4ff6987" + integrity sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw== dependencies: - caniuse-lite "^1.0.30001370" - electron-to-chromium "^1.4.202" + caniuse-lite "^1.0.30001400" + electron-to-chromium "^1.4.251" node-releases "^2.0.6" - update-browserslist-db "^1.0.5" + update-browserslist-db "^1.0.9" buffer-from@^1.0.0: version "1.1.2" @@ -1294,10 +1259,10 @@ camelcase@^6.0.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001370: - version "1.0.30001393" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001393.tgz#1aa161e24fe6af2e2ccda000fc2b94be0b0db356" - integrity sha512-N/od11RX+Gsk+1qY/jbPa0R6zJupEa0lxeBG598EbrtblxVCTJsQwbRBm6+V+rxpc5lHKdsXb9RY83cZIPLseA== +caniuse-lite@^1.0.30001400: + version "1.0.30001439" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001439.tgz#ab7371faeb4adff4b74dad1718a6fd122e45d9cb" + integrity sha512-1MgUzEkoMO6gKfXflStpYgZDlFM7M/ck/bgfVCACO5vnAf0fXoNVHdWtqGU+MYca+4bL9Z5bpOVmR33cWW9G2A== catharsis@^0.9.0: version "0.9.0" @@ -1321,13 +1286,13 @@ chai-match-pattern@^1.2.0: lodash-match-pattern "^2.3.1" chai@^4.2.0: - version "4.3.6" - resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.6.tgz#ffe4ba2d9fa9d6680cc0b370adae709ec9011e9c" - integrity sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q== + version "4.3.7" + resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.7.tgz#ec63f6df01829088e8bf55fca839bcd464a8ec51" + integrity sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A== dependencies: assertion-error "^1.1.0" check-error "^1.0.2" - deep-eql "^3.0.1" + deep-eql "^4.1.2" get-func-name "^2.0.0" loupe "^2.3.1" pathval "^1.1.1" @@ -1351,9 +1316,9 @@ chalk@^4.0.0, chalk@^4.1.0: supports-color "^7.1.0" chardet@^1.2.1: - version "1.4.0" - resolved "https://registry.yarnpkg.com/chardet/-/chardet-1.4.0.tgz#278748f260219990fb2167dbfb1b253ca26b41ea" - integrity sha512-NpwMDdSIprbYx1CLnfbxEIarI0Z+s9MssEgggMNheGM+WD68yOhV7IEA/3r6tr0yTRgQD0HuZJDw32s99i6L+A== + version "1.5.0" + resolved "https://registry.yarnpkg.com/chardet/-/chardet-1.5.0.tgz#c35b3e9a5994f7574688d1607a2ea9c723ebca95" + integrity sha512-Nj3VehbbFs/1ZnJJJaL3ztEf3Nu5Fs6YV/NBs6lyz/iDDHUU+X9QNk5QgPy1/5Rjtb/cGVf+NyazP7kVEJqKRg== check-error@^1.0.2: version "1.0.2" @@ -1503,13 +1468,6 @@ combine-source-map@^0.8.0, combine-source-map@~0.8.0: lodash.memoize "~3.0.3" source-map "~0.5.3" -combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - commander@^2.20.0: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" @@ -1525,10 +1483,10 @@ commander@^8.2.0: resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== -commander@^9.4.0: - version "9.4.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-9.4.0.tgz#bc4a40918fefe52e22450c111ecd6b7acce6f11c" - integrity sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw== +commander@^9.4.1: + version "9.4.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-9.4.1.tgz#d1dd8f2ce6faf93147295c0df13c7c21141cfbdd" + integrity sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw== commondir@^1.0.1: version "1.0.1" @@ -1573,11 +1531,9 @@ content-type@~1.0.4: integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== convert-source-map@^1.1.0, convert-source-map@^1.7.0: - version "1.8.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369" - integrity sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA== - dependencies: - safe-buffer "~5.1.1" + version "1.9.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" + integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== convert-source-map@~1.1.0: version "1.1.3" @@ -1594,10 +1550,10 @@ cookie@0.5.0: resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b" integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== -core-js@^3.22.1: - version "3.25.1" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.25.1.tgz#5818e09de0db8956e16bf10e2a7141e931b7c69c" - integrity sha512-sr0FY4lnO1hkQ4gLDr24K0DGnweGO1QwSj5BpfQjpSJPdqWalja4cTps29Y/PJVG/P7FYlPDkH3hO+Tr0CvDgQ== +core-js@^3.26.0: + version "3.26.1" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.26.1.tgz#7a9816dabd9ee846c1c0fe0e8fcad68f3709134e" + integrity sha512-21491RRQVzUn0GGM9Z1Jrpr6PNPxPi+Za8OM9q4tksTSnlbXXGKK1nXNg/QvwFYettXvSX6zWKCtHHfjN4puyA== core-util-is@~1.0.0: version "1.0.3" @@ -1613,9 +1569,9 @@ cors@^2.8.5: vary "^1" cosmiconfig@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d" - integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ== + version "7.1.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6" + integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA== dependencies: "@types/parse-json" "^4.0.0" import-fresh "^3.2.1" @@ -1685,37 +1641,11 @@ css-b64-images@~0.2.5: resolved "https://registry.yarnpkg.com/css-b64-images/-/css-b64-images-0.2.5.tgz#42005d83204b2b4a5d93b6b1a5644133b5927a02" integrity sha512-TgQBEdP07adhrDfXvI5o6bHGukKBNMzp2Ngckc/6d09zpjD2gc1Hl3Ca1CKgb8FXjHi88+Phv2Uegs2kTL4zjg== -cssom@^0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.5.0.tgz#d254fa92cd8b6fbd83811b9fbaed34663cc17c36" - integrity sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw== - -cssom@~0.3.6: - version "0.3.8" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" - integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== - -cssstyle@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" - integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== - dependencies: - cssom "~0.3.6" - dash-ast@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/dash-ast/-/dash-ast-1.0.0.tgz#12029ba5fb2f8aa6f0a861795b23c1b4b6c27d37" integrity sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA== -data-urls@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-3.0.2.tgz#9cf24a477ae22bcef5cd5f6f0bfbc1d2d3be9143" - integrity sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ== - dependencies: - abab "^2.0.6" - whatwg-mimetype "^3.0.0" - whatwg-url "^11.0.0" - debug@2.6.9, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" @@ -1723,13 +1653,6 @@ debug@2.6.9, debug@^2.6.9: dependencies: ms "2.0.0" -debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2: - version "4.3.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" - integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== - dependencies: - ms "2.1.2" - debug@4.3.3: version "4.3.3" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664" @@ -1744,6 +1667,13 @@ debug@^3.2.7: dependencies: ms "^2.1.1" +debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + decamelize@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" @@ -1754,24 +1684,19 @@ decamelize@^4.0.0: resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== -decimal.js@^10.3.1: - version "10.4.0" - resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.0.tgz#97a7448873b01e92e5ff9117d89a7bca8e63e0fe" - integrity sha512-Nv6ENEzyPQ6AItkGwLE2PGKinZZ9g59vSh2BeH6NqPu0OTKZ5ruJsVqh/orbAnqXc9pBbgXAIrc2EyaCj8NpGg== - decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha512-hjf+xovcEn31w/EUYdTXQh/8smFL/dzYjohQGEIgjyNavaJfBY2p5F527Bo1VPATxv0VYTUC2bOcXvqFwk78Og== + version "0.2.2" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" + integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== -deep-eql@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-3.0.1.tgz#dfc9404400ad1c8fe023e7da1df1c147c4b444df" - integrity sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw== +deep-eql@^4.1.2: + version "4.1.3" + resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-4.1.3.tgz#7c7775513092f7df98d8df9996dd085eb668cc6d" + integrity sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw== dependencies: type-detect "^4.0.0" -deep-is@^0.1.3, deep-is@~0.1.3: +deep-is@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== @@ -1785,14 +1710,9 @@ define-properties@^1.1.3, define-properties@^1.1.4: object-keys "^1.1.1" defined@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" - integrity sha512-Y2caI5+ZwS5c3RiNDJ6u53VhQHv+hHKwhkI1iHvceKUHw9Df6EK2zRLfjejRgMuCuxK7PfSWIMwWecceVvThjQ== - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + version "1.0.1" + resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.1.tgz#c0b9db27bfaffd95d6f61399419b893df0f91ebf" + integrity sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q== depd@2.0.0: version "2.0.0" @@ -1887,13 +1807,6 @@ domain-browser@^1.2.0: resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" integrity sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA== -domexception@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/domexception/-/domexception-4.0.0.tgz#4ad1be56ccadc86fc76d033353999a8037d03673" - integrity sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw== - dependencies: - webidl-conversions "^7.0.0" - dot-case@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/dot-case/-/dot-case-3.0.4.tgz#9b2b670d00a431667a8a75ba29cd1b98809ce751" @@ -1924,10 +1837,10 @@ ee-first@1.1.1: resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== -electron-to-chromium@^1.4.202: - version "1.4.247" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.247.tgz#cc93859bc5fc521f611656e65ce17eae26a0fd3d" - integrity sha512-FLs6R4FQE+1JHM0hh3sfdxnYjKvJpHZyhQDjc2qFq/xFvmmRt/TATNToZhrcGUFzpF2XjeiuozrA8lI0PZmYYw== +electron-to-chromium@^1.4.251: + version "1.4.284" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz#61046d1e4cab3a25238f6bf7413795270f125592" + integrity sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA== elliptic@^6.5.3: version "6.5.4" @@ -1964,7 +1877,7 @@ enquirer@^2.3.5, enquirer@^2.3.6: dependencies: ansi-colors "^4.1.1" -entities@^4.3.1, entities@^4.4.0: +entities@^4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/entities/-/entities-4.4.0.tgz#97bdaba170339446495e653cfd2db78962900174" integrity sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA== @@ -1981,22 +1894,23 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.19.2, es-abstract@^1.19.5, es-abstract@^1.20.0, es-abstract@^1.20.1: - version "1.20.2" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.2.tgz#8495a07bc56d342a3b8ea3ab01bd986700c2ccb3" - integrity sha512-XxXQuVNrySBNlEkTYJoDNFe5+s2yIOpzq80sUHEdPdQr0S5nTLz4ZPPPswNIpKseDDUS5yghX1gfLIHQZ1iNuQ== +es-abstract@^1.19.0, es-abstract@^1.20.4: + version "1.20.5" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.5.tgz#e6dc99177be37cacda5988e692c3fa8b218e95d2" + integrity sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ== dependencies: call-bind "^1.0.2" es-to-primitive "^1.2.1" function-bind "^1.1.1" function.prototype.name "^1.1.5" - get-intrinsic "^1.1.2" + get-intrinsic "^1.1.3" get-symbol-description "^1.0.0" + gopd "^1.0.1" has "^1.0.3" has-property-descriptors "^1.0.0" has-symbols "^1.0.3" internal-slot "^1.0.3" - is-callable "^1.2.4" + is-callable "^1.2.7" is-negative-zero "^2.0.2" is-regex "^1.1.4" is-shared-array-buffer "^1.0.2" @@ -2006,8 +1920,9 @@ es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.19.2, es-abstract@^1.19 object-keys "^1.1.1" object.assign "^4.1.4" regexp.prototype.flags "^1.4.3" - string.prototype.trimend "^1.0.5" - string.prototype.trimstart "^1.0.5" + safe-regex-test "^1.0.0" + string.prototype.trimend "^1.0.6" + string.prototype.trimstart "^1.0.6" unbox-primitive "^1.0.2" es-array-method-boxes-properly@^1.0.0: @@ -2056,18 +1971,6 @@ escape-string-regexp@^2.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== -escodegen@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz#5e32b12833e8aa8fa35e1bf0befa89380484c7dd" - integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw== - dependencies: - esprima "^4.0.1" - estraverse "^5.2.0" - esutils "^2.0.2" - optionator "^0.8.1" - optionalDependencies: - source-map "~0.6.1" - escodegen@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.1.0.tgz#c663923f6e20aad48d0c0fa49f31c6d4f49360cf" @@ -2251,7 +2154,7 @@ esprima-fb@3001.1.0-dev-harmony-fb: resolved "https://registry.yarnpkg.com/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz#b77d37abcd38ea0b77426bb8bc2922ce6b426411" integrity sha512-a3RFiCVBiy8KdO6q/C+8BQiP/sRk8XshBU3QHHDP8tNzjYwR3FKBOImu+PXfVhPoZL0JKtJLBAOWlDMCCFY8SQ== -esprima@^4.0.0, esprima@^4.0.1: +esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== @@ -2353,13 +2256,13 @@ express-validator@^6.10.0: validator "^13.7.0" express@^4.17.1: - version "4.18.1" - resolved "https://registry.yarnpkg.com/express/-/express-4.18.1.tgz#7797de8b9c72c857b9cd0e14a5eea80666267caf" - integrity sha512-zZBcOX9TfehHQhtupq57OF8lFZ3UZi08Y97dwFCkD8p9d/d2Y3M+ykKcwaMDEL+4qyUolgBDX6AblpR3fL212Q== + version "4.18.2" + resolved "https://registry.yarnpkg.com/express/-/express-4.18.2.tgz#3fabe08296e930c796c19e3c516979386ba9fd59" + integrity sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ== dependencies: accepts "~1.3.8" array-flatten "1.1.1" - body-parser "1.20.0" + body-parser "1.20.1" content-disposition "0.5.4" content-type "~1.0.4" cookie "0.5.0" @@ -2378,7 +2281,7 @@ express@^4.17.1: parseurl "~1.3.3" path-to-regexp "0.1.7" proxy-addr "~2.0.7" - qs "6.10.3" + qs "6.11.0" range-parser "~1.2.1" safe-buffer "5.2.1" send "0.18.0" @@ -2410,7 +2313,7 @@ fast-json-stable-stringify@^2.0.0: resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== -fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: +fast-levenshtein@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== @@ -2421,9 +2324,9 @@ fast-safe-stringify@^2.0.7: integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== fastq@^1.6.0: - version "1.13.0" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" - integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw== + version "1.14.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.14.0.tgz#107f69d7295b11e0fccc264e1fc6389f623731ce" + integrity sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg== dependencies: reusify "^1.0.4" @@ -2522,9 +2425,9 @@ flatted@^3.1.0: integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== follow-redirects@^1.14.7: - version "1.15.1" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.1.tgz#0ca6a452306c9b276e4d3127483e29575e207ad5" - integrity sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA== + version "1.15.2" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" + integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== for-each@^0.3.3: version "0.3.3" @@ -2533,15 +2436,6 @@ for-each@^0.3.3: dependencies: is-callable "^1.1.3" -form-data@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" - integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - forwarded@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" @@ -2631,10 +2525,10 @@ get-func-name@^2.0.0: resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz#ead774abee72e20409433a066366023dd6887a41" integrity sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig== -get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.2.tgz#336975123e05ad0b7ba41f152ee4aadbea6cf598" - integrity sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA== +get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.3.tgz#063c84329ad93e83893c7f4f243ef63ffa351385" + integrity sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A== dependencies: function-bind "^1.1.1" has "^1.0.3" @@ -2734,6 +2628,13 @@ globo@~1.1.0: is-defined "~1.0.0" ternary "~1.0.0" +gopd@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" + integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== + dependencies: + get-intrinsic "^1.1.3" + graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0: version "4.2.10" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" @@ -2840,25 +2741,18 @@ hosted-git-info@^2.1.4: resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== -html-encoding-sniffer@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz#2cb1a8cf0db52414776e5b2a7a04d5dd98158de9" - integrity sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA== - dependencies: - whatwg-encoding "^2.0.0" - html-minifier-terser@^7.0.0-alpha.1: - version "7.0.0" - resolved "https://registry.yarnpkg.com/html-minifier-terser/-/html-minifier-terser-7.0.0.tgz#e0ce8f10befeff89f29f19490f87213b85adaa4c" - integrity sha512-Adqk0b/pWKIQiGvEAuzPKpBKNHiwblr3QSGS7TTr6v+xXKV9AI2k4vWW+6Oytt6Z5SeBnfvYypKOnz8r75pz3Q== + version "7.1.0" + resolved "https://registry.yarnpkg.com/html-minifier-terser/-/html-minifier-terser-7.1.0.tgz#cd62d42158be9a6bef0fcd40f94127345743d9b5" + integrity sha512-BvPO2S7Ip0Q5qt+Y8j/27Vclj6uHC6av0TMoDn7/bJPhMWHI2UtR2e/zEgJn3/qYAmxumrGp9q4UHurL6mtW9Q== dependencies: camel-case "^4.1.2" clean-css "5.2.0" - commander "^9.4.0" - entities "^4.3.1" + commander "^9.4.1" + entities "^4.4.0" param-case "^3.0.4" relateurl "^0.2.7" - terser "^5.14.2" + terser "^5.15.1" htmlescape@^1.1.0: version "1.1.1" @@ -2876,28 +2770,11 @@ http-errors@2.0.0: statuses "2.0.1" toidentifier "1.0.1" -http-proxy-agent@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz#5129800203520d434f142bc78ff3c170800f2b43" - integrity sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w== - dependencies: - "@tootallnate/once" "2" - agent-base "6" - debug "4" - https-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" integrity sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg== -https-proxy-agent@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" - integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== - dependencies: - agent-base "6" - debug "4" - human-signals@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" @@ -2915,7 +2792,7 @@ iconv-lite@0.4.24: dependencies: safer-buffer ">= 2.1.2 < 3" -iconv-lite@0.6.3, iconv-lite@^0.6.2: +iconv-lite@^0.6.2: version "0.6.3" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== @@ -2938,9 +2815,9 @@ ignore@^4.0.6: integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== ignore@^5.1.1, ignore@^5.1.2: - version "5.2.0" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" - integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== + version "5.2.1" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.1.tgz#c2b1f76cb999ede1502f3a226a9310fdfe88d46c" + integrity sha512-d2qQLzTJ9WxQftPAuEQpSPmKqzxePjzVbpAVv62AQ64NTL+wR4JkrVqR/LqFsFEUsHDAiId52mJteHDFuDkElA== import-fresh@^3.0.0, import-fresh@^3.2.1: version "3.3.0" @@ -3070,15 +2947,15 @@ is-buffer@^1.1.0: resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== -is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945" - integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w== +is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" + integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== is-core-module@^2.6.0, is-core-module@^2.9.0: - version "2.10.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.10.0.tgz#9012ede0a91c69587e647514e1d5277019e728ed" - integrity sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg== + version "2.11.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" + integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw== dependencies: has "^1.0.3" @@ -3157,11 +3034,6 @@ is-plain-object@^2.0.4: dependencies: isobject "^3.0.1" -is-potential-custom-element-name@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" - integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== - is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" @@ -3201,15 +3073,15 @@ is-symbol@^1.0.2, is-symbol@^1.0.3: dependencies: has-symbols "^1.0.2" -is-typed-array@^1.1.3, is-typed-array@^1.1.9: - version "1.1.9" - resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.9.tgz#246d77d2871e7d9f5aeb1d54b9f52c71329ece67" - integrity sha512-kfrlnTTn8pZkfpJMUgYD7YZ3qzeJgWUn8XfVYBARc4wnmNOmLbmuuaAs3q5fvB0UJOn6yHAKaGTPM7d6ezoD/A== +is-typed-array@^1.1.10, is-typed-array@^1.1.3: + version "1.1.10" + resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.10.tgz#36a5b5cb4189b575d1a3e4b08536bfb485801e3f" + integrity sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A== dependencies: available-typed-arrays "^1.0.5" call-bind "^1.0.2" - es-abstract "^1.20.0" for-each "^0.3.3" + gopd "^1.0.1" has-tostringtag "^1.0.0" is-unicode-supported@^0.1.0: @@ -3297,39 +3169,6 @@ jsdoc@^3.6.6: taffydb "2.6.2" underscore "~1.13.2" -jsdom@^20.0.0: - version "20.0.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-20.0.0.tgz#882825ac9cc5e5bbee704ba16143e1fa78361ebf" - integrity sha512-x4a6CKCgx00uCmP+QakBDFXwjAJ69IkkIWHmtmjd3wvXPcdOS44hfX2vqkOQrVrq8l9DhNNADZRXaCEWvgXtVA== - dependencies: - abab "^2.0.6" - acorn "^8.7.1" - acorn-globals "^6.0.0" - cssom "^0.5.0" - cssstyle "^2.3.0" - data-urls "^3.0.2" - decimal.js "^10.3.1" - domexception "^4.0.0" - escodegen "^2.0.0" - form-data "^4.0.0" - html-encoding-sniffer "^3.0.0" - http-proxy-agent "^5.0.0" - https-proxy-agent "^5.0.1" - is-potential-custom-element-name "^1.0.1" - nwsapi "^2.2.0" - parse5 "^7.0.0" - saxes "^6.0.0" - symbol-tree "^3.2.4" - tough-cookie "^4.0.0" - w3c-hr-time "^1.0.2" - w3c-xmlserializer "^3.0.0" - webidl-conversions "^7.0.0" - whatwg-encoding "^2.0.0" - whatwg-mimetype "^3.0.0" - whatwg-url "^11.0.0" - ws "^8.8.0" - xml-name-validator "^4.0.0" - jsesc@^2.5.1: version "2.5.2" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" @@ -3434,14 +3273,6 @@ levn@^0.4.1: prelude-ls "^1.2.1" type-check "~0.4.0" -levn@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== - dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" - license-check-and-add@^4.0.3: version "4.0.5" resolved "https://registry.yarnpkg.com/license-check-and-add/-/license-check-and-add-4.0.5.tgz#ef820a78d59248327565ab5b7dec16776ac1ea4b" @@ -3577,7 +3408,7 @@ lodash.truncate@^4.4.2: resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== -lodash@^4.0.0, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21: +lodash@^4.0.0, lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -3608,9 +3439,9 @@ loose-envify@^1.4.0: js-tokens "^3.0.0 || ^4.0.0" loupe@^2.3.1: - version "2.3.4" - resolved "https://registry.yarnpkg.com/loupe/-/loupe-2.3.4.tgz#7e0b9bffc76f148f9be769cb1321d3dcf3cb25f3" - integrity sha512-OvKfgCC2Ndby6aSTREl5aCCPTNIzlDfQZvZxNUrBrihDhL3xcrYegTblhmEiCrg2kKQz4XsFIaemE5BF4ybSaQ== + version "2.3.6" + resolved "https://registry.yarnpkg.com/loupe/-/loupe-2.3.6.tgz#76e4af498103c532d1ecc9be102036a21f787b53" + integrity sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA== dependencies: get-func-name "^2.0.0" @@ -3647,9 +3478,9 @@ map-obj@~1.0.1: integrity sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg== markdown-it-anchor@^8.4.1: - version "8.6.4" - resolved "https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-8.6.4.tgz#affb8aa0910a504c114e9fcad53ac3a5b907b0e6" - integrity sha512-Ul4YVYZNxMJYALpKtu+ZRdrryYt/GlQ5CK+4l1bp/gWXOG2QWElt6AqF3Mih/wfUKdZbNAZVXGR73/n6U/8img== + version "8.6.5" + resolved "https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-8.6.5.tgz#30c4bc5bbff327f15ce3c429010ec7ba75e7b5f8" + integrity sha512-PI1qEHHkTNWT+X6Ip9w+paonfIQ+QZP9sCeMYi47oqhH+EsW8CrJ8J7CzV19QVOj6il8ATGbK2nTECj22ZHGvQ== markdown-it@^12.3.2: version "12.3.2" @@ -3663,9 +3494,9 @@ markdown-it@^12.3.2: uc.micro "^1.0.5" marked@^4.0.10: - version "4.1.0" - resolved "https://registry.yarnpkg.com/marked/-/marked-4.1.0.tgz#3fc6e7485f21c1ca5d6ec4a39de820e146954796" - integrity sha512-+Z6KDjSPa6/723PQYyc1axYZpYYpDnECDaU6hkaf5gqBieBkMKYReL5hteF2QizhlMbgbo8umXl/clZ67+GlsA== + version "4.2.4" + resolved "https://registry.yarnpkg.com/marked/-/marked-4.2.4.tgz#5a4ce6c7a1ae0c952601fce46376ee4cf1797e1c" + integrity sha512-Wcc9ikX7Q5E4BYDPvh1C6QNSxrjC9tBgz+A/vAhp59KXUgachw++uMvMKiSW8oA85nopmPZcEvBoex/YLMsiyA== md5.js@^1.3.4: version "1.3.5" @@ -3734,7 +3565,7 @@ mime-db@1.52.0: resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== -mime-types@^2.1.12, mime-types@~2.1.24, mime-types@~2.1.34: +mime-types@~2.1.24, mime-types@~2.1.34: version "2.1.35" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== @@ -3784,7 +3615,7 @@ minimatch@4.2.1: dependencies: brace-expansion "^1.1.7" -minimatch@^3.0.4, minimatch@^3.1.1: +minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -3792,9 +3623,9 @@ minimatch@^3.0.4, minimatch@^3.1.1: brace-expansion "^1.1.7" minimist@^1.1.0, minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: - version "1.2.6" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" - integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== + version "1.2.7" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" + integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== mkdirp-classic@^0.5.2: version "0.5.3" @@ -3923,14 +3754,14 @@ node-releases@^2.0.6: integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg== nodemon@^2.0.19: - version "2.0.19" - resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-2.0.19.tgz#cac175f74b9cb8b57e770d47841995eebe4488bd" - integrity sha512-4pv1f2bMDj0Eeg/MhGqxrtveeQ5/G/UVe9iO6uTZzjnRluSA4PVWf8CW99LUPwGB3eNIA7zUFoP77YuI7hOc0A== + version "2.0.20" + resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-2.0.20.tgz#e3537de768a492e8d74da5c5813cb0c7486fc701" + integrity sha512-Km2mWHKKY5GzRg6i1j5OxOHQtuvVsgskLfigG25yTtbyfRGn/GNvIbRyOf1PSCKJ2aT/58TiuUsuOU5UToVViw== dependencies: chokidar "^3.5.2" debug "^3.2.7" ignore-by-default "^1.0.1" - minimatch "^3.0.4" + minimatch "^3.1.2" pstree.remy "^1.1.8" semver "^5.7.1" simple-update-notifier "^1.0.7" @@ -3967,11 +3798,6 @@ npm-run-path@^4.0.1: dependencies: path-key "^3.0.0" -nwsapi@^2.2.0: - version "2.2.2" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.2.tgz#e5418863e7905df67d51ec95938d67bf801f0bb0" - integrity sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw== - object-assign@^4, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" @@ -4003,49 +3829,49 @@ object.assign@^4.1.3, object.assign@^4.1.4: object-keys "^1.1.1" object.entries@^1.1.4: - version "1.1.5" - resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" - integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g== + version "1.1.6" + resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.6.tgz#9737d0e5b8291edd340a3e3264bb8a3b00d5fa23" + integrity sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" + define-properties "^1.1.4" + es-abstract "^1.20.4" object.fromentries@^2.0.4: - version "2.0.5" - resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251" - integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw== + version "2.0.6" + resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.6.tgz#cdb04da08c539cffa912dcd368b886e0904bfa73" + integrity sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" + define-properties "^1.1.4" + es-abstract "^1.20.4" object.getownpropertydescriptors@^2.0.3: - version "2.1.4" - resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.4.tgz#7965e6437a57278b587383831a9b829455a4bc37" - integrity sha512-sccv3L/pMModT6dJAYF3fzGMVcb38ysQ0tEE6ixv2yXJDtEIPph268OlAdJj5/qZMZDq2g/jqvwppt36uS/uQQ== + version "2.1.5" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.5.tgz#db5a9002489b64eef903df81d6623c07e5b4b4d3" + integrity sha512-yDNzckpM6ntyQiGTik1fKV1DcVDRS+w8bvpWNCBanvH5LfRX9O8WTHqQzG4RZwRAM4I0oU7TV11Lj5v0g20ibw== dependencies: - array.prototype.reduce "^1.0.4" + array.prototype.reduce "^1.0.5" call-bind "^1.0.2" define-properties "^1.1.4" - es-abstract "^1.20.1" + es-abstract "^1.20.4" object.hasown@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.1.tgz#ad1eecc60d03f49460600430d97f23882cf592a3" - integrity sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A== + version "1.1.2" + resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.2.tgz#f919e21fad4eb38a57bc6345b3afd496515c3f92" + integrity sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw== dependencies: define-properties "^1.1.4" - es-abstract "^1.19.5" + es-abstract "^1.20.4" object.values@^1.1.4: - version "1.1.5" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" - integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== + version "1.1.6" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.6.tgz#4abbaa71eba47d63589d402856f908243eea9b1d" + integrity sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" + define-properties "^1.1.4" + es-abstract "^1.20.4" on-finished@2.4.1: version "2.4.1" @@ -4075,18 +3901,6 @@ openpgp@^5.5.0: dependencies: asn1.js "^5.0.0" -optionator@^0.8.1: - version "0.8.3" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" - integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== - dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.6" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - word-wrap "~1.2.3" - optionator@^0.9.1: version "0.9.1" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" @@ -4238,13 +4052,6 @@ parse-passwd@^1.0.0: resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" integrity sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q== -parse5@^7.0.0: - version "7.1.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.1.1.tgz#4649f940ccfb95d8754f37f73078ea20afe0c746" - integrity sha512-kwpuwzB+px5WUg9pyK0IcK/shltJN5/OVhQagxhCQNtT9Y9QRZqNY2e1cmbu/paRh5LMnz/oVTVLBpjFmMZhSg== - dependencies: - entities "^4.4.0" - parseurl@~1.3.3: version "1.3.3" resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" @@ -4395,11 +4202,6 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== - process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" @@ -4432,11 +4234,6 @@ proxy-addr@~2.0.7: forwarded "0.2.0" ipaddr.js "1.9.1" -psl@^1.1.33: - version "1.9.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" - integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== - pstree.remy@^1.1.8: version "1.1.8" resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.8.tgz#c242224f4a67c21f686839bbdb4ac282b8373d3a" @@ -4464,7 +4261,7 @@ punycode@^1.3.2: resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" integrity sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ== -punycode@^2.1.0, punycode@^2.1.1: +punycode@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== @@ -4481,10 +4278,10 @@ pvutils@^1.1.3: resolved "https://registry.yarnpkg.com/pvutils/-/pvutils-1.1.3.tgz#f35fc1d27e7cd3dfbd39c0826d173e806a03f5a3" integrity sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ== -qs@6.10.3: - version "6.10.3" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.3.tgz#d6cde1b2ffca87b5aa57889816c5f81535e22e8e" - integrity sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ== +qs@6.11.0: + version "6.11.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a" + integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q== dependencies: side-channel "^1.0.4" @@ -4508,11 +4305,6 @@ querystring@0.2.0: resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" integrity sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g== -querystringify@^2.1.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" - integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== - queue-microtask@^1.2.2: version "1.2.3" resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" @@ -4634,12 +4426,12 @@ readjson@^2.2.0, readjson@^2.2.2: jju "^1.4.0" try-catch "^3.0.0" -regenerator-runtime@^0.13.4: - version "0.13.9" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52" - integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA== +regenerator-runtime@^0.13.11: + version "0.13.11" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" + integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== -regexp.prototype.flags@^1.4.1, regexp.prototype.flags@^1.4.3: +regexp.prototype.flags@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== @@ -4690,17 +4482,12 @@ require-main-filename@^2.0.0: resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== -requires-port@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" - integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== - requizzle@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/requizzle/-/requizzle-0.2.3.tgz#4675c90aacafb2c036bd39ba2daa4a1cb777fded" - integrity sha512-YanoyJjykPxGHii0fZP0uUPEXpvqfBDxWV7s6GKAiiOsiqhX6vHNyW3Qzdmqp/iq/ExbhaGbVrjB4ruEVSM4GQ== + version "0.2.4" + resolved "https://registry.yarnpkg.com/requizzle/-/requizzle-0.2.4.tgz#319eb658b28c370f0c20f968fa8ceab98c13d27c" + integrity sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw== dependencies: - lodash "^4.17.14" + lodash "^4.17.21" resolve-from@^4.0.0: version "4.0.0" @@ -4771,9 +4558,9 @@ run-parallel@^1.1.9: queue-microtask "^1.2.2" rxjs@^7.5.1: - version "7.5.6" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.6.tgz#0446577557862afd6903517ce7cae79ecb9662bc" - integrity sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw== + version "7.6.0" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.6.0.tgz#361da5362b6ddaa691a2de0b4f2d32028f1eb5a2" + integrity sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ== dependencies: tslib "^2.1.0" @@ -4787,6 +4574,15 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== +safe-regex-test@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295" + integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.3" + is-regex "^1.1.4" + "safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.1.0: version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" @@ -4817,13 +4613,6 @@ saslmechanisms@^0.1.1: resolved "https://registry.yarnpkg.com/saslmechanisms/-/saslmechanisms-0.1.1.tgz#478be1429500fcfaa780be88b3343ced7d2a9182" integrity sha512-pVlvK5ysevz8MzybRnDIa2YMxn0OJ7b9lDiWhMoaKPoJ7YkAg/7YtNjUgaYzElkwHxsw8dBMhaEn7UP6zxEwPg== -saxes@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/saxes/-/saxes-6.0.0.tgz#fe5b4a4768df4f14a201b1ba6a65c1f3d9988cc5" - integrity sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA== - dependencies: - xmlchars "^2.2.0" - semver-compare@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc" @@ -4840,9 +4629,9 @@ semver@^6.1.0, semver@^6.3.0: integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== semver@^7.2.1: - version "7.3.7" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f" - integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g== + version "7.3.8" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" + integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== dependencies: lru-cache "^6.0.0" @@ -4932,9 +4721,9 @@ shebang-regex@^3.0.0: integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== shell-quote@^1.6.1: - version "1.7.3" - resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.3.tgz#aa40edac170445b9a431e17bb62c0b881b9c4123" - integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw== + version "1.7.4" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.4.tgz#33fe15dee71ab2a81fcbd3a52106c5cfb9fb75d8" + integrity sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw== side-channel@^1.0.4: version "1.0.4" @@ -4956,9 +4745,9 @@ simple-concat@^1.0.0: integrity sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q== simple-update-notifier@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/simple-update-notifier/-/simple-update-notifier-1.0.7.tgz#7edf75c5bdd04f88828d632f762b2bc32996a9cc" - integrity sha512-BBKgR84BJQJm6WjWFMHgLVuo61FBDSj1z/xSFUIozqO6wO7ii0JxCqlIud7Enr/+LhlbNI0whErq96P2qHNWew== + version "1.1.0" + resolved "https://registry.yarnpkg.com/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz#67694c121de354af592b347cdba798463ed49c82" + integrity sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg== dependencies: semver "~7.0.0" @@ -5006,7 +4795,7 @@ source-map-support@^0.5.16, source-map-support@~0.5.20: buffer-from "^1.0.0" source-map "^0.6.0" -source-map@^0.6.0, source-map@~0.6.0, source-map@~0.6.1: +source-map@^0.6.0, source-map@~0.6.0: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== @@ -5151,36 +4940,36 @@ string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: strip-ansi "^6.0.1" string.prototype.matchall@^4.0.5: - version "4.0.7" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz#8e6ecb0d8a1fb1fda470d81acecb2dba057a481d" - integrity sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg== + version "4.0.8" + resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz#3bf85722021816dcd1bf38bb714915887ca79fd3" + integrity sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - get-intrinsic "^1.1.1" + define-properties "^1.1.4" + es-abstract "^1.20.4" + get-intrinsic "^1.1.3" has-symbols "^1.0.3" internal-slot "^1.0.3" - regexp.prototype.flags "^1.4.1" + regexp.prototype.flags "^1.4.3" side-channel "^1.0.4" -string.prototype.trimend@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz#914a65baaab25fbdd4ee291ca7dde57e869cb8d0" - integrity sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog== +string.prototype.trimend@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz#c4a27fa026d979d79c04f17397f250a462944533" + integrity sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ== dependencies: call-bind "^1.0.2" define-properties "^1.1.4" - es-abstract "^1.19.5" + es-abstract "^1.20.4" -string.prototype.trimstart@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz#5466d93ba58cfa2134839f81d7f42437e8c01fef" - integrity sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg== +string.prototype.trimstart@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz#e90ab66aa8e4007d92ef591bbf3cd422c56bdcf4" + integrity sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA== dependencies: call-bind "^1.0.2" define-properties "^1.1.4" - es-abstract "^1.19.5" + es-abstract "^1.20.4" string_decoder@^1.1.1: version "1.3.0" @@ -5272,11 +5061,6 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== -symbol-tree@^3.2.4: - version "3.2.4" - resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" - integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== - syntax-error@^1.1.1: version "1.4.0" resolved "https://registry.yarnpkg.com/syntax-error/-/syntax-error-1.4.0.tgz#2d9d4ff5c064acb711594a3e3b95054ad51d907c" @@ -5285,9 +5069,9 @@ syntax-error@^1.1.1: acorn-node "^1.2.0" table@^6.0.4: - version "6.8.0" - resolved "https://registry.yarnpkg.com/table/-/table-6.8.0.tgz#87e28f14fa4321c3377ba286f07b79b281a3b3ca" - integrity sha512-s/fitrbVeEyHKFa7mFdkuQMWlH1Wgw/yEXMt5xACT4ZpzWFluehAxRtUUQKPuWhaLAWhFcVx6w3oC8VKaUfPGA== + version "6.8.1" + resolved "https://registry.yarnpkg.com/table/-/table-6.8.1.tgz#ea2b71359fe03b017a5fbc296204471158080bdf" + integrity sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA== dependencies: ajv "^8.0.1" lodash.truncate "^4.4.2" @@ -5305,10 +5089,10 @@ ternary@~1.0.0: resolved "https://registry.yarnpkg.com/ternary/-/ternary-1.0.0.tgz#45702725608c9499d46a9610e9b0e49ff26f789e" integrity sha512-/e+OUAGiEqytNLXnDfFkuel0N0y9IGkmvuGIPkirI+zv0dx/jPvUZ2l8qV6KYk8lmmLrAqk4iLJtRduUA6AUKw== -terser@^5.14.2, terser@^5.3.2: - version "5.15.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.15.0.tgz#e16967894eeba6e1091509ec83f0c60e179f2425" - integrity sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA== +terser@^5.15.1, terser@^5.3.2: + version "5.16.1" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.16.1.tgz#5af3bc3d0f24241c7fb2024199d5c461a1075880" + integrity sha512-xvQfyfA1ayT0qdK47zskQgRZeWLoOQ8JQ6mIgRGVNwZKdQMU+5FkCBjmv4QjcrTzyZquRw2FVtlJSRUmMKQslw== dependencies: "@jridgewell/source-map" "^0.3.2" acorn "^8.5.0" @@ -5372,23 +5156,6 @@ touch@^3.1.0: dependencies: nopt "~1.0.10" -tough-cookie@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.2.tgz#e53e84b85f24e0b65dd526f46628db6c85f6b874" - integrity sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ== - dependencies: - psl "^1.1.33" - punycode "^2.1.1" - universalify "^0.2.0" - url-parse "^1.5.3" - -tr46@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-3.0.0.tgz#555c4e297a950617e8eeddef633c87d4d9d6cbf9" - integrity sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA== - dependencies: - punycode "^2.1.1" - tr46@~0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" @@ -5421,10 +5188,10 @@ tsconfig-paths@^3.11.0: minimist "^1.2.6" strip-bom "^3.0.0" -tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" - integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== +tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.4.0, tslib@^2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" + integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== tty-browserify@0.0.1: version "0.0.1" @@ -5438,13 +5205,6 @@ type-check@^0.4.0, type-check@~0.4.0: dependencies: prelude-ls "^1.2.1" -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== - dependencies: - prelude-ls "~1.1.2" - type-detect@^4.0.0, type-detect@^4.0.5: version "4.0.8" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" @@ -5515,20 +5275,15 @@ undefsafe@^2.0.5: integrity sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA== underscore@~1.13.2: - version "1.13.4" - resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.4.tgz#7886b46bbdf07f768e0052f1828e1dcab40c0dee" - integrity sha512-BQFnUDuAQ4Yf/cYY5LNrK9NCJFKriaRbD9uR1fTeXnBeoa97W0i41qkZfGO9pSo8I5KzjAcSY2XYtdf0oKd7KQ== + version "1.13.6" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.6.tgz#04786a1f589dc6c09f761fc5f45b89e935136441" + integrity sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A== universalify@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== -universalify@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" - integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== - universalify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" @@ -5539,10 +5294,10 @@ unpipe@1.0.0, unpipe@~1.0.0: resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== -update-browserslist-db@^1.0.5: - version "1.0.7" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.7.tgz#16279639cff1d0f800b14792de43d97df2d11b7d" - integrity sha512-iN/XYesmZ2RmmWAiI4Z5rq0YqSiv0brj9Ce9CfhNE4xIW2h+MFxcgkxIzZ+ShkFPUkjU3gQ+3oypadD3RAMtrg== +update-browserslist-db@^1.0.9: + version "1.0.10" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz#0f54b876545726f17d00cd9a2561e6dade943ff3" + integrity sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ== dependencies: escalade "^3.1.1" picocolors "^1.0.0" @@ -5554,14 +5309,6 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" -url-parse@^1.5.3: - version "1.5.10" - resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" - integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== - dependencies: - querystringify "^2.1.1" - requires-port "^1.0.0" - url@~0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" @@ -5583,15 +5330,14 @@ util@0.10.3: inherits "2.0.1" util@~0.12.0: - version "0.12.4" - resolved "https://registry.yarnpkg.com/util/-/util-0.12.4.tgz#66121a31420df8f01ca0c464be15dfa1d1850253" - integrity sha512-bxZ9qtSlGUWSOy9Qa9Xgk11kSslpuZwaxCg4sNIDj6FLucDab2JxnHwyNTCpHMtK1MjoQiWQ6DiUMZYbSrO+Sw== + version "0.12.5" + resolved "https://registry.yarnpkg.com/util/-/util-0.12.5.tgz#5f17a6059b73db61a875668781a1c2b136bd6fbc" + integrity sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA== dependencies: inherits "^2.0.3" is-arguments "^1.0.4" is-generator-function "^1.0.7" is-typed-array "^1.1.3" - safe-buffer "^5.1.2" which-typed-array "^1.1.2" utils-merge@1.0.1: @@ -5639,20 +5385,6 @@ vm-browserify@^1.0.0: resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0" integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ== -w3c-hr-time@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" - integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== - dependencies: - browser-process-hrtime "^1.0.0" - -w3c-xmlserializer@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-3.0.0.tgz#06cdc3eefb7e4d0b20a560a5a3aeb0d2d9a65923" - integrity sha512-3WFqGEgSXIyGhOmAFtlicJNMjEps8b1MG31NCA0/vOF9+nKMUW1ckhi9cnNHmf88Rzw5V+dwIwsm2C7X8k9aQg== - dependencies: - xml-name-validator "^4.0.0" - webcrypto-core@^1.7.4: version "1.7.5" resolved "https://registry.yarnpkg.com/webcrypto-core/-/webcrypto-core-1.7.5.tgz#c02104c953ca7107557f9c165d194c6316587ca4" @@ -5669,31 +5401,6 @@ webidl-conversions@^3.0.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== -webidl-conversions@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-7.0.0.tgz#256b4e1882be7debbf01d05f0aa2039778ea080a" - integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g== - -whatwg-encoding@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz#e7635f597fd87020858626805a2729fa7698ac53" - integrity sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg== - dependencies: - iconv-lite "0.6.3" - -whatwg-mimetype@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz#5fa1a7623867ff1af6ca3dc72ad6b8a4208beba7" - integrity sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q== - -whatwg-url@^11.0.0: - version "11.0.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-11.0.0.tgz#0a849eebb5faf2119b901bb76fd795c2848d4018" - integrity sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ== - dependencies: - tr46 "^3.0.0" - webidl-conversions "^7.0.0" - whatwg-url@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" @@ -5719,16 +5426,16 @@ which-module@^2.0.0: integrity sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q== which-typed-array@^1.1.2: - version "1.1.8" - resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.8.tgz#0cfd53401a6f334d90ed1125754a42ed663eb01f" - integrity sha512-Jn4e5PItbcAHyLoRDwvPj1ypu27DJbtdYXUa5zsinrUx77Uvfb0cXwwnGMTn7cjUfhhqgVQnVJCwF+7cgU7tpw== + version "1.1.9" + resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.9.tgz#307cf898025848cf995e795e8423c7f337efbde6" + integrity sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA== dependencies: available-typed-arrays "^1.0.5" call-bind "^1.0.2" - es-abstract "^1.20.0" for-each "^0.3.3" + gopd "^1.0.1" has-tostringtag "^1.0.0" - is-typed-array "^1.1.9" + is-typed-array "^1.1.10" which@2.0.2, which@^2.0.1: version "2.0.2" @@ -5737,7 +5444,7 @@ which@2.0.2, which@^2.0.1: dependencies: isexe "^2.0.0" -word-wrap@^1.2.3, word-wrap@~1.2.3: +word-wrap@^1.2.3: version "1.2.3" resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== @@ -5779,26 +5486,16 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -ws@^8.4.0, ws@^8.8.0: - version "8.8.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.8.1.tgz#5dbad0feb7ade8ecc99b830c1d77c913d4955ff0" - integrity sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA== +ws@^8.4.0: + version "8.11.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.11.0.tgz#6a0d36b8edfd9f96d8b25683db2f8d7de6e8e143" + integrity sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg== xdg-basedir@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q== -xml-name-validator@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz#79a006e2e63149a8600f15430f0a4725d1524835" - integrity sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw== - -xmlchars@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" - integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== - xmlcreate@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/xmlcreate/-/xmlcreate-2.0.4.tgz#0c5ab0f99cdd02a81065fa9cd8f8ae87624889be"