Keine Beschreibung

_commonjsHelpers-4ed3570f.js 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. 'use strict';
  2. function _classCallCheck(instance, Constructor) {
  3. if (!(instance instanceof Constructor)) {
  4. throw new TypeError("Cannot call a class as a function");
  5. }
  6. }
  7. function _defineProperties(target, props) {
  8. for (var i = 0; i < props.length; i++) {
  9. var descriptor = props[i];
  10. descriptor.enumerable = descriptor.enumerable || false;
  11. descriptor.configurable = true;
  12. if ("value" in descriptor) descriptor.writable = true;
  13. Object.defineProperty(target, descriptor.key, descriptor);
  14. }
  15. }
  16. function _createClass(Constructor, protoProps, staticProps) {
  17. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  18. if (staticProps) _defineProperties(Constructor, staticProps);
  19. return Constructor;
  20. }
  21. function _defineProperty(obj, key, value) {
  22. if (key in obj) {
  23. Object.defineProperty(obj, key, {
  24. value: value,
  25. enumerable: true,
  26. configurable: true,
  27. writable: true
  28. });
  29. } else {
  30. obj[key] = value;
  31. }
  32. return obj;
  33. }
  34. function _extends() {
  35. _extends = Object.assign || function (target) {
  36. for (var i = 1; i < arguments.length; i++) {
  37. var source = arguments[i];
  38. for (var key in source) {
  39. if (Object.prototype.hasOwnProperty.call(source, key)) {
  40. target[key] = source[key];
  41. }
  42. }
  43. }
  44. return target;
  45. };
  46. return _extends.apply(this, arguments);
  47. }
  48. function ownKeys(object, enumerableOnly) {
  49. var keys = Object.keys(object);
  50. if (Object.getOwnPropertySymbols) {
  51. var symbols = Object.getOwnPropertySymbols(object);
  52. if (enumerableOnly) symbols = symbols.filter(function (sym) {
  53. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  54. });
  55. keys.push.apply(keys, symbols);
  56. }
  57. return keys;
  58. }
  59. function _objectSpread2(target) {
  60. for (var i = 1; i < arguments.length; i++) {
  61. var source = arguments[i] != null ? arguments[i] : {};
  62. if (i % 2) {
  63. ownKeys(Object(source), true).forEach(function (key) {
  64. _defineProperty(target, key, source[key]);
  65. });
  66. } else if (Object.getOwnPropertyDescriptors) {
  67. Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
  68. } else {
  69. ownKeys(Object(source)).forEach(function (key) {
  70. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  71. });
  72. }
  73. }
  74. return target;
  75. }
  76. function _inherits(subClass, superClass) {
  77. if (typeof superClass !== "function" && superClass !== null) {
  78. throw new TypeError("Super expression must either be null or a function");
  79. }
  80. subClass.prototype = Object.create(superClass && superClass.prototype, {
  81. constructor: {
  82. value: subClass,
  83. writable: true,
  84. configurable: true
  85. }
  86. });
  87. if (superClass) _setPrototypeOf(subClass, superClass);
  88. }
  89. function _getPrototypeOf(o) {
  90. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  91. return o.__proto__ || Object.getPrototypeOf(o);
  92. };
  93. return _getPrototypeOf(o);
  94. }
  95. function _setPrototypeOf(o, p) {
  96. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  97. o.__proto__ = p;
  98. return o;
  99. };
  100. return _setPrototypeOf(o, p);
  101. }
  102. function _assertThisInitialized(self) {
  103. if (self === void 0) {
  104. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  105. }
  106. return self;
  107. }
  108. function _possibleConstructorReturn(self, call) {
  109. if (call && (typeof call === "object" || typeof call === "function")) {
  110. return call;
  111. }
  112. return _assertThisInitialized(self);
  113. }
  114. function _slicedToArray(arr, i) {
  115. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  116. }
  117. function _arrayWithHoles(arr) {
  118. if (Array.isArray(arr)) return arr;
  119. }
  120. function _iterableToArrayLimit(arr, i) {
  121. if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
  122. return;
  123. }
  124. var _arr = [];
  125. var _n = true;
  126. var _d = false;
  127. var _e = undefined;
  128. try {
  129. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  130. _arr.push(_s.value);
  131. if (i && _arr.length === i) break;
  132. }
  133. } catch (err) {
  134. _d = true;
  135. _e = err;
  136. } finally {
  137. try {
  138. if (!_n && _i["return"] != null) _i["return"]();
  139. } finally {
  140. if (_d) throw _e;
  141. }
  142. }
  143. return _arr;
  144. }
  145. function _nonIterableRest() {
  146. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  147. }
  148. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  149. function unwrapExports (x) {
  150. return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
  151. }
  152. function createCommonjsModule(fn, module) {
  153. return module = { exports: {} }, fn(module, module.exports), module.exports;
  154. }
  155. exports._assertThisInitialized = _assertThisInitialized;
  156. exports._classCallCheck = _classCallCheck;
  157. exports._createClass = _createClass;
  158. exports._defineProperty = _defineProperty;
  159. exports._extends = _extends;
  160. exports._getPrototypeOf = _getPrototypeOf;
  161. exports._inherits = _inherits;
  162. exports._objectSpread2 = _objectSpread2;
  163. exports._possibleConstructorReturn = _possibleConstructorReturn;
  164. exports._slicedToArray = _slicedToArray;
  165. exports.commonjsGlobal = commonjsGlobal;
  166. exports.createCommonjsModule = createCommonjsModule;
  167. exports.unwrapExports = unwrapExports;
  168. //# sourceMappingURL=_commonjsHelpers-4ed3570f.js.map