lakutata 2.0.11 → 2.0.13

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.
Files changed (142) hide show
  1. package/com/database.cjs +13 -3
  2. package/com/database.mjs +13 -3
  3. package/com/docker.cjs +6 -2
  4. package/com/docker.d.ts +39 -11
  5. package/com/docker.mjs +6 -2
  6. package/com/logger.cjs +2 -2
  7. package/com/logger.mjs +2 -2
  8. package/decorator/orm.cjs +21 -11
  9. package/decorator/orm.mjs +13 -3
  10. package/helper.cjs +12 -12
  11. package/helper.d.ts +559 -82
  12. package/helper.mjs +5 -5
  13. package/lakutata.cjs +2 -2
  14. package/lakutata.mjs +2 -2
  15. package/orm.cjs +13 -3
  16. package/orm.mjs +39 -29
  17. package/package.json +2 -4
  18. package/src/components/Database.cjs +17 -7
  19. package/src/components/Database.mjs +13 -3
  20. package/src/components/Logger.cjs +2 -2
  21. package/src/components/Logger.mjs +2 -2
  22. package/src/components/docker/ConnectionOptionsBuilder.cjs +6 -2
  23. package/src/components/docker/ConnectionOptionsBuilder.mjs +6 -2
  24. package/src/components/docker/Docker.cjs +10 -3
  25. package/src/components/docker/Docker.mjs +10 -3
  26. package/src/components/docker/lib/DockerContainer.cjs +10 -6
  27. package/src/components/docker/lib/DockerContainer.mjs +6 -2
  28. package/src/components/docker/lib/DockerContainerTTY.cjs +6 -2
  29. package/src/components/docker/lib/DockerContainerTTY.mjs +6 -2
  30. package/src/components/docker/options/container/ContainerSettingOptions.cjs +4 -0
  31. package/src/components/docker/options/container/ContainerSettingOptions.mjs +4 -0
  32. package/src/decorators/orm/AfterInsert.cjs +13 -3
  33. package/src/decorators/orm/AfterInsert.mjs +17 -7
  34. package/src/decorators/orm/AfterLoad.cjs +17 -7
  35. package/src/decorators/orm/AfterLoad.mjs +13 -3
  36. package/src/decorators/orm/AfterRecover.cjs +17 -7
  37. package/src/decorators/orm/AfterRecover.mjs +17 -7
  38. package/src/decorators/orm/AfterRemove.cjs +17 -7
  39. package/src/decorators/orm/AfterRemove.mjs +22 -12
  40. package/src/decorators/orm/AfterSoftRemove.cjs +13 -3
  41. package/src/decorators/orm/AfterSoftRemove.mjs +24 -14
  42. package/src/decorators/orm/AfterUpdate.cjs +13 -3
  43. package/src/decorators/orm/AfterUpdate.mjs +22 -12
  44. package/src/decorators/orm/BeforeInsert.cjs +17 -7
  45. package/src/decorators/orm/BeforeInsert.mjs +17 -7
  46. package/src/decorators/orm/BeforeRecover.cjs +17 -7
  47. package/src/decorators/orm/BeforeRecover.mjs +22 -12
  48. package/src/decorators/orm/BeforeRemove.cjs +17 -7
  49. package/src/decorators/orm/BeforeRemove.mjs +17 -7
  50. package/src/decorators/orm/BeforeSoftRemove.cjs +17 -7
  51. package/src/decorators/orm/BeforeSoftRemove.mjs +23 -13
  52. package/src/decorators/orm/BeforeUpdate.cjs +17 -7
  53. package/src/decorators/orm/BeforeUpdate.mjs +22 -12
  54. package/src/decorators/orm/Check.cjs +18 -8
  55. package/src/decorators/orm/Check.mjs +13 -3
  56. package/src/decorators/orm/ChildEntity.cjs +13 -3
  57. package/src/decorators/orm/ChildEntity.mjs +13 -3
  58. package/src/decorators/orm/Column.cjs +29 -19
  59. package/src/decorators/orm/Column.mjs +23 -13
  60. package/src/decorators/orm/CreateDateColumn.cjs +19 -9
  61. package/src/decorators/orm/CreateDateColumn.mjs +24 -14
  62. package/src/decorators/orm/DeleteDateColumn.cjs +19 -9
  63. package/src/decorators/orm/DeleteDateColumn.mjs +23 -13
  64. package/src/decorators/orm/Entity.cjs +26 -16
  65. package/src/decorators/orm/Entity.mjs +32 -22
  66. package/src/decorators/orm/EventSubscriber.cjs +13 -3
  67. package/src/decorators/orm/EventSubscriber.mjs +18 -8
  68. package/src/decorators/orm/Exclusion.cjs +21 -11
  69. package/src/decorators/orm/Exclusion.mjs +21 -11
  70. package/src/decorators/orm/Generated.cjs +13 -3
  71. package/src/decorators/orm/Generated.mjs +13 -3
  72. package/src/decorators/orm/Index.cjs +22 -12
  73. package/src/decorators/orm/Index.mjs +27 -17
  74. package/src/decorators/orm/JoinColumn.cjs +19 -9
  75. package/src/decorators/orm/JoinColumn.mjs +27 -17
  76. package/src/decorators/orm/JoinTable.cjs +13 -3
  77. package/src/decorators/orm/JoinTable.mjs +29 -19
  78. package/src/decorators/orm/ManyToMany.cjs +25 -15
  79. package/src/decorators/orm/ManyToMany.mjs +26 -16
  80. package/src/decorators/orm/ManyToOne.cjs +25 -15
  81. package/src/decorators/orm/ManyToOne.mjs +26 -16
  82. package/src/decorators/orm/ObjectIdColumn.cjs +13 -3
  83. package/src/decorators/orm/ObjectIdColumn.mjs +26 -16
  84. package/src/decorators/orm/OneToMany.cjs +21 -11
  85. package/src/decorators/orm/OneToMany.mjs +22 -12
  86. package/src/decorators/orm/OneToOne.cjs +16 -6
  87. package/src/decorators/orm/OneToOne.mjs +36 -26
  88. package/src/decorators/orm/PrimaryColumn.cjs +22 -12
  89. package/src/decorators/orm/PrimaryColumn.mjs +24 -14
  90. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +32 -22
  91. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +18 -8
  92. package/src/decorators/orm/RelationId.cjs +19 -9
  93. package/src/decorators/orm/RelationId.mjs +18 -8
  94. package/src/decorators/orm/TableInheritance.cjs +17 -7
  95. package/src/decorators/orm/TableInheritance.mjs +26 -16
  96. package/src/decorators/orm/Tree.cjs +13 -3
  97. package/src/decorators/orm/Tree.mjs +26 -16
  98. package/src/decorators/orm/TreeChildren.cjs +15 -5
  99. package/src/decorators/orm/TreeChildren.mjs +18 -8
  100. package/src/decorators/orm/TreeLevelColumn.cjs +13 -3
  101. package/src/decorators/orm/TreeLevelColumn.mjs +20 -10
  102. package/src/decorators/orm/TreeParent.cjs +19 -9
  103. package/src/decorators/orm/TreeParent.mjs +13 -3
  104. package/src/decorators/orm/Unique.cjs +29 -19
  105. package/src/decorators/orm/Unique.mjs +30 -20
  106. package/src/decorators/orm/UpdateDateColumn.cjs +19 -9
  107. package/src/decorators/orm/UpdateDateColumn.mjs +25 -15
  108. package/src/decorators/orm/VersionColumn.cjs +13 -3
  109. package/src/decorators/orm/VersionColumn.mjs +26 -16
  110. package/src/decorators/orm/ViewColumn.cjs +13 -3
  111. package/src/decorators/orm/ViewColumn.mjs +26 -16
  112. package/src/decorators/orm/ViewEntity.cjs +27 -17
  113. package/src/decorators/orm/ViewEntity.mjs +19 -9
  114. package/src/decorators/orm/VirtualColumn.cjs +18 -8
  115. package/src/decorators/orm/VirtualColumn.mjs +30 -20
  116. package/src/lib/base/internal/PatternManager.cjs +2 -2
  117. package/src/lib/base/internal/PatternManager.mjs +2 -2
  118. package/src/lib/core/Application.cjs +2 -2
  119. package/src/lib/core/Application.mjs +2 -2
  120. package/src/lib/helpers/Glob.cjs +1220 -1149
  121. package/src/lib/helpers/Glob.mjs +769 -700
  122. package/src/lib/helpers/IsXML.cjs +863 -801
  123. package/src/lib/helpers/IsXML.mjs +862 -800
  124. package/src/lib/ioc/ListModules.cjs +967 -909
  125. package/src/lib/ioc/ListModules.mjs +849 -791
  126. package/src/lib/validation/VLD.cjs +20 -10
  127. package/src/lib/validation/VLD.mjs +20 -10
  128. package/vendor/Package.1.cjs +170 -129
  129. package/vendor/Package.1.mjs +169 -128
  130. package/vendor/Package.13.cjs +0 -2
  131. package/vendor/Package.13.mjs +0 -2
  132. package/vendor/Package.14.cjs +8748 -8652
  133. package/vendor/Package.14.mjs +8665 -8581
  134. package/vendor/Package.16.cjs +36855 -15590
  135. package/vendor/Package.16.mjs +36893 -15633
  136. package/vendor/Package.2.cjs +2442 -2440
  137. package/vendor/Package.2.mjs +444 -442
  138. package/vendor/Package.4.cjs +325 -319
  139. package/vendor/Package.4.mjs +326 -320
  140. package/vendor/Package.7.cjs +299 -299
  141. package/vendor/Package.7.mjs +299 -299
  142. package/vendor/TypeDef.5.d.ts +6 -0
@@ -22,7 +22,7 @@ var r = function() {
22
22
  r = Object.assign || function e(t) {
23
23
  for (var r, n = 1, o = arguments.length; n < o; n++) {
24
24
  r = arguments[n];
25
- for (var a in r) if (Object.prototype.hasOwnProperty.call(r, a)) t[a] = r[a];
25
+ for (var i in r) if (Object.prototype.hasOwnProperty.call(r, i)) t[i] = r[i];
26
26
  }
27
27
  return t;
28
28
  };
@@ -39,25 +39,25 @@ function n(e, t) {
39
39
  }
40
40
 
41
41
  function o(e, t, r, n) {
42
- var o = arguments.length, a = o < 3 ? t : n === null ? n = Object.getOwnPropertyDescriptor(t, r) : n, i;
43
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") a = Reflect.decorate(e, t, r, n); else for (var c = e.length - 1; c >= 0; c--) if (i = e[c]) a = (o < 3 ? i(a) : o > 3 ? i(t, r, a) : i(t, r)) || a;
44
- return o > 3 && a && Object.defineProperty(t, r, a), a;
42
+ var o = arguments.length, i = o < 3 ? t : n === null ? n = Object.getOwnPropertyDescriptor(t, r) : n, a;
43
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") i = Reflect.decorate(e, t, r, n); else for (var c = e.length - 1; c >= 0; c--) if (a = e[c]) i = (o < 3 ? a(i) : o > 3 ? a(t, r, i) : a(t, r)) || i;
44
+ return o > 3 && i && Object.defineProperty(t, r, i), i;
45
45
  }
46
46
 
47
- function a(e, t) {
47
+ function i(e, t) {
48
48
  return function(r, n) {
49
49
  t(r, n, e);
50
50
  };
51
51
  }
52
52
 
53
- function i(e, t, r, n, o, a) {
54
- function i(e) {
53
+ function a(e, t, r, n, o, i) {
54
+ function a(e) {
55
55
  if (e !== void 0 && typeof e !== "function") throw new TypeError("Function expected");
56
56
  return e;
57
57
  }
58
58
  var c = n.kind, f = c === "getter" ? "get" : c === "setter" ? "set" : "value";
59
- var u = !t && e ? n["static"] ? e : e.prototype : null;
60
- var s = t || (u ? Object.getOwnPropertyDescriptor(u, n.name) : {});
59
+ var s = !t && e ? n["static"] ? e : e.prototype : null;
60
+ var u = t || (s ? Object.getOwnPropertyDescriptor(s, n.name) : {});
61
61
  var l, p = false;
62
62
  for (var y = r.length - 1; y >= 0; y--) {
63
63
  var _ = {};
@@ -65,23 +65,23 @@ function i(e, t, r, n, o, a) {
65
65
  for (var d in n.access) _.access[d] = n.access[d];
66
66
  _.addInitializer = function(e) {
67
67
  if (p) throw new TypeError("Cannot add initializers after decoration has completed");
68
- a.push(i(e || null));
68
+ i.push(a(e || null));
69
69
  };
70
70
  var h = (0, r[y])(c === "accessor" ? {
71
- get: s.get,
72
- set: s.set
73
- } : s[f], _);
71
+ get: u.get,
72
+ set: u.set
73
+ } : u[f], _);
74
74
  if (c === "accessor") {
75
75
  if (h === void 0) continue;
76
76
  if (h === null || typeof h !== "object") throw new TypeError("Object expected");
77
- if (l = i(h.get)) s.get = l;
78
- if (l = i(h.set)) s.set = l;
79
- if (l = i(h.init)) o.unshift(l);
80
- } else if (l = i(h)) {
81
- if (c === "field") o.unshift(l); else s[f] = l;
77
+ if (l = a(h.get)) u.get = l;
78
+ if (l = a(h.set)) u.set = l;
79
+ if (l = a(h.init)) o.unshift(l);
80
+ } else if (l = a(h)) {
81
+ if (c === "field") o.unshift(l); else u[f] = l;
82
82
  }
83
83
  }
84
- if (u) Object.defineProperty(u, n.name, s);
84
+ if (s) Object.defineProperty(s, n.name, u);
85
85
  p = true;
86
86
  }
87
87
 
@@ -97,7 +97,7 @@ function f(e) {
97
97
  return typeof e === "symbol" ? e : "".concat(e);
98
98
  }
99
99
 
100
- function u(e, t, r) {
100
+ function s(e, t, r) {
101
101
  if (typeof t === "symbol") t = t.description ? "[".concat(t.description, "]") : "";
102
102
  return Object.defineProperty(e, "name", {
103
103
  configurable: true,
@@ -105,7 +105,7 @@ function u(e, t, r) {
105
105
  });
106
106
  }
107
107
 
108
- function s(e, t) {
108
+ function u(e, t) {
109
109
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(e, t);
110
110
  }
111
111
 
@@ -115,23 +115,23 @@ function l(e, t, r, n) {
115
115
  t(e);
116
116
  }));
117
117
  }
118
- return new (r || (r = Promise))((function(r, a) {
119
- function i(e) {
118
+ return new (r || (r = Promise))((function(r, i) {
119
+ function a(e) {
120
120
  try {
121
121
  f(n.next(e));
122
122
  } catch (e) {
123
- a(e);
123
+ i(e);
124
124
  }
125
125
  }
126
126
  function c(e) {
127
127
  try {
128
128
  f(n["throw"](e));
129
129
  } catch (e) {
130
- a(e);
130
+ i(e);
131
131
  }
132
132
  }
133
133
  function f(e) {
134
- e.done ? r(e.value) : o(e.value).then(i, c);
134
+ e.done ? r(e.value) : o(e.value).then(a, c);
135
135
  }
136
136
  f((n = n.apply(e, t || [])).next());
137
137
  }));
@@ -141,19 +141,15 @@ function p(e, t) {
141
141
  var r = {
142
142
  label: 0,
143
143
  sent: function() {
144
- if (a[0] & 1) throw a[1];
145
- return a[1];
144
+ if (i[0] & 1) throw i[1];
145
+ return i[1];
146
146
  },
147
147
  trys: [],
148
148
  ops: []
149
- }, n, o, a, i;
150
- return i = {
151
- next: c(0),
152
- throw: c(1),
153
- return: c(2)
154
- }, typeof Symbol === "function" && (i[Symbol.iterator] = function() {
149
+ }, n, o, i, a = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
150
+ return a.next = c(0), a["throw"] = c(1), a["return"] = c(2), typeof Symbol === "function" && (a[Symbol.iterator] = function() {
155
151
  return this;
156
- }), i;
152
+ }), a;
157
153
  function c(e) {
158
154
  return function(t) {
159
155
  return f([ e, t ]);
@@ -161,14 +157,14 @@ function p(e, t) {
161
157
  }
162
158
  function f(c) {
163
159
  if (n) throw new TypeError("Generator is already executing.");
164
- while (i && (i = 0, c[0] && (r = 0)), r) try {
165
- if (n = 1, o && (a = c[0] & 2 ? o["return"] : c[0] ? o["throw"] || ((a = o["return"]) && a.call(o),
166
- 0) : o.next) && !(a = a.call(o, c[1])).done) return a;
167
- if (o = 0, a) c = [ c[0] & 2, a.value ];
160
+ while (a && (a = 0, c[0] && (r = 0)), r) try {
161
+ if (n = 1, o && (i = c[0] & 2 ? o["return"] : c[0] ? o["throw"] || ((i = o["return"]) && i.call(o),
162
+ 0) : o.next) && !(i = i.call(o, c[1])).done) return i;
163
+ if (o = 0, i) c = [ c[0] & 2, i.value ];
168
164
  switch (c[0]) {
169
165
  case 0:
170
166
  case 1:
171
- a = c;
167
+ i = c;
172
168
  break;
173
169
 
174
170
  case 4:
@@ -190,25 +186,25 @@ function p(e, t) {
190
186
  continue;
191
187
 
192
188
  default:
193
- if (!(a = r.trys, a = a.length > 0 && a[a.length - 1]) && (c[0] === 6 || c[0] === 2)) {
189
+ if (!(i = r.trys, i = i.length > 0 && i[i.length - 1]) && (c[0] === 6 || c[0] === 2)) {
194
190
  r = 0;
195
191
  continue;
196
192
  }
197
- if (c[0] === 3 && (!a || c[1] > a[0] && c[1] < a[3])) {
193
+ if (c[0] === 3 && (!i || c[1] > i[0] && c[1] < i[3])) {
198
194
  r.label = c[1];
199
195
  break;
200
196
  }
201
- if (c[0] === 6 && r.label < a[1]) {
202
- r.label = a[1];
203
- a = c;
197
+ if (c[0] === 6 && r.label < i[1]) {
198
+ r.label = i[1];
199
+ i = c;
204
200
  break;
205
201
  }
206
- if (a && r.label < a[2]) {
207
- r.label = a[2];
202
+ if (i && r.label < i[2]) {
203
+ r.label = i[2];
208
204
  r.ops.push(c);
209
205
  break;
210
206
  }
211
- if (a[2]) r.ops.pop();
207
+ if (i[2]) r.ops.pop();
212
208
  r.trys.pop();
213
209
  continue;
214
210
  }
@@ -217,7 +213,7 @@ function p(e, t) {
217
213
  c = [ 6, e ];
218
214
  o = 0;
219
215
  } finally {
220
- n = a = 0;
216
+ n = i = 0;
221
217
  }
222
218
  if (c[0] & 5) throw c[1];
223
219
  return {
@@ -266,43 +262,43 @@ function d(e) {
266
262
  function h(e, t) {
267
263
  var r = typeof Symbol === "function" && e[Symbol.iterator];
268
264
  if (!r) return e;
269
- var n = r.call(e), o, a = [], i;
265
+ var n = r.call(e), o, i = [], a;
270
266
  try {
271
- while ((t === void 0 || t-- > 0) && !(o = n.next()).done) a.push(o.value);
267
+ while ((t === void 0 || t-- > 0) && !(o = n.next()).done) i.push(o.value);
272
268
  } catch (e) {
273
- i = {
269
+ a = {
274
270
  error: e
275
271
  };
276
272
  } finally {
277
273
  try {
278
274
  if (o && !o.done && (r = n["return"])) r.call(n);
279
275
  } finally {
280
- if (i) throw i.error;
276
+ if (a) throw a.error;
281
277
  }
282
278
  }
283
- return a;
279
+ return i;
284
280
  }
285
281
 
286
- function b() {
282
+ function v() {
287
283
  for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(h(arguments[t]));
288
284
  return e;
289
285
  }
290
286
 
291
- function v() {
287
+ function b() {
292
288
  for (var e = 0, t = 0, r = arguments.length; t < r; t++) e += arguments[t].length;
293
- for (var n = Array(e), o = 0, t = 0; t < r; t++) for (var a = arguments[t], i = 0, c = a.length; i < c; i++,
294
- o++) n[o] = a[i];
289
+ for (var n = Array(e), o = 0, t = 0; t < r; t++) for (var i = arguments[t], a = 0, c = i.length; a < c; a++,
290
+ o++) n[o] = i[a];
295
291
  return n;
296
292
  }
297
293
 
298
294
  function w(e, t, r) {
299
- if (r || arguments.length === 2) for (var n = 0, o = t.length, a; n < o; n++) {
300
- if (a || !(n in t)) {
301
- if (!a) a = Array.prototype.slice.call(t, 0, n);
302
- a[n] = t[n];
295
+ if (r || arguments.length === 2) for (var n = 0, o = t.length, i; n < o; n++) {
296
+ if (i || !(n in t)) {
297
+ if (!i) i = Array.prototype.slice.call(t, 0, n);
298
+ i[n] = t[n];
303
299
  }
304
300
  }
305
- return e.concat(a || Array.prototype.slice.call(t));
301
+ return e.concat(i || Array.prototype.slice.call(t));
306
302
  }
307
303
 
308
304
  function m(e) {
@@ -311,35 +307,44 @@ function m(e) {
311
307
 
312
308
  function g(e, t, r) {
313
309
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
314
- var n = r.apply(e, t || []), o, a = [];
315
- return o = {}, i("next"), i("throw"), i("return"), o[Symbol.asyncIterator] = function() {
310
+ var n = r.apply(e, t || []), o, i = [];
311
+ return o = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype),
312
+ c("next"), c("throw"), c("return", a), o[Symbol.asyncIterator] = function() {
316
313
  return this;
317
314
  }, o;
318
- function i(e) {
319
- if (n[e]) o[e] = function(t) {
320
- return new Promise((function(r, n) {
321
- a.push([ e, t, r, n ]) > 1 || c(e, t);
322
- }));
315
+ function a(e) {
316
+ return function(t) {
317
+ return Promise.resolve(t).then(e, l);
323
318
  };
324
319
  }
325
320
  function c(e, t) {
321
+ if (n[e]) {
322
+ o[e] = function(t) {
323
+ return new Promise((function(r, n) {
324
+ i.push([ e, t, r, n ]) > 1 || f(e, t);
325
+ }));
326
+ };
327
+ if (t) o[e] = t(o[e]);
328
+ }
329
+ }
330
+ function f(e, t) {
326
331
  try {
327
- f(n[e](t));
332
+ s(n[e](t));
328
333
  } catch (e) {
329
- l(a[0][3], e);
334
+ p(i[0][3], e);
330
335
  }
331
336
  }
332
- function f(e) {
333
- e.value instanceof m ? Promise.resolve(e.value.v).then(u, s) : l(a[0][2], e);
337
+ function s(e) {
338
+ e.value instanceof m ? Promise.resolve(e.value.v).then(u, l) : p(i[0][2], e);
334
339
  }
335
340
  function u(e) {
336
- c("next", e);
341
+ f("next", e);
337
342
  }
338
- function s(e) {
339
- c("throw", e);
343
+ function l(e) {
344
+ f("throw", e);
340
345
  }
341
- function l(e, t) {
342
- if (e(t), a.shift(), a.length) c(a[0][0], a[0][1]);
346
+ function p(e, t) {
347
+ if (e(t), i.shift(), i.length) f(i[0][0], i[0][1]);
343
348
  }
344
349
  }
345
350
 
@@ -369,8 +374,8 @@ function j(e) {
369
374
  }, r);
370
375
  function n(t) {
371
376
  r[t] = e[t] && function(r) {
372
- return new Promise((function(n, a) {
373
- r = e[t](r), o(n, a, r.done, r.value);
377
+ return new Promise((function(n, i) {
378
+ r = e[t](r), o(n, i, r.done, r.value);
374
379
  }));
375
380
  };
376
381
  }
@@ -384,7 +389,7 @@ function j(e) {
384
389
  }
385
390
  }
386
391
 
387
- function S(e, t) {
392
+ function P(e, t) {
388
393
  if (Object.defineProperty) {
389
394
  Object.defineProperty(e, "raw", {
390
395
  value: t
@@ -395,7 +400,7 @@ function S(e, t) {
395
400
  return e;
396
401
  }
397
402
 
398
- var P = Object.create ? function(e, t) {
403
+ var S = Object.create ? function(e, t) {
399
404
  Object.defineProperty(e, "default", {
400
405
  enumerable: true,
401
406
  value: t
@@ -404,21 +409,30 @@ var P = Object.create ? function(e, t) {
404
409
  e["default"] = t;
405
410
  };
406
411
 
407
- function E(e) {
412
+ var E = function(e) {
413
+ E = Object.getOwnPropertyNames || function(e) {
414
+ var t = [];
415
+ for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) t[t.length] = r;
416
+ return t;
417
+ };
418
+ return E(e);
419
+ };
420
+
421
+ function x(e) {
408
422
  if (e && e.__esModule) return e;
409
423
  var t = {};
410
- if (e != null) for (var r in e) if (r !== "default" && Object.prototype.hasOwnProperty.call(e, r)) y(t, e, r);
411
- P(t, e);
424
+ if (e != null) for (var r = E(e), n = 0; n < r.length; n++) if (r[n] !== "default") y(t, e, r[n]);
425
+ S(t, e);
412
426
  return t;
413
427
  }
414
428
 
415
- function x(e) {
429
+ function T(e) {
416
430
  return e && e.__esModule ? e : {
417
431
  default: e
418
432
  };
419
433
  }
420
434
 
421
- function T(e, t, r, n) {
435
+ function I(e, t, r, n) {
422
436
  if (r === "a" && !n) throw new TypeError("Private accessor was defined without a getter");
423
437
  if (typeof t === "function" ? e !== t || !n : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
424
438
  return r === "m" ? n : r === "a" ? n.call(e) : n ? n.value : t.get(e);
@@ -431,7 +445,7 @@ function D(e, t, r, n, o) {
431
445
  return n === "a" ? o.call(e, r) : o ? o.value = r : t.set(e, r), r;
432
446
  }
433
447
 
434
- function I(e, t) {
448
+ function R(e, t) {
435
449
  if (t === null || typeof t !== "object" && typeof t !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
436
450
  return typeof e === "function" ? t === e : e.has(t);
437
451
  }
@@ -439,7 +453,7 @@ function I(e, t) {
439
453
  function k(e, t, r) {
440
454
  if (t !== null && t !== void 0) {
441
455
  if (typeof t !== "object" && typeof t !== "function") throw new TypeError("Object expected.");
442
- var n;
456
+ var n, o;
443
457
  if (r) {
444
458
  if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
445
459
  n = t[Symbol.asyncDispose];
@@ -447,8 +461,16 @@ function k(e, t, r) {
447
461
  if (n === void 0) {
448
462
  if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
449
463
  n = t[Symbol.dispose];
464
+ if (r) o = n;
450
465
  }
451
466
  if (typeof n !== "function") throw new TypeError("Object not disposable.");
467
+ if (o) n = function() {
468
+ try {
469
+ o.call(this);
470
+ } catch (e) {
471
+ return Promise.reject(e);
472
+ }
473
+ };
452
474
  e.stack.push({
453
475
  value: t,
454
476
  dispose: n,
@@ -462,65 +484,83 @@ function k(e, t, r) {
462
484
  return t;
463
485
  }
464
486
 
465
- var R = typeof SuppressedError === "function" ? SuppressedError : function(e, t, r) {
487
+ var A = typeof SuppressedError === "function" ? SuppressedError : function(e, t, r) {
466
488
  var n = new Error(r);
467
489
  return n.name = "SuppressedError", n.error = e, n.suppressed = t, n;
468
490
  };
469
491
 
470
- function A(e) {
492
+ function F(e) {
471
493
  function t(t) {
472
- e.error = e.hasError ? new R(t, e.error, "An error was suppressed during disposal.") : t;
494
+ e.error = e.hasError ? new A(t, e.error, "An error was suppressed during disposal.") : t;
473
495
  e.hasError = true;
474
496
  }
475
- function r() {
476
- while (e.stack.length) {
477
- var n = e.stack.pop();
497
+ var r, n = 0;
498
+ function o() {
499
+ while (r = e.stack.pop()) {
478
500
  try {
479
- var o = n.dispose && n.dispose.call(n.value);
480
- if (n.async) return Promise.resolve(o).then(r, (function(e) {
481
- t(e);
482
- return r();
483
- }));
501
+ if (!r.async && n === 1) return n = 0, e.stack.push(r), Promise.resolve().then(o);
502
+ if (r.dispose) {
503
+ var i = r.dispose.call(r.value);
504
+ if (r.async) return n |= 2, Promise.resolve(i).then(o, (function(e) {
505
+ t(e);
506
+ return o();
507
+ }));
508
+ } else n |= 1;
484
509
  } catch (e) {
485
510
  t(e);
486
511
  }
487
512
  }
513
+ if (n === 1) return e.hasError ? Promise.reject(e.error) : Promise.resolve();
488
514
  if (e.hasError) throw e.error;
489
515
  }
490
- return r();
516
+ return o();
491
517
  }
492
518
 
493
- const F = {
519
+ function C(e, t) {
520
+ if (typeof e === "string" && /^\.\.?\//.test(e)) {
521
+ return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, (function(e, r, n, o, i) {
522
+ return r ? t ? ".jsx" : ".js" : n && (!o || !i) ? e : n + o + "." + i.toLowerCase() + "js";
523
+ }));
524
+ }
525
+ return e;
526
+ }
527
+
528
+ const z = {
494
529
  __extends: t,
495
530
  __assign: r,
496
531
  __rest: n,
497
532
  __decorate: o,
498
- __param: a,
499
- __metadata: s,
533
+ __param: i,
534
+ __esDecorate: a,
535
+ __runInitializers: c,
536
+ __propKey: f,
537
+ __setFunctionName: s,
538
+ __metadata: u,
500
539
  __awaiter: l,
501
540
  __generator: p,
502
541
  __createBinding: y,
503
542
  __exportStar: _,
504
543
  __values: d,
505
544
  __read: h,
506
- __spread: b,
507
- __spreadArrays: v,
545
+ __spread: v,
546
+ __spreadArrays: b,
508
547
  __spreadArray: w,
509
548
  __await: m,
510
549
  __asyncGenerator: g,
511
550
  __asyncDelegator: O,
512
551
  __asyncValues: j,
513
- __makeTemplateObject: S,
514
- __importStar: E,
515
- __importDefault: x,
516
- __classPrivateFieldGet: T,
552
+ __makeTemplateObject: P,
553
+ __importStar: x,
554
+ __importDefault: T,
555
+ __classPrivateFieldGet: I,
517
556
  __classPrivateFieldSet: D,
518
- __classPrivateFieldIn: I,
557
+ __classPrivateFieldIn: R,
519
558
  __addDisposableResource: k,
520
- __disposeResources: A
559
+ __disposeResources: F,
560
+ __rewriteRelativeImportExtension: C
521
561
  };
522
562
 
523
- const C = Object.freeze(Object.defineProperty({
563
+ const G = Object.freeze(Object.defineProperty({
524
564
  __proto__: null,
525
565
  __addDisposableResource: k,
526
566
  get __assign() {
@@ -531,33 +571,34 @@ const C = Object.freeze(Object.defineProperty({
531
571
  __asyncValues: j,
532
572
  __await: m,
533
573
  __awaiter: l,
534
- __classPrivateFieldGet: T,
535
- __classPrivateFieldIn: I,
574
+ __classPrivateFieldGet: I,
575
+ __classPrivateFieldIn: R,
536
576
  __classPrivateFieldSet: D,
537
577
  __createBinding: y,
538
578
  __decorate: o,
539
- __disposeResources: A,
540
- __esDecorate: i,
579
+ __disposeResources: F,
580
+ __esDecorate: a,
541
581
  __exportStar: _,
542
582
  __extends: t,
543
583
  __generator: p,
544
- __importDefault: x,
545
- __importStar: E,
546
- __makeTemplateObject: S,
547
- __metadata: s,
548
- __param: a,
584
+ __importDefault: T,
585
+ __importStar: x,
586
+ __makeTemplateObject: P,
587
+ __metadata: u,
588
+ __param: i,
549
589
  __propKey: f,
550
590
  __read: h,
551
591
  __rest: n,
592
+ __rewriteRelativeImportExtension: C,
552
593
  __runInitializers: c,
553
- __setFunctionName: u,
554
- __spread: b,
594
+ __setFunctionName: s,
595
+ __spread: v,
555
596
  __spreadArray: w,
556
- __spreadArrays: v,
597
+ __spreadArrays: b,
557
598
  __values: d,
558
- default: F
599
+ default: z
559
600
  }, Symbol.toStringTag, {
560
601
  value: "Module"
561
602
  }));
562
603
 
563
- export { o as _, s as a, C as t };
604
+ export { o as _, u as a, G as t };
@@ -5,5 +5,3 @@ require("module");
5
5
  require("buffer");
6
6
 
7
7
  require("tty");
8
-
9
- require("string_decoder");
@@ -3,5 +3,3 @@ import "module";
3
3
  import "buffer";
4
4
 
5
5
  import "tty";
6
-
7
- import "string_decoder";