@depay/widgets 6.30.0 → 6.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/umd/index.js CHANGED
@@ -63,763 +63,391 @@
63
63
  return fn(module, module.exports), module.exports;
64
64
  }
65
65
 
66
- /**
67
- * Copyright (c) 2014-present, Facebook, Inc.
68
- *
69
- * This source code is licensed under the MIT license found in the
70
- * LICENSE file in the root directory of this source tree.
71
- */
66
+ var _typeof_1 = createCommonjsModule(function (module) {
67
+ function _typeof(obj) {
68
+ "@babel/helpers - typeof";
72
69
 
73
- var runtime_1 = createCommonjsModule(function (module) {
74
- var runtime = (function (exports) {
70
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
71
+ return typeof obj;
72
+ } : function (obj) {
73
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
74
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
75
+ }
76
+
77
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
78
+ });
75
79
 
76
- var Op = Object.prototype;
77
- var hasOwn = Op.hasOwnProperty;
78
- var undefined$1; // More compressible than void 0.
79
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
80
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
81
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
82
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
80
+ var regeneratorRuntime$1 = createCommonjsModule(function (module) {
81
+ var _typeof = _typeof_1["default"];
82
+
83
+ function _regeneratorRuntime() {
84
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
85
+
86
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
87
+ return exports;
88
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
89
+ var exports = {},
90
+ Op = Object.prototype,
91
+ hasOwn = Op.hasOwnProperty,
92
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
93
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
94
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
95
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
83
96
 
84
97
  function define(obj, key, value) {
85
- Object.defineProperty(obj, key, {
98
+ return Object.defineProperty(obj, key, {
86
99
  value: value,
87
- enumerable: true,
88
- configurable: true,
89
- writable: true
90
- });
91
- return obj[key];
100
+ enumerable: !0,
101
+ configurable: !0,
102
+ writable: !0
103
+ }), obj[key];
92
104
  }
105
+
93
106
  try {
94
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
95
107
  define({}, "");
96
108
  } catch (err) {
97
- define = function(obj, key, value) {
109
+ define = function define(obj, key, value) {
98
110
  return obj[key] = value;
99
111
  };
100
112
  }
101
113
 
102
114
  function wrap(innerFn, outerFn, self, tryLocsList) {
103
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
104
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
105
- var generator = Object.create(protoGenerator.prototype);
106
- var context = new Context(tryLocsList || []);
115
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
116
+ generator = Object.create(protoGenerator.prototype),
117
+ context = new Context(tryLocsList || []);
118
+ return generator._invoke = function (innerFn, self, context) {
119
+ var state = "suspendedStart";
120
+ return function (method, arg) {
121
+ if ("executing" === state) throw new Error("Generator is already running");
122
+
123
+ if ("completed" === state) {
124
+ if ("throw" === method) throw arg;
125
+ return doneResult();
126
+ }
127
+
128
+ for (context.method = method, context.arg = arg;;) {
129
+ var delegate = context.delegate;
107
130
 
108
- // The ._invoke method unifies the implementations of the .next,
109
- // .throw, and .return methods.
110
- generator._invoke = makeInvokeMethod(innerFn, self, context);
131
+ if (delegate) {
132
+ var delegateResult = maybeInvokeDelegate(delegate, context);
111
133
 
112
- return generator;
134
+ if (delegateResult) {
135
+ if (delegateResult === ContinueSentinel) continue;
136
+ return delegateResult;
137
+ }
138
+ }
139
+
140
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
141
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
142
+ context.dispatchException(context.arg);
143
+ } else "return" === context.method && context.abrupt("return", context.arg);
144
+ state = "executing";
145
+ var record = tryCatch(innerFn, self, context);
146
+
147
+ if ("normal" === record.type) {
148
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
149
+ return {
150
+ value: record.arg,
151
+ done: context.done
152
+ };
153
+ }
154
+
155
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
156
+ }
157
+ };
158
+ }(innerFn, self, context), generator;
113
159
  }
114
- exports.wrap = wrap;
115
160
 
116
- // Try/catch helper to minimize deoptimizations. Returns a completion
117
- // record like context.tryEntries[i].completion. This interface could
118
- // have been (and was previously) designed to take a closure to be
119
- // invoked without arguments, but in all the cases we care about we
120
- // already have an existing method we want to call, so there's no need
121
- // to create a new function object. We can even get away with assuming
122
- // the method takes exactly one argument, since that happens to be true
123
- // in every case, so we don't have to touch the arguments object. The
124
- // only additional allocation required is the completion record, which
125
- // has a stable shape and so hopefully should be cheap to allocate.
126
161
  function tryCatch(fn, obj, arg) {
127
162
  try {
128
- return { type: "normal", arg: fn.call(obj, arg) };
163
+ return {
164
+ type: "normal",
165
+ arg: fn.call(obj, arg)
166
+ };
129
167
  } catch (err) {
130
- return { type: "throw", arg: err };
168
+ return {
169
+ type: "throw",
170
+ arg: err
171
+ };
131
172
  }
132
173
  }
133
174
 
134
- var GenStateSuspendedStart = "suspendedStart";
135
- var GenStateSuspendedYield = "suspendedYield";
136
- var GenStateExecuting = "executing";
137
- var GenStateCompleted = "completed";
138
-
139
- // Returning this object from the innerFn has the same effect as
140
- // breaking out of the dispatch switch statement.
175
+ exports.wrap = wrap;
141
176
  var ContinueSentinel = {};
142
177
 
143
- // Dummy constructor functions that we use as the .constructor and
144
- // .constructor.prototype properties for functions that return Generator
145
- // objects. For full spec compliance, you may wish to configure your
146
- // minifier not to mangle the names of these two functions.
147
178
  function Generator() {}
179
+
148
180
  function GeneratorFunction() {}
181
+
149
182
  function GeneratorFunctionPrototype() {}
150
183
 
151
- // This is a polyfill for %IteratorPrototype% for environments that
152
- // don't natively support it.
153
184
  var IteratorPrototype = {};
154
185
  define(IteratorPrototype, iteratorSymbol, function () {
155
186
  return this;
156
187
  });
188
+ var getProto = Object.getPrototypeOf,
189
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
190
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
191
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
157
192
 
158
- var getProto = Object.getPrototypeOf;
159
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
160
- if (NativeIteratorPrototype &&
161
- NativeIteratorPrototype !== Op &&
162
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
163
- // This environment has a native %IteratorPrototype%; use it instead
164
- // of the polyfill.
165
- IteratorPrototype = NativeIteratorPrototype;
166
- }
167
-
168
- var Gp = GeneratorFunctionPrototype.prototype =
169
- Generator.prototype = Object.create(IteratorPrototype);
170
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
171
- define(Gp, "constructor", GeneratorFunctionPrototype);
172
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
173
- GeneratorFunction.displayName = define(
174
- GeneratorFunctionPrototype,
175
- toStringTagSymbol,
176
- "GeneratorFunction"
177
- );
178
-
179
- // Helper for defining the .next, .throw, and .return methods of the
180
- // Iterator interface in terms of a single ._invoke method.
181
193
  function defineIteratorMethods(prototype) {
182
- ["next", "throw", "return"].forEach(function(method) {
183
- define(prototype, method, function(arg) {
194
+ ["next", "throw", "return"].forEach(function (method) {
195
+ define(prototype, method, function (arg) {
184
196
  return this._invoke(method, arg);
185
197
  });
186
198
  });
187
199
  }
188
200
 
189
- exports.isGeneratorFunction = function(genFun) {
190
- var ctor = typeof genFun === "function" && genFun.constructor;
191
- return ctor
192
- ? ctor === GeneratorFunction ||
193
- // For the native GeneratorFunction constructor, the best we can
194
- // do is to check its .name property.
195
- (ctor.displayName || ctor.name) === "GeneratorFunction"
196
- : false;
197
- };
198
-
199
- exports.mark = function(genFun) {
200
- if (Object.setPrototypeOf) {
201
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
202
- } else {
203
- genFun.__proto__ = GeneratorFunctionPrototype;
204
- define(genFun, toStringTagSymbol, "GeneratorFunction");
205
- }
206
- genFun.prototype = Object.create(Gp);
207
- return genFun;
208
- };
209
-
210
- // Within the body of any async function, `await x` is transformed to
211
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
212
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
213
- // meant to be awaited.
214
- exports.awrap = function(arg) {
215
- return { __await: arg };
216
- };
217
-
218
201
  function AsyncIterator(generator, PromiseImpl) {
219
202
  function invoke(method, arg, resolve, reject) {
220
203
  var record = tryCatch(generator[method], generator, arg);
221
- if (record.type === "throw") {
222
- reject(record.arg);
223
- } else {
224
- var result = record.arg;
225
- var value = result.value;
226
- if (value &&
227
- typeof value === "object" &&
228
- hasOwn.call(value, "__await")) {
229
- return PromiseImpl.resolve(value.__await).then(function(value) {
230
- invoke("next", value, resolve, reject);
231
- }, function(err) {
232
- invoke("throw", err, resolve, reject);
233
- });
234
- }
235
204
 
236
- return PromiseImpl.resolve(value).then(function(unwrapped) {
237
- // When a yielded Promise is resolved, its final value becomes
238
- // the .value of the Promise<{value,done}> result for the
239
- // current iteration.
240
- result.value = unwrapped;
241
- resolve(result);
242
- }, function(error) {
243
- // If a rejected Promise was yielded, throw the rejection back
244
- // into the async generator function so it can be handled there.
205
+ if ("throw" !== record.type) {
206
+ var result = record.arg,
207
+ value = result.value;
208
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
209
+ invoke("next", value, resolve, reject);
210
+ }, function (err) {
211
+ invoke("throw", err, resolve, reject);
212
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
213
+ result.value = unwrapped, resolve(result);
214
+ }, function (error) {
245
215
  return invoke("throw", error, resolve, reject);
246
216
  });
247
217
  }
218
+
219
+ reject(record.arg);
248
220
  }
249
221
 
250
222
  var previousPromise;
251
223
 
252
- function enqueue(method, arg) {
224
+ this._invoke = function (method, arg) {
253
225
  function callInvokeWithMethodAndArg() {
254
- return new PromiseImpl(function(resolve, reject) {
226
+ return new PromiseImpl(function (resolve, reject) {
255
227
  invoke(method, arg, resolve, reject);
256
228
  });
257
229
  }
258
230
 
259
- return previousPromise =
260
- // If enqueue has been called before, then we want to wait until
261
- // all previous Promises have been resolved before calling invoke,
262
- // so that results are always delivered in the correct order. If
263
- // enqueue has not been called before, then it is important to
264
- // call invoke immediately, without waiting on a callback to fire,
265
- // so that the async generator function has the opportunity to do
266
- // any necessary setup in a predictable way. This predictability
267
- // is why the Promise constructor synchronously invokes its
268
- // executor callback, and why async functions synchronously
269
- // execute code before the first await. Since we implement simple
270
- // async functions in terms of async generators, it is especially
271
- // important to get this right, even though it requires care.
272
- previousPromise ? previousPromise.then(
273
- callInvokeWithMethodAndArg,
274
- // Avoid propagating failures to Promises returned by later
275
- // invocations of the iterator.
276
- callInvokeWithMethodAndArg
277
- ) : callInvokeWithMethodAndArg();
278
- }
279
-
280
- // Define the unified helper method that is used to implement .next,
281
- // .throw, and .return (see defineIteratorMethods).
282
- this._invoke = enqueue;
283
- }
284
-
285
- defineIteratorMethods(AsyncIterator.prototype);
286
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
287
- return this;
288
- });
289
- exports.AsyncIterator = AsyncIterator;
290
-
291
- // Note that simple async functions are implemented on top of
292
- // AsyncIterator objects; they just return a Promise for the value of
293
- // the final result produced by the iterator.
294
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
295
- if (PromiseImpl === void 0) PromiseImpl = Promise;
296
-
297
- var iter = new AsyncIterator(
298
- wrap(innerFn, outerFn, self, tryLocsList),
299
- PromiseImpl
300
- );
301
-
302
- return exports.isGeneratorFunction(outerFn)
303
- ? iter // If outerFn is a generator, return the full iterator.
304
- : iter.next().then(function(result) {
305
- return result.done ? result.value : iter.next();
306
- });
307
- };
308
-
309
- function makeInvokeMethod(innerFn, self, context) {
310
- var state = GenStateSuspendedStart;
311
-
312
- return function invoke(method, arg) {
313
- if (state === GenStateExecuting) {
314
- throw new Error("Generator is already running");
315
- }
316
-
317
- if (state === GenStateCompleted) {
318
- if (method === "throw") {
319
- throw arg;
320
- }
321
-
322
- // Be forgiving, per 25.3.3.3.3 of the spec:
323
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
324
- return doneResult();
325
- }
326
-
327
- context.method = method;
328
- context.arg = arg;
329
-
330
- while (true) {
331
- var delegate = context.delegate;
332
- if (delegate) {
333
- var delegateResult = maybeInvokeDelegate(delegate, context);
334
- if (delegateResult) {
335
- if (delegateResult === ContinueSentinel) continue;
336
- return delegateResult;
337
- }
338
- }
339
-
340
- if (context.method === "next") {
341
- // Setting context._sent for legacy support of Babel's
342
- // function.sent implementation.
343
- context.sent = context._sent = context.arg;
344
-
345
- } else if (context.method === "throw") {
346
- if (state === GenStateSuspendedStart) {
347
- state = GenStateCompleted;
348
- throw context.arg;
349
- }
350
-
351
- context.dispatchException(context.arg);
352
-
353
- } else if (context.method === "return") {
354
- context.abrupt("return", context.arg);
355
- }
356
-
357
- state = GenStateExecuting;
358
-
359
- var record = tryCatch(innerFn, self, context);
360
- if (record.type === "normal") {
361
- // If an exception is thrown from innerFn, we leave state ===
362
- // GenStateExecuting and loop back for another invocation.
363
- state = context.done
364
- ? GenStateCompleted
365
- : GenStateSuspendedYield;
366
-
367
- if (record.arg === ContinueSentinel) {
368
- continue;
369
- }
370
-
371
- return {
372
- value: record.arg,
373
- done: context.done
374
- };
375
-
376
- } else if (record.type === "throw") {
377
- state = GenStateCompleted;
378
- // Dispatch the exception by looping back around to the
379
- // context.dispatchException(context.arg) call above.
380
- context.method = "throw";
381
- context.arg = record.arg;
382
- }
383
- }
231
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
384
232
  };
385
233
  }
386
234
 
387
- // Call delegate.iterator[context.method](context.arg) and handle the
388
- // result, either by returning a { value, done } result from the
389
- // delegate iterator, or by modifying context.method and context.arg,
390
- // setting context.delegate to null, and returning the ContinueSentinel.
391
235
  function maybeInvokeDelegate(delegate, context) {
392
236
  var method = delegate.iterator[context.method];
393
- if (method === undefined$1) {
394
- // A .throw or .return when the delegate iterator has no .throw
395
- // method always terminates the yield* loop.
396
- context.delegate = null;
397
-
398
- if (context.method === "throw") {
399
- // Note: ["return"] must be used for ES3 parsing compatibility.
400
- if (delegate.iterator["return"]) {
401
- // If the delegate iterator has a return method, give it a
402
- // chance to clean up.
403
- context.method = "return";
404
- context.arg = undefined$1;
405
- maybeInvokeDelegate(delegate, context);
406
-
407
- if (context.method === "throw") {
408
- // If maybeInvokeDelegate(context) changed context.method from
409
- // "return" to "throw", let that override the TypeError below.
410
- return ContinueSentinel;
411
- }
412
- }
413
237
 
414
- context.method = "throw";
415
- context.arg = new TypeError(
416
- "The iterator does not provide a 'throw' method");
238
+ if (undefined === method) {
239
+ if (context.delegate = null, "throw" === context.method) {
240
+ if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
241
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
417
242
  }
418
243
 
419
244
  return ContinueSentinel;
420
245
  }
421
246
 
422
247
  var record = tryCatch(method, delegate.iterator, context.arg);
423
-
424
- if (record.type === "throw") {
425
- context.method = "throw";
426
- context.arg = record.arg;
427
- context.delegate = null;
428
- return ContinueSentinel;
429
- }
430
-
248
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
431
249
  var info = record.arg;
432
-
433
- if (! info) {
434
- context.method = "throw";
435
- context.arg = new TypeError("iterator result is not an object");
436
- context.delegate = null;
437
- return ContinueSentinel;
438
- }
439
-
440
- if (info.done) {
441
- // Assign the result of the finished delegate to the temporary
442
- // variable specified by delegate.resultName (see delegateYield).
443
- context[delegate.resultName] = info.value;
444
-
445
- // Resume execution at the desired location (see delegateYield).
446
- context.next = delegate.nextLoc;
447
-
448
- // If context.method was "throw" but the delegate handled the
449
- // exception, let the outer generator proceed normally. If
450
- // context.method was "next", forget context.arg since it has been
451
- // "consumed" by the delegate iterator. If context.method was
452
- // "return", allow the original .return call to continue in the
453
- // outer generator.
454
- if (context.method !== "return") {
455
- context.method = "next";
456
- context.arg = undefined$1;
457
- }
458
-
459
- } else {
460
- // Re-yield the result returned by the delegate method.
461
- return info;
462
- }
463
-
464
- // The delegate iterator is finished, so forget it and continue with
465
- // the outer generator.
466
- context.delegate = null;
467
- return ContinueSentinel;
250
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
468
251
  }
469
252
 
470
- // Define Generator.prototype.{next,throw,return} in terms of the
471
- // unified ._invoke helper method.
472
- defineIteratorMethods(Gp);
473
-
474
- define(Gp, toStringTagSymbol, "Generator");
475
-
476
- // A Generator should always return itself as the iterator object when the
477
- // @@iterator function is called on it. Some browsers' implementations of the
478
- // iterator prototype chain incorrectly implement this, causing the Generator
479
- // object to not be returned from this call. This ensures that doesn't happen.
480
- // See https://github.com/facebook/regenerator/issues/274 for more details.
481
- define(Gp, iteratorSymbol, function() {
482
- return this;
483
- });
484
-
485
- define(Gp, "toString", function() {
486
- return "[object Generator]";
487
- });
488
-
489
253
  function pushTryEntry(locs) {
490
- var entry = { tryLoc: locs[0] };
491
-
492
- if (1 in locs) {
493
- entry.catchLoc = locs[1];
494
- }
495
-
496
- if (2 in locs) {
497
- entry.finallyLoc = locs[2];
498
- entry.afterLoc = locs[3];
499
- }
500
-
501
- this.tryEntries.push(entry);
254
+ var entry = {
255
+ tryLoc: locs[0]
256
+ };
257
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
502
258
  }
503
259
 
504
260
  function resetTryEntry(entry) {
505
261
  var record = entry.completion || {};
506
- record.type = "normal";
507
- delete record.arg;
508
- entry.completion = record;
262
+ record.type = "normal", delete record.arg, entry.completion = record;
509
263
  }
510
264
 
511
265
  function Context(tryLocsList) {
512
- // The root entry object (effectively a try statement without a catch
513
- // or a finally block) gives us a place to store values thrown from
514
- // locations where there is no enclosing try statement.
515
- this.tryEntries = [{ tryLoc: "root" }];
516
- tryLocsList.forEach(pushTryEntry, this);
517
- this.reset(true);
266
+ this.tryEntries = [{
267
+ tryLoc: "root"
268
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
518
269
  }
519
270
 
520
- exports.keys = function(object) {
521
- var keys = [];
522
- for (var key in object) {
523
- keys.push(key);
524
- }
525
- keys.reverse();
526
-
527
- // Rather than returning an object with a next method, we keep
528
- // things simple and return the next function itself.
529
- return function next() {
530
- while (keys.length) {
531
- var key = keys.pop();
532
- if (key in object) {
533
- next.value = key;
534
- next.done = false;
535
- return next;
536
- }
537
- }
538
-
539
- // To avoid creating an additional object, we just hang the .value
540
- // and .done properties off the next function object itself. This
541
- // also ensures that the minifier will not anonymize the function.
542
- next.done = true;
543
- return next;
544
- };
545
- };
546
-
547
271
  function values(iterable) {
548
272
  if (iterable) {
549
273
  var iteratorMethod = iterable[iteratorSymbol];
550
- if (iteratorMethod) {
551
- return iteratorMethod.call(iterable);
552
- }
553
-
554
- if (typeof iterable.next === "function") {
555
- return iterable;
556
- }
274
+ if (iteratorMethod) return iteratorMethod.call(iterable);
275
+ if ("function" == typeof iterable.next) return iterable;
557
276
 
558
277
  if (!isNaN(iterable.length)) {
559
- var i = -1, next = function next() {
560
- while (++i < iterable.length) {
561
- if (hasOwn.call(iterable, i)) {
562
- next.value = iterable[i];
563
- next.done = false;
564
- return next;
565
- }
278
+ var i = -1,
279
+ next = function next() {
280
+ for (; ++i < iterable.length;) {
281
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
566
282
  }
567
283
 
568
- next.value = undefined$1;
569
- next.done = true;
570
-
571
- return next;
284
+ return next.value = undefined, next.done = !0, next;
572
285
  };
573
286
 
574
287
  return next.next = next;
575
288
  }
576
289
  }
577
290
 
578
- // Return an iterator with no values.
579
- return { next: doneResult };
291
+ return {
292
+ next: doneResult
293
+ };
580
294
  }
581
- exports.values = values;
582
295
 
583
296
  function doneResult() {
584
- return { value: undefined$1, done: true };
297
+ return {
298
+ value: undefined,
299
+ done: !0
300
+ };
585
301
  }
586
302
 
587
- Context.prototype = {
588
- constructor: Context,
589
-
590
- reset: function(skipTempReset) {
591
- this.prev = 0;
592
- this.next = 0;
593
- // Resetting context._sent for legacy support of Babel's
594
- // function.sent implementation.
595
- this.sent = this._sent = undefined$1;
596
- this.done = false;
597
- this.delegate = null;
598
-
599
- this.method = "next";
600
- this.arg = undefined$1;
601
-
602
- this.tryEntries.forEach(resetTryEntry);
603
-
604
- if (!skipTempReset) {
605
- for (var name in this) {
606
- // Not sure about the optimal order of these conditions:
607
- if (name.charAt(0) === "t" &&
608
- hasOwn.call(this, name) &&
609
- !isNaN(+name.slice(1))) {
610
- this[name] = undefined$1;
611
- }
612
- }
613
- }
614
- },
303
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
304
+ var ctor = "function" == typeof genFun && genFun.constructor;
305
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
306
+ }, exports.mark = function (genFun) {
307
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
308
+ }, exports.awrap = function (arg) {
309
+ return {
310
+ __await: arg
311
+ };
312
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
313
+ return this;
314
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
315
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
316
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
317
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
318
+ return result.done ? result.value : iter.next();
319
+ });
320
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
321
+ return this;
322
+ }), define(Gp, "toString", function () {
323
+ return "[object Generator]";
324
+ }), exports.keys = function (object) {
325
+ var keys = [];
615
326
 
616
- stop: function() {
617
- this.done = true;
327
+ for (var key in object) {
328
+ keys.push(key);
329
+ }
618
330
 
619
- var rootEntry = this.tryEntries[0];
620
- var rootRecord = rootEntry.completion;
621
- if (rootRecord.type === "throw") {
622
- throw rootRecord.arg;
331
+ return keys.reverse(), function next() {
332
+ for (; keys.length;) {
333
+ var key = keys.pop();
334
+ if (key in object) return next.value = key, next.done = !1, next;
623
335
  }
624
336
 
337
+ return next.done = !0, next;
338
+ };
339
+ }, exports.values = values, Context.prototype = {
340
+ constructor: Context,
341
+ reset: function reset(skipTempReset) {
342
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
343
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
344
+ }
345
+ },
346
+ stop: function stop() {
347
+ this.done = !0;
348
+ var rootRecord = this.tryEntries[0].completion;
349
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
625
350
  return this.rval;
626
351
  },
627
-
628
- dispatchException: function(exception) {
629
- if (this.done) {
630
- throw exception;
631
- }
632
-
352
+ dispatchException: function dispatchException(exception) {
353
+ if (this.done) throw exception;
633
354
  var context = this;
634
- function handle(loc, caught) {
635
- record.type = "throw";
636
- record.arg = exception;
637
- context.next = loc;
638
-
639
- if (caught) {
640
- // If the dispatched exception was caught by a catch block,
641
- // then let that catch block handle the exception normally.
642
- context.method = "next";
643
- context.arg = undefined$1;
644
- }
645
355
 
646
- return !! caught;
356
+ function handle(loc, caught) {
357
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
647
358
  }
648
359
 
649
360
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
650
- var entry = this.tryEntries[i];
651
- var record = entry.completion;
652
-
653
- if (entry.tryLoc === "root") {
654
- // Exception thrown outside of any try block that could handle
655
- // it, so set the completion value of the entire function to
656
- // throw the exception.
657
- return handle("end");
658
- }
361
+ var entry = this.tryEntries[i],
362
+ record = entry.completion;
363
+ if ("root" === entry.tryLoc) return handle("end");
659
364
 
660
365
  if (entry.tryLoc <= this.prev) {
661
- var hasCatch = hasOwn.call(entry, "catchLoc");
662
- var hasFinally = hasOwn.call(entry, "finallyLoc");
366
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
367
+ hasFinally = hasOwn.call(entry, "finallyLoc");
663
368
 
664
369
  if (hasCatch && hasFinally) {
665
- if (this.prev < entry.catchLoc) {
666
- return handle(entry.catchLoc, true);
667
- } else if (this.prev < entry.finallyLoc) {
668
- return handle(entry.finallyLoc);
669
- }
670
-
370
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
371
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
671
372
  } else if (hasCatch) {
672
- if (this.prev < entry.catchLoc) {
673
- return handle(entry.catchLoc, true);
674
- }
675
-
676
- } else if (hasFinally) {
677
- if (this.prev < entry.finallyLoc) {
678
- return handle(entry.finallyLoc);
679
- }
680
-
373
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
681
374
  } else {
682
- throw new Error("try statement without catch or finally");
375
+ if (!hasFinally) throw new Error("try statement without catch or finally");
376
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
683
377
  }
684
378
  }
685
379
  }
686
380
  },
687
-
688
- abrupt: function(type, arg) {
381
+ abrupt: function abrupt(type, arg) {
689
382
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
690
383
  var entry = this.tryEntries[i];
691
- if (entry.tryLoc <= this.prev &&
692
- hasOwn.call(entry, "finallyLoc") &&
693
- this.prev < entry.finallyLoc) {
384
+
385
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
694
386
  var finallyEntry = entry;
695
387
  break;
696
388
  }
697
389
  }
698
390
 
699
- if (finallyEntry &&
700
- (type === "break" ||
701
- type === "continue") &&
702
- finallyEntry.tryLoc <= arg &&
703
- arg <= finallyEntry.finallyLoc) {
704
- // Ignore the finally entry if control is not jumping to a
705
- // location outside the try/catch block.
706
- finallyEntry = null;
707
- }
708
-
391
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
709
392
  var record = finallyEntry ? finallyEntry.completion : {};
710
- record.type = type;
711
- record.arg = arg;
712
-
713
- if (finallyEntry) {
714
- this.method = "next";
715
- this.next = finallyEntry.finallyLoc;
716
- return ContinueSentinel;
717
- }
718
-
719
- return this.complete(record);
393
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
720
394
  },
721
-
722
- complete: function(record, afterLoc) {
723
- if (record.type === "throw") {
724
- throw record.arg;
725
- }
726
-
727
- if (record.type === "break" ||
728
- record.type === "continue") {
729
- this.next = record.arg;
730
- } else if (record.type === "return") {
731
- this.rval = this.arg = record.arg;
732
- this.method = "return";
733
- this.next = "end";
734
- } else if (record.type === "normal" && afterLoc) {
735
- this.next = afterLoc;
736
- }
737
-
738
- return ContinueSentinel;
395
+ complete: function complete(record, afterLoc) {
396
+ if ("throw" === record.type) throw record.arg;
397
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
739
398
  },
740
-
741
- finish: function(finallyLoc) {
399
+ finish: function finish(finallyLoc) {
742
400
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
743
401
  var entry = this.tryEntries[i];
744
- if (entry.finallyLoc === finallyLoc) {
745
- this.complete(entry.completion, entry.afterLoc);
746
- resetTryEntry(entry);
747
- return ContinueSentinel;
748
- }
402
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
749
403
  }
750
404
  },
751
-
752
- "catch": function(tryLoc) {
405
+ "catch": function _catch(tryLoc) {
753
406
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
754
407
  var entry = this.tryEntries[i];
408
+
755
409
  if (entry.tryLoc === tryLoc) {
756
410
  var record = entry.completion;
757
- if (record.type === "throw") {
411
+
412
+ if ("throw" === record.type) {
758
413
  var thrown = record.arg;
759
414
  resetTryEntry(entry);
760
415
  }
416
+
761
417
  return thrown;
762
418
  }
763
419
  }
764
420
 
765
- // The context.catch method must only be called with a location
766
- // argument that corresponds to a known catch block.
767
421
  throw new Error("illegal catch attempt");
768
422
  },
769
-
770
- delegateYield: function(iterable, resultName, nextLoc) {
771
- this.delegate = {
423
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
424
+ return this.delegate = {
772
425
  iterator: values(iterable),
773
426
  resultName: resultName,
774
427
  nextLoc: nextLoc
775
- };
776
-
777
- if (this.method === "next") {
778
- // Deliberately forget the last sent value so that we don't
779
- // accidentally pass it on to the delegate.
780
- this.arg = undefined$1;
781
- }
782
-
783
- return ContinueSentinel;
428
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
784
429
  }
785
- };
430
+ }, exports;
431
+ }
786
432
 
787
- // Regardless of whether this script is executing as a CommonJS module
788
- // or not, return the runtime object so that we can declare the variable
789
- // regeneratorRuntime in the outer scope, which allows this module to be
790
- // injected easily by `bin/regenerator --include-runtime script.js`.
791
- return exports;
433
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
434
+ });
435
+
436
+ // TODO(Babel 8): Remove this file.
792
437
 
793
- }(
794
- // If this script is executing as a CommonJS module, use module.exports
795
- // as the regeneratorRuntime namespace. Otherwise create a new empty
796
- // object. Either way, the resulting object will be used to initialize
797
- // the regeneratorRuntime variable at the top of this file.
798
- module.exports
799
- ));
438
+ var runtime = regeneratorRuntime$1();
439
+ var regenerator = runtime;
800
440
 
441
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
801
442
  try {
802
443
  regeneratorRuntime = runtime;
803
444
  } catch (accidentalStrictMode) {
804
- // This module should not be running in strict mode, so the above
805
- // assignment should always work unless something is misconfigured. Just
806
- // in case runtime.js accidentally runs in strict mode, in modern engines
807
- // we can explicitly access globalThis. In older engines we can escape
808
- // strict mode using a global Function call. This could conceivably fail
809
- // if a Content Security Policy forbids using Function, but in that case
810
- // the proper solution is to fix the accidental strict mode problem. If
811
- // you've misconfigured your bundler to force strict mode and applied a
812
- // CSP to forbid Function, and you're not willing to fix either of those
813
- // problems, please detail your unique predicament in a GitHub issue.
814
445
  if (typeof globalThis === "object") {
815
446
  globalThis.regeneratorRuntime = runtime;
816
447
  } else {
817
448
  Function("r", "regeneratorRuntime = r")(runtime);
818
449
  }
819
450
  }
820
- });
821
-
822
- var regenerator = runtime_1;
823
451
 
824
452
  function _arrayWithHoles(arr) {
825
453
  if (Array.isArray(arr)) return arr;
@@ -1343,11 +971,10 @@
1343
971
  }
1344
972
 
1345
973
  function _setPrototypeOf(o, p) {
1346
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
974
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
1347
975
  o.__proto__ = p;
1348
976
  return o;
1349
977
  };
1350
-
1351
978
  return _setPrototypeOf(o, p);
1352
979
  }
1353
980
 
@@ -1388,7 +1015,7 @@
1388
1015
  }
1389
1016
 
1390
1017
  function _getPrototypeOf(o) {
1391
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
1018
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
1392
1019
  return o.__proto__ || Object.getPrototypeOf(o);
1393
1020
  };
1394
1021
  return _getPrototypeOf(o);
@@ -1786,7 +1413,7 @@
1786
1413
  },
1787
1414
  fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
1788
1415
  }, style);
1789
- return [ResetStyle(), DialogStyle(), ButtonCircularStyle(), ButtonPrimaryStyle(style), CardStyle(style), PoweredByStyle(style), GraphicStyle(), SkeletonStyle(), TokenAmountStyle(), TextStyle(style), FontStyle(style), IconStyle(style), OpacityStyle(), PaddingStyle(), HeightStyle(), LoadingTextStyle(style), RangeSliderStyle(style), InputStyle(), TextButtonStyle(style), ImageStyle(), BlockchainLogoStyle(), SearchStyle(style), TokenImageStyle(), AlertStyle(), TableStyle(), LinkStyle(style), TooltipStyle(style)].join('');
1416
+ return [ResetStyle(), DialogStyle(style), ButtonCircularStyle(), ButtonPrimaryStyle(style), CardStyle(style), PoweredByStyle(style), GraphicStyle(), SkeletonStyle(), TokenAmountStyle(), TextStyle(style), FontStyle(style), IconStyle(style), OpacityStyle(style), PaddingStyle(), HeightStyle(), LoadingTextStyle(style), RangeSliderStyle(style), InputStyle(style), TextButtonStyle(style), ImageStyle(style), BlockchainLogoStyle(style), SearchStyle(style), TokenImageStyle(style), AlertStyle(style), TableStyle(style), LinkStyle(style), TooltipStyle(style)].join('');
1790
1417
  });
1791
1418
 
1792
1419
  var mount = (function (_ref, content) {
@@ -3606,6 +3233,7 @@
3606
3233
  return /*#__PURE__*/React__default["default"].createElement(DonationOverviewSkeleton, null);
3607
3234
  }
3608
3235
 
3236
+ var blockchain = web3Blockchains.Blockchain.findByName(payment.blockchain);
3609
3237
  return /*#__PURE__*/React__default["default"].createElement(Dialog$1, {
3610
3238
  header: /*#__PURE__*/React__default["default"].createElement("div", {
3611
3239
  className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
@@ -3655,6 +3283,11 @@
3655
3283
  }, /*#__PURE__*/React__default["default"].createElement(reactTokenImage.TokenImage, {
3656
3284
  blockchain: payment.route.blockchain,
3657
3285
  address: payment.token
3286
+ }), /*#__PURE__*/React__default["default"].createElement("img", {
3287
+ className: "BlockchainLogo small",
3288
+ src: blockchain.logo,
3289
+ alt: blockchain.label,
3290
+ title: blockchain.label
3658
3291
  })), /*#__PURE__*/React__default["default"].createElement("div", {
3659
3292
  className: "CardBody"
3660
3293
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -4312,7 +3945,7 @@
4312
3945
  throw 'You need to set the blockchain you want to receive the donation on!';
4313
3946
  }
4314
3947
 
4315
- if (!['ethereum', 'bsc'].includes(configuration.blockchain)) {
3948
+ if (!['ethereum', 'bsc', 'polygon'].includes(configuration.blockchain)) {
4316
3949
  throw 'You need to set a supported blockchain!';
4317
3950
  }
4318
3951
 
@@ -4697,6 +4330,7 @@
4697
4330
  return /*#__PURE__*/React__default["default"].createElement(PaymentOverviewSkeleton, null);
4698
4331
  }
4699
4332
 
4333
+ var blockchain = web3Blockchains.Blockchain.findByName(payment.blockchain);
4700
4334
  return /*#__PURE__*/React__default["default"].createElement(Dialog$1, {
4701
4335
  header: /*#__PURE__*/React__default["default"].createElement("div", {
4702
4336
  className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
@@ -4746,6 +4380,11 @@
4746
4380
  }, /*#__PURE__*/React__default["default"].createElement(reactTokenImage.TokenImage, {
4747
4381
  blockchain: payment.blockchain,
4748
4382
  address: payment.token
4383
+ }), /*#__PURE__*/React__default["default"].createElement("img", {
4384
+ className: "BlockchainLogo small",
4385
+ src: blockchain.logo,
4386
+ alt: blockchain.label,
4387
+ title: blockchain.label
4749
4388
  })), /*#__PURE__*/React__default["default"].createElement("div", {
4750
4389
  className: "CardBody"
4751
4390
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -4816,7 +4455,7 @@
4816
4455
  throw 'You need to set the blockchain your want to receive the payment on!';
4817
4456
  }
4818
4457
 
4819
- if (!['ethereum', 'bsc'].includes(configuration.blockchain)) {
4458
+ if (!['ethereum', 'bsc', 'polygon'].includes(configuration.blockchain)) {
4820
4459
  throw 'You need to set a supported blockchain!';
4821
4460
  }
4822
4461
 
@@ -5135,6 +4774,7 @@
5135
4774
  });
5136
4775
  }
5137
4776
 
4777
+ var blockchain = web3Blockchains.Blockchain.findByName(payment.blockchain);
5138
4778
  return /*#__PURE__*/React__default["default"].createElement(Dialog$1, {
5139
4779
  header: /*#__PURE__*/React__default["default"].createElement("div", {
5140
4780
  className: "PaddingTopS PaddingLeftM PaddingRightM TextLeft"
@@ -5156,7 +4796,12 @@
5156
4796
  }, /*#__PURE__*/React__default["default"].createElement("div", {
5157
4797
  className: "CardImage",
5158
4798
  title: payment.name
5159
- }, tokenImageElement), /*#__PURE__*/React__default["default"].createElement("div", {
4799
+ }, tokenImageElement, /*#__PURE__*/React__default["default"].createElement("img", {
4800
+ className: "BlockchainLogo small",
4801
+ src: blockchain.logo,
4802
+ alt: blockchain.label,
4803
+ title: blockchain.label
4804
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
5160
4805
  className: "CardBody"
5161
4806
  }, /*#__PURE__*/React__default["default"].createElement("div", {
5162
4807
  className: "CardBodyWrapper"
@@ -5526,7 +5171,7 @@
5526
5171
  navigate = _useContext2.navigate;
5527
5172
 
5528
5173
  var stacked = Object.keys(props.selection).length > 1;
5529
- var blockchains = [web3Blockchains.Blockchain.findByName('ethereum'), web3Blockchains.Blockchain.findByName('bsc')];
5174
+ var blockchains = [web3Blockchains.Blockchain.findByName('ethereum'), web3Blockchains.Blockchain.findByName('bsc'), web3Blockchains.Blockchain.findByName('polygon')];
5530
5175
 
5531
5176
  var selectBlockchain = function selectBlockchain(blockchain) {
5532
5177
  setSelection(Object.assign(props.selection, {