@tarojs/components-react 4.0.0-canary.8 → 4.0.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.
Files changed (101) hide show
  1. package/LICENSE +17 -3
  2. package/dist/components/button/index.js +87 -0
  3. package/dist/components/button/index.js.map +1 -0
  4. package/dist/components/button/style/index.scss.js +4 -0
  5. package/dist/components/button/style/index.scss.js.map +1 -0
  6. package/dist/components/icon/index.js +36 -0
  7. package/dist/components/icon/index.js.map +1 -0
  8. package/dist/components/icon/style/index.scss.js +4 -0
  9. package/dist/components/icon/style/index.scss.js.map +1 -0
  10. package/dist/components/image/index.js +78 -105
  11. package/dist/components/image/index.js.map +1 -1
  12. package/dist/components/image/style/index.css.js +4 -0
  13. package/dist/components/image/style/index.css.js.map +1 -0
  14. package/dist/components/input/index.js +233 -0
  15. package/dist/components/input/index.js.map +1 -0
  16. package/dist/components/input/style/index.scss.js +4 -0
  17. package/dist/components/input/style/index.scss.js.map +1 -0
  18. package/dist/components/pull-down-refresh/index.js +197 -212
  19. package/dist/components/pull-down-refresh/index.js.map +1 -1
  20. package/dist/components/pull-down-refresh/style/index.css.js +4 -0
  21. package/dist/components/pull-down-refresh/style/index.css.js.map +1 -0
  22. package/dist/components/scroll-view/index.js +138 -169
  23. package/dist/components/scroll-view/index.js.map +1 -1
  24. package/dist/components/scroll-view/style/index.css.js +4 -0
  25. package/dist/components/scroll-view/style/index.css.js.map +1 -0
  26. package/dist/components/swiper/index.js +250 -270
  27. package/dist/components/swiper/index.js.map +1 -1
  28. package/dist/components/swiper/style/index.css.js +4 -0
  29. package/dist/components/swiper/style/index.css.js.map +1 -0
  30. package/dist/components/text/index.js +24 -34
  31. package/dist/components/text/index.js.map +1 -1
  32. package/dist/components/text/style/index.css.js +4 -0
  33. package/dist/components/text/style/index.css.js.map +1 -0
  34. package/dist/components/view/index.js +73 -99
  35. package/dist/components/view/index.js.map +1 -1
  36. package/dist/index.css +1 -0
  37. package/dist/index.js +4 -1
  38. package/dist/index.js.map +1 -1
  39. package/dist/solid/components/button/index.js +95 -0
  40. package/dist/solid/components/button/index.js.map +1 -0
  41. package/dist/solid/components/button/style/index.scss.js +4 -0
  42. package/dist/solid/components/button/style/index.scss.js.map +1 -0
  43. package/dist/solid/components/icon/index.js +39 -0
  44. package/dist/solid/components/icon/index.js.map +1 -0
  45. package/dist/solid/components/icon/style/index.scss.js +4 -0
  46. package/dist/solid/components/icon/style/index.scss.js.map +1 -0
  47. package/dist/solid/components/image/index.js +94 -0
  48. package/dist/solid/components/image/index.js.map +1 -0
  49. package/dist/solid/components/image/style/index.css.js +4 -0
  50. package/dist/solid/components/image/style/index.css.js.map +1 -0
  51. package/dist/solid/components/input/index.js +256 -0
  52. package/dist/solid/components/input/index.js.map +1 -0
  53. package/dist/solid/components/input/style/index.scss.js +4 -0
  54. package/dist/solid/components/input/style/index.scss.js.map +1 -0
  55. package/dist/solid/components/pull-down-refresh/index.js +334 -0
  56. package/dist/solid/components/pull-down-refresh/index.js.map +1 -0
  57. package/dist/solid/components/pull-down-refresh/style/index.css.js +4 -0
  58. package/dist/solid/components/pull-down-refresh/style/index.css.js.map +1 -0
  59. package/dist/solid/components/scroll-view/index.js +188 -0
  60. package/dist/solid/components/scroll-view/index.js.map +1 -0
  61. package/dist/solid/components/scroll-view/style/index.css.js +4 -0
  62. package/dist/solid/components/scroll-view/style/index.css.js.map +1 -0
  63. package/dist/solid/components/swiper/index.js +307 -0
  64. package/dist/solid/components/swiper/index.js.map +1 -0
  65. package/dist/solid/components/swiper/style/index.css.js +4 -0
  66. package/dist/solid/components/swiper/style/index.css.js.map +1 -0
  67. package/dist/solid/components/text/index.js +32 -0
  68. package/dist/solid/components/text/index.js.map +1 -0
  69. package/dist/solid/components/text/style/index.css.js +4 -0
  70. package/dist/solid/components/text/style/index.css.js.map +1 -0
  71. package/dist/solid/components/view/index.js +88 -0
  72. package/dist/solid/components/view/index.js.map +1 -0
  73. package/dist/solid/index.css +1 -0
  74. package/dist/solid/index.js +13 -0
  75. package/dist/solid/index.js.map +1 -0
  76. package/dist/solid/utils/hooks.solid.js +54 -0
  77. package/dist/solid/utils/hooks.solid.js.map +1 -0
  78. package/dist/solid/utils/index.js +58 -0
  79. package/dist/solid/utils/index.js.map +1 -0
  80. package/dist/utils/hooks.react.js +15 -0
  81. package/dist/utils/hooks.react.js.map +1 -0
  82. package/dist/utils/index.js +31 -12
  83. package/dist/utils/index.js.map +1 -1
  84. package/package.json +25 -19
  85. package/types/index.d.ts +14 -0
  86. package/dist/components/image/style/index.js +0 -8
  87. package/dist/components/image/style/index.js.map +0 -1
  88. package/dist/components/pull-down-refresh/style/index.js +0 -8
  89. package/dist/components/pull-down-refresh/style/index.js.map +0 -1
  90. package/dist/components/scroll-view/style/index.js +0 -8
  91. package/dist/components/scroll-view/style/index.js.map +0 -1
  92. package/dist/components/swiper/style/index.js +0 -8
  93. package/dist/components/swiper/style/index.js.map +0 -1
  94. package/dist/components/text/style/index.js +0 -8
  95. package/dist/components/text/style/index.js.map +0 -1
  96. package/dist/components/view/style/index.js +0 -8
  97. package/dist/components/view/style/index.js.map +0 -1
  98. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +0 -27
  99. package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
  100. package/dist/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js +0 -526
  101. package/dist/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -1,526 +0,0 @@
1
- import _typeof from '@babel/runtime/helpers/typeof';
2
-
3
- /******************************************************************************
4
- Copyright (c) Microsoft Corporation.
5
-
6
- Permission to use, copy, modify, and/or distribute this software for any
7
- purpose with or without fee is hereby granted.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
- PERFORMANCE OF THIS SOFTWARE.
16
- ***************************************************************************** */
17
- /* global Reflect, Promise, SuppressedError, Symbol */
18
-
19
- var _extendStatics = function extendStatics(d, b) {
20
- _extendStatics = Object.setPrototypeOf || {
21
- __proto__: []
22
- } instanceof Array && function (d, b) {
23
- d.__proto__ = b;
24
- } || function (d, b) {
25
- for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
26
- };
27
- return _extendStatics(d, b);
28
- };
29
- function __extends(d, b) {
30
- if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
31
- _extendStatics(d, b);
32
- function __() {
33
- this.constructor = d;
34
- }
35
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36
- }
37
- var _assign = function __assign() {
38
- _assign = Object.assign || function __assign(t) {
39
- for (var s, i = 1, n = arguments.length; i < n; i++) {
40
- s = arguments[i];
41
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
42
- }
43
- return t;
44
- };
45
- return _assign.apply(this, arguments);
46
- };
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
50
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
52
- }
53
- return t;
54
- }
55
- function __decorate(decorators, target, key, desc) {
56
- var c = arguments.length,
57
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
58
- d;
59
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
60
- return c > 3 && r && Object.defineProperty(target, key, r), r;
61
- }
62
- function __param(paramIndex, decorator) {
63
- return function (target, key) {
64
- decorator(target, key, paramIndex);
65
- };
66
- }
67
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
68
- function accept(f) {
69
- if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
70
- return f;
71
- }
72
- var kind = contextIn.kind,
73
- key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
74
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
75
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
76
- var _,
77
- done = false;
78
- for (var i = decorators.length - 1; i >= 0; i--) {
79
- var context = {};
80
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
81
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
82
- context.addInitializer = function (f) {
83
- if (done) throw new TypeError("Cannot add initializers after decoration has completed");
84
- extraInitializers.push(accept(f || null));
85
- };
86
- var result = (0, decorators[i])(kind === "accessor" ? {
87
- get: descriptor.get,
88
- set: descriptor.set
89
- } : descriptor[key], context);
90
- if (kind === "accessor") {
91
- if (result === void 0) continue;
92
- if (result === null || _typeof(result) !== "object") throw new TypeError("Object expected");
93
- if (_ = accept(result.get)) descriptor.get = _;
94
- if (_ = accept(result.set)) descriptor.set = _;
95
- if (_ = accept(result.init)) initializers.unshift(_);
96
- } else if (_ = accept(result)) {
97
- if (kind === "field") initializers.unshift(_);else descriptor[key] = _;
98
- }
99
- }
100
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
101
- done = true;
102
- }
103
- ;
104
- function __runInitializers(thisArg, initializers, value) {
105
- var useValue = arguments.length > 2;
106
- for (var i = 0; i < initializers.length; i++) {
107
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
108
- }
109
- return useValue ? value : void 0;
110
- }
111
- ;
112
- function __propKey(x) {
113
- return _typeof(x) === "symbol" ? x : "".concat(x);
114
- }
115
- ;
116
- function __setFunctionName(f, name, prefix) {
117
- if (_typeof(name) === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
118
- return Object.defineProperty(f, "name", {
119
- configurable: true,
120
- value: prefix ? "".concat(prefix, " ", name) : name
121
- });
122
- }
123
- ;
124
- function __metadata(metadataKey, metadataValue) {
125
- if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
126
- }
127
- function __awaiter(thisArg, _arguments, P, generator) {
128
- function adopt(value) {
129
- return value instanceof P ? value : new P(function (resolve) {
130
- resolve(value);
131
- });
132
- }
133
- return new (P || (P = Promise))(function (resolve, reject) {
134
- function fulfilled(value) {
135
- try {
136
- step(generator.next(value));
137
- } catch (e) {
138
- reject(e);
139
- }
140
- }
141
- function rejected(value) {
142
- try {
143
- step(generator["throw"](value));
144
- } catch (e) {
145
- reject(e);
146
- }
147
- }
148
- function step(result) {
149
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
150
- }
151
- step((generator = generator.apply(thisArg, _arguments || [])).next());
152
- });
153
- }
154
- function __generator(thisArg, body) {
155
- var _ = {
156
- label: 0,
157
- sent: function sent() {
158
- if (t[0] & 1) throw t[1];
159
- return t[1];
160
- },
161
- trys: [],
162
- ops: []
163
- },
164
- f,
165
- y,
166
- t,
167
- g;
168
- return g = {
169
- next: verb(0),
170
- "throw": verb(1),
171
- "return": verb(2)
172
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
173
- return this;
174
- }), g;
175
- function verb(n) {
176
- return function (v) {
177
- return step([n, v]);
178
- };
179
- }
180
- function step(op) {
181
- if (f) throw new TypeError("Generator is already executing.");
182
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
183
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
184
- if (y = 0, t) op = [op[0] & 2, t.value];
185
- switch (op[0]) {
186
- case 0:
187
- case 1:
188
- t = op;
189
- break;
190
- case 4:
191
- _.label++;
192
- return {
193
- value: op[1],
194
- done: false
195
- };
196
- case 5:
197
- _.label++;
198
- y = op[1];
199
- op = [0];
200
- continue;
201
- case 7:
202
- op = _.ops.pop();
203
- _.trys.pop();
204
- continue;
205
- default:
206
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
207
- _ = 0;
208
- continue;
209
- }
210
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
211
- _.label = op[1];
212
- break;
213
- }
214
- if (op[0] === 6 && _.label < t[1]) {
215
- _.label = t[1];
216
- t = op;
217
- break;
218
- }
219
- if (t && _.label < t[2]) {
220
- _.label = t[2];
221
- _.ops.push(op);
222
- break;
223
- }
224
- if (t[2]) _.ops.pop();
225
- _.trys.pop();
226
- continue;
227
- }
228
- op = body.call(thisArg, _);
229
- } catch (e) {
230
- op = [6, e];
231
- y = 0;
232
- } finally {
233
- f = t = 0;
234
- }
235
- if (op[0] & 5) throw op[1];
236
- return {
237
- value: op[0] ? op[1] : void 0,
238
- done: true
239
- };
240
- }
241
- }
242
- var __createBinding = Object.create ? function (o, m, k, k2) {
243
- if (k2 === undefined) k2 = k;
244
- var desc = Object.getOwnPropertyDescriptor(m, k);
245
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
246
- desc = {
247
- enumerable: true,
248
- get: function get() {
249
- return m[k];
250
- }
251
- };
252
- }
253
- Object.defineProperty(o, k2, desc);
254
- } : function (o, m, k, k2) {
255
- if (k2 === undefined) k2 = k;
256
- o[k2] = m[k];
257
- };
258
- function __exportStar(m, o) {
259
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
260
- }
261
- function __values(o) {
262
- var s = typeof Symbol === "function" && Symbol.iterator,
263
- m = s && o[s],
264
- i = 0;
265
- if (m) return m.call(o);
266
- if (o && typeof o.length === "number") return {
267
- next: function next() {
268
- if (o && i >= o.length) o = void 0;
269
- return {
270
- value: o && o[i++],
271
- done: !o
272
- };
273
- }
274
- };
275
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
276
- }
277
- function __read(o, n) {
278
- var m = typeof Symbol === "function" && o[Symbol.iterator];
279
- if (!m) return o;
280
- var i = m.call(o),
281
- r,
282
- ar = [],
283
- e;
284
- try {
285
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
286
- } catch (error) {
287
- e = {
288
- error: error
289
- };
290
- } finally {
291
- try {
292
- if (r && !r.done && (m = i["return"])) m.call(i);
293
- } finally {
294
- if (e) throw e.error;
295
- }
296
- }
297
- return ar;
298
- }
299
-
300
- /** @deprecated */
301
- function __spread() {
302
- for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
303
- return ar;
304
- }
305
-
306
- /** @deprecated */
307
- function __spreadArrays() {
308
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
309
- for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
310
- return r;
311
- }
312
- function __spreadArray(to, from, pack) {
313
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
314
- if (ar || !(i in from)) {
315
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
316
- ar[i] = from[i];
317
- }
318
- }
319
- return to.concat(ar || Array.prototype.slice.call(from));
320
- }
321
- function __await(v) {
322
- return this instanceof __await ? (this.v = v, this) : new __await(v);
323
- }
324
- function __asyncGenerator(thisArg, _arguments, generator) {
325
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
326
- var g = generator.apply(thisArg, _arguments || []),
327
- i,
328
- q = [];
329
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
330
- return this;
331
- }, i;
332
- function verb(n) {
333
- if (g[n]) i[n] = function (v) {
334
- return new Promise(function (a, b) {
335
- q.push([n, v, a, b]) > 1 || resume(n, v);
336
- });
337
- };
338
- }
339
- function resume(n, v) {
340
- try {
341
- step(g[n](v));
342
- } catch (e) {
343
- settle(q[0][3], e);
344
- }
345
- }
346
- function step(r) {
347
- r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
348
- }
349
- function fulfill(value) {
350
- resume("next", value);
351
- }
352
- function reject(value) {
353
- resume("throw", value);
354
- }
355
- function settle(f, v) {
356
- if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
357
- }
358
- }
359
- function __asyncDelegator(o) {
360
- var i, p;
361
- return i = {}, verb("next"), verb("throw", function (e) {
362
- throw e;
363
- }), verb("return"), i[Symbol.iterator] = function () {
364
- return this;
365
- }, i;
366
- function verb(n, f) {
367
- i[n] = o[n] ? function (v) {
368
- return (p = !p) ? {
369
- value: __await(o[n](v)),
370
- done: false
371
- } : f ? f(v) : v;
372
- } : f;
373
- }
374
- }
375
- function __asyncValues(o) {
376
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
377
- var m = o[Symbol.asyncIterator],
378
- i;
379
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
380
- return this;
381
- }, i);
382
- function verb(n) {
383
- i[n] = o[n] && function (v) {
384
- return new Promise(function (resolve, reject) {
385
- v = o[n](v), settle(resolve, reject, v.done, v.value);
386
- });
387
- };
388
- }
389
- function settle(resolve, reject, d, v) {
390
- Promise.resolve(v).then(function (v) {
391
- resolve({
392
- value: v,
393
- done: d
394
- });
395
- }, reject);
396
- }
397
- }
398
- function __makeTemplateObject(cooked, raw) {
399
- if (Object.defineProperty) {
400
- Object.defineProperty(cooked, "raw", {
401
- value: raw
402
- });
403
- } else {
404
- cooked.raw = raw;
405
- }
406
- return cooked;
407
- }
408
- ;
409
- var __setModuleDefault = Object.create ? function (o, v) {
410
- Object.defineProperty(o, "default", {
411
- enumerable: true,
412
- value: v
413
- });
414
- } : function (o, v) {
415
- o["default"] = v;
416
- };
417
- function __importStar(mod) {
418
- if (mod && mod.__esModule) return mod;
419
- var result = {};
420
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
421
- __setModuleDefault(result, mod);
422
- return result;
423
- }
424
- function __importDefault(mod) {
425
- return mod && mod.__esModule ? mod : {
426
- default: mod
427
- };
428
- }
429
- function __classPrivateFieldGet(receiver, state, kind, f) {
430
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
431
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
432
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
433
- }
434
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
435
- if (kind === "m") throw new TypeError("Private method is not writable");
436
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
437
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
438
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
439
- }
440
- function __classPrivateFieldIn(state, receiver) {
441
- if (receiver === null || _typeof(receiver) !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
442
- return typeof state === "function" ? receiver === state : state.has(receiver);
443
- }
444
- function __addDisposableResource(env, value, async) {
445
- if (value !== null && value !== void 0) {
446
- if (_typeof(value) !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
447
- var dispose;
448
- if (async) {
449
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
450
- dispose = value[Symbol.asyncDispose];
451
- }
452
- if (dispose === void 0) {
453
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
454
- dispose = value[Symbol.dispose];
455
- }
456
- if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
457
- env.stack.push({
458
- value: value,
459
- dispose: dispose,
460
- async: async
461
- });
462
- } else if (async) {
463
- env.stack.push({
464
- async: true
465
- });
466
- }
467
- return value;
468
- }
469
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
470
- var e = new Error(message);
471
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
472
- };
473
- function __disposeResources(env) {
474
- function fail(e) {
475
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
476
- env.hasError = true;
477
- }
478
- function next() {
479
- while (env.stack.length) {
480
- var rec = env.stack.pop();
481
- try {
482
- var result = rec.dispose && rec.dispose.call(rec.value);
483
- if (rec.async) return Promise.resolve(result).then(next, function (e) {
484
- fail(e);
485
- return next();
486
- });
487
- } catch (e) {
488
- fail(e);
489
- }
490
- }
491
- if (env.hasError) throw env.error;
492
- }
493
- return next();
494
- }
495
- var tslib_es6 = {
496
- __extends: __extends,
497
- __assign: _assign,
498
- __rest: __rest,
499
- __decorate: __decorate,
500
- __param: __param,
501
- __metadata: __metadata,
502
- __awaiter: __awaiter,
503
- __generator: __generator,
504
- __createBinding: __createBinding,
505
- __exportStar: __exportStar,
506
- __values: __values,
507
- __read: __read,
508
- __spread: __spread,
509
- __spreadArrays: __spreadArrays,
510
- __spreadArray: __spreadArray,
511
- __await: __await,
512
- __asyncGenerator: __asyncGenerator,
513
- __asyncDelegator: __asyncDelegator,
514
- __asyncValues: __asyncValues,
515
- __makeTemplateObject: __makeTemplateObject,
516
- __importStar: __importStar,
517
- __importDefault: __importDefault,
518
- __classPrivateFieldGet: __classPrivateFieldGet,
519
- __classPrivateFieldSet: __classPrivateFieldSet,
520
- __classPrivateFieldIn: __classPrivateFieldIn,
521
- __addDisposableResource: __addDisposableResource,
522
- __disposeResources: __disposeResources
523
- };
524
-
525
- export { __addDisposableResource, _assign as __assign, __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter, __classPrivateFieldGet, __classPrivateFieldIn, __classPrivateFieldSet, __createBinding, __decorate, __disposeResources, __esDecorate, __exportStar, __extends, __generator, __importDefault, __importStar, __makeTemplateObject, __metadata, __param, __propKey, __read, __rest, __runInitializers, __setFunctionName, __spread, __spreadArray, __spreadArrays, __values, tslib_es6 as default };
526
- //# sourceMappingURL=tslib.es6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tslib.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}