From bae376bf4823dae30e6ac7a7fcbeb967c45dc3ac Mon Sep 17 00:00:00 2001 From: Ievgeniia Maltseva Date: Mon, 19 Mar 2018 16:13:29 +0200 Subject: [PATCH] Added test --- dist/es/overwritable.js | 94 +++++++++++++-------------- dist/es/rx-database.js | 31 ++++----- dist/lib/overwritable.js | 86 ++++++++++++------------- dist/lib/rx-database.js | 31 ++++----- dist/rxdb.browserify.js | 117 ++++++++++++++++------------------ dist/rxdb.browserify.min.js | 2 +- src/rx-database.js | 4 +- test/unit/rx-database.test.js | 15 +++++ 8 files changed, 184 insertions(+), 196 deletions(-) diff --git a/dist/es/overwritable.js b/dist/es/overwritable.js index 53739dd653b..060cade5066 100644 --- a/dist/es/overwritable.js +++ b/dist/es/overwritable.js @@ -5,53 +5,53 @@ import RxError from './rx-error'; var funs = { - /** - * validates if a password can be used - * @overwritten by plugin (optional) - * @param {any} password - * @throws if password not valid - * @return {void} - */ - validatePassword: function validatePassword() { - throw RxError.pluginMissing('encryption'); - }, - - /** - * creates a key-compressor for the given schema - * @param {RxSchema} schema - * @return {KeyCompressor} - */ - createKeyCompressor: function createKeyCompressor() { - throw RxError.pluginMissing('keycompression'); - }, - - /** - * creates a leader-elector for the given database - * @param {RxDatabase} database - * @return {LeaderElector} - */ - createLeaderElector: function createLeaderElector() { - throw RxError.pluginMissing('leaderelection'); - }, - - - /** - * checks if the given adapter can be used - * @return {any} adapter - */ - checkAdapter: function checkAdapter() { - throw RxError.pluginMissing('adapter-check'); - }, - - /** - * overwritte to map error-codes to text-messages - * @param {string} message - * @return {string} - */ - tunnelErrorMessage: function tunnelErrorMessage(message) { - // TODO better text with link - return 'RxDB Error-Code ' + message + '.\n - To find out what this means, use the error-messages-plugin https://pubkey.github.io/rxdb/custom-build.html#error-messages\n - Or search for this code https://github.com/pubkey/rxdb/search?l=JavaScript&q=' + message + '%3A\n '; - } + /** + * validates if a password can be used + * @overwritten by plugin (optional) + * @param {any} password + * @throws if password not valid + * @return {void} + */ + validatePassword: function validatePassword() { + throw RxError.pluginMissing('encryption'); + }, + + /** + * creates a key-compressor for the given schema + * @param {RxSchema} schema + * @return {KeyCompressor} + */ + createKeyCompressor: function createKeyCompressor() { + throw RxError.pluginMissing('keycompression'); + }, + + /** + * creates a leader-elector for the given database + * @param {RxDatabase} database + * @return {LeaderElector} + */ + createLeaderElector: function createLeaderElector() { + throw RxError.pluginMissing('leaderelection'); + }, + + + /** + * checks if the given adapter can be used + * @return {any} adapter + */ + checkAdapter: function checkAdapter() { + throw RxError.pluginMissing('adapter-check'); + }, + + /** + * overwritte to map error-codes to text-messages + * @param {string} message + * @return {string} + */ + tunnelErrorMessage: function tunnelErrorMessage(message) { + // TODO better text with link + return 'RxDB Error-Code ' + message + '.\n - To find out what this means, use the error-messages-plugin https://pubkey.github.io/rxdb/custom-build.html#error-messages\n - Or search for this code https://github.com/pubkey/rxdb/search?l=JavaScript&q=' + message + '%3A\n '; + } }; export default funs; \ No newline at end of file diff --git a/dist/es/rx-database.js b/dist/es/rx-database.js index b3dcbf54e9d..91b483547ce 100644 --- a/dist/es/rx-database.js +++ b/dist/es/rx-database.js @@ -29,7 +29,7 @@ var USED_COMBINATIONS = {}; var DB_COUNT = 0; export var RxDatabase = function () { - function RxDatabase(name, adapter, password, multiInstance, options, pouchSettings) { + function RxDatabase(name, adapter, password, multiInstance, options) { _classCallCheck(this, RxDatabase); if (typeof name !== 'undefined') DB_COUNT++; @@ -38,7 +38,6 @@ export var RxDatabase = function () { this.password = password; this.multiInstance = multiInstance; this.options = options; - this.pouchSettings = pouchSettings; this.idleQueue = new IdleQueue(); this.token = randomToken(10); @@ -171,7 +170,7 @@ export var RxDatabase = function () { RxDatabase.prototype._spawnPouchDB = function _spawnPouchDB(collectionName, schemaVersion) { var pouchSettings = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return _spawnPouchDB2(this.name, this.adapter, collectionName, schemaVersion, pouchSettings, this.pouchSettings); + return _spawnPouchDB2(this.name, this.adapter, collectionName, schemaVersion, pouchSettings); }; RxDatabase.prototype.waitForLeadership = function () { @@ -718,13 +717,13 @@ export var RxDatabase = function () { _createClass(RxDatabase, [{ key: '_adminPouch', get: function get() { - if (!this.__adminPouch) this.__adminPouch = _internalAdminPouch(this.name, this.adapter, this.pouchSettings); + if (!this.__adminPouch) this.__adminPouch = _internalAdminPouch(this.name, this.adapter); return this.__adminPouch; } }, { key: '_collectionsPouch', get: function get() { - if (!this.__collectionsPouch) this.__collectionsPouch = _internalCollectionsPouch(this.name, this.adapter, this.pouchSettings); + if (!this.__collectionsPouch) this.__collectionsPouch = _internalCollectionsPouch(this.name, this.adapter); return this.__collectionsPouch; } }, { @@ -803,9 +802,7 @@ export var create = function () { _ref8$ignoreDuplicate = _ref8.ignoreDuplicate, ignoreDuplicate = _ref8$ignoreDuplicate === undefined ? false : _ref8$ignoreDuplicate, _ref8$options = _ref8.options, - options = _ref8$options === undefined ? {} : _ref8$options, - _ref8$pouchSettings = _ref8.pouchSettings, - pouchSettings = _ref8$pouchSettings === undefined ? {} : _ref8$pouchSettings; + options = _ref8$options === undefined ? {} : _ref8$options; var db; return _regeneratorRuntime.wrap(function _callee7$(_context7) { while (1) { @@ -856,7 +853,7 @@ export var create = function () { if (!USED_COMBINATIONS[name]) USED_COMBINATIONS[name] = []; USED_COMBINATIONS[name].push(adapter); - db = new RxDatabase(name, adapter, password, multiInstance, options, pouchSettings); + db = new RxDatabase(name, adapter, password, multiInstance, options); _context7.next = 16; return db.prepare(); @@ -880,7 +877,6 @@ export var create = function () { function _spawnPouchDB2(dbName, adapter, collectionName, schemaVersion) { var pouchSettings = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; - var pouchOptions = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {}; var pouchLocation = dbName + '-rxdb-' + schemaVersion + '-' + collectionName; var pouchDbParameters = { @@ -888,27 +884,22 @@ function _spawnPouchDB2(dbName, adapter, collectionName, schemaVersion) { adapter: util.adapterObject(adapter), settings: pouchSettings }; - var pouchDBOptions = Object.assign({}, pouchDbParameters.adapter, pouchOptions); runPluginHooks('preCreatePouchDb', pouchDbParameters); - return new PouchDB(pouchDbParameters.location, pouchDBOptions, pouchDbParameters.settings); + return new PouchDB(pouchDbParameters.location, pouchDbParameters.adapter, pouchDbParameters.settings); } function _internalAdminPouch(name, adapter) { - var pouchOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return _spawnPouchDB2(name, adapter, '_admin', 0, { auto_compaction: false, // no compaction because this only stores local documents revs_limit: 1 - }, pouchOptions); + }); } function _internalCollectionsPouch(name, adapter) { - var pouchOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return _spawnPouchDB2(name, adapter, '_collections', 0, { auto_compaction: false, // no compaction because this only stores local documents revs_limit: 1 - }, pouchOptions); + }); } export var removeDatabase = function () { @@ -953,7 +944,7 @@ export var removeDatabase = function () { }, _callee8, this); })); - return function removeDatabase(_x10, _x11) { + return function removeDatabase(_x7, _x8) { return _ref9.apply(this, arguments); }; }(); @@ -981,7 +972,7 @@ export var checkAdapter = function () { }, _callee9, this); })); - return function checkAdapter(_x12) { + return function checkAdapter(_x9) { return _ref10.apply(this, arguments); }; }();; diff --git a/dist/lib/overwritable.js b/dist/lib/overwritable.js index d3b277e2733..b893a2a4792 100644 --- a/dist/lib/overwritable.js +++ b/dist/lib/overwritable.js @@ -1,7 +1,7 @@ 'use strict'; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); var _rxError = require('./rx-error'); @@ -11,53 +11,53 @@ var _rxError2 = _interopRequireDefault(_rxError); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var funs = { - /** - * validates if a password can be used - * @overwritten by plugin (optional) - * @param {any} password - * @throws if password not valid - * @return {void} - */ - validatePassword: function validatePassword() { - throw _rxError2['default'].pluginMissing('encryption'); - }, + /** + * validates if a password can be used + * @overwritten by plugin (optional) + * @param {any} password + * @throws if password not valid + * @return {void} + */ + validatePassword: function validatePassword() { + throw _rxError2['default'].pluginMissing('encryption'); + }, - /** - * creates a key-compressor for the given schema - * @param {RxSchema} schema - * @return {KeyCompressor} - */ - createKeyCompressor: function createKeyCompressor() { - throw _rxError2['default'].pluginMissing('keycompression'); - }, + /** + * creates a key-compressor for the given schema + * @param {RxSchema} schema + * @return {KeyCompressor} + */ + createKeyCompressor: function createKeyCompressor() { + throw _rxError2['default'].pluginMissing('keycompression'); + }, - /** - * creates a leader-elector for the given database - * @param {RxDatabase} database - * @return {LeaderElector} - */ - createLeaderElector: function createLeaderElector() { - throw _rxError2['default'].pluginMissing('leaderelection'); - }, + /** + * creates a leader-elector for the given database + * @param {RxDatabase} database + * @return {LeaderElector} + */ + createLeaderElector: function createLeaderElector() { + throw _rxError2['default'].pluginMissing('leaderelection'); + }, - /** - * checks if the given adapter can be used - * @return {any} adapter - */ - checkAdapter: function checkAdapter() { - throw _rxError2['default'].pluginMissing('adapter-check'); - }, + /** + * checks if the given adapter can be used + * @return {any} adapter + */ + checkAdapter: function checkAdapter() { + throw _rxError2['default'].pluginMissing('adapter-check'); + }, - /** - * overwritte to map error-codes to text-messages - * @param {string} message - * @return {string} - */ - tunnelErrorMessage: function tunnelErrorMessage(message) { - // TODO better text with link - return 'RxDB Error-Code ' + message + '.\n - To find out what this means, use the error-messages-plugin https://pubkey.github.io/rxdb/custom-build.html#error-messages\n - Or search for this code https://github.com/pubkey/rxdb/search?l=JavaScript&q=' + message + '%3A\n '; - } + /** + * overwritte to map error-codes to text-messages + * @param {string} message + * @return {string} + */ + tunnelErrorMessage: function tunnelErrorMessage(message) { + // TODO better text with link + return 'RxDB Error-Code ' + message + '.\n - To find out what this means, use the error-messages-plugin https://pubkey.github.io/rxdb/custom-build.html#error-messages\n - Or search for this code https://github.com/pubkey/rxdb/search?l=JavaScript&q=' + message + '%3A\n '; + } }; /** * functions that can or should be overwritten by plugins */ diff --git a/dist/lib/rx-database.js b/dist/lib/rx-database.js index 164b1ee5ec4..5a01d104046 100644 --- a/dist/lib/rx-database.js +++ b/dist/lib/rx-database.js @@ -35,9 +35,7 @@ var create = exports.create = function () { _ref7$ignoreDuplicate = _ref7.ignoreDuplicate, ignoreDuplicate = _ref7$ignoreDuplicate === undefined ? false : _ref7$ignoreDuplicate, _ref7$options = _ref7.options, - options = _ref7$options === undefined ? {} : _ref7$options, - _ref7$pouchSettings = _ref7.pouchSettings, - pouchSettings = _ref7$pouchSettings === undefined ? {} : _ref7$pouchSettings; + options = _ref7$options === undefined ? {} : _ref7$options; var db; return _regenerator2['default'].wrap(function _callee7$(_context7) { while (1) { @@ -88,7 +86,7 @@ var create = exports.create = function () { if (!USED_COMBINATIONS[name]) USED_COMBINATIONS[name] = []; USED_COMBINATIONS[name].push(adapter); - db = new RxDatabase(name, adapter, password, multiInstance, options, pouchSettings); + db = new RxDatabase(name, adapter, password, multiInstance, options); _context7.next = 16; return db.prepare(); @@ -152,7 +150,7 @@ var removeDatabase = exports.removeDatabase = function () { }, _callee8, this); })); - return function removeDatabase(_x10, _x11) { + return function removeDatabase(_x7, _x8) { return _ref9.apply(this, arguments); }; }(); @@ -182,7 +180,7 @@ var checkAdapter = exports.checkAdapter = function () { }, _callee9, this); })); - return function checkAdapter(_x12) { + return function checkAdapter(_x9) { return _ref10.apply(this, arguments); }; }(); @@ -252,7 +250,7 @@ var USED_COMBINATIONS = {}; var DB_COUNT = 0; var RxDatabase = exports.RxDatabase = function () { - function RxDatabase(name, adapter, password, multiInstance, options, pouchSettings) { + function RxDatabase(name, adapter, password, multiInstance, options) { (0, _classCallCheck3['default'])(this, RxDatabase); if (typeof name !== 'undefined') DB_COUNT++; @@ -261,7 +259,6 @@ var RxDatabase = exports.RxDatabase = function () { this.password = password; this.multiInstance = multiInstance; this.options = options; - this.pouchSettings = pouchSettings; this.idleQueue = new _customIdleQueue2['default'](); this.token = (0, _randomToken2['default'])(10); @@ -401,7 +398,7 @@ var RxDatabase = exports.RxDatabase = function () { value: function _spawnPouchDB(collectionName, schemaVersion) { var pouchSettings = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return _spawnPouchDB2(this.name, this.adapter, collectionName, schemaVersion, pouchSettings, this.pouchSettings); + return _spawnPouchDB2(this.name, this.adapter, collectionName, schemaVersion, pouchSettings); } }, { key: 'waitForLeadership', @@ -964,13 +961,13 @@ var RxDatabase = exports.RxDatabase = function () { }, { key: '_adminPouch', get: function get() { - if (!this.__adminPouch) this.__adminPouch = _internalAdminPouch(this.name, this.adapter, this.pouchSettings); + if (!this.__adminPouch) this.__adminPouch = _internalAdminPouch(this.name, this.adapter); return this.__adminPouch; } }, { key: '_collectionsPouch', get: function get() { - if (!this.__collectionsPouch) this.__collectionsPouch = _internalCollectionsPouch(this.name, this.adapter, this.pouchSettings); + if (!this.__collectionsPouch) this.__collectionsPouch = _internalCollectionsPouch(this.name, this.adapter); return this.__collectionsPouch; } }, { @@ -1042,7 +1039,6 @@ function _removeUsedCombination(name, adapter) { function _spawnPouchDB2(dbName, adapter, collectionName, schemaVersion) { var pouchSettings = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; - var pouchOptions = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {}; var pouchLocation = dbName + '-rxdb-' + schemaVersion + '-' + collectionName; var pouchDbParameters = { @@ -1050,27 +1046,22 @@ function _spawnPouchDB2(dbName, adapter, collectionName, schemaVersion) { adapter: util.adapterObject(adapter), settings: pouchSettings }; - var pouchDBOptions = Object.assign({}, pouchDbParameters.adapter, pouchOptions); (0, _hooks.runPluginHooks)('preCreatePouchDb', pouchDbParameters); - return new _pouchDb2['default'](pouchDbParameters.location, pouchDBOptions, pouchDbParameters.settings); + return new _pouchDb2['default'](pouchDbParameters.location, pouchDbParameters.adapter, pouchDbParameters.settings); } function _internalAdminPouch(name, adapter) { - var pouchOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return _spawnPouchDB2(name, adapter, '_admin', 0, { auto_compaction: false, // no compaction because this only stores local documents revs_limit: 1 - }, pouchOptions); + }); } function _internalCollectionsPouch(name, adapter) { - var pouchOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return _spawnPouchDB2(name, adapter, '_collections', 0, { auto_compaction: false, // no compaction because this only stores local documents revs_limit: 1 - }, pouchOptions); + }); } ; diff --git a/dist/rxdb.browserify.js b/dist/rxdb.browserify.js index 685655623b7..9eab5125c99 100644 --- a/dist/rxdb.browserify.js +++ b/dist/rxdb.browserify.js @@ -1965,7 +1965,7 @@ function isObject(arg) { 'use strict'; Object.defineProperty(exports, "__esModule", { - value: true + value: true }); var _rxError = require('./rx-error'); @@ -1975,53 +1975,53 @@ var _rxError2 = _interopRequireDefault(_rxError); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var funs = { - /** - * validates if a password can be used - * @overwritten by plugin (optional) - * @param {any} password - * @throws if password not valid - * @return {void} - */ - validatePassword: function validatePassword() { - throw _rxError2['default'].pluginMissing('encryption'); - }, + /** + * validates if a password can be used + * @overwritten by plugin (optional) + * @param {any} password + * @throws if password not valid + * @return {void} + */ + validatePassword: function validatePassword() { + throw _rxError2['default'].pluginMissing('encryption'); + }, - /** - * creates a key-compressor for the given schema - * @param {RxSchema} schema - * @return {KeyCompressor} - */ - createKeyCompressor: function createKeyCompressor() { - throw _rxError2['default'].pluginMissing('keycompression'); - }, + /** + * creates a key-compressor for the given schema + * @param {RxSchema} schema + * @return {KeyCompressor} + */ + createKeyCompressor: function createKeyCompressor() { + throw _rxError2['default'].pluginMissing('keycompression'); + }, - /** - * creates a leader-elector for the given database - * @param {RxDatabase} database - * @return {LeaderElector} - */ - createLeaderElector: function createLeaderElector() { - throw _rxError2['default'].pluginMissing('leaderelection'); - }, + /** + * creates a leader-elector for the given database + * @param {RxDatabase} database + * @return {LeaderElector} + */ + createLeaderElector: function createLeaderElector() { + throw _rxError2['default'].pluginMissing('leaderelection'); + }, - /** - * checks if the given adapter can be used - * @return {any} adapter - */ - checkAdapter: function checkAdapter() { - throw _rxError2['default'].pluginMissing('adapter-check'); - }, + /** + * checks if the given adapter can be used + * @return {any} adapter + */ + checkAdapter: function checkAdapter() { + throw _rxError2['default'].pluginMissing('adapter-check'); + }, - /** - * overwritte to map error-codes to text-messages - * @param {string} message - * @return {string} - */ - tunnelErrorMessage: function tunnelErrorMessage(message) { - // TODO better text with link - return 'RxDB Error-Code ' + message + '.\n - To find out what this means, use the error-messages-plugin https://pubkey.github.io/rxdb/custom-build.html#error-messages\n - Or search for this code https://github.com/pubkey/rxdb/search?l=JavaScript&q=' + message + '%3A\n '; - } + /** + * overwritte to map error-codes to text-messages + * @param {string} message + * @return {string} + */ + tunnelErrorMessage: function tunnelErrorMessage(message) { + // TODO better text with link + return 'RxDB Error-Code ' + message + '.\n - To find out what this means, use the error-messages-plugin https://pubkey.github.io/rxdb/custom-build.html#error-messages\n - Or search for this code https://github.com/pubkey/rxdb/search?l=JavaScript&q=' + message + '%3A\n '; + } }; /** * functions that can or should be overwritten by plugins */ @@ -8667,9 +8667,7 @@ var create = exports.create = function () { _ref7$ignoreDuplicate = _ref7.ignoreDuplicate, ignoreDuplicate = _ref7$ignoreDuplicate === undefined ? false : _ref7$ignoreDuplicate, _ref7$options = _ref7.options, - options = _ref7$options === undefined ? {} : _ref7$options, - _ref7$pouchSettings = _ref7.pouchSettings, - pouchSettings = _ref7$pouchSettings === undefined ? {} : _ref7$pouchSettings; + options = _ref7$options === undefined ? {} : _ref7$options; var db; return _regenerator2['default'].wrap(function _callee7$(_context7) { while (1) { @@ -8720,7 +8718,7 @@ var create = exports.create = function () { if (!USED_COMBINATIONS[name]) USED_COMBINATIONS[name] = []; USED_COMBINATIONS[name].push(adapter); - db = new RxDatabase(name, adapter, password, multiInstance, options, pouchSettings); + db = new RxDatabase(name, adapter, password, multiInstance, options); _context7.next = 16; return db.prepare(); @@ -8784,7 +8782,7 @@ var removeDatabase = exports.removeDatabase = function () { }, _callee8, this); })); - return function removeDatabase(_x10, _x11) { + return function removeDatabase(_x7, _x8) { return _ref9.apply(this, arguments); }; }(); @@ -8814,7 +8812,7 @@ var checkAdapter = exports.checkAdapter = function () { }, _callee9, this); })); - return function checkAdapter(_x12) { + return function checkAdapter(_x9) { return _ref10.apply(this, arguments); }; }(); @@ -8884,7 +8882,7 @@ var USED_COMBINATIONS = {}; var DB_COUNT = 0; var RxDatabase = exports.RxDatabase = function () { - function RxDatabase(name, adapter, password, multiInstance, options, pouchSettings) { + function RxDatabase(name, adapter, password, multiInstance, options) { (0, _classCallCheck3['default'])(this, RxDatabase); if (typeof name !== 'undefined') DB_COUNT++; @@ -8893,7 +8891,6 @@ var RxDatabase = exports.RxDatabase = function () { this.password = password; this.multiInstance = multiInstance; this.options = options; - this.pouchSettings = pouchSettings; this.idleQueue = new _customIdleQueue2['default'](); this.token = (0, _randomToken2['default'])(10); @@ -9033,7 +9030,7 @@ var RxDatabase = exports.RxDatabase = function () { value: function _spawnPouchDB(collectionName, schemaVersion) { var pouchSettings = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return _spawnPouchDB2(this.name, this.adapter, collectionName, schemaVersion, pouchSettings, this.pouchSettings); + return _spawnPouchDB2(this.name, this.adapter, collectionName, schemaVersion, pouchSettings); } }, { key: 'waitForLeadership', @@ -9596,13 +9593,13 @@ var RxDatabase = exports.RxDatabase = function () { }, { key: '_adminPouch', get: function get() { - if (!this.__adminPouch) this.__adminPouch = _internalAdminPouch(this.name, this.adapter, this.pouchSettings); + if (!this.__adminPouch) this.__adminPouch = _internalAdminPouch(this.name, this.adapter); return this.__adminPouch; } }, { key: '_collectionsPouch', get: function get() { - if (!this.__collectionsPouch) this.__collectionsPouch = _internalCollectionsPouch(this.name, this.adapter, this.pouchSettings); + if (!this.__collectionsPouch) this.__collectionsPouch = _internalCollectionsPouch(this.name, this.adapter); return this.__collectionsPouch; } }, { @@ -9674,7 +9671,6 @@ function _removeUsedCombination(name, adapter) { function _spawnPouchDB2(dbName, adapter, collectionName, schemaVersion) { var pouchSettings = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; - var pouchOptions = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {}; var pouchLocation = dbName + '-rxdb-' + schemaVersion + '-' + collectionName; var pouchDbParameters = { @@ -9682,27 +9678,22 @@ function _spawnPouchDB2(dbName, adapter, collectionName, schemaVersion) { adapter: util.adapterObject(adapter), settings: pouchSettings }; - var pouchDBOptions = Object.assign({}, pouchDbParameters.adapter, pouchOptions); (0, _hooks.runPluginHooks)('preCreatePouchDb', pouchDbParameters); - return new _pouchDb2['default'](pouchDbParameters.location, pouchDBOptions, pouchDbParameters.settings); + return new _pouchDb2['default'](pouchDbParameters.location, pouchDbParameters.adapter, pouchDbParameters.settings); } function _internalAdminPouch(name, adapter) { - var pouchOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return _spawnPouchDB2(name, adapter, '_admin', 0, { auto_compaction: false, // no compaction because this only stores local documents revs_limit: 1 - }, pouchOptions); + }); } function _internalCollectionsPouch(name, adapter) { - var pouchOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return _spawnPouchDB2(name, adapter, '_collections', 0, { auto_compaction: false, // no compaction because this only stores local documents revs_limit: 1 - }, pouchOptions); + }); } ; diff --git a/dist/rxdb.browserify.min.js b/dist/rxdb.browserify.min.js index 224d371fef5..731bb2187d5 100644 --- a/dist/rxdb.browserify.min.js +++ b/dist/rxdb.browserify.min.js @@ -1 +1 @@ -!function i(a,s,u){function c(r,e){if(!s[r]){if(!a[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(l)return l(r,!0);var n=new Error("Cannot find module '"+r+"'");throw n.code="MODULE_NOT_FOUND",n}var o=s[r]={exports:{}};a[r][0].call(o.exports,function(e){var t=a[r][1][e];return c(t||e)},o,o.exports,i,a,s,u)}return s[r].exports}for(var l="function"==typeof require&&require,e=0;ethis.limit;)this.buffer.shift()}},{key:"getArrayIndexByPointer",value:function(e){var t=this.buffer[0],r=this.eventCounterMap.get(t);return e 2",QU1:"RxQuery._execOverDatabase(): op not known",QU2:"limit() must get a number",QU3:"skip() must get a number",QU4:"RxQuery.regex(): You cannot use .regex() on the primary field",QU5:"RxQuery.sort(): does not work because key is not defined in the schema",QU6:"RxQuery.limit(): cannot be called on .findOne()",QU7:"query must be an object",QU8:"query cannot be an array",MQ1:"path must be a string or object",MQ2:"Invalid argument",MQ3:"Invalid sort() argument. Must be a string, object, or array",MQ4:"Invalid argument. Expected instanceof mquery or plain object",MQ5:"method must be used after where() when called with these arguments",MQ6:"Can't mix sort syntaxes. Use either array or object | .sort([['field', 1], ['test', -1]]) | .sort({ field: 1, test: -1 })",MQ7:"Invalid sort value",MQ8:"Can't mix sort syntaxes. Use either array or object",DB1:"RxDocument.prepare(): another instance on this adapter has a different password",DB2:"RxDatabase.collection(): collection-names cannot start with underscore _",DB3:"RxDatabase.collection(): collection already exists. use myDatabase.[collectionName] to get it",DB4:"RxDatabase.collection(): schema is missing",DB5:"RxDatabase.collection(): collection-name not allowed",DB6:"RxDatabase.collection(): another instance created this collection with a different schema",DB7:"RxDatabase.collection(): schema encrypted but no password given",DB8:"RxDatabase.create(): A RxDatabase with the same name and adapter already exists.\nMake sure to use this combination only once or set ignoreDuplicate to true if you do this intentional",DB9:"RxDatabase.create(): Adapter not added. Use RxDB.plugin(require('pouchdb-adapter-[adaptername]');",DB10:"RxDatabase.create(): To use leveldown-adapters, you have to add the leveldb-plugin. Use RxDB.plugin(require('pouchdb-adapter-leveldb'));",COL1:"RxDocument.insert() You cannot insert an existing document",COL2:"RxCollection.insert() do not provide ._id, it will be generated",COL3:"RxCollection.upsert() does not work without primary",COL4:"RxCollection.atomicUpsert() does not work without primary",COL5:"RxCollection.find() if you want to search by _id, use .findOne(_id)",COL6:"RxCollection.findOne() needs a queryObject or string",COL7:"hook must be a function",COL8:"hooks-when not known",COL9:"RxCollection.addHook() hook-name not known",COL10:"RxCollection .postCreate-hooks cannot be async",COL11:"migrationStrategies must be an object",COL12:"A migrationStrategy is missing or too much",COL13:"migrationStrategy must be a function",COL14:"given static method-name is not a string",COL15:"static method-names cannot start with underscore _",COL16:"given static method is not a function",COL17:"RxCollection.ORM: statics-name not allowed",COL18:"collection-method not allowed because fieldname is in the schema",DOC1:"RxDocument.get$ cannot get observable of in-array fields because order cannot be guessed",DOC2:"cannot observe primary path",DOC3:"final fields cannot be observed",DOC4:"RxDocument.get$ cannot observe a non-existed field",DOC5:"RxDocument.populate() cannot populate a non-existed field",DOC6:"RxDocument.populate() cannot populate because path has no ref",DOC7:"RxDocument.populate() ref-collection not in database",DOC8:"RxDocument.set(): primary-key cannot be modified",DOC9:"final fields cannot be modified",DOC10:"RxDocument.set(): cannot set childpath when rootPath not selected",DOC11:"RxDocument.save(): cant save deleted document",DOC12:"RxDocument.save(): error",DOC13:"RxDocument.remove(): Document is already deleted",DOC14:"RxDocument.destroy() does not exist",DOC15:"query cannot be an array",DM1:"migrate() Migration has already run",DM2:"migration of document failed final document does not match final schema",DM3:"migration already running",AT1:"to use attachments, please define this in your schema",EN1:"password is no string",EN2:"validatePassword: min-length of password not complied",JD1:"You must create the collections before you can import their data",JD2:"RxCollection.importDump(): the imported json relies on a different schema",JD3:"RxCollection.importDump(): json.passwordHash does not match the own",LE1:"LeaderElection: this should not happen :( please contact the maintainer",LE2:"LeaderElection: someone else is applying/leader",LE3:"LeaderElection: someone else overwrote apply",LD1:"RxDocument.allAttachments$ cant use attachments on local documents",LD2:"RxDocument.get(): objPath must be a string",LD3:"RxDocument.get$ cannot get observable of in-array fields because order cannot be guessed",LD4:"cannot observe primary path",LD5:"RxDocument.set() id cannot be modified",LD6:"LocalDocument: Function is not useable on local documents",LD7:"Local document already exists",RC1:"Replication: already added",RC2:"RxCollection.sync() query must be from the same RxCollection",SC1:"fieldnames do not match the regex",SC2:"SchemaCheck: name 'item' reserved for array-fields",SC3:"SchemaCheck: fieldname has a ref-array but items-type is not string",SC4:"SchemaCheck: fieldname has a ref but is not type string or array",SC5:"SchemaCheck: fieldname cannot be primary and ref at same time",SC6:"SchemaCheck: primary can only be defined at top-level",SC7:"SchemaCheck: default-values can only be defined at top-level",SC8:"SchemaCheck: first level-fields cannot start with underscore _",SC9:"SchemaCheck: schema defines ._id, this will be done automatically",SC10:"SchemaCheck: schema defines ._rev, this will be done automatically",SC11:"SchemaCheck: schema need an number>=0 as version",SC12:"SchemaCheck: primary can only be defined once",SC13:"SchemaCheck: primary is always index, do not declare it as index",SC14:"SchemaCheck: primary is always unique, do not declare it as index",SC15:"SchemaCheck: primary cannot be encrypted",SC16:"SchemaCheck: primary must have type: string",SC17:"SchemaCheck: top-level fieldname is not allowed",SC18:"SchemaCheck: compoundIndexes must be an array",SC19:"SchemaCheck: compoundIndexes must contain arrays",SC20:"SchemaCheck: compoundIndexes.array must contains strings",SC21:"SchemaCheck: given index is not defined in schema",SC22:"given indexKey is not type:string",SC23:"SchemaCheck: fieldname is not allowed",VD1:"Sub-schema not found, does the schemaPath exists in your schema?",VD2:"object does not match schema",IM1:"InMemory: Memory-Adapter must be added. Use RxDB.plugin(require('pouchdb-adapter-memory'));",S1:"You cannot create collections after calling RxDatabase.server()"},o=r.rxdb=!0,i=r.prototypes={},a=r.overwritable={tunnelErrorMessage:function(e){if(!n[e])throw console.error("RxDB: Error-Code not known: "+e),new Error("Error-Cdoe "+e+" not known, contact the maintainer");return n[e]}};r.default={rxdb:o,prototypes:i,overwritable:a}},{}],17:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.overwritable=r.prototypes=r.rxdb=r.spawnInMemory=r.InMemoryRxCollection=void 0;var n,o=g(e("babel-runtime/helpers/typeof")),i=g(e("babel-runtime/regenerator")),a=g(e("babel-runtime/helpers/asyncToGenerator")),s=g(e("babel-runtime/helpers/classCallCheck")),u=g(e("babel-runtime/helpers/createClass")),c=g(e("babel-runtime/helpers/possibleConstructorReturn")),l=g(e("babel-runtime/helpers/inherits")),f=r.spawnInMemory=(n=(0,a.default)(i.default.mark(function e(){var t,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=4;break}if(O=!0,v.default.adapters&&v.default.adapters.memory){e.next=4;break}throw m.default.newRxError("IM1");case 4:if(!w.has(this)){e.next=8;break}return e.next=7,x.get(this);case 7:return e.abrupt("return",w.get(this));case 8:return t=new j(this),r=t.prepare(),w.set(this,t),x.set(this,r),e.next=14,r;case 14:return e.abrupt("return",t);case 15:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)}),d=e("rxjs/Subject"),h=g(e("../rx-collection")),p=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../util")),b=g(e("../crypter")),y=g(e("../change-event-buffer")),_=g(e("../rx-schema")),v=g(e("../pouch-db")),m=g(e("../rx-error"));function g(e){return e&&e.__esModule?e:{default:e}}var w=new WeakMap,x=new WeakMap,k={new_edits:!1},j=r.InMemoryRxCollection=function(e){function n(e,t){(0,s.default)(this,n);var r=(0,c.default)(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.database,e.name,function(e){var t=p.clone(e.jsonID);t.disableKeyCompression=!0,delete t.properties._id,delete t.properties._rev,delete t.properties._attachments;return function t(e,r){delete e.encrypted,Object.values(e).filter(function(e){return"object"===(void 0===e?"undefined":(0,o.default)(e))}).forEach(function(e){return t(e,r)})}(t,t),_.default.create(t)}(e.schema),t,{},e._methods));return r._isInMemory=!0,r._parentCollection=e,r._parentCollection.onDestroy.then(function(){return r.destroy()}),r._changeStreams=[],r.onDestroy.then(function(){r._changeStreams.forEach(function(e){return e.cancel()}),r.pouch.destroy()}),r}var t,r;return(0,l.default)(n,e),(0,u.default)(n,[{key:"prepare",value:(r=(0,a.default)(i.default.mark(function e(){var r=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._crypter=b.default.create(this.database.password,this.schema),this.pouch=new v.default("rxdb-in-memory-"+p.randomCouchString(10),p.adapterObject("memory"),{}),this._observable$=new d.Subject,this._changeEventBuffer=y.default.create(this),e.next=6,Promise.all(this.schema.indexes.map(function(e){return r.pouch.createIndex({index:{fields:e}})}));case 6:return this._subs.push(this._observable$.subscribe(function(e){var t=r._docCache.get(e.data.doc);t&&t._handleChangeEvent(e)})),e.next=9,this._initialSync();case 9:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"_initialSync",value:(t=(0,a.default)(i.default.mark(function e(){var t,r,n,o=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._parentCollection.pouch.allDocs({attachments:!1,include_docs:!0});case 2:return t=e.sent,e.next=5,this.pouch.bulkDocs({docs:t.rows.map(function(e){return e.doc}).filter(function(e){return!e.language}).map(function(e){return o._parentCollection._handleFromPouch(e)}).map(function(e){return o._parentCollection.schema.swapPrimaryToId(e)})},k);case 5:this._parentCollection.watchForChanges(),this.watchForChanges(),r=this.pouch.changes({since:"now",include_docs:!0,live:!0}).on("change",function(){var t=(0,a.default)(i.default.mark(function e(t){var r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=o._parentCollection._handleToPouch(t.doc),o._parentCollection.pouch.bulkDocs({docs:[r]},k);case 2:case"end":return e.stop()}},e,o)}));return function(e){return t.apply(this,arguments)}}()),this._changeStreams.push(r),n=this._parentCollection.pouch.changes({since:"now",include_docs:!0,live:!0}).on("change",function(){var t=(0,a.default)(i.default.mark(function e(t){var r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=o._parentCollection._handleFromPouch(t.doc),r=o.schema.swapPrimaryToId(r),o.pouch.bulkDocs({docs:[r]},k);case 3:case"end":return e.stop()}},e,o)}));return function(e){return t.apply(this,arguments)}}()),this._changeStreams.push(n);case 11:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"$emit",value:function(e){this._observable$.next(e),this._eventCounter||(this._eventCounter=0),this._eventCounter++,10===this._eventCounter&&(this._eventCounter=0,this.pouch.compact())}}]),n}(h.default.RxCollection);var O=!1,S=r.rxdb=!0,E=r.prototypes={RxCollection:function(e){e.inMemory=f}},C=r.overwritable={};r.default={rxdb:S,prototypes:E,overwritable:C,spawnInMemory:f}},{"../change-event-buffer":2,"../crypter":4,"../pouch-db":26,"../rx-collection":31,"../rx-error":34,"../rx-schema":36,"../util":38,"babel-runtime/helpers/asyncToGenerator":49,"babel-runtime/helpers/classCallCheck":50,"babel-runtime/helpers/createClass":51,"babel-runtime/helpers/inherits":53,"babel-runtime/helpers/possibleConstructorReturn":54,"babel-runtime/helpers/typeof":56,"babel-runtime/regenerator":57,"rxjs/Subject":543}],18:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.overwritable=r.prototypes=r.rxdb=void 0;var a=o(e("babel-runtime/regenerator")),n=o(e("babel-runtime/helpers/asyncToGenerator")),s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../util")),u=o(e("../rx-query")),i=o(e("../rx-error")),c=o(e("../rx-change-event"));function o(e){return e&&e.__esModule?e:{default:e}}var l,f,d,h,p=(l=(0,n.default)(a.default.mark(function e(){var t,r,n=this,o=0=r)){e.next=7;break}throw _.default.newRxError("LE2");case 7:return t.apply=this.token,t.t=(new Date).getTime(),e.next=11,this.setLeaderObject(t);case 11:return e.next=13,b.promiseWait(.5*x);case 13:return e.next=15,this.getLeaderObject();case 15:if((t=e.sent).apply===this.token){e.next=18;break}throw _.default.newRxError("LE3");case 18:return e.abrupt("return",!0);case 21:return e.prev=21,e.t0=e.catch(0),e.abrupt("return",!1);case 24:case"end":return e.stop()}},e,this,[[0,21]])})),function(){return s.apply(this,arguments)})},{key:"applyBroadcast",value:(a=(0,f.default)(l.default.mark(function e(){var r,n,o,t,i,a=this;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(new Date).getTime(),n=[],o=[],t=function(){var e=(0,f.default)(l.default.mark(function e(){var t;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.push(a.bc.$.pipe((0,m.filter)(function(){return!!a.isApplying}),(0,m.filter)(function(e){return e.t>=r}),(0,m.filter)(function(e){return"apply"===e.type}),(0,m.filter)(function(e){return e.dataa.token}),(0,m.filter)(function(){return o.length<1})).subscribe(function(e){return o.push("other is applying:"+e.it)})),n.push(a.bc.$.pipe((0,m.filter)(function(){return!!a.isApplying}),(0,m.filter)(function(e){return e.t>=r}),(0,m.filter)(function(e){return"tell"===e.type}),(0,m.filter)(function(){return o.length<1})).subscribe(function(e){return o.push("other is leader"+e.it)})),n.push(a.bc.$.pipe((0,m.filter)(function(){return!!a.isApplying}),(0,m.filter)(function(e){return"apply"===e.type}),(0,m.filter)(function(e){return e.data>r||e.data===r&&e.it>a.token})).subscribe(function(){return a.bc.write("apply",r)})),t=3;case 4:if(!(0=o.limit,c=o.limit&&t.length>=o.limit;b&&(console.log("QueryChangeDetector.handleSingleChange()"),this._debugMessage("start",e.data.v,"handleSingleChange()"),console.log("changeEvent.data:"),console.dir(e.data),console.log("wasDocInResults: "+a),console.log("doesMatchNow: "+s),console.log("isFilled: "+u));var l=null,f=null,d=null;if("REMOVE"===e.data.op){if(!s)return b&&this._debugMessage("R1",i),!1;if(o.skip&&s&&(null===f&&(f=r._isSortedBefore(i,n[0])),f)&&!u)return b&&this._debugMessage("R2",i),n.shift(),n;if(s&&a&&!u)return b&&this._debugMessage("R3",i),n=n.filter(function(e){return e[r.primaryKey]!==i[r.primaryKey]});if(s&&a&&!o.limit&&!o.skip)return b&&this._debugMessage("R3.1",i),n=n.filter(function(e){return e[r.primaryKey]!==i[r.primaryKey]});if(s&&o.limit&&(null===l&&(l=r._isSortedBefore(n[n.length-1],i)),l))return b&&this._debugMessage("R4",i),!1}else{if(!(o.skip||o.limit||a||s))return b&&this._debugMessage("U1",i),!1;if(!o.skip&&!o.limit&&a&&s){var h=n.find(function(e){return e[r.primaryKey]===i[r.primaryKey]}),p=n.indexOf(h);return n[p]=i,function(){if(null===d){var e=t.find(function(e){return e[r.primaryKey]===i[r.primaryKey]});d=r._sortFieldChanged(e,i)}return d}()?(b&&this._debugMessage("U2 - resort",i),this._resortDocData(n)):(b&&this._debugMessage("U2 - no-resort",i),n)}if(!o.skip&&!c&&!a&&s)return b&&this._debugMessage("U3",i),n.push(i),this._resortDocData(n)}return!0}},{key:"doesDocMatchQuery",value:function(e){e=this.query.collection.schema.swapPrimaryToId(e);var t=Object.keys(this.query.toJSON().selector);return 1===(0,a.filterInMemoryFields)([{doc:e}],{selector:(0,a.massageSelector)(this.query.toJSON().selector)},t).length}},{key:"_isDocInResultData",value:function(t,e){var r=this.query.collection.schema.primaryPath;return!!e.find(function(e){return e[r]===t[r]})}},{key:"_sortFieldChanged",value:function(t,r){var e=this.query.toJSON().sort.map(function(e){return Object.keys(e).pop()}),n=!1;return e.find(function(e){return i.default.get(t,e)!==i.default.get(r,e)&&(n=!0)}),n}},{key:"_isSortedBefore",value:function(e,t){var r=this.query.toJSON(),n=Object.keys(this.query.toJSON().selector),o=this.query.collection.schema.swapPrimaryToId(e),i=[o,this.query.collection.schema.swapPrimaryToId(t)].map(function(e){return{id:e._id,doc:e}});return(0,a.filterInMemoryFields)(i,{selector:(0,a.massageSelector)(this.query.toJSON().selector),sort:r.sort},n)[0].id===o._id}},{key:"_resortDocData",value:function(e){var t=this,r=e.map(function(e){return{doc:t.query.collection.schema.swapPrimaryToId(e)}}),n=this.query.toJSON(),o=Object.keys(this.query.toJSON().selector);return(0,a.filterInMemoryFields)(r,{selector:(0,a.massageSelector)(this.query.toJSON().selector),sort:n.sort},o).map(function(e){return e.doc}).map(function(e){return t.query.collection.schema.swapIdToPrimary(e)})}}]),t}();function l(){console.log("QueryChangeDetector.enableDebugging()"),b=!0}function f(){var e=!(0=this.collection._changeEventBuffer.counter}},{key:"_ensureEqual",value:(o=(0,i.default)(u.default.mark(function e(){var t,r=this;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureEqualQueue.requestIdlePromise();case 2:return e.next=4,this._ensureEqualQueue.wrapCall(function(){return r.__ensureEqual()});case 4:return t=e.sent,e.abrupt("return",t);case 6:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"__ensureEqual",value:(r=(0,i.default)(u.default.mark(function e(){var t,r,n,o,i,a,s;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!1,!this._isResultsInSync()){e.next=3;break}return e.abrupt("return",!1);case 3:if(r=!1,-1===this._latestChangeEvent&&(r=!0),r){e.next=19;break}if(null!==(n=this.collection._changeEventBuffer.getFrom(this._latestChangeEvent+1))){e.next=11;break}r=!0,e.next=19;break;case 11:if(this._latestChangeEvent=this.collection._changeEventBuffer.counter,o=this.collection._changeEventBuffer.reduceByLastOfDoc(n),i=this._queryChangeDetector.runChangeDetection(o),!Array.isArray(i)&&i&&(r=!0),!Array.isArray(i)||(0,f.default)(i,this._resultsData)){e.next=19;break}return t=!0,e.next=19,this._setResultData(i);case 19:if(!r){e.next=29;break}return a=this.collection._changeEventBuffer.counter,e.next=23,this._execOverDatabase();case 23:if(s=e.sent,this._latestChangeEvent=a,(0,f.default)(s,this._resultsData)){e.next=29;break}return t=!0,e.next=29,this._setResultData(s);case 29:return e.abrupt("return",t);case 30:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"_setResultData",value:(t=(0,i.default)(u.default.mark(function e(t){var r,n;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._resultsData=t,e.next=3,this.collection._createDocuments(this._resultsData);case 3:r=e.sent,n=r,"findOne"===this.op&&(n=0===r.length?null:r[0]),this._results$.next(n);case 7:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"_execOverDatabase",value:function(){this._execOverDatabaseCount=this._execOverDatabaseCount+1;var e=void 0;switch(this.op){case"find":e=this.collection._pouchFind(this);break;case"findOne":e=this.collection._pouchFind(this,1);break;default:throw y.default.newRxError("QU1",{op:this.op})}return e}},{key:"toJSON",value:function(){if(this._toJSON)return this._toJSON;var n=this.collection.schema.primaryPath,t={selector:this.mquery._conditions},o=this.mquery._optionsForExec();if(o.sort){var i=[];Object.keys(o.sort).map(function(e){var t="asc";-1===o.sort[e]&&(t="desc");var r={};e===n&&(e="_id"),r[e]=t,i.push(r)}),t.sort=i}else t.sort=[{_id:"asc"}];if(o.limit){if("number"!=typeof o.limit)throw y.default.newRxTypeError("QU2",{limit:o.limit});t.limit=o.limit}if(o.skip){if("number"!=typeof o.skip)throw y.default.newRxTypeError("QU3",{skip:o.skip});t.skip=o.skip}return t.selector.language||(t.selector.language={}),t.selector.language.$ne="query",Object.entries(t.selector).filter(function(e){return"object"===(0,a.default)(e[1])}).filter(function(e){return null!==e[1]}).filter(function(e){return!Array.isArray(e[1])}).filter(function(e){return 0===Object.keys(e[1]).length}).forEach(function(e){return delete t.selector[e[0]]}),"_id"!==n&&t.selector[n]&&(t.selector._id=t.selector[n],delete t.selector[n]),this._toJSON=t,this._toJSON}},{key:"keyCompress",value:function(){return this.collection.schema.doKeyCompression()?(this._keyCompress||(this._keyCompress=this.collection._keyCompressor.compressQuery(this.toJSON())),this._keyCompress):this.toJSON()}},{key:"remove",value:function(){var t=void 0;return this.exec().then(function(e){return t=e,Array.isArray(e)?Promise.all(e.map(function(e){return e.remove()})):e.remove()}).then(function(){return t})}},{key:"update",value:function(){throw y.default.pluginMissing("update")}},{key:"exec",value:(e=(0,i.default)(u.default.mark(function e(){var t;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=!0;case 1:if(!t){e.next=7;break}return e.next=4,this._ensureEqual();case 4:t=e.sent,e.next=1;break;case 7:return e.abrupt("return",this._results$.getValue());case 8:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"regex",value:function(e){var t=this._clone();if(this.mquery._path===this.collection.schema.primaryPath)throw y.default.newRxError("QU4",{path:this.mquery._path});return t.mquery.regex(e),t._tunnelQueryCache()}},{key:"sort",value:function(e){var r=function(e){throw y.default.newRxError("QU5",{key:e})},n=this._clone();if("object"!==(void 0===e?"undefined":(0,a.default)(e))){var t="-"===e.charAt(0)?e.substring(1):e;if(!n.mquery._conditions[t]){var o=n.collection.schema.getSchemaByObjectPath(t);o||r(t),"integer"===o.type?n.mquery.where(t).gt(-1e28):n.mquery.where(t).gt(null)}}else Object.keys(e).filter(function(e){return!n.mquery._conditions[e]||!n.mquery._conditions[e].$gt}).forEach(function(e){var t=n.collection.schema.getSchemaByObjectPath(e);t||r(e),"integer"===t.type?n.mquery.where(e).gt(-1e28):n.mquery.where(e).gt(null)});return n.mquery.sort(e),n._tunnelQueryCache()}},{key:"limit",value:function(e){if("findOne"===this.op)throw y.default.newRxError("QU6");var t=this._clone();return t.mquery.limit(e),t._tunnelQueryCache()}},{key:"_ensureEqualQueue",get:function(){return this.__ensureEqualQueue||(this.__ensureEqualQueue=new d.default),this.__ensureEqualQueue}},{key:"$",get:function(){var t,r=this;if(!this._$){var e=this._results$.pipe((0,m.mergeMap)((t=(0,i.default)(u.default.mark(function e(t){return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._ensureEqual();case 2:if(!e.sent){e.next=7;break}return e.abrupt("return","WAITFORNEXTEMIT");case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}},e,r)})),function(e){return t.apply(this,arguments)})),(0,g.filter)(function(e){return"WAITFORNEXTEMIT"!==e})).asObservable(),n=this.collection.$.pipe((0,g.filter)(function(e){return["INSERT","UPDATE","REMOVE"].includes(e.data.op)}),(0,g.filter)(function(){return r._ensureEqual(),!1}));this._$=(0,_.merge)(e,n)}return this._$}}]),n}(),j=function(t,e){e.filter(function(e){return!e.startsWith("_")}).filter(function(e){return!t[e]}).forEach(function(r){t[r]=function(e){var t=this._clone();return t.mquery[r](e),t._tunnelQueryCache()}})},O=!1;function S(e,t,r){if(t&&"object"!==(void 0===t?"undefined":(0,a.default)(t)))throw y.default.newRxTypeError("QU7",{queryObj:t});if(Array.isArray(t))throw y.default.newRxTypeError("QU8",{queryObj:t});var n=new k(e,t,r);return n=n._tunnelQueryCache(),O||(O=!0,j(Object.getPrototypeOf(n),Object.getOwnPropertyNames(n.mquery.__proto__))),(0,o.runPluginHooks)("createRxQuery",n),n}function E(e){return e instanceof k}r.default={create:S,RxQuery:k,isInstanceOf:E}},{"./hooks":7,"./mquery/mquery":9,"./query-change-detector":28,"./rx-error":34,"./util":38,"babel-runtime/helpers/asyncToGenerator":49,"babel-runtime/helpers/classCallCheck":50,"babel-runtime/helpers/createClass":51,"babel-runtime/helpers/defineProperty":52,"babel-runtime/helpers/typeof":56,"babel-runtime/regenerator":57,"custom-idle-queue":488,"deep-equal":489,"rxjs/BehaviorSubject":536,"rxjs/observable/merge":552,"rxjs/operators/filter":555,"rxjs/operators/mergeMap":559}],36:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RxSchema=void 0;var s=l(e("babel-runtime/helpers/typeof")),n=l(e("babel-runtime/helpers/classCallCheck")),o=l(e("babel-runtime/helpers/createClass"));r.getEncryptedPaths=d,r.hasCrypt=h,r.getIndexes=p,r.getPrimary=b,r.getFinalFields=y,r.normalize=_,r.create=m,r.isInstanceOf=g;var i=l(e("object-path")),u=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("./util")),a=l(e("./rx-error")),c=e("./hooks");function l(e){return e&&e.__esModule?e:{default:e}}var f=r.RxSchema=function(){function r(e){var t=this;(0,n.default)(this,r),this.jsonID=e,this.compoundIndexes=this.jsonID.compoundIndexes,this.indexes=p(this.jsonID),this.indexes.forEach(function(e){e.filter(function(e){return!t.jsonID.required.includes(e)}).filter(function(e){return!e.includes(".")}).forEach(function(e){return t.jsonID.required.push(e)})}),this.primaryPath=b(this.jsonID),this.primaryPath&&this.jsonID.required.push(this.primaryPath),this.finalFields=y(this.jsonID),this.jsonID.required=this.jsonID.required.concat(this.finalFields).filter(function(e,t,r){return r.indexOf(e)===t}),this.jsonID.properties[this.primaryPath]||(this.jsonID.properties[this.primaryPath]={type:"string",minLength:1})}return(0,o.default)(r,[{key:"getSchemaByObjectPath",value:function(e){return e="properties."+(e=e.replace(/\./g,".properties.")),e=u.trimDots(e),i.default.get(this.jsonID,e)}},{key:"validate",value:function(){throw a.default.pluginMissing("validate")}},{key:"fillObjectWithDefaults",value:function(t){return t=u.clone(t),Object.entries(this.defaultValues).filter(function(e){return!t.hasOwnProperty(e[0])}).forEach(function(e){t[e[0]]=e[1]}),t}},{key:"swapIdToPrimary",value:function(e){return"_id"===this.primaryPath||e[this.primaryPath]||(e[this.primaryPath]=e._id,delete e._id),e}},{key:"swapPrimaryToId",value:function(e){var r=this;if("_id"===this.primaryPath)return e;var n={};return Object.entries(e).forEach(function(e){var t=e[0]===r.primaryPath?"_id":e[0];n[t]=e[1]}),n}},{key:"doKeyCompression",value:function(){return!this.jsonID.disableKeyCompression}},{key:"version",get:function(){return this.jsonID.version}},{key:"previousVersions",get:function(){var e=0;return new Array(this.version).fill(0).map(function(){return e++})}},{key:"crypt",get:function(){return this._crypt||(this._crypt=h(this.jsonID)),this._crypt}},{key:"normalized",get:function(){return this._normalized||(this._normalized=_(this.jsonID)),this._normalized}},{key:"topLevelFields",get:function(){return Object.keys(this.normalized.properties)}},{key:"defaultValues",get:function(){var t=this;return this._defaultValues||(this._defaultValues={},Object.entries(this.normalized.properties).filter(function(e){return e[1].hasOwnProperty("default")}).forEach(function(e){return t._defaultValues[e[0]]=e[1].default})),this._defaultValues}},{key:"encryptedPaths",get:function(){return this._encryptedPaths||(this._encryptedPaths=d(this.jsonID)),this._encryptedPaths}},{key:"hash",get:function(){return this._hash||(this._hash=u.hash(this.normalized)),this._hash}}]),r}();function d(e){var i={};return function e(t,r){if("object"===(void 0===t?"undefined":(0,s.default)(t)))if(t.encrypted)i[r.substring(1)]=t;else for(var n in t){var o=r;"properties"!==n&&(o=o+"."+n),e(t[n],o)}}(e.properties,""),i}function h(e){var t=d(e);return 0=r)){e.next=8;break}return e.abrupt("return",[]);case 8:return this.lastTimestamp=r,e.next=11,this.database.lockedRun(function(){return o.pouch.allDocs({include_docs:!0})});case 11:return n=e.sent,e.abrupt("return",n.rows.map(function(e){return e.doc}));case 13:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"deleteDoc",value:(n=(0,c.default)(u.default.mark(function e(t){var r,n=this;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=!0,e.prev=1,e.next=4,this.database.lockedRun(function(){return n.pouch.remove(t)});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),r=!1;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}},e,this,[[1,6]])})),function(e){return n.apply(this,arguments)})},{key:"_cleanupDocs",value:function(e){var t=this;e.forEach(function(e){t.database.requestIdlePromise().then(function(){t._destroyed||t.deleteDoc(e)})}),0t}).sort(function(e,t){return e.t>t.t?1:-1}).map(function(e){return h.default.fromJSON(e)}).filter(function(e){return!i.receivedEvents[e.hash]&&(i.receivedEvents[e.hash]=(new Date).getTime())}).filter(function(e){return setTimeout(function(){return delete i.receivedEvents[e.hash]},15e3)}).forEach(function(e){return i.messages$.next(e)}),!this._destroyed){e.next=19;break}return e.abrupt("return");case 19:return n=(new Date).getTime()-5e3,o=r.filter(function(e){return e.t>16&255,i[s++]=n>>8&255,i[s++]=255&n;2===o?(n=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,i[s++]=255&n):1===o&&(n=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,i[s++]=n>>8&255,i[s++]=255&n);return i},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o="",i=[],a=0,s=r-n;a>2],o+=u[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=u[t>>10],o+=u[t>>4&63],o+=u[t<<2&63],o+="=");return i.push(o),i.join("")};for(var u=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o>18&63]+u[o>>12&63]+u[o>>6&63]+u[63&o]);return i.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],59:[function(e,t,r){"use strict";var n=e("base64-js"),i=e("ieee754");r.Buffer=f,r.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},r.INSPECT_MAX_BYTES=50;var o=2147483647;function a(e){if(o>>1;case"base64":return I(e).length;default:if(n)return M(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s/=a=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return g(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return m(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return 0t&&(e+=" ... ")),""},f.prototype.compare=function(e,t,r,n,o){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&r<=t)return 0;if(o<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(n,o),c=e.slice(t,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||othis.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i,a,s,u,c,l,f,d,h,p=!1;;)switch(n){case"hex":return _(this,e,t,r);case"utf8":case"utf-8":return d=t,h=r,T(M(e,(f=this).length-d),f,d,h);case"ascii":return v(this,e,t,r);case"latin1":case"binary":return v(this,e,t,r);case"base64":return u=this,c=t,l=r,T(I(e),u,c,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=t,s=r,T(function(e,t){for(var r,n,o,i=[],a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(e,(i=this).length-a),i,a,s);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function x(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;oe.length)throw new RangeError("Index out of range")}function C(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function A(e,t,r,n,o){return t=+t,r>>>=0,o||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function P(e,t,r,n,o){return t=+t,r>>>=0,o||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}f.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r>>=0,t>>>=0,r||S(e,t,this.length);for(var n=this[e],o=1,i=0;++i>>=0,t>>>=0,r||S(e,t,this.length);for(var n=this[e+--t],o=1;0>>=0,t||S(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||S(e,t,this.length);for(var n=this[e],o=1,i=0;++i>>=0,t>>>=0,r||S(e,t,this.length);for(var n=t,o=1,i=this[e+--n];0>>=0,t||S(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||S(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){e>>>=0,t||S(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||S(e,4,this.length),i.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||S(e,4,this.length),i.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||S(e,8,this.length),i.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||S(e,8,this.length),i.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||E(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,n)||E(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;0<=--o&&(i*=256);)this[t+o]=e/i&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||E(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},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||E(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},f.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);E(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);E(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;0<=--i&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||E(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},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||E(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},f.prototype.writeFloatLE=function(e,t,r){return A(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return A(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return P(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return P(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,n){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),0=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function I(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,r,n){for(var o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function L(e){return e instanceof ArrayBuffer||null!=e&&null!=e.constructor&&"ArrayBuffer"===e.constructor.name&&"number"==typeof e.byteLength}function F(e){return e!=e}},{"base64-js":58,ieee754:495}],60:[function(e,t,r){(function(O){var e=function(){"use strict";function m(e,t){return null!=t&&e instanceof t}var g,w,x;try{g=Map}catch(e){g=function(){}}try{w=Set}catch(e){w=function(){}}try{x=Promise}catch(e){x=function(){}}function k(e,h,t,p,b){"object"==typeof h&&(t=h.depth,p=h.prototype,b=h.includeNonEnumerable,h=h.circular);var y=[],_=[],v=void 0!==O;return void 0===h&&(h=!0),void 0===t&&(t=1/0),function o(e,i){if(null===e)return null;if(0===i)return e;var a,t;if("object"!=typeof e)return e;if(m(e,g))a=new g;else if(m(e,w))a=new w;else if(m(e,x))a=new x(function(t,r){e.then(function(e){t(o(e,i-1))},function(e){r(o(e,i-1))})});else if(k.__isArray(e))a=[];else if(k.__isRegExp(e))a=new RegExp(e.source,j(e)),e.lastIndex&&(a.lastIndex=e.lastIndex);else if(k.__isDate(e))a=new Date(e.getTime());else{if(v&&O.isBuffer(e))return a=new O(e.length),e.copy(a),a;m(e,Error)?a=Object.create(e):void 0===p?(t=Object.getPrototypeOf(e),a=Object.create(t)):(a=Object.create(p),t=p)}if(h){var r=y.indexOf(e);if(-1!=r)return _[r];y.push(e),_.push(a)}for(var n in m(e,g)&&e.forEach(function(e,t){var r=o(t,i-1),n=o(e,i-1);a.set(r,n)}),m(e,w)&&e.forEach(function(e){var t=o(e,i-1);a.add(t)}),e){var s;t&&(s=Object.getOwnPropertyDescriptor(t,n)),s&&null==s.set||(a[n]=o(e[n],i-1))}if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;na;)i.call(e,n=o[a++])&&t.push(n);return t}},{"./_object-gops":113,"./_object-keys":116,"./_object-pie":117}],84:[function(e,t,r){var b=e("./_global"),y=e("./_core"),_=e("./_ctx"),v=e("./_hide"),m="prototype",g=function(e,t,r){var n,o,i,a=e&g.F,s=e&g.G,u=e&g.S,c=e&g.P,l=e&g.B,f=e&g.W,d=s?y:y[t]||(y[t]={}),h=d[m],p=s?b:u?b[t]:(b[t]||{})[m];for(n in s&&(r=t),r)(o=!a&&p&&void 0!==p[n])&&n in d||(i=o?p[n]:r[n],d[n]=s&&"function"!=typeof p[n]?r[n]:l&&o?_(i,b):f&&p[n]==i?function(n){var e=function(e,t,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(e);case 2:return new n(e,t)}return new n(e,t,r)}return n.apply(this,arguments)};return e[m]=n[m],e}(i):c&&"function"==typeof i?_(Function.call,i):i,c&&((d.virtual||(d.virtual={}))[n]=i,e&g.R&&h&&!h[n]&&v(h,n,i)))};g.F=1,g.G=2,g.S=4,g.P=8,g.B=16,g.W=32,g.U=64,g.R=128,t.exports=g},{"./_core":76,"./_ctx":78,"./_global":87,"./_hide":89}],85:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],86:[function(e,t,r){var d=e("./_ctx"),h=e("./_iter-call"),p=e("./_is-array-iter"),b=e("./_an-object"),y=e("./_to-length"),_=e("./core.get-iterator-method"),v={},m={};(r=t.exports=function(e,t,r,n,o){var i,a,s,u,c=o?function(){return e}:_(e),l=d(r,n,t?2:1),f=0;if("function"!=typeof c)throw TypeError(e+" is not iterable!");if(p(c)){for(i=y(e.length);fdocument.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l[c][a[r]];return l()};e.exports=Object.create||function(e,t){var r;return null!==e?(u[c]=o(e),r=new u,u[c]=null,r[s]=e):r=l(),void 0===t?r:i(r,t)}},{"./_an-object":72,"./_dom-create":81,"./_enum-bug-keys":82,"./_html":90,"./_object-dps":109,"./_shared-key":126}],108:[function(e,t,r){var n=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),a=Object.defineProperty;r.f=e("./_descriptors")?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},{"./_an-object":72,"./_descriptors":80,"./_ie8-dom-define":91,"./_to-primitive":136}],109:[function(e,t,r){var a=e("./_object-dp"),s=e("./_an-object"),u=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){s(e);for(var r,n=u(t),o=n.length,i=0;io;)a(n,r=t[o++])&&(~u(i,r)||i.push(r));return i}},{"./_array-includes":73,"./_has":88,"./_shared-key":126,"./_to-iobject":133}],116:[function(e,t,r){var n=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return n(e,o)}},{"./_enum-bug-keys":82,"./_object-keys-internal":115}],117:[function(e,t,r){r.f={}.propertyIsEnumerable},{}],118:[function(e,t,r){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],119:[function(e,t,r){var n=e("./_an-object"),o=e("./_is-object"),i=e("./_new-promise-capability");t.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},{"./_an-object":72,"./_is-object":96,"./_new-promise-capability":106}],120:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],121:[function(e,t,r){var o=e("./_hide");t.exports=function(e,t,r){for(var n in t)r&&e[n]?e[n]=t[n]:o(e,n,t[n]);return e}},{"./_hide":89}],122:[function(e,t,r){t.exports=e("./_hide")},{"./_hide":89}],123:[function(t,e,r){var n=t("./_is-object"),o=t("./_an-object"),i=function(e,t){if(o(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{(n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2))(e,[]),r=!(e instanceof Array)}catch(e){r=!0}return function(e,t){return i(e,t),r?e.__proto__=t:n(e,t),e}}({},!1):void 0),check:i}},{"./_an-object":72,"./_ctx":78,"./_is-object":96,"./_object-gopd":110}],124:[function(e,t,r){"use strict";var n=e("./_global"),o=e("./_core"),i=e("./_object-dp"),a=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t="function"==typeof o[e]?o[e]:n[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_core":76,"./_descriptors":80,"./_global":87,"./_object-dp":108,"./_wks":140}],125:[function(e,t,r){var n=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},{"./_has":88,"./_object-dp":108,"./_wks":140}],126:[function(e,t,r){var n=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return n[e]||(n[e]=o(e))}},{"./_shared":127,"./_uid":137}],127:[function(e,t,r){var n=e("./_global"),o="__core-js_shared__",i=n[o]||(n[o]={});t.exports=function(e){return i[e]||(i[e]={})}},{"./_global":87}],128:[function(e,t,r){var o=e("./_an-object"),i=e("./_a-function"),a=e("./_wks")("species");t.exports=function(e,t){var r,n=o(e).constructor;return void 0===n||null==(r=o(n)[a])?t:i(r)}},{"./_a-function":69,"./_an-object":72,"./_wks":140}],129:[function(e,t,r){var u=e("./_to-integer"),c=e("./_defined");t.exports=function(s){return function(e,t){var r,n,o=String(c(e)),i=u(t),a=o.length;return i<0||a<=i?s?"":void 0:(r=o.charCodeAt(i))<55296||56319r;)t.push(arguments[r++]);return _[++y]=function(){s("function"==typeof e?e:Function(e),t)},n(y),y},h=function(e){delete _[e]},"process"==e("./_cof")(f)?n=function(e){f.nextTick(a(m,e,1))}:b&&b.now?n=function(e){b.now(a(m,e,1))}:p?(i=(o=new p).port2,o.port1.onmessage=g,n=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",g,!1)):n=v in c("script")?function(e){u.appendChild(c("script"))[v]=function(){u.removeChild(this),m.call(e)}}:function(e){setTimeout(a(m,e,1),0)}),t.exports={set:d,clear:h}},{"./_cof":75,"./_ctx":78,"./_dom-create":81,"./_global":87,"./_html":90,"./_invoke":92}],131:[function(e,t,r){var n=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return(e=n(e))<0?o(e+t,0):i(e,t)}},{"./_to-integer":132}],132:[function(e,t,r){var n=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(0=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":70,"./_iter-define":99,"./_iter-step":101,"./_iterators":102,"./_to-iobject":133}],144:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{create:e("./_object-create")})},{"./_export":84,"./_object-create":107}],145:[function(e,t,r){var n=e("./_export");n(n.S+n.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":80,"./_export":84,"./_object-dp":108}],146:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{setPrototypeOf:e("./_set-proto").set})},{"./_export":84,"./_set-proto":123}],147:[function(e,t,r){},{}],148:[function(r,e,t){"use strict";var n,o,i,a,s=r("./_library"),u=r("./_global"),c=r("./_ctx"),l=r("./_classof"),f=r("./_export"),d=r("./_is-object"),h=r("./_a-function"),p=r("./_an-instance"),b=r("./_for-of"),y=r("./_species-constructor"),_=r("./_task").set,v=r("./_microtask")(),m=r("./_new-promise-capability"),g=r("./_perform"),w=r("./_promise-resolve"),x="Promise",k=u.TypeError,j=u.process,O=u[x],S="process"==l(j),E=function(){},C=o=m.f,A=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[r("./_wks")("species")]=function(e){e(E,E)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(E)instanceof t}catch(e){}}(),P=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},R=function(c,r){if(!c._n){c._n=!0;var n=c._c;v(function(){for(var s=c._v,u=1==c._s,e=0,t=function(e){var t,r,n=u?e.ok:e.fail,o=e.resolve,i=e.reject,a=e.domain;try{n?(u||(2==c._h&&I(c),c._h=1),!0===n?t=s:(a&&a.enter(),t=n(s),a&&a.exit()),t===e.promise?i(k("Promise-chain cycle")):(r=P(t))?r.call(t,o,i):o(t)):i(s)}catch(e){i(e)}};n.length>e;)t(n[e++]);c._c=[],c._n=!1,r&&!c._h&&D(c)})}},D=function(i){_.call(u,function(){var e,t,r,n=i._v,o=M(i);if(o&&(e=g(function(){S?j.emit("unhandledRejection",n,i):(t=u.onunhandledrejection)?t({promise:i,reason:n}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",n)}),i._h=S||M(i)?2:1),i._a=void 0,o&&e.e)throw e.v})},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},I=function(t){_.call(u,function(){var e;S?j.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},T=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},L=function(e){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw k("Promise can't be resolved itself");(r=P(e))?v(function(){var t={_w:n,_d:!1};try{r.call(e,c(L,t,1),c(T,t,1))}catch(e){T.call(t,e)}}):(n._v=e,n._s=1,R(n,!1))}catch(e){T.call({_w:n,_d:!1},e)}}};A||(O=function(e){p(this,O,x,"_h"),h(e),n.call(this);try{e(c(L,this,1),c(T,this,1))}catch(e){T.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r("./_redefine-all")(O.prototype,{then:function(e,t){var r=C(y(this,O));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=S?j.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&R(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n;this.promise=e,this.resolve=c(L,e,1),this.reject=c(T,e,1)},m.f=C=function(e){return e===O||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!A,{Promise:O}),r("./_set-to-string-tag")(O,x),r("./_set-species")(x),a=r("./_core")[x],f(f.S+f.F*!A,x,{reject:function(e){var t=C(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!A),x,{resolve:function(e){return w(s&&this===a?O:this,e)}}),f(f.S+f.F*!(A&&r("./_iter-detect")(function(e){O.all(e).catch(E)})),x,{all:function(e){var a=this,t=C(a),s=t.resolve,u=t.reject,r=g(function(){var n=[],o=0,i=1;b(e,!1,function(e){var t=o++,r=!1;n.push(void 0),i++,a.resolve(e).then(function(e){r||(r=!0,n[t]=e,--i||s(n))},u)}),--i||s(n)});return r.e&&u(r.v),t.promise},race:function(e){var t=this,r=C(t),n=r.reject,o=g(function(){b(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},{"./_a-function":69,"./_an-instance":71,"./_classof":74,"./_core":76,"./_ctx":78,"./_export":84,"./_for-of":86,"./_global":87,"./_is-object":96,"./_iter-detect":100,"./_library":103,"./_microtask":105,"./_new-promise-capability":106,"./_perform":118,"./_promise-resolve":119,"./_redefine-all":121,"./_set-species":124,"./_set-to-string-tag":125,"./_species-constructor":128,"./_task":130,"./_wks":140}],149:[function(e,t,r){"use strict";var n=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},{"./_iter-define":99,"./_string-at":129}],150:[function(e,t,r){"use strict";var n=e("./_global"),a=e("./_has"),o=e("./_descriptors"),i=e("./_export"),s=e("./_redefine"),u=e("./_meta").KEY,c=e("./_fails"),l=e("./_shared"),f=e("./_set-to-string-tag"),d=e("./_uid"),h=e("./_wks"),p=e("./_wks-ext"),b=e("./_wks-define"),y=e("./_enum-keys"),_=e("./_is-array"),v=e("./_an-object"),m=e("./_is-object"),g=e("./_to-iobject"),w=e("./_to-primitive"),x=e("./_property-desc"),k=e("./_object-create"),j=e("./_object-gopn-ext"),O=e("./_object-gopd"),S=e("./_object-dp"),E=e("./_object-keys"),C=O.f,A=S.f,P=j.f,R=n.Symbol,D=n.JSON,M=D&&D.stringify,I="prototype",T=h("_hidden"),L=h("toPrimitive"),F={}.propertyIsEnumerable,q=l("symbol-registry"),B=l("symbols"),N=l("op-symbols"),$=Object[I],U="function"==typeof R,z=n.QObject,V=!z||!z[I]||!z[I].findChild,G=o&&c(function(){return 7!=k(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=C($,t);n&&delete $[t],A(e,t,r),n&&e!==$&&A($,t,n)}:A,J=function(e){var t=B[e]=k(R[I]);return t._k=e,t},Q=U&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},K=function(e,t,r){return e===$&&K(N,t,r),v(e),t=w(t,!0),v(r),a(B,t)?(r.enumerable?(a(e,T)&&e[T][t]&&(e[T][t]=!1),r=k(r,{enumerable:x(0,!1)})):(a(e,T)||A(e,T,x(1,{})),e[T][t]=!0),G(e,t,r)):A(e,t,r)},H=function(e,t){v(e);for(var r,n=y(t=g(t)),o=0,i=n.length;oo;)a(B,t=r[o++])||t==T||t==u||n.push(t);return n},X=function(e){for(var t,r=e===$,n=P(r?N:g(e)),o=[],i=0;n.length>i;)!a(B,t=n[i++])||r&&!a($,t)||o.push(B[t]);return o};U||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=d(0te;)h(ee[te++]);for(var re=E(h.store),ne=0;re.length>ne;)b(re[ne++]);i(i.S+i.F*!U,"Symbol",{for:function(e){return a(q,e+="")?q[e]:q[e]=R(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in q)if(q[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!U,"Object",{create:function(e,t){return void 0===t?k(e):H(k(e),t)},defineProperty:K,defineProperties:H,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z,getOwnPropertySymbols:X}),D&&i(i.S+i.F*(!U||c(function(){var e=R();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=t=n[1],(m(t)||void 0!==e)&&!Q(e))return _(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Q(t))return t}),n[1]=t,M.apply(D,n)}}),R[I][L]||e("./_hide")(R[I],L,R[I].valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},{"./_an-object":72,"./_descriptors":80,"./_enum-keys":83,"./_export":84,"./_fails":85,"./_global":87,"./_has":88,"./_hide":89,"./_is-array":95,"./_is-object":96,"./_library":103,"./_meta":104,"./_object-create":107,"./_object-dp":108,"./_object-gopd":110,"./_object-gopn":112,"./_object-gopn-ext":111,"./_object-gops":113,"./_object-keys":116,"./_object-pie":117,"./_property-desc":120,"./_redefine":122,"./_set-to-string-tag":125,"./_shared":127,"./_to-iobject":133,"./_to-primitive":136,"./_uid":137,"./_wks":140,"./_wks-define":138,"./_wks-ext":139}],151:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_core"),i=e("./_global"),a=e("./_species-constructor"),s=e("./_promise-resolve");n(n.P+n.R,"Promise",{finally:function(t){var r=a(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return s(r,t()).then(function(){return e})}:t,e?function(e){return s(r,t()).then(function(){throw e})}:t)}})},{"./_core":76,"./_export":84,"./_global":87,"./_promise-resolve":119,"./_species-constructor":128}],152:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_new-promise-capability"),i=e("./_perform");n(n.S,"Promise",{try:function(e){var t=o.f(this),r=i(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},{"./_export":84,"./_new-promise-capability":106,"./_perform":118}],153:[function(e,t,r){e("./_wks-define")("asyncIterator")},{"./_wks-define":138}],154:[function(e,t,r){e("./_wks-define")("observable")},{"./_wks-define":138}],155:[function(e,t,r){e("./es6.array.iterator");for(var n=e("./_global"),o=e("./_hide"),i=e("./_iterators"),a=e("./_wks")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u>>0||(a.test(r)?16:10))}:n},{"./_global":193,"./_string-trim":261,"./_string-ws":262}],240:[function(e,t,r){arguments[4][118][0].apply(r,arguments)},{dup:118}],241:[function(e,t,r){arguments[4][119][0].apply(r,arguments)},{"./_an-object":160,"./_is-object":204,"./_new-promise-capability":221,dup:119}],242:[function(e,t,r){arguments[4][120][0].apply(r,arguments)},{dup:120}],243:[function(e,t,r){var o=e("./_redefine");t.exports=function(e,t,r){for(var n in t)o(e,n,t[n],r);return e}},{"./_redefine":244}],244:[function(e,t,r){var i=e("./_global"),a=e("./_hide"),s=e("./_has"),u=e("./_uid")("src"),n="toString",o=Function[n],c=(""+o).split(n);e("./_core").inspectSource=function(e){return o.call(e)},(t.exports=function(e,t,r,n){var o="function"==typeof r;o&&(s(r,"name")||a(r,"name",t)),e[t]!==r&&(o&&(s(r,u)||a(r,u,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=r:n?e[t]?e[t]=r:a(e,t,r):(delete e[t],a(e,t,r)))})(Function.prototype,n,function(){return"function"==typeof this&&this[u]||o.call(this)})},{"./_core":176,"./_global":193,"./_has":194,"./_hide":195,"./_uid":274}],245:[function(e,t,r){t.exports=function(t,r){var n=r===Object(r)?function(e){return r[e]}:r;return function(e){return String(e).replace(t,n)}}},{}],246:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],247:[function(e,t,r){"use strict";var n=e("./_export"),a=e("./_a-function"),s=e("./_ctx"),u=e("./_for-of");t.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,o,i=arguments[1];return a(this),(t=void 0!==i)&&a(i),null==e?new this:(r=[],t?(n=0,o=s(i,arguments[2],2),u(e,!1,function(e){r.push(o(e,n++))})):u(e,!1,r.push,r),new this(r))}})}},{"./_a-function":156,"./_ctx":178,"./_export":186,"./_for-of":192}],248:[function(e,t,r){"use strict";var n=e("./_export");t.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},{"./_export":186}],249:[function(e,t,r){arguments[4][123][0].apply(r,arguments)},{"./_an-object":160,"./_ctx":178,"./_is-object":204,"./_object-gopd":227,dup:123}],250:[function(e,t,r){"use strict";var n=e("./_global"),o=e("./_object-dp"),i=e("./_descriptors"),a=e("./_wks")("species");t.exports=function(e){var t=n[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},{"./_descriptors":182,"./_global":193,"./_object-dp":224,"./_wks":279}],251:[function(e,t,r){arguments[4][125][0].apply(r,arguments)},{"./_has":194,"./_object-dp":224,"./_wks":279,dup:125}],252:[function(e,t,r){arguments[4][126][0].apply(r,arguments)},{"./_shared":253,"./_uid":274,dup:126}],253:[function(e,t,r){arguments[4][127][0].apply(r,arguments)},{"./_global":193,dup:127}],254:[function(e,t,r){arguments[4][128][0].apply(r,arguments)},{"./_a-function":156,"./_an-object":160,"./_wks":279,dup:128}],255:[function(e,t,r){"use strict";var n=e("./_fails");t.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},{"./_fails":188}],256:[function(e,t,r){arguments[4][129][0].apply(r,arguments)},{"./_defined":181,"./_to-integer":266,dup:129}],257:[function(e,t,r){var n=e("./_is-regexp"),o=e("./_defined");t.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(e))}},{"./_defined":181,"./_is-regexp":205}],258:[function(e,t,r){var n=e("./_export"),o=e("./_fails"),a=e("./_defined"),s=/"/g,i=function(e,t,r,n){var o=String(a(e)),i="<"+t;return""!==r&&(i+=" "+r+'="'+String(n).replace(s,""")+'"'),i+">"+o+""};t.exports=function(t,e){var r={};r[t]=e(i),n(n.P+n.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||3u&&(c=c.slice(0,u)),n?c+o:o+c}},{"./_defined":181,"./_string-repeat":260,"./_to-length":268}],260:[function(e,t,r){"use strict";var o=e("./_to-integer"),i=e("./_defined");t.exports=function(e){var t=String(i(this)),r="",n=o(e);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;0>>=1)&&(t+=t))1&n&&(r+=t);return r}},{"./_defined":181,"./_to-integer":266}],261:[function(e,t,r){var a=e("./_export"),n=e("./_defined"),s=e("./_fails"),u=e("./_string-ws"),o="["+u+"]",i=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),l=function(e,t,r){var n={},o=s(function(){return!!u[e]()||"​…"!="​…"[e]()}),i=n[e]=o?t(f):u[e];r&&(n[r]=i),a(a.P+a.F*o,"String",n)},f=l.trim=function(e,t){return e=String(n(e)),1&t&&(e=e.replace(i,"")),2&t&&(e=e.replace(c,"")),e};t.exports=l},{"./_defined":181,"./_export":186,"./_fails":188,"./_string-ws":262}],262:[function(e,t,r){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],263:[function(e,t,r){arguments[4][130][0].apply(r,arguments)},{"./_cof":171,"./_ctx":178,"./_dom-create":183,"./_global":193,"./_html":196,"./_invoke":199,dup:130}],264:[function(e,t,r){arguments[4][131][0].apply(r,arguments)},{"./_to-integer":266,dup:131}],265:[function(e,t,r){var n=e("./_to-integer"),o=e("./_to-length");t.exports=function(e){if(void 0===e)return 0;var t=n(e),r=o(t);if(t!==r)throw RangeError("Wrong length!");return r}},{"./_to-integer":266,"./_to-length":268}],266:[function(e,t,r){arguments[4][132][0].apply(r,arguments)},{dup:132}],267:[function(e,t,r){arguments[4][133][0].apply(r,arguments)},{"./_defined":181,"./_iobject":200,dup:133}],268:[function(e,t,r){arguments[4][134][0].apply(r,arguments)},{"./_to-integer":266,dup:134}],269:[function(e,t,r){arguments[4][135][0].apply(r,arguments)},{"./_defined":181,dup:135}],270:[function(e,t,r){arguments[4][136][0].apply(r,arguments)},{"./_is-object":204,dup:136}],271:[function(e,t,r){"use strict";if(e("./_descriptors")){var _=e("./_library"),v=e("./_global"),m=e("./_fails"),g=e("./_export"),w=e("./_typed"),n=e("./_typed-buffer"),d=e("./_ctx"),x=e("./_an-instance"),o=e("./_property-desc"),k=e("./_hide"),i=e("./_redefine-all"),a=e("./_to-integer"),j=e("./_to-length"),O=e("./_to-index"),s=e("./_to-absolute-index"),u=e("./_to-primitive"),c=e("./_has"),S=e("./_classof"),E=e("./_is-object"),h=e("./_to-object"),p=e("./_is-array-iter"),C=e("./_object-create"),A=e("./_object-gpo"),P=e("./_object-gopn").f,b=e("./core.get-iterator-method"),l=e("./_uid"),f=e("./_wks"),y=e("./_array-methods"),R=e("./_array-includes"),D=e("./_species-constructor"),M=e("./es6.array.iterator"),I=e("./_iterators"),T=e("./_iter-detect"),L=e("./_set-species"),F=e("./_array-fill"),q=e("./_array-copy-within"),B=e("./_object-dp"),N=e("./_object-gopd"),$=B.f,U=N.f,z=v.RangeError,V=v.TypeError,G=v.Uint8Array,J="ArrayBuffer",Q="Shared"+J,K="BYTES_PER_ELEMENT",H="prototype",W=Array[H],Y=n.ArrayBuffer,Z=n.DataView,X=y(0),ee=y(2),te=y(3),re=y(4),ne=y(5),oe=y(6),ie=R(!0),ae=R(!1),se=M.values,ue=M.keys,ce=M.entries,le=W.lastIndexOf,fe=W.reduce,de=W.reduceRight,he=W.join,pe=W.sort,be=W.slice,ye=W.toString,_e=W.toLocaleString,ve=f("iterator"),me=f("toStringTag"),ge=l("typed_constructor"),we=l("def_constructor"),xe=w.CONSTR,ke=w.TYPED,je=w.VIEW,Oe="Wrong length!",Se=y(1,function(e,t){return Re(D(e,e[we]),t)}),Ee=m(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),Ce=!!G&&!!G[H].set&&m(function(){new G(1).set({})}),Ae=function(e,t){var r=a(e);if(r<0||r%t)throw z("Wrong offset!");return r},Pe=function(e){if(E(e)&&ke in e)return e;throw V(e+" is not a typed array!")},Re=function(e,t){if(!(E(e)&&ge in e))throw V("It is not a typed array constructor!");return new e(t)},De=function(e,t){return Me(D(e,e[we]),t)},Me=function(e,t){for(var r=0,n=t.length,o=Re(e,n);r>1,l=23===t?A(2,-24)-A(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=C(e))!=e||e===S?(o=e!=e?1:0,n=u):(n=P(R(e)/D),e*(i=A(2,-n))<1&&(n--,i*=2),2<=(e+=1<=n+c?l/i:l*A(2,1-c))*i&&(n++,i/=2),u<=n+c?(o=0,n=u):1<=n+c?(o=(e*i-1)*A(2,t),n+=c):(o=e*A(2,c-1)*A(2,t),n=0));8<=t;a[f++]=255&o,o/=256,t-=8);for(n=n<>1,s=o-7,u=r-1,c=e[u--],l=127&c;for(c>>=7;0>=-s,s+=t;0>8&255]}function z(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function V(e){return q(e,52,8)}function G(e){return q(e,23,4)}function J(e,t,r){b(e[g],t,{get:function(){return this[r]}})}function Q(e,t,r,n){var o=h(+r);if(o+t>e[L])throw O(w);var i=e[T]._b,a=o+e[F],s=i.slice(a,a+t);return n?s:s.reverse()}function K(e,t,r,n,o,i){var a=h(+r);if(a+t>e[L])throw O(w);for(var s=e[T]._b,u=a+e[F],c=n(+o),l=0;lZ;)(H=Y[Z++])in x||s(x,H,E[H]);i||(W.constructor=x)}var X=new k(new x(2)),ee=k[g].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||u(k[g],{setInt8:function(e,t){ee.call(this,e,t<<24>>24)},setUint8:function(e,t){ee.call(this,e,t<<24>>24)}},!0)}else x=function(e){l(this,x,v);var t=h(e);this._b=y.call(new Array(t),0),this[L]=t},k=function(e,t,r){l(this,k,m),l(e,x,m);var n=e[L],o=f(t);if(o<0||n>24},getUint8:function(e){return Q(this,1,e)[0]},getInt16:function(e){var t=Q(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Q(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return N(Q(this,4,e,arguments[1]))},getUint32:function(e){return N(Q(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return B(Q(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return B(Q(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,$,t)},setUint8:function(e,t){K(this,1,e,$,t)},setInt16:function(e,t){K(this,2,e,U,t,arguments[2])},setUint16:function(e,t){K(this,2,e,U,t,arguments[2])},setInt32:function(e,t){K(this,4,e,z,t,arguments[2])},setUint32:function(e,t){K(this,4,e,z,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,V,t,arguments[2])}});_(x,v),_(k,m),s(k[g],a.VIEW,!0),r[v]=x,r[m]=k},{"./_an-instance":159,"./_array-fill":162,"./_descriptors":182,"./_fails":188,"./_global":193,"./_hide":195,"./_library":212,"./_object-dp":224,"./_object-gopn":229,"./_redefine-all":243,"./_set-to-string-tag":251,"./_to-index":265,"./_to-integer":266,"./_to-length":268,"./_typed":273}],273:[function(e,t,r){for(var n,o=e("./_global"),i=e("./_hide"),a=e("./_uid"),s=a("typed_array"),u=a("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(n=o[d[f++]])?(i(n.prototype,s,!0),i(n.prototype,u,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},{"./_global":193,"./_hide":195,"./_uid":274}],274:[function(e,t,r){arguments[4][137][0].apply(r,arguments)},{dup:137}],275:[function(e,t,r){var n=e("./_global").navigator;t.exports=n&&n.userAgent||""},{"./_global":193}],276:[function(e,t,r){var n=e("./_is-object");t.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},{"./_is-object":204}],277:[function(e,t,r){arguments[4][138][0].apply(r,arguments)},{"./_core":176,"./_global":193,"./_library":212,"./_object-dp":224,"./_wks-ext":278,dup:138}],278:[function(e,t,r){arguments[4][139][0].apply(r,arguments)},{"./_wks":279,dup:139}],279:[function(e,t,r){arguments[4][140][0].apply(r,arguments)},{"./_global":193,"./_shared":253,"./_uid":274,dup:140}],280:[function(e,t,r){arguments[4][141][0].apply(r,arguments)},{"./_classof":170,"./_core":176,"./_iterators":211,"./_wks":279,dup:141}],281:[function(e,t,r){var n=e("./_export"),o=e("./_replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function(e){return o(e)}})},{"./_export":186,"./_replacer":245}],282:[function(e,t,r){var n=e("./_export");n(n.P,"Array",{copyWithin:e("./_array-copy-within")}),e("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":158,"./_array-copy-within":161,"./_export":186}],283:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(4);n(n.P+n.F*!e("./_strict-method")([].every,!0),"Array",{every:function(e){return o(this,e,arguments[1])}})},{"./_array-methods":165,"./_export":186,"./_strict-method":255}],284:[function(e,t,r){var n=e("./_export");n(n.P,"Array",{fill:e("./_array-fill")}),e("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":158,"./_array-fill":162,"./_export":186}],285:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(2);n(n.P+n.F*!e("./_strict-method")([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},{"./_array-methods":165,"./_export":186,"./_strict-method":255}],286:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(e){return o(this,e,1>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},{"./_export":186}],317:[function(e,t,r){var n=e("./_export"),o=Math.exp;n(n.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},{"./_export":186}],318:[function(e,t,r){var n=e("./_export"),o=e("./_math-expm1");n(n.S+n.F*(o!=Math.expm1),"Math",{expm1:o})},{"./_export":186,"./_math-expm1":213}],319:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{fround:e("./_math-fround")})},{"./_export":186,"./_math-fround":214}],320:[function(e,t,r){var n=e("./_export"),u=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,i=0,a=arguments.length,s=0;i>>16)*i+o*(65535&n>>>16)<<16>>>0)}})},{"./_export":186,"./_fails":188}],322:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},{"./_export":186}],323:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log1p:e("./_math-log1p")})},{"./_export":186,"./_math-log1p":215}],324:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},{"./_export":186}],325:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{sign:e("./_math-sign")})},{"./_export":186,"./_math-sign":217}],326:[function(e,t,r){var n=e("./_export"),o=e("./_math-expm1"),i=Math.exp;n(n.S+n.F*e("./_fails")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},{"./_export":186,"./_fails":188,"./_math-expm1":213}],327:[function(e,t,r){var n=e("./_export"),o=e("./_math-expm1"),i=Math.exp;n(n.S,"Math",{tanh:function(e){var t=o(e=+e),r=o(-e);return t==1/0?1:r==1/0?-1:(t-r)/(i(e)+i(-e))}})},{"./_export":186,"./_math-expm1":213}],328:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{trunc:function(e){return(0x;x++)o(b,g=w[x])&&!o(p,g)&&f(p,g,c(b,g));(p.prototype=y).constructor=p,e("./_redefine")(n,h,p)}},{"./_cof":171,"./_descriptors":182,"./_fails":188,"./_global":193,"./_has":194,"./_inherit-if-required":198,"./_object-create":223,"./_object-dp":224,"./_object-gopd":227,"./_object-gopn":229,"./_redefine":244,"./_string-trim":261,"./_to-primitive":270}],330:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":186}],331:[function(e,t,r){var n=e("./_export"),o=e("./_global").isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},{"./_export":186,"./_global":193}],332:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{isInteger:e("./_is-integer")})},{"./_export":186,"./_is-integer":203}],333:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{isNaN:function(e){return e!=e}})},{"./_export":186}],334:[function(e,t,r){var n=e("./_export"),o=e("./_is-integer"),i=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},{"./_export":186,"./_is-integer":203}],335:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":186}],336:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":186}],337:[function(e,t,r){var n=e("./_export"),o=e("./_parse-float");n(n.S+n.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},{"./_export":186,"./_parse-float":238}],338:[function(e,t,r){var n=e("./_export"),o=e("./_parse-int");n(n.S+n.F*(Number.parseInt!=o),"Number",{parseInt:o})},{"./_export":186,"./_parse-int":239}],339:[function(e,t,r){"use strict";var n=e("./_export"),c=e("./_to-integer"),l=e("./_a-number-value"),f=e("./_string-repeat"),o=1..toFixed,i=Math.floor,a=[0,0,0,0,0,0],d="Number.toFixed: incorrect invocation!",h=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*a[r],a[r]=n%1e7,n=i(n/1e7)},p=function(e){for(var t=6,r=0;0<=--t;)r+=a[t],a[t]=i(r/e),r=r%e*1e7},b=function(){for(var e=6,t="";0<=--e;)if(""!==t||0===e||0!==a[e]){var r=String(a[e]);t=""===t?r:t+f.call("0",7-r.length)+r}return t},y=function(e,t,r){return 0===t?r:t%2==1?y(e,t-1,r*e):y(e*e,t/2,r)};n(n.P+n.F*(!!o&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e("./_fails")(function(){o.call({})})),"Number",{toFixed:function(e){var t,r,n,o,i=l(this,d),a=c(e),s="",u="0";if(a<0||20=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new i(e)}})},{"./_an-object":160,"./_export":186,"./_iter-create":207}],366:[function(e,t,r){var n=e("./_object-gopd"),o=e("./_export"),i=e("./_an-object");o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(i(e),t)}})},{"./_an-object":160,"./_export":186,"./_object-gopd":227}],367:[function(e,t,r){var n=e("./_export"),o=e("./_object-gpo"),i=e("./_an-object");n(n.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},{"./_an-object":160,"./_export":186,"./_object-gpo":231}],368:[function(e,t,r){var a=e("./_object-gopd"),s=e("./_object-gpo"),u=e("./_has"),n=e("./_export"),c=e("./_is-object"),l=e("./_an-object");n(n.S,"Reflect",{get:function e(t,r){var n,o,i=arguments.length<3?t:arguments[2];return l(t)===i?t[r]:(n=a.f(t,r))?u(n,"value")?n.value:void 0!==n.get?n.get.call(i):void 0:c(o=s(t))?e(o,r,i):void 0}})},{"./_an-object":160,"./_export":186,"./_has":194,"./_is-object":204,"./_object-gopd":227,"./_object-gpo":231}],369:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{has:function(e,t){return t in e}})},{"./_export":186}],370:[function(e,t,r){var n=e("./_export"),o=e("./_an-object"),i=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},{"./_an-object":160,"./_export":186}],371:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{ownKeys:e("./_own-keys")})},{"./_export":186,"./_own-keys":237}],372:[function(e,t,r){var n=e("./_export"),o=e("./_an-object"),i=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(e){return!1}}})},{"./_an-object":160,"./_export":186}],373:[function(e,t,r){var n=e("./_export"),o=e("./_set-proto");o&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},{"./_export":186,"./_set-proto":249}],374:[function(e,t,r){var u=e("./_object-dp"),c=e("./_object-gopd"),l=e("./_object-gpo"),f=e("./_has"),n=e("./_export"),d=e("./_property-desc"),h=e("./_an-object"),p=e("./_is-object");n(n.S,"Reflect",{set:function e(t,r,n){var o,i,a=arguments.length<4?t:arguments[3],s=c.f(h(t),r);if(!s){if(p(i=l(t)))return e(i,r,n,a);s=d(0)}return f(s,"value")?!(!1===s.writable||!p(a)||((o=c.f(a,r)||d(0)).value=n,u.f(a,r,o),0)):void 0!==s.set&&(s.set.call(a,n),!0)}})},{"./_an-object":160,"./_export":186,"./_has":194,"./_is-object":204,"./_object-dp":224,"./_object-gopd":227,"./_object-gpo":231,"./_property-desc":242}],375:[function(e,t,r){var n=e("./_global"),i=e("./_inherit-if-required"),o=e("./_object-dp").f,a=e("./_object-gopn").f,s=e("./_is-regexp"),u=e("./_flags"),c=n.RegExp,l=c,f=c.prototype,d=/a/g,h=/a/g,p=new c(d)!==d;if(e("./_descriptors")&&(!p||e("./_fails")(function(){return h[e("./_wks")("match")]=!1,c(d)!=d||c(h)==h||"/a/i"!=c(d,"i")}))){c=function(e,t){var r=this instanceof c,n=s(e),o=void 0===t;return!r&&n&&e.constructor===c&&o?e:i(p?new l(n&&!o?e.source:e,t):l((n=e instanceof c)?e.source:e,n&&o?u.call(e):t),r?this:f,c)};for(var b=function(t){t in c||o(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},y=a(l),_=0;y.length>_;)b(y[_++]);(f.constructor=c).prototype=f,e("./_redefine")(n,"RegExp",c)}e("./_set-species")("RegExp")},{"./_descriptors":182,"./_fails":188,"./_flags":190,"./_global":193,"./_inherit-if-required":198,"./_is-regexp":205,"./_object-dp":224,"./_object-gopn":229,"./_redefine":244,"./_set-species":250,"./_wks":279}],376:[function(e,t,r){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":182,"./_flags":190,"./_object-dp":224}],377:[function(e,t,r){e("./_fix-re-wks")("match",1,function(n,o,e){return[function(e){"use strict";var t=n(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,t):new RegExp(e)[o](String(t))},e]})},{"./_fix-re-wks":189}],378:[function(e,t,r){e("./_fix-re-wks")("replace",2,function(o,i,a){return[function(e,t){"use strict";var r=o(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,r,t):a.call(String(r),e,t)},a]})},{"./_fix-re-wks":189}],379:[function(e,t,r){e("./_fix-re-wks")("search",1,function(n,o,e){return[function(e){"use strict";var t=n(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,t):new RegExp(e)[o](String(t))},e]})},{"./_fix-re-wks":189}],380:[function(t,e,r){t("./_fix-re-wks")("split",2,function(o,i,a){"use strict";var h=t("./_is-regexp"),p=a,b=[].push,e="split",y="length";if("c"=="abbc"[e](/(b)*/)[1]||4!="test"[e](/(?:)/,-1)[y]||2!="ab"[e](/(?:ab)*/)[y]||4!="."[e](/(.?)(.?)/)[y]||1<"."[e](/()()/)[y]||""[e](/.?/)[y]){var _=void 0===/()??/.exec("")[1];a=function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!h(e))return p.call(r,e,t);var n,o,i,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=void 0===t?4294967295:t>>>0,d=new RegExp(e.source,c+"g");for(_||(n=new RegExp("^"+d.source+"$(?!\\s)",c));(o=d.exec(r))&&!(l<(i=o.index+o[0][y])&&(u.push(r.slice(l,o.index)),!_&&1=f));)d.lastIndex===o.index&&d.lastIndex++;return l===r[y]?!a&&d.test("")||u.push(""):u.push(r.slice(l)),u[y]>f?u.slice(0,f):u}}else"0"[e](void 0,0)[y]&&(a=function(e,t){return void 0===e&&0===t?[]:p.call(this,e,t)});return[function(e,t){var r=o(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,r,t):a.call(String(r),e,t)},a]})},{"./_fix-re-wks":189,"./_is-regexp":205}],381:[function(t,e,r){"use strict";t("./es6.regexp.flags");var n=t("./_an-object"),o=t("./_flags"),i=t("./_descriptors"),a="toString",s=/./[a],u=function(e){t("./_redefine")(RegExp.prototype,a,e,!0)};t("./_fails")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)}):s.name!=a&&u(function(){return s.call(this)})},{"./_an-object":160,"./_descriptors":182,"./_fails":188,"./_flags":190,"./_redefine":244,"./es6.regexp.flags":376}],382:[function(e,t,r){"use strict";var n=e("./_collection-strong"),o=e("./_validate-collection");t.exports=e("./_collection")("Set",function(e){return function(){return e(this,0>10),t%1024+56320))}return r.join("")}})},{"./_export":186,"./_to-absolute-index":264}],393:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_string-context");n(n.P+n.F*e("./_fails-is-regexp")("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,1>>0,i=r>>>0;return(t>>>0)+(n>>>0)+((o&i|(o|i)&~(o+i>>>0))>>>31)|0}})},{"./_export":186}],433:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{imulh:function(e,t){var r=+e,n=+t,o=65535&r,i=65535&n,a=r>>16,s=n>>16,u=(a*i>>>0)+(o*i>>>16);return a*s+(u>>16)+((o*s>>>0)+(65535&u)>>16)}})},{"./_export":186}],434:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{isubh:function(e,t,r,n){var o=e>>>0,i=r>>>0;return(t>>>0)-(n>>>0)-((~o&i|~(o^i)&o-i>>>0)>>>31)|0}})},{"./_export":186}],435:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},{"./_export":186}],436:[function(e,t,r){var n=e("./_export"),o=Math.PI/180;n(n.S,"Math",{radians:function(e){return e*o}})},{"./_export":186}],437:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{scale:e("./_math-scale")})},{"./_export":186,"./_math-scale":216}],438:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:0>>16,s=n>>>16,u=(a*i>>>0)+(o*i>>>16);return a*s+(u>>>16)+((o*s>>>0)+(65535&u)>>>16)}})},{"./_export":186}],440:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_to-object"),i=e("./_a-function"),a=e("./_object-dp");e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__defineGetter__:function(e,t){a.f(o(this),e,{get:i(t),enumerable:!0,configurable:!0})}})},{"./_a-function":156,"./_descriptors":182,"./_export":186,"./_object-dp":224,"./_object-forced-pam":226,"./_to-object":269}],441:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_to-object"),i=e("./_a-function"),a=e("./_object-dp");e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__defineSetter__:function(e,t){a.f(o(this),e,{set:i(t),enumerable:!0,configurable:!0})}})},{"./_a-function":156,"./_descriptors":182,"./_export":186,"./_object-dp":224,"./_object-forced-pam":226,"./_to-object":269}],442:[function(e,t,r){var n=e("./_export"),o=e("./_object-to-array")(!0);n(n.S,"Object",{entries:function(e){return o(e)}})},{"./_export":186,"./_object-to-array":236}],443:[function(e,t,r){var n=e("./_export"),u=e("./_own-keys"),c=e("./_to-iobject"),l=e("./_object-gopd"),f=e("./_create-property");n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=c(e),o=l.f,i=u(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&f(a,t,r);return a}})},{"./_create-property":177,"./_export":186,"./_object-gopd":227,"./_own-keys":237,"./_to-iobject":267}],444:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_to-object"),i=e("./_to-primitive"),a=e("./_object-gpo"),s=e("./_object-gopd").f;e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__lookupGetter__:function(e){var t,r=o(this),n=i(e,!0);do{if(t=s(r,n))return t.get}while(r=a(r))}})},{"./_descriptors":182,"./_export":186,"./_object-forced-pam":226,"./_object-gopd":227,"./_object-gpo":231,"./_to-object":269,"./_to-primitive":270}],445:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_to-object"),i=e("./_to-primitive"),a=e("./_object-gpo"),s=e("./_object-gopd").f;e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__lookupSetter__:function(e){var t,r=o(this),n=i(e,!0);do{if(t=s(r,n))return t.set}while(r=a(r))}})},{"./_descriptors":182,"./_export":186,"./_object-forced-pam":226,"./_object-gopd":227,"./_object-gpo":231,"./_to-object":269,"./_to-primitive":270}],446:[function(e,t,r){var n=e("./_export"),o=e("./_object-to-array")(!1);n(n.S,"Object",{values:function(e){return o(e)}})},{"./_export":186,"./_object-to-array":236}],447:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_global"),a=e("./_core"),o=e("./_microtask")(),s=e("./_wks")("observable"),u=e("./_a-function"),c=e("./_an-object"),l=e("./_an-instance"),f=e("./_redefine-all"),d=e("./_hide"),h=e("./_for-of"),p=h.RETURN,b=function(e){return null==e?void 0:u(e)},y=function(e){var t=e._c;t&&(e._c=void 0,t())},_=function(e){return void 0===e._o},v=function(e){_(e)||(e._o=void 0,y(e))},m=function(t,e){c(t),this._c=void 0,this._o=t,t=new g(this);try{var r=e(t),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:u(r),this._c=r)}catch(e){return void t.error(e)}_(this)&&y(this)};m.prototype=f({},{unsubscribe:function(){v(this)}});var g=function(e){this._s=e};g.prototype=f({},{next:function(e){var t=this._s;if(!_(t)){var r=t._o;try{var n=b(r.next);if(n)return n.call(r,e)}catch(e){try{v(t)}finally{throw e}}}},error:function(e){var t=this._s;if(_(t))throw e;var r=t._o;t._o=void 0;try{var n=b(r.error);if(!n)throw e;e=n.call(r,e)}catch(e){try{y(t)}finally{throw e}}return y(t),e},complete:function(e){var t=this._s;if(!_(t)){var r=t._o;t._o=void 0;try{var n=b(r.complete);e=n?n.call(r,e):void 0}catch(e){try{y(t)}finally{throw e}}return y(t),e}}});var w=function(e){l(this,w,"Observable","_f")._f=u(e)};f(w.prototype,{subscribe:function(e){return new m(e,this._f)},forEach:function(n){var o=this;return new(a.Promise||i.Promise)(function(e,t){u(n);var r=o.subscribe({next:function(e){try{return n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e})})}}),f(w,{from:function(e){var t="function"==typeof this?this:w,r=b(c(e)[s]);if(r){var n=c(r.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var r=!1;return o(function(){if(!r){try{if(h(e,!1,function(e){if(t.next(e),r)return p})===p)return}catch(e){if(r)throw e;return void t.error(e)}t.complete()}}),function(){r=!0}})},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e>>8^255&o^99,c[r]=o;var i=e[l[o]=r],a=e[i],s=e[a],u=257*e[o]^16843008*o;f[r]=u<<24|u>>>8,d[r]=u<<16|u>>>16,h[r]=u<<8|u>>>24,p[r]=u;u=16843009*s^65537*a^257*i^16843008*r;b[o]=u<<24|u>>>8,y[o]=u<<16|u>>>16,_[o]=u<<8|u>>>24,v[o]=u,r?(r=i^e[e[e[s^i]]],n^=e[e[n]]):r=n=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],n=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],i=0;i>>24]<<24|c[a>>>16&255]<<16|c[a>>>8&255]<<8|c[255&a]):(a=c[(a=a<<8|a>>>24)>>>24]<<24|c[a>>>16&255]<<16|c[a>>>8&255]<<8|c[255&a],a^=m[i/r|0]<<24),o[i]=o[i-r]^a}for(var s=this._invKeySchedule=[],u=0;u>>24]]^y[c[a>>>16&255]]^_[c[a>>>8&255]]^v[c[255&a]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,f,d,h,p,c)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,b,y,_,v,l);r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var u=this._nRounds,c=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],d=e[t+3]^r[3],h=4,p=1;p>>24]^o[l>>>16&255]^i[f>>>8&255]^a[255&d]^r[h++],y=n[l>>>24]^o[f>>>16&255]^i[d>>>8&255]^a[255&c]^r[h++],_=n[f>>>24]^o[d>>>16&255]^i[c>>>8&255]^a[255&l]^r[h++],v=n[d>>>24]^o[c>>>16&255]^i[l>>>8&255]^a[255&f]^r[h++];c=b,l=y,f=_,d=v}b=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^r[h++],y=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^r[h++],_=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^r[h++],v=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[h++];e[t]=b,e[t+1]=y,e[t+2]=_,e[t+3]=v},keySize:8});e.AES=t._createHelper(n)}(),o.AES},"object"==typeof r?t.exports=r=o(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],o):o(n.CryptoJS)},{"./cipher-core":480,"./core":481,"./enc-base64":482,"./evpkdf":484,"./md5":486}],480:[function(e,t,r){var n,o;n=this,o=function(e){var a,t,r,n,u,o,i,s,c,l,f,d,h,p,b,y,_,v,m;e.lib.Cipher||(r=(t=e).lib,n=r.Base,u=r.WordArray,o=r.BufferedBlockAlgorithm,(i=t.enc).Utf8,s=i.Base64,c=t.algo.EvpKDF,l=r.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function o(e){return"string"==typeof e?m:_}return function(n){return{encrypt:function(e,t,r){return o(t).encrypt(n,e,t,r)},decrypt:function(e,t,r){return o(t).decrypt(n,e,t,r)}}}}()}),r.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),f=t.mode={},d=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=f.CBC=function(){var e=d.extend();function i(e,t,r){var n=this._iv;if(n){var o=n;this._iv=a}else o=this._prevBlock;for(var i=0;i>>2];e.sigBytes-=t}},r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:h,padding:p}),reset:function(){l.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{n=r.createDecryptor;this._minBufferSize=1}this._mode=n.call(r,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{t=this._process(!0);e.unpad(t)}return t},blockSize:4}),b=r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),y=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=u.create([1398893684,1701076831]).concat(r).concat(t);else n=t;return n.toString(s)},parse:function(e){var t=s.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=u.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return b.create({ciphertext:t,salt:n})}},_=r.SerializableCipher=n.extend({cfg:n.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),a=o.cfg;return b.create({ciphertext:i,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(t.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=u.random(8));var o=c.create({keySize:t+r}).compute(e,n),i=u.create(o.words.slice(t),4*r);return o.sigBytes=4*t,b.create({key:o,iv:i,salt:n})}},m=r.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:v}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=o.iv;var i=_.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=o.iv,_.decrypt.call(this,e,t,o.key,n)}}))},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":481}],481:[function(e,t,r){var n,o;n=this,o=function(){var l,r,e,t,n,f,o,i,a,s,u,c,d=d||(l=Math,r=Object.create||function(){function r(){}return function(e){var t;return r.prototype=e,t=new r,r.prototype=null,t}}(),t=(e={}).lib={},n=t.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),(t.init.prototype=t).$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},f=t.WordArray=n.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||i).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[n+i>>>2]|=a<<24-(n+i)%4*8}else for(i=0;i>>2]=r[i>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=l.ceil(t/4)},clone:function(){var e=n.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t,r=[],n=function(t){t=t;var r=987654321,n=4294967295;return function(){var e=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return e/=4294967296,(e+=.5)*(.5>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new f.init(r,t/2)}},a=o.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new f.init(r,t)}},s=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(a.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return a.parse(unescape(encodeURIComponent(e)))}},u=t.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=s.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,n=t.sigBytes,o=this.blockSize,i=n/(4*o),a=(i=e?l.ceil(i):l.max((0|i)-this._minBufferSize,0))*o,s=l.min(4*a,n);if(a){for(var u=0;u>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o>>6-i%4*2;n[o>>>2]|=(a|s)<<24-o%4*8,o++}return u.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":481}],483:[function(e,t,r){var n,o;n=this,o=function(e){return e.enc.Utf8},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":481}],484:[function(e,t,r){var n,o;n=this,o=function(e){var t,r,n,l,o,i,a;return r=(t=e).lib,n=r.Base,l=r.WordArray,o=t.algo,i=o.MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),o=l.create(),i=o.words,a=r.keySize,s=r.iterations;i.lengthn&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,s=i.words,u=0;u>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],s=e[t+1],u=e[t+2],c=e[t+3],l=e[t+4],f=e[t+5],d=e[t+6],h=e[t+7],p=e[t+8],b=e[t+9],y=e[t+10],_=e[t+11],v=e[t+12],m=e[t+13],g=e[t+14],w=e[t+15],x=i[0],k=i[1],j=i[2],O=i[3];k=P(k=P(k=P(k=P(k=A(k=A(k=A(k=A(k=C(k=C(k=C(k=C(k=E(k=E(k=E(k=E(k,j=E(j,O=E(O,x=E(x,k,j,O,a,7,S[0]),k,j,s,12,S[1]),x,k,u,17,S[2]),O,x,c,22,S[3]),j=E(j,O=E(O,x=E(x,k,j,O,l,7,S[4]),k,j,f,12,S[5]),x,k,d,17,S[6]),O,x,h,22,S[7]),j=E(j,O=E(O,x=E(x,k,j,O,p,7,S[8]),k,j,b,12,S[9]),x,k,y,17,S[10]),O,x,_,22,S[11]),j=E(j,O=E(O,x=E(x,k,j,O,v,7,S[12]),k,j,m,12,S[13]),x,k,g,17,S[14]),O,x,w,22,S[15]),j=C(j,O=C(O,x=C(x,k,j,O,s,5,S[16]),k,j,d,9,S[17]),x,k,_,14,S[18]),O,x,a,20,S[19]),j=C(j,O=C(O,x=C(x,k,j,O,f,5,S[20]),k,j,y,9,S[21]),x,k,w,14,S[22]),O,x,l,20,S[23]),j=C(j,O=C(O,x=C(x,k,j,O,b,5,S[24]),k,j,g,9,S[25]),x,k,c,14,S[26]),O,x,p,20,S[27]),j=C(j,O=C(O,x=C(x,k,j,O,m,5,S[28]),k,j,u,9,S[29]),x,k,h,14,S[30]),O,x,v,20,S[31]),j=A(j,O=A(O,x=A(x,k,j,O,f,4,S[32]),k,j,p,11,S[33]),x,k,_,16,S[34]),O,x,g,23,S[35]),j=A(j,O=A(O,x=A(x,k,j,O,s,4,S[36]),k,j,l,11,S[37]),x,k,h,16,S[38]),O,x,y,23,S[39]),j=A(j,O=A(O,x=A(x,k,j,O,m,4,S[40]),k,j,a,11,S[41]),x,k,c,16,S[42]),O,x,d,23,S[43]),j=A(j,O=A(O,x=A(x,k,j,O,b,4,S[44]),k,j,v,11,S[45]),x,k,w,16,S[46]),O,x,u,23,S[47]),j=P(j,O=P(O,x=P(x,k,j,O,a,6,S[48]),k,j,h,10,S[49]),x,k,g,15,S[50]),O,x,f,21,S[51]),j=P(j,O=P(O,x=P(x,k,j,O,v,6,S[52]),k,j,c,10,S[53]),x,k,y,15,S[54]),O,x,s,21,S[55]),j=P(j,O=P(O,x=P(x,k,j,O,p,6,S[56]),k,j,w,10,S[57]),x,k,d,15,S[58]),O,x,m,21,S[59]),j=P(j,O=P(O,x=P(x,k,j,O,l,6,S[60]),k,j,_,10,S[61]),x,k,u,15,S[62]),O,x,b,21,S[63]),i[0]=i[0]+x|0,i[1]=i[1]+k|0,i[2]=i[2]+j|0,i[3]=i[3]+O|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32;var o=l.floor(r/4294967296),i=r;t[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t[14+(n+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,s=a.words,u=0;u<4;u++){var c=s[u];s[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return a},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});function E(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+o+a;return(s<>>32-i)+t}function C(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+o+a;return(s<>>32-i)+t}function A(e,t,r,n,o,i,a){var s=e+(t^r^n)+o+a;return(s<>>32-i)+t}function P(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+o+a;return(s<>>32-i)+t}e.MD5=n._createHelper(i),e.HmacMD5=n._createHmacHelper(i)}(Math),a.MD5},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":481}],487:[function(e,t,r){var n,o;n=this,o=function(e){var t,r,n,o,i,f,a;return r=(t=e).lib,n=r.WordArray,o=r.Hasher,i=t.algo,f=[],a=i.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)f[u]=0|e[t+u];else{var c=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=c<<1|c>>>31}var l=(n<<5|n>>>27)+s+f[u];l+=u<20?1518500249+(o&i|~o&a):u<40?1859775393+(o^i^a):u<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,s=a,a=i,i=o<<30|o>>>2,o=n,n=l}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=o._createHelper(a),t.HmacSHA1=o._createHmacHelper(a),e.SHA1},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":481}],488:[function(e,t,r){"use strict";var n=function(){var e=0o){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else a=i[t]=r,++e._eventsCount;return e}function d(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t>1,l=-7,f=r?o-1:0,d=r?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=s;0>=-l,l+=n;0>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(t+=1<=a+f?d/u:d*Math.pow(2,1-f))*u&&(a++,u/=2),l<=a+f?(s=0,a=l):1<=a+f?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));8<=o;e[r+h]=255&s,h+=p,s/=256,o-=8);for(a=a< 9007199254740992 || "+e+" < -9007199254740992)"},string:function(e){return"typeof "+e+' === "string"'}},s=function(e){for(var t=[],r=0;r %d) {",n,r.items.length),c("has additional items"),D("}");else if(r.additionalItems){var f=P();D("for (var %s = %d; %s < %s.length; %s++) {",f,r.items.length,f,n,f),R(n+"["+f+"]",r.additionalItems,o,i,a.concat("additionalItems")),D("}")}if(r.format&&j[r.format]){"string"!==u&&T[r.format]&&D("if (%s) {",F.string(n));var d=C("format");O[d]=j[r.format],"function"==typeof O[d]?D("if (!%s(%s)) {",d,n):D("if (!%s.test(%s)) {",d,n),c("must be "+r.format+" format"),D("}"),"string"!==u&&T[r.format]&&D("}")}if(Array.isArray(r.required)){D("if ((%s)) {","object"!==u?F.object(n):"true"),D("var missing = 0"),r.required.map(function(e){var t=M(n,e);D("if (%s === undefined) {",t),c("is required",t),D("missing++"),D("}")}),D("}"),E||(D("if (missing === 0) {"),e++)}if(r.uniqueItems&&("array"!==u&&D("if (%s) {",F.array(n)),D("if (!(unique(%s))) {",n),c("must be unique"),D("}"),"array"!==u&&D("}")),r.enum){var h=r.enum.some(function(e){return"object"==typeof e})?function(e){return"JSON.stringify("+n+") !== JSON.stringify("+JSON.stringify(e)+")"}:function(e){return n+" !== "+JSON.stringify(e)};D("if (%s) {",r.enum.map(h).join(" && ")||"false"),c("must be an enum value"),D("}")}if(r.dependencies&&("object"!==u&&D("if (%s) {",F.object(n)),Object.keys(r.dependencies).forEach(function(e){var t=r.dependencies[e];"string"==typeof t&&(t=[t]);Array.isArray(t)&&(D("if (%s !== undefined && !(%s)) {",M(n,e),t.map(function(e){return M(n,e)+" !== undefined"}).join(" && ")||"true"),c("dependencies not set"),D("}")),"object"==typeof t&&(D("if (%s !== undefined) {",M(n,e)),R(n,t,o,i,a.concat(["dependencies",e])),D("}"))}),"object"!==u&&D("}")),r.additionalProperties||!1===r.additionalProperties){"object"!==u&&D("if (%s) {",F.object(n));f=P();var p=C("keys"),b=Object.keys(s||{}).map(function(e){return p+"["+f+"] !== "+JSON.stringify(e)}).concat(Object.keys(r.patternProperties||{}).map(function(e){return"!"+A(e)+".test("+p+"["+f+"])"})).join(" && ")||"true";D("var %s = Object.keys(%s)",p,n)("for (var %s = 0; %s < %s.length; %s++) {",f,f,p,f)("if (%s) {",b),!1===r.additionalProperties?(i&&D("delete %s",n+"["+p+"["+f+"]]"),c("has additional properties",null,JSON.stringify(n+".")+" + "+p+"["+f+"]")):R(n+"["+p+"["+f+"]]",r.additionalProperties,o,i,a.concat(["additionalProperties"])),D("}")("}"),"object"!==u&&D("}")}if(r.$ref){var y=function(e,t,n){var o=function(r){return r&&r.id===n?r:"object"==typeof r&&r?Object.keys(r).reduce(function(e,t){return e||o(r[t])},null):null},r=o(e);if(r)return r;n=(n=n.replace(/^#/,"")).replace(/\/$/,"");try{return I.get(e,decodeURI(n))}catch(e){var i,a=n.indexOf("#");if(0!==a)if(-1===a)i=t[n];else{i=t[n.slice(0,a)];var s=n.slice(a).replace(/^#/,"");try{return I.get(i,s)}catch(e){}}else i=t[n];return i||null}}(x,k&&k.schemas||{},r.$ref);if(y){var _=w[r.$ref];_||(w[r.$ref]=function(e){return _(e)},_=q(y,w,x,!1,k));d=C("ref");O[d]=_,D("if (!(%s(%s))) {",d,n),c("referenced schema does not match"),D("}")}}if(r.not){var v=C("prev");D("var %s = errors",v),R(n,r.not,!1,i,a.concat("not")),D("if (%s === errors) {",v),c("negative schema matches"),D("} else {")("errors = %s",v)("}")}if(r.items&&!t){"array"!==u&&D("if (%s) {",F.array(n));f=P();D("for (var %s = 0; %s < %s.length; %s++) {",f,f,n,f),R(n+"["+f+"]",r.items,o,i,a.concat("items")),D("}"),"array"!==u&&D("}")}if(r.patternProperties){"object"!==u&&D("if (%s) {",F.object(n));p=C("keys"),f=P();D("var %s = Object.keys(%s)",p,n)("for (var %s = 0; %s < %s.length; %s++) {",f,f,p,f),Object.keys(r.patternProperties).forEach(function(e){var t=A(e);D("if (%s.test(%s)) {",t,p+"["+f+"]"),R(n+"["+p+"["+f+"]]",r.patternProperties[e],o,i,a.concat(["patternProperties",e])),D("}")}),D("}"),"object"!==u&&D("}")}if(r.pattern){var m=A(r.pattern);"string"!==u&&D("if (%s) {",F.string(n)),D("if (!(%s.test(%s))) {",m,n),c("pattern mismatch"),D("}"),"string"!==u&&D("}")}if(r.allOf&&r.allOf.forEach(function(e,t){R(n,e,o,i,a.concat(["allOf",t]))}),r.anyOf&&r.anyOf.length){v=C("prev");r.anyOf.forEach(function(e,t){0===t?D("var %s = errors",v):D("if (errors !== %s) {",v)("errors = %s",v),R(n,e,!1,!1,a)}),r.anyOf.forEach(function(e,t){t&&D("}")}),D("if (%s !== errors) {",v),c("no schemas match"),D("}")}if(r.oneOf&&r.oneOf.length){v=C("prev");var g=C("passes");D("var %s = errors",v)("var %s = 0",g),r.oneOf.forEach(function(e,t){R(n,e,!1,!1,a),D("if (%s === errors) {",v)("%s++",g)("} else {")("errors = %s",v)("}")}),D("if (%s !== 1) {",g),c("no (or more than one) schemas match"),D("}")}for(void 0!==r.multipleOf&&("number"!==u&&"integer"!==u&&D("if (%s) {",F.number(n)),D("if (!isMultipleOf(%s, %d)) {",n,r.multipleOf),c("has a remainder"),D("}"),"number"!==u&&"integer"!==u&&D("}")),void 0!==r.maxProperties&&("object"!==u&&D("if (%s) {",F.object(n)),D("if (Object.keys(%s).length > %d) {",n,r.maxProperties),c("has more properties than allowed"),D("}"),"object"!==u&&D("}")),void 0!==r.minProperties&&("object"!==u&&D("if (%s) {",F.object(n)),D("if (Object.keys(%s).length < %d) {",n,r.minProperties),c("has less properties than allowed"),D("}"),"object"!==u&&D("}")),void 0!==r.maxItems&&("array"!==u&&D("if (%s) {",F.array(n)),D("if (%s.length > %d) {",n,r.maxItems),c("has more items than allowed"),D("}"),"array"!==u&&D("}")),void 0!==r.minItems&&("array"!==u&&D("if (%s) {",F.array(n)),D("if (%s.length < %d) {",n,r.minItems),c("has less items than allowed"),D("}"),"array"!==u&&D("}")),void 0!==r.maxLength&&("string"!==u&&D("if (%s) {",F.string(n)),D("if (%s.length > %d) {",n,r.maxLength),c("has longer length than allowed"),D("}"),"string"!==u&&D("}")),void 0!==r.minLength&&("string"!==u&&D("if (%s) {",F.string(n)),D("if (%s.length < %d) {",n,r.minLength),c("has less length than allowed"),D("}"),"string"!==u&&D("}")),void 0!==r.minimum&&("number"!==u&&"integer"!==u&&D("if (%s) {",F.number(n)),D("if (%s %s %d) {",n,r.exclusiveMinimum?"<=":"<",r.minimum),c("is less than minimum"),D("}"),"number"!==u&&"integer"!==u&&D("}")),void 0!==r.maximum&&("number"!==u&&"integer"!==u&&D("if (%s) {",F.number(n)),D("if (%s %s %d) {",n,r.exclusiveMaximum?">=":">",r.maximum),c("is more than maximum"),D("}"),"number"!==u&&"integer"!==u&&D("}")),s&&Object.keys(s).forEach(function(e){Array.isArray(u)&&-1!==u.indexOf("null")&&D("if (%s !== null) {",n),R(M(n,e),s[e],o,i,a.concat(t?e:["properties",e])),Array.isArray(u)&&-1!==u.indexOf("null")&&D("}")});e--;)D("}")},D=i("function validate(data) {")("if (data === undefined) data = null")("validate.errors = null")("var errors = 0");return R("data",e,t,k&&k.filter,[]),D("return errors === 0")("}"),(D=D.toFunction(O)).errors=null,Object.defineProperty&&Object.defineProperty(D,"error",{get:function(){return D.errors?D.errors.map(function(e){return e.field+" "+e.message}).join("\n"):""}}),D.toJSON=function(){return e},D};n.exports=function(e,t){return"string"==typeof e&&(e=JSON.parse(e)),q(e,{},e,!0,t)},n.exports.filter=function(e,t){var r=n.exports(e,a(t,{filter:!0}));return function(e){return r(e),e}}},{"./formats":499,"generate-function":493,"generate-object-property":494,jsonpointer:502,xtend:598}],501:[function(e,t,r){"use strict";t.exports=function(e){return/^[$A-Z\_a-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc][$A-Z\_a-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc0-9\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d02\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19b0-\u19c0\u19c8\u19c9\u19d0-\u19d9\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1dc0-\u1de6\u1dfc-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8e0-\ua8f1\ua900-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f]*$/.test(e)}},{}],502:[function(e,t,r){var n=/~/,o=/~[01]/g;function i(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function u(e){return n.test(e)?e.replace(o,i):e}function a(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e))return e;throw new Error("Invalid JSON pointer.")}function s(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=a(t)).length;if(1===r)return e;for(var n=1;n=e.length)return;for(;e.lengthr&&(e[t]=r)}else e[t]=r},$max:function(e,t,r){if("number"!=typeof r)throw p("Modifier $max allowed for numbers only",{field:t});if(t in e){if("number"!=typeof e[t])throw p("Cannot apply $max modifier to non-number",{field:t});e[t]t.length?1:-1}(e,t):function(e,t){for(var r=Object.keys(e),n=Object.keys(t),o=Math.min(r.length,n.length),i=0;in.length?1:-1}(e,t)}function a(e){switch(typeof e){case"undefined":return null;case"number":return e===1/0||e===-1/0||isNaN(e)?null:e;case"object":var t=e;if(Array.isArray(e)){var r=e.length;e=new Array(r);for(var n=0;nc&&s.push(e)}),j.traverseRevTree(t,function(e,t,r,n,o){var i=t+"-"+r;"available"===o.status&&-1!==s.indexOf(i)&&u.push(i)}),f._doCompaction(o,u,l)})}),v.prototype.compact=l.adapterFun("compact",function(e,t){"function"==typeof e&&(t=e,e={});e=e||{},this._compactionQueue=this._compactionQueue||[],this._compactionQueue.push({opts:e,callback:t}),1===this._compactionQueue.length&&function r(n){var e=n._compactionQueue[0],t=e.opts,o=e.callback;n.get("_local/compaction").catch(function(){return!1}).then(function(e){e&&e.last_seq&&(t.last_seq=e.last_seq),n._compact(t,function(e,t){e?o(e):o(null,t),l.nextTick(function(){n._compactionQueue.shift(),n._compactionQueue.length&&r(n)})})})}(this)}),v.prototype._compact=function(e,r){var n=this,t={return_docs:!1,last_seq:e.last_seq||0},o=[];n.changes(t).on("change",function(e){o.push(n.compactDocument(e.id,0))}).on("complete",function(e){var t=e.last_seq;c.all(o).then(function(){return l.upsert(n,"_local/compaction",function(e){return(!e.last_seq||e.last_seqa.length)&&y(i,a)),o=y(r,e);return n&&o}var i,a;return function(e,t){e=e.slice();for(var r=0,n=t.length;r=a.length?i:a,0===a.length?{fields:o}:{fields:o=o.sort(function(e,t){var r=a.indexOf(e);-1===r&&(r=Number.MAX_VALUE);var n=a.indexOf(t);return-1===n&&(n=Number.MAX_VALUE),rt.length;)a.pop();if(0>>1],t)<0?o=n+1:i=n;return o}(r,n,y),r.splice(o,0,n))}else a="new_leaf",u[2][0]=c[2][l]}return{conflicts:a,tree:e}}function _(e,t,r){var n,o=[],i=!1,a=!1;if(!e.length)return{tree:[t],conflicts:"new_leaf"};for(var s=0,u=e.length;st){n||(n={});var l=c.length-t;s={pos:u.pos+l,ids:b(c,l)};for(var f=0;f=t)&&(l.push(f),f={seq:0,changes:[],docs:[]},"pending"!==a.state&&"stopped"!==a.state||(a.state="active",a.emit("active")),C()):0!==l.length||u||((y&&j.live||h)&&(a.state="pending",a.emit("paused")),h&&R())}function P(e,t){p||(t.message||(t.message=e),s.ok=!1,s.status="aborting",l=[],f={seq:0,changes:[],docs:[]},R(t))}function R(e){if(!(p||a.cancelled&&(s.status="cancelled",d)))if(s.status=s.status||"complete",s.end_time=new Date,s.last_seq=b,p=!0,e){(e=U.createError(e)).result=s;var t=(e.name||"").toLowerCase();"unauthorized"===t||"forbidden"===t?(a.emit("error",e),a.removeAllListeners()):function(e,t,r,n){if(!1===e.retry)return t.emit("error",r),t.removeAllListeners();if("function"!=typeof e.back_off_function&&(e.back_off_function=B.defaultBackOff),t.emit("requestError",r),"active"===t.state||"pending"===t.state){t.emit("paused",r),t.state="stopped";var o=function(){e.current_back_off=V};t.once("paused",function(){t.removeListener("active",o)}),t.once("active",o)}e.current_back_off=e.current_back_off||V,e.current_back_off=e.back_off_function(e.current_back_off),setTimeout(n,e.current_back_off)}(i,a,e,function(){G(n,o,i,a)})}else a.emit("complete",s),a.removeAllListeners()}function D(e,t,r){if(a.cancelled)return R();"number"==typeof t&&(f.pending=t),B.filterChange(i)(e)&&(f.seq=e.seq||r,f.changes.push(e),A(0===l.length&&j.live))}function M(e){if(v=!1,a.cancelled)return R();if(0r.$gte&&(r.$gte=t):t>=r.$gte&&(delete r.$gte,r.$gt=t):void 0!==r.$gt?"$gte"===e?t>r.$gt&&(delete r.$gt,r.$gte=t):t>r.$gt&&(r.$gt=t):r[e]=t}(e,i,s):"$lt"===e||"$lte"===e?function(e,t,r){if(void 0!==r.$eq)return;void 0!==r.$lte?"$lte"===e?tn.since&&!n.cancelled&&(n.since=e.seq,n.onChange(e))}).on("complete",function(){"waiting"===i&&u(a),i=!1}).on("error",function(){i=!1})}}},O.prototype.removeListener=function(e,t){t in this._listeners&&(i.EventEmitter.prototype.removeListener.call(this,e,this._listeners[t]),delete this._listeners[t])},O.prototype.notifyLocalWindows=function(e){k()?chrome.storage.local.set({dbName:e}):j()&&(localStorage[e]="a"===localStorage[e]?"b":"a")},O.prototype.notify=function(e){this.emit(e),this.notifyLocalWindows(e)};var E="function"==typeof Object.assign?Object.assign:function(e){for(var t=Object(e),r=1;r=r.length)){var n,e=Math.min(a+g,r.length),t=r.slice(a,e);n=a,t.forEach(function(i,e){var a=n+e,t=c.get(i),r=v(t[0],["atts_since","attachments"]);r.open_revs=t.map(function(e){return e.rev}),r.open_revs=r.open_revs.filter(w);var s=w;0===r.open_revs.length&&(delete r.open_revs,s=x),["revs","attachments","binary","ajax","latest"].forEach(function(e){e in u&&(r[e]=u[e])}),o.get(i,r,function(e,t){var r,n,o;r=e?[{error:e}]:s(t),n=i,o=r,l[a]={id:n,docs:o},f(),d()})}),a+=t.length}}d()},r.changesHandler=O,r.clone=b,r.defaultBackOff=function(e){var t,r,n=0;return e||(n=2e3),t=e,r=n,t=parseInt(t,10)||0,(r=parseInt(r,10))!=r||r<=t?r=(t||1)<<1:r+=1,6e5>>25)+n|0)&n|~r&o)+t[1]-389564586|0)<<12|i>>>20)+r|0)&r|~i&n)+t[2]+606105819|0)<<17|o>>>15)+i|0)&i|~o&r)+t[3]-1044525330|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&o)+t[5]+1200080426|0)<<12|i>>>20)+r|0)&r|~i&n)+t[6]-1473231341|0)<<17|o>>>15)+i|0)&i|~o&r)+t[7]-45705983|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&o)+t[9]-1958414417|0)<<12|i>>>20)+r|0)&r|~i&n)+t[10]-42063|0)<<17|o>>>15)+i|0)&i|~o&r)+t[11]-1990404162|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&o)+t[13]-40341101|0)<<12|i>>>20)+r|0)&r|~i&n)+t[14]-1502002290|0)<<17|o>>>15)+i|0)&i|~o&r)+t[15]+1236535329|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[1]-165796510|0)<<5|r>>>27)+n|0)&o|n&~o)+t[6]-1069501632|0)<<9|i>>>23)+r|0)&n|r&~n)+t[11]+643717713|0)<<14|o>>>18)+i|0)&r|i&~r)+t[0]-373897302|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[5]-701558691|0)<<5|r>>>27)+n|0)&o|n&~o)+t[10]+38016083|0)<<9|i>>>23)+r|0)&n|r&~n)+t[15]-660478335|0)<<14|o>>>18)+i|0)&r|i&~r)+t[4]-405537848|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[9]+568446438|0)<<5|r>>>27)+n|0)&o|n&~o)+t[14]-1019803690|0)<<9|i>>>23)+r|0)&n|r&~n)+t[3]-187363961|0)<<14|o>>>18)+i|0)&r|i&~r)+t[8]+1163531501|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[13]-1444681467|0)<<5|r>>>27)+n|0)&o|n&~o)+t[2]-51403784|0)<<9|i>>>23)+r|0)&n|r&~n)+t[7]+1735328473|0)<<14|o>>>18)+i|0)&r|i&~r)+t[12]-1926607734|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[5]-378558|0)<<4|r>>>28)+n|0)^n^o)+t[8]-2022574463|0)<<11|i>>>21)+r|0)^r^n)+t[11]+1839030562|0)<<16|o>>>16)+i|0)^i^r)+t[14]-35309556|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[1]-1530992060|0)<<4|r>>>28)+n|0)^n^o)+t[4]+1272893353|0)<<11|i>>>21)+r|0)^r^n)+t[7]-155497632|0)<<16|o>>>16)+i|0)^i^r)+t[10]-1094730640|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[13]+681279174|0)<<4|r>>>28)+n|0)^n^o)+t[0]-358537222|0)<<11|i>>>21)+r|0)^r^n)+t[3]-722521979|0)<<16|o>>>16)+i|0)^i^r)+t[6]+76029189|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[9]-640364487|0)<<4|r>>>28)+n|0)^n^o)+t[12]-421815835|0)<<11|i>>>21)+r|0)^r^n)+t[15]+530742520|0)<<16|o>>>16)+i|0)^i^r)+t[2]-995338651|0)<<23|n>>>9)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[0]-198630844|0)<<6|r>>>26)+n|0)|~o))+t[7]+1126891415|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[14]-1416354905|0)<<15|o>>>17)+i|0)|~r))+t[5]-57434055|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[12]+1700485571|0)<<6|r>>>26)+n|0)|~o))+t[3]-1894986606|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[10]-1051523|0)<<15|o>>>17)+i|0)|~r))+t[1]-2054922799|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[8]+1873313359|0)<<6|r>>>26)+n|0)|~o))+t[15]-30611744|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[6]-1560198380|0)<<15|o>>>17)+i|0)|~r))+t[13]+1309151649|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[4]-145523070|0)<<6|r>>>26)+n|0)|~o))+t[11]-1120210379|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[2]+718787259|0)<<15|o>>>17)+i|0)|~r))+t[9]-343485551|0)<<21|n>>>11)+o|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=o+e[2]|0,e[3]=i+e[3]|0}function f(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function d(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,r,n,o,i,a,s=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=s;t+=64)c(u,f(e.substring(t-64,t)));for(r=(e=e.substring(t-64)).length,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),55>8*t+4&15]+n[e>>8*t&15];return r}function a(e){var t;for(t=0;t>16)+(t>>16)+(r>>16)<<16|65535&r},"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function c(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(e,t){var r,n,o,i,a=this.byteLength,s=c(e,a),u=a;return t!==l&&(u=c(t,a)),u>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(i,o),r=a(this._hash),e&&(r=s(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var r,n,o,i=t;if(e[i>>2]|=128<<(i%4<<3),55>2]|=n[t]<<(t%4<<3);return this._finish(i,o),r=a(this._hash),e&&(r=s(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,o=new ArrayBuffer(n),i=new Uint8Array(o);for(r=0;r>2]|=e[t]<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),55>>((3&t)<<3)&255;return i}}},{}],595:[function(e,t,r){var p,b,y=e("./lib/rng"),_=e("./lib/bytesToUuid"),v=0,m=0;t.exports=function(e,t,r){var n=t&&r||0,o=t||[],i=(e=e||{}).node||p,a=void 0!==e.clockseq?e.clockseq:b;if(null==i||null==a){var s=y();null==i&&(i=p=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=b=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:m+1,l=u-v+(c-m)/1e4;if(l<0&&void 0===e.clockseq&&(a=a+1&16383),(l<0||v>>24&255,o[n++]=f>>>16&255,o[n++]=f>>>8&255,o[n++]=255&f;var d=u/4294967296*1e4&268435455;o[n++]=d>>>8&255,o[n++]=255&d,o[n++]=d>>>24&15|16,o[n++]=d>>>16&255,o[n++]=a>>>8|128,o[n++]=255&a;for(var h=0;h<6;++h)o[n+h]=i[h];return t||_(o)}},{"./lib/bytesToUuid":593,"./lib/rng":594}],596:[function(e,t,r){var a=e("./lib/rng"),s=e("./lib/bytesToUuid");t.exports=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||s(o)}},{"./lib/bytesToUuid":593,"./lib/rng":594}],597:[function(e,t,r){"use strict";function h(e,t,r){var n=r[r.length-1];e===n.element&&(r.pop(),n=r[r.length-1]);var o=n.element,i=n.index;if(Array.isArray(o))o.push(e);else if(i===t.length-2){o[t.pop()]=e}else t.push(e)}r.stringify=function(e){var t=[];t.push({obj:e});for(var r,n,o,i,a,s,u,c,l,f,d="";r=t.pop();)if(n=r.obj,d+=r.prefix||"",o=r.val||"")d+=o;else if("object"!=typeof n)d+=void 0===n?null:JSON.stringify(n);else if(null===n)d+="null";else if(Array.isArray(n)){for(t.push({val:"]"}),i=n.length-1;0<=i;i--)a=0===i?"":",",t.push({obj:n[i],prefix:a});t.push({val:"["})}else{for(u in s=[],n)n.hasOwnProperty(u)&&s.push(u);for(t.push({val:"}"}),i=s.length-1;0<=i;i--)l=n[c=s[i]],f=0this.limit;)this.buffer.shift()}},{key:"getArrayIndexByPointer",value:function(e){var t=this.buffer[0],r=this.eventCounterMap.get(t);return e 2",QU1:"RxQuery._execOverDatabase(): op not known",QU2:"limit() must get a number",QU3:"skip() must get a number",QU4:"RxQuery.regex(): You cannot use .regex() on the primary field",QU5:"RxQuery.sort(): does not work because key is not defined in the schema",QU6:"RxQuery.limit(): cannot be called on .findOne()",QU7:"query must be an object",QU8:"query cannot be an array",MQ1:"path must be a string or object",MQ2:"Invalid argument",MQ3:"Invalid sort() argument. Must be a string, object, or array",MQ4:"Invalid argument. Expected instanceof mquery or plain object",MQ5:"method must be used after where() when called with these arguments",MQ6:"Can't mix sort syntaxes. Use either array or object | .sort([['field', 1], ['test', -1]]) | .sort({ field: 1, test: -1 })",MQ7:"Invalid sort value",MQ8:"Can't mix sort syntaxes. Use either array or object",DB1:"RxDocument.prepare(): another instance on this adapter has a different password",DB2:"RxDatabase.collection(): collection-names cannot start with underscore _",DB3:"RxDatabase.collection(): collection already exists. use myDatabase.[collectionName] to get it",DB4:"RxDatabase.collection(): schema is missing",DB5:"RxDatabase.collection(): collection-name not allowed",DB6:"RxDatabase.collection(): another instance created this collection with a different schema",DB7:"RxDatabase.collection(): schema encrypted but no password given",DB8:"RxDatabase.create(): A RxDatabase with the same name and adapter already exists.\nMake sure to use this combination only once or set ignoreDuplicate to true if you do this intentional",DB9:"RxDatabase.create(): Adapter not added. Use RxDB.plugin(require('pouchdb-adapter-[adaptername]');",DB10:"RxDatabase.create(): To use leveldown-adapters, you have to add the leveldb-plugin. Use RxDB.plugin(require('pouchdb-adapter-leveldb'));",COL1:"RxDocument.insert() You cannot insert an existing document",COL2:"RxCollection.insert() do not provide ._id, it will be generated",COL3:"RxCollection.upsert() does not work without primary",COL4:"RxCollection.atomicUpsert() does not work without primary",COL5:"RxCollection.find() if you want to search by _id, use .findOne(_id)",COL6:"RxCollection.findOne() needs a queryObject or string",COL7:"hook must be a function",COL8:"hooks-when not known",COL9:"RxCollection.addHook() hook-name not known",COL10:"RxCollection .postCreate-hooks cannot be async",COL11:"migrationStrategies must be an object",COL12:"A migrationStrategy is missing or too much",COL13:"migrationStrategy must be a function",COL14:"given static method-name is not a string",COL15:"static method-names cannot start with underscore _",COL16:"given static method is not a function",COL17:"RxCollection.ORM: statics-name not allowed",COL18:"collection-method not allowed because fieldname is in the schema",DOC1:"RxDocument.get$ cannot get observable of in-array fields because order cannot be guessed",DOC2:"cannot observe primary path",DOC3:"final fields cannot be observed",DOC4:"RxDocument.get$ cannot observe a non-existed field",DOC5:"RxDocument.populate() cannot populate a non-existed field",DOC6:"RxDocument.populate() cannot populate because path has no ref",DOC7:"RxDocument.populate() ref-collection not in database",DOC8:"RxDocument.set(): primary-key cannot be modified",DOC9:"final fields cannot be modified",DOC10:"RxDocument.set(): cannot set childpath when rootPath not selected",DOC11:"RxDocument.save(): cant save deleted document",DOC12:"RxDocument.save(): error",DOC13:"RxDocument.remove(): Document is already deleted",DOC14:"RxDocument.destroy() does not exist",DOC15:"query cannot be an array",DM1:"migrate() Migration has already run",DM2:"migration of document failed final document does not match final schema",DM3:"migration already running",AT1:"to use attachments, please define this in your schema",EN1:"password is no string",EN2:"validatePassword: min-length of password not complied",JD1:"You must create the collections before you can import their data",JD2:"RxCollection.importDump(): the imported json relies on a different schema",JD3:"RxCollection.importDump(): json.passwordHash does not match the own",LE1:"LeaderElection: this should not happen :( please contact the maintainer",LE2:"LeaderElection: someone else is applying/leader",LE3:"LeaderElection: someone else overwrote apply",LD1:"RxDocument.allAttachments$ cant use attachments on local documents",LD2:"RxDocument.get(): objPath must be a string",LD3:"RxDocument.get$ cannot get observable of in-array fields because order cannot be guessed",LD4:"cannot observe primary path",LD5:"RxDocument.set() id cannot be modified",LD6:"LocalDocument: Function is not useable on local documents",LD7:"Local document already exists",RC1:"Replication: already added",RC2:"RxCollection.sync() query must be from the same RxCollection",SC1:"fieldnames do not match the regex",SC2:"SchemaCheck: name 'item' reserved for array-fields",SC3:"SchemaCheck: fieldname has a ref-array but items-type is not string",SC4:"SchemaCheck: fieldname has a ref but is not type string or array",SC5:"SchemaCheck: fieldname cannot be primary and ref at same time",SC6:"SchemaCheck: primary can only be defined at top-level",SC7:"SchemaCheck: default-values can only be defined at top-level",SC8:"SchemaCheck: first level-fields cannot start with underscore _",SC9:"SchemaCheck: schema defines ._id, this will be done automatically",SC10:"SchemaCheck: schema defines ._rev, this will be done automatically",SC11:"SchemaCheck: schema need an number>=0 as version",SC12:"SchemaCheck: primary can only be defined once",SC13:"SchemaCheck: primary is always index, do not declare it as index",SC14:"SchemaCheck: primary is always unique, do not declare it as index",SC15:"SchemaCheck: primary cannot be encrypted",SC16:"SchemaCheck: primary must have type: string",SC17:"SchemaCheck: top-level fieldname is not allowed",SC18:"SchemaCheck: compoundIndexes must be an array",SC19:"SchemaCheck: compoundIndexes must contain arrays",SC20:"SchemaCheck: compoundIndexes.array must contains strings",SC21:"SchemaCheck: given index is not defined in schema",SC22:"given indexKey is not type:string",SC23:"SchemaCheck: fieldname is not allowed",VD1:"Sub-schema not found, does the schemaPath exists in your schema?",VD2:"object does not match schema",IM1:"InMemory: Memory-Adapter must be added. Use RxDB.plugin(require('pouchdb-adapter-memory'));",S1:"You cannot create collections after calling RxDatabase.server()"},o=r.rxdb=!0,i=r.prototypes={},a=r.overwritable={tunnelErrorMessage:function(e){if(!n[e])throw console.error("RxDB: Error-Code not known: "+e),new Error("Error-Cdoe "+e+" not known, contact the maintainer");return n[e]}};r.default={rxdb:o,prototypes:i,overwritable:a}},{}],17:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.overwritable=r.prototypes=r.rxdb=r.spawnInMemory=r.InMemoryRxCollection=void 0;var n,o=g(e("babel-runtime/helpers/typeof")),i=g(e("babel-runtime/regenerator")),a=g(e("babel-runtime/helpers/asyncToGenerator")),s=g(e("babel-runtime/helpers/classCallCheck")),u=g(e("babel-runtime/helpers/createClass")),c=g(e("babel-runtime/helpers/possibleConstructorReturn")),l=g(e("babel-runtime/helpers/inherits")),f=r.spawnInMemory=(n=(0,a.default)(i.default.mark(function e(){var t,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=4;break}if(O=!0,v.default.adapters&&v.default.adapters.memory){e.next=4;break}throw m.default.newRxError("IM1");case 4:if(!w.has(this)){e.next=8;break}return e.next=7,x.get(this);case 7:return e.abrupt("return",w.get(this));case 8:return t=new j(this),r=t.prepare(),w.set(this,t),x.set(this,r),e.next=14,r;case 14:return e.abrupt("return",t);case 15:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)}),d=e("rxjs/Subject"),h=g(e("../rx-collection")),p=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../util")),b=g(e("../crypter")),y=g(e("../change-event-buffer")),_=g(e("../rx-schema")),v=g(e("../pouch-db")),m=g(e("../rx-error"));function g(e){return e&&e.__esModule?e:{default:e}}var w=new WeakMap,x=new WeakMap,k={new_edits:!1},j=r.InMemoryRxCollection=function(e){function n(e,t){(0,s.default)(this,n);var r=(0,c.default)(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.database,e.name,function(e){var t=p.clone(e.jsonID);t.disableKeyCompression=!0,delete t.properties._id,delete t.properties._rev,delete t.properties._attachments;return function t(e,r){delete e.encrypted,Object.values(e).filter(function(e){return"object"===(void 0===e?"undefined":(0,o.default)(e))}).forEach(function(e){return t(e,r)})}(t,t),_.default.create(t)}(e.schema),t,{},e._methods));return r._isInMemory=!0,r._parentCollection=e,r._parentCollection.onDestroy.then(function(){return r.destroy()}),r._changeStreams=[],r.onDestroy.then(function(){r._changeStreams.forEach(function(e){return e.cancel()}),r.pouch.destroy()}),r}var t,r;return(0,l.default)(n,e),(0,u.default)(n,[{key:"prepare",value:(r=(0,a.default)(i.default.mark(function e(){var r=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._crypter=b.default.create(this.database.password,this.schema),this.pouch=new v.default("rxdb-in-memory-"+p.randomCouchString(10),p.adapterObject("memory"),{}),this._observable$=new d.Subject,this._changeEventBuffer=y.default.create(this),e.next=6,Promise.all(this.schema.indexes.map(function(e){return r.pouch.createIndex({index:{fields:e}})}));case 6:return this._subs.push(this._observable$.subscribe(function(e){var t=r._docCache.get(e.data.doc);t&&t._handleChangeEvent(e)})),e.next=9,this._initialSync();case 9:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"_initialSync",value:(t=(0,a.default)(i.default.mark(function e(){var t,r,n,o=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._parentCollection.pouch.allDocs({attachments:!1,include_docs:!0});case 2:return t=e.sent,e.next=5,this.pouch.bulkDocs({docs:t.rows.map(function(e){return e.doc}).filter(function(e){return!e.language}).map(function(e){return o._parentCollection._handleFromPouch(e)}).map(function(e){return o._parentCollection.schema.swapPrimaryToId(e)})},k);case 5:this._parentCollection.watchForChanges(),this.watchForChanges(),r=this.pouch.changes({since:"now",include_docs:!0,live:!0}).on("change",function(){var t=(0,a.default)(i.default.mark(function e(t){var r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=o._parentCollection._handleToPouch(t.doc),o._parentCollection.pouch.bulkDocs({docs:[r]},k);case 2:case"end":return e.stop()}},e,o)}));return function(e){return t.apply(this,arguments)}}()),this._changeStreams.push(r),n=this._parentCollection.pouch.changes({since:"now",include_docs:!0,live:!0}).on("change",function(){var t=(0,a.default)(i.default.mark(function e(t){var r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=o._parentCollection._handleFromPouch(t.doc),r=o.schema.swapPrimaryToId(r),o.pouch.bulkDocs({docs:[r]},k);case 3:case"end":return e.stop()}},e,o)}));return function(e){return t.apply(this,arguments)}}()),this._changeStreams.push(n);case 11:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"$emit",value:function(e){this._observable$.next(e),this._eventCounter||(this._eventCounter=0),this._eventCounter++,10===this._eventCounter&&(this._eventCounter=0,this.pouch.compact())}}]),n}(h.default.RxCollection);var O=!1,S=r.rxdb=!0,E=r.prototypes={RxCollection:function(e){e.inMemory=f}},C=r.overwritable={};r.default={rxdb:S,prototypes:E,overwritable:C,spawnInMemory:f}},{"../change-event-buffer":2,"../crypter":4,"../pouch-db":26,"../rx-collection":31,"../rx-error":34,"../rx-schema":36,"../util":38,"babel-runtime/helpers/asyncToGenerator":49,"babel-runtime/helpers/classCallCheck":50,"babel-runtime/helpers/createClass":51,"babel-runtime/helpers/inherits":53,"babel-runtime/helpers/possibleConstructorReturn":54,"babel-runtime/helpers/typeof":56,"babel-runtime/regenerator":57,"rxjs/Subject":543}],18:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.overwritable=r.prototypes=r.rxdb=void 0;var a=o(e("babel-runtime/regenerator")),n=o(e("babel-runtime/helpers/asyncToGenerator")),s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../util")),u=o(e("../rx-query")),i=o(e("../rx-error")),c=o(e("../rx-change-event"));function o(e){return e&&e.__esModule?e:{default:e}}var l,f,d,h,p=(l=(0,n.default)(a.default.mark(function e(){var t,r,n=this,o=0=r)){e.next=7;break}throw _.default.newRxError("LE2");case 7:return t.apply=this.token,t.t=(new Date).getTime(),e.next=11,this.setLeaderObject(t);case 11:return e.next=13,b.promiseWait(.5*x);case 13:return e.next=15,this.getLeaderObject();case 15:if((t=e.sent).apply===this.token){e.next=18;break}throw _.default.newRxError("LE3");case 18:return e.abrupt("return",!0);case 21:return e.prev=21,e.t0=e.catch(0),e.abrupt("return",!1);case 24:case"end":return e.stop()}},e,this,[[0,21]])})),function(){return s.apply(this,arguments)})},{key:"applyBroadcast",value:(a=(0,f.default)(l.default.mark(function e(){var r,n,o,t,i,a=this;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(new Date).getTime(),n=[],o=[],t=function(){var e=(0,f.default)(l.default.mark(function e(){var t;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.push(a.bc.$.pipe((0,m.filter)(function(){return!!a.isApplying}),(0,m.filter)(function(e){return e.t>=r}),(0,m.filter)(function(e){return"apply"===e.type}),(0,m.filter)(function(e){return e.dataa.token}),(0,m.filter)(function(){return o.length<1})).subscribe(function(e){return o.push("other is applying:"+e.it)})),n.push(a.bc.$.pipe((0,m.filter)(function(){return!!a.isApplying}),(0,m.filter)(function(e){return e.t>=r}),(0,m.filter)(function(e){return"tell"===e.type}),(0,m.filter)(function(){return o.length<1})).subscribe(function(e){return o.push("other is leader"+e.it)})),n.push(a.bc.$.pipe((0,m.filter)(function(){return!!a.isApplying}),(0,m.filter)(function(e){return"apply"===e.type}),(0,m.filter)(function(e){return e.data>r||e.data===r&&e.it>a.token})).subscribe(function(){return a.bc.write("apply",r)})),t=3;case 4:if(!(0=o.limit,c=o.limit&&t.length>=o.limit;b&&(console.log("QueryChangeDetector.handleSingleChange()"),this._debugMessage("start",e.data.v,"handleSingleChange()"),console.log("changeEvent.data:"),console.dir(e.data),console.log("wasDocInResults: "+a),console.log("doesMatchNow: "+s),console.log("isFilled: "+u));var l=null,f=null,d=null;if("REMOVE"===e.data.op){if(!s)return b&&this._debugMessage("R1",i),!1;if(o.skip&&s&&(null===f&&(f=r._isSortedBefore(i,n[0])),f)&&!u)return b&&this._debugMessage("R2",i),n.shift(),n;if(s&&a&&!u)return b&&this._debugMessage("R3",i),n=n.filter(function(e){return e[r.primaryKey]!==i[r.primaryKey]});if(s&&a&&!o.limit&&!o.skip)return b&&this._debugMessage("R3.1",i),n=n.filter(function(e){return e[r.primaryKey]!==i[r.primaryKey]});if(s&&o.limit&&(null===l&&(l=r._isSortedBefore(n[n.length-1],i)),l))return b&&this._debugMessage("R4",i),!1}else{if(!(o.skip||o.limit||a||s))return b&&this._debugMessage("U1",i),!1;if(!o.skip&&!o.limit&&a&&s){var h=n.find(function(e){return e[r.primaryKey]===i[r.primaryKey]}),p=n.indexOf(h);return n[p]=i,function(){if(null===d){var e=t.find(function(e){return e[r.primaryKey]===i[r.primaryKey]});d=r._sortFieldChanged(e,i)}return d}()?(b&&this._debugMessage("U2 - resort",i),this._resortDocData(n)):(b&&this._debugMessage("U2 - no-resort",i),n)}if(!o.skip&&!c&&!a&&s)return b&&this._debugMessage("U3",i),n.push(i),this._resortDocData(n)}return!0}},{key:"doesDocMatchQuery",value:function(e){e=this.query.collection.schema.swapPrimaryToId(e);var t=Object.keys(this.query.toJSON().selector);return 1===(0,a.filterInMemoryFields)([{doc:e}],{selector:(0,a.massageSelector)(this.query.toJSON().selector)},t).length}},{key:"_isDocInResultData",value:function(t,e){var r=this.query.collection.schema.primaryPath;return!!e.find(function(e){return e[r]===t[r]})}},{key:"_sortFieldChanged",value:function(t,r){var e=this.query.toJSON().sort.map(function(e){return Object.keys(e).pop()}),n=!1;return e.find(function(e){return i.default.get(t,e)!==i.default.get(r,e)&&(n=!0)}),n}},{key:"_isSortedBefore",value:function(e,t){var r=this.query.toJSON(),n=Object.keys(this.query.toJSON().selector),o=this.query.collection.schema.swapPrimaryToId(e),i=[o,this.query.collection.schema.swapPrimaryToId(t)].map(function(e){return{id:e._id,doc:e}});return(0,a.filterInMemoryFields)(i,{selector:(0,a.massageSelector)(this.query.toJSON().selector),sort:r.sort},n)[0].id===o._id}},{key:"_resortDocData",value:function(e){var t=this,r=e.map(function(e){return{doc:t.query.collection.schema.swapPrimaryToId(e)}}),n=this.query.toJSON(),o=Object.keys(this.query.toJSON().selector);return(0,a.filterInMemoryFields)(r,{selector:(0,a.massageSelector)(this.query.toJSON().selector),sort:n.sort},o).map(function(e){return e.doc}).map(function(e){return t.query.collection.schema.swapIdToPrimary(e)})}}]),t}();function l(){console.log("QueryChangeDetector.enableDebugging()"),b=!0}function f(){var e=!(0=this.collection._changeEventBuffer.counter}},{key:"_ensureEqual",value:(o=(0,i.default)(u.default.mark(function e(){var t,r=this;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureEqualQueue.requestIdlePromise();case 2:return e.next=4,this._ensureEqualQueue.wrapCall(function(){return r.__ensureEqual()});case 4:return t=e.sent,e.abrupt("return",t);case 6:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"__ensureEqual",value:(r=(0,i.default)(u.default.mark(function e(){var t,r,n,o,i,a,s;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!1,!this._isResultsInSync()){e.next=3;break}return e.abrupt("return",!1);case 3:if(r=!1,-1===this._latestChangeEvent&&(r=!0),r){e.next=19;break}if(null!==(n=this.collection._changeEventBuffer.getFrom(this._latestChangeEvent+1))){e.next=11;break}r=!0,e.next=19;break;case 11:if(this._latestChangeEvent=this.collection._changeEventBuffer.counter,o=this.collection._changeEventBuffer.reduceByLastOfDoc(n),i=this._queryChangeDetector.runChangeDetection(o),!Array.isArray(i)&&i&&(r=!0),!Array.isArray(i)||(0,f.default)(i,this._resultsData)){e.next=19;break}return t=!0,e.next=19,this._setResultData(i);case 19:if(!r){e.next=29;break}return a=this.collection._changeEventBuffer.counter,e.next=23,this._execOverDatabase();case 23:if(s=e.sent,this._latestChangeEvent=a,(0,f.default)(s,this._resultsData)){e.next=29;break}return t=!0,e.next=29,this._setResultData(s);case 29:return e.abrupt("return",t);case 30:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"_setResultData",value:(t=(0,i.default)(u.default.mark(function e(t){var r,n;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._resultsData=t,e.next=3,this.collection._createDocuments(this._resultsData);case 3:r=e.sent,n=r,"findOne"===this.op&&(n=0===r.length?null:r[0]),this._results$.next(n);case 7:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"_execOverDatabase",value:function(){this._execOverDatabaseCount=this._execOverDatabaseCount+1;var e=void 0;switch(this.op){case"find":e=this.collection._pouchFind(this);break;case"findOne":e=this.collection._pouchFind(this,1);break;default:throw y.default.newRxError("QU1",{op:this.op})}return e}},{key:"toJSON",value:function(){if(this._toJSON)return this._toJSON;var n=this.collection.schema.primaryPath,t={selector:this.mquery._conditions},o=this.mquery._optionsForExec();if(o.sort){var i=[];Object.keys(o.sort).map(function(e){var t="asc";-1===o.sort[e]&&(t="desc");var r={};e===n&&(e="_id"),r[e]=t,i.push(r)}),t.sort=i}else t.sort=[{_id:"asc"}];if(o.limit){if("number"!=typeof o.limit)throw y.default.newRxTypeError("QU2",{limit:o.limit});t.limit=o.limit}if(o.skip){if("number"!=typeof o.skip)throw y.default.newRxTypeError("QU3",{skip:o.skip});t.skip=o.skip}return t.selector.language||(t.selector.language={}),t.selector.language.$ne="query",Object.entries(t.selector).filter(function(e){return"object"===(0,a.default)(e[1])}).filter(function(e){return null!==e[1]}).filter(function(e){return!Array.isArray(e[1])}).filter(function(e){return 0===Object.keys(e[1]).length}).forEach(function(e){return delete t.selector[e[0]]}),"_id"!==n&&t.selector[n]&&(t.selector._id=t.selector[n],delete t.selector[n]),this._toJSON=t,this._toJSON}},{key:"keyCompress",value:function(){return this.collection.schema.doKeyCompression()?(this._keyCompress||(this._keyCompress=this.collection._keyCompressor.compressQuery(this.toJSON())),this._keyCompress):this.toJSON()}},{key:"remove",value:function(){var t=void 0;return this.exec().then(function(e){return t=e,Array.isArray(e)?Promise.all(e.map(function(e){return e.remove()})):e.remove()}).then(function(){return t})}},{key:"update",value:function(){throw y.default.pluginMissing("update")}},{key:"exec",value:(e=(0,i.default)(u.default.mark(function e(){var t;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=!0;case 1:if(!t){e.next=7;break}return e.next=4,this._ensureEqual();case 4:t=e.sent,e.next=1;break;case 7:return e.abrupt("return",this._results$.getValue());case 8:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"regex",value:function(e){var t=this._clone();if(this.mquery._path===this.collection.schema.primaryPath)throw y.default.newRxError("QU4",{path:this.mquery._path});return t.mquery.regex(e),t._tunnelQueryCache()}},{key:"sort",value:function(e){var r=function(e){throw y.default.newRxError("QU5",{key:e})},n=this._clone();if("object"!==(void 0===e?"undefined":(0,a.default)(e))){var t="-"===e.charAt(0)?e.substring(1):e;if(!n.mquery._conditions[t]){var o=n.collection.schema.getSchemaByObjectPath(t);o||r(t),"integer"===o.type?n.mquery.where(t).gt(-1e28):n.mquery.where(t).gt(null)}}else Object.keys(e).filter(function(e){return!n.mquery._conditions[e]||!n.mquery._conditions[e].$gt}).forEach(function(e){var t=n.collection.schema.getSchemaByObjectPath(e);t||r(e),"integer"===t.type?n.mquery.where(e).gt(-1e28):n.mquery.where(e).gt(null)});return n.mquery.sort(e),n._tunnelQueryCache()}},{key:"limit",value:function(e){if("findOne"===this.op)throw y.default.newRxError("QU6");var t=this._clone();return t.mquery.limit(e),t._tunnelQueryCache()}},{key:"_ensureEqualQueue",get:function(){return this.__ensureEqualQueue||(this.__ensureEqualQueue=new d.default),this.__ensureEqualQueue}},{key:"$",get:function(){var t,r=this;if(!this._$){var e=this._results$.pipe((0,m.mergeMap)((t=(0,i.default)(u.default.mark(function e(t){return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._ensureEqual();case 2:if(!e.sent){e.next=7;break}return e.abrupt("return","WAITFORNEXTEMIT");case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}},e,r)})),function(e){return t.apply(this,arguments)})),(0,g.filter)(function(e){return"WAITFORNEXTEMIT"!==e})).asObservable(),n=this.collection.$.pipe((0,g.filter)(function(e){return["INSERT","UPDATE","REMOVE"].includes(e.data.op)}),(0,g.filter)(function(){return r._ensureEqual(),!1}));this._$=(0,_.merge)(e,n)}return this._$}}]),n}(),j=function(t,e){e.filter(function(e){return!e.startsWith("_")}).filter(function(e){return!t[e]}).forEach(function(r){t[r]=function(e){var t=this._clone();return t.mquery[r](e),t._tunnelQueryCache()}})},O=!1;function S(e,t,r){if(t&&"object"!==(void 0===t?"undefined":(0,a.default)(t)))throw y.default.newRxTypeError("QU7",{queryObj:t});if(Array.isArray(t))throw y.default.newRxTypeError("QU8",{queryObj:t});var n=new k(e,t,r);return n=n._tunnelQueryCache(),O||(O=!0,j(Object.getPrototypeOf(n),Object.getOwnPropertyNames(n.mquery.__proto__))),(0,o.runPluginHooks)("createRxQuery",n),n}function E(e){return e instanceof k}r.default={create:S,RxQuery:k,isInstanceOf:E}},{"./hooks":7,"./mquery/mquery":9,"./query-change-detector":28,"./rx-error":34,"./util":38,"babel-runtime/helpers/asyncToGenerator":49,"babel-runtime/helpers/classCallCheck":50,"babel-runtime/helpers/createClass":51,"babel-runtime/helpers/defineProperty":52,"babel-runtime/helpers/typeof":56,"babel-runtime/regenerator":57,"custom-idle-queue":488,"deep-equal":489,"rxjs/BehaviorSubject":536,"rxjs/observable/merge":552,"rxjs/operators/filter":555,"rxjs/operators/mergeMap":559}],36:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RxSchema=void 0;var s=l(e("babel-runtime/helpers/typeof")),n=l(e("babel-runtime/helpers/classCallCheck")),o=l(e("babel-runtime/helpers/createClass"));r.getEncryptedPaths=d,r.hasCrypt=h,r.getIndexes=p,r.getPrimary=b,r.getFinalFields=y,r.normalize=_,r.create=m,r.isInstanceOf=g;var i=l(e("object-path")),u=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("./util")),a=l(e("./rx-error")),c=e("./hooks");function l(e){return e&&e.__esModule?e:{default:e}}var f=r.RxSchema=function(){function r(e){var t=this;(0,n.default)(this,r),this.jsonID=e,this.compoundIndexes=this.jsonID.compoundIndexes,this.indexes=p(this.jsonID),this.indexes.forEach(function(e){e.filter(function(e){return!t.jsonID.required.includes(e)}).filter(function(e){return!e.includes(".")}).forEach(function(e){return t.jsonID.required.push(e)})}),this.primaryPath=b(this.jsonID),this.primaryPath&&this.jsonID.required.push(this.primaryPath),this.finalFields=y(this.jsonID),this.jsonID.required=this.jsonID.required.concat(this.finalFields).filter(function(e,t,r){return r.indexOf(e)===t}),this.jsonID.properties[this.primaryPath]||(this.jsonID.properties[this.primaryPath]={type:"string",minLength:1})}return(0,o.default)(r,[{key:"getSchemaByObjectPath",value:function(e){return e="properties."+(e=e.replace(/\./g,".properties.")),e=u.trimDots(e),i.default.get(this.jsonID,e)}},{key:"validate",value:function(){throw a.default.pluginMissing("validate")}},{key:"fillObjectWithDefaults",value:function(t){return t=u.clone(t),Object.entries(this.defaultValues).filter(function(e){return!t.hasOwnProperty(e[0])}).forEach(function(e){t[e[0]]=e[1]}),t}},{key:"swapIdToPrimary",value:function(e){return"_id"===this.primaryPath||e[this.primaryPath]||(e[this.primaryPath]=e._id,delete e._id),e}},{key:"swapPrimaryToId",value:function(e){var r=this;if("_id"===this.primaryPath)return e;var n={};return Object.entries(e).forEach(function(e){var t=e[0]===r.primaryPath?"_id":e[0];n[t]=e[1]}),n}},{key:"doKeyCompression",value:function(){return!this.jsonID.disableKeyCompression}},{key:"version",get:function(){return this.jsonID.version}},{key:"previousVersions",get:function(){var e=0;return new Array(this.version).fill(0).map(function(){return e++})}},{key:"crypt",get:function(){return this._crypt||(this._crypt=h(this.jsonID)),this._crypt}},{key:"normalized",get:function(){return this._normalized||(this._normalized=_(this.jsonID)),this._normalized}},{key:"topLevelFields",get:function(){return Object.keys(this.normalized.properties)}},{key:"defaultValues",get:function(){var t=this;return this._defaultValues||(this._defaultValues={},Object.entries(this.normalized.properties).filter(function(e){return e[1].hasOwnProperty("default")}).forEach(function(e){return t._defaultValues[e[0]]=e[1].default})),this._defaultValues}},{key:"encryptedPaths",get:function(){return this._encryptedPaths||(this._encryptedPaths=d(this.jsonID)),this._encryptedPaths}},{key:"hash",get:function(){return this._hash||(this._hash=u.hash(this.normalized)),this._hash}}]),r}();function d(e){var i={};return function e(t,r){if("object"===(void 0===t?"undefined":(0,s.default)(t)))if(t.encrypted)i[r.substring(1)]=t;else for(var n in t){var o=r;"properties"!==n&&(o=o+"."+n),e(t[n],o)}}(e.properties,""),i}function h(e){var t=d(e);return 0=r)){e.next=8;break}return e.abrupt("return",[]);case 8:return this.lastTimestamp=r,e.next=11,this.database.lockedRun(function(){return o.pouch.allDocs({include_docs:!0})});case 11:return n=e.sent,e.abrupt("return",n.rows.map(function(e){return e.doc}));case 13:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"deleteDoc",value:(n=(0,c.default)(u.default.mark(function e(t){var r,n=this;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=!0,e.prev=1,e.next=4,this.database.lockedRun(function(){return n.pouch.remove(t)});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),r=!1;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}},e,this,[[1,6]])})),function(e){return n.apply(this,arguments)})},{key:"_cleanupDocs",value:function(e){var t=this;e.forEach(function(e){t.database.requestIdlePromise().then(function(){t._destroyed||t.deleteDoc(e)})}),0t}).sort(function(e,t){return e.t>t.t?1:-1}).map(function(e){return h.default.fromJSON(e)}).filter(function(e){return!i.receivedEvents[e.hash]&&(i.receivedEvents[e.hash]=(new Date).getTime())}).filter(function(e){return setTimeout(function(){return delete i.receivedEvents[e.hash]},15e3)}).forEach(function(e){return i.messages$.next(e)}),!this._destroyed){e.next=19;break}return e.abrupt("return");case 19:return n=(new Date).getTime()-5e3,o=r.filter(function(e){return e.t>16&255,i[s++]=n>>8&255,i[s++]=255&n;2===o?(n=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,i[s++]=255&n):1===o&&(n=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,i[s++]=n>>8&255,i[s++]=255&n);return i},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o="",i=[],a=0,s=r-n;a>2],o+=u[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=u[t>>10],o+=u[t>>4&63],o+=u[t<<2&63],o+="=");return i.push(o),i.join("")};for(var u=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o>18&63]+u[o>>12&63]+u[o>>6&63]+u[63&o]);return i.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],59:[function(e,t,r){"use strict";var n=e("base64-js"),i=e("ieee754");r.Buffer=f,r.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},r.INSPECT_MAX_BYTES=50;var o=2147483647;function a(e){if(o>>1;case"base64":return I(e).length;default:if(n)return M(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s/=a=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return g(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return m(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return 0t&&(e+=" ... ")),""},f.prototype.compare=function(e,t,r,n,o){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&r<=t)return 0;if(o<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(n,o),c=e.slice(t,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||othis.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i,a,s,u,c,l,f,d,h,p=!1;;)switch(n){case"hex":return _(this,e,t,r);case"utf8":case"utf-8":return d=t,h=r,T(M(e,(f=this).length-d),f,d,h);case"ascii":return v(this,e,t,r);case"latin1":case"binary":return v(this,e,t,r);case"base64":return u=this,c=t,l=r,T(I(e),u,c,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=t,s=r,T(function(e,t){for(var r,n,o,i=[],a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(e,(i=this).length-a),i,a,s);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function x(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;oe.length)throw new RangeError("Index out of range")}function C(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function A(e,t,r,n,o){return t=+t,r>>>=0,o||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function P(e,t,r,n,o){return t=+t,r>>>=0,o||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}f.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r>>=0,t>>>=0,r||S(e,t,this.length);for(var n=this[e],o=1,i=0;++i>>=0,t>>>=0,r||S(e,t,this.length);for(var n=this[e+--t],o=1;0>>=0,t||S(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||S(e,t,this.length);for(var n=this[e],o=1,i=0;++i>>=0,t>>>=0,r||S(e,t,this.length);for(var n=t,o=1,i=this[e+--n];0>>=0,t||S(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||S(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){e>>>=0,t||S(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||S(e,4,this.length),i.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||S(e,4,this.length),i.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||S(e,8,this.length),i.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||S(e,8,this.length),i.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||E(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,n)||E(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;0<=--o&&(i*=256);)this[t+o]=e/i&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||E(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},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||E(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},f.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);E(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);E(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;0<=--i&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||E(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||E(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},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||E(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},f.prototype.writeFloatLE=function(e,t,r){return A(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return A(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return P(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return P(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,n){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),0=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function I(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function T(e,t,r,n){for(var o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function L(e){return e instanceof ArrayBuffer||null!=e&&null!=e.constructor&&"ArrayBuffer"===e.constructor.name&&"number"==typeof e.byteLength}function F(e){return e!=e}},{"base64-js":58,ieee754:495}],60:[function(e,t,r){(function(O){var e=function(){"use strict";function m(e,t){return null!=t&&e instanceof t}var g,w,x;try{g=Map}catch(e){g=function(){}}try{w=Set}catch(e){w=function(){}}try{x=Promise}catch(e){x=function(){}}function k(e,h,t,p,b){"object"==typeof h&&(t=h.depth,p=h.prototype,b=h.includeNonEnumerable,h=h.circular);var y=[],_=[],v=void 0!==O;return void 0===h&&(h=!0),void 0===t&&(t=1/0),function o(e,i){if(null===e)return null;if(0===i)return e;var a,t;if("object"!=typeof e)return e;if(m(e,g))a=new g;else if(m(e,w))a=new w;else if(m(e,x))a=new x(function(t,r){e.then(function(e){t(o(e,i-1))},function(e){r(o(e,i-1))})});else if(k.__isArray(e))a=[];else if(k.__isRegExp(e))a=new RegExp(e.source,j(e)),e.lastIndex&&(a.lastIndex=e.lastIndex);else if(k.__isDate(e))a=new Date(e.getTime());else{if(v&&O.isBuffer(e))return a=new O(e.length),e.copy(a),a;m(e,Error)?a=Object.create(e):void 0===p?(t=Object.getPrototypeOf(e),a=Object.create(t)):(a=Object.create(p),t=p)}if(h){var r=y.indexOf(e);if(-1!=r)return _[r];y.push(e),_.push(a)}for(var n in m(e,g)&&e.forEach(function(e,t){var r=o(t,i-1),n=o(e,i-1);a.set(r,n)}),m(e,w)&&e.forEach(function(e){var t=o(e,i-1);a.add(t)}),e){var s;t&&(s=Object.getOwnPropertyDescriptor(t,n)),s&&null==s.set||(a[n]=o(e[n],i-1))}if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;na;)i.call(e,n=o[a++])&&t.push(n);return t}},{"./_object-gops":113,"./_object-keys":116,"./_object-pie":117}],84:[function(e,t,r){var b=e("./_global"),y=e("./_core"),_=e("./_ctx"),v=e("./_hide"),m="prototype",g=function(e,t,r){var n,o,i,a=e&g.F,s=e&g.G,u=e&g.S,c=e&g.P,l=e&g.B,f=e&g.W,d=s?y:y[t]||(y[t]={}),h=d[m],p=s?b:u?b[t]:(b[t]||{})[m];for(n in s&&(r=t),r)(o=!a&&p&&void 0!==p[n])&&n in d||(i=o?p[n]:r[n],d[n]=s&&"function"!=typeof p[n]?r[n]:l&&o?_(i,b):f&&p[n]==i?function(n){var e=function(e,t,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(e);case 2:return new n(e,t)}return new n(e,t,r)}return n.apply(this,arguments)};return e[m]=n[m],e}(i):c&&"function"==typeof i?_(Function.call,i):i,c&&((d.virtual||(d.virtual={}))[n]=i,e&g.R&&h&&!h[n]&&v(h,n,i)))};g.F=1,g.G=2,g.S=4,g.P=8,g.B=16,g.W=32,g.U=64,g.R=128,t.exports=g},{"./_core":76,"./_ctx":78,"./_global":87,"./_hide":89}],85:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],86:[function(e,t,r){var d=e("./_ctx"),h=e("./_iter-call"),p=e("./_is-array-iter"),b=e("./_an-object"),y=e("./_to-length"),_=e("./core.get-iterator-method"),v={},m={};(r=t.exports=function(e,t,r,n,o){var i,a,s,u,c=o?function(){return e}:_(e),l=d(r,n,t?2:1),f=0;if("function"!=typeof c)throw TypeError(e+" is not iterable!");if(p(c)){for(i=y(e.length);fdocument.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l[c][a[r]];return l()};e.exports=Object.create||function(e,t){var r;return null!==e?(u[c]=o(e),r=new u,u[c]=null,r[s]=e):r=l(),void 0===t?r:i(r,t)}},{"./_an-object":72,"./_dom-create":81,"./_enum-bug-keys":82,"./_html":90,"./_object-dps":109,"./_shared-key":126}],108:[function(e,t,r){var n=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),a=Object.defineProperty;r.f=e("./_descriptors")?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},{"./_an-object":72,"./_descriptors":80,"./_ie8-dom-define":91,"./_to-primitive":136}],109:[function(e,t,r){var a=e("./_object-dp"),s=e("./_an-object"),u=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){s(e);for(var r,n=u(t),o=n.length,i=0;io;)a(n,r=t[o++])&&(~u(i,r)||i.push(r));return i}},{"./_array-includes":73,"./_has":88,"./_shared-key":126,"./_to-iobject":133}],116:[function(e,t,r){var n=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return n(e,o)}},{"./_enum-bug-keys":82,"./_object-keys-internal":115}],117:[function(e,t,r){r.f={}.propertyIsEnumerable},{}],118:[function(e,t,r){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],119:[function(e,t,r){var n=e("./_an-object"),o=e("./_is-object"),i=e("./_new-promise-capability");t.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},{"./_an-object":72,"./_is-object":96,"./_new-promise-capability":106}],120:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],121:[function(e,t,r){var o=e("./_hide");t.exports=function(e,t,r){for(var n in t)r&&e[n]?e[n]=t[n]:o(e,n,t[n]);return e}},{"./_hide":89}],122:[function(e,t,r){t.exports=e("./_hide")},{"./_hide":89}],123:[function(t,e,r){var n=t("./_is-object"),o=t("./_an-object"),i=function(e,t){if(o(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{(n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2))(e,[]),r=!(e instanceof Array)}catch(e){r=!0}return function(e,t){return i(e,t),r?e.__proto__=t:n(e,t),e}}({},!1):void 0),check:i}},{"./_an-object":72,"./_ctx":78,"./_is-object":96,"./_object-gopd":110}],124:[function(e,t,r){"use strict";var n=e("./_global"),o=e("./_core"),i=e("./_object-dp"),a=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t="function"==typeof o[e]?o[e]:n[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_core":76,"./_descriptors":80,"./_global":87,"./_object-dp":108,"./_wks":140}],125:[function(e,t,r){var n=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},{"./_has":88,"./_object-dp":108,"./_wks":140}],126:[function(e,t,r){var n=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return n[e]||(n[e]=o(e))}},{"./_shared":127,"./_uid":137}],127:[function(e,t,r){var n=e("./_global"),o="__core-js_shared__",i=n[o]||(n[o]={});t.exports=function(e){return i[e]||(i[e]={})}},{"./_global":87}],128:[function(e,t,r){var o=e("./_an-object"),i=e("./_a-function"),a=e("./_wks")("species");t.exports=function(e,t){var r,n=o(e).constructor;return void 0===n||null==(r=o(n)[a])?t:i(r)}},{"./_a-function":69,"./_an-object":72,"./_wks":140}],129:[function(e,t,r){var u=e("./_to-integer"),c=e("./_defined");t.exports=function(s){return function(e,t){var r,n,o=String(c(e)),i=u(t),a=o.length;return i<0||a<=i?s?"":void 0:(r=o.charCodeAt(i))<55296||56319r;)t.push(arguments[r++]);return _[++y]=function(){s("function"==typeof e?e:Function(e),t)},n(y),y},h=function(e){delete _[e]},"process"==e("./_cof")(f)?n=function(e){f.nextTick(a(m,e,1))}:b&&b.now?n=function(e){b.now(a(m,e,1))}:p?(i=(o=new p).port2,o.port1.onmessage=g,n=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",g,!1)):n=v in c("script")?function(e){u.appendChild(c("script"))[v]=function(){u.removeChild(this),m.call(e)}}:function(e){setTimeout(a(m,e,1),0)}),t.exports={set:d,clear:h}},{"./_cof":75,"./_ctx":78,"./_dom-create":81,"./_global":87,"./_html":90,"./_invoke":92}],131:[function(e,t,r){var n=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return(e=n(e))<0?o(e+t,0):i(e,t)}},{"./_to-integer":132}],132:[function(e,t,r){var n=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(0=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":70,"./_iter-define":99,"./_iter-step":101,"./_iterators":102,"./_to-iobject":133}],144:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{create:e("./_object-create")})},{"./_export":84,"./_object-create":107}],145:[function(e,t,r){var n=e("./_export");n(n.S+n.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":80,"./_export":84,"./_object-dp":108}],146:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{setPrototypeOf:e("./_set-proto").set})},{"./_export":84,"./_set-proto":123}],147:[function(e,t,r){},{}],148:[function(r,e,t){"use strict";var n,o,i,a,s=r("./_library"),u=r("./_global"),c=r("./_ctx"),l=r("./_classof"),f=r("./_export"),d=r("./_is-object"),h=r("./_a-function"),p=r("./_an-instance"),b=r("./_for-of"),y=r("./_species-constructor"),_=r("./_task").set,v=r("./_microtask")(),m=r("./_new-promise-capability"),g=r("./_perform"),w=r("./_promise-resolve"),x="Promise",k=u.TypeError,j=u.process,O=u[x],S="process"==l(j),E=function(){},C=o=m.f,A=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[r("./_wks")("species")]=function(e){e(E,E)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(E)instanceof t}catch(e){}}(),P=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},R=function(c,r){if(!c._n){c._n=!0;var n=c._c;v(function(){for(var s=c._v,u=1==c._s,e=0,t=function(e){var t,r,n=u?e.ok:e.fail,o=e.resolve,i=e.reject,a=e.domain;try{n?(u||(2==c._h&&I(c),c._h=1),!0===n?t=s:(a&&a.enter(),t=n(s),a&&a.exit()),t===e.promise?i(k("Promise-chain cycle")):(r=P(t))?r.call(t,o,i):o(t)):i(s)}catch(e){i(e)}};n.length>e;)t(n[e++]);c._c=[],c._n=!1,r&&!c._h&&D(c)})}},D=function(i){_.call(u,function(){var e,t,r,n=i._v,o=M(i);if(o&&(e=g(function(){S?j.emit("unhandledRejection",n,i):(t=u.onunhandledrejection)?t({promise:i,reason:n}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",n)}),i._h=S||M(i)?2:1),i._a=void 0,o&&e.e)throw e.v})},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},I=function(t){_.call(u,function(){var e;S?j.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},T=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},L=function(e){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw k("Promise can't be resolved itself");(r=P(e))?v(function(){var t={_w:n,_d:!1};try{r.call(e,c(L,t,1),c(T,t,1))}catch(e){T.call(t,e)}}):(n._v=e,n._s=1,R(n,!1))}catch(e){T.call({_w:n,_d:!1},e)}}};A||(O=function(e){p(this,O,x,"_h"),h(e),n.call(this);try{e(c(L,this,1),c(T,this,1))}catch(e){T.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r("./_redefine-all")(O.prototype,{then:function(e,t){var r=C(y(this,O));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=S?j.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&R(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n;this.promise=e,this.resolve=c(L,e,1),this.reject=c(T,e,1)},m.f=C=function(e){return e===O||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!A,{Promise:O}),r("./_set-to-string-tag")(O,x),r("./_set-species")(x),a=r("./_core")[x],f(f.S+f.F*!A,x,{reject:function(e){var t=C(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!A),x,{resolve:function(e){return w(s&&this===a?O:this,e)}}),f(f.S+f.F*!(A&&r("./_iter-detect")(function(e){O.all(e).catch(E)})),x,{all:function(e){var a=this,t=C(a),s=t.resolve,u=t.reject,r=g(function(){var n=[],o=0,i=1;b(e,!1,function(e){var t=o++,r=!1;n.push(void 0),i++,a.resolve(e).then(function(e){r||(r=!0,n[t]=e,--i||s(n))},u)}),--i||s(n)});return r.e&&u(r.v),t.promise},race:function(e){var t=this,r=C(t),n=r.reject,o=g(function(){b(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},{"./_a-function":69,"./_an-instance":71,"./_classof":74,"./_core":76,"./_ctx":78,"./_export":84,"./_for-of":86,"./_global":87,"./_is-object":96,"./_iter-detect":100,"./_library":103,"./_microtask":105,"./_new-promise-capability":106,"./_perform":118,"./_promise-resolve":119,"./_redefine-all":121,"./_set-species":124,"./_set-to-string-tag":125,"./_species-constructor":128,"./_task":130,"./_wks":140}],149:[function(e,t,r){"use strict";var n=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},{"./_iter-define":99,"./_string-at":129}],150:[function(e,t,r){"use strict";var n=e("./_global"),a=e("./_has"),o=e("./_descriptors"),i=e("./_export"),s=e("./_redefine"),u=e("./_meta").KEY,c=e("./_fails"),l=e("./_shared"),f=e("./_set-to-string-tag"),d=e("./_uid"),h=e("./_wks"),p=e("./_wks-ext"),b=e("./_wks-define"),y=e("./_enum-keys"),_=e("./_is-array"),v=e("./_an-object"),m=e("./_is-object"),g=e("./_to-iobject"),w=e("./_to-primitive"),x=e("./_property-desc"),k=e("./_object-create"),j=e("./_object-gopn-ext"),O=e("./_object-gopd"),S=e("./_object-dp"),E=e("./_object-keys"),C=O.f,A=S.f,P=j.f,R=n.Symbol,D=n.JSON,M=D&&D.stringify,I="prototype",T=h("_hidden"),L=h("toPrimitive"),F={}.propertyIsEnumerable,q=l("symbol-registry"),B=l("symbols"),N=l("op-symbols"),$=Object[I],U="function"==typeof R,z=n.QObject,V=!z||!z[I]||!z[I].findChild,G=o&&c(function(){return 7!=k(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=C($,t);n&&delete $[t],A(e,t,r),n&&e!==$&&A($,t,n)}:A,J=function(e){var t=B[e]=k(R[I]);return t._k=e,t},Q=U&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},K=function(e,t,r){return e===$&&K(N,t,r),v(e),t=w(t,!0),v(r),a(B,t)?(r.enumerable?(a(e,T)&&e[T][t]&&(e[T][t]=!1),r=k(r,{enumerable:x(0,!1)})):(a(e,T)||A(e,T,x(1,{})),e[T][t]=!0),G(e,t,r)):A(e,t,r)},H=function(e,t){v(e);for(var r,n=y(t=g(t)),o=0,i=n.length;oo;)a(B,t=r[o++])||t==T||t==u||n.push(t);return n},X=function(e){for(var t,r=e===$,n=P(r?N:g(e)),o=[],i=0;n.length>i;)!a(B,t=n[i++])||r&&!a($,t)||o.push(B[t]);return o};U||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=d(0te;)h(ee[te++]);for(var re=E(h.store),ne=0;re.length>ne;)b(re[ne++]);i(i.S+i.F*!U,"Symbol",{for:function(e){return a(q,e+="")?q[e]:q[e]=R(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in q)if(q[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!U,"Object",{create:function(e,t){return void 0===t?k(e):H(k(e),t)},defineProperty:K,defineProperties:H,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z,getOwnPropertySymbols:X}),D&&i(i.S+i.F*(!U||c(function(){var e=R();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=t=n[1],(m(t)||void 0!==e)&&!Q(e))return _(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Q(t))return t}),n[1]=t,M.apply(D,n)}}),R[I][L]||e("./_hide")(R[I],L,R[I].valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},{"./_an-object":72,"./_descriptors":80,"./_enum-keys":83,"./_export":84,"./_fails":85,"./_global":87,"./_has":88,"./_hide":89,"./_is-array":95,"./_is-object":96,"./_library":103,"./_meta":104,"./_object-create":107,"./_object-dp":108,"./_object-gopd":110,"./_object-gopn":112,"./_object-gopn-ext":111,"./_object-gops":113,"./_object-keys":116,"./_object-pie":117,"./_property-desc":120,"./_redefine":122,"./_set-to-string-tag":125,"./_shared":127,"./_to-iobject":133,"./_to-primitive":136,"./_uid":137,"./_wks":140,"./_wks-define":138,"./_wks-ext":139}],151:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_core"),i=e("./_global"),a=e("./_species-constructor"),s=e("./_promise-resolve");n(n.P+n.R,"Promise",{finally:function(t){var r=a(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return s(r,t()).then(function(){return e})}:t,e?function(e){return s(r,t()).then(function(){throw e})}:t)}})},{"./_core":76,"./_export":84,"./_global":87,"./_promise-resolve":119,"./_species-constructor":128}],152:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_new-promise-capability"),i=e("./_perform");n(n.S,"Promise",{try:function(e){var t=o.f(this),r=i(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},{"./_export":84,"./_new-promise-capability":106,"./_perform":118}],153:[function(e,t,r){e("./_wks-define")("asyncIterator")},{"./_wks-define":138}],154:[function(e,t,r){e("./_wks-define")("observable")},{"./_wks-define":138}],155:[function(e,t,r){e("./es6.array.iterator");for(var n=e("./_global"),o=e("./_hide"),i=e("./_iterators"),a=e("./_wks")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u>>0||(a.test(r)?16:10))}:n},{"./_global":193,"./_string-trim":261,"./_string-ws":262}],240:[function(e,t,r){arguments[4][118][0].apply(r,arguments)},{dup:118}],241:[function(e,t,r){arguments[4][119][0].apply(r,arguments)},{"./_an-object":160,"./_is-object":204,"./_new-promise-capability":221,dup:119}],242:[function(e,t,r){arguments[4][120][0].apply(r,arguments)},{dup:120}],243:[function(e,t,r){var o=e("./_redefine");t.exports=function(e,t,r){for(var n in t)o(e,n,t[n],r);return e}},{"./_redefine":244}],244:[function(e,t,r){var i=e("./_global"),a=e("./_hide"),s=e("./_has"),u=e("./_uid")("src"),n="toString",o=Function[n],c=(""+o).split(n);e("./_core").inspectSource=function(e){return o.call(e)},(t.exports=function(e,t,r,n){var o="function"==typeof r;o&&(s(r,"name")||a(r,"name",t)),e[t]!==r&&(o&&(s(r,u)||a(r,u,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=r:n?e[t]?e[t]=r:a(e,t,r):(delete e[t],a(e,t,r)))})(Function.prototype,n,function(){return"function"==typeof this&&this[u]||o.call(this)})},{"./_core":176,"./_global":193,"./_has":194,"./_hide":195,"./_uid":274}],245:[function(e,t,r){t.exports=function(t,r){var n=r===Object(r)?function(e){return r[e]}:r;return function(e){return String(e).replace(t,n)}}},{}],246:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],247:[function(e,t,r){"use strict";var n=e("./_export"),a=e("./_a-function"),s=e("./_ctx"),u=e("./_for-of");t.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,o,i=arguments[1];return a(this),(t=void 0!==i)&&a(i),null==e?new this:(r=[],t?(n=0,o=s(i,arguments[2],2),u(e,!1,function(e){r.push(o(e,n++))})):u(e,!1,r.push,r),new this(r))}})}},{"./_a-function":156,"./_ctx":178,"./_export":186,"./_for-of":192}],248:[function(e,t,r){"use strict";var n=e("./_export");t.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},{"./_export":186}],249:[function(e,t,r){arguments[4][123][0].apply(r,arguments)},{"./_an-object":160,"./_ctx":178,"./_is-object":204,"./_object-gopd":227,dup:123}],250:[function(e,t,r){"use strict";var n=e("./_global"),o=e("./_object-dp"),i=e("./_descriptors"),a=e("./_wks")("species");t.exports=function(e){var t=n[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},{"./_descriptors":182,"./_global":193,"./_object-dp":224,"./_wks":279}],251:[function(e,t,r){arguments[4][125][0].apply(r,arguments)},{"./_has":194,"./_object-dp":224,"./_wks":279,dup:125}],252:[function(e,t,r){arguments[4][126][0].apply(r,arguments)},{"./_shared":253,"./_uid":274,dup:126}],253:[function(e,t,r){arguments[4][127][0].apply(r,arguments)},{"./_global":193,dup:127}],254:[function(e,t,r){arguments[4][128][0].apply(r,arguments)},{"./_a-function":156,"./_an-object":160,"./_wks":279,dup:128}],255:[function(e,t,r){"use strict";var n=e("./_fails");t.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},{"./_fails":188}],256:[function(e,t,r){arguments[4][129][0].apply(r,arguments)},{"./_defined":181,"./_to-integer":266,dup:129}],257:[function(e,t,r){var n=e("./_is-regexp"),o=e("./_defined");t.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(e))}},{"./_defined":181,"./_is-regexp":205}],258:[function(e,t,r){var n=e("./_export"),o=e("./_fails"),a=e("./_defined"),s=/"/g,i=function(e,t,r,n){var o=String(a(e)),i="<"+t;return""!==r&&(i+=" "+r+'="'+String(n).replace(s,""")+'"'),i+">"+o+""};t.exports=function(t,e){var r={};r[t]=e(i),n(n.P+n.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||3u&&(c=c.slice(0,u)),n?c+o:o+c}},{"./_defined":181,"./_string-repeat":260,"./_to-length":268}],260:[function(e,t,r){"use strict";var o=e("./_to-integer"),i=e("./_defined");t.exports=function(e){var t=String(i(this)),r="",n=o(e);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;0>>=1)&&(t+=t))1&n&&(r+=t);return r}},{"./_defined":181,"./_to-integer":266}],261:[function(e,t,r){var a=e("./_export"),n=e("./_defined"),s=e("./_fails"),u=e("./_string-ws"),o="["+u+"]",i=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),l=function(e,t,r){var n={},o=s(function(){return!!u[e]()||"​…"!="​…"[e]()}),i=n[e]=o?t(f):u[e];r&&(n[r]=i),a(a.P+a.F*o,"String",n)},f=l.trim=function(e,t){return e=String(n(e)),1&t&&(e=e.replace(i,"")),2&t&&(e=e.replace(c,"")),e};t.exports=l},{"./_defined":181,"./_export":186,"./_fails":188,"./_string-ws":262}],262:[function(e,t,r){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],263:[function(e,t,r){arguments[4][130][0].apply(r,arguments)},{"./_cof":171,"./_ctx":178,"./_dom-create":183,"./_global":193,"./_html":196,"./_invoke":199,dup:130}],264:[function(e,t,r){arguments[4][131][0].apply(r,arguments)},{"./_to-integer":266,dup:131}],265:[function(e,t,r){var n=e("./_to-integer"),o=e("./_to-length");t.exports=function(e){if(void 0===e)return 0;var t=n(e),r=o(t);if(t!==r)throw RangeError("Wrong length!");return r}},{"./_to-integer":266,"./_to-length":268}],266:[function(e,t,r){arguments[4][132][0].apply(r,arguments)},{dup:132}],267:[function(e,t,r){arguments[4][133][0].apply(r,arguments)},{"./_defined":181,"./_iobject":200,dup:133}],268:[function(e,t,r){arguments[4][134][0].apply(r,arguments)},{"./_to-integer":266,dup:134}],269:[function(e,t,r){arguments[4][135][0].apply(r,arguments)},{"./_defined":181,dup:135}],270:[function(e,t,r){arguments[4][136][0].apply(r,arguments)},{"./_is-object":204,dup:136}],271:[function(e,t,r){"use strict";if(e("./_descriptors")){var _=e("./_library"),v=e("./_global"),m=e("./_fails"),g=e("./_export"),w=e("./_typed"),n=e("./_typed-buffer"),d=e("./_ctx"),x=e("./_an-instance"),o=e("./_property-desc"),k=e("./_hide"),i=e("./_redefine-all"),a=e("./_to-integer"),j=e("./_to-length"),O=e("./_to-index"),s=e("./_to-absolute-index"),u=e("./_to-primitive"),c=e("./_has"),S=e("./_classof"),E=e("./_is-object"),h=e("./_to-object"),p=e("./_is-array-iter"),C=e("./_object-create"),A=e("./_object-gpo"),P=e("./_object-gopn").f,b=e("./core.get-iterator-method"),l=e("./_uid"),f=e("./_wks"),y=e("./_array-methods"),R=e("./_array-includes"),D=e("./_species-constructor"),M=e("./es6.array.iterator"),I=e("./_iterators"),T=e("./_iter-detect"),L=e("./_set-species"),F=e("./_array-fill"),q=e("./_array-copy-within"),B=e("./_object-dp"),N=e("./_object-gopd"),$=B.f,U=N.f,z=v.RangeError,V=v.TypeError,G=v.Uint8Array,J="ArrayBuffer",Q="Shared"+J,K="BYTES_PER_ELEMENT",H="prototype",W=Array[H],Y=n.ArrayBuffer,Z=n.DataView,X=y(0),ee=y(2),te=y(3),re=y(4),ne=y(5),oe=y(6),ie=R(!0),ae=R(!1),se=M.values,ue=M.keys,ce=M.entries,le=W.lastIndexOf,fe=W.reduce,de=W.reduceRight,he=W.join,pe=W.sort,be=W.slice,ye=W.toString,_e=W.toLocaleString,ve=f("iterator"),me=f("toStringTag"),ge=l("typed_constructor"),we=l("def_constructor"),xe=w.CONSTR,ke=w.TYPED,je=w.VIEW,Oe="Wrong length!",Se=y(1,function(e,t){return Re(D(e,e[we]),t)}),Ee=m(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),Ce=!!G&&!!G[H].set&&m(function(){new G(1).set({})}),Ae=function(e,t){var r=a(e);if(r<0||r%t)throw z("Wrong offset!");return r},Pe=function(e){if(E(e)&&ke in e)return e;throw V(e+" is not a typed array!")},Re=function(e,t){if(!(E(e)&&ge in e))throw V("It is not a typed array constructor!");return new e(t)},De=function(e,t){return Me(D(e,e[we]),t)},Me=function(e,t){for(var r=0,n=t.length,o=Re(e,n);r>1,l=23===t?A(2,-24)-A(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=C(e))!=e||e===S?(o=e!=e?1:0,n=u):(n=P(R(e)/D),e*(i=A(2,-n))<1&&(n--,i*=2),2<=(e+=1<=n+c?l/i:l*A(2,1-c))*i&&(n++,i/=2),u<=n+c?(o=0,n=u):1<=n+c?(o=(e*i-1)*A(2,t),n+=c):(o=e*A(2,c-1)*A(2,t),n=0));8<=t;a[f++]=255&o,o/=256,t-=8);for(n=n<>1,s=o-7,u=r-1,c=e[u--],l=127&c;for(c>>=7;0>=-s,s+=t;0>8&255]}function z(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function V(e){return q(e,52,8)}function G(e){return q(e,23,4)}function J(e,t,r){b(e[g],t,{get:function(){return this[r]}})}function Q(e,t,r,n){var o=h(+r);if(o+t>e[L])throw O(w);var i=e[T]._b,a=o+e[F],s=i.slice(a,a+t);return n?s:s.reverse()}function K(e,t,r,n,o,i){var a=h(+r);if(a+t>e[L])throw O(w);for(var s=e[T]._b,u=a+e[F],c=n(+o),l=0;lZ;)(H=Y[Z++])in x||s(x,H,E[H]);i||(W.constructor=x)}var X=new k(new x(2)),ee=k[g].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||u(k[g],{setInt8:function(e,t){ee.call(this,e,t<<24>>24)},setUint8:function(e,t){ee.call(this,e,t<<24>>24)}},!0)}else x=function(e){l(this,x,v);var t=h(e);this._b=y.call(new Array(t),0),this[L]=t},k=function(e,t,r){l(this,k,m),l(e,x,m);var n=e[L],o=f(t);if(o<0||n>24},getUint8:function(e){return Q(this,1,e)[0]},getInt16:function(e){var t=Q(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Q(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return N(Q(this,4,e,arguments[1]))},getUint32:function(e){return N(Q(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return B(Q(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return B(Q(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,$,t)},setUint8:function(e,t){K(this,1,e,$,t)},setInt16:function(e,t){K(this,2,e,U,t,arguments[2])},setUint16:function(e,t){K(this,2,e,U,t,arguments[2])},setInt32:function(e,t){K(this,4,e,z,t,arguments[2])},setUint32:function(e,t){K(this,4,e,z,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,V,t,arguments[2])}});_(x,v),_(k,m),s(k[g],a.VIEW,!0),r[v]=x,r[m]=k},{"./_an-instance":159,"./_array-fill":162,"./_descriptors":182,"./_fails":188,"./_global":193,"./_hide":195,"./_library":212,"./_object-dp":224,"./_object-gopn":229,"./_redefine-all":243,"./_set-to-string-tag":251,"./_to-index":265,"./_to-integer":266,"./_to-length":268,"./_typed":273}],273:[function(e,t,r){for(var n,o=e("./_global"),i=e("./_hide"),a=e("./_uid"),s=a("typed_array"),u=a("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(n=o[d[f++]])?(i(n.prototype,s,!0),i(n.prototype,u,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},{"./_global":193,"./_hide":195,"./_uid":274}],274:[function(e,t,r){arguments[4][137][0].apply(r,arguments)},{dup:137}],275:[function(e,t,r){var n=e("./_global").navigator;t.exports=n&&n.userAgent||""},{"./_global":193}],276:[function(e,t,r){var n=e("./_is-object");t.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},{"./_is-object":204}],277:[function(e,t,r){arguments[4][138][0].apply(r,arguments)},{"./_core":176,"./_global":193,"./_library":212,"./_object-dp":224,"./_wks-ext":278,dup:138}],278:[function(e,t,r){arguments[4][139][0].apply(r,arguments)},{"./_wks":279,dup:139}],279:[function(e,t,r){arguments[4][140][0].apply(r,arguments)},{"./_global":193,"./_shared":253,"./_uid":274,dup:140}],280:[function(e,t,r){arguments[4][141][0].apply(r,arguments)},{"./_classof":170,"./_core":176,"./_iterators":211,"./_wks":279,dup:141}],281:[function(e,t,r){var n=e("./_export"),o=e("./_replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function(e){return o(e)}})},{"./_export":186,"./_replacer":245}],282:[function(e,t,r){var n=e("./_export");n(n.P,"Array",{copyWithin:e("./_array-copy-within")}),e("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":158,"./_array-copy-within":161,"./_export":186}],283:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(4);n(n.P+n.F*!e("./_strict-method")([].every,!0),"Array",{every:function(e){return o(this,e,arguments[1])}})},{"./_array-methods":165,"./_export":186,"./_strict-method":255}],284:[function(e,t,r){var n=e("./_export");n(n.P,"Array",{fill:e("./_array-fill")}),e("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":158,"./_array-fill":162,"./_export":186}],285:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(2);n(n.P+n.F*!e("./_strict-method")([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},{"./_array-methods":165,"./_export":186,"./_strict-method":255}],286:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(e){return o(this,e,1>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},{"./_export":186}],317:[function(e,t,r){var n=e("./_export"),o=Math.exp;n(n.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},{"./_export":186}],318:[function(e,t,r){var n=e("./_export"),o=e("./_math-expm1");n(n.S+n.F*(o!=Math.expm1),"Math",{expm1:o})},{"./_export":186,"./_math-expm1":213}],319:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{fround:e("./_math-fround")})},{"./_export":186,"./_math-fround":214}],320:[function(e,t,r){var n=e("./_export"),u=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,i=0,a=arguments.length,s=0;i>>16)*i+o*(65535&n>>>16)<<16>>>0)}})},{"./_export":186,"./_fails":188}],322:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},{"./_export":186}],323:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log1p:e("./_math-log1p")})},{"./_export":186,"./_math-log1p":215}],324:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},{"./_export":186}],325:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{sign:e("./_math-sign")})},{"./_export":186,"./_math-sign":217}],326:[function(e,t,r){var n=e("./_export"),o=e("./_math-expm1"),i=Math.exp;n(n.S+n.F*e("./_fails")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},{"./_export":186,"./_fails":188,"./_math-expm1":213}],327:[function(e,t,r){var n=e("./_export"),o=e("./_math-expm1"),i=Math.exp;n(n.S,"Math",{tanh:function(e){var t=o(e=+e),r=o(-e);return t==1/0?1:r==1/0?-1:(t-r)/(i(e)+i(-e))}})},{"./_export":186,"./_math-expm1":213}],328:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{trunc:function(e){return(0x;x++)o(b,g=w[x])&&!o(p,g)&&f(p,g,c(b,g));(p.prototype=y).constructor=p,e("./_redefine")(n,h,p)}},{"./_cof":171,"./_descriptors":182,"./_fails":188,"./_global":193,"./_has":194,"./_inherit-if-required":198,"./_object-create":223,"./_object-dp":224,"./_object-gopd":227,"./_object-gopn":229,"./_redefine":244,"./_string-trim":261,"./_to-primitive":270}],330:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":186}],331:[function(e,t,r){var n=e("./_export"),o=e("./_global").isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},{"./_export":186,"./_global":193}],332:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{isInteger:e("./_is-integer")})},{"./_export":186,"./_is-integer":203}],333:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{isNaN:function(e){return e!=e}})},{"./_export":186}],334:[function(e,t,r){var n=e("./_export"),o=e("./_is-integer"),i=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},{"./_export":186,"./_is-integer":203}],335:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":186}],336:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":186}],337:[function(e,t,r){var n=e("./_export"),o=e("./_parse-float");n(n.S+n.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},{"./_export":186,"./_parse-float":238}],338:[function(e,t,r){var n=e("./_export"),o=e("./_parse-int");n(n.S+n.F*(Number.parseInt!=o),"Number",{parseInt:o})},{"./_export":186,"./_parse-int":239}],339:[function(e,t,r){"use strict";var n=e("./_export"),c=e("./_to-integer"),l=e("./_a-number-value"),f=e("./_string-repeat"),o=1..toFixed,i=Math.floor,a=[0,0,0,0,0,0],d="Number.toFixed: incorrect invocation!",h=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*a[r],a[r]=n%1e7,n=i(n/1e7)},p=function(e){for(var t=6,r=0;0<=--t;)r+=a[t],a[t]=i(r/e),r=r%e*1e7},b=function(){for(var e=6,t="";0<=--e;)if(""!==t||0===e||0!==a[e]){var r=String(a[e]);t=""===t?r:t+f.call("0",7-r.length)+r}return t},y=function(e,t,r){return 0===t?r:t%2==1?y(e,t-1,r*e):y(e*e,t/2,r)};n(n.P+n.F*(!!o&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e("./_fails")(function(){o.call({})})),"Number",{toFixed:function(e){var t,r,n,o,i=l(this,d),a=c(e),s="",u="0";if(a<0||20=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new i(e)}})},{"./_an-object":160,"./_export":186,"./_iter-create":207}],366:[function(e,t,r){var n=e("./_object-gopd"),o=e("./_export"),i=e("./_an-object");o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(i(e),t)}})},{"./_an-object":160,"./_export":186,"./_object-gopd":227}],367:[function(e,t,r){var n=e("./_export"),o=e("./_object-gpo"),i=e("./_an-object");n(n.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},{"./_an-object":160,"./_export":186,"./_object-gpo":231}],368:[function(e,t,r){var a=e("./_object-gopd"),s=e("./_object-gpo"),u=e("./_has"),n=e("./_export"),c=e("./_is-object"),l=e("./_an-object");n(n.S,"Reflect",{get:function e(t,r){var n,o,i=arguments.length<3?t:arguments[2];return l(t)===i?t[r]:(n=a.f(t,r))?u(n,"value")?n.value:void 0!==n.get?n.get.call(i):void 0:c(o=s(t))?e(o,r,i):void 0}})},{"./_an-object":160,"./_export":186,"./_has":194,"./_is-object":204,"./_object-gopd":227,"./_object-gpo":231}],369:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{has:function(e,t){return t in e}})},{"./_export":186}],370:[function(e,t,r){var n=e("./_export"),o=e("./_an-object"),i=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},{"./_an-object":160,"./_export":186}],371:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{ownKeys:e("./_own-keys")})},{"./_export":186,"./_own-keys":237}],372:[function(e,t,r){var n=e("./_export"),o=e("./_an-object"),i=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(e){return!1}}})},{"./_an-object":160,"./_export":186}],373:[function(e,t,r){var n=e("./_export"),o=e("./_set-proto");o&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},{"./_export":186,"./_set-proto":249}],374:[function(e,t,r){var u=e("./_object-dp"),c=e("./_object-gopd"),l=e("./_object-gpo"),f=e("./_has"),n=e("./_export"),d=e("./_property-desc"),h=e("./_an-object"),p=e("./_is-object");n(n.S,"Reflect",{set:function e(t,r,n){var o,i,a=arguments.length<4?t:arguments[3],s=c.f(h(t),r);if(!s){if(p(i=l(t)))return e(i,r,n,a);s=d(0)}return f(s,"value")?!(!1===s.writable||!p(a)||((o=c.f(a,r)||d(0)).value=n,u.f(a,r,o),0)):void 0!==s.set&&(s.set.call(a,n),!0)}})},{"./_an-object":160,"./_export":186,"./_has":194,"./_is-object":204,"./_object-dp":224,"./_object-gopd":227,"./_object-gpo":231,"./_property-desc":242}],375:[function(e,t,r){var n=e("./_global"),i=e("./_inherit-if-required"),o=e("./_object-dp").f,a=e("./_object-gopn").f,s=e("./_is-regexp"),u=e("./_flags"),c=n.RegExp,l=c,f=c.prototype,d=/a/g,h=/a/g,p=new c(d)!==d;if(e("./_descriptors")&&(!p||e("./_fails")(function(){return h[e("./_wks")("match")]=!1,c(d)!=d||c(h)==h||"/a/i"!=c(d,"i")}))){c=function(e,t){var r=this instanceof c,n=s(e),o=void 0===t;return!r&&n&&e.constructor===c&&o?e:i(p?new l(n&&!o?e.source:e,t):l((n=e instanceof c)?e.source:e,n&&o?u.call(e):t),r?this:f,c)};for(var b=function(t){t in c||o(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},y=a(l),_=0;y.length>_;)b(y[_++]);(f.constructor=c).prototype=f,e("./_redefine")(n,"RegExp",c)}e("./_set-species")("RegExp")},{"./_descriptors":182,"./_fails":188,"./_flags":190,"./_global":193,"./_inherit-if-required":198,"./_is-regexp":205,"./_object-dp":224,"./_object-gopn":229,"./_redefine":244,"./_set-species":250,"./_wks":279}],376:[function(e,t,r){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":182,"./_flags":190,"./_object-dp":224}],377:[function(e,t,r){e("./_fix-re-wks")("match",1,function(n,o,e){return[function(e){"use strict";var t=n(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,t):new RegExp(e)[o](String(t))},e]})},{"./_fix-re-wks":189}],378:[function(e,t,r){e("./_fix-re-wks")("replace",2,function(o,i,a){return[function(e,t){"use strict";var r=o(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,r,t):a.call(String(r),e,t)},a]})},{"./_fix-re-wks":189}],379:[function(e,t,r){e("./_fix-re-wks")("search",1,function(n,o,e){return[function(e){"use strict";var t=n(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,t):new RegExp(e)[o](String(t))},e]})},{"./_fix-re-wks":189}],380:[function(t,e,r){t("./_fix-re-wks")("split",2,function(o,i,a){"use strict";var h=t("./_is-regexp"),p=a,b=[].push,e="split",y="length";if("c"=="abbc"[e](/(b)*/)[1]||4!="test"[e](/(?:)/,-1)[y]||2!="ab"[e](/(?:ab)*/)[y]||4!="."[e](/(.?)(.?)/)[y]||1<"."[e](/()()/)[y]||""[e](/.?/)[y]){var _=void 0===/()??/.exec("")[1];a=function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!h(e))return p.call(r,e,t);var n,o,i,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=void 0===t?4294967295:t>>>0,d=new RegExp(e.source,c+"g");for(_||(n=new RegExp("^"+d.source+"$(?!\\s)",c));(o=d.exec(r))&&!(l<(i=o.index+o[0][y])&&(u.push(r.slice(l,o.index)),!_&&1=f));)d.lastIndex===o.index&&d.lastIndex++;return l===r[y]?!a&&d.test("")||u.push(""):u.push(r.slice(l)),u[y]>f?u.slice(0,f):u}}else"0"[e](void 0,0)[y]&&(a=function(e,t){return void 0===e&&0===t?[]:p.call(this,e,t)});return[function(e,t){var r=o(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,r,t):a.call(String(r),e,t)},a]})},{"./_fix-re-wks":189,"./_is-regexp":205}],381:[function(t,e,r){"use strict";t("./es6.regexp.flags");var n=t("./_an-object"),o=t("./_flags"),i=t("./_descriptors"),a="toString",s=/./[a],u=function(e){t("./_redefine")(RegExp.prototype,a,e,!0)};t("./_fails")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)}):s.name!=a&&u(function(){return s.call(this)})},{"./_an-object":160,"./_descriptors":182,"./_fails":188,"./_flags":190,"./_redefine":244,"./es6.regexp.flags":376}],382:[function(e,t,r){"use strict";var n=e("./_collection-strong"),o=e("./_validate-collection");t.exports=e("./_collection")("Set",function(e){return function(){return e(this,0>10),t%1024+56320))}return r.join("")}})},{"./_export":186,"./_to-absolute-index":264}],393:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_string-context");n(n.P+n.F*e("./_fails-is-regexp")("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,1>>0,i=r>>>0;return(t>>>0)+(n>>>0)+((o&i|(o|i)&~(o+i>>>0))>>>31)|0}})},{"./_export":186}],433:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{imulh:function(e,t){var r=+e,n=+t,o=65535&r,i=65535&n,a=r>>16,s=n>>16,u=(a*i>>>0)+(o*i>>>16);return a*s+(u>>16)+((o*s>>>0)+(65535&u)>>16)}})},{"./_export":186}],434:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{isubh:function(e,t,r,n){var o=e>>>0,i=r>>>0;return(t>>>0)-(n>>>0)-((~o&i|~(o^i)&o-i>>>0)>>>31)|0}})},{"./_export":186}],435:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},{"./_export":186}],436:[function(e,t,r){var n=e("./_export"),o=Math.PI/180;n(n.S,"Math",{radians:function(e){return e*o}})},{"./_export":186}],437:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{scale:e("./_math-scale")})},{"./_export":186,"./_math-scale":216}],438:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:0>>16,s=n>>>16,u=(a*i>>>0)+(o*i>>>16);return a*s+(u>>>16)+((o*s>>>0)+(65535&u)>>>16)}})},{"./_export":186}],440:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_to-object"),i=e("./_a-function"),a=e("./_object-dp");e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__defineGetter__:function(e,t){a.f(o(this),e,{get:i(t),enumerable:!0,configurable:!0})}})},{"./_a-function":156,"./_descriptors":182,"./_export":186,"./_object-dp":224,"./_object-forced-pam":226,"./_to-object":269}],441:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_to-object"),i=e("./_a-function"),a=e("./_object-dp");e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__defineSetter__:function(e,t){a.f(o(this),e,{set:i(t),enumerable:!0,configurable:!0})}})},{"./_a-function":156,"./_descriptors":182,"./_export":186,"./_object-dp":224,"./_object-forced-pam":226,"./_to-object":269}],442:[function(e,t,r){var n=e("./_export"),o=e("./_object-to-array")(!0);n(n.S,"Object",{entries:function(e){return o(e)}})},{"./_export":186,"./_object-to-array":236}],443:[function(e,t,r){var n=e("./_export"),u=e("./_own-keys"),c=e("./_to-iobject"),l=e("./_object-gopd"),f=e("./_create-property");n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=c(e),o=l.f,i=u(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&f(a,t,r);return a}})},{"./_create-property":177,"./_export":186,"./_object-gopd":227,"./_own-keys":237,"./_to-iobject":267}],444:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_to-object"),i=e("./_to-primitive"),a=e("./_object-gpo"),s=e("./_object-gopd").f;e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__lookupGetter__:function(e){var t,r=o(this),n=i(e,!0);do{if(t=s(r,n))return t.get}while(r=a(r))}})},{"./_descriptors":182,"./_export":186,"./_object-forced-pam":226,"./_object-gopd":227,"./_object-gpo":231,"./_to-object":269,"./_to-primitive":270}],445:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_to-object"),i=e("./_to-primitive"),a=e("./_object-gpo"),s=e("./_object-gopd").f;e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__lookupSetter__:function(e){var t,r=o(this),n=i(e,!0);do{if(t=s(r,n))return t.set}while(r=a(r))}})},{"./_descriptors":182,"./_export":186,"./_object-forced-pam":226,"./_object-gopd":227,"./_object-gpo":231,"./_to-object":269,"./_to-primitive":270}],446:[function(e,t,r){var n=e("./_export"),o=e("./_object-to-array")(!1);n(n.S,"Object",{values:function(e){return o(e)}})},{"./_export":186,"./_object-to-array":236}],447:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_global"),a=e("./_core"),o=e("./_microtask")(),s=e("./_wks")("observable"),u=e("./_a-function"),c=e("./_an-object"),l=e("./_an-instance"),f=e("./_redefine-all"),d=e("./_hide"),h=e("./_for-of"),p=h.RETURN,b=function(e){return null==e?void 0:u(e)},y=function(e){var t=e._c;t&&(e._c=void 0,t())},_=function(e){return void 0===e._o},v=function(e){_(e)||(e._o=void 0,y(e))},m=function(t,e){c(t),this._c=void 0,this._o=t,t=new g(this);try{var r=e(t),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:u(r),this._c=r)}catch(e){return void t.error(e)}_(this)&&y(this)};m.prototype=f({},{unsubscribe:function(){v(this)}});var g=function(e){this._s=e};g.prototype=f({},{next:function(e){var t=this._s;if(!_(t)){var r=t._o;try{var n=b(r.next);if(n)return n.call(r,e)}catch(e){try{v(t)}finally{throw e}}}},error:function(e){var t=this._s;if(_(t))throw e;var r=t._o;t._o=void 0;try{var n=b(r.error);if(!n)throw e;e=n.call(r,e)}catch(e){try{y(t)}finally{throw e}}return y(t),e},complete:function(e){var t=this._s;if(!_(t)){var r=t._o;t._o=void 0;try{var n=b(r.complete);e=n?n.call(r,e):void 0}catch(e){try{y(t)}finally{throw e}}return y(t),e}}});var w=function(e){l(this,w,"Observable","_f")._f=u(e)};f(w.prototype,{subscribe:function(e){return new m(e,this._f)},forEach:function(n){var o=this;return new(a.Promise||i.Promise)(function(e,t){u(n);var r=o.subscribe({next:function(e){try{return n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e})})}}),f(w,{from:function(e){var t="function"==typeof this?this:w,r=b(c(e)[s]);if(r){var n=c(r.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var r=!1;return o(function(){if(!r){try{if(h(e,!1,function(e){if(t.next(e),r)return p})===p)return}catch(e){if(r)throw e;return void t.error(e)}t.complete()}}),function(){r=!0}})},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e>>8^255&o^99,c[r]=o;var i=e[l[o]=r],a=e[i],s=e[a],u=257*e[o]^16843008*o;f[r]=u<<24|u>>>8,d[r]=u<<16|u>>>16,h[r]=u<<8|u>>>24,p[r]=u;u=16843009*s^65537*a^257*i^16843008*r;b[o]=u<<24|u>>>8,y[o]=u<<16|u>>>16,_[o]=u<<8|u>>>24,v[o]=u,r?(r=i^e[e[e[s^i]]],n^=e[e[n]]):r=n=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],n=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],i=0;i>>24]<<24|c[a>>>16&255]<<16|c[a>>>8&255]<<8|c[255&a]):(a=c[(a=a<<8|a>>>24)>>>24]<<24|c[a>>>16&255]<<16|c[a>>>8&255]<<8|c[255&a],a^=m[i/r|0]<<24),o[i]=o[i-r]^a}for(var s=this._invKeySchedule=[],u=0;u>>24]]^y[c[a>>>16&255]]^_[c[a>>>8&255]]^v[c[255&a]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,f,d,h,p,c)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,b,y,_,v,l);r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,s){for(var u=this._nRounds,c=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],d=e[t+3]^r[3],h=4,p=1;p>>24]^o[l>>>16&255]^i[f>>>8&255]^a[255&d]^r[h++],y=n[l>>>24]^o[f>>>16&255]^i[d>>>8&255]^a[255&c]^r[h++],_=n[f>>>24]^o[d>>>16&255]^i[c>>>8&255]^a[255&l]^r[h++],v=n[d>>>24]^o[c>>>16&255]^i[l>>>8&255]^a[255&f]^r[h++];c=b,l=y,f=_,d=v}b=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^r[h++],y=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^r[h++],_=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^r[h++],v=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[h++];e[t]=b,e[t+1]=y,e[t+2]=_,e[t+3]=v},keySize:8});e.AES=t._createHelper(n)}(),o.AES},"object"==typeof r?t.exports=r=o(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],o):o(n.CryptoJS)},{"./cipher-core":480,"./core":481,"./enc-base64":482,"./evpkdf":484,"./md5":486}],480:[function(e,t,r){var n,o;n=this,o=function(e){var a,t,r,n,u,o,i,s,c,l,f,d,h,p,b,y,_,v,m;e.lib.Cipher||(r=(t=e).lib,n=r.Base,u=r.WordArray,o=r.BufferedBlockAlgorithm,(i=t.enc).Utf8,s=i.Base64,c=t.algo.EvpKDF,l=r.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function o(e){return"string"==typeof e?m:_}return function(n){return{encrypt:function(e,t,r){return o(t).encrypt(n,e,t,r)},decrypt:function(e,t,r){return o(t).decrypt(n,e,t,r)}}}}()}),r.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),f=t.mode={},d=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=f.CBC=function(){var e=d.extend();function i(e,t,r){var n=this._iv;if(n){var o=n;this._iv=a}else o=this._prevBlock;for(var i=0;i>>2];e.sigBytes-=t}},r.BlockCipher=l.extend({cfg:l.cfg.extend({mode:h,padding:p}),reset:function(){l.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{n=r.createDecryptor;this._minBufferSize=1}this._mode=n.call(r,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{t=this._process(!0);e.unpad(t)}return t},blockSize:4}),b=r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),y=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=u.create([1398893684,1701076831]).concat(r).concat(t);else n=t;return n.toString(s)},parse:function(e){var t=s.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=u.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return b.create({ciphertext:t,salt:n})}},_=r.SerializableCipher=n.extend({cfg:n.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),a=o.cfg;return b.create({ciphertext:i,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(t.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=u.random(8));var o=c.create({keySize:t+r}).compute(e,n),i=u.create(o.words.slice(t),4*r);return o.sigBytes=4*t,b.create({key:o,iv:i,salt:n})}},m=r.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:v}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=o.iv;var i=_.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=o.iv,_.decrypt.call(this,e,t,o.key,n)}}))},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":481}],481:[function(e,t,r){var n,o;n=this,o=function(){var l,r,e,t,n,f,o,i,a,s,u,c,d=d||(l=Math,r=Object.create||function(){function r(){}return function(e){var t;return r.prototype=e,t=new r,r.prototype=null,t}}(),t=(e={}).lib={},n=t.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),(t.init.prototype=t).$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},f=t.WordArray=n.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||i).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[n+i>>>2]|=a<<24-(n+i)%4*8}else for(i=0;i>>2]=r[i>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=l.ceil(t/4)},clone:function(){var e=n.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t,r=[],n=function(t){t=t;var r=987654321,n=4294967295;return function(){var e=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return e/=4294967296,(e+=.5)*(.5>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new f.init(r,t/2)}},a=o.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new f.init(r,t)}},s=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(a.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return a.parse(unescape(encodeURIComponent(e)))}},u=t.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=s.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,n=t.sigBytes,o=this.blockSize,i=n/(4*o),a=(i=e?l.ceil(i):l.max((0|i)-this._minBufferSize,0))*o,s=l.min(4*a,n);if(a){for(var u=0;u>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o>>6-i%4*2;n[o>>>2]|=(a|s)<<24-o%4*8,o++}return u.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":481}],483:[function(e,t,r){var n,o;n=this,o=function(e){return e.enc.Utf8},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":481}],484:[function(e,t,r){var n,o;n=this,o=function(e){var t,r,n,l,o,i,a;return r=(t=e).lib,n=r.Base,l=r.WordArray,o=t.algo,i=o.MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),o=l.create(),i=o.words,a=r.keySize,s=r.iterations;i.lengthn&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,s=i.words,u=0;u>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],s=e[t+1],u=e[t+2],c=e[t+3],l=e[t+4],f=e[t+5],d=e[t+6],h=e[t+7],p=e[t+8],b=e[t+9],y=e[t+10],_=e[t+11],v=e[t+12],m=e[t+13],g=e[t+14],w=e[t+15],x=i[0],k=i[1],j=i[2],O=i[3];k=P(k=P(k=P(k=P(k=A(k=A(k=A(k=A(k=C(k=C(k=C(k=C(k=E(k=E(k=E(k=E(k,j=E(j,O=E(O,x=E(x,k,j,O,a,7,S[0]),k,j,s,12,S[1]),x,k,u,17,S[2]),O,x,c,22,S[3]),j=E(j,O=E(O,x=E(x,k,j,O,l,7,S[4]),k,j,f,12,S[5]),x,k,d,17,S[6]),O,x,h,22,S[7]),j=E(j,O=E(O,x=E(x,k,j,O,p,7,S[8]),k,j,b,12,S[9]),x,k,y,17,S[10]),O,x,_,22,S[11]),j=E(j,O=E(O,x=E(x,k,j,O,v,7,S[12]),k,j,m,12,S[13]),x,k,g,17,S[14]),O,x,w,22,S[15]),j=C(j,O=C(O,x=C(x,k,j,O,s,5,S[16]),k,j,d,9,S[17]),x,k,_,14,S[18]),O,x,a,20,S[19]),j=C(j,O=C(O,x=C(x,k,j,O,f,5,S[20]),k,j,y,9,S[21]),x,k,w,14,S[22]),O,x,l,20,S[23]),j=C(j,O=C(O,x=C(x,k,j,O,b,5,S[24]),k,j,g,9,S[25]),x,k,c,14,S[26]),O,x,p,20,S[27]),j=C(j,O=C(O,x=C(x,k,j,O,m,5,S[28]),k,j,u,9,S[29]),x,k,h,14,S[30]),O,x,v,20,S[31]),j=A(j,O=A(O,x=A(x,k,j,O,f,4,S[32]),k,j,p,11,S[33]),x,k,_,16,S[34]),O,x,g,23,S[35]),j=A(j,O=A(O,x=A(x,k,j,O,s,4,S[36]),k,j,l,11,S[37]),x,k,h,16,S[38]),O,x,y,23,S[39]),j=A(j,O=A(O,x=A(x,k,j,O,m,4,S[40]),k,j,a,11,S[41]),x,k,c,16,S[42]),O,x,d,23,S[43]),j=A(j,O=A(O,x=A(x,k,j,O,b,4,S[44]),k,j,v,11,S[45]),x,k,w,16,S[46]),O,x,u,23,S[47]),j=P(j,O=P(O,x=P(x,k,j,O,a,6,S[48]),k,j,h,10,S[49]),x,k,g,15,S[50]),O,x,f,21,S[51]),j=P(j,O=P(O,x=P(x,k,j,O,v,6,S[52]),k,j,c,10,S[53]),x,k,y,15,S[54]),O,x,s,21,S[55]),j=P(j,O=P(O,x=P(x,k,j,O,p,6,S[56]),k,j,w,10,S[57]),x,k,d,15,S[58]),O,x,m,21,S[59]),j=P(j,O=P(O,x=P(x,k,j,O,l,6,S[60]),k,j,_,10,S[61]),x,k,u,15,S[62]),O,x,b,21,S[63]),i[0]=i[0]+x|0,i[1]=i[1]+k|0,i[2]=i[2]+j|0,i[3]=i[3]+O|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32;var o=l.floor(r/4294967296),i=r;t[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t[14+(n+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,s=a.words,u=0;u<4;u++){var c=s[u];s[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return a},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});function E(e,t,r,n,o,i,a){var s=e+(t&r|~t&n)+o+a;return(s<>>32-i)+t}function C(e,t,r,n,o,i,a){var s=e+(t&n|r&~n)+o+a;return(s<>>32-i)+t}function A(e,t,r,n,o,i,a){var s=e+(t^r^n)+o+a;return(s<>>32-i)+t}function P(e,t,r,n,o,i,a){var s=e+(r^(t|~n))+o+a;return(s<>>32-i)+t}e.MD5=n._createHelper(i),e.HmacMD5=n._createHmacHelper(i)}(Math),a.MD5},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":481}],487:[function(e,t,r){var n,o;n=this,o=function(e){var t,r,n,o,i,f,a;return r=(t=e).lib,n=r.WordArray,o=r.Hasher,i=t.algo,f=[],a=i.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],u=0;u<80;u++){if(u<16)f[u]=0|e[t+u];else{var c=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=c<<1|c>>>31}var l=(n<<5|n>>>27)+s+f[u];l+=u<20?1518500249+(o&i|~o&a):u<40?1859775393+(o^i^a):u<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,s=a,a=i,i=o<<30|o>>>2,o=n,n=l}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=o._createHelper(a),t.HmacSHA1=o._createHmacHelper(a),e.SHA1},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":481}],488:[function(e,t,r){"use strict";var n=function(){var e=0o){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else a=i[t]=r,++e._eventsCount;return e}function d(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t>1,l=-7,f=r?o-1:0,d=r?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=s;0>=-l,l+=n;0>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(t+=1<=a+f?d/u:d*Math.pow(2,1-f))*u&&(a++,u/=2),l<=a+f?(s=0,a=l):1<=a+f?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));8<=o;e[r+h]=255&s,h+=p,s/=256,o-=8);for(a=a< 9007199254740992 || "+e+" < -9007199254740992)"},string:function(e){return"typeof "+e+' === "string"'}},s=function(e){for(var t=[],r=0;r %d) {",n,r.items.length),c("has additional items"),D("}");else if(r.additionalItems){var f=P();D("for (var %s = %d; %s < %s.length; %s++) {",f,r.items.length,f,n,f),R(n+"["+f+"]",r.additionalItems,o,i,a.concat("additionalItems")),D("}")}if(r.format&&j[r.format]){"string"!==u&&T[r.format]&&D("if (%s) {",F.string(n));var d=C("format");O[d]=j[r.format],"function"==typeof O[d]?D("if (!%s(%s)) {",d,n):D("if (!%s.test(%s)) {",d,n),c("must be "+r.format+" format"),D("}"),"string"!==u&&T[r.format]&&D("}")}if(Array.isArray(r.required)){D("if ((%s)) {","object"!==u?F.object(n):"true"),D("var missing = 0"),r.required.map(function(e){var t=M(n,e);D("if (%s === undefined) {",t),c("is required",t),D("missing++"),D("}")}),D("}"),E||(D("if (missing === 0) {"),e++)}if(r.uniqueItems&&("array"!==u&&D("if (%s) {",F.array(n)),D("if (!(unique(%s))) {",n),c("must be unique"),D("}"),"array"!==u&&D("}")),r.enum){var h=r.enum.some(function(e){return"object"==typeof e})?function(e){return"JSON.stringify("+n+") !== JSON.stringify("+JSON.stringify(e)+")"}:function(e){return n+" !== "+JSON.stringify(e)};D("if (%s) {",r.enum.map(h).join(" && ")||"false"),c("must be an enum value"),D("}")}if(r.dependencies&&("object"!==u&&D("if (%s) {",F.object(n)),Object.keys(r.dependencies).forEach(function(e){var t=r.dependencies[e];"string"==typeof t&&(t=[t]);Array.isArray(t)&&(D("if (%s !== undefined && !(%s)) {",M(n,e),t.map(function(e){return M(n,e)+" !== undefined"}).join(" && ")||"true"),c("dependencies not set"),D("}")),"object"==typeof t&&(D("if (%s !== undefined) {",M(n,e)),R(n,t,o,i,a.concat(["dependencies",e])),D("}"))}),"object"!==u&&D("}")),r.additionalProperties||!1===r.additionalProperties){"object"!==u&&D("if (%s) {",F.object(n));f=P();var p=C("keys"),b=Object.keys(s||{}).map(function(e){return p+"["+f+"] !== "+JSON.stringify(e)}).concat(Object.keys(r.patternProperties||{}).map(function(e){return"!"+A(e)+".test("+p+"["+f+"])"})).join(" && ")||"true";D("var %s = Object.keys(%s)",p,n)("for (var %s = 0; %s < %s.length; %s++) {",f,f,p,f)("if (%s) {",b),!1===r.additionalProperties?(i&&D("delete %s",n+"["+p+"["+f+"]]"),c("has additional properties",null,JSON.stringify(n+".")+" + "+p+"["+f+"]")):R(n+"["+p+"["+f+"]]",r.additionalProperties,o,i,a.concat(["additionalProperties"])),D("}")("}"),"object"!==u&&D("}")}if(r.$ref){var y=function(e,t,n){var o=function(r){return r&&r.id===n?r:"object"==typeof r&&r?Object.keys(r).reduce(function(e,t){return e||o(r[t])},null):null},r=o(e);if(r)return r;n=(n=n.replace(/^#/,"")).replace(/\/$/,"");try{return I.get(e,decodeURI(n))}catch(e){var i,a=n.indexOf("#");if(0!==a)if(-1===a)i=t[n];else{i=t[n.slice(0,a)];var s=n.slice(a).replace(/^#/,"");try{return I.get(i,s)}catch(e){}}else i=t[n];return i||null}}(x,k&&k.schemas||{},r.$ref);if(y){var _=w[r.$ref];_||(w[r.$ref]=function(e){return _(e)},_=q(y,w,x,!1,k));d=C("ref");O[d]=_,D("if (!(%s(%s))) {",d,n),c("referenced schema does not match"),D("}")}}if(r.not){var v=C("prev");D("var %s = errors",v),R(n,r.not,!1,i,a.concat("not")),D("if (%s === errors) {",v),c("negative schema matches"),D("} else {")("errors = %s",v)("}")}if(r.items&&!t){"array"!==u&&D("if (%s) {",F.array(n));f=P();D("for (var %s = 0; %s < %s.length; %s++) {",f,f,n,f),R(n+"["+f+"]",r.items,o,i,a.concat("items")),D("}"),"array"!==u&&D("}")}if(r.patternProperties){"object"!==u&&D("if (%s) {",F.object(n));p=C("keys"),f=P();D("var %s = Object.keys(%s)",p,n)("for (var %s = 0; %s < %s.length; %s++) {",f,f,p,f),Object.keys(r.patternProperties).forEach(function(e){var t=A(e);D("if (%s.test(%s)) {",t,p+"["+f+"]"),R(n+"["+p+"["+f+"]]",r.patternProperties[e],o,i,a.concat(["patternProperties",e])),D("}")}),D("}"),"object"!==u&&D("}")}if(r.pattern){var m=A(r.pattern);"string"!==u&&D("if (%s) {",F.string(n)),D("if (!(%s.test(%s))) {",m,n),c("pattern mismatch"),D("}"),"string"!==u&&D("}")}if(r.allOf&&r.allOf.forEach(function(e,t){R(n,e,o,i,a.concat(["allOf",t]))}),r.anyOf&&r.anyOf.length){v=C("prev");r.anyOf.forEach(function(e,t){0===t?D("var %s = errors",v):D("if (errors !== %s) {",v)("errors = %s",v),R(n,e,!1,!1,a)}),r.anyOf.forEach(function(e,t){t&&D("}")}),D("if (%s !== errors) {",v),c("no schemas match"),D("}")}if(r.oneOf&&r.oneOf.length){v=C("prev");var g=C("passes");D("var %s = errors",v)("var %s = 0",g),r.oneOf.forEach(function(e,t){R(n,e,!1,!1,a),D("if (%s === errors) {",v)("%s++",g)("} else {")("errors = %s",v)("}")}),D("if (%s !== 1) {",g),c("no (or more than one) schemas match"),D("}")}for(void 0!==r.multipleOf&&("number"!==u&&"integer"!==u&&D("if (%s) {",F.number(n)),D("if (!isMultipleOf(%s, %d)) {",n,r.multipleOf),c("has a remainder"),D("}"),"number"!==u&&"integer"!==u&&D("}")),void 0!==r.maxProperties&&("object"!==u&&D("if (%s) {",F.object(n)),D("if (Object.keys(%s).length > %d) {",n,r.maxProperties),c("has more properties than allowed"),D("}"),"object"!==u&&D("}")),void 0!==r.minProperties&&("object"!==u&&D("if (%s) {",F.object(n)),D("if (Object.keys(%s).length < %d) {",n,r.minProperties),c("has less properties than allowed"),D("}"),"object"!==u&&D("}")),void 0!==r.maxItems&&("array"!==u&&D("if (%s) {",F.array(n)),D("if (%s.length > %d) {",n,r.maxItems),c("has more items than allowed"),D("}"),"array"!==u&&D("}")),void 0!==r.minItems&&("array"!==u&&D("if (%s) {",F.array(n)),D("if (%s.length < %d) {",n,r.minItems),c("has less items than allowed"),D("}"),"array"!==u&&D("}")),void 0!==r.maxLength&&("string"!==u&&D("if (%s) {",F.string(n)),D("if (%s.length > %d) {",n,r.maxLength),c("has longer length than allowed"),D("}"),"string"!==u&&D("}")),void 0!==r.minLength&&("string"!==u&&D("if (%s) {",F.string(n)),D("if (%s.length < %d) {",n,r.minLength),c("has less length than allowed"),D("}"),"string"!==u&&D("}")),void 0!==r.minimum&&("number"!==u&&"integer"!==u&&D("if (%s) {",F.number(n)),D("if (%s %s %d) {",n,r.exclusiveMinimum?"<=":"<",r.minimum),c("is less than minimum"),D("}"),"number"!==u&&"integer"!==u&&D("}")),void 0!==r.maximum&&("number"!==u&&"integer"!==u&&D("if (%s) {",F.number(n)),D("if (%s %s %d) {",n,r.exclusiveMaximum?">=":">",r.maximum),c("is more than maximum"),D("}"),"number"!==u&&"integer"!==u&&D("}")),s&&Object.keys(s).forEach(function(e){Array.isArray(u)&&-1!==u.indexOf("null")&&D("if (%s !== null) {",n),R(M(n,e),s[e],o,i,a.concat(t?e:["properties",e])),Array.isArray(u)&&-1!==u.indexOf("null")&&D("}")});e--;)D("}")},D=i("function validate(data) {")("if (data === undefined) data = null")("validate.errors = null")("var errors = 0");return R("data",e,t,k&&k.filter,[]),D("return errors === 0")("}"),(D=D.toFunction(O)).errors=null,Object.defineProperty&&Object.defineProperty(D,"error",{get:function(){return D.errors?D.errors.map(function(e){return e.field+" "+e.message}).join("\n"):""}}),D.toJSON=function(){return e},D};n.exports=function(e,t){return"string"==typeof e&&(e=JSON.parse(e)),q(e,{},e,!0,t)},n.exports.filter=function(e,t){var r=n.exports(e,a(t,{filter:!0}));return function(e){return r(e),e}}},{"./formats":499,"generate-function":493,"generate-object-property":494,jsonpointer:502,xtend:598}],501:[function(e,t,r){"use strict";t.exports=function(e){return/^[$A-Z\_a-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc][$A-Z\_a-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc0-9\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d02\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19b0-\u19c0\u19c8\u19c9\u19d0-\u19d9\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1dc0-\u1de6\u1dfc-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8e0-\ua8f1\ua900-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f]*$/.test(e)}},{}],502:[function(e,t,r){var n=/~/,o=/~[01]/g;function i(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function u(e){return n.test(e)?e.replace(o,i):e}function a(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e))return e;throw new Error("Invalid JSON pointer.")}function s(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=a(t)).length;if(1===r)return e;for(var n=1;n=e.length)return;for(;e.lengthr&&(e[t]=r)}else e[t]=r},$max:function(e,t,r){if("number"!=typeof r)throw p("Modifier $max allowed for numbers only",{field:t});if(t in e){if("number"!=typeof e[t])throw p("Cannot apply $max modifier to non-number",{field:t});e[t]t.length?1:-1}(e,t):function(e,t){for(var r=Object.keys(e),n=Object.keys(t),o=Math.min(r.length,n.length),i=0;in.length?1:-1}(e,t)}function a(e){switch(typeof e){case"undefined":return null;case"number":return e===1/0||e===-1/0||isNaN(e)?null:e;case"object":var t=e;if(Array.isArray(e)){var r=e.length;e=new Array(r);for(var n=0;nc&&s.push(e)}),j.traverseRevTree(t,function(e,t,r,n,o){var i=t+"-"+r;"available"===o.status&&-1!==s.indexOf(i)&&u.push(i)}),f._doCompaction(o,u,l)})}),v.prototype.compact=l.adapterFun("compact",function(e,t){"function"==typeof e&&(t=e,e={});e=e||{},this._compactionQueue=this._compactionQueue||[],this._compactionQueue.push({opts:e,callback:t}),1===this._compactionQueue.length&&function r(n){var e=n._compactionQueue[0],t=e.opts,o=e.callback;n.get("_local/compaction").catch(function(){return!1}).then(function(e){e&&e.last_seq&&(t.last_seq=e.last_seq),n._compact(t,function(e,t){e?o(e):o(null,t),l.nextTick(function(){n._compactionQueue.shift(),n._compactionQueue.length&&r(n)})})})}(this)}),v.prototype._compact=function(e,r){var n=this,t={return_docs:!1,last_seq:e.last_seq||0},o=[];n.changes(t).on("change",function(e){o.push(n.compactDocument(e.id,0))}).on("complete",function(e){var t=e.last_seq;c.all(o).then(function(){return l.upsert(n,"_local/compaction",function(e){return(!e.last_seq||e.last_seqa.length)&&y(i,a)),o=y(r,e);return n&&o}var i,a;return function(e,t){e=e.slice();for(var r=0,n=t.length;r=a.length?i:a,0===a.length?{fields:o}:{fields:o=o.sort(function(e,t){var r=a.indexOf(e);-1===r&&(r=Number.MAX_VALUE);var n=a.indexOf(t);return-1===n&&(n=Number.MAX_VALUE),rt.length;)a.pop();if(0>>1],t)<0?o=n+1:i=n;return o}(r,n,y),r.splice(o,0,n))}else a="new_leaf",u[2][0]=c[2][l]}return{conflicts:a,tree:e}}function _(e,t,r){var n,o=[],i=!1,a=!1;if(!e.length)return{tree:[t],conflicts:"new_leaf"};for(var s=0,u=e.length;st){n||(n={});var l=c.length-t;s={pos:u.pos+l,ids:b(c,l)};for(var f=0;f=t)&&(l.push(f),f={seq:0,changes:[],docs:[]},"pending"!==a.state&&"stopped"!==a.state||(a.state="active",a.emit("active")),C()):0!==l.length||u||((y&&j.live||h)&&(a.state="pending",a.emit("paused")),h&&R())}function P(e,t){p||(t.message||(t.message=e),s.ok=!1,s.status="aborting",l=[],f={seq:0,changes:[],docs:[]},R(t))}function R(e){if(!(p||a.cancelled&&(s.status="cancelled",d)))if(s.status=s.status||"complete",s.end_time=new Date,s.last_seq=b,p=!0,e){(e=U.createError(e)).result=s;var t=(e.name||"").toLowerCase();"unauthorized"===t||"forbidden"===t?(a.emit("error",e),a.removeAllListeners()):function(e,t,r,n){if(!1===e.retry)return t.emit("error",r),t.removeAllListeners();if("function"!=typeof e.back_off_function&&(e.back_off_function=B.defaultBackOff),t.emit("requestError",r),"active"===t.state||"pending"===t.state){t.emit("paused",r),t.state="stopped";var o=function(){e.current_back_off=V};t.once("paused",function(){t.removeListener("active",o)}),t.once("active",o)}e.current_back_off=e.current_back_off||V,e.current_back_off=e.back_off_function(e.current_back_off),setTimeout(n,e.current_back_off)}(i,a,e,function(){G(n,o,i,a)})}else a.emit("complete",s),a.removeAllListeners()}function D(e,t,r){if(a.cancelled)return R();"number"==typeof t&&(f.pending=t),B.filterChange(i)(e)&&(f.seq=e.seq||r,f.changes.push(e),A(0===l.length&&j.live))}function M(e){if(v=!1,a.cancelled)return R();if(0r.$gte&&(r.$gte=t):t>=r.$gte&&(delete r.$gte,r.$gt=t):void 0!==r.$gt?"$gte"===e?t>r.$gt&&(delete r.$gt,r.$gte=t):t>r.$gt&&(r.$gt=t):r[e]=t}(e,i,s):"$lt"===e||"$lte"===e?function(e,t,r){if(void 0!==r.$eq)return;void 0!==r.$lte?"$lte"===e?tn.since&&!n.cancelled&&(n.since=e.seq,n.onChange(e))}).on("complete",function(){"waiting"===i&&u(a),i=!1}).on("error",function(){i=!1})}}},O.prototype.removeListener=function(e,t){t in this._listeners&&(i.EventEmitter.prototype.removeListener.call(this,e,this._listeners[t]),delete this._listeners[t])},O.prototype.notifyLocalWindows=function(e){k()?chrome.storage.local.set({dbName:e}):j()&&(localStorage[e]="a"===localStorage[e]?"b":"a")},O.prototype.notify=function(e){this.emit(e),this.notifyLocalWindows(e)};var E="function"==typeof Object.assign?Object.assign:function(e){for(var t=Object(e),r=1;r=r.length)){var n,e=Math.min(a+g,r.length),t=r.slice(a,e);n=a,t.forEach(function(i,e){var a=n+e,t=c.get(i),r=v(t[0],["atts_since","attachments"]);r.open_revs=t.map(function(e){return e.rev}),r.open_revs=r.open_revs.filter(w);var s=w;0===r.open_revs.length&&(delete r.open_revs,s=x),["revs","attachments","binary","ajax","latest"].forEach(function(e){e in u&&(r[e]=u[e])}),o.get(i,r,function(e,t){var r,n,o;r=e?[{error:e}]:s(t),n=i,o=r,l[a]={id:n,docs:o},f(),d()})}),a+=t.length}}d()},r.changesHandler=O,r.clone=b,r.defaultBackOff=function(e){var t,r,n=0;return e||(n=2e3),t=e,r=n,t=parseInt(t,10)||0,(r=parseInt(r,10))!=r||r<=t?r=(t||1)<<1:r+=1,6e5>>25)+n|0)&n|~r&o)+t[1]-389564586|0)<<12|i>>>20)+r|0)&r|~i&n)+t[2]+606105819|0)<<17|o>>>15)+i|0)&i|~o&r)+t[3]-1044525330|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&o)+t[5]+1200080426|0)<<12|i>>>20)+r|0)&r|~i&n)+t[6]-1473231341|0)<<17|o>>>15)+i|0)&i|~o&r)+t[7]-45705983|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&o)+t[9]-1958414417|0)<<12|i>>>20)+r|0)&r|~i&n)+t[10]-42063|0)<<17|o>>>15)+i|0)&i|~o&r)+t[11]-1990404162|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&o)+t[13]-40341101|0)<<12|i>>>20)+r|0)&r|~i&n)+t[14]-1502002290|0)<<17|o>>>15)+i|0)&i|~o&r)+t[15]+1236535329|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[1]-165796510|0)<<5|r>>>27)+n|0)&o|n&~o)+t[6]-1069501632|0)<<9|i>>>23)+r|0)&n|r&~n)+t[11]+643717713|0)<<14|o>>>18)+i|0)&r|i&~r)+t[0]-373897302|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[5]-701558691|0)<<5|r>>>27)+n|0)&o|n&~o)+t[10]+38016083|0)<<9|i>>>23)+r|0)&n|r&~n)+t[15]-660478335|0)<<14|o>>>18)+i|0)&r|i&~r)+t[4]-405537848|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[9]+568446438|0)<<5|r>>>27)+n|0)&o|n&~o)+t[14]-1019803690|0)<<9|i>>>23)+r|0)&n|r&~n)+t[3]-187363961|0)<<14|o>>>18)+i|0)&r|i&~r)+t[8]+1163531501|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[13]-1444681467|0)<<5|r>>>27)+n|0)&o|n&~o)+t[2]-51403784|0)<<9|i>>>23)+r|0)&n|r&~n)+t[7]+1735328473|0)<<14|o>>>18)+i|0)&r|i&~r)+t[12]-1926607734|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[5]-378558|0)<<4|r>>>28)+n|0)^n^o)+t[8]-2022574463|0)<<11|i>>>21)+r|0)^r^n)+t[11]+1839030562|0)<<16|o>>>16)+i|0)^i^r)+t[14]-35309556|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[1]-1530992060|0)<<4|r>>>28)+n|0)^n^o)+t[4]+1272893353|0)<<11|i>>>21)+r|0)^r^n)+t[7]-155497632|0)<<16|o>>>16)+i|0)^i^r)+t[10]-1094730640|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[13]+681279174|0)<<4|r>>>28)+n|0)^n^o)+t[0]-358537222|0)<<11|i>>>21)+r|0)^r^n)+t[3]-722521979|0)<<16|o>>>16)+i|0)^i^r)+t[6]+76029189|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[9]-640364487|0)<<4|r>>>28)+n|0)^n^o)+t[12]-421815835|0)<<11|i>>>21)+r|0)^r^n)+t[15]+530742520|0)<<16|o>>>16)+i|0)^i^r)+t[2]-995338651|0)<<23|n>>>9)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[0]-198630844|0)<<6|r>>>26)+n|0)|~o))+t[7]+1126891415|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[14]-1416354905|0)<<15|o>>>17)+i|0)|~r))+t[5]-57434055|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[12]+1700485571|0)<<6|r>>>26)+n|0)|~o))+t[3]-1894986606|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[10]-1051523|0)<<15|o>>>17)+i|0)|~r))+t[1]-2054922799|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[8]+1873313359|0)<<6|r>>>26)+n|0)|~o))+t[15]-30611744|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[6]-1560198380|0)<<15|o>>>17)+i|0)|~r))+t[13]+1309151649|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[4]-145523070|0)<<6|r>>>26)+n|0)|~o))+t[11]-1120210379|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[2]+718787259|0)<<15|o>>>17)+i|0)|~r))+t[9]-343485551|0)<<21|n>>>11)+o|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=o+e[2]|0,e[3]=i+e[3]|0}function f(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function d(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,r,n,o,i,a,s=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=s;t+=64)c(u,f(e.substring(t-64,t)));for(r=(e=e.substring(t-64)).length,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),55>8*t+4&15]+n[e>>8*t&15];return r}function a(e){var t;for(t=0;t>16)+(t>>16)+(r>>16)<<16|65535&r},"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function c(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(e,t){var r,n,o,i,a=this.byteLength,s=c(e,a),u=a;return t!==l&&(u=c(t,a)),u>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(i,o),r=a(this._hash),e&&(r=s(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var r,n,o,i=t;if(e[i>>2]|=128<<(i%4<<3),55>2]|=n[t]<<(t%4<<3);return this._finish(i,o),r=a(this._hash),e&&(r=s(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,o=new ArrayBuffer(n),i=new Uint8Array(o);for(r=0;r>2]|=e[t]<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),55>>((3&t)<<3)&255;return i}}},{}],595:[function(e,t,r){var p,b,y=e("./lib/rng"),_=e("./lib/bytesToUuid"),v=0,m=0;t.exports=function(e,t,r){var n=t&&r||0,o=t||[],i=(e=e||{}).node||p,a=void 0!==e.clockseq?e.clockseq:b;if(null==i||null==a){var s=y();null==i&&(i=p=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=b=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:m+1,l=u-v+(c-m)/1e4;if(l<0&&void 0===e.clockseq&&(a=a+1&16383),(l<0||v>>24&255,o[n++]=f>>>16&255,o[n++]=f>>>8&255,o[n++]=255&f;var d=u/4294967296*1e4&268435455;o[n++]=d>>>8&255,o[n++]=255&d,o[n++]=d>>>24&15|16,o[n++]=d>>>16&255,o[n++]=a>>>8|128,o[n++]=255&a;for(var h=0;h<6;++h)o[n+h]=i[h];return t||_(o)}},{"./lib/bytesToUuid":593,"./lib/rng":594}],596:[function(e,t,r){var a=e("./lib/rng"),s=e("./lib/bytesToUuid");t.exports=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||s(o)}},{"./lib/bytesToUuid":593,"./lib/rng":594}],597:[function(e,t,r){"use strict";function h(e,t,r){var n=r[r.length-1];e===n.element&&(r.pop(),n=r[r.length-1]);var o=n.element,i=n.index;if(Array.isArray(o))o.push(e);else if(i===t.length-2){o[t.pop()]=e}else t.push(e)}r.stringify=function(e){var t=[];t.push({obj:e});for(var r,n,o,i,a,s,u,c,l,f,d="";r=t.pop();)if(n=r.obj,d+=r.prefix||"",o=r.val||"")d+=o;else if("object"!=typeof n)d+=void 0===n?null:JSON.stringify(n);else if(null===n)d+="null";else if(Array.isArray(n)){for(t.push({val:"]"}),i=n.length-1;0<=i;i--)a=0===i?"":",",t.push({obj:n[i],prefix:a});t.push({val:"["})}else{for(u in s=[],n)n.hasOwnProperty(u)&&s.push(u);for(t.push({val:"}"}),i=s.length-1;0<=i;i--)l=n[c=s[i]],f=0 { assert.equal(db.options.foo, 'bar'); db.destroy(); }); + it('should not forget the pouchSettings', async () => { + const name = util.randomCouchString(10); + const password = util.randomCouchString(12); + const db = await RxDatabase.create({ + name, + adapter: 'memory', + password, + ignoreDuplicate: true, + pouchSettings: { + foo: 'bar' + } + }); + assert.equal(db.pouchSettings.foo, 'bar'); + db.destroy(); + }); }); describe('negative', () => { it('should crash with invalid token', async () => {