A platform for community discussion. Free, open, simple.
DEV: Add uppy.js to build and project (#13645)
Martin Brennan35f6441938cf
diff --git a/app/assets/javascripts/discourse-shims.js b/app/assets/javascripts/discourse-shims.jsindex b63d4a6fce8..8a0cf56cb3d 100644--- a/app/assets/javascripts/discourse-shims.js+++ b/app/assets/javascripts/discourse-shims.js@@ -44,3 +44,11 @@ define("@popperjs/core", ["exports"], function (__exports__) {__exports__.defaultModifiers = window.Popper.defaultModifiers;__exports__.popperGenerator = window.Popper.popperGenerator;});++define("uppy", ["exports"], function (__exports__) {+ __exports__.default = window.Uppy.Core;+ __exports__.Plugin = window.Uppy.Plugin;+ __exports__.XHRUpload = window.Uppy.XHRUpload;+ __exports__.AwsS3 = window.Uppy.AwsS3;+ __exports__.AwsS3Multipart = window.Uppy.AwsS3Multipart;+});diff --git a/app/assets/javascripts/vendor.js b/app/assets/javascripts/vendor.jsindex f28366faa38..1e0b0c6d1cf 100644--- a/app/assets/javascripts/vendor.js+++ b/app/assets/javascripts/vendor.js@@ -22,6 +22,7 @@//= require mousetrap-global-bind.js//= require rsvp.js//= require show-html.js+//= require uppy.js//= require buffered-proxy//= require jquery.autoellipsis-1.0.10//= require virtual-domdiff --git a/lib/tasks/javascript.rake b/lib/tasks/javascript.rakeindex 834a3804c31..510a1ff0b78 100644--- a/lib/tasks/javascript.rake+++ b/lib/tasks/javascript.rake@@ -217,7 +217,10 @@ def dependenciespublic: true,skip_versioning: true},-+ {+ source: 'custom-uppy-build.js',+ destination: 'uppy.js'+ }]end@@ -339,7 +342,14 @@ task 'javascript:update' => 'clean_up' do# lodash.js needs buildingif src.include? "lodash.js"puts "Building custom lodash.js build"- system('yarn run lodash include="each,filter,map,range,first,isEmpty,chain,extend,every,omit,merge,union,sortBy,uniq,intersection,reject,compact,reduce,debounce,throttle,values,pick,keys,flatten,min,max,isArray,delay,isString,isEqual,without,invoke,clone,findIndex,find,groupBy" minus="template" -d -o "node_modules/lodash.js"')+ system('yarn run lodash include="escapeRegExp,each,filter,map,range,first,isEmpty,chain,extend,every,omit,merge,union,sortBy,uniq,intersection,reject,compact,reduce,debounce,throttle,values,pick,keys,flatten,min,max,isArray,delay,isString,isEqual,without,invoke,clone,findIndex,find,groupBy" minus="template" -d -o "node_modules/lodash.js"')+ end++ # we need a custom build of uppy because we cannot import+ # their modules easily, using browserify to do so+ if src.include? "custom-uppy-build"+ puts "Building custom uppy using browserify"+ system("yarn run browserify #{vendor_js}/custom-uppy.js -o node_modules/custom-uppy-build.js")endunless File.exists?(dest)diff --git a/package.json b/package.jsonindex 0b8fddf98df..327e022022b 100644--- a/package.json+++ b/package.json@@ -10,6 +10,10 @@"@highlightjs/cdn-assets": "^10.6.0","@json-editor/json-editor": "^2.5.2","@popperjs/core": "v2.0.6",+ "@uppy/aws-s3": "^1.7.12",+ "@uppy/aws-s3-multipart": "^1.8.18",+ "@uppy/core": "^1.19.2",+ "@uppy/xhr-upload": "^1.7.5","ace-builds": "1.4.12","blueimp-file-upload": "10.13.0","bootbox": "3.2.0",@@ -42,6 +46,7 @@"devDependencies": {"@arkweid/lefthook": "^0.7.2","@mixer/parallel-prettier": "^2.0.1",+ "browserify": "^17.0.0","chrome-launcher": "^0.12.0","chrome-remote-interface": "^0.25","lodash-cli": "https://github.com/lodash-archive/lodash-cli.git",diff --git a/vendor/assets/javascripts/custom-uppy.js b/vendor/assets/javascripts/custom-uppy.jsnew file mode 100644index 00000000000..8044448f189--- /dev/null+++ b/vendor/assets/javascripts/custom-uppy.js@@ -0,0 +1,11 @@+// We need a custom build of Uppy because we do not use webpack for+// our JS modules/build. The only way to get what you want from Uppy+// is to use the webpack modules or to include the entire Uppy project+// including all plugins in a single JS file. This way we can just+// use the plugins we actually want.+window.Uppy = {}+Uppy.Core = require('@uppy/core')+Uppy.Plugin = Uppy.Core.Plugin+Uppy.XHRUpload = require('@uppy/xhr-upload')+Uppy.AwsS3 = require('@uppy/aws-s3')+Uppy.AwsS3Multipart = require('@uppy/aws-s3-multipart')diff --git a/vendor/assets/javascripts/lodash.js b/vendor/assets/javascripts/lodash.jsindex 9f352389c12..b8f8a9b2fe3 100644--- a/vendor/assets/javascripts/lodash.js+++ b/vendor/assets/javascripts/lodash.js@@ -1,7 +1,7 @@/*** @license* Lodash (Custom Build) <https://lodash.com/>- * Build: `lodash include="each,filter,map,range,first,isEmpty,chain,extend,every,omit,merge,union,sortBy,uniq,intersection,reject,compact,reduce,debounce,throttle,values,pick,keys,flatten,min,max,isArray,delay,isString,isEqual,without,invoke,clone,findIndex,find,groupBy" minus="template" -d -o node_modules/lodash.js`+ * Build: `lodash include="escapeRegExp,each,filter,map,range,first,isEmpty,chain,extend,every,omit,merge,union,sortBy,uniq,intersection,reject,compact,reduce,debounce,throttle,values,pick,keys,flatten,min,max,isArray,delay,isString,isEqual,without,invoke,clone,findIndex,find,groupBy" minus="template" -d -o node_modules/lodash.js`* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>* Released under MIT license <https://lodash.com/license>* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>@@ -125,7 +125,8 @@* Used to match `RegExp`* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).*/- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,+ reHasRegExpChar = RegExp(reRegExpChar.source);/** Used to match leading whitespace. */var reTrimStart = /^\s+/;@@ -7373,6 +7374,30 @@/*------------------------------------------------------------------------*/+ /**+ * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",+ * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.+ *+ * @static+ * @memberOf _+ * @since 3.0.0+ * @category String+ * @param {string} [string=''] The string to escape.+ * @returns {string} Returns the escaped string.+ * @example+ *+ * _.escapeRegExp('[lodash](https://lodash.com/)');+ * // => '\[lodash\]\(https://lodash\.com/\)'+ */+ function escapeRegExp(string) {+ string = toString(string);+ return (string && reHasRegExpChar.test(string))+ ? string.replace(reRegExpChar, '\\$&')+ : string;+ }++ /*------------------------------------------------------------------------*/+/*** Creates a function that returns `value`.*@@ -7759,6 +7784,7 @@// Add methods that return unwrapped values in chain sequences.lodash.clone = clone;lodash.eq = eq;+ lodash.escapeRegExp = escapeRegExp;lodash.every = every;lodash.find = find;lodash.findIndex = findIndex;diff --git a/vendor/assets/javascripts/uppy.js b/vendor/assets/javascripts/uppy.jsnew file mode 100644index 00000000000..db07801d276--- /dev/null+++ b/vendor/assets/javascripts/uppy.js@@ -0,0 +1,8576 @@+(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){+// Adapted from https://github.com/Flet/prettier-bytes/+// Changing 1000 bytes to 1024, so we can keep uppercase KB vs kB+// ISC License (c) Dan Flettre https://github.com/Flet/prettier-bytes/blob/master/LICENSE+module.exports = function prettierBytes (num) {+ if (typeof num !== 'number' || isNaN(num)) {+ throw new TypeError('Expected a number, got ' + typeof num)+ }++ var neg = num < 0+ var units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']++ if (neg) {+ num = -num+ }++ if (num < 1) {+ return (neg ? '-' : '') + num + ' B'+ }++ var exponent = Math.min(Math.floor(Math.log(num) / Math.log(1024)), units.length - 1)+ num = Number(num / Math.pow(1024, exponent))+ var unit = units[exponent]++ if (num >= 10 || num % 1 === 0) {+ // Do not show decimals when the number is two-digit, or if the number has no+ // decimal component.+ return (neg ? '-' : '') + num.toFixed(0) + ' ' + unit+ } else {+ return (neg ? '-' : '') + num.toFixed(1) + ' ' + unit+ }+}++},{}],2:[function(require,module,exports){+function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }++var _require = require('@uppy/utils/lib/AbortController'),+ AbortController = _require.AbortController,+ createAbortError = _require.createAbortError;++var delay = require('@uppy/utils/lib/delay');++var MB = 1024 * 1024;+var defaultOptions = {+ limit: 1,+ retryDelays: [0, 1000, 3000, 5000],+ getChunkSize: function getChunkSize(file) {+ return Math.ceil(file.size / 10000);+ },+ onStart: function onStart() {},+ onProgress: function onProgress() {},+ onPartComplete: function onPartComplete() {},+ onSuccess: function onSuccess() {},+ onError: function onError(err) {+ throw err;+ }+};++function ensureInt(value) {+ if (typeof value === 'string') {+ return parseInt(value, 10);+ }++ if (typeof value === 'number') {+ return value;+ }++ throw new TypeError('Expected a number');+}++var MultipartUploader = /*#__PURE__*/function () {+ function MultipartUploader(file, options) {+ this.options = _extends({}, defaultOptions, options); // Use default `getChunkSize` if it was null or something++ if (!this.options.getChunkSize) {+ this.options.getChunkSize = defaultOptions.getChunkSize;+ }++ this.file = file;+ this.abortController = new AbortController();+ this.key = this.options.key || null;+ this.uploadId = this.options.uploadId || null;+ this.parts = []; // Do `this.createdPromise.then(OP)` to execute an operation `OP` _only_ if the+ // upload was created already. That also ensures that the sequencing is right+ // (so the `OP` definitely happens if the upload is created).+ //+ // This mostly exists to make `_abortUpload` work well: only sending the abort request if+ // the upload was already created, and if the createMultipartUpload request is still in flight,+ // aborting it immediately after it finishes.++ this.createdPromise = Promise.reject(); // eslint-disable-line prefer-promise-reject-errors++ this.isPaused = false;+ this.partsInProgress = 0;+ this.chunks = null;+ this.chunkState = null;++ this._initChunks();++ this.createdPromise.catch(function () {}); // silence uncaught rejection warning+ }+ /**+ * Was this upload aborted?+ *+ * If yes, we may need to throw an AbortError.+ *+ * @returns {boolean}+ */+++ var _proto = MultipartUploader.prototype;++ _proto._aborted = function _aborted() {+ return this.abortController.signal.aborted;+ };++ _proto._initChunks = function _initChunks() {+ var chunks = [];+ var desiredChunkSize = this.options.getChunkSize(this.file); // at least 5MB per request, at most 10k requests++ var minChunkSize = Math.max(5 * MB, Math.ceil(this.file.size / 10000));+ var chunkSize = Math.max(desiredChunkSize, minChunkSize); // Upload zero-sized files in one zero-sized chunk++ if (this.file.size === 0) {+ chunks.push(this.file);+ } else {+ for (var i = 0; i < this.file.size; i += chunkSize) {+ var end = Math.min(this.file.size, i + chunkSize);+ chunks.push(this.file.slice(i, end));+ }+ }++ this.chunks = chunks;+ this.chunkState = chunks.map(function () {+ return {+ uploaded: 0,+ busy: false,+ done: false+ };+ });+ };++ _proto._createUpload = function _createUpload() {+ var _this = this;++ this.createdPromise = Promise.resolve().then(function () {+ return _this.options.createMultipartUpload();+ });+ return this.createdPromise.then(function (result) {+ if (_this._aborted()) throw createAbortError();+ var valid = typeof result === 'object' && result && typeof result.uploadId === 'string' && typeof result.key === 'string';++ if (!valid) {+ throw new TypeError('AwsS3/Multipart: Got incorrect result from `createMultipartUpload()`, expected an object `{ uploadId, key }`.');+ }++ _this.key = result.key;+ _this.uploadId = result.uploadId;++ _this.options.onStart(result);++ _this._uploadParts();+ }).catch(function (err) {+ _this._onError(err);+ });+ };++ _proto._resumeUpload = function _resumeUpload() {+ var _this2 = this;++ return Promise.resolve().then(function () {+ return _this2.options.listParts({+ uploadId: _this2.uploadId,+ key: _this2.key+ });+ }).then(function (parts) {+ if (_this2._aborted()) throw createAbortError();+ parts.forEach(function (part) {+ var i = part.PartNumber - 1;+ _this2.chunkState[i] = {+ uploaded: ensureInt(part.Size),+ etag: part.ETag,+ done: true+ }; // Only add if we did not yet know about this part.++ if (!_this2.parts.some(function (p) {+ return p.PartNumber === part.PartNumber;+ })) {+ _this2.parts.push({+ PartNumber: part.PartNumber,+ ETag: part.ETag+ });+ }+ });++ _this2._uploadParts();+ }).catch(function (err) {+ _this2._onError(err);+ });+ };++ _proto._uploadParts = function _uploadParts() {+ var _this3 = this;++ if (this.isPaused) return;+ var need = this.options.limit - this.partsInProgress;+ if (need === 0) return; // All parts are uploaded.++ if (this.chunkState.every(function (state) {+ return state.done;+ })) {+ this._completeUpload();++ return;+ }++ var candidates = [];++ for (var i = 0; i < this.chunkState.length; i++) {+ var state = this.chunkState[i];+ if (state.done || state.busy) continue;+ candidates.push(i);++ if (candidates.length >= need) {+ break;+ }+ }++ candidates.forEach(function (index) {+ _this3._uploadPartRetryable(index).then(function () {+ // Continue uploading parts+ _this3._uploadParts();+ }, function (err) {+ _this3._onError(err);+ });+ });+ };++ _proto._retryable = function _retryable(_ref) {+ var _this4 = this;++ var before = _ref.before,+ attempt = _ref.attempt,+ after = _ref.after;+ var retryDelays = this.options.retryDelays;+ var signal = this.abortController.signal;+ if (before) before();++ function shouldRetry(err) {+ if (err.source && typeof err.source.status === 'number') {+ var status = err.source.status; // 0 probably indicates network failure++ return status === 0 || status === 409 || status === 423 || status >= 500 && status < 600;+ }++ return false;+ }++ var doAttempt = function doAttempt(retryAttempt) {+ return attempt().catch(function (err) {+ if (_this4._aborted()) throw createAbortError();++ if (shouldRetry(err) && retryAttempt < retryDelays.length) {+ return delay(retryDelays[retryAttempt], {+ signal: signal+ }).then(function () {+ return doAttempt(retryAttempt + 1);+ });+ }++ throw err;+ });+ };++ return doAttempt(0).then(function (result) {+ if (after) after();+ return result;+ }, function (err) {+ if (after) after();+ throw err;+ });+ };++ _proto._uploadPartRetryable = function _uploadPartRetryable(index) {+ var _this5 = this;++ return this._retryable({+ before: function before() {+ _this5.partsInProgress += 1;+ },+ attempt: function attempt() {+ return _this5._uploadPart(index);+ },+ after: function after() {+ _this5.partsInProgress -= 1;+ }+ });+ };++ _proto._uploadPart = function _uploadPart(index) {+ var _this6 = this;++ var body = this.chunks[index];+ this.chunkState[index].busy = true;+ return Promise.resolve().then(function () {+ return _this6.options.prepareUploadPart({+ key: _this6.key,+ uploadId: _this6.uploadId,+ body: body,+ number: index + 1+ });+ }).then(function (result) {+ var valid = typeof result === 'object' && result && typeof result.url === 'string';++ if (!valid) {+ throw new TypeError('AwsS3/Multipart: Got incorrect result from `prepareUploadPart()`, expected an object `{ url }`.');+ }++ return result;+ }).then(function (_ref2) {+ var url = _ref2.url,+ headers = _ref2.headers;++ if (_this6._aborted()) {+ _this6.chunkState[index].busy = false;+ throw createAbortError();+ }++ return _this6._uploadPartBytes(index, url, headers);+ });+ };++ _proto._onPartProgress = function _onPartProgress(index, sent, total) {+ this.chunkState[index].uploaded = ensureInt(sent);+ var totalUploaded = this.chunkState.reduce(function (n, c) {+ return n + c.uploaded;+ }, 0);+ this.options.onProgress(totalUploaded, this.file.size);+ };++ _proto._onPartComplete = function _onPartComplete(index, etag) {+ this.chunkState[index].etag = etag;+ this.chunkState[index].done = true;+ var part = {+ PartNumber: index + 1,+ ETag: etag+ };+ this.parts.push(part);+ this.options.onPartComplete(part);+ };++ _proto._uploadPartBytes = function _uploadPartBytes(index, url, headers) {+ var _this7 = this;++ var body = this.chunks[index];+ var signal = this.abortController.signal;+ var defer;+ var promise = new Promise(function (resolve, reject) {+ defer = {+ resolve: resolve,+ reject: reject+ };+ });+ var xhr = new XMLHttpRequest();+ xhr.open('PUT', url, true);++ if (headers) {+ Object.keys(headers).map(function (key) {+ xhr.setRequestHeader(key, headers[key]);+ });+ }++ xhr.responseType = 'text';++ function cleanup() {+ signal.removeEventListener('abort', onabort);+ }++ function onabort() {+ xhr.abort();+ }++ signal.addEventListener('abort', onabort);+ xhr.upload.addEventListener('progress', function (ev) {+ if (!ev.lengthComputable) return;++ _this7._onPartProgress(index, ev.loaded, ev.total);+ });+ xhr.addEventListener('abort', function (ev) {+ cleanup();+ _this7.chunkState[index].busy = false;+ defer.reject(createAbortError());+ });+ xhr.addEventListener('load', function (ev) {+ cleanup();+ _this7.chunkState[index].busy = false;++ if (ev.target.status < 200 || ev.target.status >= 300) {+ var error = new Error('Non 2xx');+ error.source = ev.target;+ defer.reject(error);+ return;+ }++ _this7._onPartProgress(index, body.size, body.size); // NOTE This must be allowed by CORS.+++ var etag = ev.target.getResponseHeader('ETag');++ if (etag === null) {+ defer.reject(new Error('AwsS3/Multipart: Could not read the ETag header. This likely means CORS is not configured correctly on the S3 Bucket. See https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions.'));+ return;+ }++ _this7._onPartComplete(index, etag);++ defer.resolve();+ });+ xhr.addEventListener('error', function (ev) {+ cleanup();+ _this7.chunkState[index].busy = false;+ var error = new Error('Unknown error');+ error.source = ev.target;+ defer.reject(error);+ });+ xhr.send(body);+ return promise;+ };++ _proto._completeUpload = function _completeUpload() {+ var _this8 = this;++ // Parts may not have completed uploading in sorted order, if limit > 1.+ this.parts.sort(function (a, b) {+ return a.PartNumber - b.PartNumber;+ });+ return Promise.resolve().then(function () {+ return _this8.options.completeMultipartUpload({+ key: _this8.key,+ uploadId: _this8.uploadId,+ parts: _this8.parts+ });+ }).then(function (result) {+ _this8.options.onSuccess(result);+ }, function (err) {+ _this8._onError(err);+ });+ };++ _proto._abortUpload = function _abortUpload() {+ var _this9 = this;++ this.abortController.abort();+ this.createdPromise.then(function () {+ _this9.options.abortMultipartUpload({+ key: _this9.key,+ uploadId: _this9.uploadId+ });+ }, function () {// if the creation failed we do not need to abort+ });+ };++ _proto._onError = function _onError(err) {+ if (err && err.name === 'AbortError') {+ return;+ }++ this.options.onError(err);+ };++ _proto.start = function start() {+ this.isPaused = false;++ if (this.uploadId) {+ this._resumeUpload();+ } else {+ this._createUpload();+ }+ };++ _proto.pause = function pause() {+ this.abortController.abort(); // Swap it out for a new controller, because this instance may be resumed later.++ this.abortController = new AbortController();+ this.isPaused = true;+ };++ _proto.abort = function abort(opts) {+ if (opts === void 0) {+ opts = {};+ }++ var really = opts.really || false;+ if (!really) return this.pause();++ this._abortUpload();+ };++ return MultipartUploader;+}();++module.exports = MultipartUploader;+},{"@uppy/utils/lib/AbortController":20,"@uppy/utils/lib/delay":26}],3:[function(require,module,exports){+var _class, _temp;++function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }++function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }++function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }++function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }++var _require = require('@uppy/core'),+ Plugin = _require.Plugin;++var _require2 = require('@uppy/companion-client'),+ Socket = _require2.Socket,+ Provider = _require2.Provider,+ RequestClient = _require2.RequestClient;++var EventTracker = require('@uppy/utils/lib/EventTracker');++var emitSocketProgress = require('@uppy/utils/lib/emitSocketProgress');++var getSocketHost = require('@uppy/utils/lib/getSocketHost');++var RateLimitedQueue = require('@uppy/utils/lib/RateLimitedQueue');++var Uploader = require('./MultipartUploader');++function assertServerError(res) {+ if (res && res.error) {+ var error = new Error(res.message);++ _extends(error, res.error);++ throw error;+ }++ return res;+}++module.exports = (_temp = _class = /*#__PURE__*/function (_Plugin) {+ _inheritsLoose(AwsS3Multipart, _Plugin);++ function AwsS3Multipart(uppy, opts) {+ var _this;++ _this = _Plugin.call(this, uppy, opts) || this;+ _this.type = 'uploader';+ _this.id = _this.opts.id || 'AwsS3Multipart';+ _this.title = 'AWS S3 Multipart';+ _this.client = new RequestClient(uppy, opts);+ var defaultOptions = {+ timeout: 30 * 1000,+ limit: 0,+ retryDelays: [0, 1000, 3000, 5000],+ createMultipartUpload: _this.createMultipartUpload.bind(_assertThisInitialized(_this)),+ listParts: _this.listParts.bind(_assertThisInitialized(_this)),+ prepareUploadPart: _this.prepareUploadPart.bind(_assertThisInitialized(_this)),+ abortMultipartUpload: _this.abortMultipartUpload.bind(_assertThisInitialized(_this)),+ completeMultipartUpload: _this.completeMultipartUpload.bind(_assertThisInitialized(_this))+ };+ _this.opts = _extends({}, defaultOptions, opts);+ _this.upload = _this.upload.bind(_assertThisInitialized(_this));+ _this.requests = new RateLimitedQueue(_this.opts.limit);+ _this.uploaders = Object.create(null);+ _this.uploaderEvents = Object.create(null);+ _this.uploaderSockets = Object.create(null);+ return _this;+ }+ /**+ * Clean up all references for a file's upload: the MultipartUploader instance,+ * any events related to the file, and the Companion WebSocket connection.+ *+ * Set `opts.abort` to tell S3 that the multipart upload is cancelled and must be removed.+ * This should be done when the user cancels the upload, not when the upload is completed or errored.+ */+++ var _proto = AwsS3Multipart.prototype;++ _proto.resetUploaderReferences = function resetUploaderReferences(fileID, opts) {+ if (opts === void 0) {+ opts = {};+ }++ if (this.uploaders[fileID]) {+ this.uploaders[fileID].abort({+ really: opts.abort || false+ });+ this.uploaders[fileID] = null;+ }++ if (this.uploaderEvents[fileID]) {+ this.uploaderEvents[fileID].remove();+ this.uploaderEvents[fileID] = null;+ }++ if (this.uploaderSockets[fileID]) {+ this.uploaderSockets[fileID].close();+ this.uploaderSockets[fileID] = null;+ }+ };++ _proto.assertHost = function assertHost(method) {+ if (!this.opts.companionUrl) {+ throw new Error("Expected a `companionUrl` option containing a Companion address, or if you are not using Companion, a custom `" + method + "` implementation.");+ }+ };++ _proto.createMultipartUpload = function createMultipartUpload(file) {+ this.assertHost('createMultipartUpload');+ var metadata = {};+ Object.keys(file.meta).map(function (key) {+ if (file.meta[key] != null) {+ metadata[key] = file.meta[key].toString();+ }+ });+ return this.client.post('s3/multipart', {+ filename: file.name,+ type: file.type,+ metadata: metadata+ }).then(assertServerError);+ };++ _proto.listParts = function listParts(file, _ref) {+ var key = _ref.key,+ uploadId = _ref.uploadId;+ this.assertHost('listParts');+ var filename = encodeURIComponent(key);+ return this.client.get("s3/multipart/" + uploadId + "?key=" + filename).then(assertServerError);+ };++ _proto.prepareUploadPart = function prepareUploadPart(file, _ref2) {+ var key = _ref2.key,+ uploadId = _ref2.uploadId,+ number = _ref2.number;+ this.assertHost('prepareUploadPart');+ var filename = encodeURIComponent(key);+ return this.client.get("s3/multipart/" + uploadId + "/" + number + "?key=" + filename).then(assertServerError);+ };++ _proto.completeMultipartUpload = function completeMultipartUpload(file, _ref3) {+ var key = _ref3.key,+ uploadId = _ref3.uploadId,+ parts = _ref3.parts;+ this.assertHost('completeMultipartUpload');+ var filename = encodeURIComponent(key);+ var uploadIdEnc = encodeURIComponent(uploadId);+ return this.client.post("s3/multipart/" + uploadIdEnc + "/complete?key=" + filename, {+ parts: parts+ }).then(assertServerError);+ };++ _proto.abortMultipartUpload = function abortMultipartUpload(file, _ref4) {+ var key = _ref4.key,+ uploadId = _ref4.uploadId;+ this.assertHost('abortMultipartUpload');+ var filename = encodeURIComponent(key);+ var uploadIdEnc = encodeURIComponent(uploadId);+ return this.client.delete("s3/multipart/" + uploadIdEnc + "?key=" + filename).then(assertServerError);+ };++ _proto.uploadFile = function uploadFile(file) {+ var _this2 = this;++ return new Promise(function (resolve, reject) {+ var onStart = function onStart(data) {+ var cFile = _this2.uppy.getFile(file.id);++ _this2.uppy.setFileState(file.id, {+ s3Multipart: _extends({}, cFile.s3Multipart, {+ key: data.key,+ uploadId: data.uploadId+ })+ });+ };++ var onProgress = function onProgress(bytesUploaded, bytesTotal) {+ _this2.uppy.emit('upload-progress', file, {+ uploader: _this2,+ bytesUploaded: bytesUploaded,+ bytesTotal: bytesTotal+ });+ };++ var onError = function onError(err) {+ _this2.uppy.log(err);++ _this2.uppy.emit('upload-error', file, err);++ queuedRequest.done();++ _this2.resetUploaderReferences(file.id);++ reject(err);+ };++ var onSuccess = function onSuccess(result) {+ var uploadResp = {+ body: _extends({}, result),+ uploadURL: result.location+ };+ queuedRequest.done();++ _this2.resetUploaderReferences(file.id);++ var cFile = _this2.uppy.getFile(file.id);++ _this2.uppy.emit('upload-success', cFile || file, uploadResp);++ if (result.location) {+ _this2.uppy.log("Download " + upload.file.name + " from " + result.location);+ }++ resolve(upload);+ };++ var onPartComplete = function onPartComplete(part) {+ var cFile = _this2.uppy.getFile(file.id);++ if (!cFile) {+ return;+ }++ _this2.uppy.emit('s3-multipart:part-uploaded', cFile, part);+ };++ var upload = new Uploader(file.data, _extends({+ // .bind to pass the file object to each handler.+ createMultipartUpload: _this2.opts.createMultipartUpload.bind(_this2, file),+ listParts: _this2.opts.listParts.bind(_this2, file),+ prepareUploadPart: _this2.opts.prepareUploadPart.bind(_this2, file),+ completeMultipartUpload: _this2.opts.completeMultipartUpload.bind(_this2, file),+ abortMultipartUpload: _this2.opts.abortMultipartUpload.bind(_this2, file),+ getChunkSize: _this2.opts.getChunkSize ? _this2.opts.getChunkSize.bind(_this2) : null,+ onStart: onStart,+ onProgress: onProgress,+ onError: onError,+ onSuccess: onSuccess,+ onPartComplete: onPartComplete,+ limit: _this2.opts.limit || 5,+ retryDelays: _this2.opts.retryDelays || []+ }, file.s3Multipart));+ _this2.uploaders[file.id] = upload;+ _this2.uploaderEvents[file.id] = new EventTracker(_this2.uppy);++ var queuedRequest = _this2.requests.run(function () {+ if (!file.isPaused) {+ upload.start();+ } // Don't do anything here, the caller will take care of cancelling the upload itself+ // using resetUploaderReferences(). This is because resetUploaderReferences() has to be+ // called when this request is still in the queue, and has not been started yet, too. At+ // that point this cancellation function is not going to be called.+++ return function () {};+ });++ _this2.onFileRemove(file.id, function (removed) {+ queuedRequest.abort();++ _this2.resetUploaderReferences(file.id, {+ abort: true+ });++ resolve("upload " + removed.id + " was removed");+ });++ _this2.onCancelAll(file.id, function () {+ queuedRequest.abort();++ _this2.resetUploaderReferences(file.id, {+ abort: true+ });++ resolve("upload " + file.id + " was canceled");+ });++ _this2.onFilePause(file.id, function (isPaused) {+ if (isPaused) {+ // Remove this file from the queue so another file can start in its place.+ queuedRequest.abort();+ upload.pause();+ } else {+ // Resuming an upload should be queued, else you could pause and then resume a queued upload to make it skip the queue.+ queuedRequest.abort();+ queuedRequest = _this2.requests.run(function () {+ upload.start();+ return function () {};+ });+ }+ });++ _this2.onPauseAll(file.id, function () {+ queuedRequest.abort();+ upload.pause();+ });++ _this2.onResumeAll(file.id, function () {+ queuedRequest.abort();++ if (file.error) {+ upload.abort();+ }++ queuedRequest = _this2.requests.run(function () {+ upload.start();+ return function () {};+ });+ }); // Don't double-emit upload-started for Golden Retriever-restored files that were already started+++ if (!file.progress.uploadStarted || !file.isRestored) {+ _this2.uppy.emit('upload-started', file);+ }+ });+ };++ _proto.uploadRemote = function uploadRemote(file) {+ var _this3 = this;++ this.resetUploaderReferences(file.id); // Don't double-emit upload-started for Golden Retriever-restored files that were already started++ if (!file.progress.uploadStarted || !file.isRestored) {+ this.uppy.emit('upload-started', file);+ }++ if (file.serverToken) {+ return this.connectToServerSocket(file);+ }++ return new Promise(function (resolve, reject) {+ var Client = file.remote.providerOptions.provider ? Provider : RequestClient;+ var client = new Client(_this3.uppy, file.remote.providerOptions);+ client.post(file.remote.url, _extends({}, file.remote.body, {+ protocol: 's3-multipart',+ size: file.data.size,+ metadata: file.meta+ })).then(function (res) {+ _this3.uppy.setFileState(file.id, {+ serverToken: res.token+ });++ file = _this3.uppy.getFile(file.id);+ return file;+ }).then(function (file) {+ return _this3.connectToServerSocket(file);+ }).then(function () {+ resolve();+ }).catch(function (err) {+ _this3.uppy.emit('upload-error', file, err);++ reject(err);+ });+ });+ };++ _proto.connectToServerSocket = function connectToServerSocket(file) {+ var _this4 = this;++ return new Promise(function (resolve, reject) {+ var token = file.serverToken;+ var host = getSocketHost(file.remote.companionUrl);+ var socket = new Socket({+ target: host + "/api/" + token,+ autoOpen: false+ });+ _this4.uploaderSockets[file.id] = socket;+ _this4.uploaderEvents[file.id] = new EventTracker(_this4.uppy);++ _this4.onFileRemove(file.id, function (removed) {+ queuedRequest.abort();+ socket.send('pause', {});++ _this4.resetUploaderReferences(file.id, {+ abort: true+ });++ resolve("upload " + file.id + " was removed");+ });++ _this4.onFilePause(file.id, function (isPaused) {+ if (isPaused) {+ // Remove this file from the queue so another file can start in its place.+ queuedRequest.abort();+ socket.send('pause', {});+ } else {+ // Resuming an upload should be queued, else you could pause and then resume a queued upload to make it skip the queue.+ queuedRequest.abort();+ queuedRequest = _this4.requests.run(function () {+ socket.send('resume', {});+ return function () {};+ });+ }+ });++ _this4.onPauseAll(file.id, function () {+ queuedRequest.abort();+ socket.send('pause', {});+ });++ _this4.onCancelAll(file.id, function () {+ queuedRequest.abort();+ socket.send('pause', {});++ _this4.resetUploaderReferences(file.id);++ resolve("upload " + file.id + " was canceled");+ });++ _this4.onResumeAll(file.id, function () {+ queuedRequest.abort();++ if (file.error) {+ socket.send('pause', {});+ }++ queuedRequest = _this4.requests.run(function () {+ socket.send('resume', {});+ });+ });++ _this4.onRetry(file.id, function () {+ // Only do the retry if the upload is actually in progress;+ // else we could try to send these messages when the upload is still queued.+ // We may need a better check for this since the socket may also be closed+ // for other reasons, like network failures.+ if (socket.isOpen) {+ socket.send('pause', {});+ socket.send('resume', {});+ }+ });++ _this4.onRetryAll(file.id, function () {+ if (socket.isOpen) {+ socket.send('pause', {});+ socket.send('resume', {});+ }+ });++ socket.on('progress', function (progressData) {+ return emitSocketProgress(_this4, progressData, file);+ });+ socket.on('error', function (errData) {+ _this4.uppy.emit('upload-error', file, new Error(errData.error));++ _this4.resetUploaderReferences(file.id);++ queuedRequest.done();+ reject(new Error(errData.error));+ });+ socket.on('success', function (data) {+ var uploadResp = {+ uploadURL: data.url+ };++ _this4.uppy.emit('upload-success', file, uploadResp);++ _this4.resetUploaderReferences(file.id);++ queuedRequest.done();+ resolve();+ });++ var queuedRequest = _this4.requests.run(function () {+ socket.open();++ if (file.isPaused) {+ socket.send('pause', {});+ }++ return function () {};+ });+ });+ };++ _proto.upload = function upload(fileIDs) {+ var _this5 = this;++ if (fileIDs.length === 0) return Promise.resolve();+ var promises = fileIDs.map(function (id) {+ var file = _this5.uppy.getFile(id);++ if (file.isRemote) {+ return _this5.uploadRemote(file);+ }++ return _this5.uploadFile(file);+ });+ return Promise.all(promises);+ };++ _proto.onFileRemove = function onFileRemove(fileID, cb) {+ this.uploaderEvents[fileID].on('file-removed', function (file) {+ if (fileID === file.id) cb(file.id);+ });+ };++ _proto.onFilePause = function onFilePause(fileID, cb) {+ this.uploaderEvents[fileID].on('upload-pause', function (targetFileID, isPaused) {+ if (fileID === targetFileID) {+ // const isPaused = this.uppy.pauseResume(fileID)+ cb(isPaused);+ }+ });+ };++ _proto.onRetry = function onRetry(fileID, cb) {+ this.uploaderEvents[fileID].on('upload-retry', function (targetFileID) {+ if (fileID === targetFileID) {+ cb();+ }+ });+ };++ _proto.onRetryAll = function onRetryAll(fileID, cb) {+ var _this6 = this;++ this.uploaderEvents[fileID].on('retry-all', function (filesToRetry) {+ if (!_this6.uppy.getFile(fileID)) return;+ cb();+ });+ };++ _proto.onPauseAll = function onPauseAll(fileID, cb) {+ var _this7 = this;++ this.uploaderEvents[fileID].on('pause-all', function () {+ if (!_this7.uppy.getFile(fileID)) return;+ cb();+ });+ };++ _proto.onCancelAll = function onCancelAll(fileID, cb) {+ var _this8 = this;++ this.uploaderEvents[fileID].on('cancel-all', function () {+ if (!_this8.uppy.getFile(fileID)) return;+ cb();+ });+ };++ _proto.onResumeAll = function onResumeAll(fileID, cb) {+ var _this9 = this;++ this.uploaderEvents[fileID].on('resume-all', function () {+ if (!_this9.uppy.getFile(fileID)) return;+ cb();+ });+ };++ _proto.install = function install() {+ var _this$uppy$getState = this.uppy.getState(),+ capabilities = _this$uppy$getState.capabilities;++ this.uppy.setState({+ capabilities: _extends({}, capabilities, {+ resumableUploads: true+ })+ });+ this.uppy.addUploader(this.upload);+ };++ _proto.uninstall = function uninstall() {+ var _this$uppy$getState2 = this.uppy.getState(),+ capabilities = _this$uppy$getState2.capabilities;++ this.uppy.setState({+ capabilities: _extends({}, capabilities, {+ resumableUploads: false+ })+ });+ this.uppy.removeUploader(this.upload);+ };++ return AwsS3Multipart;+}(Plugin), _class.VERSION = "1.8.18", _temp);+},{"./MultipartUploader":2,"@uppy/companion-client":12,"@uppy/core":15,"@uppy/utils/lib/EventTracker":21,"@uppy/utils/lib/RateLimitedQueue":24,"@uppy/utils/lib/emitSocketProgress":27,"@uppy/utils/lib/getSocketHost":34}],4:[function(require,module,exports){+function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }++var cuid = require('cuid');++var _require = require('@uppy/companion-client'),+ Provider = _require.Provider,+ RequestClient = _require.RequestClient,+ Socket = _require.Socket;++var emitSocketProgress = require('@uppy/utils/lib/emitSocketProgress');++var getSocketHost = require('@uppy/utils/lib/getSocketHost');++var EventTracker = require('@uppy/utils/lib/EventTracker');++var ProgressTimeout = require('@uppy/utils/lib/ProgressTimeout');++var NetworkError = require('@uppy/utils/lib/NetworkError');++var isNetworkError = require('@uppy/utils/lib/isNetworkError'); // See XHRUpload+++function buildResponseError(xhr, error) {+ // No error message+ if (!error) error = new Error('Upload error'); // Got an error message string++ if (typeof error === 'string') error = new Error(error); // Got something else++ if (!(error instanceof Error)) {+ error = _extends(new Error('Upload error'), {+ data: error+ });+ }++ if (isNetworkError(xhr)) {+ error = new NetworkError(error, xhr);+ return error;+ }++ error.request = xhr;+ return error;+} // See XHRUpload+++function setTypeInBlob(file) {+ var dataWithUpdatedType = file.data.slice(0, file.data.size, file.meta.type);+ return dataWithUpdatedType;+}++module.exports = /*#__PURE__*/function () {+ function MiniXHRUpload(uppy, opts) {+ this.uppy = uppy;+ this.opts = _extends({+ validateStatus: function validateStatus(status, responseText, response) {+ return status >= 200 && status < 300;+ }+ }, opts);+ this.requests = opts.__queue;+ this.uploaderEvents = Object.create(null);+ this.i18n = opts.i18n;+ }++ var _proto = MiniXHRUpload.prototype;++ _proto._getOptions = function _getOptions(file) {+ var uppy = this.uppy;+ var overrides = uppy.getState().xhrUpload;++ var opts = _extends({}, this.opts, overrides || {}, file.xhrUpload || {}, {+ headers: {}+ });++ _extends(opts.headers, this.opts.headers);++ if (overrides) {+ _extends(opts.headers, overrides.headers);+ }++ if (file.xhrUpload) {+ _extends(opts.headers, file.xhrUpload.headers);+ }++ return opts;+ };++ _proto.uploadFile = function uploadFile(id, current, total) {+ var file = this.uppy.getFile(id);++ if (file.error) {+ throw new Error(file.error);+ } else if (file.isRemote) {+ return this._uploadRemoteFile(file, current, total);+ }++ return this._uploadLocalFile(file, current, total);+ };++ _proto._addMetadata = function _addMetadata(formData, meta, opts) {+ var metaFields = Array.isArray(opts.metaFields) ? opts.metaFields // Send along all fields by default.+ : Object.keys(meta);+ metaFields.forEach(function (item) {+ formData.append(item, meta[item]);+ });+ };++ _proto._createFormDataUpload = function _createFormDataUpload(file, opts) {+ var formPost = new FormData();++ this._addMetadata(formPost, file.meta, opts);++ var dataWithUpdatedType = setTypeInBlob(file);++ if (file.name) {+ formPost.append(opts.fieldName, dataWithUpdatedType, file.meta.name);+ } else {+ formPost.append(opts.fieldName, dataWithUpdatedType);+ }++ return formPost;+ };++ _proto._createBareUpload = function _createBareUpload(file, opts) {+ return file.data;+ };++ _proto._onFileRemoved = function _onFileRemoved(fileID, cb) {+ this.uploaderEvents[fileID].on('file-removed', function (file) {+ if (fileID === file.id) cb(file.id);+ });+ };++ _proto._onRetry = function _onRetry(fileID, cb) {+ this.uploaderEvents[fileID].on('upload-retry', function (targetFileID) {+ if (fileID === targetFileID) {+ cb();+ }+ });+ };++ _proto._onRetryAll = function _onRetryAll(fileID, cb) {+ var _this = this;++ this.uploaderEvents[fileID].on('retry-all', function (filesToRetry) {+ if (!_this.uppy.getFile(fileID)) return;+ cb();+ });+ };++ _proto._onCancelAll = function _onCancelAll(fileID, cb) {+ var _this2 = this;++ this.uploaderEvents[fileID].on('cancel-all', function () {+ if (!_this2.uppy.getFile(fileID)) return;+ cb();+ });+ };++ _proto._uploadLocalFile = function _uploadLocalFile(file, current, total) {+ var _this3 = this;++ var opts = this._getOptions(file);++ this.uppy.log("uploading " + current + " of " + total);+ return new Promise(function (resolve, reject) {+ // This is done in index.js in the S3 plugin.+ // this.uppy.emit('upload-started', file)+ var data = opts.formData ? _this3._createFormDataUpload(file, opts) : _this3._createBareUpload(file, opts);+ var xhr = new XMLHttpRequest();+ _this3.uploaderEvents[file.id] = new EventTracker(_this3.uppy);+ var timer = new ProgressTimeout(opts.timeout, function () {+ xhr.abort();+ queuedRequest.done();+ var error = new Error(_this3.i18n('timedOut', {+ seconds: Math.ceil(opts.timeout / 1000)+ }));++ _this3.uppy.emit('upload-error', file, error);++ reject(error);+ });+ var id = cuid();+ xhr.upload.addEventListener('loadstart', function (ev) {+ _this3.uppy.log("[AwsS3/XHRUpload] " + id + " started");+ });+ xhr.upload.addEventListener('progress', function (ev) {+ _this3.uppy.log("[AwsS3/XHRUpload] " + id + " progress: " + ev.loaded + " / " + ev.total); // Begin checking for timeouts when progress starts, instead of loading,+ // to avoid timing out requests on browser concurrency queue+++ timer.progress();++ if (ev.lengthComputable) {+ _this3.uppy.emit('upload-progress', file, {+ uploader: _this3,+ bytesUploaded: ev.loaded,+ bytesTotal: ev.total+ });+ }+ });+ xhr.addEventListener('load', function (ev) {+ _this3.uppy.log("[AwsS3/XHRUpload] " + id + " finished");++ timer.done();+ queuedRequest.done();++ if (_this3.uploaderEvents[file.id]) {+ _this3.uploaderEvents[file.id].remove();++ _this3.uploaderEvents[file.id] = null;+ }++ if (opts.validateStatus(ev.target.status, xhr.responseText, xhr)) {+ var _body = opts.getResponseData(xhr.responseText, xhr);++ var uploadURL = _body[opts.responseUrlFieldName];+ var uploadResp = {+ status: ev.target.status,+ body: _body,+ uploadURL: uploadURL+ };++ _this3.uppy.emit('upload-success', file, uploadResp);++ if (uploadURL) {+ _this3.uppy.log("Download " + file.name + " from " + uploadURL);+ }++ return resolve(file);+ }++ var body = opts.getResponseData(xhr.responseText, xhr);+ var error = buildResponseError(xhr, opts.getResponseError(xhr.responseText, xhr));+ var response = {+ status: ev.target.status,+ body: body+ };++ _this3.uppy.emit('upload-error', file, error, response);++ return reject(error);+ });+ xhr.addEventListener('error', function (ev) {+ _this3.uppy.log("[AwsS3/XHRUpload] " + id + " errored");++ timer.done();+ queuedRequest.done();++ if (_this3.uploaderEvents[file.id]) {+ _this3.uploaderEvents[file.id].remove();++ _this3.uploaderEvents[file.id] = null;+ }++ var error = buildResponseError(xhr, opts.getResponseError(xhr.responseText, xhr));++ _this3.uppy.emit('upload-error', file, error);++ return reject(error);+ });+ xhr.open(opts.method.toUpperCase(), opts.endpoint, true); // IE10 does not allow setting `withCredentials` and `responseType`+ // before `open()` is called.++ xhr.withCredentials = opts.withCredentials;++ if (opts.responseType !== '') {+ xhr.responseType = opts.responseType;+ }++ Object.keys(opts.headers).forEach(function (header) {+ xhr.setRequestHeader(header, opts.headers[header]);+ });++ var queuedRequest = _this3.requests.run(function () {+ xhr.send(data);+ return function () {+ timer.done();+ xhr.abort();+ };+ }, {+ priority: 1+ });++ _this3._onFileRemoved(file.id, function () {+ queuedRequest.abort();+ reject(new Error('File removed'));+ });++ _this3._onCancelAll(file.id, function () {+ queuedRequest.abort();+ reject(new Error('Upload cancelled'));+ });+ });+ };++ _proto._uploadRemoteFile = function _uploadRemoteFile(file, current, total) {+ var _this4 = this;++ var opts = this._getOptions(file);++ return new Promise(function (resolve, reject) {+ // This is done in index.js in the S3 plugin.+ // this.uppy.emit('upload-started', file)+ var fields = {};+ var metaFields = Array.isArray(opts.metaFields) ? opts.metaFields // Send along all fields by default.+ : Object.keys(file.meta);+ metaFields.forEach(function (name) {+ fields[name] = file.meta[name];+ });+ var Client = file.remote.providerOptions.provider ? Provider : RequestClient;+ var client = new Client(_this4.uppy, file.remote.providerOptions);+ client.post(file.remote.url, _extends({}, file.remote.body, {+ endpoint: opts.endpoint,+ size: file.data.size,+ fieldname: opts.fieldName,+ metadata: fields,+ httpMethod: opts.method,+ useFormData: opts.formData,+ headers: opts.headers+ })).then(function (res) {+ var token = res.token;+ var host = getSocketHost(file.remote.companionUrl);+ var socket = new Socket({+ target: host + "/api/" + token,+ autoOpen: false+ });+ _this4.uploaderEvents[file.id] = new EventTracker(_this4.uppy);++ _this4._onFileRemoved(file.id, function () {+ socket.send('pause', {});+ queuedRequest.abort();+ resolve("upload " + file.id + " was removed");+ });++ _this4._onCancelAll(file.id, function () {+ socket.send('pause', {});+ queuedRequest.abort();+ resolve("upload " + file.id + " was canceled");+ });++ _this4._onRetry(file.id, function () {+ socket.send('pause', {});+ socket.send('resume', {});+ });++ _this4._onRetryAll(file.id, function () {+ socket.send('pause', {});+ socket.send('resume', {});+ });++ socket.on('progress', function (progressData) {+ return emitSocketProgress(_this4, progressData, file);+ });+ socket.on('success', function (data) {+ var body = opts.getResponseData(data.response.responseText, data.response);+ var uploadURL = body[opts.responseUrlFieldName];+ var uploadResp = {+ status: data.response.status,+ body: body,+ uploadURL: uploadURL+ };++ _this4.uppy.emit('upload-success', file, uploadResp);++ queuedRequest.done();++ if (_this4.uploaderEvents[file.id]) {+ _this4.uploaderEvents[file.id].remove();++ _this4.uploaderEvents[file.id] = null;+ }++ return resolve();+ });+ socket.on('error', function (errData) {+ var resp = errData.response;+ var error = resp ? opts.getResponseError(resp.responseText, resp) : _extends(new Error(errData.error.message), {+ cause: errData.error+ });++ _this4.uppy.emit('upload-error', file, error);++ queuedRequest.done();++ if (_this4.uploaderEvents[file.id]) {+ _this4.uploaderEvents[file.id].remove();++ _this4.uploaderEvents[file.id] = null;+ }++ reject(error);+ });++ var queuedRequest = _this4.requests.run(function () {+ socket.open();++ if (file.isPaused) {+ socket.send('pause', {});+ }++ return function () {+ return socket.close();+ };+ });+ }).catch(function (err) {+ _this4.uppy.emit('upload-error', file, err);++ reject(err);+ });+ });+ };++ return MiniXHRUpload;+}();+},{"@uppy/companion-client":12,"@uppy/utils/lib/EventTracker":21,"@uppy/utils/lib/NetworkError":22,"@uppy/utils/lib/ProgressTimeout":23,"@uppy/utils/lib/emitSocketProgress":27,"@uppy/utils/lib/getSocketHost":34,"@uppy/utils/lib/isNetworkError":38,"cuid":43}],5:[function(require,module,exports){+var _class, _temp;++function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }++function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }++function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }++function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }++/**+ * This plugin is currently a A Big Hack™! The core reason for that is how this plugin+ * interacts with Uppy's current pipeline design. The pipeline can handle files in steps,+ * including preprocessing, uploading, and postprocessing steps. This plugin initially+ * was designed to do its work in a preprocessing step, and let XHRUpload deal with the+ * actual file upload as an uploading step. However, Uppy runs steps on all files at once,+ * sequentially: first, all files go through a preprocessing step, then, once they are all+ * done, they go through the uploading step.+ *+ * For S3, this causes severely broken behaviour when users upload many files. The+ * preprocessing step will request S3 upload URLs that are valid for a short time only,+ * but it has to do this for _all_ files, which can take a long time if there are hundreds+ * or even thousands of files. By the time the uploader step starts, the first URLs may+ * already have expired. If not, the uploading might take such a long time that later URLs+ * will expire before some files can be uploaded.+ *+ * The long-term solution to this problem is to change the upload pipeline so that files+ * can be sent to the next step individually. That requires a breaking change, so it is+ * planned for some future Uppy version.+ *+ * In the mean time, this plugin is stuck with a hackier approach: the necessary parts+ * of the XHRUpload implementation were copied into this plugin, as the MiniXHRUpload+ * class, and this plugin calls into it immediately once it receives an upload URL.+ * This isn't as nicely modular as we'd like and requires us to maintain two copies of+ * the XHRUpload code, but at least it's not horrifically broken :)+ */+// If global `URL` constructor is available, use it+var URL_ = typeof URL === 'function' ? URL : require('url-parse');++var _require = require('@uppy/core'),+ Plugin = _require.Plugin;++var Translator = require('@uppy/utils/lib/Translator');++var RateLimitedQueue = require('@uppy/utils/lib/RateLimitedQueue');++var settle = require('@uppy/utils/lib/settle');++var hasProperty = require('@uppy/utils/lib/hasProperty');++var _require2 = require('@uppy/companion-client'),+ RequestClient = _require2.RequestClient;++var qsStringify = require('qs-stringify');++var MiniXHRUpload = require('./MiniXHRUpload');++var isXml = require('./isXml');++function resolveUrl(origin, link) {+ return origin ? new URL_(link, origin).toString() : new URL_(link).toString();+}+/**+ * Get the contents of a named tag in an XML source string.+ *+ * @param {string} source - The XML source string.+ * @param {string} tagName - The name of the tag.+ * @returns {string} The contents of the tag, or the empty string if the tag does not exist.+ */+++function getXmlValue(source, tagName) {+ var start = source.indexOf("<" + tagName + ">");+ var end = source.indexOf("</" + tagName + ">", start);+ return start !== -1 && end !== -1 ? source.slice(start + tagName.length + 2, end) : '';+}++function assertServerError(res) {+ if (res && res.error) {+ var error = new Error(res.message);++ _extends(error, res.error);++ throw error;+ }++ return res;+} // warning deduplication flag: see `getResponseData()` XHRUpload option definition+++var warnedSuccessActionStatus = false;+module.exports = (_temp = _class = /*#__PURE__*/function (_Plugin) {+ _inheritsLoose(AwsS3, _Plugin);++ function AwsS3(uppy, opts) {+ var _this;++ _this = _Plugin.call(this, uppy, opts) || this;+ _this.type = 'uploader';+ _this.id = _this.opts.id || 'AwsS3';+ _this.title = 'AWS S3';+ _this.defaultLocale = {+ strings: {+ timedOut: 'Upload stalled for %{seconds} seconds, aborting.'+ }+ };+ var defaultOptions = {+ timeout: 30 * 1000,+ limit: 0,+ metaFields: [],+ // have to opt in+ getUploadParameters: _this.getUploadParameters.bind(_assertThisInitialized(_this))+ };+ _this.opts = _extends({}, defaultOptions, opts);++ _this.i18nInit();++ _this.client = new RequestClient(uppy, opts);+ _this.handleUpload = _this.handleUpload.bind(_assertThisInitialized(_this));+ _this.requests = new RateLimitedQueue(_this.opts.limit);+ return _this;+ }++ var _proto = AwsS3.prototype;++ _proto.setOptions = function setOptions(newOpts) {+ _Plugin.prototype.setOptions.call(this, newOpts);++ this.i18nInit();+ };++ _proto.i18nInit = function i18nInit() {+ this.translator = new Translator([this.defaultLocale, this.uppy.locale, this.opts.locale]);+ this.i18n = this.translator.translate.bind(this.translator);+ this.setPluginState(); // so that UI re-renders and we see the updated locale+ };++ _proto.getUploadParameters = function getUploadParameters(file) {+ if (!this.opts.companionUrl) {+ throw new Error('Expected a `companionUrl` option containing a Companion address.');+ }++ var filename = file.meta.name;+ var type = file.meta.type;+ var metadata = {};+ this.opts.metaFields.forEach(function (key) {+ if (file.meta[key] != null) {+ metadata[key] = file.meta[key].toString();+ }+ });+ var query = qsStringify({+ filename: filename,+ type: type,+ metadata: metadata+ });+ return this.client.get("s3/params?" + query).then(assertServerError);+ };++ _proto.validateParameters = function validateParameters(file, params) {+ var valid = typeof params === 'object' && params && typeof params.url === 'string' && (typeof params.fields === 'object' || params.fields == null);++ if (!valid) {+ var err = new TypeError("AwsS3: got incorrect result from 'getUploadParameters()' for file '" + file.name + "', expected an object '{ url, method, fields, headers }' but got '" + JSON.stringify(params) + "' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format.");+ console.error(err);+ throw err;+ }++ var methodIsValid = params.method == null || /^(put|post)$/i.test(params.method);++ if (!methodIsValid) {+ var _err = new TypeError("AwsS3: got incorrect method from 'getUploadParameters()' for file '" + file.name + "', expected 'put' or 'post' but got '" + params.method + "' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format.");++ console.error(_err);+ throw _err;+ }+ };++ _proto.handleUpload = function handleUpload(fileIDs) {+ var _this2 = this;++ /**+ * keep track of `getUploadParameters()` responses+ * so we can cancel the calls individually using just a file ID+ *+ * @type {object.<string, Promise>}+ */+ var paramsPromises = Object.create(null);++ function onremove(file) {+ var id = file.id;++ if (hasProperty(paramsPromises, id)) {+ paramsPromises[id].abort();+ }+ }++ this.uppy.on('file-removed', onremove);+ fileIDs.forEach(function (id) {+ var file = _this2.uppy.getFile(id);++ _this2.uppy.emit('upload-started', file);+ });+ var getUploadParameters = this.requests.wrapPromiseFunction(function (file) {+ return _this2.opts.getUploadParameters(file);+ });+ var numberOfFiles = fileIDs.length;+ return settle(fileIDs.map(function (id, index) {+ paramsPromises[id] = getUploadParameters(_this2.uppy.getFile(id));+ return paramsPromises[id].then(function (params) {+ delete paramsPromises[id];++ var file = _this2.uppy.getFile(id);++ _this2.validateParameters(file, params);++ var _params$method = params.method,+ method = _params$method === void 0 ? 'post' : _params$method,+ url = params.url,+ fields = params.fields,+ headers = params.headers;+ var xhrOpts = {+ method: method,+ formData: method.toLowerCase() === 'post',+ endpoint: url,+ metaFields: fields ? Object.keys(fields) : []+ };++ if (headers) {+ xhrOpts.headers = headers;+ }++ _this2.uppy.setFileState(file.id, {+ meta: _extends({}, file.meta, fields),+ xhrUpload: xhrOpts+ });++ return _this2._uploader.uploadFile(file.id, index, numberOfFiles);+ }).catch(function (error) {+ delete paramsPromises[id];++ var file = _this2.uppy.getFile(id);++ _this2.uppy.emit('upload-error', file, error);+ });+ })).then(function (settled) {+ // cleanup.+ _this2.uppy.off('file-removed', onremove);++ return settled;+ });+ };++ _proto.install = function install() {+ var uppy = this.uppy;+ this.uppy.addUploader(this.handleUpload); // Get the response data from a successful XMLHttpRequest instance.+ // `content` is the S3 response as a string.+ // `xhr` is the XMLHttpRequest instance.++ function defaultGetResponseData(content, xhr) {+ var opts = this; // If no response, we've hopefully done a PUT request to the file+ // in the bucket on its full URL.++ if (!isXml(content, xhr)) {+ if (opts.method.toUpperCase() === 'POST') {+ if (!warnedSuccessActionStatus) {+ uppy.log('[AwsS3] No response data found, make sure to set the success_action_status AWS SDK option to 201. See https://uppy.io/docs/aws-s3/#POST-Uploads', 'warning');+ warnedSuccessActionStatus = true;+ } // The responseURL won't contain the object key. Give up.+++ return {+ location: null+ };+ } // responseURL is not available in older browsers.+++ if (!xhr.responseURL) {+ return {+ location: null+ };+ } // Trim the query string because it's going to be a bunch of presign+ // parameters for a PUT request—doing a GET request with those will+ // always result in an error+++ return {+ location: xhr.responseURL.replace(/\?.*$/, '')+ };+ }++ return {+ // Some S3 alternatives do not reply with an absolute URL.+ // Eg DigitalOcean Spaces uses /$bucketName/xyz+ location: resolveUrl(xhr.responseURL, getXmlValue(content, 'Location')),+ bucket: getXmlValue(content, 'Bucket'),+ key: getXmlValue(content, 'Key'),+ etag: getXmlValue(content, 'ETag')+ };+ } // Get the error data from a failed XMLHttpRequest instance.+ // `content` is the S3 response as a string.+ // `xhr` is the XMLHttpRequest instance.+++ function defaultGetResponseError(content, xhr) {+ // If no response, we don't have a specific error message, use the default.+ if (!isXml(content, xhr)) {+ return;+ }++ var error = getXmlValue(content, 'Message');+ return new Error(error);+ }++ var xhrOptions = {+ fieldName: 'file',+ responseUrlFieldName: 'location',+ timeout: this.opts.timeout,+ // Share the rate limiting queue with XHRUpload.+ __queue: this.requests,+ responseType: 'text',+ getResponseData: this.opts.getResponseData || defaultGetResponseData,+ getResponseError: defaultGetResponseError+ }; // Only for MiniXHRUpload, remove once we can depend on XHRUpload directly again++ xhrOptions.i18n = this.i18n; // Revert to `this.uppy.use(XHRUpload)` once the big comment block at the top of+ // this file is solved++ this._uploader = new MiniXHRUpload(this.uppy, xhrOptions);+ };++ _proto.uninstall = function uninstall() {+ this.uppy.removeUploader(this.handleUpload);+ };++ return AwsS3;+}(Plugin), _class.VERSION = "1.7.12", _temp);+},{"./MiniXHRUpload":4,"./isXml":6,"@uppy/companion-client":12,"@uppy/core":15,"@uppy/utils/lib/RateLimitedQueue":24,"@uppy/utils/lib/Translator":25,"@uppy/utils/lib/hasProperty":36,"@uppy/utils/lib/settle":40,"qs-stringify":51,"url-parse":54}],6:[function(require,module,exports){+/**+ * Remove parameters like `charset=utf-8` from the end of a mime type string.+ *+ * @param {string} mimeType - The mime type string that may have optional parameters.+ * @returns {string} The "base" mime type, i.e. only 'category/type'.+ */+function removeMimeParameters(mimeType) {+ return mimeType.replace(/;.*$/, '');+}+/**+ * Check if a response contains XML based on the response object and its text content.+ *+ * @param {string} content - The text body of the response.+ * @param {object|XMLHttpRequest} xhr - The XHR object or response object from Companion.+ * @returns {bool} Whether the content is (probably) XML.+ */+++function isXml(content, xhr) {+ var rawContentType = xhr.headers ? xhr.headers['content-type'] : xhr.getResponseHeader('Content-Type');++ if (typeof rawContentType === 'string') {+ var contentType = removeMimeParameters(rawContentType).toLowerCase();++ if (contentType === 'application/xml' || contentType === 'text/xml') {+ return true;+ } // GCS uses text/html for some reason+ // https://github.com/transloadit/uppy/issues/896+++ if (contentType === 'text/html' && /^<\?xml /.test(content)) {+ return true;+ }+ }++ return false;+}++module.exports = isXml;+},{}],7:[function(require,module,exports){+'use strict';++function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }++function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }++function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }++function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }++function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }++function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }++function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }++var AuthError = /*#__PURE__*/function (_Error) {+ _inheritsLoose(AuthError, _Error);++ function AuthError() {+ var _this;++ _this = _Error.call(this, 'Authorization required') || this;+ _this.name = 'AuthError';+ _this.isAuthError = true;+ return _this;+ }++ return AuthError;+}( /*#__PURE__*/_wrapNativeSuper(Error));++module.exports = AuthError;+},{}],8:[function(require,module,exports){+'use strict';++function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }++function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }++function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }++var qsStringify = require('qs-stringify');++var URL = require('url-parse');++var RequestClient = require('./RequestClient');++var tokenStorage = require('./tokenStorage');++var _getName = function _getName(id) {+ return id.split('-').map(function (s) {+ return s.charAt(0).toUpperCase() + s.slice(1);+ }).join(' ');+};++module.exports = /*#__PURE__*/function (_RequestClient) {+ _inheritsLoose(Provider, _RequestClient);++ function Provider(uppy, opts) {+ var _this;++ _this = _RequestClient.call(this, uppy, opts) || this;+ _this.provider = opts.provider;+ _this.id = _this.provider;+ _this.name = _this.opts.name || _getName(_this.id);+ _this.pluginId = _this.opts.pluginId;+ _this.tokenKey = "companion-" + _this.pluginId + "-auth-token";+ _this.companionKeysParams = _this.opts.companionKeysParams;+ _this.preAuthToken = null;+ return _this;+ }++ var _proto = Provider.prototype;++ _proto.headers = function headers() {+ var _this2 = this;++ return Promise.all([_RequestClient.prototype.headers.call(this), this.getAuthToken()]).then(function (_ref) {+ var headers = _ref[0],+ token = _ref[1];+ var authHeaders = {};++ if (token) {+ authHeaders['uppy-auth-token'] = token;+ }++ if (_this2.companionKeysParams) {+ authHeaders['uppy-credentials-params'] = btoa(JSON.stringify({+ params: _this2.companionKeysParams+ }));+ }++ return _extends({}, headers, authHeaders);+ });+ };++ _proto.onReceiveResponse = function onReceiveResponse(response) {+ response = _RequestClient.prototype.onReceiveResponse.call(this, response);+ var plugin = this.uppy.getPlugin(this.pluginId);+ var oldAuthenticated = plugin.getPluginState().authenticated;+ var authenticated = oldAuthenticated ? response.status !== 401 : response.status < 400;+ plugin.setPluginState({+ authenticated: authenticated+ });+ return response;+ } // @todo(i.olarewaju) consider whether or not this method should be exposed+ ;++ _proto.setAuthToken = function setAuthToken(token) {+ return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey, token);+ };++ _proto.getAuthToken = function getAuthToken() {+ return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey);+ };++ _proto.authUrl = function authUrl(queries) {+ if (queries === void 0) {+ queries = {};+ }++ if (this.preAuthToken) {+ queries.uppyPreAuthToken = this.preAuthToken;+ }++ var strigifiedQueries = qsStringify(queries);+ strigifiedQueries = strigifiedQueries ? "?" + strigifiedQueries : strigifiedQueries;+ return this.hostname + "/" + this.id + "/connect" + strigifiedQueries;+ };++ _proto.fileUrl = function fileUrl(id) {+ return this.hostname + "/" + this.id + "/get/" + id;+ };++ _proto.fetchPreAuthToken = function fetchPreAuthToken() {+ var _this3 = this;++ if (!this.companionKeysParams) {+ return Promise.resolve();+ }++ return this.post(this.id + "/preauth/", {+ params: this.companionKeysParams+ }).then(function (res) {+ _this3.preAuthToken = res.token;+ }).catch(function (err) {+ _this3.uppy.log("[CompanionClient] unable to fetch preAuthToken " + err, 'warning');+ });+ };++ _proto.list = function list(directory) {+ return this.get(this.id + "/list/" + (directory || ''));+ };++ _proto.logout = function logout() {+ var _this4 = this;++ return this.get(this.id + "/logout").then(function (response) {+ return Promise.all([response, _this4.uppy.getPlugin(_this4.pluginId).storage.removeItem(_this4.tokenKey)]);+ }).then(function (_ref2) {+ var response = _ref2[0];+ return response;+ });+ };++ Provider.initPlugin = function initPlugin(plugin, opts, defaultOpts) {+ plugin.type = 'acquirer';+ plugin.files = [];++ if (defaultOpts) {+ plugin.opts = _extends({}, defaultOpts, opts);+ }++ if (opts.serverUrl || opts.serverPattern) {+ throw new Error('`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`');+ }++ if (opts.companionAllowedHosts) {+ var pattern = opts.companionAllowedHosts; // validate companionAllowedHosts param++ if (typeof pattern !== 'string' && !Array.isArray(pattern) && !(pattern instanceof RegExp)) {+ throw new TypeError(plugin.id + ": the option \"companionAllowedHosts\" must be one of string, Array, RegExp");+ }++ plugin.opts.companionAllowedHosts = pattern;+ } else {+ // does not start with https://+ if (/^(?!https?:\/\/).*$/i.test(opts.companionUrl)) {+ plugin.opts.companionAllowedHosts = "https://" + opts.companionUrl.replace(/^\/\//, '');+ } else {+ plugin.opts.companionAllowedHosts = new URL(opts.companionUrl).origin;+ }+ }++ plugin.storage = plugin.opts.storage || tokenStorage;+ };++ return Provider;+}(RequestClient);+},{"./RequestClient":9,"./tokenStorage":13,"qs-stringify":51,"url-parse":54}],9:[function(require,module,exports){+'use strict';++var _class, _temp;++function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }++function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }++function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }++var AuthError = require('./AuthError');++var fetchWithNetworkError = require('@uppy/utils/lib/fetchWithNetworkError'); // Remove the trailing slash so we can always safely append /xyz.+++function stripSlash(url) {+ return url.replace(/\/$/, '');+}++module.exports = (_temp = _class = /*#__PURE__*/function () {+ function RequestClient(uppy, opts) {+ this.uppy = uppy;+ this.opts = opts;+ this.onReceiveResponse = this.onReceiveResponse.bind(this);+ this.allowedHeaders = ['accept', 'content-type', 'uppy-auth-token'];+ this.preflightDone = false;+ }++ var _proto = RequestClient.prototype;++ _proto.headers = function headers() {+ var userHeaders = this.opts.companionHeaders || this.opts.serverHeaders || {};+ return Promise.resolve(_extends({}, this.defaultHeaders, userHeaders));+ };++ _proto._getPostResponseFunc = function _getPostResponseFunc(skip) {+ var _this = this;++ return function (response) {+ if (!skip) {+ return _this.onReceiveResponse(response);+ }++ return response;+ };+ };++ _proto.onReceiveResponse = function onReceiveResponse(response) {+ var state = this.uppy.getState();+ var companion = state.companion || {};+ var host = this.opts.companionUrl;+ var headers = response.headers; // Store the self-identified domain name for the Companion instance we just hit.++ if (headers.has('i-am') && headers.get('i-am') !== companion[host]) {+ var _extends2;++ this.uppy.setState({+ companion: _extends({}, companion, (_extends2 = {}, _extends2[host] = headers.get('i-am'), _extends2))+ });+ }++ return response;+ };++ _proto._getUrl = function _getUrl(url) {+ if (/^(https?:|)\/\//.test(url)) {+ return url;+ }++ return this.hostname + "/" + url;+ };++ _proto._json = function _json(res) {+ if (res.status === 401) {+ throw new AuthError();+ }++ if (res.status < 200 || res.status > 300) {+ var errMsg = "Failed request with status: " + res.status + ". " + res.statusText;+ return res.json().then(function (errData) {+ errMsg = errData.message ? errMsg + " message: " + errData.message : errMsg;+ errMsg = errData.requestId ? errMsg + " request-Id: " + errData.requestId : errMsg;+ throw new Error(errMsg);+ }).catch(function () {+ throw new Error(errMsg);+ });+ }++ return res.json();+ };++ _proto.preflight = function preflight(path) {+ var _this2 = this;++ if (this.preflightDone) {+ return Promise.resolve(this.allowedHeaders.slice());+ }++ return fetch(this._getUrl(path), {+ method: 'OPTIONS'+ }).then(function (response) {+ if (response.headers.has('access-control-allow-headers')) {+ _this2.allowedHeaders = response.headers.get('access-control-allow-headers').split(',').map(function (headerName) {+ return headerName.trim().toLowerCase();+ });+ }++ _this2.preflightDone = true;+ return _this2.allowedHeaders.slice();+ }).catch(function (err) {+ _this2.uppy.log("[CompanionClient] unable to make preflight request " + err, 'warning');++ _this2.preflightDone = true;+ return _this2.allowedHeaders.slice();+ });+ };++ _proto.preflightAndHeaders = function preflightAndHeaders(path) {+ var _this3 = this;++ return Promise.all([this.preflight(path), this.headers()]).then(function (_ref) {+ var allowedHeaders = _ref[0],+ headers = _ref[1];+ // filter to keep only allowed Headers+ Object.keys(headers).forEach(function (header) {+ if (allowedHeaders.indexOf(header.toLowerCase()) === -1) {+ _this3.uppy.log("[CompanionClient] excluding unallowed header " + header);++ delete headers[header];+ }+ });+ return headers;+ });+ };++ _proto.get = function get(path, skipPostResponse) {+ var _this4 = this;++ return this.preflightAndHeaders(path).then(function (headers) {+ return fetchWithNetworkError(_this4._getUrl(path), {+ method: 'get',+ headers: headers,+ credentials: _this4.opts.companionCookiesRule || 'same-origin'+ });+ }).then(this._getPostResponseFunc(skipPostResponse)).then(function (res) {+ return _this4._json(res);+ }).catch(function (err) {+ if (!err.isAuthError) {+ err.message = "Could not get " + _this4._getUrl(path) + ". " + err.message;+ }++ return Promise.reject(err);+ });+ };++ _proto.post = function post(path, data, skipPostResponse) {+ var _this5 = this;++ return this.preflightAndHeaders(path).then(function (headers) {+ return fetchWithNetworkError(_this5._getUrl(path), {+ method: 'post',+ headers: headers,+ credentials: _this5.opts.companionCookiesRule || 'same-origin',+ body: JSON.stringify(data)+ });+ }).then(this._getPostResponseFunc(skipPostResponse)).then(function (res) {+ return _this5._json(res);+ }).catch(function (err) {+ if (!err.isAuthError) {+ err.message = "Could not post " + _this5._getUrl(path) + ". " + err.message;+ }++ return Promise.reject(err);+ });+ };++ _proto.delete = function _delete(path, data, skipPostResponse) {+ var _this6 = this;++ return this.preflightAndHeaders(path).then(function (headers) {+ return fetchWithNetworkError(_this6.hostname + "/" + path, {+ method: 'delete',+ headers: headers,+ credentials: _this6.opts.companionCookiesRule || 'same-origin',+ body: data ? JSON.stringify(data) : null+ });+ }).then(this._getPostResponseFunc(skipPostResponse)).then(function (res) {+ return _this6._json(res);+ }).catch(function (err) {+ if (!err.isAuthError) {+ err.message = "Could not delete " + _this6._getUrl(path) + ". " + err.message;+ }++ return Promise.reject(err);+ });+ };++ _createClass(RequestClient, [{+ key: "hostname",+ get: function get() {+ var _this$uppy$getState = this.uppy.getState(),+ companion = _this$uppy$getState.companion;++ var host = this.opts.companionUrl;+ return stripSlash(companion && companion[host] ? companion[host] : host);+ }+ }, {+ key: "defaultHeaders",+ get: function get() {+ return {+ Accept: 'application/json',+ 'Content-Type': 'application/json',+ 'Uppy-Versions': "@uppy/companion-client=" + RequestClient.VERSION+ };+ }+ }]);++ return RequestClient;+}(), _class.VERSION = "1.10.2", _temp);+},{"./AuthError":7,"@uppy/utils/lib/fetchWithNetworkError":28}],10:[function(require,module,exports){+'use strict';++function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }++function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }++var RequestClient = require('./RequestClient');++var _getName = function _getName(id) {+ return id.split('-').map(function (s) {+ return s.charAt(0).toUpperCase() + s.slice(1);+ }).join(' ');+};++module.exports = /*#__PURE__*/function (_RequestClient) {+ _inheritsLoose(SearchProvider, _RequestClient);++ function SearchProvider(uppy, opts) {+ var _this;++ _this = _RequestClient.call(this, uppy, opts) || this;+ _this.provider = opts.provider;+ _this.id = _this.provider;+ _this.name = _this.opts.name || _getName(_this.id);+ _this.pluginId = _this.opts.pluginId;+ return _this;+ }++ var _proto = SearchProvider.prototype;++ _proto.fileUrl = function fileUrl(id) {+ return this.hostname + "/search/" + this.id + "/get/" + id;+ };++ _proto.search = function search(text, queries) {+ queries = queries ? "&" + queries : '';+ return this.get("search/" + this.id + "/list?q=" + encodeURIComponent(text) + queries);+ };++ return SearchProvider;+}(RequestClient);+},{"./RequestClient":9}],11:[function(require,module,exports){+var ee = require('namespace-emitter');++module.exports = /*#__PURE__*/function () {+ function UppySocket(opts) {+ this.opts = opts;+ this._queued = [];+ this.isOpen = false;+ this.emitter = ee();+ this._handleMessage = this._handleMessage.bind(this);+ this.close = this.close.bind(this);+ this.emit = this.emit.bind(this);+ this.on = this.on.bind(this);+ this.once = this.once.bind(this);+ this.send = this.send.bind(this);++ if (!opts || opts.autoOpen !== false) {+ this.open();+ }+ }++ var _proto = UppySocket.prototype;++ _proto.open = function open() {+ var _this = this;++ this.socket = new WebSocket(this.opts.target);++ this.socket.onopen = function (e) {+ _this.isOpen = true;++ while (_this._queued.length > 0 && _this.isOpen) {+ var first = _this._queued[0];++ _this.send(first.action, first.payload);++ _this._queued = _this._queued.slice(1);+ }+ };++ this.socket.onclose = function (e) {+ _this.isOpen = false;+ };++ this.socket.onmessage = this._handleMessage;+ };++ _proto.close = function close() {+ if (this.socket) {+ this.socket.close();+ }+ };++ _proto.send = function send(action, payload) {+ // attach uuid+ if (!this.isOpen) {+ this._queued.push({+ action: action,+ payload: payload+ });++ return;+ }++ this.socket.send(JSON.stringify({+ action: action,+ payload: payload+ }));+ };++ _proto.on = function on(action, handler) {+ this.emitter.on(action, handler);+ };++ _proto.emit = function emit(action, payload) {+ this.emitter.emit(action, payload);+ };++ _proto.once = function once(action, handler) {+ this.emitter.once(action, handler);+ };++ _proto._handleMessage = function _handleMessage(e) {+ try {+ var message = JSON.parse(e.data);+ this.emit(message.action, message.payload);+ } catch (err) {+ console.log(err);+ }+ };++ return UppySocket;+}();+},{"namespace-emitter":49}],12:[function(require,module,exports){+'use strict';+/**+ * Manages communications with Companion+ */++var RequestClient = require('./RequestClient');++var Provider = require('./Provider');++var SearchProvider = require('./SearchProvider');++var Socket = require('./Socket');++module.exports = {+ RequestClient: RequestClient,+ Provider: Provider,+ SearchProvider: SearchProvider,+ Socket: Socket+};+},{"./Provider":8,"./RequestClient":9,"./SearchProvider":10,"./Socket":11}],13:[function(require,module,exports){+'use strict';+/**+ * This module serves as an Async wrapper for LocalStorage+ */++module.exports.setItem = function (key, value) {+ return new Promise(function (resolve) {+ localStorage.setItem(key, value);+ resolve();+ });+};++module.exports.getItem = function (key) {+ return Promise.resolve(localStorage.getItem(key));+};++module.exports.removeItem = function (key) {+ return new Promise(function (resolve) {+ localStorage.removeItem(key);+ resolve();+ });+};+},{}],14:[function(require,module,exports){+function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }++var preact = require('preact');++var findDOMElement = require('@uppy/utils/lib/findDOMElement');+/**+ * Defer a frequent call to the microtask queue.+ */+++function debounce(fn) {+ var calling = null;+ var latestArgs = null;+ return function () {+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {+ args[_key] = arguments[_key];+ }++ latestArgs = args;++ if (!calling) {+ calling = Promise.resolve().then(function () {+ calling = null; // At this point `args` may be different from the most+ // recent state, if multiple calls happened since this task+ // was queued. So we use the `latestArgs`, which definitely+ // is the most recent call.++ return fn.apply(void 0, latestArgs);+ });+ }++ return calling;+ };+}+/**+ * Boilerplate that all Plugins share - and should not be used+ * directly. It also shows which methods final plugins should implement/override,+ * this deciding on structure.+ *+ * @param {object} main Uppy core object+ * @param {object} object with plugin options+ * @returns {Array|string} files or success/fail message+ */+++module.exports = /*#__PURE__*/function () {+ function Plugin(uppy, opts) {+ this.uppy = uppy;+ this.opts = opts || {};+ this.update = this.update.bind(this);+ this.mount = this.mount.bind(this);+ this.install = this.install.bind(this);+ this.uninstall = this.uninstall.bind(this);+ }++ var _proto = Plugin.prototype;++ _proto.getPluginState = function getPluginState() {+ var _this$uppy$getState = this.uppy.getState(),+ plugins = _this$uppy$getState.plugins;++ return plugins[this.id] || {};+ };++ _proto.setPluginState = function setPluginState(update) {+ var _extends2;++ var _this$uppy$getState2 = this.uppy.getState(),+ plugins = _this$uppy$getState2.plugins;++ this.uppy.setState({+ plugins: _extends({}, plugins, (_extends2 = {}, _extends2[this.id] = _extends({}, plugins[this.id], update), _extends2))+ });+ };++ _proto.setOptions = function setOptions(newOpts) {+ this.opts = _extends({}, this.opts, newOpts);+ this.setPluginState(); // so that UI re-renders with new options+ };++ _proto.update = function update(state) {+ if (typeof this.el === 'undefined') {+ return;+ }++ if (this._updateUI) {+ this._updateUI(state);+ }+ } // Called after every state update, after everything's mounted. Debounced.+ ;++ _proto.afterUpdate = function afterUpdate() {}+ /**+ * Called when plugin is mounted, whether in DOM or into another plugin.+ * Needed because sometimes plugins are mounted separately/after `install`,+ * so this.el and this.parent might not be available in `install`.+ * This is the case with @uppy/react plugins, for example.+ */+ ;++ _proto.onMount = function onMount() {}+ /**+ * Check if supplied `target` is a DOM element or an `object`.+ * If it’s an object — target is a plugin, and we search `plugins`+ * for a plugin with same name and return its target.+ *+ * @param {string|object} target+ *+ */+ ;++ _proto.mount = function mount(target, plugin) {+ var _this = this;++ var callerPluginName = plugin.id;+ var targetElement = findDOMElement(target);++ if (targetElement) {+ this.isTargetDOMEl = true; // API for plugins that require a synchronous rerender.++ this.rerender = function (state) {+ // plugin could be removed, but this.rerender is debounced below,+ // so it could still be called even after uppy.removePlugin or uppy.close+ // hence the check+ if (!_this.uppy.getPlugin(_this.id)) return;+ _this.el = preact.render(_this.render(state), targetElement, _this.el);++ _this.afterUpdate();+ };++ this._updateUI = debounce(this.rerender);+ this.uppy.log("Installing " + callerPluginName + " to a DOM element '" + target + "'"); // clear everything inside the target container++ if (this.opts.replaceTargetContent) {+ targetElement.innerHTML = '';+ }++ this.el = preact.render(this.render(this.uppy.getState()), targetElement);+ this.onMount();+ return this.el;+ }++ var targetPlugin;++ if (typeof target === 'object' && target instanceof Plugin) {+ // Targeting a plugin *instance*+ targetPlugin = target;+ } else if (typeof target === 'function') {+ // Targeting a plugin type+ var Target = target; // Find the target plugin instance.++ this.uppy.iteratePlugins(function (plugin) {+ if (plugin instanceof Target) {+ targetPlugin = plugin;+ return false;+ }+ });+ }++ if (targetPlugin) {+ this.uppy.log("Installing " + callerPluginName + " to " + targetPlugin.id);+ this.parent = targetPlugin;+ this.el = targetPlugin.addTarget(plugin);+ this.onMount();+ return this.el;+ }++ this.uppy.log("Not installing " + callerPluginName);+ var message = "Invalid target option given to " + callerPluginName + ".";++ if (typeof target === 'function') {+ message += ' The given target is not a Plugin class. ' + 'Please check that you\'re not specifying a React Component instead of a plugin. ' + 'If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: ' + 'run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.';+ } else {+ message += 'If you meant to target an HTML element, please make sure that the element exists. ' + 'Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. ' + '(see https://github.com/transloadit/uppy/issues/1042)\n\n' + 'If you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.';+ }++ throw new Error(message);+ };++ _proto.render = function render(state) {+ throw new Error('Extend the render method to add your plugin to a DOM element');+ };++ _proto.addTarget = function addTarget(plugin) {+ throw new Error('Extend the addTarget method to add your plugin to another plugin\'s target');+ };++ _proto.unmount = function unmount() {+ if (this.isTargetDOMEl && this.el && this.el.parentNode) {+ this.el.parentNode.removeChild(this.el);+ }+ };++ _proto.install = function install() {};++ _proto.uninstall = function uninstall() {+ this.unmount();+ };++ return Plugin;+}();+},{"@uppy/utils/lib/findDOMElement":29,"preact":50}],15:[function(require,module,exports){+function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }++function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }++function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }++function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }++function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }++function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }++function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }++function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }++function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }++function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }++/* global AggregateError */+var Translator = require('@uppy/utils/lib/Translator');++var ee = require('namespace-emitter');++var cuid = require('cuid');++var throttle = require('lodash.throttle');++var prettierBytes = require('@transloadit/prettier-bytes');++var match = require('mime-match');++var DefaultStore = require('@uppy/store-default');++var getFileType = require('@uppy/utils/lib/getFileType');++var getFileNameAndExtension = require('@uppy/utils/lib/getFileNameAndExtension');++var generateFileID = require('@uppy/utils/lib/generateFileID');++var findIndex = require('@uppy/utils/lib/findIndex');++var supportsUploadProgress = require('./supportsUploadProgress');++var _require = require('./loggers'),+ justErrorsLogger = _require.justErrorsLogger,+ debugLogger = _require.debugLogger;++var Plugin = require('./Plugin');++var _require2 = require('../package.json'),+ version = _require2.version; // Exported from here.+++var RestrictionError = /*#__PURE__*/function (_Error) {+ _inheritsLoose(RestrictionError, _Error);++ function RestrictionError() {+ var _this;++ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {+ args[_key] = arguments[_key];+ }++ _this = _Error.call.apply(_Error, [this].concat(args)) || this;+ _this.isRestriction = true;+ return _this;+ }++ return RestrictionError;+}( /*#__PURE__*/_wrapNativeSuper(Error));+/**+ * Uppy Core module.+ * Manages plugins, state updates, acts as an event bus,+ * adds/removes files and metadata.+ */+++var Uppy = /*#__PURE__*/function () {+ /**+ * Instantiate Uppy+ *+ * @param {object} opts — Uppy options+ */+ function Uppy(opts) {+ var _this2 = this;++ this.defaultLocale = {+ strings: {+ addBulkFilesFailed: {+ 0: 'Failed to add %{smart_count} file due to an internal error',+ 1: 'Failed to add %{smart_count} files due to internal errors'+ },+ youCanOnlyUploadX: {+ 0: 'You can only upload %{smart_count} file',+ 1: 'You can only upload %{smart_count} files'+ },+ youHaveToAtLeastSelectX: {+ 0: 'You have to select at least %{smart_count} file',+ 1: 'You have to select at least %{smart_count} files'+ },+ // The default `exceedsSize2` string only combines the `exceedsSize` string (%{backwardsCompat}) with the size.+ // Locales can override `exceedsSize2` to specify a different word order. This is for backwards compat with+ // Uppy 1.9.x and below which did a naive concatenation of `exceedsSize2 + size` instead of using a locale-specific+ // substitution.+ // TODO: In 2.0 `exceedsSize2` should be removed in and `exceedsSize` updated to use substitution.+ exceedsSize2: '%{backwardsCompat} %{size}',+ exceedsSize: '%{file} exceeds maximum allowed size of',+ inferiorSize: 'This file is smaller than the allowed size of %{size}',+ youCanOnlyUploadFileTypes: 'You can only upload: %{types}',+ noNewAlreadyUploading: 'Cannot add new files: already uploading',+ noDuplicates: 'Cannot add the duplicate file \'%{fileName}\', it already exists',+ companionError: 'Connection with Companion failed',+ companionUnauthorizeHint: 'To unauthorize to your %{provider} account, please go to %{url}',+ failedToUpload: 'Failed to upload %{file}',+ noInternetConnection: 'No Internet connection',+ connectedToInternet: 'Connected to the Internet',+ // Strings for remote providers+ noFilesFound: 'You have no files or folders here',+ selectX: {+ 0: 'Select %{smart_count}',+ 1: 'Select %{smart_count}'+ },+ selectAllFilesFromFolderNamed: 'Select all files from folder %{name}',+ unselectAllFilesFromFolderNamed: 'Unselect all files from folder %{name}',+ selectFileNamed: 'Select file %{name}',+ unselectFileNamed: 'Unselect file %{name}',+ openFolderNamed: 'Open folder %{name}',+ cancel: 'Cancel',+ logOut: 'Log out',+ filter: 'Filter',+ resetFilter: 'Reset filter',+ loading: 'Loading...',+ authenticateWithTitle: 'Please authenticate with %{pluginName} to select files',+ authenticateWith: 'Connect to %{pluginName}',+ searchImages: 'Search for images',+ enterTextToSearch: 'Enter text to search for images',+ backToSearch: 'Back to Search',+ emptyFolderAdded: 'No files were added from empty folder',+ folderAdded: {+ 0: 'Added %{smart_count} file from %{folder}',+ 1: 'Added %{smart_count} files from %{folder}'+ }+ }+ };+ var defaultOptions = {+ id: 'uppy',+ autoProceed: false,+ allowMultipleUploads: true,+ debug: false,+ restrictions: {+ maxFileSize: null,+ minFileSize: null,+ maxTotalFileSize: null,+ maxNumberOfFiles: null,+ minNumberOfFiles: null,+ allowedFileTypes: null+ },+ meta: {},+ onBeforeFileAdded: function onBeforeFileAdded(currentFile) {+ return currentFile;+ },+ onBeforeUpload: function onBeforeUpload(files) {+ return files;+ },+ store: DefaultStore(),+ logger: justErrorsLogger,+ infoTimeout: 5000+ }; // Merge default options with the ones set by user,+ // making sure to merge restrictions too++ this.opts = _extends({}, defaultOptions, opts, {+ restrictions: _extends({}, defaultOptions.restrictions, opts && opts.restrictions)+ }); // Support debug: true for backwards-compatability, unless logger is set in opts+ // opts instead of this.opts to avoid comparing objects — we set logger: justErrorsLogger in defaultOptions++ if (opts && opts.logger && opts.debug) {+ this.log('You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.', 'warning');+ } else if (opts && opts.debug) {+ this.opts.logger = debugLogger;+ }++ this.log("Using Core v" + this.constructor.VERSION);++ if (this.opts.restrictions.allowedFileTypes && this.opts.restrictions.allowedFileTypes !== null && !Array.isArray(this.opts.restrictions.allowedFileTypes)) {+ throw new TypeError('`restrictions.allowedFileTypes` must be an array');+ }++ this.i18nInit(); // Container for different types of plugins++ this.plugins = {};+ this.getState = this.getState.bind(this);+ this.getPlugin = this.getPlugin.bind(this);+ this.setFileMeta = this.setFileMeta.bind(this);+ this.setFileState = this.setFileState.bind(this);+ this.log = this.log.bind(this);+ this.info = this.info.bind(this);+ this.hideInfo = this.hideInfo.bind(this);+ this.addFile = this.addFile.bind(this);+ this.removeFile = this.removeFile.bind(this);+ this.pauseResume = this.pauseResume.bind(this);+ this.validateRestrictions = this.validateRestrictions.bind(this); // ___Why throttle at 500ms?+ // - We must throttle at >250ms for superfocus in Dashboard to work well+ // (because animation takes 0.25s, and we want to wait for all animations to be over before refocusing).+ // [Practical Check]: if thottle is at 100ms, then if you are uploading a file,+ // and click 'ADD MORE FILES', - focus won't activate in Firefox.+ // - We must throttle at around >500ms to avoid performance lags.+ // [Practical Check] Firefox, try to upload a big file for a prolonged period of time. Laptop will start to heat up.++ this.calculateProgress = throttle(this.calculateProgress.bind(this), 500, {+ leading: true,+ trailing: true+ });+ this.updateOnlineStatus = this.updateOnlineStatus.bind(this);+ this.resetProgress = this.resetProgress.bind(this);+ this.pauseAll = this.pauseAll.bind(this);+ this.resumeAll = this.resumeAll.bind(this);+ this.retryAll = this.retryAll.bind(this);+ this.cancelAll = this.cancelAll.bind(this);+ this.retryUpload = this.retryUpload.bind(this);+ this.upload = this.upload.bind(this);+ this.emitter = ee();+ this.on = this.on.bind(this);+ this.off = this.off.bind(this);+ this.once = this.emitter.once.bind(this.emitter);+ this.emit = this.emitter.emit.bind(this.emitter);+ this.preProcessors = [];+ this.uploaders = [];+ this.postProcessors = [];+ this.store = this.opts.store;+ this.setState({+ plugins: {},+ files: {},+ currentUploads: {},+ allowNewUpload: true,+ capabilities: {+ uploadProgress: supportsUploadProgress(),+ individualCancellation: true,+ resumableUploads: false+ },+ totalProgress: 0,+ meta: _extends({}, this.opts.meta),+ info: {+ isHidden: true,+ type: 'info',+ message: ''+ },+ recoveredState: null+ });+ this.storeUnsubscribe = this.store.subscribe(function (prevState, nextState, patch) {+ _this2.emit('state-update', prevState, nextState, patch);++ _this2.updateAll(nextState);+ }); // Exposing uppy object on window for debugging and testing++ if (this.opts.debug && typeof window !== 'undefined') {+ window[this.opts.id] = this;+ }++ this.addListeners(); // Re-enable if we’ll need some capabilities on boot, like isMobileDevice+ // this._setCapabilities()+ } // _setCapabilities = () => {+ // const capabilities = {+ // isMobileDevice: isMobileDevice()+ // }+ // this.setState({+ // ...this.getState().capabilities,+ // capabilities+ // })+ // }+++ var _proto = Uppy.prototype;++ _proto.on = function on(event, callback) {+ this.emitter.on(event, callback);+ return this;+ };++ _proto.off = function off(event, callback) {+ this.emitter.off(event, callback);+ return this;+ }+ /**+ * Iterate on all plugins and run `update` on them.+ * Called each time state changes.+ *+ */+ ;++ _proto.updateAll = function updateAll(state) {+ this.iteratePlugins(function (plugin) {+ plugin.update(state);+ });+ }+ /**+ * Updates state with a patch+ *+ * @param {object} patch {foo: 'bar'}+ */+ ;++ _proto.setState = function setState(patch) {+ this.store.setState(patch);+ }+ /**+ * Returns current state.+ *+ * @returns {object}+ */+ ;++ _proto.getState = function getState() {+ return this.store.getState();+ }+ /**+ * Back compat for when uppy.state is used instead of uppy.getState().+ */+ ;++ /**+ * Shorthand to set state for a specific file.+ */+ _proto.setFileState = function setFileState(fileID, state) {+ var _extends2;++ if (!this.getState().files[fileID]) {+ throw new Error("Can\u2019t set state for " + fileID + " (the file could have been removed)");+ }++ this.setState({+ files: _extends({}, this.getState().files, (_extends2 = {}, _extends2[fileID] = _extends({}, this.getState().files[fileID], state), _extends2))+ });+ };++ _proto.i18nInit = function i18nInit() {+ this.translator = new Translator([this.defaultLocale, this.opts.locale]);+ this.locale = this.translator.locale;+ this.i18n = this.translator.translate.bind(this.translator);+ this.i18nArray = this.translator.translateArray.bind(this.translator);+ };++ _proto.setOptions = function setOptions(newOpts) {+ this.opts = _extends({}, this.opts, newOpts, {+ restrictions: _extends({}, this.opts.restrictions, newOpts && newOpts.restrictions)+ });++ if (newOpts.meta) {+ this.setMeta(newOpts.meta);+ }++ this.i18nInit();++ if (newOpts.locale) {+ this.iteratePlugins(function (plugin) {+ plugin.setOptions();+ });+ } // Note: this is not the preact `setState`, it's an internal function that has the same name.+++ this.setState(); // so that UI re-renders with new options+ };++ _proto.resetProgress = function resetProgress() {+ var defaultProgress = {+ percentage: 0,+ bytesUploaded: 0,+ uploadComplete: false,+ uploadStarted: null+ };++ var files = _extends({}, this.getState().files);++ var updatedFiles = {};+ Object.keys(files).forEach(function (fileID) {+ var updatedFile = _extends({}, files[fileID]);++ updatedFile.progress = _extends({}, updatedFile.progress, defaultProgress);+ updatedFiles[fileID] = updatedFile;+ });+ this.setState({+ files: updatedFiles,+ totalProgress: 0+ });+ this.emit('reset-progress');+ };++ _proto.addPreProcessor = function addPreProcessor(fn) {+ this.preProcessors.push(fn);+ };++ _proto.removePreProcessor = function removePreProcessor(fn) {+ var i = this.preProcessors.indexOf(fn);++ if (i !== -1) {+ this.preProcessors.splice(i, 1);+ }+ };++ _proto.addPostProcessor = function addPostProcessor(fn) {+ this.postProcessors.push(fn);+ };++ _proto.removePostProcessor = function removePostProcessor(fn) {+ var i = this.postProcessors.indexOf(fn);++ if (i !== -1) {+ this.postProcessors.splice(i, 1);+ }+ };++ _proto.addUploader = function addUploader(fn) {+ this.uploaders.push(fn);+ };++ _proto.removeUploader = function removeUploader(fn) {+ var i = this.uploaders.indexOf(fn);++ if (i !== -1) {+ this.uploaders.splice(i, 1);+ }+ };++ _proto.setMeta = function setMeta(data) {+ var updatedMeta = _extends({}, this.getState().meta, data);++ var updatedFiles = _extends({}, this.getState().files);++ Object.keys(updatedFiles).forEach(function (fileID) {+ updatedFiles[fileID] = _extends({}, updatedFiles[fileID], {+ meta: _extends({}, updatedFiles[fileID].meta, data)+ });+ });+ this.log('Adding metadata:');+ this.log(data);+ this.setState({+ meta: updatedMeta,+ files: updatedFiles+ });+ };++ _proto.setFileMeta = function setFileMeta(fileID, data) {+ var updatedFiles = _extends({}, this.getState().files);++ if (!updatedFiles[fileID]) {+ this.log('Was trying to set metadata for a file that has been removed: ', fileID);+ return;+ }++ var newMeta = _extends({}, updatedFiles[fileID].meta, data);++ updatedFiles[fileID] = _extends({}, updatedFiles[fileID], {+ meta: newMeta+ });+ this.setState({+ files: updatedFiles+ });+ }+ /**+ * Get a file object.+ *+ * @param {string} fileID The ID of the file object to return.+ */+ ;++ _proto.getFile = function getFile(fileID) {+ return this.getState().files[fileID];+ }+ /**+ * Get all files in an array.+ */+ ;++ _proto.getFiles = function getFiles() {+ var _this$getState = this.getState(),+ files = _this$getState.files;++ return Object.keys(files).map(function (fileID) {+ return files[fileID];+ });+ }+ /**+ * A public wrapper for _checkRestrictions — checks if a file passes a set of restrictions.+ * For use in UI pluigins (like Providers), to disallow selecting files that won’t pass restrictions.+ *+ * @param {object} file object to check+ * @param {Array} [files] array to check maxNumberOfFiles and maxTotalFileSize+ * @returns {object} { result: true/false, reason: why file didn’t pass restrictions }+ */+ ;++ _proto.validateRestrictions = function validateRestrictions(file, files) {+ try {+ this.checkRestrictions(file, files);+ return {+ result: true+ };+ } catch (err) {+ return {+ result: false,+ reason: err.message+ };+ }+ }+ /**+ * Check if file passes a set of restrictions set in options: maxFileSize, minFileSize,+ * maxNumberOfFiles and allowedFileTypes.+ *+ * @param {object} file object to check+ * @param {Array} [files] array to check maxNumberOfFiles and maxTotalFileSize+ * @private+ */+ ;++ _proto.checkRestrictions = function checkRestrictions(file, files) {+ if (files === void 0) {+ files = this.getFiles();+ }++ var _this$opts$restrictio = this.opts.restrictions,+ maxFileSize = _this$opts$restrictio.maxFileSize,+ minFileSize = _this$opts$restrictio.minFileSize,+ maxTotalFileSize = _this$opts$restrictio.maxTotalFileSize,+ maxNumberOfFiles = _this$opts$restrictio.maxNumberOfFiles,+ allowedFileTypes = _this$opts$restrictio.allowedFileTypes;++ if (maxNumberOfFiles) {+ if (files.length + 1 > maxNumberOfFiles) {+ throw new RestrictionError("" + this.i18n('youCanOnlyUploadX', {+ smart_count: maxNumberOfFiles+ }));+ }+ }++ if (allowedFileTypes) {+ var isCorrectFileType = allowedFileTypes.some(function (type) {+ // check if this is a mime-type+ if (type.indexOf('/') > -1) {+ if (!file.type) return false;+ return match(file.type.replace(/;.*?$/, ''), type);+ } // otherwise this is likely an extension+++ if (type[0] === '.' && file.extension) {+ return file.extension.toLowerCase() === type.substr(1).toLowerCase();+ }++ return false;+ });++ if (!isCorrectFileType) {+ var allowedFileTypesString = allowedFileTypes.join(', ');+ throw new RestrictionError(this.i18n('youCanOnlyUploadFileTypes', {+ types: allowedFileTypesString+ }));+ }+ } // We can't check maxTotalFileSize if the size is unknown.+++ if (maxTotalFileSize && file.size != null) {+ var totalFilesSize = 0;+ totalFilesSize += file.size;+ files.forEach(function (f) {+ totalFilesSize += f.size;+ });++ if (totalFilesSize > maxTotalFileSize) {+ throw new RestrictionError(this.i18n('exceedsSize2', {+ backwardsCompat: this.i18n('exceedsSize'),+ size: prettierBytes(maxTotalFileSize),+ file: file.name+ }));+ }+ } // We can't check maxFileSize if the size is unknown.+++ if (maxFileSize && file.size != null) {+ if (file.size > maxFileSize) {+ throw new RestrictionError(this.i18n('exceedsSize2', {+ backwardsCompat: this.i18n('exceedsSize'),+ size: prettierBytes(maxFileSize),+ file: file.name+ }));+ }+ } // We can't check minFileSize if the size is unknown.+++ if (minFileSize && file.size != null) {+ if (file.size < minFileSize) {+ throw new RestrictionError(this.i18n('inferiorSize', {+ size: prettierBytes(minFileSize)+ }));+ }+ }+ }+ /**+ * Check if minNumberOfFiles restriction is reached before uploading.+ *+ * @private+ */+ ;++ _proto.checkMinNumberOfFiles = function checkMinNumberOfFiles(files) {+ var minNumberOfFiles = this.opts.restrictions.minNumberOfFiles;++ if (Object.keys(files).length < minNumberOfFiles) {+ throw new RestrictionError("" + this.i18n('youHaveToAtLeastSelectX', {+ smart_count: minNumberOfFiles+ }));+ }+ }+ /**+ * Logs an error, sets Informer message, then throws the error.+ * Emits a 'restriction-failed' event if it’s a restriction error+ *+ * @param {object | string} err — Error object or plain string message+ * @param {object} [options]+ * @param {boolean} [options.showInformer=true] — Sometimes developer might want to show Informer manually+ * @param {object} [options.file=null] — File object used to emit the restriction error+ * @param {boolean} [options.throwErr=true] — Errors shouldn’t be thrown, for example, in `upload-error` event+ * @private+ */+ ;++ _proto.showOrLogErrorAndThrow = function showOrLogErrorAndThrow(err, _temp) {+ var _ref = _temp === void 0 ? {} : _temp,+ _ref$showInformer = _ref.showInformer,+ showInformer = _ref$showInformer === void 0 ? true : _ref$showInformer,+ _ref$file = _ref.file,+ file = _ref$file === void 0 ? null : _ref$file,+ _ref$throwErr = _ref.throwErr,+ throwErr = _ref$throwErr === void 0 ? true : _ref$throwErr;++ var message = typeof err === 'object' ? err.message : err;+ var details = typeof err === 'object' && err.details ? err.details : ''; // Restriction errors should be logged, but not as errors,+ // as they are expected and shown in the UI.++ var logMessageWithDetails = message;++ if (details) {+ logMessageWithDetails += " " + details;+ }++ if (err.isRestriction) {+ this.log(logMessageWithDetails);+ this.emit('restriction-failed', file, err);+ } else {+ this.log(logMessageWithDetails, 'error');+ } // Sometimes informer has to be shown manually by the developer,+ // for example, in `onBeforeFileAdded`.+++ if (showInformer) {+ this.info({+ message: message,+ details: details+ }, 'error', this.opts.infoTimeout);+ }++ if (throwErr) {+ throw typeof err === 'object' ? err : new Error(err);+ }+ };++ _proto.assertNewUploadAllowed = function assertNewUploadAllowed(file) {+ var _this$getState2 = this.getState(),+ allowNewUpload = _this$getState2.allowNewUpload;++ if (allowNewUpload === false) {+ this.showOrLogErrorAndThrow(new RestrictionError(this.i18n('noNewAlreadyUploading')), {+ file: file+ });+ }+ }+ /**+ * Create a file state object based on user-provided `addFile()` options.+ *+ * Note this is extremely side-effectful and should only be done when a file state object will be added to state immediately afterward!+ *+ * The `files` value is passed in because it may be updated by the caller without updating the store.+ */+ ;++ _proto.checkAndCreateFileStateObject = function checkAndCreateFileStateObject(files, f) {+ var fileType = getFileType(f);+ var file = f;+ file.type = fileType;+ var onBeforeFileAddedResult = this.opts.onBeforeFileAdded(file, files);++ if (onBeforeFileAddedResult === false) {+ // Don’t show UI info for this error, as it should be done by the developer+ this.showOrLogErrorAndThrow(new RestrictionError('Cannot add the file because onBeforeFileAdded returned false.'), {+ showInformer: false,+ file: file+ });+ }++ if (typeof onBeforeFileAddedResult === 'object' && onBeforeFileAddedResult) {+ file = onBeforeFileAddedResult;+ }++ var fileName;++ if (file.name) {+ fileName = file.name;+ } else if (fileType.split('/')[0] === 'image') {+ fileName = fileType.split('/')[0] + "." + fileType.split('/')[1];+ } else {+ fileName = 'noname';+ }++ var fileExtension = getFileNameAndExtension(fileName).extension;+ var isRemote = file.isRemote || false;+ var fileID = generateFileID(file);++ if (files[fileID] && !files[fileID].isGhost) {+ this.showOrLogErrorAndThrow(new RestrictionError(this.i18n('noDuplicates', {+ fileName: fileName+ })), {+ file: file+ });+ }++ var meta = file.meta || {};+ meta.name = fileName;+ meta.type = fileType; // `null` means the size is unknown.++ var size = Number.isFinite(file.data.size) ? file.data.size : null;+ var newFile = {+ source: file.source || '',+ id: fileID,+ name: fileName,+ extension: fileExtension || '',+ meta: _extends({}, this.getState().meta, meta),+ type: fileType,+ data: file.data,+ progress: {+ percentage: 0,+ bytesUploaded: 0,+ bytesTotal: size,+ uploadComplete: false,+ uploadStarted: null+ },+ size: size,+ isRemote: isRemote,+ remote: file.remote || '',+ preview: file.preview+ };++ try {+ var filesArray = Object.keys(files).map(function (i) {+ return files[i];+ });+ this.checkRestrictions(newFile, filesArray);+ } catch (err) {+ this.showOrLogErrorAndThrow(err, {+ file: newFile+ });+ }++ return newFile;+ } // Schedule an upload if `autoProceed` is enabled.+ ;++ _proto.startIfAutoProceed = function startIfAutoProceed() {+ var _this3 = this;++ if (this.opts.autoProceed && !this.scheduledAutoProceed) {+ this.scheduledAutoProceed = setTimeout(function () {+ _this3.scheduledAutoProceed = null;++ _this3.upload().catch(function (err) {+ if (!err.isRestriction) {+ _this3.log(err.stack || err.message || err);+ }+ });+ }, 4);+ }+ }+ /**+ * Add a new file to `state.files`. This will run `onBeforeFileAdded`,+ * try to guess file type in a clever way, check file against restrictions,+ * and start an upload if `autoProceed === true`.+ *+ * @param {object} file object to add+ * @returns {string} id for the added file+ */+ ;++ _proto.addFile = function addFile(file) {+ var _extends3;++ this.assertNewUploadAllowed(file);++ var _this$getState3 = this.getState(),+ files = _this$getState3.files;++ var newFile = this.checkAndCreateFileStateObject(files, file); // Users are asked to re-select recovered files without data,+ // and to keep the progress, meta and everthing else, we only replace said data++ if (files[newFile.id] && files[newFile.id].isGhost) {+ newFile = _extends({}, files[newFile.id], {+ data: file.data,+ isGhost: false+ });+ this.log("Replaced the blob in the restored ghost file: " + newFile.name + ", " + newFile.id);+ }++ this.setState({+ files: _extends({}, files, (_extends3 = {}, _extends3[newFile.id] = newFile, _extends3))+ });+ this.emit('file-added', newFile);+ this.emit('files-added', [newFile]);+ this.log("Added file: " + newFile.name + ", " + newFile.id + ", mime type: " + newFile.type);+ this.startIfAutoProceed();+ return newFile.id;+ }+ /**+ * Add multiple files to `state.files`. See the `addFile()` documentation.+ *+ * If an error occurs while adding a file, it is logged and the user is notified.+ * This is good for UI plugins, but not for programmatic use.+ * Programmatic users should usually still use `addFile()` on individual files.+ */+ ;++ _proto.addFiles = function addFiles(fileDescriptors) {+ var _this4 = this;++ this.assertNewUploadAllowed(); // create a copy of the files object only once++ var files = _extends({}, this.getState().files);++ var newFiles = [];+ var errors = [];++ for (var i = 0; i < fileDescriptors.length; i++) {+ try {+ var newFile = this.checkAndCreateFileStateObject(files, fileDescriptors[i]); // Users are asked to re-select recovered files without data,+ // and to keep the progress, meta and everthing else, we only replace said data++ if (files[newFile.id] && files[newFile.id].isGhost) {+ newFile = _extends({}, files[newFile.id], {+ data: fileDescriptors[i].data,+ isGhost: false+ });+ this.log("Replaced blob in a ghost file: " + newFile.name + ", " + newFile.id);+ }++ files[newFile.id] = newFile;+ newFiles.push(newFile);+ } catch (err) {+ if (!err.isRestriction) {+ errors.push(err);+ }+ }+ }++ this.setState({+ files: files+ });+ newFiles.forEach(function (newFile) {+ _this4.emit('file-added', newFile);+ });+ this.emit('files-added', newFiles);++ if (newFiles.length > 5) {+ this.log("Added batch of " + newFiles.length + " files");+ } else {+ Object.keys(newFiles).forEach(function (fileID) {+ _this4.log("Added file: " + newFiles[fileID].name + "\n id: " + newFiles[fileID].id + "\n type: " + newFiles[fileID].type);+ });+ }++ if (newFiles.length > 0) {+ this.startIfAutoProceed();+ }++ if (errors.length > 0) {+ var message = 'Multiple errors occurred while adding files:\n';+ errors.forEach(function (subError) {+ message += "\n * " + subError.message;+ });+ this.info({+ message: this.i18n('addBulkFilesFailed', {+ smart_count: errors.length+ }),+ details: message+ }, 'error', this.opts.infoTimeout);++ if (typeof AggregateError === 'function') {+ throw new AggregateError(errors, message);+ } else {+ var err = new Error(message);+ err.errors = errors;+ throw err;+ }+ }+ };++ _proto.removeFiles = function removeFiles(fileIDs, reason) {+ var _this5 = this;++ var _this$getState4 = this.getState(),+ files = _this$getState4.files,+ currentUploads = _this$getState4.currentUploads;++ var updatedFiles = _extends({}, files);++ var updatedUploads = _extends({}, currentUploads);++ var removedFiles = Object.create(null);+ fileIDs.forEach(function (fileID) {+ if (files[fileID]) {+ removedFiles[fileID] = files[fileID];+ delete updatedFiles[fileID];+ }+ }); // Remove files from the `fileIDs` list in each upload.++ function fileIsNotRemoved(uploadFileID) {+ return removedFiles[uploadFileID] === undefined;+ }++ Object.keys(updatedUploads).forEach(function (uploadID) {+ var newFileIDs = currentUploads[uploadID].fileIDs.filter(fileIsNotRemoved); // Remove the upload if no files are associated with it anymore.++ if (newFileIDs.length === 0) {+ delete updatedUploads[uploadID];+ return;+ }++ updatedUploads[uploadID] = _extends({}, currentUploads[uploadID], {+ fileIDs: newFileIDs+ });+ });+ var stateUpdate = {+ currentUploads: updatedUploads,+ files: updatedFiles+ }; // If all files were removed - allow new uploads,+ // and clear recoveredState++ if (Object.keys(updatedFiles).length === 0) {+ stateUpdate.allowNewUpload = true;+ stateUpdate.error = null;+ stateUpdate.recoveredState = null;+ }++ this.setState(stateUpdate);+ this.calculateTotalProgress();+ var removedFileIDs = Object.keys(removedFiles);+ removedFileIDs.forEach(function (fileID) {+ _this5.emit('file-removed', removedFiles[fileID], reason);+ });++ if (removedFileIDs.length > 5) {+ this.log("Removed " + removedFileIDs.length + " files");+ } else {+ this.log("Removed files: " + removedFileIDs.join(', '));+ }+ };++ _proto.removeFile = function removeFile(fileID, reason) {+ if (reason === void 0) {+ reason = null;+ }++ this.removeFiles([fileID], reason);+ };++ _proto.pauseResume = function pauseResume(fileID) {+ if (!this.getState().capabilities.resumableUploads || this.getFile(fileID).uploadComplete) {+ return undefined;+ }++ var wasPaused = this.getFile(fileID).isPaused || false;+ var isPaused = !wasPaused;+ this.setFileState(fileID, {+ isPaused: isPaused+ });+ this.emit('upload-pause', fileID, isPaused);+ return isPaused;+ };++ _proto.pauseAll = function pauseAll() {+ var updatedFiles = _extends({}, this.getState().files);++ var inProgressUpdatedFiles = Object.keys(updatedFiles).filter(function (file) {+ return !updatedFiles[file].progress.uploadComplete && updatedFiles[file].progress.uploadStarted;+ });+ inProgressUpdatedFiles.forEach(function (file) {+ var updatedFile = _extends({}, updatedFiles[file], {+ isPaused: true+ });++ updatedFiles[file] = updatedFile;+ });+ this.setState({+ files: updatedFiles+ });+ this.emit('pause-all');+ };++ _proto.resumeAll = function resumeAll() {+ var updatedFiles = _extends({}, this.getState().files);++ var inProgressUpdatedFiles = Object.keys(updatedFiles).filter(function (file) {+ return !updatedFiles[file].progress.uploadComplete && updatedFiles[file].progress.uploadStarted;+ });+ inProgressUpdatedFiles.forEach(function (file) {+ var updatedFile = _extends({}, updatedFiles[file], {+ isPaused: false,+ error: null+ });++ updatedFiles[file] = updatedFile;+ });+ this.setState({+ files: updatedFiles+ });+ this.emit('resume-all');+ };++ _proto.retryAll = function retryAll() {+ var updatedFiles = _extends({}, this.getState().files);++ var filesToRetry = Object.keys(updatedFiles).filter(function (file) {+ return updatedFiles[file].error;+ });+ filesToRetry.forEach(function (file) {+ var updatedFile = _extends({}, updatedFiles[file], {+ isPaused: false,+ error: null+ });++ updatedFiles[file] = updatedFile;+ });+ this.setState({+ files: updatedFiles,+ error: null+ });+ this.emit('retry-all', filesToRetry);++ if (filesToRetry.length === 0) {+ return Promise.resolve({+ successful: [],+ failed: []+ });+ }++ var uploadID = this.createUpload(filesToRetry, {+ forceAllowNewUpload: true // create new upload even if allowNewUpload: false++ });+ return this.runUpload(uploadID);+ };++ _proto.cancelAll = function cancelAll() {+ this.emit('cancel-all');++ var _this$getState5 = this.getState(),+ files = _this$getState5.files;++ var fileIDs = Object.keys(files);++ if (fileIDs.length) {+ this.removeFiles(fileIDs, 'cancel-all');+ }++ this.setState({+ totalProgress: 0,+ error: null,+ recoveredState: null+ });+ };++ _proto.retryUpload = function retryUpload(fileID) {+ this.setFileState(fileID, {+ error: null,+ isPaused: false+ });+ this.emit('upload-retry', fileID);+ var uploadID = this.createUpload([fileID], {+ forceAllowNewUpload: true // create new upload even if allowNewUpload: false++ });+ return this.runUpload(uploadID);+ };++ _proto.reset = function reset() {+ this.cancelAll();+ };++ _proto.logout = function logout() {+ this.iteratePlugins(function (plugin) {+ if (plugin.provider && plugin.provider.logout) {+ plugin.provider.logout();+ }+ });+ };++ _proto.calculateProgress = function calculateProgress(file, data) {+ if (!this.getFile(file.id)) {+ this.log("Not setting progress for a file that has been removed: " + file.id);+ return;+ } // bytesTotal may be null or zero; in that case we can't divide by it+++ var canHavePercentage = Number.isFinite(data.bytesTotal) && data.bytesTotal > 0;+ this.setFileState(file.id, {+ progress: _extends({}, this.getFile(file.id).progress, {+ bytesUploaded: data.bytesUploaded,+ bytesTotal: data.bytesTotal,+ percentage: canHavePercentage // TODO(goto-bus-stop) flooring this should probably be the choice of the UI?+ // we get more accurate calculations if we don't round this at all.+ ? Math.round(data.bytesUploaded / data.bytesTotal * 100) : 0+ })+ });+ this.calculateTotalProgress();+ };++ _proto.calculateTotalProgress = function calculateTotalProgress() {+ // calculate total progress, using the number of files currently uploading,+ // multiplied by 100 and the summ of individual progress of each file+ var files = this.getFiles();+ var inProgress = files.filter(function (file) {+ return file.progress.uploadStarted || file.progress.preprocess || file.progress.postprocess;+ });++ if (inProgress.length === 0) {+ this.emit('progress', 0);+ this.setState({+ totalProgress: 0+ });+ return;+ }++ var sizedFiles = inProgress.filter(function (file) {+ return file.progress.bytesTotal != null;+ });+ var unsizedFiles = inProgress.filter(function (file) {+ return file.progress.bytesTotal == null;+ });++ if (sizedFiles.length === 0) {+ var progressMax = inProgress.length * 100;+ var currentProgress = unsizedFiles.reduce(function (acc, file) {+ return acc + file.progress.percentage;+ }, 0);++ var _totalProgress = Math.round(currentProgress / progressMax * 100);++ this.setState({+ totalProgress: _totalProgress+ });+ return;+ }++ var totalSize = sizedFiles.reduce(function (acc, file) {+ return acc + file.progress.bytesTotal;+ }, 0);+ var averageSize = totalSize / sizedFiles.length;+ totalSize += averageSize * unsizedFiles.length;+ var uploadedSize = 0;+ sizedFiles.forEach(function (file) {+ uploadedSize += file.progress.bytesUploaded;+ });+ unsizedFiles.forEach(function (file) {+ uploadedSize += averageSize * (file.progress.percentage || 0) / 100;+ });+ var totalProgress = totalSize === 0 ? 0 : Math.round(uploadedSize / totalSize * 100); // hot fix, because:+ // uploadedSize ended up larger than totalSize, resulting in 1325% total++ if (totalProgress > 100) {+ totalProgress = 100;+ }++ this.setState({+ totalProgress: totalProgress+ });+ this.emit('progress', totalProgress);+ }+ /**+ * Registers listeners for all global actions, like:+ * `error`, `file-removed`, `upload-progress`+ */+ ;++ _proto.addListeners = function addListeners() {+ var _this6 = this;++ /**+ * @param {Error} error+ * @param {object} [file]+ * @param {object} [response]+ */+ var errorHandler = function errorHandler(error, file, response) {+ var errorMsg = error.message || 'Unknown error';++ if (error.details) {+ errorMsg += " " + error.details;+ }++ _this6.setState({+ error: errorMsg+ });++ if (file != null) {+ _this6.setFileState(file.id, {+ error: errorMsg,+ response: response+ });+ }+ };++ this.on('error', errorHandler);+ this.on('upload-error', function (file, error, response) {+ errorHandler(error, file, response);++ if (typeof error === 'object' && error.message) {+ var newError = new Error(error.message);+ newError.details = error.message;++ if (error.details) {+ newError.details += " " + error.details;+ }++ newError.message = _this6.i18n('failedToUpload', {+ file: file.name+ });++ _this6.showOrLogErrorAndThrow(newError, {+ throwErr: false+ });+ } else {+ _this6.showOrLogErrorAndThrow(error, {+ throwErr: false+ });+ }+ });+ this.on('upload', function () {+ _this6.setState({+ error: null+ });+ });+ this.on('upload-started', function (file) {+ if (!_this6.getFile(file.id)) {+ _this6.log("Not setting progress for a file that has been removed: " + file.id);++ return;+ }++ _this6.setFileState(file.id, {+ progress: {+ uploadStarted: Date.now(),+ uploadComplete: false,+ percentage: 0,+ bytesUploaded: 0,+ bytesTotal: file.size+ }+ });+ });+ this.on('upload-progress', this.calculateProgress);+ this.on('upload-success', function (file, uploadResp) {+ if (!_this6.getFile(file.id)) {+ _this6.log("Not setting progress for a file that has been removed: " + file.id);++ return;+ }++ var currentProgress = _this6.getFile(file.id).progress;++ _this6.setFileState(file.id, {+ progress: _extends({}, currentProgress, {+ postprocess: _this6.postProcessors.length > 0 ? {+ mode: 'indeterminate'+ } : null,+ uploadComplete: true,+ percentage: 100,+ bytesUploaded: currentProgress.bytesTotal+ }),+ response: uploadResp,+ uploadURL: uploadResp.uploadURL,+ isPaused: false+ });++ _this6.calculateTotalProgress();+ });+ this.on('preprocess-progress', function (file, progress) {+ if (!_this6.getFile(file.id)) {+ _this6.log("Not setting progress for a file that has been removed: " + file.id);++ return;+ }++ _this6.setFileState(file.id, {+ progress: _extends({}, _this6.getFile(file.id).progress, {+ preprocess: progress+ })+ });+ });+ this.on('preprocess-complete', function (file) {+ if (!_this6.getFile(file.id)) {+ _this6.log("Not setting progress for a file that has been removed: " + file.id);++ return;+ }++ var files = _extends({}, _this6.getState().files);++ files[file.id] = _extends({}, files[file.id], {+ progress: _extends({}, files[file.id].progress)+ });+ delete files[file.id].progress.preprocess;++ _this6.setState({+ files: files+ });+ });+ this.on('postprocess-progress', function (file, progress) {+ if (!_this6.getFile(file.id)) {+ _this6.log("Not setting progress for a file that has been removed: " + file.id);++ return;+ }++ _this6.setFileState(file.id, {+ progress: _extends({}, _this6.getState().files[file.id].progress, {+ postprocess: progress+ })+ });+ });+ this.on('postprocess-complete', function (file) {+ if (!_this6.getFile(file.id)) {+ _this6.log("Not setting progress for a file that has been removed: " + file.id);++ return;+ }++ var files = _extends({}, _this6.getState().files);++ files[file.id] = _extends({}, files[file.id], {+ progress: _extends({}, files[file.id].progress)+ });+ delete files[file.id].progress.postprocess; // TODO should we set some kind of `fullyComplete` property on the file object+ // so it's easier to see that the file is upload…fully complete…rather than+ // what we have to do now (`uploadComplete && !postprocess`)++ _this6.setState({+ files: files+ });+ });+ this.on('restored', function () {+ // Files may have changed--ensure progress is still accurate.+ _this6.calculateTotalProgress();+ }); // show informer if offline++ if (typeof window !== 'undefined' && window.addEventListener) {+ window.addEventListener('online', function () {+ return _this6.updateOnlineStatus();+ });+ window.addEventListener('offline', function () {+ return _this6.updateOnlineStatus();+ });+ setTimeout(function () {+ return _this6.updateOnlineStatus();+ }, 3000);+ }+ };++ _proto.updateOnlineStatus = function updateOnlineStatus() {+ var online = typeof window.navigator.onLine !== 'undefined' ? window.navigator.onLine : true;++ if (!online) {+ this.emit('is-offline');+ this.info(this.i18n('noInternetConnection'), 'error', 0);+ this.wasOffline = true;+ } else {+ this.emit('is-online');++ if (this.wasOffline) {+ this.emit('back-online');+ this.info(this.i18n('connectedToInternet'), 'success', 3000);+ this.wasOffline = false;+ }+ }+ };++ _proto.getID = function getID() {+ return this.opts.id;+ }+ /**+ * Registers a plugin with Core.+ *+ * @param {object} Plugin object+ * @param {object} [opts] object with options to be passed to Plugin+ * @returns {object} self for chaining+ */+ // eslint-disable-next-line no-shadow+ ;++ _proto.use = function use(Plugin, opts) {+ if (typeof Plugin !== 'function') {+ var msg = "Expected a plugin class, but got " + (Plugin === null ? 'null' : typeof Plugin) + "." + ' Please verify that the plugin was imported and spelled correctly.';+ throw new TypeError(msg);+ } // Instantiate+++ var plugin = new Plugin(this, opts);+ var pluginId = plugin.id;+ this.plugins[plugin.type] = this.plugins[plugin.type] || [];++ if (!pluginId) {+ throw new Error('Your plugin must have an id');+ }++ if (!plugin.type) {+ throw new Error('Your plugin must have a type');+ }++ var existsPluginAlready = this.getPlugin(pluginId);++ if (existsPluginAlready) {+ var _msg = "Already found a plugin named '" + existsPluginAlready.id + "'. " + ("Tried to use: '" + pluginId + "'.\n") + 'Uppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.';++ throw new Error(_msg);+ }++ if (Plugin.VERSION) {+ this.log("Using " + pluginId + " v" + Plugin.VERSION);+ }++ this.plugins[plugin.type].push(plugin);+ plugin.install();+ return this;+ }+ /**+ * Find one Plugin by name.+ *+ * @param {string} id plugin id+ * @returns {object|boolean}+ */+ ;++ _proto.getPlugin = function getPlugin(id) {+ var foundPlugin = null;+ this.iteratePlugins(function (plugin) {+ if (plugin.id === id) {+ foundPlugin = plugin;+ return false;+ }+ });+ return foundPlugin;+ }+ /**+ * Iterate through all `use`d plugins.+ *+ * @param {Function} method that will be run on each plugin+ */+ ;++ _proto.iteratePlugins = function iteratePlugins(method) {+ var _this7 = this;++ Object.keys(this.plugins).forEach(function (pluginType) {+ _this7.plugins[pluginType].forEach(method);+ });+ }+ /**+ * Uninstall and remove a plugin.+ *+ * @param {object} instance The plugin instance to remove.+ */+ ;++ _proto.removePlugin = function removePlugin(instance) {+ var _extends4;++ this.log("Removing plugin " + instance.id);+ this.emit('plugin-remove', instance);++ if (instance.uninstall) {+ instance.uninstall();+ }++ var list = this.plugins[instance.type].slice(); // list.indexOf failed here, because Vue3 converted the plugin instance+ // to a Proxy object, which failed the strict comparison test:+ // obj !== objProxy++ var index = findIndex(list, function (item) {+ return item.id === instance.id;+ });++ if (index !== -1) {+ list.splice(index, 1);+ this.plugins[instance.type] = list;+ }++ var state = this.getState();+ var updatedState = {+ plugins: _extends({}, state.plugins, (_extends4 = {}, _extends4[instance.id] = undefined, _extends4))+ };+ this.setState(updatedState);+ }+ /**+ * Uninstall all plugins and close down this Uppy instance.+ */+ ;++ _proto.close = function close() {+ var _this8 = this;++ this.log("Closing Uppy instance " + this.opts.id + ": removing all files and uninstalling plugins");+ this.reset();+ this.storeUnsubscribe();+ this.iteratePlugins(function (plugin) {+ _this8.removePlugin(plugin);+ });+ }+ /**+ * Set info message in `state.info`, so that UI plugins like `Informer`+ * can display the message.+ *+ * @param {string | object} message Message to be displayed by the informer+ * @param {string} [type]+ * @param {number} [duration]+ */+ ;++ _proto.info = function info(message, type, duration) {+ if (type === void 0) {+ type = 'info';+ }++ if (duration === void 0) {+ duration = 3000;+ }++ var isComplexMessage = typeof message === 'object';+ this.setState({+ info: {+ isHidden: false,+ type: type,+ message: isComplexMessage ? message.message : message,+ details: isComplexMessage ? message.details : null+ }+ });+ this.emit('info-visible');+ clearTimeout(this.infoTimeoutID);++ if (duration === 0) {+ this.infoTimeoutID = undefined;+ return;+ } // hide the informer after `duration` milliseconds+++ this.infoTimeoutID = setTimeout(this.hideInfo, duration);+ };++ _proto.hideInfo = function hideInfo() {+ var newInfo = _extends({}, this.getState().info, {+ isHidden: true+ });++ this.setState({+ info: newInfo+ });+ this.emit('info-hidden');+ }+ /**+ * Passes messages to a function, provided in `opts.logger`.+ * If `opts.logger: Uppy.debugLogger` or `opts.debug: true`, logs to the browser console.+ *+ * @param {string|object} message to log+ * @param {string} [type] optional `error` or `warning`+ */+ ;++ _proto.log = function log(message, type) {+ var logger = this.opts.logger;++ switch (type) {+ case 'error':+ logger.error(message);+ break;++ case 'warning':+ logger.warn(message);+ break;++ default:+ logger.debug(message);+ break;+ }+ }+ /**+ * Obsolete, event listeners are now added in the constructor.+ */+ ;++ _proto.run = function run() {+ this.log('Calling run() is no longer necessary.', 'warning');+ return this;+ }+ /**+ * Restore an upload by its ID.+ */+ ;++ _proto.restore = function restore(uploadID) {+ this.log("Core: attempting to restore upload \"" + uploadID + "\"");++ if (!this.getState().currentUploads[uploadID]) {+ this.removeUpload(uploadID);+ return Promise.reject(new Error('Nonexistent upload'));+ }++ return this.runUpload(uploadID);+ }+ /**+ * Create an upload for a bunch of files.+ *+ * @param {Array<string>} fileIDs File IDs to include in this upload.+ * @returns {string} ID of this upload.+ */+ ;++ _proto.createUpload = function createUpload(fileIDs, opts) {+ var _extends5;++ if (opts === void 0) {+ opts = {};+ }++ // uppy.retryAll sets this to true — when retrying we want to ignore `allowNewUpload: false`+ var _opts = opts,+ _opts$forceAllowNewUp = _opts.forceAllowNewUpload,+ forceAllowNewUpload = _opts$forceAllowNewUp === void 0 ? false : _opts$forceAllowNewUp;++ var _this$getState6 = this.getState(),+ allowNewUpload = _this$getState6.allowNewUpload,+ currentUploads = _this$getState6.currentUploads;++ if (!allowNewUpload && !forceAllowNewUpload) {+ throw new Error('Cannot create a new upload: already uploading.');+ }++ var uploadID = cuid();+ this.emit('upload', {+ id: uploadID,+ fileIDs: fileIDs+ });+ this.setState({+ allowNewUpload: this.opts.allowMultipleUploads !== false,+ currentUploads: _extends({}, currentUploads, (_extends5 = {}, _extends5[uploadID] = {+ fileIDs: fileIDs,+ step: 0,+ result: {}+ }, _extends5))+ });+ return uploadID;+ };++ _proto.getUpload = function getUpload(uploadID) {+ var _this$getState7 = this.getState(),+ currentUploads = _this$getState7.currentUploads;++ return currentUploads[uploadID];+ }+ /**+ * Add data to an upload's result object.+ *+ * @param {string} uploadID The ID of the upload.+ * @param {object} data Data properties to add to the result object.+ */+ ;++ _proto.addResultData = function addResultData(uploadID, data) {+ var _extends6;++ if (!this.getUpload(uploadID)) {+ this.log("Not setting result for an upload that has been removed: " + uploadID);+ return;+ }++ var _this$getState8 = this.getState(),+ currentUploads = _this$getState8.currentUploads;++ var currentUpload = _extends({}, currentUploads[uploadID], {+ result: _extends({}, currentUploads[uploadID].result, data)+ });++ this.setState({+ currentUploads: _extends({}, currentUploads, (_extends6 = {}, _extends6[uploadID] = currentUpload, _extends6))+ });+ }+ /**+ * Remove an upload, eg. if it has been canceled or completed.+ *+ * @param {string} uploadID The ID of the upload.+ */+ ;++ _proto.removeUpload = function removeUpload(uploadID) {+ var currentUploads = _extends({}, this.getState().currentUploads);++ delete currentUploads[uploadID];+ this.setState({+ currentUploads: currentUploads+ });+ }+ /**+ * Run an upload. This picks up where it left off in case the upload is being restored.+ *+ * @private+ */+ ;++ _proto.runUpload = function runUpload(uploadID) {+ var _this9 = this;++ var uploadData = this.getState().currentUploads[uploadID];+ var restoreStep = uploadData.step;+ var steps = [].concat(this.preProcessors, this.uploaders, this.postProcessors);+ var lastStep = Promise.resolve();+ steps.forEach(function (fn, step) {+ // Skip this step if we are restoring and have already completed this step before.+ if (step < restoreStep) {+ return;+ }++ lastStep = lastStep.then(function () {+ var _extends7;++ var _this9$getState = _this9.getState(),+ currentUploads = _this9$getState.currentUploads;++ var currentUpload = currentUploads[uploadID];++ if (!currentUpload) {+ return;+ }++ var updatedUpload = _extends({}, currentUpload, {+ step: step+ });++ _this9.setState({+ currentUploads: _extends({}, currentUploads, (_extends7 = {}, _extends7[uploadID] = updatedUpload, _extends7))+ }); // TODO give this the `updatedUpload` object as its only parameter maybe?+ // Otherwise when more metadata may be added to the upload this would keep getting more parameters+ // eslint-disable-next-line consistent-return+++ return fn(updatedUpload.fileIDs, uploadID);+ }).then(function () {+ return null;+ });+ }); // Not returning the `catch`ed promise, because we still want to return a rejected+ // promise from this method if the upload failed.++ lastStep.catch(function (err) {+ _this9.emit('error', err, uploadID);++ _this9.removeUpload(uploadID);+ });+ return lastStep.then(function () {+ // Set result data.+ var _this9$getState2 = _this9.getState(),+ currentUploads = _this9$getState2.currentUploads;++ var currentUpload = currentUploads[uploadID];++ if (!currentUpload) {+ return;+ } // Mark postprocessing step as complete if necessary; this addresses a case where we might get+ // stuck in the postprocessing UI while the upload is fully complete.+ // If the postprocessing steps do not do any work, they may not emit postprocessing events at+ // all, and never mark the postprocessing as complete. This is fine on its own but we+ // introduced code in the @uppy/core upload-success handler to prepare postprocessing progress+ // state if any postprocessors are registered. That is to avoid a "flash of completed state"+ // before the postprocessing plugins can emit events.+ //+ // So, just in case an upload with postprocessing plugins *has* completed *without* emitting+ // postprocessing completion, we do it instead.+++ currentUpload.fileIDs.forEach(function (fileID) {+ var file = _this9.getFile(fileID);++ if (file && file.progress.postprocess) {+ _this9.emit('postprocess-complete', file);+ }+ });+ var files = currentUpload.fileIDs.map(function (fileID) {+ return _this9.getFile(fileID);+ });+ var successful = files.filter(function (file) {+ return !file.error;+ });+ var failed = files.filter(function (file) {+ return file.error;+ });++ _this9.addResultData(uploadID, {+ successful: successful,+ failed: failed,+ uploadID: uploadID+ });+ }).then(function () {+ // Emit completion events.+ // This is in a separate function so that the `currentUploads` variable+ // always refers to the latest state. In the handler right above it refers+ // to an outdated object without the `.result` property.+ var _this9$getState3 = _this9.getState(),+ currentUploads = _this9$getState3.currentUploads;++ if (!currentUploads[uploadID]) {+ return;+ }++ var currentUpload = currentUploads[uploadID];+ var result = currentUpload.result;++ _this9.emit('complete', result);++ _this9.removeUpload(uploadID); // eslint-disable-next-line consistent-return+++ return result;+ }).then(function (result) {+ if (result == null) {+ _this9.log("Not setting result for an upload that has been removed: " + uploadID);+ }++ return result;+ });+ }+ /**+ * Start an upload for all the files that are not currently being uploaded.+ *+ * @returns {Promise}+ */+ ;++ _proto.upload = function upload() {+ var _this10 = this;++ if (!this.plugins.uploader) {+ this.log('No uploader type plugins are used', 'warning');+ }++ var _this$getState9 = this.getState(),+ files = _this$getState9.files;++ var onBeforeUploadResult = this.opts.onBeforeUpload(files);++ if (onBeforeUploadResult === false) {+ return Promise.reject(new Error('Not starting the upload because onBeforeUpload returned false'));+ }++ if (onBeforeUploadResult && typeof onBeforeUploadResult === 'object') {+ files = onBeforeUploadResult; // Updating files in state, because uploader plugins receive file IDs,+ // and then fetch the actual file object from state++ this.setState({+ files: files+ });+ }++ return Promise.resolve().then(function () {+ return _this10.checkMinNumberOfFiles(files);+ }).catch(function (err) {+ _this10.showOrLogErrorAndThrow(err);+ }).then(function () {+ var _this10$getState = _this10.getState(),+ currentUploads = _this10$getState.currentUploads; // get a list of files that are currently assigned to uploads+++ var currentlyUploadingFiles = Object.keys(currentUploads).reduce(function (prev, curr) {+ return prev.concat(currentUploads[curr].fileIDs);+ }, []);+ var waitingFileIDs = [];+ Object.keys(files).forEach(function (fileID) {+ var file = _this10.getFile(fileID); // if the file hasn't started uploading and hasn't already been assigned to an upload..+++ if (!file.progress.uploadStarted && currentlyUploadingFiles.indexOf(fileID) === -1) {+ waitingFileIDs.push(file.id);+ }+ });++ var uploadID = _this10.createUpload(waitingFileIDs);++ return _this10.runUpload(uploadID);+ }).catch(function (err) {+ _this10.showOrLogErrorAndThrow(err, {+ showInformer: false+ });+ });+ };++ _createClass(Uppy, [{+ key: "state",+ get: function get() {+ return this.getState();+ }+ }]);++ return Uppy;+}();++Uppy.VERSION = version;++module.exports = function core(opts) {+ return new Uppy(opts);+}; // Expose class constructor.+++module.exports.Uppy = Uppy;+module.exports.Plugin = Plugin;+module.exports.debugLogger = debugLogger;+},{"../package.json":18,"./Plugin":14,"./loggers":16,"./supportsUploadProgress":17,"@transloadit/prettier-bytes":1,"@uppy/store-default":19,"@uppy/utils/lib/Translator":25,"@uppy/utils/lib/findIndex":30,"@uppy/utils/lib/generateFileID":31,"@uppy/utils/lib/getFileNameAndExtension":32,"@uppy/utils/lib/getFileType":33,"cuid":43,"lodash.throttle":47,"mime-match":48,"namespace-emitter":49}],16:[function(require,module,exports){+var getTimeStamp = require('@uppy/utils/lib/getTimeStamp'); // Swallow all logs, except errors.+// default if logger is not set or debug: false+++var justErrorsLogger = {+ debug: function debug() {},+ warn: function warn() {},+ error: function error() {+ var _console;++ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {+ args[_key] = arguments[_key];+ }++ return (_console = console).error.apply(_console, ["[Uppy] [" + getTimeStamp() + "]"].concat(args));+ }+}; // Print logs to console with namespace + timestamp,+// set by logger: Uppy.debugLogger or debug: true++var debugLogger = {+ debug: function debug() {+ // IE 10 doesn’t support console.debug+ var debug = console.debug || console.log;++ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {+ args[_key2] = arguments[_key2];+ }++ debug.call.apply(debug, [console, "[Uppy] [" + getTimeStamp() + "]"].concat(args));+ },+ warn: function warn() {+ var _console2;++ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {+ args[_key3] = arguments[_key3];+ }++ return (_console2 = console).warn.apply(_console2, ["[Uppy] [" + getTimeStamp() + "]"].concat(args));+ },+ error: function error() {+ var _console3;++ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {+ args[_key4] = arguments[_key4];+ }++ return (_console3 = console).error.apply(_console3, ["[Uppy] [" + getTimeStamp() + "]"].concat(args));+ }+};+module.exports = {+ justErrorsLogger: justErrorsLogger,+ debugLogger: debugLogger+};+},{"@uppy/utils/lib/getTimeStamp":35}],17:[function(require,module,exports){+// Edge 15.x does not fire 'progress' events on uploads.+// See https://github.com/transloadit/uppy/issues/945+// And https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12224510/+module.exports = function supportsUploadProgress(userAgent) {+ // Allow passing in userAgent for tests+ if (userAgent == null) {+ userAgent = typeof navigator !== 'undefined' ? navigator.userAgent : null;+ } // Assume it works because basically everything supports progress events.+++ if (!userAgent) return true;+ var m = /Edge\/(\d+\.\d+)/.exec(userAgent);+ if (!m) return true;+ var edgeVersion = m[1];++ var _edgeVersion$split = edgeVersion.split('.'),+ major = _edgeVersion$split[0],+ minor = _edgeVersion$split[1];++ major = parseInt(major, 10);+ minor = parseInt(minor, 10); // Worked before:+ // Edge 40.15063.0.0+ // Microsoft EdgeHTML 15.15063++ if (major < 15 || major === 15 && minor < 15063) {+ return true;+ } // Fixed in:+ // Microsoft EdgeHTML 18.18218+++ if (major > 18 || major === 18 && minor >= 18218) {+ return true;+ } // other versions don't work.+++ return false;+};+},{}],18:[function(require,module,exports){+module.exports={+ "name": "@uppy/core",+ "description": "Core module for the extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",+ "version": "1.19.2",+ "license": "MIT",+ "main": "lib/index.js",+ "style": "dist/style.min.css",+ "types": "types/index.d.ts",+ "keywords": [+ "file uploader",+ "uppy",+ "uppy-plugin"+ ],+ "homepage": "https://uppy.io",+ "bugs": {+ "url": "https://github.com/transloadit/uppy/issues"+ },+ "repository": {+ "type": "git",+ "url": "git+https://github.com/transloadit/uppy.git"+ },+ "dependencies": {+ "@transloadit/prettier-bytes": "0.0.7",+ "@uppy/store-default": "^1.2.7",+ "@uppy/utils": "^3.6.2",+ "cuid": "^2.1.1",+ "lodash.throttle": "^4.1.1",+ "mime-match": "^1.0.2",+ "namespace-emitter": "^2.0.1",+ "preact": "8.2.9"+ },+ "gitHead": "4b782ffbbb443672843d7b4096956bed3b11d612"+}++},{}],19:[function(require,module,exports){+function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }++/**+ * Default store that keeps state in a simple object.+ */+var DefaultStore = /*#__PURE__*/function () {+ function DefaultStore() {+ this.state = {};+ this.callbacks = [];+ }++ var _proto = DefaultStore.prototype;++ _proto.getState = function getState() {+ return this.state;+ };++ _proto.setState = function setState(patch) {+ var prevState = _extends({}, this.state);++ var nextState = _extends({}, this.state, patch);++ this.state = nextState;++ this._publish(prevState, nextState, patch);+ };++ _proto.subscribe = function subscribe(listener) {+ var _this = this;++ this.callbacks.push(listener);+ return function () {+ // Remove the listener.+ _this.callbacks.splice(_this.callbacks.indexOf(listener), 1);+ };+ };++ _proto._publish = function _publish() {+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {+ args[_key] = arguments[_key];+ }++ this.callbacks.forEach(function (listener) {+ listener.apply(void 0, args);+ });+ };++ return DefaultStore;+}();++DefaultStore.VERSION = "1.2.7";++module.exports = function defaultStore() {+ return new DefaultStore();+};+},{}],20:[function(require,module,exports){+/**+ * Little AbortController proxy module so we can swap out the implementation easily later.+ */+var _require = require('abortcontroller-polyfill/dist/abortcontroller'),+ AbortController = _require.AbortController,+ AbortSignal = _require.AbortSignal;++function createAbortError(message) {+ if (message === void 0) {+ message = 'Aborted';+ }++ try {+ return new DOMException(message, 'AbortError');+ } catch (_unused) {+ // For Internet Explorer+ var error = new Error(message);+ error.name = 'AbortError';+ return error;+ }+}++exports.AbortController = AbortController;+exports.AbortSignal = AbortSignal;+exports.createAbortError = createAbortError;+},{"abortcontroller-polyfill/dist/abortcontroller":42}],21:[function(require,module,exports){+/**+ * Create a wrapper around an event emitter with a `remove` method to remove+ * all events that were added using the wrapped emitter.+ */+module.exports = /*#__PURE__*/function () {+ function EventTracker(emitter) {+ this._events = [];+ this._emitter = emitter;+ }++ var _proto = EventTracker.prototype;++ _proto.on = function on(event, fn) {+ this._events.push([event, fn]);++ return this._emitter.on(event, fn);+ };++ _proto.remove = function remove() {+ var _this = this;++ this._events.forEach(function (_ref) {+ var event = _ref[0],+ fn = _ref[1];++ _this._emitter.off(event, fn);+ });+ };++ return EventTracker;+}();+},{}],22:[function(require,module,exports){+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }++function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }++function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }++function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }++function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }++function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }++function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }++var NetworkError = /*#__PURE__*/function (_Error) {+ _inheritsLoose(NetworkError, _Error);++ function NetworkError(error, xhr) {+ var _this;++ if (xhr === void 0) {+ xhr = null;+ }++ _this = _Error.call(this, "This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.\n\nSource error: [" + error + "]") || this;+ _this.isNetworkError = true;+ _this.request = xhr;+ return _this;+ }++ return NetworkError;+}( /*#__PURE__*/_wrapNativeSuper(Error));++module.exports = NetworkError;+},{}],23:[function(require,module,exports){+/**+ * Helper to abort upload requests if there has not been any progress for `timeout` ms.+ * Create an instance using `timer = new ProgressTimeout(10000, onTimeout)`+ * Call `timer.progress()` to signal that there has been progress of any kind.+ * Call `timer.done()` when the upload has completed.+ */+var ProgressTimeout = /*#__PURE__*/function () {+ function ProgressTimeout(timeout, timeoutHandler) {+ this._timeout = timeout;+ this._onTimedOut = timeoutHandler;+ this._isDone = false;+ this._aliveTimer = null;+ this._onTimedOut = this._onTimedOut.bind(this);+ }++ var _proto = ProgressTimeout.prototype;++ _proto.progress = function progress() {+ // Some browsers fire another progress event when the upload is+ // cancelled, so we have to ignore progress after the timer was+ // told to stop.+ if (this._isDone) return;++ if (this._timeout > 0) {+ if (this._aliveTimer) clearTimeout(this._aliveTimer);+ this._aliveTimer = setTimeout(this._onTimedOut, this._timeout);+ }+ };++ _proto.done = function done() {+ if (this._aliveTimer) {+ clearTimeout(this._aliveTimer);+ this._aliveTimer = null;+ }++ this._isDone = true;+ };++ return ProgressTimeout;+}();++module.exports = ProgressTimeout;+},{}],24:[function(require,module,exports){+var findIndex = require('./findIndex');++function createCancelError() {+ return new Error('Cancelled');+}++module.exports = /*#__PURE__*/function () {+ function RateLimitedQueue(limit) {+ if (typeof limit !== 'number' || limit === 0) {+ this.limit = Infinity;+ } else {+ this.limit = limit;+ }++ this.activeRequests = 0;+ this.queuedHandlers = [];+ }++ var _proto = RateLimitedQueue.prototype;++ _proto._call = function _call(fn) {+ var _this = this;++ this.activeRequests += 1;+ var _done = false;+ var cancelActive;++ try {+ cancelActive = fn();+ } catch (err) {+ this.activeRequests -= 1;+ throw err;+ }++ return {+ abort: function abort() {+ if (_done) return;+ _done = true;+ _this.activeRequests -= 1;+ cancelActive();++ _this._queueNext();+ },+ done: function done() {+ if (_done) return;+ _done = true;+ _this.activeRequests -= 1;++ _this._queueNext();+ }+ };+ };++ _proto._queueNext = function _queueNext() {+ var _this2 = this;++ // Do it soon but not immediately, this allows clearing out the entire queue synchronously+ // one by one without continuously _advancing_ it (and starting new tasks before immediately+ // aborting them)+ Promise.resolve().then(function () {+ _this2._next();+ });+ };++ _proto._next = function _next() {+ if (this.activeRequests >= this.limit) {+ return;+ }++ if (this.queuedHandlers.length === 0) {+ return;+ } // Dispatch the next request, and update the abort/done handlers+ // so that cancelling it does the Right Thing (and doesn't just try+ // to dequeue an already-running request).+++ var next = this.queuedHandlers.shift();++ var handler = this._call(next.fn);++ next.abort = handler.abort;+ next.done = handler.done;+ };++ _proto._queue = function _queue(fn, options) {+ var _this3 = this;++ if (options === void 0) {+ options = {};+ }++ var handler = {+ fn: fn,+ priority: options.priority || 0,+ abort: function abort() {+ _this3._dequeue(handler);+ },+ done: function done() {+ throw new Error('Cannot mark a queued request as done: this indicates a bug');+ }+ };+ var index = findIndex(this.queuedHandlers, function (other) {+ return handler.priority > other.priority;+ });++ if (index === -1) {+ this.queuedHandlers.push(handler);+ } else {+ this.queuedHandlers.splice(index, 0, handler);+ }++ return handler;+ };++ _proto._dequeue = function _dequeue(handler) {+ var index = this.queuedHandlers.indexOf(handler);++ if (index !== -1) {+ this.queuedHandlers.splice(index, 1);+ }+ };++ _proto.run = function run(fn, queueOptions) {+ if (this.activeRequests < this.limit) {+ return this._call(fn);+ }++ return this._queue(fn, queueOptions);+ };++ _proto.wrapPromiseFunction = function wrapPromiseFunction(fn, queueOptions) {+ var _this4 = this;++ return function () {+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {+ args[_key] = arguments[_key];+ }++ var queuedRequest;+ var outerPromise = new Promise(function (resolve, reject) {+ queuedRequest = _this4.run(function () {+ var cancelError;+ var innerPromise;++ try {+ innerPromise = Promise.resolve(fn.apply(void 0, args));+ } catch (err) {+ innerPromise = Promise.reject(err);+ }++ innerPromise.then(function (result) {+ if (cancelError) {+ reject(cancelError);+ } else {+ queuedRequest.done();+ resolve(result);+ }+ }, function (err) {+ if (cancelError) {+ reject(cancelError);+ } else {+ queuedRequest.done();+ reject(err);+ }+ });+ return function () {+ cancelError = createCancelError();+ };+ }, queueOptions);+ });++ outerPromise.abort = function () {+ queuedRequest.abort();+ };++ return outerPromise;+ };+ };++ return RateLimitedQueue;+}();+},{"./findIndex":30}],25:[function(require,module,exports){+function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }++var has = require('./hasProperty');+/**+ * Translates strings with interpolation & pluralization support.+ * Extensible with custom dictionaries and pluralization functions.+ *+ * Borrows heavily from and inspired by Polyglot https://github.com/airbnb/polyglot.js,+ * basically a stripped-down version of it. Differences: pluralization functions are not hardcoded+ * and can be easily added among with dictionaries, nested objects are used for pluralization+ * as opposed to `||||` delimeter+ *+ * Usage example: `translator.translate('files_chosen', {smart_count: 3})`+ */+++module.exports = /*#__PURE__*/function () {+ /**+ * @param {object|Array<object>} locales - locale or list of locales.+ */+ function Translator(locales) {+ var _this = this;++ this.locale = {+ strings: {},+ pluralize: function pluralize(n) {+ if (n === 1) {+ return 0;+ }++ return 1;+ }+ };++ if (Array.isArray(locales)) {+ locales.forEach(function (locale) {+ return _this._apply(locale);+ });+ } else {+ this._apply(locales);+ }+ }++ var _proto = Translator.prototype;++ _proto._apply = function _apply(locale) {+ if (!locale || !locale.strings) {+ return;+ }++ var prevLocale = this.locale;+ this.locale = _extends({}, prevLocale, {+ strings: _extends({}, prevLocale.strings, locale.strings)+ });+ this.locale.pluralize = locale.pluralize || prevLocale.pluralize;+ }+ /**+ * Takes a string with placeholder variables like `%{smart_count} file selected`+ * and replaces it with values from options `{smart_count: 5}`+ *+ * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE+ * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299+ *+ * @param {string} phrase that needs interpolation, with placeholders+ * @param {object} options with values that will be used to replace placeholders+ * @returns {any[]} interpolated+ */+ ;++ _proto.interpolate = function interpolate(phrase, options) {+ var _String$prototype = String.prototype,+ split = _String$prototype.split,+ replace = _String$prototype.replace;+ var dollarRegex = /\$/g;+ var dollarBillsYall = '$$$$';+ var interpolated = [phrase];++ for (var arg in options) {+ if (arg !== '_' && has(options, arg)) {+ // Ensure replacement value is escaped to prevent special $-prefixed+ // regex replace tokens. the "$$$$" is needed because each "$" needs to+ // be escaped with "$" itself, and we need two in the resulting output.+ var replacement = options[arg];++ if (typeof replacement === 'string') {+ replacement = replace.call(options[arg], dollarRegex, dollarBillsYall);+ } // We create a new `RegExp` each time instead of using a more-efficient+ // string replace so that the same argument can be replaced multiple times+ // in the same phrase.+++ interpolated = insertReplacement(interpolated, new RegExp("%\\{" + arg + "\\}", 'g'), replacement);+ }+ }++ return interpolated;++ function insertReplacement(source, rx, replacement) {+ var newParts = [];+ source.forEach(function (chunk) {+ // When the source contains multiple placeholders for interpolation,+ // we should ignore chunks that are not strings, because those+ // can be JSX objects and will be otherwise incorrectly turned into strings.+ // Without this condition we’d get this: [object Object] hello [object Object] my <button>+ if (typeof chunk !== 'string') {+ return newParts.push(chunk);+ }++ split.call(chunk, rx).forEach(function (raw, i, list) {+ if (raw !== '') {+ newParts.push(raw);+ } // Interlace with the `replacement` value+++ if (i < list.length - 1) {+ newParts.push(replacement);+ }+ });+ });+ return newParts;+ }+ }+ /**+ * Public translate method+ *+ * @param {string} key+ * @param {object} options with values that will be used later to replace placeholders in string+ * @returns {string} translated (and interpolated)+ */+ ;++ _proto.translate = function translate(key, options) {+ return this.translateArray(key, options).join('');+ }+ /**+ * Get a translation and return the translated and interpolated parts as an array.+ *+ * @param {string} key+ * @param {object} options with values that will be used to replace placeholders+ * @returns {Array} The translated and interpolated parts, in order.+ */+ ;++ _proto.translateArray = function translateArray(key, options) {+ if (!has(this.locale.strings, key)) {+ throw new Error("missing string: " + key);+ }++ var string = this.locale.strings[key];+ var hasPluralForms = typeof string === 'object';++ if (hasPluralForms) {+ if (options && typeof options.smart_count !== 'undefined') {+ var plural = this.locale.pluralize(options.smart_count);+ return this.interpolate(string[plural], options);+ }++ throw new Error('Attempted to use a string with plural forms, but no value was given for %{smart_count}');+ }++ return this.interpolate(string, options);+ };++ return Translator;+}();+},{"./hasProperty":36}],26:[function(require,module,exports){+var _require = require('./AbortController'),+ createAbortError = _require.createAbortError;+/**+ * Return a Promise that resolves after `ms` milliseconds.+ *+ * @param {number} ms - Number of milliseconds to wait.+ * @param {{ signal?: AbortSignal }} [opts] - An abort signal that can be used to cancel the delay early.+ * @returns {Promise<void>} A Promise that resolves after the given amount of `ms`.+ */+++module.exports = function delay(ms, opts) {+ return new Promise(function (resolve, reject) {+ if (opts && opts.signal && opts.signal.aborted) {+ return reject(createAbortError());+ }++ function onabort() {+ clearTimeout(timeout);+ cleanup();+ reject(createAbortError());+ }++ var timeout = setTimeout(function () {+ cleanup();+ resolve();+ }, ms);++ if (opts && opts.signal) {+ opts.signal.addEventListener('abort', onabort);+ }++ function cleanup() {+ if (opts && opts.signal) {+ opts.signal.removeEventListener('abort', onabort);+ }+ }+ });+};+},{"./AbortController":20}],27:[function(require,module,exports){+var throttle = require('lodash.throttle');++function _emitSocketProgress(uploader, progressData, file) {+ var progress = progressData.progress,+ bytesUploaded = progressData.bytesUploaded,+ bytesTotal = progressData.bytesTotal;++ if (progress) {+ uploader.uppy.log("Upload progress: " + progress);+ uploader.uppy.emit('upload-progress', file, {+ uploader: uploader,+ bytesUploaded: bytesUploaded,+ bytesTotal: bytesTotal+ });+ }+}++module.exports = throttle(_emitSocketProgress, 300, {+ leading: true,+ trailing: true+});+},{"lodash.throttle":47}],28:[function(require,module,exports){+var NetworkError = require('./NetworkError');+/**+ * Wrapper around window.fetch that throws a NetworkError when appropriate+ */+++module.exports = function fetchWithNetworkError() {+ return fetch.apply(void 0, arguments).catch(function (err) {+ if (err.name === 'AbortError') {+ throw err;+ } else {+ throw new NetworkError(err);+ }+ });+};+},{"./NetworkError":22}],29:[function(require,module,exports){+var isDOMElement = require('./isDOMElement');+/**+ * Find a DOM element.+ *+ * @param {Node|string} element+ * @returns {Node|null}+ */+++module.exports = function findDOMElement(element, context) {+ if (context === void 0) {+ context = document;+ }++ if (typeof element === 'string') {+ return context.querySelector(element);+ }++ if (isDOMElement(element)) {+ return element;+ }+};+},{"./isDOMElement":37}],30:[function(require,module,exports){+/**+ * Array.prototype.findIndex ponyfill for old browsers.+ *+ * @param {Array} array+ * @param {Function} predicate+ * @returns {number}+ */+module.exports = function findIndex(array, predicate) {+ for (var i = 0; i < array.length; i++) {+ if (predicate(array[i])) return i;+ }++ return -1;+};+},{}],31:[function(require,module,exports){+/**+ * Takes a file object and turns it into fileID, by converting file.name to lowercase,+ * removing extra characters and adding type, size and lastModified+ *+ * @param {object} file+ * @returns {string} the fileID+ */+module.exports = function generateFileID(file) {+ // It's tempting to do `[items].filter(Boolean).join('-')` here, but that+ // is slower! simple string concatenation is fast+ var id = 'uppy';++ if (typeof file.name === 'string') {+ id += "-" + encodeFilename(file.name.toLowerCase());+ }++ if (file.type !== undefined) {+ id += "-" + file.type;+ }++ if (file.meta && typeof file.meta.relativePath === 'string') {+ id += "-" + encodeFilename(file.meta.relativePath.toLowerCase());+ }++ if (file.data.size !== undefined) {+ id += "-" + file.data.size;+ }++ if (file.data.lastModified !== undefined) {+ id += "-" + file.data.lastModified;+ }++ return id;+};++function encodeFilename(name) {+ var suffix = '';+ return name.replace(/[^A-Z0-9]/ig, function (character) {+ suffix += "-" + encodeCharacter(character);+ return '/';+ }) + suffix;+}++function encodeCharacter(character) {+ return character.charCodeAt(0).toString(32);+}+},{}],32:[function(require,module,exports){+/**+ * Takes a full filename string and returns an object {name, extension}+ *+ * @param {string} fullFileName+ * @returns {object} {name, extension}+ */+module.exports = function getFileNameAndExtension(fullFileName) {+ var lastDot = fullFileName.lastIndexOf('.'); // these count as no extension: "no-dot", "trailing-dot."++ if (lastDot === -1 || lastDot === fullFileName.length - 1) {+ return {+ name: fullFileName,+ extension: undefined+ };+ }++ return {+ name: fullFileName.slice(0, lastDot),+ extension: fullFileName.slice(lastDot + 1)+ };+};+},{}],33:[function(require,module,exports){+var getFileNameAndExtension = require('./getFileNameAndExtension');++var mimeTypes = require('./mimeTypes');++module.exports = function getFileType(file) {+ var fileExtension = file.name ? getFileNameAndExtension(file.name).extension : null;+ fileExtension = fileExtension ? fileExtension.toLowerCase() : null;++ if (file.type) {+ // if mime type is set in the file object already, use that+ return file.type;+ }++ if (fileExtension && mimeTypes[fileExtension]) {+ // else, see if we can map extension to a mime type+ return mimeTypes[fileExtension];+ } // if all fails, fall back to a generic byte stream type+++ return 'application/octet-stream';+};+},{"./getFileNameAndExtension":32,"./mimeTypes":39}],34:[function(require,module,exports){+module.exports = function getSocketHost(url) {+ // get the host domain+ var regex = /^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i;+ var host = regex.exec(url)[1];+ var socketProtocol = /^http:\/\//i.test(url) ? 'ws' : 'wss';+ return socketProtocol + "://" + host;+};+},{}],35:[function(require,module,exports){+/**+ * Returns a timestamp in the format of `hours:minutes:seconds`+ */+module.exports = function getTimeStamp() {+ var date = new Date();+ var hours = pad(date.getHours().toString());+ var minutes = pad(date.getMinutes().toString());+ var seconds = pad(date.getSeconds().toString());+ return hours + ":" + minutes + ":" + seconds;+};+/**+ * Adds zero to strings shorter than two characters+ */+++function pad(str) {+ return str.length !== 2 ? 0 + str : str;+}+},{}],36:[function(require,module,exports){+module.exports = function has(object, key) {+ return Object.prototype.hasOwnProperty.call(object, key);+};+},{}],37:[function(require,module,exports){+/**+ * Check if an object is a DOM element. Duck-typing based on `nodeType`.+ *+ * @param {*} obj+ */+module.exports = function isDOMElement(obj) {+ return obj && typeof obj === 'object' && obj.nodeType === Node.ELEMENT_NODE;+};+},{}],38:[function(require,module,exports){+function isNetworkError(xhr) {+ if (!xhr) {+ return false;+ }++ return xhr.readyState !== 0 && xhr.readyState !== 4 || xhr.status === 0;+}++module.exports = isNetworkError;+},{}],39:[function(require,module,exports){+// ___Why not add the mime-types package?+// It's 19.7kB gzipped, and we only need mime types for well-known extensions (for file previews).+// ___Where to take new extensions from?+// https://github.com/jshttp/mime-db/blob/master/db.json+module.exports = {+ md: 'text/markdown',+ markdown: 'text/markdown',+ mp4: 'video/mp4',+ mp3: 'audio/mp3',+ svg: 'image/svg+xml',+ jpg: 'image/jpeg',+ png: 'image/png',+ gif: 'image/gif',+ heic: 'image/heic',+ heif: 'image/heif',+ yaml: 'text/yaml',+ yml: 'text/yaml',+ csv: 'text/csv',+ tsv: 'text/tab-separated-values',+ tab: 'text/tab-separated-values',+ avi: 'video/x-msvideo',+ mks: 'video/x-matroska',+ mkv: 'video/x-matroska',+ mov: 'video/quicktime',+ doc: 'application/msword',+ docm: 'application/vnd.ms-word.document.macroenabled.12',+ docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',+ dot: 'application/msword',+ dotm: 'application/vnd.ms-word.template.macroenabled.12',+ dotx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',+ xla: 'application/vnd.ms-excel',+ xlam: 'application/vnd.ms-excel.addin.macroenabled.12',+ xlc: 'application/vnd.ms-excel',+ xlf: 'application/x-xliff+xml',+ xlm: 'application/vnd.ms-excel',+ xls: 'application/vnd.ms-excel',+ xlsb: 'application/vnd.ms-excel.sheet.binary.macroenabled.12',+ xlsm: 'application/vnd.ms-excel.sheet.macroenabled.12',+ xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',+ xlt: 'application/vnd.ms-excel',+ xltm: 'application/vnd.ms-excel.template.macroenabled.12',+ xltx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',+ xlw: 'application/vnd.ms-excel',+ txt: 'text/plain',+ text: 'text/plain',+ conf: 'text/plain',+ log: 'text/plain',+ pdf: 'application/pdf',+ zip: 'application/zip',+ '7z': 'application/x-7z-compressed',+ rar: 'application/x-rar-compressed',+ tar: 'application/x-tar',+ gz: 'application/gzip',+ dmg: 'application/x-apple-diskimage'+};+},{}],40:[function(require,module,exports){+module.exports = function settle(promises) {+ var resolutions = [];+ var rejections = [];++ function resolved(value) {+ resolutions.push(value);+ }++ function rejected(error) {+ rejections.push(error);+ }++ var wait = Promise.all(promises.map(function (promise) {+ return promise.then(resolved, rejected);+ }));+ return wait.then(function () {+ return {+ successful: resolutions,+ failed: rejections+ };+ });+};+},{}],41:[function(require,module,exports){+var _class, _temp;++function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }++function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }++function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }++function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }++var _require = require('@uppy/core'),+ Plugin = _require.Plugin;++var cuid = require('cuid');++var Translator = require('@uppy/utils/lib/Translator');++var _require2 = require('@uppy/companion-client'),+ Provider = _require2.Provider,+ RequestClient = _require2.RequestClient,+ Socket = _require2.Socket;++var emitSocketProgress = require('@uppy/utils/lib/emitSocketProgress');++var getSocketHost = require('@uppy/utils/lib/getSocketHost');++var settle = require('@uppy/utils/lib/settle');++var EventTracker = require('@uppy/utils/lib/EventTracker');++var ProgressTimeout = require('@uppy/utils/lib/ProgressTimeout');++var RateLimitedQueue = require('@uppy/utils/lib/RateLimitedQueue');++var NetworkError = require('@uppy/utils/lib/NetworkError');++var isNetworkError = require('@uppy/utils/lib/isNetworkError');++function buildResponseError(xhr, error) {+ // No error message+ if (!error) error = new Error('Upload error'); // Got an error message string++ if (typeof error === 'string') error = new Error(error); // Got something else++ if (!(error instanceof Error)) {+ error = _extends(new Error('Upload error'), {+ data: error+ });+ }++ if (isNetworkError(xhr)) {+ error = new NetworkError(error, xhr);+ return error;+ }++ error.request = xhr;+ return error;+}+/**+ * Set `data.type` in the blob to `file.meta.type`,+ * because we might have detected a more accurate file type in Uppy+ * https://stackoverflow.com/a/50875615+ *+ * @param {object} file File object with `data`, `size` and `meta` properties+ * @returns {object} blob updated with the new `type` set from `file.meta.type`+ */+++function setTypeInBlob(file) {+ var dataWithUpdatedType = file.data.slice(0, file.data.size, file.meta.type);+ return dataWithUpdatedType;+}++module.exports = (_temp = _class = /*#__PURE__*/function (_Plugin) {+ _inheritsLoose(XHRUpload, _Plugin);++ function XHRUpload(uppy, opts) {+ var _this;++ _this = _Plugin.call(this, uppy, opts) || this;+ _this.type = 'uploader';+ _this.id = _this.opts.id || 'XHRUpload';+ _this.title = 'XHRUpload';+ _this.defaultLocale = {+ strings: {+ timedOut: 'Upload stalled for %{seconds} seconds, aborting.'+ }+ }; // Default options++ var defaultOptions = {+ formData: true,+ fieldName: 'files[]',+ method: 'post',+ metaFields: null,+ responseUrlFieldName: 'url',+ bundle: false,+ headers: {},+ timeout: 30 * 1000,+ limit: 0,+ withCredentials: false,+ responseType: '',++ /**+ * @typedef respObj+ * @property {string} responseText+ * @property {number} status+ * @property {string} statusText+ * @property {object.<string, string>} headers+ *+ * @param {string} responseText the response body string+ * @param {XMLHttpRequest | respObj} response the response object (XHR or similar)+ */+ getResponseData: function getResponseData(responseText, response) {+ var parsedResponse = {};++ try {+ parsedResponse = JSON.parse(responseText);+ } catch (err) {+ console.log(err);+ }++ return parsedResponse;+ },++ /**+ *+ * @param {string} responseText the response body string+ * @param {XMLHttpRequest | respObj} response the response object (XHR or similar)+ */+ getResponseError: function getResponseError(responseText, response) {+ var error = new Error('Upload error');++ if (isNetworkError(response)) {+ error = new NetworkError(error, response);+ }++ return error;+ },++ /**+ * Check if the response from the upload endpoint indicates that the upload was successful.+ *+ * @param {number} status the response status code+ * @param {string} responseText the response body string+ * @param {XMLHttpRequest | respObj} response the response object (XHR or similar)+ */+ validateStatus: function validateStatus(status, responseText, response) {+ return status >= 200 && status < 300;+ }+ };+ _this.opts = _extends({}, defaultOptions, opts);++ _this.i18nInit();++ _this.handleUpload = _this.handleUpload.bind(_assertThisInitialized(_this)); // Simultaneous upload limiting is shared across all uploads with this plugin.+ // __queue is for internal Uppy use only!++ if (_this.opts.__queue instanceof RateLimitedQueue) {+ _this.requests = _this.opts.__queue;+ } else {+ _this.requests = new RateLimitedQueue(_this.opts.limit);+ }++ if (_this.opts.bundle && !_this.opts.formData) {+ throw new Error('`opts.formData` must be true when `opts.bundle` is enabled.');+ }++ _this.uploaderEvents = Object.create(null);+ return _this;+ }++ var _proto = XHRUpload.prototype;++ _proto.setOptions = function setOptions(newOpts) {+ _Plugin.prototype.setOptions.call(this, newOpts);++ this.i18nInit();+ };++ _proto.i18nInit = function i18nInit() {+ this.translator = new Translator([this.defaultLocale, this.uppy.locale, this.opts.locale]);+ this.i18n = this.translator.translate.bind(this.translator);+ this.setPluginState(); // so that UI re-renders and we see the updated locale+ };++ _proto.getOptions = function getOptions(file) {+ var overrides = this.uppy.getState().xhrUpload;+ var headers = this.opts.headers;++ var opts = _extends({}, this.opts, overrides || {}, file.xhrUpload || {}, {+ headers: {}+ }); // Support for `headers` as a function, only in the XHRUpload settings.+ // Options set by other plugins in Uppy state or on the files themselves are still merged in afterward.+ //+ // ```js+ // headers: (file) => ({ expires: file.meta.expires })+ // ```+++ if (typeof headers === 'function') {+ opts.headers = headers(file);+ } else {+ _extends(opts.headers, this.opts.headers);+ }++ if (overrides) {+ _extends(opts.headers, overrides.headers);+ }++ if (file.xhrUpload) {+ _extends(opts.headers, file.xhrUpload.headers);+ }++ return opts;+ };++ _proto.addMetadata = function addMetadata(formData, meta, opts) {+ var metaFields = Array.isArray(opts.metaFields) ? opts.metaFields // Send along all fields by default.+ : Object.keys(meta);+ metaFields.forEach(function (item) {+ formData.append(item, meta[item]);+ });+ };++ _proto.createFormDataUpload = function createFormDataUpload(file, opts) {+ var formPost = new FormData();+ this.addMetadata(formPost, file.meta, opts);+ var dataWithUpdatedType = setTypeInBlob(file);++ if (file.name) {+ formPost.append(opts.fieldName, dataWithUpdatedType, file.meta.name);+ } else {+ formPost.append(opts.fieldName, dataWithUpdatedType);+ }++ return formPost;+ };++ _proto.createBundledUpload = function createBundledUpload(files, opts) {+ var _this2 = this;++ var formPost = new FormData();++ var _this$uppy$getState = this.uppy.getState(),+ meta = _this$uppy$getState.meta;++ this.addMetadata(formPost, meta, opts);+ files.forEach(function (file) {+ var opts = _this2.getOptions(file);++ var dataWithUpdatedType = setTypeInBlob(file);++ if (file.name) {+ formPost.append(opts.fieldName, dataWithUpdatedType, file.name);+ } else {+ formPost.append(opts.fieldName, dataWithUpdatedType);+ }+ });+ return formPost;+ };++ _proto.createBareUpload = function createBareUpload(file, opts) {+ return file.data;+ };++ _proto.upload = function upload(file, current, total) {+ var _this3 = this;++ var opts = this.getOptions(file);+ this.uppy.log("uploading " + current + " of " + total);+ return new Promise(function (resolve, reject) {+ _this3.uppy.emit('upload-started', file);++ var data = opts.formData ? _this3.createFormDataUpload(file, opts) : _this3.createBareUpload(file, opts);+ var xhr = new XMLHttpRequest();+ _this3.uploaderEvents[file.id] = new EventTracker(_this3.uppy);+ var timer = new ProgressTimeout(opts.timeout, function () {+ xhr.abort();+ queuedRequest.done();+ var error = new Error(_this3.i18n('timedOut', {+ seconds: Math.ceil(opts.timeout / 1000)+ }));++ _this3.uppy.emit('upload-error', file, error);++ reject(error);+ });+ var id = cuid();+ xhr.upload.addEventListener('loadstart', function (ev) {+ _this3.uppy.log("[XHRUpload] " + id + " started");+ });+ xhr.upload.addEventListener('progress', function (ev) {+ _this3.uppy.log("[XHRUpload] " + id + " progress: " + ev.loaded + " / " + ev.total); // Begin checking for timeouts when progress starts, instead of loading,+ // to avoid timing out requests on browser concurrency queue+++ timer.progress();++ if (ev.lengthComputable) {+ _this3.uppy.emit('upload-progress', file, {+ uploader: _this3,+ bytesUploaded: ev.loaded,+ bytesTotal: ev.total+ });+ }+ });+ xhr.addEventListener('load', function (ev) {+ _this3.uppy.log("[XHRUpload] " + id + " finished");++ timer.done();+ queuedRequest.done();++ if (_this3.uploaderEvents[file.id]) {+ _this3.uploaderEvents[file.id].remove();++ _this3.uploaderEvents[file.id] = null;+ }++ if (opts.validateStatus(ev.target.status, xhr.responseText, xhr)) {+ var _body = opts.getResponseData(xhr.responseText, xhr);++ var uploadURL = _body[opts.responseUrlFieldName];+ var uploadResp = {+ status: ev.target.status,+ body: _body,+ uploadURL: uploadURL+ };++ _this3.uppy.emit('upload-success', file, uploadResp);++ if (uploadURL) {+ _this3.uppy.log("Download " + file.name + " from " + uploadURL);+ }++ return resolve(file);+ }++ var body = opts.getResponseData(xhr.responseText, xhr);+ var error = buildResponseError(xhr, opts.getResponseError(xhr.responseText, xhr));+ var response = {+ status: ev.target.status,+ body: body+ };++ _this3.uppy.emit('upload-error', file, error, response);++ return reject(error);+ });+ xhr.addEventListener('error', function (ev) {+ _this3.uppy.log("[XHRUpload] " + id + " errored");++ timer.done();+ queuedRequest.done();++ if (_this3.uploaderEvents[file.id]) {+ _this3.uploaderEvents[file.id].remove();++ _this3.uploaderEvents[file.id] = null;+ }++ var error = buildResponseError(xhr, opts.getResponseError(xhr.responseText, xhr));++ _this3.uppy.emit('upload-error', file, error);++ return reject(error);+ });+ xhr.open(opts.method.toUpperCase(), opts.endpoint, true); // IE10 does not allow setting `withCredentials` and `responseType`+ // before `open()` is called.++ xhr.withCredentials = opts.withCredentials;++ if (opts.responseType !== '') {+ xhr.responseType = opts.responseType;+ }++ var queuedRequest = _this3.requests.run(function () {+ // When using an authentication system like JWT, the bearer token goes as a header. This+ // header needs to be fresh each time the token is refreshed so computing and setting the+ // headers just before the upload starts enables this kind of authentication to work properly.+ // Otherwise, half-way through the list of uploads the token could be stale and the upload would fail.+ var currentOpts = _this3.getOptions(file);++ Object.keys(currentOpts.headers).forEach(function (header) {+ xhr.setRequestHeader(header, currentOpts.headers[header]);+ });+ xhr.send(data);+ return function () {+ timer.done();+ xhr.abort();+ };+ });++ _this3.onFileRemove(file.id, function () {+ queuedRequest.abort();+ reject(new Error('File removed'));+ });++ _this3.onCancelAll(file.id, function () {+ queuedRequest.abort();+ reject(new Error('Upload cancelled'));+ });+ });+ };++ _proto.uploadRemote = function uploadRemote(file, current, total) {+ var _this4 = this;++ var opts = this.getOptions(file);+ return new Promise(function (resolve, reject) {+ _this4.uppy.emit('upload-started', file);++ var fields = {};+ var metaFields = Array.isArray(opts.metaFields) ? opts.metaFields // Send along all fields by default.+ : Object.keys(file.meta);+ metaFields.forEach(function (name) {+ fields[name] = file.meta[name];+ });+ var Client = file.remote.providerOptions.provider ? Provider : RequestClient;+ var client = new Client(_this4.uppy, file.remote.providerOptions);+ client.post(file.remote.url, _extends({}, file.remote.body, {+ endpoint: opts.endpoint,+ size: file.data.size,+ fieldname: opts.fieldName,+ metadata: fields,+ httpMethod: opts.method,+ useFormData: opts.formData,+ headers: opts.headers+ })).then(function (res) {+ var token = res.token;+ var host = getSocketHost(file.remote.companionUrl);+ var socket = new Socket({+ target: host + "/api/" + token,+ autoOpen: false+ });+ _this4.uploaderEvents[file.id] = new EventTracker(_this4.uppy);++ _this4.onFileRemove(file.id, function () {+ socket.send('pause', {});+ queuedRequest.abort();+ resolve("upload " + file.id + " was removed");+ });++ _this4.onCancelAll(file.id, function () {+ socket.send('pause', {});+ queuedRequest.abort();+ resolve("upload " + file.id + " was canceled");+ });++ _this4.onRetry(file.id, function () {+ socket.send('pause', {});+ socket.send('resume', {});+ });++ _this4.onRetryAll(file.id, function () {+ socket.send('pause', {});+ socket.send('resume', {});+ });++ socket.on('progress', function (progressData) {+ return emitSocketProgress(_this4, progressData, file);+ });+ socket.on('success', function (data) {+ var body = opts.getResponseData(data.response.responseText, data.response);+ var uploadURL = body[opts.responseUrlFieldName];+ var uploadResp = {+ status: data.response.status,+ body: body,+ uploadURL: uploadURL+ };++ _this4.uppy.emit('upload-success', file, uploadResp);++ queuedRequest.done();++ if (_this4.uploaderEvents[file.id]) {+ _this4.uploaderEvents[file.id].remove();++ _this4.uploaderEvents[file.id] = null;+ }++ return resolve();+ });+ socket.on('error', function (errData) {+ var resp = errData.response;+ var error = resp ? opts.getResponseError(resp.responseText, resp) : _extends(new Error(errData.error.message), {+ cause: errData.error+ });++ _this4.uppy.emit('upload-error', file, error);++ queuedRequest.done();++ if (_this4.uploaderEvents[file.id]) {+ _this4.uploaderEvents[file.id].remove();++ _this4.uploaderEvents[file.id] = null;+ }++ reject(error);+ });++ var queuedRequest = _this4.requests.run(function () {+ socket.open();++ if (file.isPaused) {+ socket.send('pause', {});+ }++ return function () {+ return socket.close();+ };+ });+ }).catch(function (err) {+ _this4.uppy.emit('upload-error', file, err);++ reject(err);+ });+ });+ };++ _proto.uploadBundle = function uploadBundle(files) {+ var _this5 = this;++ return new Promise(function (resolve, reject) {+ var endpoint = _this5.opts.endpoint;+ var method = _this5.opts.method;++ var optsFromState = _this5.uppy.getState().xhrUpload;++ var formData = _this5.createBundledUpload(files, _extends({}, _this5.opts, optsFromState || {}));++ var xhr = new XMLHttpRequest();+ var timer = new ProgressTimeout(_this5.opts.timeout, function () {+ xhr.abort();+ var error = new Error(_this5.i18n('timedOut', {+ seconds: Math.ceil(_this5.opts.timeout / 1000)+ }));+ emitError(error);+ reject(error);+ });++ var emitError = function emitError(error) {+ files.forEach(function (file) {+ _this5.uppy.emit('upload-error', file, error);+ });+ };++ xhr.upload.addEventListener('loadstart', function (ev) {+ _this5.uppy.log('[XHRUpload] started uploading bundle');++ timer.progress();+ });+ xhr.upload.addEventListener('progress', function (ev) {+ timer.progress();+ if (!ev.lengthComputable) return;+ files.forEach(function (file) {+ _this5.uppy.emit('upload-progress', file, {+ uploader: _this5,+ bytesUploaded: ev.loaded / ev.total * file.size,+ bytesTotal: file.size+ });+ });+ });+ xhr.addEventListener('load', function (ev) {+ timer.done();++ if (_this5.opts.validateStatus(ev.target.status, xhr.responseText, xhr)) {+ var body = _this5.opts.getResponseData(xhr.responseText, xhr);++ var uploadResp = {+ status: ev.target.status,+ body: body+ };+ files.forEach(function (file) {+ _this5.uppy.emit('upload-success', file, uploadResp);+ });+ return resolve();+ }++ var error = _this5.opts.getResponseError(xhr.responseText, xhr) || new Error('Upload error');+ error.request = xhr;+ emitError(error);+ return reject(error);+ });+ xhr.addEventListener('error', function (ev) {+ timer.done();+ var error = _this5.opts.getResponseError(xhr.responseText, xhr) || new Error('Upload error');+ emitError(error);+ return reject(error);+ });++ _this5.uppy.on('cancel-all', function () {+ timer.done();+ xhr.abort();+ });++ xhr.open(method.toUpperCase(), endpoint, true); // IE10 does not allow setting `withCredentials` and `responseType`+ // before `open()` is called.++ xhr.withCredentials = _this5.opts.withCredentials;++ if (_this5.opts.responseType !== '') {+ xhr.responseType = _this5.opts.responseType;+ }++ Object.keys(_this5.opts.headers).forEach(function (header) {+ xhr.setRequestHeader(header, _this5.opts.headers[header]);+ });+ xhr.send(formData);+ files.forEach(function (file) {+ _this5.uppy.emit('upload-started', file);+ });+ });+ };++ _proto.uploadFiles = function uploadFiles(files) {+ var _this6 = this;++ var promises = files.map(function (file, i) {+ var current = parseInt(i, 10) + 1;+ var total = files.length;++ if (file.error) {+ return Promise.reject(new Error(file.error));+ }++ if (file.isRemote) {+ return _this6.uploadRemote(file, current, total);+ }++ return _this6.upload(file, current, total);+ });+ return settle(promises);+ };++ _proto.onFileRemove = function onFileRemove(fileID, cb) {+ this.uploaderEvents[fileID].on('file-removed', function (file) {+ if (fileID === file.id) cb(file.id);+ });+ };++ _proto.onRetry = function onRetry(fileID, cb) {+ this.uploaderEvents[fileID].on('upload-retry', function (targetFileID) {+ if (fileID === targetFileID) {+ cb();+ }+ });+ };++ _proto.onRetryAll = function onRetryAll(fileID, cb) {+ var _this7 = this;++ this.uploaderEvents[fileID].on('retry-all', function (filesToRetry) {+ if (!_this7.uppy.getFile(fileID)) return;+ cb();+ });+ };++ _proto.onCancelAll = function onCancelAll(fileID, cb) {+ var _this8 = this;++ this.uploaderEvents[fileID].on('cancel-all', function () {+ if (!_this8.uppy.getFile(fileID)) return;+ cb();+ });+ };++ _proto.handleUpload = function handleUpload(fileIDs) {+ var _this9 = this;++ if (fileIDs.length === 0) {+ this.uppy.log('[XHRUpload] No files to upload!');+ return Promise.resolve();+ } // no limit configured by the user, and no RateLimitedQueue passed in by a "parent" plugin (basically just AwsS3) using the top secret `__queue` option+++ if (this.opts.limit === 0 && !this.opts.__queue) {+ this.uppy.log('[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0', 'warning');+ }++ this.uppy.log('[XHRUpload] Uploading...');+ var files = fileIDs.map(function (fileID) {+ return _this9.uppy.getFile(fileID);+ });++ if (this.opts.bundle) {+ // if bundle: true, we don’t support remote uploads+ var isSomeFileRemote = files.some(function (file) {+ return file.isRemote;+ });++ if (isSomeFileRemote) {+ throw new Error('Can’t upload remote files when the `bundle: true` option is set');+ }++ if (typeof this.opts.headers === 'function') {+ throw new TypeError('`headers` may not be a function when the `bundle: true` option is set');+ }++ return this.uploadBundle(files);+ }++ return this.uploadFiles(files).then(function () {+ return null;+ });+ };++ _proto.install = function install() {+ if (this.opts.bundle) {+ var _this$uppy$getState2 = this.uppy.getState(),+ capabilities = _this$uppy$getState2.capabilities;++ this.uppy.setState({+ capabilities: _extends({}, capabilities, {+ individualCancellation: false+ })+ });+ }++ this.uppy.addUploader(this.handleUpload);+ };++ _proto.uninstall = function uninstall() {+ if (this.opts.bundle) {+ var _this$uppy$getState3 = this.uppy.getState(),+ capabilities = _this$uppy$getState3.capabilities;++ this.uppy.setState({+ capabilities: _extends({}, capabilities, {+ individualCancellation: true+ })+ });+ }++ this.uppy.removeUploader(this.handleUpload);+ };++ return XHRUpload;+}(Plugin), _class.VERSION = "1.7.5", _temp);+},{"@uppy/companion-client":12,"@uppy/core":15,"@uppy/utils/lib/EventTracker":21,"@uppy/utils/lib/NetworkError":22,"@uppy/utils/lib/ProgressTimeout":23,"@uppy/utils/lib/RateLimitedQueue":24,"@uppy/utils/lib/Translator":25,"@uppy/utils/lib/emitSocketProgress":27,"@uppy/utils/lib/getSocketHost":34,"@uppy/utils/lib/isNetworkError":38,"@uppy/utils/lib/settle":40,"cuid":43}],42:[function(require,module,exports){+'use strict';++Object.defineProperty(exports, '__esModule', { value: true });++function _classCallCheck(instance, Constructor) {+ if (!(instance instanceof Constructor)) {+ throw new TypeError("Cannot call a class as a function");+ }+}++function _defineProperties(target, props) {+ for (var i = 0; i < props.length; i++) {+ var descriptor = props[i];+ descriptor.enumerable = descriptor.enumerable || false;+ descriptor.configurable = true;+ if ("value" in descriptor) descriptor.writable = true;+ Object.defineProperty(target, descriptor.key, descriptor);+ }+}++function _createClass(Constructor, protoProps, staticProps) {+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);+ if (staticProps) _defineProperties(Constructor, staticProps);+ return Constructor;+}++function _inherits(subClass, superClass) {+ if (typeof superClass !== "function" && superClass !== null) {+ throw new TypeError("Super expression must either be null or a function");+ }++ subClass.prototype = Object.create(superClass && superClass.prototype, {+ constructor: {+ value: subClass,+ writable: true,+ configurable: true+ }+ });+ if (superClass) _setPrototypeOf(subClass, superClass);+}++function _getPrototypeOf(o) {+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {+ return o.__proto__ || Object.getPrototypeOf(o);+ };+ return _getPrototypeOf(o);+}++function _setPrototypeOf(o, p) {+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {+ o.__proto__ = p;+ return o;+ };++ return _setPrototypeOf(o, p);+}++function _isNativeReflectConstruct() {+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;+ if (Reflect.construct.sham) return false;+ if (typeof Proxy === "function") return true;++ try {+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));+ return true;+ } catch (e) {+ return false;+ }+}++function _assertThisInitialized(self) {+ if (self === void 0) {+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");+ }++ return self;+}++function _possibleConstructorReturn(self, call) {+ if (call && (typeof call === "object" || typeof call === "function")) {+ return call;+ }++ return _assertThisInitialized(self);+}++function _createSuper(Derived) {+ var hasNativeReflectConstruct = _isNativeReflectConstruct();++ return function _createSuperInternal() {+ var Super = _getPrototypeOf(Derived),+ result;++ if (hasNativeReflectConstruct) {+ var NewTarget = _getPrototypeOf(this).constructor;++ result = Reflect.construct(Super, arguments, NewTarget);+ } else {+ result = Super.apply(this, arguments);+ }++ return _possibleConstructorReturn(this, result);+ };+}++function _superPropBase(object, property) {+ while (!Object.prototype.hasOwnProperty.call(object, property)) {+ object = _getPrototypeOf(object);+ if (object === null) break;+ }++ return object;+}++function _get(target, property, receiver) {+ if (typeof Reflect !== "undefined" && Reflect.get) {+ _get = Reflect.get;+ } else {+ _get = function _get(target, property, receiver) {+ var base = _superPropBase(target, property);++ if (!base) return;+ var desc = Object.getOwnPropertyDescriptor(base, property);++ if (desc.get) {+ return desc.get.call(receiver);+ }++ return desc.value;+ };+ }++ return _get(target, property, receiver || target);+}++var Emitter = /*#__PURE__*/function () {+ function Emitter() {+ _classCallCheck(this, Emitter);++ Object.defineProperty(this, 'listeners', {+ value: {},+ writable: true,+ configurable: true+ });+ }++ _createClass(Emitter, [{+ key: "addEventListener",+ value: function addEventListener(type, callback, options) {+ if (!(type in this.listeners)) {+ this.listeners[type] = [];+ }++ this.listeners[type].push({+ callback: callback,+ options: options+ });+ }+ }, {+ key: "removeEventListener",+ value: function removeEventListener(type, callback) {+ if (!(type in this.listeners)) {+ return;+ }++ var stack = this.listeners[type];++ for (var i = 0, l = stack.length; i < l; i++) {+ if (stack[i].callback === callback) {+ stack.splice(i, 1);+ return;+ }+ }+ }+ }, {+ key: "dispatchEvent",+ value: function dispatchEvent(event) {+ if (!(event.type in this.listeners)) {+ return;+ }++ var stack = this.listeners[event.type];+ var stackToCall = stack.slice();++ for (var i = 0, l = stackToCall.length; i < l; i++) {+ var listener = stackToCall[i];++ try {+ listener.callback.call(this, event);+ } catch (e) {+ Promise.resolve().then(function () {+ throw e;+ });+ }++ if (listener.options && listener.options.once) {+ this.removeEventListener(event.type, listener.callback);+ }+ }++ return !event.defaultPrevented;+ }+ }]);++ return Emitter;+}();++var AbortSignal = /*#__PURE__*/function (_Emitter) {+ _inherits(AbortSignal, _Emitter);++ var _super = _createSuper(AbortSignal);++ function AbortSignal() {+ var _this;++ _classCallCheck(this, AbortSignal);++ _this = _super.call(this); // Some versions of babel does not transpile super() correctly for IE <= 10, if the parent+ // constructor has failed to run, then "this.listeners" will still be undefined and then we call+ // the parent constructor directly instead as a workaround. For general details, see babel bug:+ // https://github.com/babel/babel/issues/3041+ // This hack was added as a fix for the issue described here:+ // https://github.com/Financial-Times/polyfill-library/pull/59#issuecomment-477558042++ if (!_this.listeners) {+ Emitter.call(_assertThisInitialized(_this));+ } // Compared to assignment, Object.defineProperty makes properties non-enumerable by default and+ // we want Object.keys(new AbortController().signal) to be [] for compat with the native impl+++ Object.defineProperty(_assertThisInitialized(_this), 'aborted', {+ value: false,+ writable: true,+ configurable: true+ });+ Object.defineProperty(_assertThisInitialized(_this), 'onabort', {+ value: null,+ writable: true,+ configurable: true+ });+ return _this;+ }++ _createClass(AbortSignal, [{+ key: "toString",+ value: function toString() {+ return '[object AbortSignal]';+ }+ }, {+ key: "dispatchEvent",+ value: function dispatchEvent(event) {+ if (event.type === 'abort') {+ this.aborted = true;++ if (typeof this.onabort === 'function') {+ this.onabort.call(this, event);+ }+ }++ _get(_getPrototypeOf(AbortSignal.prototype), "dispatchEvent", this).call(this, event);+ }+ }]);++ return AbortSignal;+}(Emitter);+var AbortController = /*#__PURE__*/function () {+ function AbortController() {+ _classCallCheck(this, AbortController);++ // Compared to assignment, Object.defineProperty makes properties non-enumerable by default and+ // we want Object.keys(new AbortController()) to be [] for compat with the native impl+ Object.defineProperty(this, 'signal', {+ value: new AbortSignal(),+ writable: true,+ configurable: true+ });+ }++ _createClass(AbortController, [{+ key: "abort",+ value: function abort() {+ var event;++ try {+ event = new Event('abort');+ } catch (e) {+ if (typeof document !== 'undefined') {+ if (!document.createEvent) {+ // For Internet Explorer 8:+ event = document.createEventObject();+ event.type = 'abort';+ } else {+ // For Internet Explorer 11:+ event = document.createEvent('Event');+ event.initEvent('abort', false, false);+ }+ } else {+ // Fallback where document isn't available:+ event = {+ type: 'abort',+ bubbles: false,+ cancelable: false+ };+ }+ }++ this.signal.dispatchEvent(event);+ }+ }, {+ key: "toString",+ value: function toString() {+ return '[object AbortController]';+ }+ }]);++ return AbortController;+}();++if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {+ // These are necessary to make sure that we get correct output for:+ // Object.prototype.toString.call(new AbortController())+ AbortController.prototype[Symbol.toStringTag] = 'AbortController';+ AbortSignal.prototype[Symbol.toStringTag] = 'AbortSignal';+}++exports.AbortController = AbortController;+exports.AbortSignal = AbortSignal;+exports.default = AbortController;++},{}],43:[function(require,module,exports){+/**+ * cuid.js+ * Collision-resistant UID generator for browsers and node.+ * Sequential for fast db lookups and recency sorting.+ * Safe for element IDs and server-side lookups.+ *+ * Extracted from CLCTR+ *+ * Copyright (c) Eric Elliott 2012+ * MIT License+ */++var fingerprint = require('./lib/fingerprint.js');+var pad = require('./lib/pad.js');+var getRandomValue = require('./lib/getRandomValue.js');++var c = 0,+ blockSize = 4,+ base = 36,+ discreteValues = Math.pow(base, blockSize);++function randomBlock () {+ return pad((getRandomValue() *+ discreteValues << 0)+ .toString(base), blockSize);+}++function safeCounter () {+ c = c < discreteValues ? c : 0;+ c++; // this is not subliminal+ return c - 1;+}++function cuid () {+ // Starting with a lowercase letter makes+ // it HTML element ID friendly.+ var letter = 'c', // hard-coded allows for sequential access++ // timestamp+ // warning: this exposes the exact date and time+ // that the uid was created.+ timestamp = (new Date().getTime()).toString(base),++ // Prevent same-machine collisions.+ counter = pad(safeCounter().toString(base), blockSize),++ // A few chars to generate distinct ids for different+ // clients (so different computers are far less+ // likely to generate the same id)+ print = fingerprint(),++ // Grab some more chars from Math.random()+ random = randomBlock() + randomBlock();++ return letter + timestamp + counter + print + random;+}++cuid.slug = function slug () {+ var date = new Date().getTime().toString(36),+ counter = safeCounter().toString(36).slice(-4),+ print = fingerprint().slice(0, 1) ++ fingerprint().slice(-1),+ random = randomBlock().slice(-2);++ return date.slice(-2) ++ counter + print + random;+};++cuid.isCuid = function isCuid (stringToCheck) {+ if (typeof stringToCheck !== 'string') return false;+ if (stringToCheck.startsWith('c')) return true;+ return false;+};++cuid.isSlug = function isSlug (stringToCheck) {+ if (typeof stringToCheck !== 'string') return false;+ var stringLength = stringToCheck.length;+ if (stringLength >= 7 && stringLength <= 10) return true;+ return false;+};++cuid.fingerprint = fingerprint;++module.exports = cuid;++},{"./lib/fingerprint.js":44,"./lib/getRandomValue.js":45,"./lib/pad.js":46}],44:[function(require,module,exports){+var pad = require('./pad.js');++var env = typeof window === 'object' ? window : self;+var globalCount = Object.keys(env).length;+var mimeTypesLength = navigator.mimeTypes ? navigator.mimeTypes.length : 0;+var clientId = pad((mimeTypesLength ++ navigator.userAgent.length).toString(36) ++ globalCount.toString(36), 4);++module.exports = function fingerprint () {+ return clientId;+};++},{"./pad.js":46}],45:[function(require,module,exports){++var getRandomValue;++var crypto = typeof window !== 'undefined' &&+ (window.crypto || window.msCrypto) ||+ typeof self !== 'undefined' &&+ self.crypto;++if (crypto) {+ var lim = Math.pow(2, 32) - 1;+ getRandomValue = function () {+ return Math.abs(crypto.getRandomValues(new Uint32Array(1))[0] / lim);+ };+} else {+ getRandomValue = Math.random;+}++module.exports = getRandomValue;++},{}],46:[function(require,module,exports){+module.exports = function pad (num, size) {+ var s = '000000000' + num;+ return s.substr(s.length - size);+};++},{}],47:[function(require,module,exports){+(function (global){(function (){+/**+ * lodash (Custom Build) <https://lodash.com/>+ * Build: `lodash modularize exports="npm" -o ./`+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>+ * Released under MIT license <https://lodash.com/license>+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors+ */++/** Used as the `TypeError` message for "Functions" methods. */+var FUNC_ERROR_TEXT = 'Expected a function';++/** Used as references for various `Number` constants. */+var NAN = 0 / 0;++/** `Object#toString` result references. */+var symbolTag = '[object Symbol]';++/** Used to match leading and trailing whitespace. */+var reTrim = /^\s+|\s+$/g;++/** Used to detect bad signed hexadecimal string values. */+var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;++/** Used to detect binary string values. */+var reIsBinary = /^0b[01]+$/i;++/** Used to detect octal string values. */+var reIsOctal = /^0o[0-7]+$/i;++/** Built-in method references without a dependency on `root`. */+var freeParseInt = parseInt;++/** Detect free variable `global` from Node.js. */+var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;++/** Detect free variable `self`. */+var freeSelf = typeof self == 'object' && self && self.Object === Object && self;++/** Used as a reference to the global object. */+var root = freeGlobal || freeSelf || Function('return this')();++/** Used for built-in method references. */+var objectProto = Object.prototype;++/**+ * Used to resolve the+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)+ * of values.+ */+var objectToString = objectProto.toString;++/* Built-in method references for those with the same name as other `lodash` methods. */+var nativeMax = Math.max,+ nativeMin = Math.min;++/**+ * Gets the timestamp of the number of milliseconds that have elapsed since+ * the Unix epoch (1 January 1970 00:00:00 UTC).+ *+ * @static+ * @memberOf _+ * @since 2.4.0+ * @category Date+ * @returns {number} Returns the timestamp.+ * @example+ *+ * _.defer(function(stamp) {+ * console.log(_.now() - stamp);+ * }, _.now());+ * // => Logs the number of milliseconds it took for the deferred invocation.+ */+var now = function() {+ return root.Date.now();+};++/**+ * Creates a debounced function that delays invoking `func` until after `wait`+ * milliseconds have elapsed since the last time the debounced function was+ * invoked. The debounced function comes with a `cancel` method to cancel+ * delayed `func` invocations and a `flush` method to immediately invoke them.+ * Provide `options` to indicate whether `func` should be invoked on the+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked+ * with the last arguments provided to the debounced function. Subsequent+ * calls to the debounced function return the result of the last `func`+ * invocation.+ *+ * **Note:** If `leading` and `trailing` options are `true`, `func` is+ * invoked on the trailing edge of the timeout only if the debounced function+ * is invoked more than once during the `wait` timeout.+ *+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.+ *+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)+ * for details over the differences between `_.debounce` and `_.throttle`.+ *+ * @static+ * @memberOf _+ * @since 0.1.0+ * @category Function+ * @param {Function} func The function to debounce.+ * @param {number} [wait=0] The number of milliseconds to delay.+ * @param {Object} [options={}] The options object.+ * @param {boolean} [options.leading=false]+ * Specify invoking on the leading edge of the timeout.+ * @param {number} [options.maxWait]+ * The maximum time `func` is allowed to be delayed before it's invoked.+ * @param {boolean} [options.trailing=true]+ * Specify invoking on the trailing edge of the timeout.+ * @returns {Function} Returns the new debounced function.+ * @example+ *+ * // Avoid costly calculations while the window size is in flux.+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));+ *+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.+ * jQuery(element).on('click', _.debounce(sendMail, 300, {+ * 'leading': true,+ * 'trailing': false+ * }));+ *+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });+ * var source = new EventSource('/stream');+ * jQuery(source).on('message', debounced);+ *+ * // Cancel the trailing debounced invocation.+ * jQuery(window).on('popstate', debounced.cancel);+ */+function debounce(func, wait, options) {+ var lastArgs,+ lastThis,+ maxWait,+ result,+ timerId,+ lastCallTime,+ lastInvokeTime = 0,+ leading = false,+ maxing = false,+ trailing = true;++ if (typeof func != 'function') {+ throw new TypeError(FUNC_ERROR_TEXT);+ }+ wait = toNumber(wait) || 0;+ if (isObject(options)) {+ leading = !!options.leading;+ maxing = 'maxWait' in options;+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;+ trailing = 'trailing' in options ? !!options.trailing : trailing;+ }++ function invokeFunc(time) {+ var args = lastArgs,+ thisArg = lastThis;++ lastArgs = lastThis = undefined;+ lastInvokeTime = time;+ result = func.apply(thisArg, args);+ return result;+ }++ function leadingEdge(time) {+ // Reset any `maxWait` timer.+ lastInvokeTime = time;+ // Start the timer for the trailing edge.+ timerId = setTimeout(timerExpired, wait);+ // Invoke the leading edge.+ return leading ? invokeFunc(time) : result;+ }++ function remainingWait(time) {+ var timeSinceLastCall = time - lastCallTime,+ timeSinceLastInvoke = time - lastInvokeTime,+ result = wait - timeSinceLastCall;++ return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;+ }++ function shouldInvoke(time) {+ var timeSinceLastCall = time - lastCallTime,+ timeSinceLastInvoke = time - lastInvokeTime;++ // Either this is the first call, activity has stopped and we're at the+ // trailing edge, the system time has gone backwards and we're treating+ // it as the trailing edge, or we've hit the `maxWait` limit.+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));+ }++ function timerExpired() {+ var time = now();+ if (shouldInvoke(time)) {+ return trailingEdge(time);+ }+ // Restart the timer.+ timerId = setTimeout(timerExpired, remainingWait(time));+ }++ function trailingEdge(time) {+ timerId = undefined;++ // Only invoke if we have `lastArgs` which means `func` has been+ // debounced at least once.+ if (trailing && lastArgs) {+ return invokeFunc(time);+ }+ lastArgs = lastThis = undefined;+ return result;+ }++ function cancel() {+ if (timerId !== undefined) {+ clearTimeout(timerId);+ }+ lastInvokeTime = 0;+ lastArgs = lastCallTime = lastThis = timerId = undefined;+ }++ function flush() {+ return timerId === undefined ? result : trailingEdge(now());+ }++ function debounced() {+ var time = now(),+ isInvoking = shouldInvoke(time);++ lastArgs = arguments;+ lastThis = this;+ lastCallTime = time;++ if (isInvoking) {+ if (timerId === undefined) {+ return leadingEdge(lastCallTime);+ }+ if (maxing) {+ // Handle invocations in a tight loop.+ timerId = setTimeout(timerExpired, wait);+ return invokeFunc(lastCallTime);+ }+ }+ if (timerId === undefined) {+ timerId = setTimeout(timerExpired, wait);+ }+ return result;+ }+ debounced.cancel = cancel;+ debounced.flush = flush;+ return debounced;+}++/**+ * Creates a throttled function that only invokes `func` at most once per+ * every `wait` milliseconds. The throttled function comes with a `cancel`+ * method to cancel delayed `func` invocations and a `flush` method to+ * immediately invoke them. Provide `options` to indicate whether `func`+ * should be invoked on the leading and/or trailing edge of the `wait`+ * timeout. The `func` is invoked with the last arguments provided to the+ * throttled function. Subsequent calls to the throttled function return the+ * result of the last `func` invocation.+ *+ * **Note:** If `leading` and `trailing` options are `true`, `func` is+ * invoked on the trailing edge of the timeout only if the throttled function+ * is invoked more than once during the `wait` timeout.+ *+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.+ *+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)+ * for details over the differences between `_.throttle` and `_.debounce`.+ *+ * @static+ * @memberOf _+ * @since 0.1.0+ * @category Function+ * @param {Function} func The function to throttle.+ * @param {number} [wait=0] The number of milliseconds to throttle invocations to.+ * @param {Object} [options={}] The options object.+ * @param {boolean} [options.leading=true]+ * Specify invoking on the leading edge of the timeout.+ * @param {boolean} [options.trailing=true]+ * Specify invoking on the trailing edge of the timeout.+ * @returns {Function} Returns the new throttled function.+ * @example+ *+ * // Avoid excessively updating the position while scrolling.+ * jQuery(window).on('scroll', _.throttle(updatePosition, 100));+ *+ * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.+ * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });+ * jQuery(element).on('click', throttled);+ *+ * // Cancel the trailing throttled invocation.+ * jQuery(window).on('popstate', throttled.cancel);+ */+function throttle(func, wait, options) {+ var leading = true,+ trailing = true;++ if (typeof func != 'function') {+ throw new TypeError(FUNC_ERROR_TEXT);+ }+ if (isObject(options)) {+ leading = 'leading' in options ? !!options.leading : leading;+ trailing = 'trailing' in options ? !!options.trailing : trailing;+ }+ return debounce(func, wait, {+ 'leading': leading,+ 'maxWait': wait,+ 'trailing': trailing+ });+}++/**+ * Checks if `value` is the+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)+ *+ * @static+ * @memberOf _+ * @since 0.1.0+ * @category Lang+ * @param {*} value The value to check.+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.+ * @example+ *+ * _.isObject({});+ * // => true+ *+ * _.isObject([1, 2, 3]);+ * // => true+ *+ * _.isObject(_.noop);+ * // => true+ *+ * _.isObject(null);+ * // => false+ */+function isObject(value) {+ var type = typeof value;+ return !!value && (type == 'object' || type == 'function');+}++/**+ * Checks if `value` is object-like. A value is object-like if it's not `null`+ * and has a `typeof` result of "object".+ *+ * @static+ * @memberOf _+ * @since 4.0.0+ * @category Lang+ * @param {*} value The value to check.+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.+ * @example+ *+ * _.isObjectLike({});+ * // => true+ *+ * _.isObjectLike([1, 2, 3]);+ * // => true+ *+ * _.isObjectLike(_.noop);+ * // => false+ *+ * _.isObjectLike(null);+ * // => false+ */+function isObjectLike(value) {+ return !!value && typeof value == 'object';+}++/**+ * Checks if `value` is classified as a `Symbol` primitive or object.+ *+ * @static+ * @memberOf _+ * @since 4.0.0+ * @category Lang+ * @param {*} value The value to check.+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.+ * @example+ *+ * _.isSymbol(Symbol.iterator);+ * // => true+ *+ * _.isSymbol('abc');+ * // => false+ */+function isSymbol(value) {+ return typeof value == 'symbol' ||+ (isObjectLike(value) && objectToString.call(value) == symbolTag);+}++/**+ * Converts `value` to a number.+ *+ * @static+ * @memberOf _+ * @since 4.0.0+ * @category Lang+ * @param {*} value The value to process.+ * @returns {number} Returns the number.+ * @example+ *+ * _.toNumber(3.2);+ * // => 3.2+ *+ * _.toNumber(Number.MIN_VALUE);+ * // => 5e-324+ *+ * _.toNumber(Infinity);+ * // => Infinity+ *+ * _.toNumber('3.2');+ * // => 3.2+ */+function toNumber(value) {+ if (typeof value == 'number') {+ return value;+ }+ if (isSymbol(value)) {+ return NAN;+ }+ if (isObject(value)) {+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;+ value = isObject(other) ? (other + '') : other;+ }+ if (typeof value != 'string') {+ return value === 0 ? value : +value;+ }+ value = value.replace(reTrim, '');+ var isBinary = reIsBinary.test(value);+ return (isBinary || reIsOctal.test(value))+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)+ : (reIsBadHex.test(value) ? NAN : +value);+}++module.exports = throttle;++}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})+},{}],48:[function(require,module,exports){+var wildcard = require('wildcard');+var reMimePartSplit = /[\/\+\.]/;++/**+ # mime-match++ A simple function to checker whether a target mime type matches a mime-type+ pattern (e.g. image/jpeg matches image/jpeg OR image/*).++ ## Example Usage++ <<< example.js++**/+module.exports = function(target, pattern) {+ function test(pattern) {+ var result = wildcard(pattern, target, reMimePartSplit);++ // ensure that we have a valid mime type (should have two parts)+ return result && result.length >= 2;+ }++ return pattern ? test(pattern.split(';')[0]) : test;+};++},{"wildcard":55}],49:[function(require,module,exports){+/**+* Create an event emitter with namespaces+* @name createNamespaceEmitter+* @example+* var emitter = require('./index')()+*+* emitter.on('*', function () {+* console.log('all events emitted', this.event)+* })+*+* emitter.on('example', function () {+* console.log('example event emitted')+* })+*/+module.exports = function createNamespaceEmitter () {+ var emitter = {}+ var _fns = emitter._fns = {}++ /**+ * Emit an event. Optionally namespace the event. Handlers are fired in the order in which they were added with exact matches taking precedence. Separate the namespace and event with a `:`+ * @name emit+ * @param {String} event – the name of the event, with optional namespace+ * @param {...*} data – up to 6 arguments that are passed to the event listener+ * @example+ * emitter.emit('example')+ * emitter.emit('demo:test')+ * emitter.emit('data', { example: true}, 'a string', 1)+ */+ emitter.emit = function emit (event, arg1, arg2, arg3, arg4, arg5, arg6) {+ var toEmit = getListeners(event)++ if (toEmit.length) {+ emitAll(event, toEmit, [arg1, arg2, arg3, arg4, arg5, arg6])+ }+ }++ /**+ * Create en event listener.+ * @name on+ * @param {String} event+ * @param {Function} fn+ * @example+ * emitter.on('example', function () {})+ * emitter.on('demo', function () {})+ */+ emitter.on = function on (event, fn) {+ if (!_fns[event]) {+ _fns[event] = []+ }++ _fns[event].push(fn)+ }++ /**+ * Create en event listener that fires once.+ * @name once+ * @param {String} event+ * @param {Function} fn+ * @example+ * emitter.once('example', function () {})+ * emitter.once('demo', function () {})+ */+ emitter.once = function once (event, fn) {+ function one () {+ fn.apply(this, arguments)+ emitter.off(event, one)+ }+ this.on(event, one)+ }++ /**+ * Stop listening to an event. Stop all listeners on an event by only passing the event name. Stop a single listener by passing that event handler as a callback.+ * You must be explicit about what will be unsubscribed: `emitter.off('demo')` will unsubscribe an `emitter.on('demo')` listener,+ * `emitter.off('demo:example')` will unsubscribe an `emitter.on('demo:example')` listener+ * @name off+ * @param {String} event+ * @param {Function} [fn] – the specific handler+ * @example+ * emitter.off('example')+ * emitter.off('demo', function () {})+ */+ emitter.off = function off (event, fn) {+ var keep = []++ if (event && fn) {+ var fns = this._fns[event]+ var i = 0+ var l = fns ? fns.length : 0++ for (i; i < l; i++) {+ if (fns[i] !== fn) {+ keep.push(fns[i])+ }+ }+ }++ keep.length ? this._fns[event] = keep : delete this._fns[event]+ }++ function getListeners (e) {+ var out = _fns[e] ? _fns[e] : []+ var idx = e.indexOf(':')+ var args = (idx === -1) ? [e] : [e.substring(0, idx), e.substring(idx + 1)]++ var keys = Object.keys(_fns)+ var i = 0+ var l = keys.length++ for (i; i < l; i++) {+ var key = keys[i]+ if (key === '*') {+ out = out.concat(_fns[key])+ }++ if (args.length === 2 && args[0] === key) {+ out = out.concat(_fns[key])+ break+ }+ }++ return out+ }++ function emitAll (e, fns, args) {+ var i = 0+ var l = fns.length++ for (i; i < l; i++) {+ if (!fns[i]) break+ fns[i].event = e+ fns[i].apply(fns[i], args)+ }+ }++ return emitter+}++},{}],50:[function(require,module,exports){+!function() {+ 'use strict';+ function VNode() {}+ function h(nodeName, attributes) {+ var lastSimple, child, simple, i, children = EMPTY_CHILDREN;+ for (i = arguments.length; i-- > 2; ) stack.push(arguments[i]);+ if (attributes && null != attributes.children) {+ if (!stack.length) stack.push(attributes.children);+ delete attributes.children;+ }+ while (stack.length) if ((child = stack.pop()) && void 0 !== child.pop) for (i = child.length; i--; ) stack.push(child[i]); else {+ if ('boolean' == typeof child) child = null;+ if (simple = 'function' != typeof nodeName) if (null == child) child = ''; else if ('number' == typeof child) child = String(child); else if ('string' != typeof child) simple = !1;+ if (simple && lastSimple) children[children.length - 1] += child; else if (children === EMPTY_CHILDREN) children = [ child ]; else children.push(child);+ lastSimple = simple;+ }+ var p = new VNode();+ p.nodeName = nodeName;+ p.children = children;+ p.attributes = null == attributes ? void 0 : attributes;+ p.key = null == attributes ? void 0 : attributes.key;+ if (void 0 !== options.vnode) options.vnode(p);+ return p;+ }+ function extend(obj, props) {+ for (var i in props) obj[i] = props[i];+ return obj;+ }+ function cloneElement(vnode, props) {+ return h(vnode.nodeName, extend(extend({}, vnode.attributes), props), arguments.length > 2 ? [].slice.call(arguments, 2) : vnode.children);+ }+ function enqueueRender(component) {+ if (!component.__d && (component.__d = !0) && 1 == items.push(component)) (options.debounceRendering || defer)(rerender);+ }+ function rerender() {+ var p, list = items;+ items = [];+ while (p = list.pop()) if (p.__d) renderComponent(p);+ }+ function isSameNodeType(node, vnode, hydrating) {+ if ('string' == typeof vnode || 'number' == typeof vnode) return void 0 !== node.splitText;+ if ('string' == typeof vnode.nodeName) return !node._componentConstructor && isNamedNode(node, vnode.nodeName); else return hydrating || node._componentConstructor === vnode.nodeName;+ }+ function isNamedNode(node, nodeName) {+ return node.__n === nodeName || node.nodeName.toLowerCase() === nodeName.toLowerCase();+ }+ function getNodeProps(vnode) {+ var props = extend({}, vnode.attributes);+ props.children = vnode.children;+ var defaultProps = vnode.nodeName.defaultProps;+ if (void 0 !== defaultProps) for (var i in defaultProps) if (void 0 === props[i]) props[i] = defaultProps[i];+ return props;+ }+ function createNode(nodeName, isSvg) {+ var node = isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName);+ node.__n = nodeName;+ return node;+ }+ function removeNode(node) {+ var parentNode = node.parentNode;+ if (parentNode) parentNode.removeChild(node);+ }+ function setAccessor(node, name, old, value, isSvg) {+ if ('className' === name) name = 'class';+ if ('key' === name) ; else if ('ref' === name) {+ if (old) old(null);+ if (value) value(node);+ } else if ('class' === name && !isSvg) node.className = value || ''; else if ('style' === name) {+ if (!value || 'string' == typeof value || 'string' == typeof old) node.style.cssText = value || '';+ if (value && 'object' == typeof value) {+ if ('string' != typeof old) for (var i in old) if (!(i in value)) node.style[i] = '';+ for (var i in value) node.style[i] = 'number' == typeof value[i] && !1 === IS_NON_DIMENSIONAL.test(i) ? value[i] + 'px' : value[i];+ }+ } else if ('dangerouslySetInnerHTML' === name) {+ if (value) node.innerHTML = value.__html || '';+ } else if ('o' == name[0] && 'n' == name[1]) {+ var useCapture = name !== (name = name.replace(/Capture$/, ''));+ name = name.toLowerCase().substring(2);+ if (value) {+ if (!old) node.addEventListener(name, eventProxy, useCapture);+ } else node.removeEventListener(name, eventProxy, useCapture);+ (node.__l || (node.__l = {}))[name] = value;+ } else if ('list' !== name && 'type' !== name && !isSvg && name in node) {+ setProperty(node, name, null == value ? '' : value);+ if (null == value || !1 === value) node.removeAttribute(name);+ } else {+ var ns = isSvg && name !== (name = name.replace(/^xlink:?/, ''));+ if (null == value || !1 === value) if (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase()); else node.removeAttribute(name); else if ('function' != typeof value) if (ns) node.setAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase(), value); else node.setAttribute(name, value);+ }+ }+ function setProperty(node, name, value) {+ try {+ node[name] = value;+ } catch (e) {}+ }+ function eventProxy(e) {+ return this.__l[e.type](options.event && options.event(e) || e);+ }+ function flushMounts() {+ var c;+ while (c = mounts.pop()) {+ if (options.afterMount) options.afterMount(c);+ if (c.componentDidMount) c.componentDidMount();+ }+ }+ function diff(dom, vnode, context, mountAll, parent, componentRoot) {+ if (!diffLevel++) {+ isSvgMode = null != parent && void 0 !== parent.ownerSVGElement;+ hydrating = null != dom && !('__preactattr_' in dom);+ }+ var ret = idiff(dom, vnode, context, mountAll, componentRoot);+ if (parent && ret.parentNode !== parent) parent.appendChild(ret);+ if (!--diffLevel) {+ hydrating = !1;+ if (!componentRoot) flushMounts();+ }+ return ret;+ }+ function idiff(dom, vnode, context, mountAll, componentRoot) {+ var out = dom, prevSvgMode = isSvgMode;+ if (null == vnode || 'boolean' == typeof vnode) vnode = '';+ if ('string' == typeof vnode || 'number' == typeof vnode) {+ if (dom && void 0 !== dom.splitText && dom.parentNode && (!dom._component || componentRoot)) {+ if (dom.nodeValue != vnode) dom.nodeValue = vnode;+ } else {+ out = document.createTextNode(vnode);+ if (dom) {+ if (dom.parentNode) dom.parentNode.replaceChild(out, dom);+ recollectNodeTree(dom, !0);+ }+ }+ out.__preactattr_ = !0;+ return out;+ }+ var vnodeName = vnode.nodeName;+ if ('function' == typeof vnodeName) return buildComponentFromVNode(dom, vnode, context, mountAll);+ isSvgMode = 'svg' === vnodeName ? !0 : 'foreignObject' === vnodeName ? !1 : isSvgMode;+ vnodeName = String(vnodeName);+ if (!dom || !isNamedNode(dom, vnodeName)) {+ out = createNode(vnodeName, isSvgMode);+ if (dom) {+ while (dom.firstChild) out.appendChild(dom.firstChild);+ if (dom.parentNode) dom.parentNode.replaceChild(out, dom);+ recollectNodeTree(dom, !0);+ }+ }+ var fc = out.firstChild, props = out.__preactattr_, vchildren = vnode.children;+ if (null == props) {+ props = out.__preactattr_ = {};+ for (var a = out.attributes, i = a.length; i--; ) props[a[i].name] = a[i].value;+ }+ if (!hydrating && vchildren && 1 === vchildren.length && 'string' == typeof vchildren[0] && null != fc && void 0 !== fc.splitText && null == fc.nextSibling) {+ if (fc.nodeValue != vchildren[0]) fc.nodeValue = vchildren[0];+ } else if (vchildren && vchildren.length || null != fc) innerDiffNode(out, vchildren, context, mountAll, hydrating || null != props.dangerouslySetInnerHTML);+ diffAttributes(out, vnode.attributes, props);+ isSvgMode = prevSvgMode;+ return out;+ }+ function innerDiffNode(dom, vchildren, context, mountAll, isHydrating) {+ var j, c, f, vchild, child, originalChildren = dom.childNodes, children = [], keyed = {}, keyedLen = 0, min = 0, len = originalChildren.length, childrenLen = 0, vlen = vchildren ? vchildren.length : 0;+ if (0 !== len) for (var i = 0; i < len; i++) {+ var _child = originalChildren[i], props = _child.__preactattr_, key = vlen && props ? _child._component ? _child._component.__k : props.key : null;+ if (null != key) {+ keyedLen++;+ keyed[key] = _child;+ } else if (props || (void 0 !== _child.splitText ? isHydrating ? _child.nodeValue.trim() : !0 : isHydrating)) children[childrenLen++] = _child;+ }+ if (0 !== vlen) for (var i = 0; i < vlen; i++) {+ vchild = vchildren[i];+ child = null;+ var key = vchild.key;+ if (null != key) {+ if (keyedLen && void 0 !== keyed[key]) {+ child = keyed[key];+ keyed[key] = void 0;+ keyedLen--;+ }+ } else if (!child && min < childrenLen) for (j = min; j < childrenLen; j++) if (void 0 !== children[j] && isSameNodeType(c = children[j], vchild, isHydrating)) {+ child = c;+ children[j] = void 0;+ if (j === childrenLen - 1) childrenLen--;+ if (j === min) min++;+ break;+ }+ child = idiff(child, vchild, context, mountAll);+ f = originalChildren[i];+ if (child && child !== dom && child !== f) if (null == f) dom.appendChild(child); else if (child === f.nextSibling) removeNode(f); else dom.insertBefore(child, f);+ }+ if (keyedLen) for (var i in keyed) if (void 0 !== keyed[i]) recollectNodeTree(keyed[i], !1);+ while (min <= childrenLen) if (void 0 !== (child = children[childrenLen--])) recollectNodeTree(child, !1);+ }+ function recollectNodeTree(node, unmountOnly) {+ var component = node._component;+ if (component) unmountComponent(component); else {+ if (null != node.__preactattr_ && node.__preactattr_.ref) node.__preactattr_.ref(null);+ if (!1 === unmountOnly || null == node.__preactattr_) removeNode(node);+ removeChildren(node);+ }+ }+ function removeChildren(node) {+ node = node.lastChild;+ while (node) {+ var next = node.previousSibling;+ recollectNodeTree(node, !0);+ node = next;+ }+ }+ function diffAttributes(dom, attrs, old) {+ var name;+ for (name in old) if ((!attrs || null == attrs[name]) && null != old[name]) setAccessor(dom, name, old[name], old[name] = void 0, isSvgMode);+ for (name in attrs) if (!('children' === name || 'innerHTML' === name || name in old && attrs[name] === ('value' === name || 'checked' === name ? dom[name] : old[name]))) setAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode);+ }+ function collectComponent(component) {+ var name = component.constructor.name;+ (components[name] || (components[name] = [])).push(component);+ }+ function createComponent(Ctor, props, context) {+ var inst, list = components[Ctor.name];+ if (Ctor.prototype && Ctor.prototype.render) {+ inst = new Ctor(props, context);+ Component.call(inst, props, context);+ } else {+ inst = new Component(props, context);+ inst.constructor = Ctor;+ inst.render = doRender;+ }+ if (list) for (var i = list.length; i--; ) if (list[i].constructor === Ctor) {+ inst.__b = list[i].__b;+ list.splice(i, 1);+ break;+ }+ return inst;+ }+ function doRender(props, state, context) {+ return this.constructor(props, context);+ }+ function setComponentProps(component, props, opts, context, mountAll) {+ if (!component.__x) {+ component.__x = !0;+ if (component.__r = props.ref) delete props.ref;+ if (component.__k = props.key) delete props.key;+ if (!component.base || mountAll) {+ if (component.componentWillMount) component.componentWillMount();+ } else if (component.componentWillReceiveProps) component.componentWillReceiveProps(props, context);+ if (context && context !== component.context) {+ if (!component.__c) component.__c = component.context;+ component.context = context;+ }+ if (!component.__p) component.__p = component.props;+ component.props = props;+ component.__x = !1;+ if (0 !== opts) if (1 === opts || !1 !== options.syncComponentUpdates || !component.base) renderComponent(component, 1, mountAll); else enqueueRender(component);+ if (component.__r) component.__r(component);+ }+ }+ function renderComponent(component, opts, mountAll, isChild) {+ if (!component.__x) {+ var rendered, inst, cbase, props = component.props, state = component.state, context = component.context, previousProps = component.__p || props, previousState = component.__s || state, previousContext = component.__c || context, isUpdate = component.base, nextBase = component.__b, initialBase = isUpdate || nextBase, initialChildComponent = component._component, skip = !1;+ if (isUpdate) {+ component.props = previousProps;+ component.state = previousState;+ component.context = previousContext;+ if (2 !== opts && component.shouldComponentUpdate && !1 === component.shouldComponentUpdate(props, state, context)) skip = !0; else if (component.componentWillUpdate) component.componentWillUpdate(props, state, context);+ component.props = props;+ component.state = state;+ component.context = context;+ }+ component.__p = component.__s = component.__c = component.__b = null;+ component.__d = !1;+ if (!skip) {+ rendered = component.render(props, state, context);+ if (component.getChildContext) context = extend(extend({}, context), component.getChildContext());+ var toUnmount, base, childComponent = rendered && rendered.nodeName;+ if ('function' == typeof childComponent) {+ var childProps = getNodeProps(rendered);+ inst = initialChildComponent;+ if (inst && inst.constructor === childComponent && childProps.key == inst.__k) setComponentProps(inst, childProps, 1, context, !1); else {+ toUnmount = inst;+ component._component = inst = createComponent(childComponent, childProps, context);+ inst.__b = inst.__b || nextBase;+ inst.__u = component;+ setComponentProps(inst, childProps, 0, context, !1);+ renderComponent(inst, 1, mountAll, !0);+ }+ base = inst.base;+ } else {+ cbase = initialBase;+ toUnmount = initialChildComponent;+ if (toUnmount) cbase = component._component = null;+ if (initialBase || 1 === opts) {+ if (cbase) cbase._component = null;+ base = diff(cbase, rendered, context, mountAll || !isUpdate, initialBase && initialBase.parentNode, !0);+ }+ }+ if (initialBase && base !== initialBase && inst !== initialChildComponent) {+ var baseParent = initialBase.parentNode;+ if (baseParent && base !== baseParent) {+ baseParent.replaceChild(base, initialBase);+ if (!toUnmount) {+ initialBase._component = null;+ recollectNodeTree(initialBase, !1);+ }+ }+ }+ if (toUnmount) unmountComponent(toUnmount);+ component.base = base;+ if (base && !isChild) {+ var componentRef = component, t = component;+ while (t = t.__u) (componentRef = t).base = base;+ base._component = componentRef;+ base._componentConstructor = componentRef.constructor;+ }+ }+ if (!isUpdate || mountAll) mounts.unshift(component); else if (!skip) {+ if (component.componentDidUpdate) component.componentDidUpdate(previousProps, previousState, previousContext);+ if (options.afterUpdate) options.afterUpdate(component);+ }+ if (null != component.__h) while (component.__h.length) component.__h.pop().call(component);+ if (!diffLevel && !isChild) flushMounts();+ }+ }+ function buildComponentFromVNode(dom, vnode, context, mountAll) {+ var c = dom && dom._component, originalComponent = c, oldDom = dom, isDirectOwner = c && dom._componentConstructor === vnode.nodeName, isOwner = isDirectOwner, props = getNodeProps(vnode);+ while (c && !isOwner && (c = c.__u)) isOwner = c.constructor === vnode.nodeName;+ if (c && isOwner && (!mountAll || c._component)) {+ setComponentProps(c, props, 3, context, mountAll);+ dom = c.base;+ } else {+ if (originalComponent && !isDirectOwner) {+ unmountComponent(originalComponent);+ dom = oldDom = null;+ }+ c = createComponent(vnode.nodeName, props, context);+ if (dom && !c.__b) {+ c.__b = dom;+ oldDom = null;+ }+ setComponentProps(c, props, 1, context, mountAll);+ dom = c.base;+ if (oldDom && dom !== oldDom) {+ oldDom._component = null;+ recollectNodeTree(oldDom, !1);+ }+ }+ return dom;+ }+ function unmountComponent(component) {+ if (options.beforeUnmount) options.beforeUnmount(component);+ var base = component.base;+ component.__x = !0;+ if (component.componentWillUnmount) component.componentWillUnmount();+ component.base = null;+ var inner = component._component;+ if (inner) unmountComponent(inner); else if (base) {+ if (base.__preactattr_ && base.__preactattr_.ref) base.__preactattr_.ref(null);+ component.__b = base;+ removeNode(base);+ collectComponent(component);+ removeChildren(base);+ }+ if (component.__r) component.__r(null);+ }+ function Component(props, context) {+ this.__d = !0;+ this.context = context;+ this.props = props;+ this.state = this.state || {};+ }+ function render(vnode, parent, merge) {+ return diff(merge, vnode, {}, !1, parent, !1);+ }+ var options = {};+ var stack = [];+ var EMPTY_CHILDREN = [];+ var defer = 'function' == typeof Promise ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout;+ var IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;+ var items = [];+ var mounts = [];+ var diffLevel = 0;+ var isSvgMode = !1;+ var hydrating = !1;+ var components = {};+ extend(Component.prototype, {+ setState: function(state, callback) {+ var s = this.state;+ if (!this.__s) this.__s = extend({}, s);+ extend(s, 'function' == typeof state ? state(s, this.props) : state);+ if (callback) (this.__h = this.__h || []).push(callback);+ enqueueRender(this);+ },+ forceUpdate: function(callback) {+ if (callback) (this.__h = this.__h || []).push(callback);+ renderComponent(this, 2);+ },+ render: function() {}+ });+ var preact = {+ h: h,+ createElement: h,+ cloneElement: cloneElement,+ Component: Component,+ render: render,+ rerender: rerender,+ options: options+ };+ if ('undefined' != typeof module) module.exports = preact; else self.preact = preact;+}();++},{}],51:[function(require,module,exports){+var has = Object.prototype.hasOwnProperty++/**+ * Stringify an object for use in a query string.+ *+ * @param {Object} obj - The object.+ * @param {string} prefix - When nesting, the parent key.+ * keys in `obj` will be stringified as `prefix[key]`.+ * @returns {string}+ */++module.exports = function queryStringify (obj, prefix) {+ var pairs = []+ for (var key in obj) {+ if (!has.call(obj, key)) {+ continue+ }++ var value = obj[key]+ var enkey = encodeURIComponent(key)+ var pair+ if (typeof value === 'object') {+ pair = queryStringify(value, prefix ? prefix + '[' + enkey + ']' : enkey)+ } else {+ pair = (prefix ? prefix + '[' + enkey + ']' : enkey) + '=' + encodeURIComponent(value)+ }+ pairs.push(pair)+ }+ return pairs.join('&')+}++},{}],52:[function(require,module,exports){+'use strict';++var has = Object.prototype.hasOwnProperty+ , undef;++/**+ * Decode a URI encoded string.+ *+ * @param {String} input The URI encoded string.+ * @returns {String|Null} The decoded string.+ * @api private+ */+function decode(input) {+ try {+ return decodeURIComponent(input.replace(/\+/g, ' '));+ } catch (e) {+ return null;+ }+}++/**+ * Attempts to encode a given input.+ *+ * @param {String} input The string that needs to be encoded.+ * @returns {String|Null} The encoded string.+ * @api private+ */+function encode(input) {+ try {+ return encodeURIComponent(input);+ } catch (e) {+ return null;+ }+}++/**+ * Simple query string parser.+ *+ * @param {String} query The query string that needs to be parsed.+ * @returns {Object}+ * @api public+ */+function querystring(query) {+ var parser = /([^=?#&]+)=?([^&]*)/g+ , result = {}+ , part;++ while (part = parser.exec(query)) {+ var key = decode(part[1])+ , value = decode(part[2]);++ //+ // Prevent overriding of existing properties. This ensures that build-in+ // methods like `toString` or __proto__ are not overriden by malicious+ // querystrings.+ //+ // In the case if failed decoding, we want to omit the key/value pairs+ // from the result.+ //+ if (key === null || value === null || key in result) continue;+ result[key] = value;+ }++ return result;+}++/**+ * Transform a query string to an object.+ *+ * @param {Object} obj Object that should be transformed.+ * @param {String} prefix Optional prefix.+ * @returns {String}+ * @api public+ */+function querystringify(obj, prefix) {+ prefix = prefix || '';++ var pairs = []+ , value+ , key;++ //+ // Optionally prefix with a '?' if needed+ //+ if ('string' !== typeof prefix) prefix = '?';++ for (key in obj) {+ if (has.call(obj, key)) {+ value = obj[key];++ //+ // Edge cases where we actually want to encode the value to an empty+ // string instead of the stringified value.+ //+ if (!value && (value === null || value === undef || isNaN(value))) {+ value = '';+ }++ key = encode(key);+ value = encode(value);++ //+ // If we failed to encode the strings, we should bail out as we don't+ // want to add invalid strings to the query.+ //+ if (key === null || value === null) continue;+ pairs.push(key +'='+ value);+ }+ }++ return pairs.length ? prefix + pairs.join('&') : '';+}++//+// Expose the module.+//+exports.stringify = querystringify;+exports.parse = querystring;++},{}],53:[function(require,module,exports){+'use strict';++/**+ * Check if we're required to add a port number.+ *+ * @see https://url.spec.whatwg.org/#default-port+ * @param {Number|String} port Port number we need to check+ * @param {String} protocol Protocol we need to check against.+ * @returns {Boolean} Is it a default port for the given protocol+ * @api private+ */+module.exports = function required(port, protocol) {+ protocol = protocol.split(':')[0];+ port = +port;++ if (!port) return false;++ switch (protocol) {+ case 'http':+ case 'ws':+ return port !== 80;++ case 'https':+ case 'wss':+ return port !== 443;++ case 'ftp':+ return port !== 21;++ case 'gopher':+ return port !== 70;++ case 'file':+ return false;+ }++ return port !== 0;+};++},{}],54:[function(require,module,exports){+(function (global){(function (){+'use strict';++var required = require('requires-port')+ , qs = require('querystringify')+ , slashes = /^[A-Za-z][A-Za-z0-9+-.]*:[\\/]+/+ , protocolre = /^([a-z][a-z0-9.+-]*:)?([\\/]{1,})?([\S\s]*)/i+ , whitespace = '[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]'+ , left = new RegExp('^'+ whitespace +'+');++/**+ * Trim a given string.+ *+ * @param {String} str String to trim.+ * @public+ */+function trimLeft(str) {+ return (str ? str : '').toString().replace(left, '');+}++/**+ * These are the parse rules for the URL parser, it informs the parser+ * about:+ *+ * 0. The char it Needs to parse, if it's a string it should be done using+ * indexOf, RegExp using exec and NaN means set as current value.+ * 1. The property we should set when parsing this value.+ * 2. Indication if it's backwards or forward parsing, when set as number it's+ * the value of extra chars that should be split off.+ * 3. Inherit from location if non existing in the parser.+ * 4. `toLowerCase` the resulting value.+ */+var rules = [+ ['#', 'hash'], // Extract from the back.+ ['?', 'query'], // Extract from the back.+ function sanitize(address) { // Sanitize what is left of the address+ return address.replace('\\', '/');+ },+ ['/', 'pathname'], // Extract from the back.+ ['@', 'auth', 1], // Extract from the front.+ [NaN, 'host', undefined, 1, 1], // Set left over value.+ [/:(\d+)$/, 'port', undefined, 1], // RegExp the back.+ [NaN, 'hostname', undefined, 1, 1] // Set left over.+];++/**+ * These properties should not be copied or inherited from. This is only needed+ * for all non blob URL's as a blob URL does not include a hash, only the+ * origin.+ *+ * @type {Object}+ * @private+ */+var ignore = { hash: 1, query: 1 };++/**+ * The location object differs when your code is loaded through a normal page,+ * Worker or through a worker using a blob. And with the blobble begins the+ * trouble as the location object will contain the URL of the blob, not the+ * location of the page where our code is loaded in. The actual origin is+ * encoded in the `pathname` so we can thankfully generate a good "default"+ * location from it so we can generate proper relative URL's again.+ *+ * @param {Object|String} loc Optional default location object.+ * @returns {Object} lolcation object.+ * @public+ */+function lolcation(loc) {+ var globalVar;++ if (typeof window !== 'undefined') globalVar = window;+ else if (typeof global !== 'undefined') globalVar = global;+ else if (typeof self !== 'undefined') globalVar = self;+ else globalVar = {};++ var location = globalVar.location || {};+ loc = loc || location;++ var finaldestination = {}+ , type = typeof loc+ , key;++ if ('blob:' === loc.protocol) {+ finaldestination = new Url(unescape(loc.pathname), {});+ } else if ('string' === type) {+ finaldestination = new Url(loc, {});+ for (key in ignore) delete finaldestination[key];+ } else if ('object' === type) {+ for (key in loc) {+ if (key in ignore) continue;+ finaldestination[key] = loc[key];+ }++ if (finaldestination.slashes === undefined) {+ finaldestination.slashes = slashes.test(loc.href);+ }+ }++ return finaldestination;+}++/**+ * @typedef ProtocolExtract+ * @type Object+ * @property {String} protocol Protocol matched in the URL, in lowercase.+ * @property {Boolean} slashes `true` if protocol is followed by "//", else `false`.+ * @property {String} rest Rest of the URL that is not part of the protocol.+ */++/**+ * Extract protocol information from a URL with/without double slash ("//").+ *+ * @param {String} address URL we want to extract from.+ * @return {ProtocolExtract} Extracted information.+ * @private+ */+function extractProtocol(address) {+ address = trimLeft(address);++ var match = protocolre.exec(address)+ , protocol = match[1] ? match[1].toLowerCase() : ''+ , slashes = !!(match[2] && match[2].length >= 2)+ , rest = match[2] && match[2].length === 1 ? '/' + match[3] : match[3];++ return {+ protocol: protocol,+ slashes: slashes,+ rest: rest+ };+}++/**+ * Resolve a relative URL pathname against a base URL pathname.+ *+ * @param {String} relative Pathname of the relative URL.+ * @param {String} base Pathname of the base URL.+ * @return {String} Resolved pathname.+ * @private+ */+function resolve(relative, base) {+ if (relative === '') return base;++ var path = (base || '/').split('/').slice(0, -1).concat(relative.split('/'))+ , i = path.length+ , last = path[i - 1]+ , unshift = false+ , up = 0;++ while (i--) {+ if (path[i] === '.') {+ path.splice(i, 1);+ } else if (path[i] === '..') {+ path.splice(i, 1);+ up++;+ } else if (up) {+ if (i === 0) unshift = true;+ path.splice(i, 1);+ up--;+ }+ }++ if (unshift) path.unshift('');+ if (last === '.' || last === '..') path.push('');++ return path.join('/');+}++/**+ * The actual URL instance. Instead of returning an object we've opted-in to+ * create an actual constructor as it's much more memory efficient and+ * faster and it pleases my OCD.+ *+ * It is worth noting that we should not use `URL` as class name to prevent+ * clashes with the global URL instance that got introduced in browsers.+ *+ * @constructor+ * @param {String} address URL we want to parse.+ * @param {Object|String} [location] Location defaults for relative paths.+ * @param {Boolean|Function} [parser] Parser for the query string.+ * @private+ */+function Url(address, location, parser) {+ address = trimLeft(address);++ if (!(this instanceof Url)) {+ return new Url(address, location, parser);+ }++ var relative, extracted, parse, instruction, index, key+ , instructions = rules.slice()+ , type = typeof location+ , url = this+ , i = 0;++ //+ // The following if statements allows this module two have compatibility with+ // 2 different API:+ //+ // 1. Node.js's `url.parse` api which accepts a URL, boolean as arguments+ // where the boolean indicates that the query string should also be parsed.+ //+ // 2. The `URL` interface of the browser which accepts a URL, object as+ // arguments. The supplied object will be used as default values / fall-back+ // for relative paths.+ //+ if ('object' !== type && 'string' !== type) {+ parser = location;+ location = null;+ }++ if (parser && 'function' !== typeof parser) parser = qs.parse;++ location = lolcation(location);++ //+ // Extract protocol information before running the instructions.+ //+ extracted = extractProtocol(address || '');+ relative = !extracted.protocol && !extracted.slashes;+ url.slashes = extracted.slashes || relative && location.slashes;+ url.protocol = extracted.protocol || location.protocol || '';+ address = extracted.rest;++ //+ // When the authority component is absent the URL starts with a path+ // component.+ //+ if (!extracted.slashes) instructions[3] = [/(.*)/, 'pathname'];++ for (; i < instructions.length; i++) {+ instruction = instructions[i];++ if (typeof instruction === 'function') {+ address = instruction(address);+ continue;+ }++ parse = instruction[0];+ key = instruction[1];++ if (parse !== parse) {+ url[key] = address;+ } else if ('string' === typeof parse) {+ if (~(index = address.indexOf(parse))) {+ if ('number' === typeof instruction[2]) {+ url[key] = address.slice(0, index);+ address = address.slice(index + instruction[2]);+ } else {+ url[key] = address.slice(index);+ address = address.slice(0, index);+ }+ }+ } else if ((index = parse.exec(address))) {+ url[key] = index[1];+ address = address.slice(0, index.index);+ }++ url[key] = url[key] || (+ relative && instruction[3] ? location[key] || '' : ''+ );++ //+ // Hostname, host and protocol should be lowercased so they can be used to+ // create a proper `origin`.+ //+ if (instruction[4]) url[key] = url[key].toLowerCase();+ }++ //+ // Also parse the supplied query string in to an object. If we're supplied+ // with a custom parser as function use that instead of the default build-in+ // parser.+ //+ if (parser) url.query = parser(url.query);++ //+ // If the URL is relative, resolve the pathname against the base URL.+ //+ if (+ relative+ && location.slashes+ && url.pathname.charAt(0) !== '/'+ && (url.pathname !== '' || location.pathname !== '')+ ) {+ url.pathname = resolve(url.pathname, location.pathname);+ }++ //+ // Default to a / for pathname if none exists. This normalizes the URL+ // to always have a /+ //+ if (url.pathname.charAt(0) !== '/' && url.hostname) {+ url.pathname = '/' + url.pathname;+ }++ //+ // We should not add port numbers if they are already the default port number+ // for a given protocol. As the host also contains the port number we're going+ // override it with the hostname which contains no port number.+ //+ if (!required(url.port, url.protocol)) {+ url.host = url.hostname;+ url.port = '';+ }++ //+ // Parse down the `auth` for the username and password.+ //+ url.username = url.password = '';+ if (url.auth) {+ instruction = url.auth.split(':');+ url.username = instruction[0] || '';+ url.password = instruction[1] || '';+ }++ url.origin = url.protocol && url.host && url.protocol !== 'file:'+ ? url.protocol +'//'+ url.host+ : 'null';++ //+ // The href is just the compiled result.+ //+ url.href = url.toString();+}++/**+ * This is convenience method for changing properties in the URL instance to+ * insure that they all propagate correctly.+ *+ * @param {String} part Property we need to adjust.+ * @param {Mixed} value The newly assigned value.+ * @param {Boolean|Function} fn When setting the query, it will be the function+ * used to parse the query.+ * When setting the protocol, double slash will be+ * removed from the final url if it is true.+ * @returns {URL} URL instance for chaining.+ * @public+ */+function set(part, value, fn) {+ var url = this;++ switch (part) {+ case 'query':+ if ('string' === typeof value && value.length) {+ value = (fn || qs.parse)(value);+ }++ url[part] = value;+ break;++ case 'port':+ url[part] = value;++ if (!required(value, url.protocol)) {+ url.host = url.hostname;+ url[part] = '';+ } else if (value) {+ url.host = url.hostname +':'+ value;+ }++ break;++ case 'hostname':+ url[part] = value;++ if (url.port) value += ':'+ url.port;+ url.host = value;+ break;++ case 'host':+ url[part] = value;++ if (/:\d+$/.test(value)) {+ value = value.split(':');+ url.port = value.pop();+ url.hostname = value.join(':');+ } else {+ url.hostname = value;+ url.port = '';+ }++ break;++ case 'protocol':+ url.protocol = value.toLowerCase();+ url.slashes = !fn;+ break;++ case 'pathname':+ case 'hash':+ if (value) {+ var char = part === 'pathname' ? '/' : '#';+ url[part] = value.charAt(0) !== char ? char + value : value;+ } else {+ url[part] = value;+ }+ break;++ default:+ url[part] = value;+ }++ for (var i = 0; i < rules.length; i++) {+ var ins = rules[i];++ if (ins[4]) url[ins[1]] = url[ins[1]].toLowerCase();+ }++ url.origin = url.protocol && url.host && url.protocol !== 'file:'+ ? url.protocol +'//'+ url.host+ : 'null';++ url.href = url.toString();++ return url;+}++/**+ * Transform the properties back in to a valid and full URL string.+ *+ * @param {Function} stringify Optional query stringify function.+ * @returns {String} Compiled version of the URL.+ * @public+ */+function toString(stringify) {+ if (!stringify || 'function' !== typeof stringify) stringify = qs.stringify;++ var query+ , url = this+ , protocol = url.protocol;++ if (protocol && protocol.charAt(protocol.length - 1) !== ':') protocol += ':';++ var result = protocol + (url.slashes ? '//' : '');++ if (url.username) {+ result += url.username;+ if (url.password) result += ':'+ url.password;+ result += '@';+ }++ result += url.host + url.pathname;++ query = 'object' === typeof url.query ? stringify(url.query) : url.query;+ if (query) result += '?' !== query.charAt(0) ? '?'+ query : query;++ if (url.hash) result += url.hash;++ return result;+}++Url.prototype = { set: set, toString: toString };++//+// Expose the URL parser and some additional properties that might be useful for+// others or testing.+//+Url.extractProtocol = extractProtocol;+Url.location = lolcation;+Url.trimLeft = trimLeft;+Url.qs = qs;++module.exports = Url;++}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})+},{"querystringify":52,"requires-port":53}],55:[function(require,module,exports){+/* jshint node: true */+'use strict';++/**+ # wildcard++ Very simple wildcard matching, which is designed to provide the same+ functionality that is found in the+ [eve](https://github.com/adobe-webplatform/eve) eventing library.++ ## Usage++ It works with strings:++ <<< examples/strings.js++ Arrays:++ <<< examples/arrays.js++ Objects (matching against keys):++ <<< examples/objects.js++ While the library works in Node, if you are are looking for file-based+ wildcard matching then you should have a look at:++ <https://github.com/isaacs/node-glob>+**/++function WildcardMatcher(text, separator) {+ this.text = text = text || '';+ this.hasWild = ~text.indexOf('*');+ this.separator = separator;+ this.parts = text.split(separator);+}++WildcardMatcher.prototype.match = function(input) {+ var matches = true;+ var parts = this.parts;+ var ii;+ var partsCount = parts.length;+ var testParts;++ if (typeof input == 'string' || input instanceof String) {+ if (!this.hasWild && this.text != input) {+ matches = false;+ } else {+ testParts = (input || '').split(this.separator);+ for (ii = 0; matches && ii < partsCount; ii++) {+ if (parts[ii] === '*') {+ continue;+ } else if (ii < testParts.length) {+ matches = parts[ii] === testParts[ii];+ } else {+ matches = false;+ }+ }++ // If matches, then return the component parts+ matches = matches && testParts;+ }+ }+ else if (typeof input.splice == 'function') {+ matches = [];++ for (ii = input.length; ii--; ) {+ if (this.match(input[ii])) {+ matches[matches.length] = input[ii];+ }+ }+ }+ else if (typeof input == 'object') {+ matches = {};++ for (var key in input) {+ if (this.match(key)) {+ matches[key] = input[key];+ }+ }+ }++ return matches;+};++module.exports = function(text, test, separator) {+ var matcher = new WildcardMatcher(text, separator || /[\/\.]/);+ if (typeof test != 'undefined') {+ return matcher.match(test);+ }++ return matcher;+};++},{}],56:[function(require,module,exports){+// We need a custom build of Uppy because we do not use webpack for+// our JS modules/build. The only way to get what you want from Uppy+// is to use the webpack modules or to include the entire Uppy project+// including all plugins in a single JS file. This way we can just+// use the plugins we actually want.+window.Uppy = {}+Uppy.Core = require('@uppy/core')+Uppy.Plugin = Uppy.Core.Plugin+Uppy.XHRUpload = require('@uppy/xhr-upload')+Uppy.AwsS3 = require('@uppy/aws-s3')+Uppy.AwsS3Multipart = require('@uppy/aws-s3-multipart')++},{"@uppy/aws-s3":5,"@uppy/aws-s3-multipart":3,"@uppy/core":15,"@uppy/xhr-upload":41}]},{},[56]);diff --git a/yarn.lock b/yarn.lockindex 18fb4cffb93..896e482df94 100644--- a/yarn.lock+++ b/yarn.lock@@ -378,6 +378,11 @@resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5"integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==+"@transloadit/[email protected]":+ version "0.0.7"+ resolved "https://registry.yarnpkg.com/@transloadit/prettier-bytes/-/prettier-bytes-0.0.7.tgz#cdb5399f445fdd606ed833872fa0cabdbc51686b"+ integrity sha512-VeJbUb0wEKbcwaSlj5n+LscBl9IPgLPkHVGBkh00cztv6X4L/TJXK58LzFuBKX7/GAfiGhIwH67YTLTlzvIzBA==+"@types/color-name@^1.1.1":version "1.1.1"resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"@@ -388,6 +393,85 @@resolved "https://registry.yarnpkg.com/@types/node/-/node-14.11.2.tgz#2de1ed6670439387da1c9f549a2ade2b0a799256"integrity sha512-jiE3QIxJ8JLNcb1Ps6rDbysDhN4xa8DJJvuC9prr6w+1tIh+QAbYyNF3tyiZNLDBIuBCf4KEcV2UvQm/V60xfA==+"@uppy/aws-s3-multipart@^1.8.18":+ version "1.8.18"+ resolved "https://registry.yarnpkg.com/@uppy/aws-s3-multipart/-/aws-s3-multipart-1.8.18.tgz#d0b3ede025d06b615ad3df90c3771eed38f68d87"+ integrity sha512-m+IJSsDF253igTlQb2vgCTetqd+qgNIBX48i8HGnLj4rBfRd4FjpBpcV7DgfAn7QVOfrQOgOJoz9cGtXdaZ3lA==+ dependencies:+ "@uppy/companion-client" "^1.10.2"+ "@uppy/utils" "^3.6.2"++"@uppy/aws-s3@^1.7.12":+ version "1.7.12"+ resolved "https://registry.yarnpkg.com/@uppy/aws-s3/-/aws-s3-1.7.12.tgz#5fd3259afc06feb745129ee224f93b618934be63"+ integrity sha512-9Q8EMg1vQlDrmhaLs5UUQn4kAszLa8E2c1c4mD2urkpS/jHofdF4geRRtp4g4/xvBwwtnhzGqPX4dIylvoZICQ==+ dependencies:+ "@uppy/companion-client" "^1.10.2"+ "@uppy/utils" "^3.6.2"+ "@uppy/xhr-upload" "^1.7.5"+ cuid "^2.1.1"+ qs-stringify "^1.1.0"+ url-parse "^1.4.7"++"@uppy/companion-client@^1.10.2":+ version "1.10.2"+ resolved "https://registry.yarnpkg.com/@uppy/companion-client/-/companion-client-1.10.2.tgz#a640b3ef90b91751c49bf4b6a7a63c2ebac294f6"+ integrity sha512-5RmsNF9UBvUqmqQz48SoiLvkpGmvQTgwNM4bJX8xwVozv/6goRpFrsMJGLwqFcHS/9xj6STKOqrM582g8exVwQ==+ dependencies:+ "@uppy/utils" "^3.6.2"+ namespace-emitter "^2.0.1"+ qs-stringify "^1.1.0"+ url-parse "^1.4.7"++"@uppy/core@^1.19.2":+ version "1.19.2"+ resolved "https://registry.yarnpkg.com/@uppy/core/-/core-1.19.2.tgz#0db125586bc663921066d9098a4c9b39355b8135"+ integrity sha512-2aHvUMdH8fs2eFn30LzNZDHCKoUNAyC+MXwM2NQeO858o0gj2R4axZbrheXnpXrI9dB6RGELGIGkS+ZhnjQAmA==+ dependencies:+ "@transloadit/prettier-bytes" "0.0.7"+ "@uppy/store-default" "^1.2.7"+ "@uppy/utils" "^3.6.2"+ cuid "^2.1.1"+ lodash.throttle "^4.1.1"+ mime-match "^1.0.2"+ namespace-emitter "^2.0.1"+ preact "8.2.9"++"@uppy/store-default@^1.2.7":+ version "1.2.7"+ resolved "https://registry.yarnpkg.com/@uppy/store-default/-/store-default-1.2.7.tgz#41a0b1579f4d5b86c236e7f5e52fdc01960bb011"+ integrity sha512-58IG9yk/i/kYQ9uEwAwMFl1H2V3syOoODrYoFfVHlxaqv+9MkXBg2tHE2gk40iaAIxcCErcPxZkBOvkqzO1SQA==++"@uppy/utils@^3.6.2":+ version "3.6.2"+ resolved "https://registry.yarnpkg.com/@uppy/utils/-/utils-3.6.2.tgz#78b02455b9c469d927d22736be5b68cda2600826"+ integrity sha512-wGTZma7eywIojfuE1vXlT0fxPSpmCRMkfgFWYc+6TL2FfGqWInmePoB+yal6/M2AnjeKHz6XYMhIpZkjOxFvcw==+ dependencies:+ abortcontroller-polyfill "^1.4.0"+ lodash.throttle "^4.1.1"++"@uppy/xhr-upload@^1.7.5":+ version "1.7.5"+ resolved "https://registry.yarnpkg.com/@uppy/xhr-upload/-/xhr-upload-1.7.5.tgz#990ba3e698503bd51534a59fd426096e37ef942b"+ integrity sha512-Itnc9j9k/PemcmT5KrZ1BEw3pTc6WJg0yyyOcE+hLO8Hjv60Fm7c/I2ZknarOroIjT1WiTSyuxTBPp+9UGkxNA==+ dependencies:+ "@uppy/companion-client" "^1.10.2"+ "@uppy/utils" "^3.6.2"+ cuid "^2.1.1"++JSONStream@^1.0.3:+ version "1.3.5"+ resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0"+ integrity sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==+ dependencies:+ jsonparse "^1.2.0"+ through ">=2.2.7 <3"++abortcontroller-polyfill@^1.4.0:+ version "1.7.3"+ resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.3.tgz#1b5b487bd6436b5b764fd52a612509702c3144b5"+ integrity sha512-zetDJxd89y3X99Kvo4qFx8GKlt6GsvN3UcRZHwU6iFA/0KiOmhkTVhe8oRoTBiTVPZu09x3vCra47+w8Yz1+2Q==+version "1.4.12"resolved "https://registry.yarnpkg.com/ace-builds/-/ace-builds-1.4.12.tgz#888efa386e36f4345f40b5233fcc4fe4c588fae7"@@ -398,6 +482,25 @@ acorn-jsx@^5.2.0:resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.1.tgz#fc8661e11b7ac1539c47dbfea2e72b3af34d267b"integrity sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==+acorn-node@^1.2.0, acorn-node@^1.3.0, acorn-node@^1.5.2, acorn-node@^1.6.1:+ version "1.8.2"+ resolved "https://registry.yarnpkg.com/acorn-node/-/acorn-node-1.8.2.tgz#114c95d64539e53dede23de8b9d96df7c7ae2af8"+ integrity sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==+ dependencies:+ acorn "^7.0.0"+ acorn-walk "^7.0.0"+ xtend "^4.0.2"++acorn-walk@^7.0.0:+ version "7.2.0"+ resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc"+ integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==++acorn@^7.0.0:+ version "7.4.1"+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"+ integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==+acorn@^7.1.1:version "7.4.0"resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.0.tgz#e1ad486e6c54501634c6c397c5c121daa383607c"@@ -501,6 +604,24 @@ array-unique@^0.3.2:resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428"integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=+asn1.js@^5.2.0:+ version "5.4.1"+ resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-5.4.1.tgz#11a980b84ebb91781ce35b0fdc2ee294e3783f07"+ integrity sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==+ dependencies:+ bn.js "^4.0.0"+ inherits "^2.0.1"+ minimalistic-assert "^1.0.0"+ safer-buffer "^2.1.0"++assert@^1.4.0:+ version "1.5.0"+ resolved "https://registry.yarnpkg.com/assert/-/assert-1.5.0.tgz#55c109aaf6e0aefdb3dc4b71240c70bf574b18eb"+ integrity sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==+ dependencies:+ object-assign "^4.1.1"+ util "0.10.3"+assign-symbols@^1.0.0:version "1.0.0"resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"@@ -541,6 +662,11 @@ atob@^2.1.2:resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==+available-typed-arrays@^1.0.2:+ version "1.0.4"+ resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.4.tgz#9e0ae84ecff20caae6a94a1c3bc39b955649b7a9"+ integrity sha512-SA5mXJWrId1TaQjfxUYghbqQ/hYioKmLJvPJyDuYRtXXenFNMjj4hSSt1Cf1xsuXSXrtxrVC5Ot4eU6cOtBDdA==+babel-eslint@^10.1.0:version "10.1.0"resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232"@@ -558,7 +684,7 @@ balanced-match@^1.0.0:resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=-base64-js@^1.3.1:+base64-js@^1.0.2, base64-js@^1.3.1:version "1.5.1"resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==@@ -609,6 +735,16 @@ blueimp-tmpl@3:resolved "https://registry.yarnpkg.com/blueimp-tmpl/-/blueimp-tmpl-3.19.0.tgz#1160f79c4ce55bd82d25cfa3df7db116f8d1df62"integrity sha512-v8/Vge6U3uwlAjO9TxeHoYl77C1GJDZBN45pUp+39WyHU/VRzYbnGDhRNYvcT6Lh8jihVsXNZttnDpnYVA4m9w==+bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9:+ version "4.12.0"+ resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88"+ integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==++bn.js@^5.0.0, bn.js@^5.1.1:+ version "5.2.0"+ resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.0.tgz#358860674396c6997771a9d051fcc1b57d4ae002"+ integrity sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==+version "3.2.0"resolved "https://registry.yarnpkg.com/bootbox/-/bootbox-3.2.0.tgz#00bf643fc9edefd9ae1e7c648c6b022db4be0aee"@@ -650,6 +786,145 @@ braces@^3.0.1:dependencies:fill-range "^7.0.1"+brorand@^1.0.1, brorand@^1.1.0:+ version "1.1.0"+ resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f"+ integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=++browser-pack@^6.0.1:+ version "6.1.0"+ resolved "https://registry.yarnpkg.com/browser-pack/-/browser-pack-6.1.0.tgz#c34ba10d0b9ce162b5af227c7131c92c2ecd5774"+ integrity sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==+ dependencies:+ JSONStream "^1.0.3"+ combine-source-map "~0.8.0"+ defined "^1.0.0"+ safe-buffer "^5.1.1"+ through2 "^2.0.0"+ umd "^3.0.0"++browser-resolve@^2.0.0:+ version "2.0.0"+ resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-2.0.0.tgz#99b7304cb392f8d73dba741bb2d7da28c6d7842b"+ integrity sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ==+ dependencies:+ resolve "^1.17.0"++browserify-aes@^1.0.0, browserify-aes@^1.0.4:+ version "1.2.0"+ resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48"+ integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==+ dependencies:+ buffer-xor "^1.0.3"+ cipher-base "^1.0.0"+ create-hash "^1.1.0"+ evp_bytestokey "^1.0.3"+ inherits "^2.0.1"+ safe-buffer "^5.0.1"++browserify-cipher@^1.0.0:+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.1.tgz#8d6474c1b870bfdabcd3bcfcc1934a10e94f15f0"+ integrity sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==+ dependencies:+ browserify-aes "^1.0.4"+ browserify-des "^1.0.0"+ evp_bytestokey "^1.0.0"++browserify-des@^1.0.0:+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.2.tgz#3af4f1f59839403572f1c66204375f7a7f703e9c"+ integrity sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==+ dependencies:+ cipher-base "^1.0.1"+ des.js "^1.0.0"+ inherits "^2.0.1"+ safe-buffer "^5.1.2"++browserify-rsa@^4.0.0, browserify-rsa@^4.0.1:+ version "4.1.0"+ resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.1.0.tgz#b2fd06b5b75ae297f7ce2dc651f918f5be158c8d"+ integrity sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==+ dependencies:+ bn.js "^5.0.0"+ randombytes "^2.0.1"++browserify-sign@^4.0.0:+ version "4.2.1"+ resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.2.1.tgz#eaf4add46dd54be3bb3b36c0cf15abbeba7956c3"+ integrity sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==+ dependencies:+ bn.js "^5.1.1"+ browserify-rsa "^4.0.1"+ create-hash "^1.2.0"+ create-hmac "^1.1.7"+ elliptic "^6.5.3"+ inherits "^2.0.4"+ parse-asn1 "^5.1.5"+ readable-stream "^3.6.0"+ safe-buffer "^5.2.0"++browserify-zlib@~0.2.0:+ version "0.2.0"+ resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f"+ integrity sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==+ dependencies:+ pako "~1.0.5"++browserify@^17.0.0:+ version "17.0.0"+ resolved "https://registry.yarnpkg.com/browserify/-/browserify-17.0.0.tgz#4c48fed6c02bfa2b51fd3b670fddb805723cdc22"+ integrity sha512-SaHqzhku9v/j6XsQMRxPyBrSP3gnwmE27gLJYZgMT2GeK3J0+0toN+MnuNYDfHwVGQfLiMZ7KSNSIXHemy905w==+ dependencies:+ JSONStream "^1.0.3"+ assert "^1.4.0"+ browser-pack "^6.0.1"+ browser-resolve "^2.0.0"+ browserify-zlib "~0.2.0"+ buffer "~5.2.1"+ cached-path-relative "^1.0.0"+ concat-stream "^1.6.0"+ console-browserify "^1.1.0"+ constants-browserify "~1.0.0"+ crypto-browserify "^3.0.0"+ defined "^1.0.0"+ deps-sort "^2.0.1"+ domain-browser "^1.2.0"+ duplexer2 "~0.1.2"+ events "^3.0.0"+ glob "^7.1.0"+ has "^1.0.0"+ htmlescape "^1.1.0"+ https-browserify "^1.0.0"+ inherits "~2.0.1"+ insert-module-globals "^7.2.1"+ labeled-stream-splicer "^2.0.0"+ mkdirp-classic "^0.5.2"+ module-deps "^6.2.3"+ os-browserify "~0.3.0"+ parents "^1.0.1"+ path-browserify "^1.0.0"+ process "~0.11.0"+ punycode "^1.3.2"+ querystring-es3 "~0.2.0"+ read-only-stream "^2.0.0"+ readable-stream "^2.0.2"+ resolve "^1.1.4"+ shasum-object "^1.0.0"+ shell-quote "^1.6.1"+ stream-browserify "^3.0.0"+ stream-http "^3.0.0"+ string_decoder "^1.1.1"+ subarg "^1.0.0"+ syntax-error "^1.1.1"+ through2 "^2.0.0"+ timers-browserify "^1.0.1"+ tty-browserify "0.0.1"+ url "~0.11.0"+ util "~0.12.0"+ vm-browserify "^1.0.0"+ xtend "^4.0.0"+version "2.1.1"resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05"@@ -667,6 +942,11 @@ buffer-from@^1.0.0:resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==+buffer-xor@^1.0.3:+ version "1.0.3"+ resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9"+ integrity sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=+buffer@^5.5.0:version "5.7.1"resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0"@@ -675,6 +955,19 @@ buffer@^5.5.0:base64-js "^1.3.1"ieee754 "^1.1.13"+buffer@~5.2.1:+ version "5.2.1"+ resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.2.1.tgz#dd57fa0f109ac59c602479044dca7b8b3d0b71d6"+ integrity sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==+ dependencies:+ base64-js "^1.0.2"+ ieee754 "^1.1.4"++builtin-status-codes@^3.0.0:+ version "3.0.0"+ resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"+ integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=+cache-base@^1.0.1:version "1.0.1"resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2"@@ -690,6 +983,19 @@ cache-base@^1.0.1:union-value "^1.0.0"unset-value "^1.0.0"+cached-path-relative@^1.0.0, cached-path-relative@^1.0.2:+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/cached-path-relative/-/cached-path-relative-1.0.2.tgz#a13df4196d26776220cc3356eb147a52dba2c6db"+ integrity sha512-5r2GqsoEb4qMTTN9J+WzXfjov+hjxT+j3u5K+kIVNIwAd99DLCJE9pBIMP1qVeybV6JiijL385Oz0DcYxfbOIg==++call-bind@^1.0.0, call-bind@^1.0.2:+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c"+ integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==+ dependencies:+ function-bind "^1.1.1"+ get-intrinsic "^1.0.2"+callsites@^3.0.0:version "3.1.0"resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"@@ -797,6 +1103,14 @@ chrome-remote-interface@^0.25:commander "2.11.x"ws "3.3.x"+cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3:+ version "1.0.4"+ resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de"+ integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==+ dependencies:+ inherits "^2.0.1"+ safe-buffer "^5.0.1"+class-utils@^0.3.5:version "0.3.6"resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463"@@ -896,6 +1210,16 @@ colors@^1.4.0:resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==+combine-source-map@^0.8.0, combine-source-map@~0.8.0:+ version "0.8.0"+ resolved "https://registry.yarnpkg.com/combine-source-map/-/combine-source-map-0.8.0.tgz#a58d0df042c186fcf822a8e8015f5450d2d79a8b"+ integrity sha1-pY0N8ELBhvz4IqjoAV9UUNLXmos=+ dependencies:+ convert-source-map "~1.1.0"+ inline-source-map "~0.6.0"+ lodash.memoize "~3.0.3"+ source-map "~0.5.3"+version "2.11.0"resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563"@@ -926,7 +1250,7 @@ [email protected]:resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=-concat-stream@^1.6.2:+concat-stream@^1.6.0, concat-stream@^1.6.1, concat-stream@^1.6.2, concat-stream@~1.6.0:version "1.6.2"resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==@@ -936,6 +1260,21 @@ concat-stream@^1.6.2:readable-stream "^2.2.2"typedarray "^0.0.6"+console-browserify@^1.1.0:+ version "1.2.0"+ resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336"+ integrity sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==++constants-browserify@~1.0.0:+ version "1.0.0"+ resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75"+ integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=++convert-source-map@~1.1.0:+ version "1.1.3"+ resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.1.3.tgz#4829c877e9fe49b3161f3bf3673888e204699860"+ integrity sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=+copy-descriptor@^0.1.0:version "0.1.1"resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"@@ -951,6 +1290,37 @@ core-util-is@~1.0.0:resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=+create-ecdh@^4.0.0:+ version "4.0.4"+ resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.4.tgz#d6e7f4bffa66736085a0762fd3a632684dabcc4e"+ integrity sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==+ dependencies:+ bn.js "^4.1.0"+ elliptic "^6.5.3"++create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0:+ version "1.2.0"+ resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196"+ integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==+ dependencies:+ cipher-base "^1.0.1"+ inherits "^2.0.1"+ md5.js "^1.3.4"+ ripemd160 "^2.0.1"+ sha.js "^2.4.0"++create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7:+ version "1.1.7"+ resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff"+ integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==+ dependencies:+ cipher-base "^1.0.3"+ create-hash "^1.1.0"+ inherits "^2.0.1"+ ripemd160 "^2.0.0"+ safe-buffer "^5.0.1"+ sha.js "^2.4.8"+cross-spawn@^6.0.0, cross-spawn@^6.0.5:version "6.0.5"resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"@@ -962,6 +1332,33 @@ cross-spawn@^6.0.0, cross-spawn@^6.0.5:shebang-command "^1.2.0"which "^1.2.9"+crypto-browserify@^3.0.0:+ version "3.12.0"+ resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec"+ integrity sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==+ dependencies:+ browserify-cipher "^1.0.0"+ browserify-sign "^4.0.0"+ create-ecdh "^4.0.0"+ create-hash "^1.1.0"+ create-hmac "^1.1.0"+ diffie-hellman "^5.0.0"+ inherits "^2.0.1"+ pbkdf2 "^3.0.3"+ public-encrypt "^4.0.0"+ randombytes "^2.0.0"+ randomfill "^1.0.3"++cuid@^2.1.1:+ version "2.1.8"+ resolved "https://registry.yarnpkg.com/cuid/-/cuid-2.1.8.tgz#cbb88f954171e0d5747606c0139fb65c5101eac0"+ integrity sha512-xiEMER6E7TlTPnDxrM4eRiC6TRgjNX9xzEZ5U/Se2YJKr7Mq4pJn/2XEHjl3STcSh96GmkHPcBXLES8M29wyyg==++dash-ast@^1.0.0:+ version "1.0.0"+ resolved "https://registry.yarnpkg.com/dash-ast/-/dash-ast-1.0.0.tgz#12029ba5fb2f8aa6f0a861795b23c1b4b6c27d37"+ integrity sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==+debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9:version "2.6.9"resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"@@ -1005,6 +1402,13 @@ defaults@^1.0.3:dependencies:clone "^1.0.2"+define-properties@^1.1.3:+ version "1.1.3"+ resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1"+ integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==+ dependencies:+ object-keys "^1.0.12"+define-property@^0.2.5:version "0.2.5"resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116"@@ -1027,11 +1431,43 @@ define-property@^2.0.2:is-descriptor "^1.0.2"isobject "^3.0.1"+defined@^1.0.0:+ version "1.0.0"+ resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693"+ integrity sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=++deps-sort@^2.0.1:+ version "2.0.1"+ resolved "https://registry.yarnpkg.com/deps-sort/-/deps-sort-2.0.1.tgz#9dfdc876d2bcec3386b6829ac52162cda9fa208d"+ integrity sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==+ dependencies:+ JSONStream "^1.0.3"+ shasum-object "^1.0.0"+ subarg "^1.0.0"+ through2 "^2.0.0"++des.js@^1.0.0:+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.1.tgz#5382142e1bdc53f85d86d53e5f4aa7deb91e0843"+ integrity sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==+ dependencies:+ inherits "^2.0.1"+ minimalistic-assert "^1.0.0"+detect-file@^1.0.0:version "1.0.0"resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-1.0.0.tgz#f0d66d03672a825cb1b73bdb3fe62310c8e552b7"integrity sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=+detective@^5.2.0:+ version "5.2.0"+ resolved "https://registry.yarnpkg.com/detective/-/detective-5.2.0.tgz#feb2a77e85b904ecdea459ad897cc90a99bd2a7b"+ integrity sha512-6SsIx+nUUbuK0EthKjv0zrdnajCCXVYGmbYYiYjFVpzcjwEs/JMDZ8tPRG29J/HhN56t3GJp2cGSWDRjjot8Pg==+ dependencies:+ acorn-node "^1.6.1"+ defined "^1.0.0"+ minimist "^1.1.1"+diff@^4.0.2:version "4.0.2"resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"@@ -1044,6 +1480,15 @@ diffhtml@^1.0.0-beta.18:dependencies:"@babel/plugin-proposal-class-properties" "^7.10.4"+diffie-hellman@^5.0.0:+ version "5.0.3"+ resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875"+ integrity sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==+ dependencies:+ bn.js "^4.1.0"+ miller-rabin "^4.0.0"+ randombytes "^2.0.0"+dir-glob@^3.0.1:version "3.0.1"resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f"@@ -1058,6 +1503,18 @@ doctrine@^3.0.0:dependencies:esutils "^2.0.2"+domain-browser@^1.2.0:+ version "1.2.0"+ resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda"+ integrity sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==++duplexer2@^0.1.2, duplexer2@~0.1.0, duplexer2@~0.1.2:+ version "0.1.4"+ resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1"+ integrity sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=+ dependencies:+ readable-stream "^2.0.2"+duplexify@^3.6.0:version "3.7.1"resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309"@@ -1068,6 +1525,19 @@ duplexify@^3.6.0:readable-stream "^2.0.0"stream-shift "^1.0.0"+elliptic@^6.5.3:+ version "6.5.4"+ resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb"+ integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==+ dependencies:+ bn.js "^4.11.9"+ brorand "^1.1.0"+ hash.js "^1.0.0"+ hmac-drbg "^1.0.1"+ inherits "^2.0.4"+ minimalistic-assert "^1.0.1"+ minimalistic-crypto-utils "^1.0.1"+ember-rfc176-data@^0.3.11:version "0.3.15"resolved "https://registry.yarnpkg.com/ember-rfc176-data/-/ember-rfc176-data-0.3.15.tgz#af3f1da5a0339b6feda380edc2f7190e0f416c2d"@@ -1136,6 +1606,37 @@ entities@~2.0.0:resolved "https://registry.yarnpkg.com/entities/-/entities-2.0.3.tgz#5c487e5742ab93c15abb5da22759b8590ec03b7f"integrity sha512-MyoZ0jgnLvB2X3Lg5HqpFmn1kybDiIfEQmKzTb5apr51Rb+T3KdmMiqa70T+bhGnyv7bQ6WMj2QMHpGMmlrUYQ==+es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2:+ version "1.18.3"+ resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.3.tgz#25c4c3380a27aa203c44b2b685bba94da31b63e0"+ integrity sha512-nQIr12dxV7SSxE6r6f1l3DtAeEYdsGpps13dR0TwJg1S8gyp4ZPgy3FZcHBgbiQqnoqSTb+oC+kO4UQ0C/J8vw==+ dependencies:+ call-bind "^1.0.2"+ es-to-primitive "^1.2.1"+ function-bind "^1.1.1"+ get-intrinsic "^1.1.1"+ has "^1.0.3"+ has-symbols "^1.0.2"+ is-callable "^1.2.3"+ is-negative-zero "^2.0.1"+ is-regex "^1.1.3"+ is-string "^1.0.6"+ object-inspect "^1.10.3"+ object-keys "^1.1.1"+ object.assign "^4.1.2"+ string.prototype.trimend "^1.0.4"+ string.prototype.trimstart "^1.0.4"+ unbox-primitive "^1.0.1"++es-to-primitive@^1.2.1:+ version "1.2.1"+ resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a"+ integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==+ dependencies:+ is-callable "^1.1.4"+ is-date-object "^1.0.1"+ is-symbol "^1.0.2"+es6-promise@^4.0.3:version "4.2.8"resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a"@@ -1315,6 +1816,19 @@ esutils@^2.0.2:resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==+events@^3.0.0:+ version "3.3.0"+ resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400"+ integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==++evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3:+ version "1.0.3"+ resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02"+ integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==+ dependencies:+ md5.js "^1.3.4"+ safe-buffer "^5.1.1"+exec-sh@^0.3.2:version "0.3.4"resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.4.tgz#3a018ceb526cc6f6df2bb504b2bfe8e3a4934ec5"@@ -1443,6 +1957,11 @@ fast-levenshtein@~2.0.6:resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=+fast-safe-stringify@^2.0.7:+ version "2.0.7"+ resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz#124aa885899261f68aedb42a7c080de9da608743"+ integrity sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA==+fastq@^1.6.0:version "1.8.0"resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.8.0.tgz#550e1f9f59bbc65fe185cb6a9b4d95357107f481"@@ -1540,6 +2059,11 @@ for-in@^1.0.2:resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=+foreach@^2.0.5:+ version "2.0.5"+ resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"+ integrity sha1-C+4AUBiusmDQo6865ljdATbsG5k=+fragment-cache@^0.2.1:version "0.2.1"resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19"@@ -1552,16 +2076,35 @@ fs.realpath@^1.0.0:resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8=+function-bind@^1.1.1:+ version "1.1.1"+ resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"+ integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==+functional-red-black-tree@^1.0.1:version "1.0.1"resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=+get-assigned-identifiers@^1.2.0:+ version "1.2.0"+ resolved "https://registry.yarnpkg.com/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz#6dbf411de648cbaf8d9169ebb0d2d576191e2ff1"+ integrity sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==+get-caller-file@^2.0.1:version "2.0.5"resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==+get-intrinsic@^1.0.2, get-intrinsic@^1.1.1:+ version "1.1.1"+ resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.1.tgz#15f59f376f855c446963948f0d24cd3637b4abc6"+ integrity sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==+ dependencies:+ function-bind "^1.1.1"+ has "^1.0.3"+ has-symbols "^1.0.1"+get-stdin@^8.0.0:version "8.0.0"resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-8.0.0.tgz#cbad6a73feb75f6eeb22ba9e01f89aa28aa97a53"@@ -1622,6 +2165,18 @@ [email protected]:once "^1.3.0"path-is-absolute "^1.0.0"+glob@^7.1.0:+ version "7.1.7"+ resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90"+ integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==+ dependencies:+ fs.realpath "^1.0.0"+ inflight "^1.0.4"+ inherits "2"+ minimatch "^3.0.4"+ once "^1.3.0"+ path-is-absolute "^1.0.0"+glob@^7.1.1, glob@^7.1.3:version "7.1.6"resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"@@ -1695,6 +2250,11 @@ handlebars@^4.7.4, handlebars@^4.7.7:optionalDependencies:uglify-js "^3.1.4"+has-bigints@^1.0.1:+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.1.tgz#64fe6acb020673e3b78db035a5af69aa9d07b113"+ integrity sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==+has-flag@^3.0.0:version "3.0.0"resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"@@ -1705,6 +2265,11 @@ has-flag@^4.0.0:resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==+has-symbols@^1.0.1, has-symbols@^1.0.2:+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423"+ integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==+has-value@^0.3.1:version "0.3.1"resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f"@@ -1736,6 +2301,39 @@ has-values@^1.0.0:is-number "^3.0.0"kind-of "^4.0.0"+has@^1.0.0, has@^1.0.3:+ version "1.0.3"+ resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"+ integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==+ dependencies:+ function-bind "^1.1.1"++hash-base@^3.0.0:+ version "3.1.0"+ resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33"+ integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==+ dependencies:+ inherits "^2.0.4"+ readable-stream "^3.6.0"+ safe-buffer "^5.2.0"++hash.js@^1.0.0, hash.js@^1.0.3:+ version "1.1.7"+ resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42"+ integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==+ dependencies:+ inherits "^2.0.3"+ minimalistic-assert "^1.0.1"++hmac-drbg@^1.0.1:+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"+ integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=+ dependencies:+ hash.js "^1.0.3"+ minimalistic-assert "^1.0.0"+ minimalistic-crypto-utils "^1.0.1"+homedir-polyfill@^1.0.1:version "1.0.3"resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8"@@ -1743,6 +2341,16 @@ homedir-polyfill@^1.0.1:dependencies:parse-passwd "^1.0.0"+htmlescape@^1.1.0:+ version "1.1.1"+ resolved "https://registry.yarnpkg.com/htmlescape/-/htmlescape-1.1.1.tgz#3a03edc2214bca3b66424a3e7959349509cb0351"+ integrity sha1-OgPtwiFLyjtmQko+eVk0lQnLA1E=++https-browserify@^1.0.0:+ version "1.0.0"+ resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73"+ integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=+https-proxy-agent@^2.2.1:version "2.2.4"resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b"@@ -1758,7 +2366,7 @@ iconv-lite@^0.4.24:dependencies:safer-buffer ">= 2.1.2 < 3"-ieee754@^1.1.13:+ieee754@^1.1.13, ieee754@^1.1.4:version "1.2.1"resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==@@ -1794,16 +2402,28 @@ inflight@^1.0.4:once "^1.3.0"wrappy "1"-inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3:+inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3, inherits@~2.0.4:version "2.0.4"resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==+ version "2.0.1"+ resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1"+ integrity sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=+ini@^1.3.4:version "1.3.8"resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c"integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==+inline-source-map@~0.6.0:+ version "0.6.2"+ resolved "https://registry.yarnpkg.com/inline-source-map/-/inline-source-map-0.6.2.tgz#f9393471c18a79d1724f863fa38b586370ade2a5"+ integrity sha1-+Tk0ccGKedFyT4Y/o4tYY3Ct4qU=+ dependencies:+ source-map "~0.5.3"+inquirer@^7.0.0:version "7.3.3"resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.3.3.tgz#04d176b2af04afc157a83fd7c100e98ee0aad003"@@ -1823,6 +2443,22 @@ inquirer@^7.0.0:strip-ansi "^6.0.0"through "^2.3.6"+insert-module-globals@^7.2.1:+ version "7.2.1"+ resolved "https://registry.yarnpkg.com/insert-module-globals/-/insert-module-globals-7.2.1.tgz#d5e33185181a4e1f33b15f7bf100ee91890d5cb3"+ integrity sha512-ufS5Qq9RZN+Bu899eA9QCAYThY+gGW7oRkmb0vC93Vlyu/CFGcH0OYPEjVkDXA5FEbTt1+VWzdoOD3Ny9N+8tg==+ dependencies:+ JSONStream "^1.0.3"+ acorn-node "^1.5.2"+ combine-source-map "^0.8.0"+ concat-stream "^1.6.1"+ is-buffer "^1.1.0"+ path-is-absolute "^1.0.1"+ process "~0.11.0"+ through2 "^2.0.0"+ undeclared-identifiers "^1.1.2"+ xtend "^4.0.0"+is-absolute@^1.0.0:version "1.0.0"resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576"@@ -1845,11 +2481,42 @@ is-accessor-descriptor@^1.0.0:dependencies:kind-of "^6.0.0"-is-buffer@^1.1.5:+is-arguments@^1.0.4:+ version "1.1.0"+ resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.0.tgz#62353031dfbee07ceb34656a6bde59efecae8dd9"+ integrity sha512-1Ij4lOMPl/xB5kBDn7I+b2ttPMKa8szhEIrXDuXQD/oe3HJLTLhqhgGspwgyGd6MOywBUqVvYicF72lkgDnIHg==+ dependencies:+ call-bind "^1.0.0"++is-bigint@^1.0.1:+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.2.tgz#ffb381442503235ad245ea89e45b3dbff040ee5a"+ integrity sha512-0JV5+SOCQkIdzjBK9buARcV804Ddu7A0Qet6sHi3FimE9ne6m4BGQZfRn+NZiXbBk4F4XmHfDZIipLj9pX8dSA==++is-boolean-object@^1.1.0:+ version "1.1.1"+ resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.1.tgz#3c0878f035cb821228d350d2e1e36719716a3de8"+ integrity sha512-bXdQWkECBUIAcCkeH1unwJLIpZYaa5VvuygSyS/c2lf719mTKZDU5UdDRlpd01UjADgmW8RfqaP+mRaVPdr/Ng==+ dependencies:+ call-bind "^1.0.2"++is-buffer@^1.1.0, is-buffer@^1.1.5:version "1.1.6"resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==+is-callable@^1.1.4, is-callable@^1.2.3:+ version "1.2.3"+ resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.3.tgz#8b1e0500b73a1d76c70487636f368e519de8db8e"+ integrity sha512-J1DcMe8UYTBSrKezuIUTUwjXsho29693unXM2YhJUTR2txK/eG47bvNa/wipPFmZFgr/N6f1GA66dv0mEyTIyQ==++is-core-module@^2.2.0:+ version "2.4.0"+ resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1"+ integrity sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A==+ dependencies:+ has "^1.0.3"+is-data-descriptor@^0.1.4:version "0.1.4"resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56"@@ -1864,6 +2531,11 @@ is-data-descriptor@^1.0.0:dependencies:kind-of "^6.0.0"+is-date-object@^1.0.1:+ version "1.0.4"+ resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.4.tgz#550cfcc03afada05eea3dd30981c7b09551f73e5"+ integrity sha512-/b4ZVsG7Z5XVtIxs/h9W8nvfLgSAyKYdtGWQLbqy6jA1icmgjf8WCoTKgeS4wy5tYaPePouzFMANbnj94c2Z+A==+is-descriptor@^0.1.0:version "0.1.6"resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca"@@ -1914,6 +2586,11 @@ is-fullwidth-code-point@^3.0.0:resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d"integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==+is-generator-function@^1.0.7:+ version "1.0.9"+ resolved "https://registry.yarnpkg.com/is-generator-function/-/is-generator-function-1.0.9.tgz#e5f82c2323673e7fcad3d12858c83c4039f6399c"+ integrity sha512-ZJ34p1uvIfptHCN7sFTjGibB9/oBg17sHqzDLfuwhvmN/qLVvIQXRQ8licZQ35WJ8KuEQt/etnnzQFI9C9Ue/A==+is-glob@^3.1.0:version "3.1.0"resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a"@@ -1938,6 +2615,16 @@ is-negated-glob@^1.0.0:resolved "https://registry.yarnpkg.com/is-negated-glob/-/is-negated-glob-1.0.0.tgz#6910bca5da8c95e784b5751b976cf5a10fee36d2"integrity sha1-aRC8pdqMleeEtXUbl2z1oQ/uNtI=+is-negative-zero@^2.0.1:+ version "2.0.1"+ resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.1.tgz#3de746c18dda2319241a53675908d8f766f11c24"+ integrity sha512-2z6JzQvZRa9A2Y7xC6dQQm4FSTSTNWjKIYYTt4246eMTJmIo0Q+ZyOsU66X8lxK1AbB92dFeglPLrhwpeRKO6w==++is-number-object@^1.0.4:+ version "1.0.5"+ resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.5.tgz#6edfaeed7950cff19afedce9fbfca9ee6dd289eb"+ integrity sha512-RU0lI/n95pMoUKu9v1BZP5MBcZuNSVJkMkAG2dJqC4z2GlkGUNeH68SuHuBKBD/XFe+LHZ+f9BKkLET60Niedw==+is-number@^3.0.0:version "3.0.0"resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195"@@ -1957,6 +2644,14 @@ is-plain-object@^2.0.3, is-plain-object@^2.0.4:dependencies:isobject "^3.0.1"+is-regex@^1.1.3:+ version "1.1.3"+ resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.3.tgz#d029f9aff6448b93ebbe3f33dac71511fdcbef9f"+ integrity sha512-qSVXFz28HM7y+IWX6vLCsexdlvzT1PJNFSBuaQLQ5o0IEw8UDYW6/2+eCMVyIsbM8CNLX2a/QWmSpyxYEHY7CQ==+ dependencies:+ call-bind "^1.0.2"+ has-symbols "^1.0.2"+is-relative@^1.0.0:version "1.0.0"resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d"@@ -1969,6 +2664,29 @@ is-stream@^1.1.0:resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ=+is-string@^1.0.5, is-string@^1.0.6:+ version "1.0.6"+ resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.6.tgz#3fe5d5992fb0d93404f32584d4b0179a71b54a5f"+ integrity sha512-2gdzbKUuqtQ3lYNrUTQYoClPhm7oQu4UdpSZMp1/DGgkHBT8E2Z1l0yMdb6D4zNAxwDiMv8MdulKROJGNl0Q0w==++is-symbol@^1.0.2, is-symbol@^1.0.3:+ version "1.0.4"+ resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c"+ integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==+ dependencies:+ has-symbols "^1.0.2"++is-typed-array@^1.1.3:+ version "1.1.5"+ resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.5.tgz#f32e6e096455e329eb7b423862456aa213f0eb4e"+ integrity sha512-S+GRDgJlR3PyEbsX/Fobd9cqpZBuvUS+8asRqYDMLCb2qMzt1oz5m5oxQCxOgUDxiWsOVNi4yaF+/uvdlHlYug==+ dependencies:+ available-typed-arrays "^1.0.2"+ call-bind "^1.0.2"+ es-abstract "^1.18.0-next.2"+ foreach "^2.0.5"+ has-symbols "^1.0.1"+is-unc-path@^1.0.0:version "1.0.0"resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d"@@ -2072,6 +2790,11 @@ json-stable-stringify-without-jsonify@^1.0.1:resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=+jsonparse@^1.2.0:+ version "1.3.1"+ resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280"+ integrity sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=+just-extend@^4.0.2:version "4.1.1"resolved "https://registry.yarnpkg.com/just-extend/-/just-extend-4.1.1.tgz#158f1fdb01f128c411dc8b286a7b4837b3545282"@@ -2101,6 +2824,14 @@ kind-of@^6.0.0, kind-of@^6.0.2:resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd"integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==+labeled-stream-splicer@^2.0.0:+ version "2.0.2"+ resolved "https://registry.yarnpkg.com/labeled-stream-splicer/-/labeled-stream-splicer-2.0.2.tgz#42a41a16abcd46fd046306cf4f2c3576fffb1c21"+ integrity sha512-Ca4LSXFFZUjPScRaqOcFxneA0VpKZr4MMYCljyQr4LIewTLb3Y0IUTIsnBBsVubIeEfxeSZpSjSsRM8APEQaAw==+ dependencies:+ inherits "^2.0.1"+ stream-splicer "^2.0.0"+lazy-cache@^1.0.3:version "1.0.4"resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e"@@ -2158,6 +2889,16 @@ lodash.get@^4.4.2:resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=+lodash.memoize@~3.0.3:+ version "3.0.4"+ resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-3.0.4.tgz#2dcbd2c287cbc0a55cc42328bd0c736150d53e3f"+ integrity sha1-LcvSwofLwKVcxCMovQxzYVDVPj8=++lodash.throttle@^4.1.1:+ version "4.1.1"+ resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4"+ integrity sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=+[email protected], [email protected], lodash@^4.17.14, lodash@^4.17.19:version "4.17.21"resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"@@ -2234,6 +2975,15 @@ matcher-collection@^1.0.0:dependencies:minimatch "^3.0.2"+md5.js@^1.3.4:+ version "1.3.5"+ resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f"+ integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==+ dependencies:+ hash-base "^3.0.0"+ inherits "^2.0.1"+ safe-buffer "^5.1.2"+mdurl@^1.0.1:version "1.0.1"resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e"@@ -2271,6 +3021,21 @@ micromatch@^4.0.2:braces "^3.0.1"picomatch "^2.0.5"+miller-rabin@^4.0.0:+ version "4.0.1"+ resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d"+ integrity sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==+ dependencies:+ bn.js "^4.0.0"+ brorand "^1.0.1"++mime-match@^1.0.2:+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/mime-match/-/mime-match-1.0.2.tgz#3f87c31e9af1a5fd485fb9db134428b23bbb7ba8"+ integrity sha1-P4fDHprxpf1IX7nbE0Qosju7e6g=+ dependencies:+ wildcard "^1.1.0"+mime@^2.0.3:version "2.4.6"resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.6.tgz#e5b407c90db442f2beb5b162373d07b69affa4d1"@@ -2281,6 +3046,16 @@ mimic-fn@^2.1.0:resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b"integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==+minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1:+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"+ integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==++minimalistic-crypto-utils@^1.0.1:+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"+ integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=+minimatch@^3.0.2, minimatch@^3.0.4:version "3.0.4"resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"@@ -2293,7 +3068,7 @@ [email protected]:resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=-minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5:+minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5:version "1.2.5"resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==@@ -2306,6 +3081,11 @@ mixin-deep@^1.2.0:for-in "^1.0.2"is-extendable "^1.0.1"+mkdirp-classic@^0.5.2:+ version "0.5.3"+ resolved "https://registry.yarnpkg.com/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz#fa10c9115cc6d8865be221ba47ee9bed78601113"+ integrity sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==+version "0.5.1"resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"@@ -2320,6 +3100,27 @@ mkdirp@^0.5.1, mkdirp@^0.5.4:dependencies:minimist "^1.2.5"+module-deps@^6.2.3:+ version "6.2.3"+ resolved "https://registry.yarnpkg.com/module-deps/-/module-deps-6.2.3.tgz#15490bc02af4b56cf62299c7c17cba32d71a96ee"+ integrity sha512-fg7OZaQBcL4/L+AK5f4iVqf9OMbCclXfy/znXRxTVhJSeW5AIlS9AwheYwDaXM3lVW7OBeaeUEY3gbaC6cLlSA==+ dependencies:+ JSONStream "^1.0.3"+ browser-resolve "^2.0.0"+ cached-path-relative "^1.0.2"+ concat-stream "~1.6.0"+ defined "^1.0.0"+ detective "^5.2.0"+ duplexer2 "^0.1.2"+ inherits "^2.0.1"+ parents "^1.0.0"+ readable-stream "^2.0.2"+ resolve "^1.4.0"+ stream-combiner2 "^1.1.1"+ subarg "^1.0.0"+ through2 "^2.0.0"+ xtend "^4.0.0"+"moment-timezone-names-translations@https://github.com/discourse/moment-timezone-names-translations":version "0.0.0"resolved "https://github.com/discourse/moment-timezone-names-translations#5f576fc6355d8e636783bfb7b0214a5d74a5399d"@@ -2360,6 +3161,11 @@ [email protected]:resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d"integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==+namespace-emitter@^2.0.1:+ version "2.0.1"+ resolved "https://registry.yarnpkg.com/namespace-emitter/-/namespace-emitter-2.0.1.tgz#978d51361c61313b4e6b8cf6f3853d08dfa2b17c"+ integrity sha512-N/sMKHniSDJBjfrkbS/tpkPj4RAbvW3mr8UAzvlMHyun93XEm83IAvhWtJVHo+RHn/oO8Job5YN4b+wRjSVp5g==+nanomatch@^1.2.9:version "1.2.13"resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"@@ -2429,6 +3235,11 @@ npm-run-path@^2.0.0:dependencies:path-key "^2.0.0"+object-assign@^4.1.1:+ version "4.1.1"+ resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"+ integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=+object-copy@^0.1.0:version "0.1.0"resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c"@@ -2438,6 +3249,16 @@ object-copy@^0.1.0:define-property "^0.2.5"kind-of "^3.0.3"+object-inspect@^1.10.3:+ version "1.10.3"+ resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.10.3.tgz#c2aa7d2d09f50c99375704f7a0adf24c5782d369"+ integrity sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw==++object-keys@^1.0.12, object-keys@^1.1.1:+ version "1.1.1"+ resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"+ integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==+object-visit@^1.0.0:version "1.0.1"resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb"@@ -2445,6 +3266,16 @@ object-visit@^1.0.0:dependencies:isobject "^3.0.0"+object.assign@^4.1.2:+ version "4.1.2"+ resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940"+ integrity sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==+ dependencies:+ call-bind "^1.0.0"+ define-properties "^1.1.3"+ has-symbols "^1.0.1"+ object-keys "^1.1.1"+object.pick@^1.3.0:version "1.3.0"resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747"@@ -2513,6 +3344,11 @@ ordered-read-streams@^1.0.0:dependencies:readable-stream "^2.0.1"+os-browserify@~0.3.0:+ version "0.3.0"+ resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27"+ integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=+os-tmpdir@~1.0.2:version "1.0.2"resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"@@ -2556,6 +3392,11 @@ p-try@^2.0.0:resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==+pako@~1.0.5:+ version "1.0.11"+ resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"+ integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==+parent-module@^1.0.0:version "1.0.1"resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"@@ -2563,6 +3404,24 @@ parent-module@^1.0.0:dependencies:callsites "^3.0.0"+parents@^1.0.0, parents@^1.0.1:+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/parents/-/parents-1.0.1.tgz#fedd4d2bf193a77745fe71e371d73c3307d9c751"+ integrity sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=+ dependencies:+ path-platform "~0.11.15"++parse-asn1@^5.0.0, parse-asn1@^5.1.5:+ version "5.1.6"+ resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.6.tgz#385080a3ec13cb62a62d39409cb3e88844cdaed4"+ integrity sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==+ dependencies:+ asn1.js "^5.2.0"+ browserify-aes "^1.0.0"+ evp_bytestokey "^1.0.0"+ pbkdf2 "^3.0.3"+ safe-buffer "^5.1.1"+parse-passwd@^1.0.0:version "1.0.0"resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6"@@ -2573,6 +3432,11 @@ pascalcase@^0.1.1:resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=+path-browserify@^1.0.0:+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd"+ integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==+path-dirname@^1.0.0:version "1.0.2"resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0"@@ -2583,7 +3447,7 @@ path-exists@^4.0.0:resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3"integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==-path-is-absolute@^1.0.0:+path-is-absolute@^1.0.0, path-is-absolute@^1.0.1:version "1.0.1"resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=@@ -2598,6 +3462,11 @@ path-parse@^1.0.5, path-parse@^1.0.6:resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==+path-platform@~0.11.15:+ version "0.11.15"+ resolved "https://registry.yarnpkg.com/path-platform/-/path-platform-0.11.15.tgz#e864217f74c36850f0852b78dc7bf7d4a5721bf2"+ integrity sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=+path-to-regexp@^1.7.0:version "1.8.0"resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.8.0.tgz#887b3ba9d84393e87a0a0b9f4cb756198b53548a"@@ -2610,6 +3479,17 @@ path-type@^4.0.0:resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==+pbkdf2@^3.0.3:+ version "3.1.2"+ resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.2.tgz#dd822aa0887580e52f1a039dc3eda108efae3075"+ integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==+ dependencies:+ create-hash "^1.1.2"+ create-hmac "^1.1.4"+ ripemd160 "^2.0.1"+ safe-buffer "^5.0.1"+ sha.js "^2.4.8"+pend@~1.2.0:version "1.2.0"resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"@@ -2630,6 +3510,11 @@ posix-character-classes@^0.1.0:resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=+ version "8.2.9"+ resolved "https://registry.yarnpkg.com/preact/-/preact-8.2.9.tgz#813ba9dd45e5d97c5ea0d6c86d375b3be711cc40"+ integrity sha512-ThuGXBmJS3VsT+jIP+eQufD3L8pRw/PY3FoCys6O9Pu6aF12Pn9zAJDX99TfwRAFOCEKm/P0lwiPTbqKMJp0fA==+prelude-ls@~1.1.2:version "1.1.2"resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"@@ -2653,6 +3538,11 @@ process-nextick-args@~2.0.0:resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==+process@~0.11.0:+ version "0.11.10"+ resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"+ integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI=+progress@^2.0.0, progress@^2.0.1:version "2.0.3"resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"@@ -2663,6 +3553,18 @@ proxy-from-env@^1.0.0:resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==+public-encrypt@^4.0.0:+ version "4.0.3"+ resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.3.tgz#4fcc9d77a07e48ba7527e7cbe0de33d0701331e0"+ integrity sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==+ dependencies:+ bn.js "^4.1.0"+ browserify-rsa "^4.0.0"+ create-hash "^1.1.0"+ parse-asn1 "^5.0.0"+ randombytes "^2.0.1"+ safe-buffer "^5.1.2"+pump@^2.0.0:version "2.0.1"resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909"@@ -2688,6 +3590,16 @@ pumpify@^1.3.5:inherits "^2.0.3"pump "^2.0.0"+ version "1.3.2"+ resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d"+ integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=++punycode@^1.3.2:+ version "1.4.1"+ resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"+ integrity sha1-wNWmOycYgArY4esPpSachN1BhF4=+punycode@^2.1.0:version "2.1.1"resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"@@ -2707,6 +3619,26 @@ [email protected]:rimraf "^2.6.1"ws "^6.1.0"+qs-stringify@^1.1.0:+ version "1.2.1"+ resolved "https://registry.yarnpkg.com/qs-stringify/-/qs-stringify-1.2.1.tgz#9b39ef6b816bd83309628fc9dad435fc0eccc28b"+ integrity sha512-2N5xGLGZUxpgAYq1fD1LmBSCbxQVsXYt5JU0nU3FuPWO8PlCnKNFQwXkZgyB6mrTdg7IbexX4wxIR403dJw9pw==++querystring-es3@~0.2.0:+ version "0.2.1"+ resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73"+ integrity sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=++ version "0.2.0"+ resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620"+ integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=++querystringify@^2.1.1:+ version "2.2.0"+ resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6"+ integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==+version "2.8.0"resolved "https://registry.yarnpkg.com/qunit/-/qunit-2.8.0.tgz#007474727cdba323c35f9526e21c0687f8ea04b3"@@ -2720,7 +3652,29 @@ [email protected]:sane "^4.0.0"walk-sync "0.3.2"-readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@~2.3.6:+randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5:+ version "2.1.0"+ resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a"+ integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==+ dependencies:+ safe-buffer "^5.1.0"++randomfill@^1.0.3:+ version "1.0.4"+ resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458"+ integrity sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==+ dependencies:+ randombytes "^2.0.5"+ safe-buffer "^5.1.0"++read-only-stream@^2.0.0:+ version "2.0.0"+ resolved "https://registry.yarnpkg.com/read-only-stream/-/read-only-stream-2.0.0.tgz#2724fd6a8113d73764ac288d4386270c1dbf17f0"+ integrity sha1-JyT9aoET1zdkrCiNQ4YnDB2/F/A=+ dependencies:+ readable-stream "^2.0.2"++readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@~2.3.6:version "2.3.7"resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57"integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==@@ -2733,7 +3687,7 @@ readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.1.5, readablestring_decoder "~1.1.1"util-deprecate "~1.0.1"-readable-stream@^3.4.0:+readable-stream@^3.4.0, readable-stream@^3.5.0, readable-stream@^3.6.0:version "3.6.0"resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198"integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==@@ -2785,6 +3739,11 @@ requireindex@~1.1.0:resolved "https://registry.yarnpkg.com/requireindex/-/requireindex-1.1.0.tgz#e5404b81557ef75db6e49c5a72004893fe03e162"integrity sha1-5UBLgVV+91225JxacgBIk/4D4WI=+requires-port@^1.0.0:+ version "1.0.0"+ resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"+ integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=+resolve-dir@^1.0.0, resolve-dir@^1.0.1:version "1.0.1"resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-1.0.1.tgz#79a40644c362be82f26effe739c9bb5382046f43"@@ -2810,6 +3769,14 @@ [email protected]:dependencies:path-parse "^1.0.5"+resolve@^1.1.4, resolve@^1.4.0:+ version "1.20.0"+ resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"+ integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==+ dependencies:+ is-core-module "^2.2.0"+ path-parse "^1.0.6"+resolve@^1.12.0, resolve@^1.17.0, resolve@^1.8.1:version "1.17.0"resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444"@@ -2868,6 +3835,14 @@ rimraf@^3.0.0:dependencies:glob "^7.1.3"+ripemd160@^2.0.0, ripemd160@^2.0.1:+ version "2.0.2"+ resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c"+ integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==+ dependencies:+ hash-base "^3.0.0"+ inherits "^2.0.1"+route-recognizer@^0.3.3:version "0.3.4"resolved "https://registry.yarnpkg.com/route-recognizer/-/route-recognizer-0.3.4.tgz#39ab1ffbce1c59e6d2bdca416f0932611e4f3ca3"@@ -2895,16 +3870,16 @@ rxjs@^6.6.0, rxjs@^6.6.3:dependencies:tslib "^1.9.0"+safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0:+ version "5.2.1"+ resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"+ integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==+safe-buffer@~5.1.0, safe-buffer@~5.1.1:version "5.1.2"resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==-safe-buffer@~5.2.0:- version "5.2.1"- resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"- integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==-safe-regex@^1.1.0:version "1.1.0"resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e"@@ -2912,7 +3887,7 @@ safe-regex@^1.1.0:dependencies:ret "~0.1.10"-"safer-buffer@>= 2.1.2 < 3":+"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.1.0:version "2.1.2"resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==@@ -2962,6 +3937,21 @@ set-value@^2.0.0, set-value@^2.0.1:is-plain-object "^2.0.3"split-string "^3.0.1"+sha.js@^2.4.0, sha.js@^2.4.8:+ version "2.4.11"+ resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7"+ integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==+ dependencies:+ inherits "^2.0.1"+ safe-buffer "^5.0.1"++shasum-object@^1.0.0:+ version "1.0.0"+ resolved "https://registry.yarnpkg.com/shasum-object/-/shasum-object-1.0.0.tgz#0b7b74ff5b66ecf9035475522fa05090ac47e29e"+ integrity sha512-Iqo5rp/3xVi6M4YheapzZhhGPVs0yZwHj7wvwQ1B9z8H6zk+FEnI7y3Teq7qwnekfEhu8WmG2z0z4iWZaxLWVg==+ dependencies:+ fast-safe-stringify "^2.0.7"+shebang-command@^1.2.0:version "1.2.0"resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"@@ -2974,11 +3964,21 @@ shebang-regex@^1.0.0:resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=+shell-quote@^1.6.1:+ version "1.7.2"+ resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.2.tgz#67a7d02c76c9da24f99d20808fcaded0e0e04be2"+ integrity sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==+signal-exit@^3.0.0, signal-exit@^3.0.2:version "3.0.3"resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c"integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==+simple-concat@^1.0.0:+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.1.tgz#f46976082ba35c2263f1c8ab5edfe26c41c9552f"+ integrity sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==+simple-html-tokenizer@^0.5.9:version "0.5.9"resolved "https://registry.yarnpkg.com/simple-html-tokenizer/-/simple-html-tokenizer-0.5.9.tgz#1a83fe97f5a3e39b335fddf71cfe9b0263b581c2"@@ -3064,7 +4064,7 @@ source-map-url@^0.4.0:resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3"integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=-source-map@^0.5.0, source-map@^0.5.6, source-map@~0.5.1:+source-map@^0.5.0, source-map@^0.5.6, source-map@~0.5.1, source-map@~0.5.3:version "0.5.7"resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=@@ -3105,11 +4105,45 @@ static-extend@^0.1.1:define-property "^0.2.5"object-copy "^0.1.0"+stream-browserify@^3.0.0:+ version "3.0.0"+ resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-3.0.0.tgz#22b0a2850cdf6503e73085da1fc7b7d0c2122f2f"+ integrity sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==+ dependencies:+ inherits "~2.0.4"+ readable-stream "^3.5.0"++stream-combiner2@^1.1.1:+ version "1.1.1"+ resolved "https://registry.yarnpkg.com/stream-combiner2/-/stream-combiner2-1.1.1.tgz#fb4d8a1420ea362764e21ad4780397bebcb41cbe"+ integrity sha1-+02KFCDqNidk4hrUeAOXvry0HL4=+ dependencies:+ duplexer2 "~0.1.0"+ readable-stream "^2.0.2"++stream-http@^3.0.0:+ version "3.2.0"+ resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-3.2.0.tgz#1872dfcf24cb15752677e40e5c3f9cc1926028b5"+ integrity sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==+ dependencies:+ builtin-status-codes "^3.0.0"+ inherits "^2.0.4"+ readable-stream "^3.6.0"+ xtend "^4.0.2"+stream-shift@^1.0.0:version "1.0.1"resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d"integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==+stream-splicer@^2.0.0:+ version "2.0.1"+ resolved "https://registry.yarnpkg.com/stream-splicer/-/stream-splicer-2.0.1.tgz#0b13b7ee2b5ac7e0609a7463d83899589a363fcd"+ integrity sha512-Xizh4/NPuYSyAXyT7g8IvdJ9HJpxIGL9PjyhtywCZvvP0OPIdqyrr4dMikeuvY8xahpdKEBlBTySe583totajg==+ dependencies:+ inherits "^2.0.1"+ readable-stream "^2.0.2"+string-width@^3.0.0:version "3.1.0"resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961"@@ -3128,6 +4162,22 @@ string-width@^4.1.0, string-width@^4.2.0:is-fullwidth-code-point "^3.0.0"strip-ansi "^6.0.0"+string.prototype.trimend@^1.0.4:+ version "1.0.4"+ resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz#e75ae90c2942c63504686c18b287b4a0b1a45f80"+ integrity sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==+ dependencies:+ call-bind "^1.0.2"+ define-properties "^1.1.3"++string.prototype.trimstart@^1.0.4:+ version "1.0.4"+ resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz#b36399af4ab2999b4c9c648bd7a3fb2bb26feeed"+ integrity sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==+ dependencies:+ call-bind "^1.0.2"+ define-properties "^1.1.3"+string_decoder@^1.1.1:version "1.3.0"resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e"@@ -3166,6 +4216,13 @@ strip-json-comments@^3.0.1:resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==+subarg@^1.0.0:+ version "1.0.0"+ resolved "https://registry.yarnpkg.com/subarg/-/subarg-1.0.0.tgz#f62cf17581e996b48fc965699f54c06ae268b8d2"+ integrity sha1-9izxdYHplrSPyWVpn1TAauJouNI=+ dependencies:+ minimist "^1.1.0"+supports-color@^5.3.0:version "5.5.0"resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"@@ -3180,6 +4237,13 @@ supports-color@^7.1.0:dependencies:has-flag "^4.0.0"+syntax-error@^1.1.1:+ version "1.4.0"+ resolved "https://registry.yarnpkg.com/syntax-error/-/syntax-error-1.4.0.tgz#2d9d4ff5c064acb711594a3e3b95054ad51d907c"+ integrity sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==+ dependencies:+ acorn-node "^1.2.0"+table@^5.2.3:version "5.4.6"resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e"@@ -3203,7 +4267,7 @@ through2-filter@^3.0.0:through2 "~2.0.0"xtend "~4.0.0"-through2@~2.0.0:+through2@^2.0.0, through2@~2.0.0:version "2.0.5"resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd"integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==@@ -3211,11 +4275,18 @@ through2@~2.0.0:readable-stream "~2.3.6"xtend "~4.0.1"-through@^2.3.6:+"through@>=2.2.7 <3", through@^2.3.6:version "2.3.8"resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=+timers-browserify@^1.0.1:+ version "1.4.2"+ resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-1.4.2.tgz#c9c58b575be8407375cb5e2462dacee74359f41d"+ integrity sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=+ dependencies:+ process "~0.11.0"+tmp@^0.0.33:version "0.0.33"resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"@@ -3285,6 +4356,11 @@ tslib@^1.9.0:resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043"integrity sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==+ version "0.0.1"+ resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.1.tgz#3f05251ee17904dfd0677546670db9651682b811"+ integrity sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==+type-check@~0.3.2:version "0.3.2"resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72"@@ -3342,11 +4418,37 @@ ultron@~1.1.0:resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.1.tgz#9fe1536a10a664a65266a1e3ccf85fd36302bc9c"integrity sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==+umd@^3.0.0:+ version "3.0.3"+ resolved "https://registry.yarnpkg.com/umd/-/umd-3.0.3.tgz#aa9fe653c42b9097678489c01000acb69f0b26cf"+ integrity sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==++unbox-primitive@^1.0.1:+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.1.tgz#085e215625ec3162574dc8859abee78a59b14471"+ integrity sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==+ dependencies:+ function-bind "^1.1.1"+ has-bigints "^1.0.1"+ has-symbols "^1.0.2"+ which-boxed-primitive "^1.0.2"+unc-path-regex@^0.1.2:version "0.1.2"resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa"integrity sha1-5z3T17DXxe2G+6xrCufYxqadUPo=+undeclared-identifiers@^1.1.2:+ version "1.1.3"+ resolved "https://registry.yarnpkg.com/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz#9254c1d37bdac0ac2b52de4b6722792d2a91e30f"+ integrity sha512-pJOW4nxjlmfwKApE4zvxLScM/njmwj/DiUBv7EabwE4O8kRUy+HIwxQtZLBPll/jx1LJyBcqNfB3/cpv9EZwOw==+ dependencies:+ acorn-node "^1.3.0"+ dash-ast "^1.0.0"+ get-assigned-identifiers "^1.2.0"+ simple-concat "^1.0.0"+ xtend "^4.0.1"+union-value@^1.0.0:version "1.0.1"resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847"@@ -3385,6 +4487,22 @@ urix@^0.1.0:resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=+url-parse@^1.4.7:+ version "1.5.1"+ resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.1.tgz#d5fa9890af8a5e1f274a2c98376510f6425f6e3b"+ integrity sha512-HOfCOUJt7iSYzEx/UqgtwKRMC6EU91NFhsCHMv9oM03VJcVo2Qrp8T8kI9D7amFf1cu+/3CEhgb3rF9zL7k85Q==+ dependencies:+ querystringify "^2.1.1"+ requires-port "^1.0.0"++url@~0.11.0:+ version "0.11.0"+ resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"+ integrity sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=+ dependencies:+ punycode "1.3.2"+ querystring "0.2.0"+use@^3.1.0:version "3.1.1"resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"@@ -3395,11 +4513,35 @@ util-deprecate@^1.0.1, util-deprecate@~1.0.1:resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=+ version "0.10.3"+ resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9"+ integrity sha1-evsa/lCAUkZInj23/g7TeTNqwPk=+ dependencies:+ inherits "2.0.1"++util@~0.12.0:+ version "0.12.4"+ resolved "https://registry.yarnpkg.com/util/-/util-0.12.4.tgz#66121a31420df8f01ca0c464be15dfa1d1850253"+ integrity sha512-bxZ9qtSlGUWSOy9Qa9Xgk11kSslpuZwaxCg4sNIDj6FLucDab2JxnHwyNTCpHMtK1MjoQiWQ6DiUMZYbSrO+Sw==+ dependencies:+ inherits "^2.0.3"+ is-arguments "^1.0.4"+ is-generator-function "^1.0.7"+ is-typed-array "^1.1.3"+ safe-buffer "^5.1.2"+ which-typed-array "^1.1.2"+v8-compile-cache@^2.0.3, v8-compile-cache@^2.1.1:version "2.1.1"resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz#54bc3cdd43317bca91e35dcaf305b1a7237de745"integrity sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ==+vm-browserify@^1.0.0:+ version "1.1.2"+ resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"+ integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==+version "0.3.2"resolved "https://registry.yarnpkg.com/walk-sync/-/walk-sync-0.3.2.tgz#4827280afc42d0e035367c4a4e31eeac0d136f75"@@ -3415,7 +4557,7 @@ walker@~1.0.5:dependencies:makeerror "1.0.x"-wasm-feature-detect@^1.2.9:+wasm-feature-detect@^1.2.11:version "1.2.11"resolved "https://registry.yarnpkg.com/wasm-feature-detect/-/wasm-feature-detect-1.2.11.tgz#e21992fd1f1d41a47490e392a5893cb39d81e29e"integrity sha512-HUqwaodrQGaZgz1lZaNioIkog9tkeEJjrM3eq4aUL04whXOVDRc/o2EGb/8kV0QX411iAYWEqq7fMBmJ6dKS6w==@@ -3427,11 +4569,35 @@ wcwidth@^1.0.1:dependencies:defaults "^1.0.3"+which-boxed-primitive@^1.0.2:+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6"+ integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==+ dependencies:+ is-bigint "^1.0.1"+ is-boolean-object "^1.1.0"+ is-number-object "^1.0.4"+ is-string "^1.0.5"+ is-symbol "^1.0.3"+which-module@^2.0.0:version "2.0.0"resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=+which-typed-array@^1.1.2:+ version "1.1.4"+ resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.4.tgz#8fcb7d3ee5adf2d771066fba7cf37e32fe8711ff"+ integrity sha512-49E0SpUe90cjpoc7BOJwyPHRqSAd12c10Qm2amdEZrJPCY2NDxaW01zHITrem+rnETY3dwrbH3UUrUwagfCYDA==+ dependencies:+ available-typed-arrays "^1.0.2"+ call-bind "^1.0.0"+ es-abstract "^1.18.0-next.1"+ foreach "^2.0.5"+ function-bind "^1.1.1"+ has-symbols "^1.0.1"+ is-typed-array "^1.1.3"+which@^1.2.14, which@^1.2.9:version "1.3.1"resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"@@ -3439,6 +4605,11 @@ which@^1.2.14, which@^1.2.9:dependencies:isexe "^2.0.0"+wildcard@^1.1.0:+ version "1.1.2"+ resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-1.1.2.tgz#a7020453084d8cd2efe70ba9d3696263de1710a5"+ integrity sha1-pwIEUwhNjNLv5wup02liY94XEKU=+version "0.1.0"resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d"@@ -3539,7 +4710,7 @@ ws@^6.1.0:dependencies:async-limiter "~1.0.0"-xtend@~4.0.0, xtend@~4.0.1:+xtend@^4.0.0, xtend@^4.0.1, xtend@^4.0.2, xtend@~4.0.0, xtend@~4.0.1:version "4.0.2"resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==