Nav apraksta

inherits-6cb67931.js 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 &&
  29. typeof Symbol === "function" &&
  30. obj.constructor === Symbol &&
  31. obj !== Symbol.prototype
  32. ? "symbol"
  33. : typeof obj;
  34. };
  35. }
  36. return _typeof(obj);
  37. }
  38. function _assertThisInitialized(self) {
  39. if (self === void 0) {
  40. throw new ReferenceError(
  41. "this hasn't been initialised - super() hasn't been called"
  42. );
  43. }
  44. return self;
  45. }
  46. function _possibleConstructorReturn(self, call) {
  47. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  48. return call;
  49. }
  50. return _assertThisInitialized(self);
  51. }
  52. function _getPrototypeOf(o) {
  53. _getPrototypeOf = Object.setPrototypeOf
  54. ? Object.getPrototypeOf
  55. : function _getPrototypeOf(o) {
  56. return o.__proto__ || Object.getPrototypeOf(o);
  57. };
  58. return _getPrototypeOf(o);
  59. }
  60. function _setPrototypeOf(o, p) {
  61. _setPrototypeOf =
  62. Object.setPrototypeOf ||
  63. function _setPrototypeOf(o, p) {
  64. o.__proto__ = p;
  65. return o;
  66. };
  67. return _setPrototypeOf(o, p);
  68. }
  69. function _inherits(subClass, superClass) {
  70. if (typeof superClass !== "function" && superClass !== null) {
  71. throw new TypeError("Super expression must either be null or a function");
  72. }
  73. subClass.prototype = Object.create(superClass && superClass.prototype, {
  74. constructor: {
  75. value: subClass,
  76. writable: true,
  77. configurable: true
  78. }
  79. });
  80. if (superClass) _setPrototypeOf(subClass, superClass);
  81. }
  82. export {
  83. _typeof as _,
  84. _inherits as a,
  85. _classCallCheck as b,
  86. _possibleConstructorReturn as c,
  87. _getPrototypeOf as d,
  88. _createClass as e
  89. };
  90. //# sourceMappingURL=inherits-6cb67931.js.map