No Description

inherits-6cb67931.js 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. function _classCallCheck(instance, Constructor) {
  2. if (!(instance instanceof Constructor)) {
  3. throw new TypeError("Cannot call a class as a function");
  4. }
  5. }
  6. function _defineProperties(target, props) {
  7. for (var i = 0; i < props.length; i++) {
  8. var descriptor = props[i];
  9. descriptor.enumerable = descriptor.enumerable || false;
  10. descriptor.configurable = true;
  11. if ("value" in descriptor) descriptor.writable = true;
  12. Object.defineProperty(target, descriptor.key, descriptor);
  13. }
  14. }
  15. function _createClass(Constructor, protoProps, staticProps) {
  16. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  17. if (staticProps) _defineProperties(Constructor, staticProps);
  18. return Constructor;
  19. }
  20. function _typeof(obj) {
  21. "@babel/helpers - typeof";
  22. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  23. _typeof = function _typeof(obj) {
  24. return typeof obj;
  25. };
  26. } else {
  27. _typeof = function _typeof(obj) {
  28. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  29. };
  30. }
  31. return _typeof(obj);
  32. }
  33. function _assertThisInitialized(self) {
  34. if (self === void 0) {
  35. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  36. }
  37. return self;
  38. }
  39. function _possibleConstructorReturn(self, call) {
  40. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  41. return call;
  42. }
  43. return _assertThisInitialized(self);
  44. }
  45. function _getPrototypeOf(o) {
  46. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  47. return o.__proto__ || Object.getPrototypeOf(o);
  48. };
  49. return _getPrototypeOf(o);
  50. }
  51. function _setPrototypeOf(o, p) {
  52. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  53. o.__proto__ = p;
  54. return o;
  55. };
  56. return _setPrototypeOf(o, p);
  57. }
  58. function _inherits(subClass, superClass) {
  59. if (typeof superClass !== "function" && superClass !== null) {
  60. throw new TypeError("Super expression must either be null or a function");
  61. }
  62. subClass.prototype = Object.create(superClass && superClass.prototype, {
  63. constructor: {
  64. value: subClass,
  65. writable: true,
  66. configurable: true
  67. }
  68. });
  69. if (superClass) _setPrototypeOf(subClass, superClass);
  70. }
  71. export { _typeof as _, _inherits as a, _classCallCheck as b, _possibleConstructorReturn as c, _getPrototypeOf as d, _createClass as e };
  72. //# sourceMappingURL=inherits-6cb67931.js.map